Skip to content

ci: cancel parallel jobs if test fails #19521

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

Merged
merged 1 commit into from
Apr 14, 2025
Merged

Conversation

snprajwal
Copy link
Contributor

The analysis-stats job takes ~12m to run. This will run even if the tests fail - it's wasted CI minutes. Instead, we can short-circuit the entire workflow if the tests fail.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Apr 4, 2025
@ChayimFriedman2
Copy link
Contributor

Maybe we should just run it on release, perhaps with debug-assertions = true?

@Veykril
Copy link
Member

Veykril commented Apr 6, 2025

Maybe we should just run it on release, perhaps with debug-assertions = true?

Trying that out in #19532

@Veykril
Copy link
Member

Veykril commented Apr 6, 2025

Cancelling everything kind of defeats the point of some checks imo

@snprajwal
Copy link
Contributor Author

Yeah, but wouldn't you say that it's mandatory for tests to pass before we bother with the other jobs? There are also some jobs which will always run to completion simply because they're super fast (rustfmt, typos), and will finish before we reach the testing step.

@BenjaminBrienen
Copy link
Contributor

I think that it makes sense. Fail-fast saves CI time, and I think most people fix one thing at a time anyway.

@Veykril Veykril added this pull request to the merge queue Apr 14, 2025
Merged via the queue into rust-lang:master with commit 4d6f9e7 Apr 14, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants