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: don't cancel other unit tests when one fails #1471

Conversation

james-garner-canonical
Copy link
Contributor

A test can pass on one python/os version and fail on others, and it’s nice to see that in the outcome, rather than dig into cancelled tests which may or may not have hit the failing case.

Since unit tests are cheap and fast, we’re not really saving much by cancelling them – by the time one unit test run fails and asks the others to cancel, they’ll already have been spun up and run many of the tests, so cancelling them doesn't save much.

The pip-install and test-real-pebble jobs are faster than the test job, so this commit adds fail-fast: false to them too.

A test can pass on one python/os version and fail on others, and it’s
nice to see that in the outcome, rather than dig into cancelled tests
which may or may not have hit the failing case.

Since unit tests are cheap and fast, we’re not really saving much by
cancelling them – by the time one unit test run fails and asks the
others to cancel, they’ll already have been spun up and run many of
the tests, so canceling them doesn't save much.

The pip-install and test-real-pebble jobs are faster than the test job,
so this commit adds fail-fast: false to them too.

Note: test with macos-latest and python 3.10 is the slowest by far.
@james-garner-canonical
Copy link
Contributor Author

We can wait till after the release to merge this

@tonyandrewmeyer
Copy link
Contributor

We can wait till after the release to merge this

@james-garner-canonical want to push the big green button now? 😄

@dimaqq
Copy link
Contributor

dimaqq commented Dec 16, 2024

Or now :)

@james-garner-canonical james-garner-canonical merged commit 4e856c9 into canonical:main Dec 16, 2024
29 checks passed
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.

5 participants