mirror of
https://github.com/nodejs/node.git
synced 2026-11-25 23:01:06 -05:00
tools: update sccache to support GH cache changes
Refs: https://github.blog/changelog/2025-03-20-notification-of-upcoming-breaking-changes-in-github-actions/ Refs: https://github.com/mozilla/sccache/pull/2339 PR-URL: https://github.com/nodejs/node/pull/57573 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
This commit is contained in:
1 parent
fa93bb2633
commit
29c032403c
5 files changed
+56
-35
No files matched your search
@@ -46,13 +46,13 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Make tarball
|
||||
@@ -64,7 +64,7 @@ jobs:
|
||||
mkdir tarballs
|
||||
mv *.tar.gz tarballs
|
||||
- name: Upload tarball artifact
|
||||
uses: actions/upload-artifact@b4b15b8c7c6ac21ea08fcf65892d2ee8f75cf882 # v4.4.3
|
||||
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
|
||||
with:
|
||||
name: tarballs
|
||||
path: tarballs
|
||||
@@ -76,17 +76,17 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Download tarball
|
||||
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
||||
uses: actions/download-artifact@cc203385981b70ca67e1cc392babf9cc229d5806 # v4.1.9
|
||||
with:
|
||||
name: tarballs
|
||||
path: tarballs
|
||||
@@ -96,7 +96,7 @@ jobs:
|
||||
echo "TAR_DIR=$RUNNER_TEMP/`basename tarballs/*.tar.gz .tar.gz`" >> $GITHUB_ENV
|
||||
- name: Copy directories needed for testing
|
||||
run: |
|
||||
cp -r tools/node_modules $TAR_DIR/tools
|
||||
cp -r tools/eslint $TAR_DIR/tools
|
||||
cp -r tools/eslint-rules $TAR_DIR/tools
|
||||
- name: Build
|
||||
run: |
|
||||
@@ -105,4 +105,4 @@ jobs:
|
||||
- name: Test
|
||||
run: |
|
||||
cd $TAR_DIR
|
||||
make run-ci -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9"
|
||||
make run-ci -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9"
|
||||
@@ -52,13 +52,13 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Install gcovr
|
||||
@@ -68,7 +68,7 @@ jobs:
|
||||
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
|
||||
# The cause is most likely coverage's use of the inspector.
|
||||
- name: Test
|
||||
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
|
||||
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" || exit 0
|
||||
- name: Report JS
|
||||
run: npx c8 report --check-coverage
|
||||
env:
|
||||
@@ -79,6 +79,6 @@ jobs:
|
||||
- name: Clean tmp
|
||||
run: rm -rf coverage/tmp && rm -rf out
|
||||
- name: Upload
|
||||
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
|
||||
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
|
||||
with:
|
||||
directory: ./coverage
|
||||
@@ -52,13 +52,13 @@ jobs:
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Install gcovr
|
||||
@@ -68,7 +68,7 @@ jobs:
|
||||
# TODO(bcoe): fix the couple tests that fail with the inspector enabled.
|
||||
# The cause is most likely coverage's use of the inspector.
|
||||
- name: Test
|
||||
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --node-args='--test-reporter=spec' --measure-flakiness 9" || exit 0
|
||||
run: NODE_V8_COVERAGE=coverage/tmp make test-cov -j4 V=1 TEST_CI_ARGS="-p dots --measure-flakiness 9" || exit 0
|
||||
- name: Report JS
|
||||
run: npx c8 report --check-coverage
|
||||
env:
|
||||
@@ -79,6 +79,6 @@ jobs:
|
||||
- name: Clean tmp
|
||||
run: rm -rf coverage/tmp && rm -rf out
|
||||
- name: Upload
|
||||
uses: codecov/codecov-action@015f24e6818733317a2da2edd6290ab26238649a # v5.0.7
|
||||
uses: codecov/codecov-action@0565863a31f2c772f9f0395002a31e3f06189574 # v5.4.0
|
||||
with:
|
||||
directory: ./coverage
|
||||
@@ -35,22 +35,34 @@ permissions:
|
||||
jobs:
|
||||
test-linux:
|
||||
if: github.event.pull_request.draft == false
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-24.04, ubuntu-24.04-arm]
|
||||
steps:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: node
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
- name: Build
|
||||
run: make build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"
|
||||
run: make -C node build-ci -j4 V=1 CONFIG_FLAGS="--error-on-warn"
|
||||
- name: Test
|
||||
run: make run-ci -j4 V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
|
||||
run: make -C node run-ci -j4 V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"
|
||||
- name: Re-run test in a folder whose name contains unusual chars
|
||||
run: |
|
||||
mv node "$DIR"
|
||||
cd "$DIR"
|
||||
./tools/test.py --flaky-tests keep_retrying -p actions -j 4
|
||||
env:
|
||||
DIR: dir%20with $unusual"chars?'åß∂ƒ©∆¬…`
|
||||
@@ -30,6 +30,7 @@ concurrency:
|
||||
|
||||
env:
|
||||
PYTHON_VERSION: '3.12'
|
||||
XCODE_VERSION: '16.1'
|
||||
FLAKY_TESTS: keep_retrying
|
||||
|
||||
permissions:
|
||||
@@ -40,9 +41,7 @@ jobs:
|
||||
if: github.event.pull_request.draft == false
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
macos-version: [macos-13, macos-14]
|
||||
runs-on: ${{ matrix.macos-version }}
|
||||
runs-on: macos-14
|
||||
env:
|
||||
CC: sccache gcc
|
||||
CXX: sccache g++
|
||||
@@ -51,14 +50,17 @@ jobs:
|
||||
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
||||
with:
|
||||
persist-credentials: false
|
||||
path: node
|
||||
- name: Set up Python ${{ env.PYTHON_VERSION }}
|
||||
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
|
||||
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
|
||||
with:
|
||||
python-version: ${{ env.PYTHON_VERSION }}
|
||||
- name: Set up Xcode ${{ env.XCODE_VERSION }}
|
||||
run: sudo xcode-select -s /Applications/Xcode_${{ env.XCODE_VERSION }}.app
|
||||
- name: Set up sccache
|
||||
uses: mozilla-actions/sccache-action@9e326ebed976843c9932b3aa0e021c6f50310eb4 # v0.0.6
|
||||
uses: Mozilla-Actions/sccache-action@65101d47ea8028ed0c98a1cdea8dd9182e9b5133 # v0.0.8
|
||||
with:
|
||||
version: v0.8.1
|
||||
version: v0.10.0
|
||||
- name: Environment Information
|
||||
run: npx envinfo
|
||||
# The `npm ci` for this step fails a lot as part of the Test step. Run it
|
||||
@@ -68,7 +70,7 @@ jobs:
|
||||
# happen anymore running this step here first, that's also useful
|
||||
# information.)
|
||||
- name: tools/doc/node_modules workaround
|
||||
run: make tools/doc/node_modules
|
||||
run: make -C node tools/doc/node_modules
|
||||
# This is needed due to https://github.com/nodejs/build/issues/3878
|
||||
- name: Cleanup
|
||||
run: |
|
||||
@@ -84,8 +86,15 @@ jobs:
|
||||
df -h
|
||||
echo "::endgroup::"
|
||||
- name: Build
|
||||
run: make build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn"
|
||||
run: make -C node build-ci -j$(getconf _NPROCESSORS_ONLN) V=1 CONFIG_FLAGS="--error-on-warn"
|
||||
- name: Free Space After Build
|
||||
run: df -h
|
||||
- name: Test
|
||||
run: make run-ci -j$(getconf _NPROCESSORS_ONLN) V=1 TEST_CI_ARGS="-p actions --node-args='--test-reporter=spec' --node-args='--test-reporter-destination=stdout' --measure-flakiness 9"
|
||||
run: make -C node run-ci -j$(getconf _NPROCESSORS_ONLN) V=1 TEST_CI_ARGS="-p actions --measure-flakiness 9"
|
||||
- name: Re-run test in a folder whose name contains unusual chars
|
||||
run: |
|
||||
mv node "$DIR"
|
||||
cd "$DIR"
|
||||
./tools/test.py --flaky-tests keep_retrying -p actions -j 4
|
||||
env:
|
||||
DIR: dir%20with $unusual"chars?'åß∂ƒ©∆¬…`
|
||||
Reference in new issue
Block a user