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

ci: Switch to Node.js 20 by default. Add initial support for Node.js 22 #9501

Merged
merged 3 commits into from
May 24, 2024

Conversation

netroy
Copy link
Member

@netroy netroy commented May 23, 2024

Node.js 18.x went into maintenance October 2023, and 20.x has been the LTS since then.
We should switch over our setup also to default to 20.x, while still testing master CI on 18 and 22.

PS: This does not change the minimum required version of node.js. That'll stay 18 until it goes EOL on 2025-04-30.

Review / Merge checklist

  • PR title and summary are descriptive

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels May 23, 2024
with:
node-version: 18.x
node-version: 20.x
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we extract and reuse this step so we have a single spot to update?

Copy link
Member Author

Choose a reason for hiding this comment

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

I want to do that in a separate PR. Started a while ago, but ran into some issues.

@netroy netroy requested a review from ivov May 24, 2024 08:51
Copy link
Contributor

✅ All Cypress E2E specs passed

Copy link

cypress bot commented May 24, 2024

2 flaky tests on run #5121 ↗︎

0 352 0 0 Flakiness 2

Details:

🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project: n8n Commit: a40067f98d
Status: Passed Duration: 04:44 💡
Started: May 24, 2024 9:45 AM Ended: May 24, 2024 9:50 AM
Flakiness  5-ndv.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > should not retrieve remote options when required params throw errors Screenshots Video
Flakiness  24-ndv-paired-item.cy.ts • 1 flaky test

View Output Video

Test Artifacts
NDV > resolves expression with default item when input node is not parent, while still pairing items Test Replay Screenshots Video

Review all test suite changes for PR #9501 ↗︎

@netroy netroy merged commit 6ea8607 into master May 24, 2024
33 of 34 checks passed
@netroy netroy deleted the ci-node-20 branch May 24, 2024 10:32
MiloradFilipovic added a commit that referenced this pull request May 24, 2024
* master:
  feat(core): Upgrade all langchain related dependencies (#9504)
  ci: Switch to Node.js 20 by default. Add initial support for Node.js 22 (#9501)
  fix(core): Prevent re-parsing of dynamically loaded options (#9503)
  fix(core): Fix `level` in `warn` method of error reporter (no-changelog) (#9502)

# Conflicts:
#	packages/cli/package.json
#	packages/cli/src/requests.ts
#	pnpm-lock.yaml
@janober
Copy link
Member

janober commented May 30, 2024

Got released with n8n@1.44.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team Released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants