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

Upgrade node to 18.20 #40661

Merged
merged 7 commits into from
Mar 27, 2024
Merged

Upgrade node to 18.20 #40661

merged 7 commits into from
Mar 27, 2024

Conversation

uladzimirdev
Copy link
Contributor

@uladzimirdev uladzimirdev commented Mar 27, 2024

Description

The node.js fix that affects jest performance was backported to 18.20, so we want to upgrade and get benefits from the tests speed

nodejs/node#51004

The fix is important as after node 16.* some regression related to reading and keeping files in memory was introduced in the node core and every next version of node made jest performance worse.

Related jest issue jestjs/jest#11956

Local test results running yarn jest --maxWorkers=4 --silent

version result
18.16.1 image
18.20.0 image

As per CI time - it can vary, but we can check trunk stats after 1–2 weeks

@uladzimirdev uladzimirdev changed the title node 18.20 Upgrade node to 18.20 Mar 27, 2024
@metabase-bot metabase-bot bot added .Team/QueryingComponents visual Run Percy visual testing labels Mar 27, 2024
Copy link

github-actions bot commented Mar 27, 2024

Codenotify: Notifying subscribers in CODENOTIFY files for diff cc1f9f0...5b94085.

Notify File(s)
@alxnddr frontend/src/metabase/visualizations/components/settings/ChartSettingLinkUrlInput.unit.spec.tsx

@uladzimirdev uladzimirdev requested a review from a team March 27, 2024 12:27
@@ -80,7 +80,7 @@ describe("ChartSettingLinkUrlInput", () => {
const options = await getOptions();

userEvent.click(options[1]);
input.blur();
userEvent.tab();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

will be reverted before merge. I used it only for triggering unit tests

Copy link
Member

Choose a reason for hiding this comment

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

@uladzimirdev Should we add .nvmrc to frontend_sources?

Copy link
Contributor

@kamilmielnik kamilmielnik left a comment

Choose a reason for hiding this comment

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

Awesome! 💯

@kamilmielnik kamilmielnik requested a review from a team March 27, 2024 12:43
Copy link

replay-io bot commented Mar 27, 2024

Status Complete ↗︎
Commit 7c8df49
Results
⚠️ 3 Flaky
2385 Passed

@uladzimirdev uladzimirdev enabled auto-merge (squash) March 27, 2024 13:48
@paoliniluis paoliniluis added the backport Automatically create PR on current release branch on merge label Mar 27, 2024
@uladzimirdev uladzimirdev merged commit 0c9e3d5 into master Mar 27, 2024
126 of 129 checks passed
@uladzimirdev uladzimirdev deleted the node-18.20 branch March 27, 2024 16:01
Copy link

@uladzimirdev Did you forget to add a milestone to the issue for this PR? When and where should I add a milestone?

github-actions bot pushed a commit that referenced this pull request Mar 27, 2024
* Upgrade node to 18.20

* Trigger CI

* Try 20 again

* Revert "Try 20 again"

This reverts commit 8f4b39e.

* Revert change

* Add nvmrc to the frontend_sources list
metabase-bot bot added a commit that referenced this pull request Mar 27, 2024
* Upgrade node to 18.20

* Trigger CI

* Try 20 again

* Revert "Try 20 again"

This reverts commit 8f4b39e.

* Revert change

* Add nvmrc to the frontend_sources list

Co-authored-by: Uladzimir Havenchyk <125459446+uladzimirdev@users.noreply.github.com>
oisincoveney pushed a commit that referenced this pull request Mar 28, 2024
* Upgrade node to 18.20

* Trigger CI

* Try 20 again

* Revert "Try 20 again"

This reverts commit 8f4b39e.

* Revert change

* Add nvmrc to the frontend_sources list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport Automatically create PR on current release branch on merge .Team/QueryingComponents visual Run Percy visual testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants