-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Running ./x test compiler
only runs unit tests for rustc_codegen_cranelift
#134916
Comments
Is this only locally or are tests now also ignored on CI? This must be a somewhat recent regression, I remember this working before; some bisection would be good I guess. |
This comment has been minimized.
This comment has been minimized.
I think this only affects manually running |
I haven't done a bisection, but based on my fix, it seems likely that this has been broken ever since cg_clif tests were added to bootstrap. |
i suspect this is a new regression since bootstrap started supporting prefixes as well as suffixes. cc #133492, @MarcoIeni |
In CI we run tests with the
It might be! (I haven't understood the bug completely, I just checked this issue quickly). A quick remediation might be only applying the login introduced in that PR only to |
Having |
bootstrap: Make `./x test compiler` actually run the compiler unit tests Fixes rust-lang#134916.
I can confirm that reverting #133492 seems to fix this, without having to reorder the test steps as in #134919 (though there's no harm in reordering them either, so it's fine for that PR to land). So this suggests that a revert would probably be a good idea in the short term, though we would want @MarcoIeni 's input on how to avoid breaking #134427. |
Rollup merge of rust-lang#134919 - Zalathar:x-test-compiler, r=jieyouxu bootstrap: Make `./x test compiler` actually run the compiler unit tests Fixes rust-lang#134916.
In theory, this command should run
cargo test
for all of the compiler crates incompiler/
:Instead, it just prints this message and exits successfully:
This seems to be because
test::CodegenCranelift::should_run
registerscompiler/rustc_codegen_cranelift
as its path, which has the side-effect of hijackingcompiler
in bootstrap's wacky path-resolution logic. That preventstest::CrateLibrustc
from running, which is what would run the unit tests for the vast majority of compiler crates.The same problem is also theoretically present for
test::CodegenGCC
, though currently the cranelift step takes priority for whatever reason.The text was updated successfully, but these errors were encountered: