Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v20.x] backport V8 changes related to compile cache #56711

Open
wants to merge 221 commits into
base: v20.x-staging
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
221 commits
Select commit Hold shift + click to select a range
5dfccb4
deps: upgrade npm to 10.8.3
npm-cli-bot Sep 8, 2024
2a7725a
deps: upgrade npm to 10.9.0
npm-cli-bot Oct 5, 2024
b63437c
build,win: enable pch for clang-cl
StefanStojanovic Oct 11, 2024
3f4d465
doc: fix the return type of outgoingMessage.setHeaders()
hkleungai Oct 11, 2024
0035cd2
doc: edit onboarding guide to clarify when mailmap addition is needed
aduh95 Oct 11, 2024
e75532d
meta: bump step-security/harden-runner from 2.9.1 to 2.10.1
dependabot[bot] Oct 11, 2024
d64b138
meta: bump github/codeql-action from 3.26.6 to 3.26.10
dependabot[bot] Oct 11, 2024
9ec642d
meta: bump codecov/codecov-action from 4.5.0 to 4.6.0
dependabot[bot] Oct 11, 2024
0e84b07
doc: fix ambasador markdown list
RafaelGSS Oct 13, 2024
75359e0
doc: add missing return values in buffer docs
karlhorky Oct 13, 2024
7517121
build: fix make errors that occur in Makefile
kmk324 Oct 14, 2024
11eacb1
test: update test_util.cc for coverage
kmk324 Oct 14, 2024
78a942b
events: optimize EventTarget.addEventListener
ronag Oct 14, 2024
3cf5bf5
diagnostics_channel: fix unsubscribe during publish
simon-id Oct 14, 2024
c65fc17
benchmark: adjust byte size for buffer-copy
RafaelGSS Oct 14, 2024
9fb3a7c
deps: update c-ares to v1.34.1
nodejs-github-bot Oct 15, 2024
af25971
src: fix winapi_strerror error string
huseyinacacak-janea Oct 15, 2024
f7f5c36
lib: test_runner#mock:timers respeced timeout_max behaviour
badkeyy Oct 15, 2024
acd9459
deps: update simdutf to 5.6.0
nodejs-github-bot Oct 15, 2024
c029311
esm: fix inconsistency with `importAssertion` in `resolve` hook
yesmeck Oct 15, 2024
76ae9d7
test_runner: add support for scheduler.wait on mock timers
ErickWendel Oct 15, 2024
559184d
doc: spell out condition restrictions
jkrems Sep 30, 2024
282e625
build: fix path concatenation
VoltrexKeyva Oct 17, 2024
c8e0458
dns: honor the order option
lpinca Oct 17, 2024
af20434
test: remove duplicate tests
lpinca Oct 17, 2024
f09fbc7
meta: change color to blue notify review-wanted
RafaelGSS Oct 17, 2024
62b867d
doc: move Beth Griggs keys to old gpg keys
RafaelGSS Oct 15, 2024
266adc1
doc: move Bryan English key to old gpg keys
RafaelGSS Oct 15, 2024
c954b85
doc: move Danielle Adams key to old gpg keys
RafaelGSS Oct 15, 2024
90a230d
benchmark: add --runs support to run.js
RafaelGSS Oct 18, 2024
c910ec8
src: remove icu based `ToASCII` and `ToUnicode`
anonrig Oct 18, 2024
3c65c75
cli: add `--heap-prof` flag available to `NODE_OPTIONS`
juanarbol Oct 20, 2024
0077c10
tools: add script to synch c-ares source lists
richardlau Oct 18, 2024
8a20f8e
build: synchronize list of c-ares source files
richardlau Oct 18, 2024
4c75a92
build: tidy up cares.gyp
richardlau Oct 18, 2024
b62a284
meta: move one or more collaborators to emeritus
nodejs-github-bot Oct 21, 2024
236abd8
deps: update ada to 2.9.1
nodejs-github-bot Oct 21, 2024
b2ced1c
build: fix uninstall script for AIX 7.1
cloorc Oct 21, 2024
ea557e9
doc: remove outdated remarks about `highWaterMark` in fs
isker Oct 22, 2024
e7356d9
deps: update c-ares to v1.34.2
nodejs-github-bot Oct 22, 2024
c6112b3
deps: update googletest to df1544b
nodejs-github-bot Oct 22, 2024
5cb2a2e
test: deflake `test-cluster-shared-handle-bind-privileged-port`
Oct 22, 2024
c94e747
doc: add `isBigIntObject` to documentation
leviscar Oct 22, 2024
c987bb9
doc: add note about stdio streams in child_process
Ed-roro Oct 22, 2024
31aaa94
test: fix addons and node-api test assumptions
aduh95 Oct 22, 2024
0fb5d70
tools: update lint-md-dependencies
nodejs-github-bot Oct 22, 2024
95ca88f
esm: add a fallback when importer in not a file
aduh95 Oct 22, 2024
86143af
stream: propagate AbortSignal reason
marvinroger Oct 22, 2024
c2165eb
build: fix GN build for cares/uv deps
zcbenz Oct 23, 2024
3cc9469
doc: changed the command used to verify SHASUMS256
adriancuadrado Oct 23, 2024
923154b
test,crypto: make crypto tests work with BoringSSL
codebytere Oct 24, 2024
146aff4
doc: add jazelly to collaborators
jazelly Oct 25, 2024
8d58435
test: increase test coverage for `http.OutgoingMessage.appendHeader()`
juanarbol Oct 25, 2024
f95cea7
test: avoid `apply()` calls with large amount of elements
LiviaMedeiros Oct 26, 2024
327f16f
doc: add esm examples to node:string_decoder
mfdebian Oct 26, 2024
bc78094
build: fix GN arg used in generate_config_gypi.py
codebytere Oct 28, 2024
d4355d0
deps: update acorn to 8.13.0
nodejs-github-bot Oct 29, 2024
0e872ca
build: fix building with system icu 76
cho-m Oct 29, 2024
3fc1534
test: split up test-runner-mock-timers test
badkeyy Oct 30, 2024
b2c290a
doc: capitalize "MIT License"
Oct 30, 2024
e26c6e9
dns: stop using deprecated `ares_query`
Oct 30, 2024
56d7431
src: use NewFromUtf8Literal in NODE_DEFINE_CONSTANT
ckerr Oct 31, 2024
cbccc66
http2: fix client async storage persistence
orgads Oct 31, 2024
3945b8b
src: fix dns crash when failed to create NodeAresTask
theanarkh Nov 1, 2024
fe04f6f
doc: improve c++ embedder API doc
gireeshpunathil Nov 1, 2024
f7c4aff
src,lib: optimize nodeTiming.uvMetricsInfo
RafaelGSS Oct 30, 2024
1eee315
benchmark: add nodeTiming.uvmetricsinfo bench
RafaelGSS Oct 31, 2024
03c03d0
meta: show PR/issue title on review-wanted
Nov 1, 2024
93fddab
doc: remove mention of ECDH-ES in crypto.diffieHellman
panva Nov 2, 2024
2ba8217
meta: make review-wanted message minimal
Nov 2, 2024
60805e4
doc: add write flag when open file as the demo code's intention
robberfree Nov 2, 2024
da379a8
tools: run daily WPT.fyi report on all supported releases
panva Nov 2, 2024
0d79158
tools: compact jq output in daily-wpt-fyi.yml action
panva Nov 2, 2024
e614cb4
meta: bump github/codeql-action from 3.26.10 to 3.27.0
dependabot[bot] Nov 3, 2024
723479c
meta: bump actions/checkout from 4.2.0 to 4.2.2
dependabot[bot] Nov 3, 2024
e9f251c
meta: bump actions/cache from 4.0.2 to 4.1.2
dependabot[bot] Nov 3, 2024
0789dec
meta: bump actions/upload-artifact from 4.4.0 to 4.4.3
dependabot[bot] Nov 3, 2024
b406b03
meta: bump rtCamp/action-slack-notify from 2.3.0 to 2.3.2
dependabot[bot] Nov 3, 2024
0022230
meta: bump actions/setup-node from 4.0.4 to 4.1.0
dependabot[bot] Nov 3, 2024
8a6e4c6
meta: bump actions/setup-python from 5.2.0 to 5.3.0
dependabot[bot] Nov 3, 2024
3ff8e8f
tools: fix root certificate updater
richardlau Nov 1, 2024
9246047
crypto: update root certificates to NSS 3.104
richardlau Nov 1, 2024
5b77b21
deps: update acorn to 8.14.0
nodejs-github-bot Nov 5, 2024
9c37065
doc: update `--max-semi-space-size` description
joebowbeer Nov 5, 2024
87ff134
test: refactor some esm tests
aduh95 Nov 5, 2024
e03257e
test: ignore unrelated events in FW watch tests
Ceres6 Nov 6, 2024
ffb0d3c
doc: clarity to available addon options
preveen-stack Nov 6, 2024
afa44fb
util: do not catch on circular `@@toStringTag` errors
Nov 6, 2024
2432671
doc: consistent use of word child process
gireeshpunathil Nov 6, 2024
b2b504f
doc: add esm example in `path.md`
Nov 8, 2024
0751a70
tools: fix c-ares updater script for Node.js 18
richardlau Nov 6, 2024
e1c4f1e
deps: update icu to 76.1
nodejs-github-bot Nov 7, 2024
aceb011
test: improve test coverage for `ServerResponse`
juanarbol Nov 7, 2024
97ffe8f
doc: enforce strict policy to semver-major releases
RafaelGSS Nov 7, 2024
fbb861c
test: add buffer to fs_permission tests
RafaelGSS Nov 7, 2024
e00156e
test: ensure that test priority is not higher than current priority
LiviaMedeiros Nov 8, 2024
9ebf337
doc: clarify removal of experimental API does not require a deprecation
aduh95 Nov 8, 2024
98e0289
test: improve test coverage for child process message sending
juanarbol Nov 8, 2024
f41aa5b
src: improve `node:os` userInfo performance
anonrig Nov 8, 2024
6173cff
tools: make commit-queue check blocked label
marco-ippolito Nov 10, 2024
155e417
tools: fix exclude labels for commit-queue
richardlau Nov 10, 2024
093fbab
doc: clarify triager role
gireeshpunathil Nov 10, 2024
8ba8b20
build: implement node_use_amaro flag in GN build
zcbenz Nov 11, 2024
c237b07
doc: run license-builder
github-actions[bot] Nov 11, 2024
bc3a047
benchmark: add `test_runner/mock-fn`
Nov 11, 2024
068080b
deps: update c-ares to v1.34.3
nodejs-github-bot Nov 12, 2024
31839ca
report: fix network queries in getReport libuv with exclude-network
Tofandel Nov 12, 2024
e152f9c
doc: correct max-semi-space-size statement
joebowbeer Nov 12, 2024
47617f9
doc: fix history info for `URL.prototype.toJSON`
aduh95 Nov 13, 2024
5e3f2f1
doc: add notable-change mention to sec release
RafaelGSS Nov 14, 2024
a4445b1
doc: clarify UV_THREADPOOL_SIZE env var usage
preveen-stack Nov 15, 2024
dde582e
doc: add `-S` flag release preparation example
aduh95 Nov 15, 2024
f985e1a
benchmark: add `test-reporters`
Nov 16, 2024
69bd871
deps: update simdutf to 5.6.1
nodejs-github-bot Nov 16, 2024
ab1e7c7
test_runner: error on mocking an already mocked date
Nov 17, 2024
32f0e94
url: handle "unsafe" characters properly in `pathToFileURL`
aduh95 Oct 18, 2024
e894395
test: increase coverage of `pathToFileURL`
aduh95 Oct 27, 2024
ded1484
lib: remove startsWith/endsWith primordials for char checks
gurgunday Oct 19, 2024
3859029
build: add create release proposal action
RafaelGSS Nov 23, 2024
d795efc
doc: add a note on console stream behavior
gireeshpunathil Nov 2, 2024
07aad64
deps: update simdutf to 5.6.2
nodejs-github-bot Nov 19, 2024
0e0d61d
doc: include git node release --promote to steps
RafaelGSS Nov 19, 2024
8634171
src: fix kill signal on Windows
huseyinacacak-janea Nov 20, 2024
0ae1c39
test: fix determining lower priority
LiviaMedeiros Nov 20, 2024
9c34ef4
doc: add esm examples to node:timers
mfdebian Nov 20, 2024
8704732
test: make x509 crypto tests work with BoringSSL
codebytere Nov 22, 2024
a8f2e34
tools: add linter for release commit proposals
aduh95 Nov 22, 2024
07252b1
doc: document approach for building wasm in deps
mhdawson Nov 22, 2024
e058fc8
doc: add esm example for zlib
peixotoleonardo Nov 23, 2024
795b2d6
deps: update zlib to 1.3.0.1-motley-7e2e4d7
nodejs-github-bot Aug 18, 2024
8bbf899
doc: doc how to add message for promotion
mhdawson Nov 13, 2024
c7af5c6
test: convert readdir test to use test runner
tchetwin Nov 23, 2024
c88e2b5
deps: upgrade npm to 10.9.1
npm-cli-bot Nov 24, 2024
016871b
test: make HTTP/1.0 connection test more robust
FliegendeWurst Nov 24, 2024
aa07bb9
test_runner: simplify hook running logic
cjihrig Nov 25, 2024
bfbf5ba
tools: use tokenless Codecov uploads
targos Nov 25, 2024
dc6ac81
doc: add vetted courses to the ambassador benefits
mcollina Nov 25, 2024
e8db106
doc: add doc for PerformanceObserver.takeRecords()
skyclouds2001 Nov 25, 2024
40abc3b
deps: update simdutf to 5.6.3
nodejs-github-bot Nov 26, 2024
9cb8d65
deps: update corepack to 0.30.0
nodejs-github-bot Nov 26, 2024
d3e9300
http2: fix memory leak caused by premature listener removing
ywave620 Nov 26, 2024
e2198ba
build: set node_arch to target_cpu in GN
codebytere Nov 26, 2024
c6dec5d
tools: add WPT updater for specific subsystems
mertcanaltin Nov 26, 2024
512d95b
tools: update WPT updater
aduh95 Nov 26, 2024
578dc28
doc: remove confusing and outdated sentence
lpinca Nov 27, 2024
65b8c12
doc: improve GN build documentation a bit
codebytere Nov 27, 2024
1498396
doc: add history entry for textEncoder.encodeInto()
lpinca Nov 27, 2024
957c72c
doc: move history entry to class description
lpinca Nov 27, 2024
97e9018
doc: add FAQ to releases section
RafaelGSS Nov 27, 2024
63fa8b1
tools: filter release keys to reduce interactivity
aduh95 Nov 27, 2024
c9c8d07
doc: remove unused import from sample code
blended-bram Nov 27, 2024
69ec79d
fs: lazily load ReadFileContext
gurgunday Nov 28, 2024
175fcaf
tools: fix nghttp3 updater script
aduh95 Nov 28, 2024
ae4d27b
tools: allow dispatch of `tools.yml` from forks
aduh95 Nov 28, 2024
0637370
deps: update zlib to 1.3.0.1-motley-82a5fec
nodejs-github-bot Nov 29, 2024
19e38c4
tools: fix update-undici script
targos Nov 29, 2024
c54dc8a
meta: add releasers as CODEOWNERS to proposal action
RafaelGSS Nov 29, 2024
014aa89
build: remove defaults for create-release-proposal
RafaelGSS Nov 30, 2024
54a59a3
doc: rename file to advocacy-ambassador-program.md
tniessen Nov 30, 2024
06943fc
test: move test-worker-arraybuffer-zerofill to parallel
lpinca Dec 1, 2024
91a6e3b
dgram: check udp buffer size to avoid fd leak
theanarkh Dec 2, 2024
f384a9d
doc: add create-release-action to process
RafaelGSS Dec 3, 2024
5cd3433
build: allow overriding clang usage
codebytere Dec 3, 2024
cc70ed3
meta: bump actions/setup-node from 4.0.3 to 4.1.0
dependabot[bot] Dec 3, 2024
fc11ea8
meta: bump step-security/harden-runner from 2.10.1 to 2.10.2
dependabot[bot] Dec 3, 2024
cf6d31e
meta: bump actions/checkout from 4.1.7 to 4.2.2
dependabot[bot] Dec 3, 2024
fa8212e
meta: bump github/codeql-action from 3.27.0 to 3.27.5
dependabot[bot] Dec 3, 2024
b4cc52e
crypto: ensure CryptoKey usages and algorithm are cached objects
panva Dec 4, 2024
b04ab86
doc: add LJHarb to collaborators
ljharb Dec 4, 2024
c48b739
deps: upgrade npm to 10.9.2
npm-cli-bot Dec 5, 2024
ee89fd4
tools: update `create-release-proposal` workflow
aduh95 Dec 5, 2024
4644b88
doc: mention `-a` flag for the release script
ruyadorno Dec 5, 2024
d803f2d
test: remove test-fs-utimes flaky designation
lpinca Dec 6, 2024
3aa283a
lib: add validation for options in compileFunction
kimtaejin3 Dec 6, 2024
2b6bdee
util: add fast path for Latin1 decoding
mertcanaltin Dec 3, 2024
c7a58d9
doc: update blog release-post link
ruyadorno Dec 6, 2024
c953719
sea: only assert snapshot main function for main threads
joyeecheung Dec 7, 2024
548c303
tools: improve release proposal PR opening
aduh95 Dec 8, 2024
1cc7032
test: remove `hasOpenSSL3x` utils
aduh95 Dec 9, 2024
bfb1e51
tools: use commit title as PR title when creating release proposal
aduh95 Dec 9, 2024
ffe3da8
doc: fix c++ addon hello world sample
geeksilva97 Dec 9, 2024
0f1d256
doc: fix incorrect link to style guide
technic960183 Dec 10, 2024
30019a6
doc: add ambassador message - benefits of Node.js
mhdawson Nov 29, 2024
19801bc
module: prevent main thread exiting before esm worker ends
islandryu Dec 10, 2024
f9d167c
doc: call out import.meta is only supported in ES modules
antonk52 Dec 11, 2024
18fbc12
util: do not rely on mutable `Object` and `Function`' `constructor` prop
aduh95 Dec 11, 2024
e08e41c
http2: support ALPNCallback option
ZYSzys Dec 11, 2024
23d66c2
worker: fix crash when a worker joins after exit
Qard Dec 11, 2024
f66320b
src: fix outdated js2c.cc references
legendecas Dec 11, 2024
df3d4d1
doc: update blog link to /vulnerability
RafaelGSS Dec 11, 2024
dbe0417
doc: update announce documentation for releases
RafaelGSS Dec 11, 2024
c68a537
tools: fix release proposal linter to support more than 1 folk preparing
aduh95 Dec 12, 2024
1e379ef
doc: `sea.getRawAsset(key)` always returns an ArrayBuffer
ShenHongFei Dec 12, 2024
1103e56
fs: make mutating `options` in Promises `readdir()` not affect results
LiviaMedeiros Nov 28, 2024
1dc2a9b
test: remove exludes for sea tests on PPC
mhdawson Dec 12, 2024
a4b37e4
node-api: allow napi_delete_reference in finalizers
legendecas Dec 13, 2024
5419e04
tools: use `github.actor` instead of bot username for release proposals
aduh95 Dec 13, 2024
fb24e73
doc: fix 'which' to 'that' and add commas
selveter Dec 14, 2024
e2e22d0
util: fix Latin1 decoding to return string output
mertcanaltin Dec 14, 2024
7ce092e
doc: add esm examples to node:readline
mfdebian Dec 14, 2024
a2f06b7
doc: add esm examples to node:repl
mfdebian Dec 14, 2024
5f0c8df
buffer: document concat zero-fill
duncpro Dec 15, 2024
4b77931
doc: clarify util.aborted resource usage
KunalKumar-1 Dec 15, 2024
f508ea7
build: add major release action
RafaelGSS Dec 16, 2024
5733a08
deps: update c-ares to v1.34.4
nodejs-github-bot Dec 17, 2024
87c2df2
tools: add REPLACEME check to workflow
mertcanaltin Dec 17, 2024
d229a4e
deps: update simdutf to 5.6.4
nodejs-github-bot Dec 17, 2024
4e1800a
tools: update github_reporter to 1.7.2
nodejs-github-bot Dec 17, 2024
567f5e2
build: fix missing fp16 dependency in d8 builds
joyeecheung Dec 17, 2024
ce5337d
build: set DESTCPU correctly for 'make binary' on loongarch64
wojiushixiaobai Dec 18, 2024
f7c13e9
doc: fix color contrast issue in light mode
Trott Dec 18, 2024
4c0777f
deps: V8: backport ae5a4db8ad86
syg Jan 26, 2024
f9a4e5d
deps: V8: cherry-pick 26fd1dfa9cd6
syg Jan 31, 2024
46008e4
esm: mark import attributes and JSON module as stable
nicolo-ribaudo Oct 12, 2024
6213319
doc: add history entries for JSON modules stabilization
aduh95 Nov 16, 2024
d67900e
doc: add note for features using `InternalWorker` with permission model
aduh95 Jan 23, 2025
cc7d1a7
doc: add history info for Permission Model
aduh95 Jan 22, 2025
0a046d0
deps: V8: backport 7b677a590459
joyeecheung Jan 14, 2025
c5ee93e
deps: V8: backport f4b3f6eb4595
joyeecheung Jan 14, 2025
d61c869
deps: V8: backport cd10ad7cdbe5
joyeecheung Apr 11, 2024
df1513e
deps: V8: backport 96ee9bb9e830
legendecas Jan 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@
# Actions

/.github/workflows/* @nodejs/actions
/.github/workflows/create-release-proposal.yml @nodejs/releasers
/tools/actions/* @nodejs/actions

# Test runner
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/auto-start-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ jobs:
if: needs.get-prs-for-ci.outputs.numbers != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false

- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/build-tarball.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -64,19 +64,19 @@ jobs:
mkdir tarballs
mv *.tar.gz tarballs
- name: Upload tarball artifact
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: tarballs
path: tarballs
test-tarball-linux:
needs: build-tarball
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ jobs:
run: |
echo "plusOne=$((${{ github.event.pull_request.commits }} + 1))" >> $GITHUB_OUTPUT
echo "minusOne=$((${{ github.event.pull_request.commits }} - 1))" >> $GITHUB_OUTPUT
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: ${{ steps.nb-of-commits.outputs.plusOne }}
persist-credentials: false
- run: git reset HEAD^2
- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Validate commit message
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/commit-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ jobs:
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--json 'number' \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z")" \
--search "created:<=$(date --date="2 days ago" +"%Y-%m-%dT%H:%M:%S%z") -label:blocked" \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
fast_track_prs=$(gh pr list \
--repo ${{ github.repository }} \
--base ${{ github.ref_name }} \
--label 'commit-queue' \
--label 'fast-track' \
--search "-label:blocked" \
--json 'number' \
-t '{{ range . }}{{ .number }} {{ end }}' \
--limit 100)
Expand All @@ -58,7 +59,7 @@ jobs:
if: needs.get_mergeable_prs.outputs.numbers != ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
# Needs the whole git history for ncu to work
# See https://github.com/nodejs/node-core-utils/pull/486
Expand All @@ -71,7 +72,7 @@ jobs:

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Install @node-core/utils
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/coverage-linux-without-intl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -79,7 +79,6 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/coverage-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up sccache
Expand All @@ -79,7 +79,6 @@ jobs:
- name: Clean tmp
run: rm -rf coverage/tmp && rm -rf out
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 3 additions & 4 deletions .github/workflows/coverage-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: windows-2022
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Install deps
Expand All @@ -71,7 +71,6 @@ jobs:
- name: Clean tmp
run: npx rimraf ./coverage/tmp
- name: Upload
uses: codecov/codecov-action@e28ff129e5465c2c0dcc6f003fc735cb6ae0c673 # v4.5.0
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
with:
directory: ./coverage
token: ${{ secrets.CODECOV_TOKEN }}
82 changes: 82 additions & 0 deletions .github/workflows/create-release-proposal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# This action requires the following secrets to be set on the repository:
# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes

name: Create Release Proposal

on:
workflow_dispatch:
inputs:
release-line:
required: true
type: number
description: 'The release line (without dots or prefix). e.g: 22'
release-date:
required: true
type: string
description: The release date in YYYY-MM-DD format

concurrency: ${{ github.workflow }}

env:
NODE_VERSION: lts/*

permissions:
contents: write
pull-requests: write

jobs:
releasePrepare:
env:
STAGING_BRANCH: v${{ inputs.release-line }}.x-staging
RELEASE_BRANCH: v${{ inputs.release-line }}.x
RELEASE_DATE: ${{ inputs.release-date }}
RELEASE_LINE: ${{ inputs.release-line }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
ref: ${{ env.STAGING_BRANCH }}
persist-credentials: false

# Install dependencies
- name: Install Node.js
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}

- name: Install @node-core/utils
run: npm install -g @node-core/utils

- name: Configure @node-core/utils
run: |
ncu-config set branch "${RELEASE_BRANCH}"
ncu-config set upstream origin
ncu-config set username "$GITHUB_ACTOR"
ncu-config set token "$GH_TOKEN"
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}"
env:
GH_TOKEN: ${{ github.token }}

- name: Set up ghauth config (Ubuntu)
run: |
mkdir -p "${XDG_CONFIG_HOME:-~/.config}/changelog-maker"
echo '{}' | jq '{user: env.GITHUB_ACTOR, token: env.TOKEN}' > "${XDG_CONFIG_HOME:-~/.config}/changelog-maker/config.json"
env:
TOKEN: ${{ github.token }}

- name: Setup git author
run: |
git config --local user.email "[email protected]"
git config --local user.name "Node.js GitHub Bot"

- name: Start git node release prepare
# The curl command is to make sure we run the version of the script corresponding to the current workflow.
run: |
git update-index --assume-unchanged tools/actions/create-release.sh
curl -fsSLo tools/actions/create-release.sh https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/create-release.sh
./tools/actions/create-release.sh "${RELEASE_DATE}" "${RELEASE_LINE}" "${GITHUB_ACTOR}"
env:
GH_TOKEN: ${{ github.token }}
# We want the bot to push the push the release commit so CI runs on it.
BOT_TOKEN: ${{ secrets.GH_USER_TOKEN }}
32 changes: 19 additions & 13 deletions .github/workflows/daily-wpt-fyi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ name: Daily WPT report

on:
workflow_dispatch:
inputs:
node-versions:
description: Node.js versions (as supported by actions/setup-node) to test as JSON array
required: false
default: '["current", "lts/*", "lts/-1"]'
schedule:
# This is 20 minutes after `epochs/daily` branch is triggered to be created
# in WPT repo.
Expand All @@ -24,16 +19,27 @@ permissions:
contents: read

jobs:
report:
collect-versions:
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.query.outputs.matrix }}
steps:
- id: query
run: |
matrix=$(curl -s https://raw.githubusercontent.com/nodejs/Release/refs/heads/main/schedule.json | jq -c --arg now "$(date +%Y-%m-%d)" '[with_entries(select(.value.end > $now and .value.start < $now)) | keys[] | ltrimstr("v") | tonumber] + ["latest-nightly"]')
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
report:
needs:
- collect-versions
strategy:
matrix:
node-version: ${{ fromJSON(github.event.inputs.node-versions || '["latest-nightly", "current", "lts/*", "lts/-1"]') }}
node-version: ${{ fromJSON(needs.collect-versions.outputs.matrix) }}
fail-fast: false
runs-on: ubuntu-latest
steps:
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Environment Information
Expand All @@ -45,7 +51,7 @@ jobs:
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-x64"))][0].version')" >> $GITHUB_ENV
- name: Install Node.js
id: setup-node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NIGHTLY || matrix.node-version }}
check-latest: true
Expand All @@ -57,7 +63,7 @@ jobs:
SHORT_SHA=$(node -p 'process.version.split(/-nightly\d{8}/)[1]')
echo "NIGHTLY_REF=$(gh api /repos/nodejs/node/commits/$SHORT_SHA --jq '.sha')" >> $GITHUB_ENV
- name: Checkout ${{ steps.setup-node.outputs.node-version }}
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }}
Expand All @@ -73,7 +79,7 @@ jobs:
run: rm -rf wpt
working-directory: test/fixtures
- name: Checkout epochs/daily WPT
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: web-platform-tests/wpt
persist-credentials: false
Expand All @@ -98,7 +104,7 @@ jobs:
run: rm -rf deps/undici
- name: Checkout undici
if: ${{ env.WPT_REPORT != '' }}
uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
repository: nodejs/undici
persist-credentials: false
Expand All @@ -121,7 +127,7 @@ jobs:
run: cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json
- name: Upload GitHub Actions artifact
if: ${{ env.WPT_REPORT != '' }}
uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
path: out/wpt/wptreport-*.json
name: WPT Report for ${{ steps.setup-node.outputs.node-version }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/daily.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ jobs:
build-lto:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@ jobs:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: ${{ env.NODE_VERSION }}
- name: Environment Information
run: npx envinfo
- name: Build
run: NODE=$(command -v node) make doc-only
- uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 # v4.4.0
- uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
with:
name: docs
path: out/doc
Expand Down
Loading
Loading