Conversation
|
CI fails due to UI tests, they should be compiled with |
|
Wasn't there some flag that reordered the diagnostics, or made compiletest to compare them in an order agnostic way? If at all possible, I think that it would be better if we actually ran (at least most) UI tests under the parallel frontend. |
We do run them, on the
Yeah, but that's not enough for some tests, and those tests are disabled with |
|
Can't we solve blessing by forcing 1 frontend thread when |
|
I'd rather keep the things as is, it's just good to have precise snapshot testing running on something reproducible. |
|
I don't want to block this PR on that, but I find it a bit concerning that we aren't testing a bunch of nightly stuff on our CI. We already don't test the next trait solver, and now we also wouldn't be testing the parallel frontend, even though both would be enabled on nightly. I'm happy to do the compiletest/bootstrap work to enable running the parallel frontend everywhere. Do you want that to be the default eventually (and perhaps have a separate one-off job that runs things sequentially, like we have the parallel job today)? |
For ui tests ( |
|
If there are enough CI resources we could also run rustc twice on every ui test - once in the default mode (if it's parallel) and once in single-threaded mode for precise
So this ^^^ would mean limiting the precise |
|
Maybe I misunderstood how the current tooling works. I thought that:
|
This is correct.
I think that we do still need them, at least while the single-threaded compiler is the default. |
Although that infra currently compares the output on per-line basis, not on per-diagnostic, so technically the diagnostics can be interspersed and messed up entirely, and the check will still pass. |
dbe31dc to
dc90826
Compare
This comment has been minimized.
This comment has been minimized.
3003fd9 to
77bff57
Compare
This comment has been minimized.
This comment has been minimized.
|
Interesting. The |
… r=jieyouxu Add `stable_rustc` helper in `run-make-support` To help with rust-lang#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
… r=jieyouxu Add `stable_rustc` helper in `run-make-support` To help with rust-lang#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
… r=jieyouxu Add `stable_rustc` helper in `run-make-support` To help with rust-lang#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
4baafa1 to
a3a05c2
Compare
|
Some changes occurred in src/tools/compiletest cc @jieyouxu The run-make-support library was changed cc @jieyouxu
cc @rust-lang/clippy |
|
Let's test everything, as there's a high chance that there would be more CI failures. @bors try jobs=* nolimit |
This comment has been minimized.
This comment has been minimized.
…r=<try> Use 2 parallel frontend threads by default on the nightly and dev channel try-job: * try-nolimit
|
The job Click to see the possible cause of the failure (guessed by this bot) |
|
💔 Test for da8f090 failed: CI. Failed jobs:
|
Add `stable_rustc` helper in `run-make-support` To help with rust-lang/rust#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang/rust#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
Add `stable_rustc` helper in `run-make-support` To help with rust-lang/rust#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang/rust#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
Add `stable_rustc` helper in `run-make-support` To help with rust-lang/rust#162848 and https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Testing.20stable.20vs.20nightly.20behavior.20in.20UI.20tests/with/626329887. For rust-lang/rust#162848, I need to avoid passing `-Zthreads` when the compiler is supposed to act like `stable`. This refactoring makes that simpler; I will only add that flag to `Rustc::new` and not `Rustc::stable`. r? jieyouxu
View all comments
Part of https://rust-lang.zulipchat.com/#narrow/channel/131828-t-compiler/topic/Enabling.20the.20parallel.20frontend.20by.20default.20on.20nightly/with/624597688.
UI tests will still use one frontend thread by default.
CC @petrochenkov