-
Notifications
You must be signed in to change notification settings - Fork 39
test: Add Node 24 to CI matrix #660
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
test: Add Node 24 to CI matrix #660
Conversation
Thanks for the pull request, @PKulkoRaccoonGang! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. Where can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
6f422fd
to
8220c4f
Compare
8220c4f
to
b97ca32
Compare
b97ca32
to
61880ef
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #660 +/- ##
=============================
=============================
☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@PKulkoRaccoonGang Thank you for this contribution! @openedx/committers-frontend-build It looks like some tests failed to run automatically. Could you please have a look and see if you can enable them? |
@PKulkoRaccoonGang could you rebase the PR and push again for the tests to be triggered again? The |
@@ -17,7 +21,7 @@ jobs: | |||
- name: Setup Nodejs | |||
uses: actions/setup-node@v4 | |||
with: | |||
node-version-file: '.nvmrc' | |||
node-version: ${{ matrix.node }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's keep the standard of using the .nvmrc
file for the base version and add another conditional step in case of Node 24 to use the value from matrix.
In future, when Node 20 support is removed, .nvmrc
will be retained as the source of truth as per the decision made by the frontend community some time ago.
We can do conditional setup to maintain nvmrc
functionality while adding support to test new version:
# Use .nvmrc if matrix.node == 20
- name: Setup Node.js from .nvmrc
uses: actions/setup-node@v4
if: matrix.node == 20
with:
node-version-file: '.nvmrc'
# Use matrix.node otherwise
- name: Setup Node.js from matrix
uses: actions/setup-node@v4
if: matrix.node != 20
with:
node-version: ${{ matrix.node }}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When upgrading Node, we have a series of PRs. The final one, which updates the .nvmrc
file, is the single source of truth for the new Node version.
The tracking issue: #657
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should keep using the .nvmrc
notation for default supported version.
The rebase will not be needed once my review is addressed and a new commit is pushed. |
I see that the final PR for the Node 24 upgrade has passed all tests. Therefore, I believe we can safely ignore the 'tests' check that is currently stuck on this PR. Please correct me if I'm wrong. I tried restarting the CI checks, but to no avail. |
Hey @UsamaSadiq, could you please have a look at @PKulkoRaccoonGang's latest comment above and advise on how to move forward here? |
Hi @itsjeyd @PKulkoRaccoonGang The best way would be to create an axim support ticket to:
We'll need to repeat this process again once we drop the matrix usage and only proceed with using |
I don't know why I am following this PR but I saw your comment and I'm very confused because when I go into branch protection rules, I can't find the |
@sarina It's possible that the tests (24) only becomes available in the branch protection rules once this PR is merged and the workflow is updated in the master.
|
@UsamaSadiq that makes sense! I disabled the check for now, & I'll enable 24 when this merges. |
@UsamaSadiq you were right! Enabled (24) now on master. ![]() |
🎉 This PR is included in version 14.6.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Description
As a first step in the upgrade to Node 24, add it to the CI matrix as a non-blocking test.
See the tracking issue for further information.