Skip to content

Conversation

gagik
Copy link
Collaborator

@gagik gagik commented Feb 11, 2025

Currently even if a lerna task fails, lerna still exits with success and so does the CI task.

The cause is the same as mongodb-js/mongosh#1592 with NPM not sending the correct exit code. NPM 9 fixed this so this updates to that.

Example of a task which will actually fail now: https://github.com/mongodb-js/devtools-shared/actions/runs/13263792191/job/37026159185?pr=508

@gagik gagik force-pushed the gagik/fix-tests branch 3 times, most recently from 79a424a to 87505aa Compare February 11, 2025 12:46
@gagik gagik force-pushed the gagik/fix-tests branch 4 times, most recently from ebf3f87 to 99cb569 Compare February 11, 2025 13:15
@gagik gagik changed the title fix: attempt to correct CI runs fix(ci): use [email protected] to avoid failing silently Feb 11, 2025
@@ -14,6 +14,10 @@ on:
permissions:
contents: read # we just need to checkout the repo

concurrency:
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Drive-by improvement to cancel running tasks if a new commit is pushed

Currently even if a lerna npm task fails, lerna still exits with success and so does the CI task. This is because NPM v8 not sending the correct exit code. NPM v9 fixed this so this updates to that.
@gagik gagik marked this pull request as ready for review February 11, 2025 13:22
@gagik gagik merged commit 4dfcd8c into main Feb 11, 2025
6 checks passed
@gagik gagik deleted the gagik/fix-tests branch February 11, 2025 16:04
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.

2 participants