Skip to content

Conversation

@fluiddot
Copy link
Contributor

@fluiddot fluiddot commented Sep 20, 2021

Fixes the error nvm: command not found that is shown in some steps of the CircleCI workflows like "Check correctness":
https://app.circleci.com/pipelines/github/wordpress-mobile/gutenberg-mobile/14186/workflows/9eb80d13-b000-4ad3-b494-b2999c204598/jobs/77249

The issue was caused when running bash scripts, as far as I checked, before executing the script, it was running the command nvm use default that is set in the Bash environment ($BASH_ENV) but failed due to not having the command nvm defined. This was fixed by adding the NVM loading command to the Bash environment that assures that NVM will be always available.

To test:
Verify that all CI checks pass and that the error is no longer shown in the logs.

Last "Check correctness" run job:
https://app.circleci.com/pipelines/github/wordpress-mobile/gutenberg-mobile/14161/workflows/a43133cd-e79f-43d4-9b27-97998319ab71/jobs/77133?invite=true#step-110-3

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@fluiddot fluiddot added the [Type] Bug Something isn't working label Sep 20, 2021
@fluiddot fluiddot changed the title Fix/circleci nvm not found Fix error "nvm not found" in CircleCI workflows Sep 20, 2021
@fluiddot fluiddot requested review from ceyhun and hypest September 20, 2021 09:03
@peril-wordpress-mobile
Copy link

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@fluiddot fluiddot requested a review from hypest September 20, 2021 13:43
Copy link
Contributor

@hypest hypest left a comment

Choose a reason for hiding this comment

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

LGTM!

@hypest hypest merged commit cc21ac9 into develop Sep 20, 2021
@hypest hypest deleted the fix/circleci-nvm-not-found branch September 20, 2021 14:57
@mkevins
Copy link
Contributor

mkevins commented Sep 20, 2021

Thanks for addressing this Carlos!

@fluiddot fluiddot added this to the 1.63.0 (18.4) milestone Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Type] Bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants