Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Downgrade node 22(.5) unit tests to 22.4 #63728

Merged
merged 3 commits into from
Jul 19, 2024

Conversation

talldan
Copy link
Contributor

@talldan talldan commented Jul 19, 2024

Currently all node 22 unit tests are failing in trunk. It seems to be an issue for npm running on node 22.5.

Comments on npm/cli#7657 imply this is an npm bug, and running on node 22.4 can be a temporary measure to keep CI working.

@talldan talldan added the [Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests. label Jul 19, 2024
@talldan talldan self-assigned this Jul 19, 2024
@talldan talldan requested a review from desrosj as a code owner July 19, 2024 04:07
Copy link

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.

Co-authored-by: talldan <talldanwp@git.wordpress.org>

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

@talldan talldan force-pushed the try/running-node-22-tests-on-22.4-temporarily branch from b6fb961 to d1b0f9d Compare July 19, 2024 04:12
@talldan talldan changed the title Downgrade node 22 unit tests to 22.4 Downgrade node 22(.5) unit tests to 22.4 Jul 19, 2024
@@ -14,13 +14,17 @@ concurrency:

jobs:
checks:
name: Checks w/Node.js ${{ matrix.node }} on ${{ matrix.os }}
name: Checks w/Node.js ${{ matrix.node.name }} on ${{ matrix.os }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This way the job names don't change, it'll still be something like "Create Block / Checks w/Node.js 22 on macos-latest (pull_request)" and it means I won't have to change required checks in github's setting back and forth.

In future we might consider keeping this and using names like "LTS" and "Next" instead of specific version numbers.

Comment on lines +23 to +27
node:
- name: 20
version: 20
- name: 22
version: 22.4
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Array/Object notation in yaml, as documented here:
https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs

@talldan
Copy link
Contributor Author

talldan commented Jul 19, 2024

This seems to be working so merging it into trunk

@talldan talldan merged commit 32b4b2e into trunk Jul 19, 2024
59 checks passed
@talldan talldan deleted the try/running-node-22-tests-on-22.4-temporarily branch July 19, 2024 04:28
@github-actions github-actions bot added this to the Gutenberg 18.9 milestone Jul 19, 2024
desrosj added a commit that referenced this pull request Jul 19, 2024
talldan added a commit that referenced this pull request Aug 27, 2024
This reverts commit 32b4b2e.

Co-authored-by: Jonathan Desrosiers <desrosj@users.noreply.github.com>
Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
bph pushed a commit to bph/gutenberg that referenced this pull request Aug 31, 2024
…ordPress#63758)

This reverts commit 32b4b2e.

Co-authored-by: Jonathan Desrosiers <desrosj@users.noreply.github.com>
Co-authored-by: desrosj <desrosj@git.wordpress.org>
Co-authored-by: talldan <talldanwp@git.wordpress.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Automated Testing Testing infrastructure changes impacting the execution of end-to-end (E2E) and/or unit tests.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant