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

fix: flakey CI asdf node version #9934

Merged
merged 10 commits into from
Jun 19, 2024
Merged

fix: flakey CI asdf node version #9934

merged 10 commits into from
Jun 19, 2024

Conversation

leotm
Copy link
Member

@leotm leotm commented Jun 11, 2024

Description

Fix flakey CI
failing on Node v16
instead of using Node v20 (set in: package.json, bitrise.yml, .nvmrc)

$ yarn "setup"

yarn run v1.22.22
error metamask@7.24.0: The engine "node" is incompatible with this module. Expected version "^20.12.2". Got "16.20.2"
error Commands cannot run with an incompatible environment.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Run: provided yarn command failed: exit status 1
TEST_SUITE_FOLDER value is: ./e2e/specs/confirmations/*
TEST_SUITE_TAG value is: .*SmokeConfirmations.*
/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22762
    throw new Error(
          ^
Error: Error when performing the request to https://registry.npmjs.org/yarn/latest; for troubleshooting help, see https://github.com/nodejs/corepack#troubleshooting
    at fetch (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22762:11)
    at async fetchAsJson (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22776:20)
    ... 4 lines matching cause stack trace ...
    at async Object.runMain (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:24232:5) {
  [cause]: TypeError: globalThis.fetch is not a function
      at fetch (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22756:33)
      at async fetchAsJson (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22776:20)
      at async fetchLatestStableVersion (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22703:20)
      at async fetchLatestStableVersion2 (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:22826:14)
      at async Engine.getDefaultVersion (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:23433:23)
      at async Engine.executePackageManagerRequest (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:23525:47)
      at async Object.runMain (/root/.asdf/installs/nodejs/16.20.2/lib/node_modules/corepack/dist/lib/corepack.cjs:24232:5)
}

if flakiness continues, consider removing /root/.asdf/installs/nodejs/16.20.2

Related issues

Fixes: CI

Manual testing steps

Screenshots/Recordings

Before

After

Pre-merge author checklist

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).
  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

- remove asdf
- replace with bitrise-nvm-step

Co-authored-by: legobeat <legobeat@anonymous.com>
Copy link
Contributor

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

Remove unneeded parts
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.17%. Comparing base (b013c71) to head (41c0c14).
Report is 60 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9934      +/-   ##
==========================================
+ Coverage   47.24%   48.17%   +0.92%     
==========================================
  Files        1370     1399      +29     
  Lines       33304    33827     +523     
  Branches     3586     3668      +82     
==========================================
+ Hits        15736    16297     +561     
+ Misses      16607    16523      -84     
- Partials      961     1007      +46     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@legobeat legobeat added the Run Smoke E2E Triggers smoke e2e on Bitrise label Jun 11, 2024

This comment was marked as outdated.

@leotm leotm added Run Smoke E2E Triggers smoke e2e on Bitrise and removed Run Smoke E2E Triggers smoke e2e on Bitrise labels Jun 13, 2024
Copy link
Contributor

github-actions bot commented Jun 13, 2024

https://bitrise.io/ Bitrise

✅✅✅ pr_smoke_e2e_pipeline passed on Bitrise! ✅✅✅

Commit hash: bb0ec6a
Build link: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/1df0e3a9-41ea-4aca-b44d-1e8d7e8912c3

Note

  • You can kick off another pr_smoke_e2e_pipeline on Bitrise by removing and re-applying the Run Smoke E2E label on the pull request

@leotm leotm marked this pull request as ready for review June 13, 2024 08:06
@leotm leotm requested a review from a team as a code owner June 13, 2024 08:06
@leotm leotm requested review from a team, jpcloureiro and Cal-L and removed request for a team June 13, 2024 08:08
Copy link

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud

@leotm leotm requested a review from Daniel-Cross June 18, 2024 13:04
@leotm leotm changed the title fix: flakey asdf node version fix: CI flakey asdf node version Jun 19, 2024
@leotm leotm changed the title fix: CI flakey asdf node version fix: flakey CI asdf node version Jun 19, 2024
@leotm leotm merged commit 4b659a8 into main Jun 19, 2024
65 checks passed
@leotm leotm deleted the fix-flakey-asdf-node-version branch June 19, 2024 21:04
@github-actions github-actions bot locked and limited conversation to collaborators Jun 19, 2024
@gauthierpetetin gauthierpetetin added release-7.26.0 Issue or pull request that will be included in release 7.26.0 and removed release-7.28.0 labels Jun 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
release-7.26.0 Issue or pull request that will be included in release 7.26.0 Run Smoke E2E Triggers smoke e2e on Bitrise team-security
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants