Skip to content

Commit 8dca27c

Browse files
authored
Merge branch 'nodejs:main' into master
2 parents ae26a9e + 5536325 commit 8dca27c

File tree

975 files changed

+94719
-52468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

975 files changed

+94719
-52468
lines changed

.github/CODEOWNERS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
/onboarding.md @nodejs/tsc
2424

2525
# nodejs.org website
26-
/doc/api_assets @nodejs/nodejs-website
27-
/doc/template.html @nodejs/nodejs-website
2826
/tools/doc @nodejs/web-infra
2927

3028
# streams

.github/workflows/auto-start-ci.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ jobs:
4545
if: needs.get-prs-for-ci.outputs.numbers != ''
4646
runs-on: ubuntu-slim
4747
steps:
48-
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
49-
with:
50-
persist-credentials: false
51-
5248
- name: Install Node.js
5349
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
5450
with:
@@ -62,14 +58,17 @@ jobs:
6258
ncu-config set username "$USERNAME"
6359
ncu-config set token "$GH_TOKEN"
6460
ncu-config set jenkins_token "$JENKINS_TOKEN"
65-
ncu-config set owner "${{ github.repository_owner }}"
66-
ncu-config set repo "$(echo ${{ github.repository }} | cut -d/ -f2)"
61+
ncu-config set owner "$GITHUB_REPOSITORY_OWNER"
62+
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)"
6763
env:
6864
USERNAME: ${{ secrets.JENKINS_USER }}
6965
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }}
7066
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }}
7167

7268
- name: Start the CI
73-
run: ./tools/actions/start-ci.sh ${{ needs.get-prs-for-ci.outputs.numbers }}
69+
run: |
70+
curl -fsSL "https://github.com/${GITHUB_REPOSITORY}/raw/${GITHUB_SHA}/tools/actions/start-ci.sh" \
71+
| sh -s -- ${{ needs.get-prs-for-ci.outputs.numbers }}
7472
env:
7573
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
GH_REPO: ${{ github.repository }}

.github/workflows/build-tarball.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,11 +98,11 @@ jobs:
9898
compression-level: 0
9999
test-tarball-linux:
100100
needs: build-tarball
101-
runs-on: ubuntu-24.04
101+
runs-on: ubuntu-24.04-arm
102102
env:
103-
CC: sccache clang-19
104-
CXX: sccache clang++-19
105-
SCCACHE_GHA_ENABLED: 'true'
103+
CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang-19
104+
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
105+
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
106106
SCCACHE_IDLE_TIMEOUT: '0'
107107
steps:
108108
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
@@ -120,6 +120,7 @@ jobs:
120120
python-version: ${{ env.PYTHON_VERSION }}
121121
allow-prereleases: true
122122
- name: Set up sccache
123+
if: github.base_ref == 'main' || github.ref_name == 'main'
123124
uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
124125
with:
125126
version: v0.12.0

.github/workflows/close-stale-feature-requests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
if: github.repository == 'nodejs/node'
4242
runs-on: ubuntu-slim
4343
steps:
44-
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
44+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
4545
with:
4646
repo-token: ${{ secrets.GITHUB_TOKEN }}
4747
days-before-stale: 180

.github/workflows/close-stalled.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
if: github.repository == 'nodejs/node'
2121
runs-on: ubuntu-slim
2222
steps:
23-
- uses: actions/stale@997185467fa4f803885201cee163a9f38240193d # v10.1.1
23+
- uses: actions/stale@b5d41d4e1d5dceea10e7104786b73624c18a190f # v10.2.0
2424
with:
2525
repo-token: ${{ secrets.GITHUB_TOKEN }}
2626
days-before-close: 30

.github/workflows/codeql.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ jobs:
2727

2828
# Initializes the CodeQL tools for scanning.
2929
- name: Initialize CodeQL
30-
uses: github/codeql-action/init@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
30+
uses: github/codeql-action/init@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
3131
with:
3232
languages: ${{ matrix.language }}
3333
config-file: ./.github/codeql-config.yml
3434

3535
- name: Autobuild
36-
uses: github/codeql-action/autobuild@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
36+
uses: github/codeql-action/autobuild@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
3737

3838
- name: Perform CodeQL Analysis
39-
uses: github/codeql-action/analyze@b20883b0cd1f46c72ae0ba6d1090936928f9fa30 # v4.32.0
39+
uses: github/codeql-action/analyze@89a39a4e59826350b863aa6b6252a07ad50cf83e # v4.32.4
4040
with:
4141
category: /language:${{matrix.language}}

.github/workflows/coverage-linux-without-intl.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ env:
3737
PYTHON_VERSION: '3.14'
3838
FLAKY_TESTS: keep_retrying
3939
CLANG_VERSION: '19'
40-
CC: sccache clang-19
41-
CXX: sccache clang++-19
42-
SCCACHE_GHA_ENABLED: 'true'
40+
CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang-19
41+
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
42+
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4343
SCCACHE_IDLE_TIMEOUT: '0'
4444

4545
permissions:
@@ -63,18 +63,19 @@ jobs:
6363
python-version: ${{ env.PYTHON_VERSION }}
6464
allow-prereleases: true
6565
- name: Set up sccache
66+
if: github.base_ref == 'main' || github.ref_name == 'main'
6667
uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6768
with:
6869
version: v0.12.0
6970
- name: Environment Information
7071
run: npx envinfo
7172
- name: Install gcovr
7273
run: pip install gcovr==7.2
73-
- name: Build
74-
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage --without-intl"
74+
- name: Configure
75+
run: ./configure --verbose --error-on-warn --coverage --without-intl
7576
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
7677
# The cause is most likely coverage's use of the inspector.
77-
- name: Test
78+
- name: Build and test
7879
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" || exit 0
7980
- name: Report JS
8081
run: npx c8 report --check-coverage

.github/workflows/coverage-linux.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,9 @@ env:
3737
PYTHON_VERSION: '3.14'
3838
FLAKY_TESTS: keep_retrying
3939
CLANG_VERSION: '19'
40-
CC: sccache clang-19
41-
CXX: sccache clang++-19
42-
SCCACHE_GHA_ENABLED: 'true'
40+
CC: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang-19
41+
CXX: ${{ (github.base_ref == 'main' || github.ref_name == 'main') && 'sccache' || '' }} clang++-19
42+
SCCACHE_GHA_ENABLED: ${{ github.base_ref == 'main' || github.ref_name == 'main' }}
4343
SCCACHE_IDLE_TIMEOUT: '0'
4444

4545
permissions:
@@ -48,7 +48,7 @@ permissions:
4848
jobs:
4949
coverage-linux:
5050
if: github.event.pull_request.draft == false
51-
runs-on: ubuntu-24.04
51+
runs-on: ubuntu-24.04-arm
5252
steps:
5353
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5454
with:
@@ -63,18 +63,19 @@ jobs:
6363
python-version: ${{ env.PYTHON_VERSION }}
6464
allow-prereleases: true
6565
- name: Set up sccache
66+
if: github.base_ref == 'main' || github.ref_name == 'main'
6667
uses: Mozilla-Actions/sccache-action@7d986dd989559c6ecdb630a3fd2557667be217ad # v0.0.9
6768
with:
6869
version: v0.12.0
6970
- name: Environment Information
7071
run: npx envinfo
7172
- name: Install gcovr
7273
run: pip install gcovr==7.2
73-
- name: Build
74-
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn --coverage"
74+
- name: Configure
75+
run: ./configure --verbose --error-on-warn --coverage
7576
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
7677
# The cause is most likely coverage's use of the inspector.
77-
- name: Test
78+
- name: Build and test
7879
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" || exit 0
7980
- name: Report JS
8081
run: npx c8 report --check-coverage

.github/workflows/coverage-windows.yml

Lines changed: 51 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,31 +3,55 @@ name: Coverage Windows
33
on:
44
pull_request:
55
types: [opened, synchronize, reopened, ready_for_review]
6-
paths:
7-
- lib/**/*.js
8-
- vcbuild.bat
9-
- src/**/*.cc
10-
- src/**/*.h
11-
- test/**
12-
- tools/gyp/**
13-
- tools/test.py
14-
- .github/workflows/coverage-windows.yml
15-
- codecov.yml
16-
- .nycrc
6+
paths-ignore:
7+
- '**.md'
8+
- '**.nix'
9+
- eslint.config.mjs
10+
- '**/eslint.config_partial.mjs'
11+
- android-configure
12+
- android-configure.py
13+
- android-patches/**
14+
- benchmarks/**
15+
- doc/**
16+
- pyproject.yml
17+
- tsconfig.json
18+
- test/internet/**
19+
- tools/actions/**
20+
- tools/bootstrap/**
21+
- tools/dep_updaters/**
22+
- tools/doc/**
23+
- tools/eslint-rules/**
24+
- tools/eslint/**
25+
- tools/lint-md/**
26+
- typings/**
27+
- .**
28+
- '!.github/workflows/coverage-windows.yml'
1729
push:
1830
branches:
1931
- main
20-
paths:
21-
- lib/**/*.js
22-
- vcbuild.bat
23-
- src/**/*.cc
24-
- src/**/*.h
25-
- test/**
26-
- tools/gyp/**
27-
- tools/test.py
28-
- .github/workflows/coverage-windows.yml
29-
- codecov.yml
30-
- .nycrc
32+
paths-ignore:
33+
- '**.md'
34+
- '**.nix'
35+
- eslint.config.mjs
36+
- '**/eslint.config_partial.mjs'
37+
- android-configure
38+
- android-configure.py
39+
- android-patches/**
40+
- benchmarks/**
41+
- doc/**
42+
- pyproject.yml
43+
- tsconfig.json
44+
- test/internet/**
45+
- tools/actions/**
46+
- tools/bootstrap/**
47+
- tools/dep_updaters/**
48+
- tools/doc/**
49+
- tools/eslint-rules/**
50+
- tools/eslint/**
51+
- tools/lint-md/**
52+
- typings/**
53+
- .**
54+
- '!.github/workflows/coverage-windows.yml'
3155

3256
concurrency:
3357
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
@@ -55,10 +79,14 @@ jobs:
5579
allow-prereleases: true
5680
- name: Install deps
5781
run: choco install nasm
82+
- name: Install Rust ${{ env.RUSTC_VERSION }}
83+
run: |
84+
rustup override set "$RUSTC_VERSION"
85+
rustup --version
5886
- name: Environment Information
5987
run: npx envinfo
6088
- name: Build
61-
run: ./vcbuild.bat clang-cl
89+
run: ./vcbuild.bat clang-cl v8temporal
6290
# TODO(bcoe): investigate tests that fail with coverage enabled
6391
# on Windows.
6492
- name: Test

.github/workflows/daily-wpt-fyi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
matrix:
3737
node-version: ${{ fromJSON(needs.collect-versions.outputs.matrix) }}
3838
fail-fast: false
39-
runs-on: ubuntu-latest
39+
runs-on: ubuntu-24.04-arm
4040
steps:
4141
- name: Set up Python ${{ env.PYTHON_VERSION }}
4242
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
@@ -49,7 +49,7 @@ jobs:
4949
# install a version and checkout
5050
- name: Get latest nightly
5151
if: matrix.node-version == 'latest-nightly'
52-
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-x64"))][0].version')" >> $GITHUB_ENV
52+
run: echo "NIGHTLY=$(curl -s https://nodejs.org/download/nightly/index.json | jq -r '[.[] | select(.files[] | contains("linux-arm64"))][0].version')" >> $GITHUB_ENV
5353
- name: Install Node.js
5454
id: setup-node
5555
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0

0 commit comments

Comments
 (0)