-
Notifications
You must be signed in to change notification settings - Fork 29.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nodejs:main' into 55723
- Loading branch information
Showing
802 changed files
with
18,583 additions
and
25,169 deletions.
There are no files selected for viewing
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
# This action requires the following secrets to be set on the repository: | ||
# GH_USER_NAME: GitHub user whose Jenkins and GitHub token are defined below | ||
# GH_USER_TOKEN: GitHub user token, to be used by ncu and to push changes | ||
# JENKINS_TOKEN: Jenkins token, to be used to check CI status | ||
|
||
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 | ||
|
||
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | ||
with: | ||
ref: ${{ env.STAGING_BRANCH }} | ||
# Needs the whole git history for ncu to work | ||
# See https://github.com/nodejs/node-core-utils/pull/486 | ||
fetch-depth: 0 | ||
|
||
# Install dependencies | ||
- name: Install Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
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 "$USERNAME" | ||
ncu-config set token "$GH_TOKEN" | ||
ncu-config set jenkins_token "$JENKINS_TOKEN" | ||
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)" | ||
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}" | ||
env: | ||
USERNAME: ${{ secrets.JENKINS_USER }} | ||
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }} | ||
JENKINS_TOKEN: ${{ secrets.JENKINS_TOKEN }} | ||
|
||
- name: Set up ghauth config (Ubuntu) | ||
run: | | ||
mkdir -p ~/.config/changelog-maker/ | ||
echo '{ | ||
"user": "'$(ncu-config get username)'", | ||
"token": "'$(ncu-config get token)'" | ||
}' > ~/.config/changelog-maker/config.json | ||
- 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 | ||
run: | | ||
./tools/actions/create-release.sh "${RELEASE_DATE}" "${RELEASE_LINE}" | ||
env: | ||
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: Linters (release proposals) | ||
|
||
on: | ||
push: | ||
branches: | ||
- v[0-9]+.[0-9]+.[0-9]+-proposal | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
PYTHON_VERSION: '3.12' | ||
NODE_VERSION: lts/* | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint-release-commit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
- name: Lint release commit title format | ||
run: | | ||
EXPECTED_TITLE='^[[:digit:]]{4}-[[:digit:]]{2}-[[:digit:]]{2}, Version [[:digit:]]+\.[[:digit:]]+\.[[:digit:]]+ (\(Current|'.+' \(LTS)\)$' | ||
echo "Expected commit title format: $EXPECTED_TITLE" | ||
COMMIT_SUBJECT="$(git --no-pager log -1 --format=%s)" | ||
echo "Actual: $ACTUAL" | ||
echo "$COMMIT_SUBJECT" | grep -q -E "$EXPECTED_TITLE" | ||
echo "COMMIT_SUBJECT=$COMMIT_SUBJECT" >> "$GITHUB_ENV" | ||
- name: Lint release commit message trailers | ||
run: | | ||
EXPECTED_TRAILER="^PR-URL: $GITHUB_SERVER_URL/$GITHUB_REPOSITORY/pull/[[:digit:]]+\$" | ||
echo "Expected trailer format: $EXPECTED_TRAILER" | ||
ACTUAL="$(git --no-pager log -1 --format=%b | git interpret-trailers --parse --no-divider)" | ||
echo "Actual: $ACTUAL" | ||
echo "$ACTUAL" | grep -E -q "$EXPECTED_TRAILER" | ||
PR_URL="${ACTUAL:8}" | ||
PR_HEAD="$(gh pr view "$PR_URL" --json headRefOid -q .headRefOid)" | ||
echo "Head of $PR_URL: $PR_HEAD" | ||
echo "Current commit: $GITHUB_SHA" | ||
[[ "$PR_HEAD" == "$GITHUB_SHA" ]] | ||
env: | ||
GH_TOKEN: ${{ github.token }} | ||
- name: Validate CHANGELOG | ||
id: releaser-info | ||
run: | | ||
EXPECTED_CHANGELOG_TITLE_INTRO="## $COMMIT_SUBJECT, @" | ||
echo "Expected CHANGELOG section title: $EXPECTED_CHANGELOG_TITLE_INTRO" | ||
CHANGELOG_TITLE="$(grep "$EXPECTED_CHANGELOG_TITLE_INTRO" "doc/changelogs/CHANGELOG_V${COMMIT_SUBJECT:20:2}.md")" | ||
echo "Actual: $CHANGELOG_TITLE" | ||
[[ "${CHANGELOG_TITLE%@*}@" == "$EXPECTED_CHANGELOG_TITLE_INTRO" ]] | ||
- name: Verify NODE_VERSION_IS_RELEASE bit is correctly set | ||
run: | | ||
grep -q '^#define NODE_VERSION_IS_RELEASE 1$' src/node_version.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
name: WPT update | ||
|
||
on: | ||
schedule: | ||
# Run once a week at 12:00 AM UTC on Sunday. | ||
- cron: 0 0 * * * | ||
workflow_dispatch: | ||
inputs: | ||
subsystems: | ||
description: Subsystem to run the update for | ||
required: false | ||
default: '["url", "WebCryptoAPI"]' | ||
|
||
permissions: | ||
contents: read | ||
|
||
env: | ||
NODE_VERSION: lts/* | ||
|
||
jobs: | ||
wpt-subsystem-update: | ||
if: github.repository == 'nodejs/node' || github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
subsystem: ${{ fromJSON(github.event.inputs.subsystems || '["url", "WebCryptoAPI"]') }} | ||
|
||
steps: | ||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
persist-credentials: false | ||
|
||
- name: Install Node.js | ||
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install @node-core/utils | ||
run: npm install -g @node-core/utils | ||
|
||
- name: Setup @node-core/utils | ||
run: | | ||
ncu-config set username "$USERNAME" | ||
ncu-config set token "$GH_TOKEN" | ||
ncu-config set owner "${GITHUB_REPOSITORY_OWNER}" | ||
ncu-config set repo "$(echo "$GITHUB_REPOSITORY" | cut -d/ -f2)" | ||
env: | ||
USERNAME: ${{ secrets.JENKINS_USER }} | ||
GH_TOKEN: ${{ secrets.GH_USER_TOKEN }} | ||
|
||
- name: Update WPT for subsystem ${{ matrix.subsystem }} | ||
run: | | ||
git node wpt "$SUBSYSTEM" | ||
env: | ||
SUBSYSTEM: ${{ matrix.subsystem }} | ||
|
||
- name: Retrieve new version commit | ||
run: | | ||
new_version="$( | ||
node -p 'require("./test/fixtures/wpt/versions.json")[process.argv[1]].commit' "$SUBSYSTEM" | ||
)" | ||
{ | ||
echo "long_version=$new_version" | ||
echo "short_version=${new_version:0:10}" | ||
} >> "$GITHUB_ENV" | ||
env: | ||
SUBSYSTEM: ${{ matrix.subsystem }} | ||
|
||
- name: Open or update PR for the subsystem update | ||
uses: gr2m/create-or-update-pull-request-action@77596e3166f328b24613f7082ab30bf2d93079d5 | ||
with: | ||
branch: actions/update-wpt-${{ matrix.subsystem }} | ||
author: Node.js GitHub Bot <[email protected]> | ||
title: 'test: update WPT for ${{ matrix.subsystem }} to ${{ env.short_version }}' | ||
commit-message: 'test: update WPT for ${{ matrix.subsystem }} to ${{ env.short_version }}' | ||
labels: test | ||
update-pull-request-title-and-body: true | ||
body: > | ||
This is an automated update of the WPT for ${{ matrix.subsystem }} to | ||
https://github.com/web-platform-tests/wpt/commit/${{ env.long_version }}. | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -757,8 +757,6 @@ maintaining the Node.js project. | |
**Mert Can Altin** <<[email protected]>> | ||
* [preveen-stack](https://github.com/preveen-stack) - | ||
**Preveen Padmanabhan** <<[email protected]>> (he/him) | ||
* [RedYetiDev](https://github.com/RedYetiDev) - | ||
**Aviv Keller** <<[email protected]>> (they/them) | ||
* [VoltrexKeyva](https://github.com/VoltrexKeyva) - | ||
**Mohammed Keyvanzadeh** <<[email protected]>> (he/him) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
#!/usr/bin/env node | ||
process.env.COREPACK_ENABLE_DOWNLOAD_PROMPT??='0'; | ||
require('module').enableCompileCache?.(); | ||
require('./lib/corepack.cjs').runMain(process.argv.slice(2)); |
Oops, something went wrong.