-
Notifications
You must be signed in to change notification settings - Fork 30.9k
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 inspect_max_bytes_check
- Loading branch information
Showing
1,713 changed files
with
17,624 additions
and
15,060 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
|
@@ -33,7 +33,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v4 | ||
uses: actions/setup-python@d27e3f3d7c64b4bbf8e4abfb9b63b83e846e0435 # v4.5.0 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
- name: Environment Information | ||
|
@@ -45,9 +45,10 @@ 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@v3 | ||
uses: actions/setup-node@64ed1c7eab4cce3362f8c340dee64e5eaeef8f7c # v3.6.0 | ||
with: | ||
node-version: ${{ env.NIGHTLY || matrix.node-version }} | ||
check-latest: true | ||
- name: Get nightly ref | ||
if: contains(matrix.node-version, 'nightly') | ||
env: | ||
|
@@ -56,7 +57,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@v3 | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
with: | ||
persist-credentials: false | ||
ref: ${{ env.NIGHTLY_REF || steps.setup-node.outputs.node-version }} | ||
|
@@ -72,42 +73,84 @@ jobs: | |
run: rm -rf wpt | ||
working-directory: test/fixtures | ||
- name: Checkout epochs/daily WPT | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0 | ||
with: | ||
repository: web-platform-tests/wpt | ||
persist-credentials: false | ||
path: test/fixtures/wpt | ||
clean: false | ||
ref: ${{ env.WPT_REVISION }} | ||
|
||
# Node.js WPT Runner | ||
- name: Run WPT and generate report | ||
run: make test-wpt-report || true | ||
- name: Clone report for upload | ||
run: | | ||
make test-wpt-report || true | ||
if [ -e out/wpt/wptreport.json ]; then | ||
cd out/wpt | ||
cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json | ||
echo "WPT_REPORT=$(pwd)/out/wpt/wptreport.json" >> $GITHUB_ENV | ||
fi | ||
# undici WPT Runner | ||
- name: Set env.UNDICI_VERSION | ||
if: ${{ env.WPT_REPORT != '' }} | ||
run: echo "UNDICI_VERSION=v$(jq -r '.version' < deps/undici/src/package.json)" >> $GITHUB_ENV | ||
- name: Remove deps/undici | ||
if: ${{ env.WPT_REPORT != '' }} | ||
run: rm -rf deps/undici | ||
- name: Checkout undici | ||
if: ${{ env.WPT_REPORT != '' }} | ||
uses: actions/checkout@v3 | ||
with: | ||
repository: nodejs/undici | ||
persist-credentials: false | ||
path: deps/undici | ||
clean: false | ||
ref: ${{ env.UNDICI_VERSION }} | ||
- name: Add undici WPTs to the report | ||
if: ${{ env.WPT_REPORT != '' }} | ||
run: | | ||
rm -rf test/wpt/tests | ||
mv ../../test/fixtures/wpt/ test/wpt/tests/ | ||
npm install | ||
npm run test:wpt || true | ||
working-directory: deps/undici | ||
|
||
# Upload artifacts | ||
- name: Clone report for upload | ||
if: ${{ env.WPT_REPORT != '' }} | ||
working-directory: out/wpt | ||
run: cp wptreport.json wptreport-${{ steps.setup-node.outputs.node-version }}.json | ||
- name: Upload GitHub Actions artifact | ||
uses: actions/upload-artifact@v3 | ||
if: ${{ env.WPT_REPORT != '' }} | ||
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2 | ||
with: | ||
path: out/wpt/wptreport-*.json | ||
name: WPT Reports | ||
if-no-files-found: warn | ||
if-no-files-found: error | ||
- name: Upload WPT Report to wpt.fyi API | ||
if: ${{ env.WPT_REPORT != '' }} | ||
env: | ||
WPT_FYI_USERNAME: ${{ vars.WPT_FYI_USERNAME }} | ||
WPT_FYI_PASSWORD: ${{ secrets.WPT_FYI_PASSWORD }} | ||
working-directory: out/wpt | ||
run: | | ||
if [ -e out/wpt/wptreport.json ]; then | ||
cd out/wpt | ||
gzip wptreport.json | ||
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload" | ||
do | ||
curl \ | ||
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \ | ||
-F "[email protected]" \ | ||
-F "labels=master" \ | ||
$WPT_FYI_ENDPOINT | ||
done | ||
fi | ||
gzip wptreport.json | ||
echo "## Node.js ${{ steps.setup-node.outputs.node-version }}" >> $GITHUB_STEP_SUMMARY | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "WPT Revision: [\`${WPT_REVISION:0:7}\`](https://github.com/web-platform-tests/wpt/commits/$WPT_REVISION)" >> $GITHUB_STEP_SUMMARY | ||
for WPT_FYI_ENDPOINT in "https://wpt.fyi/api/results/upload" "https://staging.wpt.fyi/api/results/upload" | ||
do | ||
response=$(curl -sS \ | ||
-u "$WPT_FYI_USERNAME:$WPT_FYI_PASSWORD" \ | ||
-F "[email protected]" \ | ||
-F "labels=master" \ | ||
$WPT_FYI_ENDPOINT) | ||
if [[ $response =~ Task\ ([0-9]+)\ added\ to\ queue ]]; then | ||
run_id=${BASH_REMATCH[1]} | ||
origin=${WPT_FYI_ENDPOINT%/api/results/upload} | ||
echo "" >> $GITHUB_STEP_SUMMARY | ||
echo "Run ID [\`$run_id\`]($origin/api/runs/$run_id) added to the processor queue at ${origin:8}" >> $GITHUB_STEP_SUMMARY | ||
echo "- [View on the ${origin:8} dashboard]($origin/results?run_id=$run_id)" >> $GITHUB_STEP_SUMMARY | ||
fi | ||
done |
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
Oops, something went wrong.