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

chore: update to node v20 #871

Merged
merged 11 commits into from
Jul 8, 2024
Merged

chore: update to node v20 #871

merged 11 commits into from
Jul 8, 2024

Conversation

rompemoldes
Copy link
Contributor

@rompemoldes rompemoldes commented Jun 12, 2024

fixes part of KILTProtocol/ticket#3081

  • Makes sure the package.json specifies yarn version.
  • Upgrades the used node version on the .nvmrc to lts/Iron.
  • Makes sure the GitHub workflows uses node version 20.
    For this following must be set:
    • actions/checkout@v4
    • actions/setup-node@v4 with: either
      • node-version-file: 'package.json' or '.nvmrc'
      • node-version: '<Node.js version using SemVer or aliases > '
      • actions/download-artifact@v4
      • optional, but done: actions/cache@v4
    • aws-actions/configure-aws-credentials@v4
    • aws-actions/amazon-ecr-login@v2
  • Makes sure the Dockerfiles also use the node version 20.
    This means that the following must be set:
    • FROM node:20-alpine as builder
  • It also updates dependencies: mostly to latest minor, but major for ones with complains. Dropped.

@rompemoldes
Copy link
Contributor Author

run integration tests (esm) is failing ;(

@@ -58,7 +58,7 @@ jobs:

strategy:
matrix:
node-version: [18.x, 20.x]
node-version: [18.x, 20.x, 22.x]
Copy link
Contributor

@rflechtner rflechtner Jun 13, 2024

Choose a reason for hiding this comment

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

22 is not yet an active LTS, I'd say we make it optional for now. For this, add it to the 'include' instead

Copy link
Contributor Author

@rompemoldes rompemoldes Jun 17, 2024

Choose a reason for hiding this comment

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

Did it here 0404a5e.

Fix it here: c19d08a.

@rompemoldes
Copy link
Contributor Author

rompemoldes commented Jun 13, 2024 via email

@rompemoldes rompemoldes self-assigned this Jun 17, 2024
@rompemoldes
Copy link
Contributor Author

For some reason. If the node v22 is optional, an integration test fails. If it required, it passes.

@ntn-x2
Copy link
Member

ntn-x2 commented Jun 18, 2024

@kilted-andres as far as I could see, the error you were getting is unrelated to making Node 22 optional or not. It seems to be some sort of concurrency issue in the tests. I would suggest the following: update the PR to make Node 22 optional. If the integration tests fail, re-run only those again from the GitHub UI, then it should be good to go.

@rompemoldes
Copy link
Contributor Author

@ntn-x2 :

@kilted-andres as far as I could see, the error you were getting is unrelated to making Node 22 optional or not. It seems to be some sort of concurrency issue in the tests. I would suggest the following: update the PR to make Node 22 optional. If the integration tests fail, re-run only those again from the GitHub UI, then it should be good to go.

I tried that before "reverting" it.

Copy link
Contributor

@rflechtner rflechtner left a comment

Choose a reason for hiding this comment

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

LGTM now

@rompemoldes rompemoldes merged commit f79fa0b into develop Jul 8, 2024
15 checks passed
@rompemoldes rompemoldes deleted the xw/tie20nodes branch July 8, 2024 12:09
rflechtner pushed a commit that referenced this pull request Jan 16, 2025
@rflechtner rflechtner mentioned this pull request Jan 16, 2025
5 tasks
rflechtner added a commit that referenced this pull request Jan 16, 2025
* chore: replace all uses of tx.balances.transfer() (#903)
* ci: run tests on prs to v0-lts
* ci: update actions (backport of #871)
* fix: update playwright dep
* fix: rename Docker image (#902)
* chore: pull image via ecr pull cache (#921)
---------
Co-authored-by: Andrés <105802444+kilted-andres@users.noreply.github.com>
Co-authored-by: Antonio <antonio@kilt.io>
Co-authored-by: Gerawork Aynekulu <ggera@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants