-
Notifications
You must be signed in to change notification settings - Fork 13k
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
no-fail-fast support for tool testsuites #108264
no-fail-fast support for tool testsuites #108264
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @ozkanonur (or someone else) soon. Please see the contribution instructions for more information. |
I have tested this by enforcing some tests to fail by adding an |
Changing behaviour of test suite in tool module doesn't seem right. It also duplicates the control testing to multiple modules which isn't really good. You can pass |
@rustbot author |
5db2939
to
83ae6ef
Compare
This commit adds `--no-fail-fast` flag to each `cargo test` command in each tool Step trait implementation. Fixes rust-lang#108261
83ae6ef
to
2f16355
Compare
@ozkanonur thanks for the input, I've made the changes you recommended. Let me make sure I understood the reasoning behind your advice. IIUIC the changes related to the testsuites should be placed always in |
We already pass the test flags in test module, if we do it in other modules as well, it would be not good for us to work/debug on it. And yes, creating |
This looks good for now, we can do the code unification in seperated PR pointing the related issue. Thank you for the contribution. |
@bors r+ rollup |
…llaumeGomez Rollup of 8 pull requests Successful merges: - rust-lang#108110 (Move some `InferCtxt` methods to `EvalCtxt` in new solver) - rust-lang#108168 (Fix ICE on type alias in recursion) - rust-lang#108230 (Convert a hard-warning about named static lifetimes into lint "unused_lifetimes") - rust-lang#108239 (Fix overlapping spans in removing extra arguments) - rust-lang#108246 (Add an InstCombine for redundant casts) - rust-lang#108264 (no-fail-fast support for tool testsuites) - rust-lang#108310 (rustdoc: Fix duplicated attributes for first reexport) - rust-lang#108318 (Remove unused FileDesc::get_cloexec) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This commit adds a change to pass "--no-fail-fast" flag tocargo test
insidetool::prepare_tool_cargo()
so there is no need to do it manually in eachStep
trait implementation in src/bootstrap/test.rs.Also, removes the flag from test.rs where prepare_tool_cargo() is called so cargo doesn't complain because the flag has been passed twice.This commit adds
--no-fail-fast
flag to eachcargo test
command in each tool Step trait implementation (
miri
,rustfmt
andclippy
).Fixes #108261