Skip to content

Commit 2747683

Browse files
committed
Build/Test Tools: Remove check-latest input for setup-node.
The `check-latest` setting is used to ensure the latest version of Node.js is always installed in GitHub Action workflows. This input was added and turned on in [57212] when the minimum required version of Node.js was bumped to `20.10.0`. Because GitHub Action runner image updates are deployed on a rolling basis over the course of several days, a version of Node.js that met this new requirement was not always present (especially on Windows runners). Using this input was a temporary fix to ensure stability for Core’s test workflows. The `check-latest` input does have some side effects. Two examples are: - An additional request is performed to check the latest version every time `setup-node` is used with this option enabled. More requests are made to download and install a newer version of Node.js when one is available. - When new versions of Node.js are released, the Core workflows immediately switch to the new version, which could potentially have undiscovered bugs or regressions. The latter has surfaced today due to a regression in Node.js 20.13.0 on Windows (see nodejs/node#52884). A bit of time has passed and a version >=20.10.0 is now reliably available on all GitHub Action runners. Running the very latest release Node.js is also not important for Core’s testing setup, so `check-version` can safely be removed to address both side effects detailed above. Props johnbillion. Fixes #60129. git-svn-id: https://develop.svn.wordpress.org/trunk@58120 602fd350-edb4-49c9-b593-d223f7449a82
1 parent 45a3d53 commit 2747683

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

.github/workflows/callable-test-core-build-process.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ jobs:
4949
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
5050
with:
5151
node-version-file: '.nvmrc'
52-
check-latest: true
5352
cache: npm
5453

5554
- name: Log debug information

.github/workflows/callable-test-gutenberg-build-process.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ jobs:
5858
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
5959
with:
6060
node-version-file: '.nvmrc'
61-
check-latest: true
6261
cache: npm
6362
cache-dependency-path: |
6463
package-lock.json

0 commit comments

Comments
 (0)