Add the option to run UI tests with the parallel frontend#153801
Add the option to run UI tests with the parallel frontend#153801rust-bors[bot] merged 2 commits intorust-lang:mainfrom
Conversation
This comment has been minimized.
This comment has been minimized.
|
This may be a bit silly, but to avoid many unnecessary changes in stderr files you could put the |
|
What exactly failures are ignored by Right now |
failures would produce different errors so that |
tests/ui/async-await/mutually-recursive-async-impl-trait-type.rs
Outdated
Show resolved
Hide resolved
actual: The difference is from alloc ids. Should we mask all of them? |
|
It may be possible to normalize them instead of ignoring. |
67ebcd0 to
414d715
Compare
| @@ -1,5 +1,5 @@ | |||
| //@ dont-require-annotations: NOTE | |||
|
|
|||
| //@ ignore-parallel-frontend different alloc ids | |||
There was a problem hiding this comment.
I will add normalization rules if it's confirmed.
| //@ stderr-per-bitwidth | ||
| //@ dont-require-annotations: NOTE | ||
|
|
||
| //@ ignore-parallel-frontend different alloc ids |
There was a problem hiding this comment.
Although some consts tests didn't get failed in my environment, I marked them as ignored due to alloc ids in stderr.
| //@ compile-flags: --force-warn unused_mut | ||
| //@ check-pass | ||
|
|
||
| //@ ignore-parallel-frontend the message `requested on the ...` appears in different lines |
There was a problem hiding this comment.
The message is reported on two different source lines. Maybe we can solve it by comparison approaches?
| //@ compile-flags: -Z query-dep-graph | ||
|
|
||
| //@ ignore-parallel-frontend dep graph | ||
| #![feature(rustc_attrs)] |
There was a problem hiding this comment.
The dep graph tests failed on some rustc_then_this_would_need attributes.
Do you know the detail? @zetanumbers @Zoxc
There was a problem hiding this comment.
I was able to reproduce a failure on main. It seems to be non-deterministic. Perhaps #152621 helps. I haven't looked into the issues with -Z query-dep-graph.
d9c6a67 to
5aeb919
Compare
|
@rustbot ready |
|
Some changes occurred in src/tools/compiletest cc @jieyouxu The rustc-dev-guide subtree was changed. If this PR only touches the dev guide consider submitting a PR directly to rust-lang/rustc-dev-guide otherwise thank you for updating the dev guide with your changes. |
|
Just as I've said before in #t-compiler/parallel-rustc > Add the parallel front-end test suite @ 💬, I would like to see individual parallel rustc tests to be done sequentially. This way each rustc process would utilize CPU cores without much of context switching and as I believe reaching better parallel front-end coverage. |
|
r=me after removing the bless condition from All the possible improvements like #153801 (comment) and #153801 (comment) can be done once the general support is merged and the tests start running on CI. |
some new failures under the parallel frontend due to the new note |
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r+ |
Add the option to run UI tests with the parallel frontend This PR adds two arguments for tests: 1. `--parallel-frontend-threads`: specify `-Zthread` to compile test case (currently UI tests only) 2. `--iteration-count`: the number of times to run each test Also, due to the non-deterministic diagnostic orders and cycle errors, this PR adds the directive `//@ ignore-parallel-frontend` to ignore tests with cycle error when the parallel-frontend is enabled (by `--parallel-frontend-threads`) and enables `//@ compare-output-by-lines` by default. Context: [#t-compiler/parallel-rustc > Add the parallel front-end test suite @ 💬](https://rust-lang.zulipchat.com/#narrow/channel/187679-t-compiler.2Fparallel-rustc/topic/Add.20the.20parallel.20front-end.20test.20suite/near/578781369) This PR should work with rust-lang#153797 together.
Rollup of 7 pull requests Successful merges: - #153801 (Add the option to run UI tests with the parallel frontend) - #153967 (Tweak wording of failed predicate in inference error) - #152968 (Flip "region lattice" in RegionKind doc comment) - #153531 (Fix LegacyKeyValueFormat report from docker build: various) - #153709 (Fix hypothetical ICE in `variances_of`) - #153884 (test `classify-runtime-const` for `f16`) - #153946 (dissolve `tests/ui/cross`)
…uwer Rollup of 14 pull requests Successful merges: - #153972 (stdarch subtree update) - #153801 (Add the option to run UI tests with the parallel frontend) - #153959 (Fix non-module `parent_module` in stripped cfg diagnostics) - #153967 (Tweak wording of failed predicate in inference error) - #152968 (Flip "region lattice" in RegionKind doc comment) - #153531 (Fix LegacyKeyValueFormat report from docker build: various) - #153622 (remove concept of soft-unstable features) - #153709 (Fix hypothetical ICE in `variances_of`) - #153884 (test `classify-runtime-const` for `f16`) - #153894 (Point at unit structs on foreign crates in type errors when they are the pattern of a binding) - #153920 (improve `#[track_caller]` invalid ABI error) - #153946 (dissolve `tests/ui/cross`) - #153965 (Fix minor kasan bugs) - #153991 (Small report_cycle refactor)
…uwer Rollup of 14 pull requests Successful merges: - rust-lang/rust#153972 (stdarch subtree update) - rust-lang/rust#153801 (Add the option to run UI tests with the parallel frontend) - rust-lang/rust#153959 (Fix non-module `parent_module` in stripped cfg diagnostics) - rust-lang/rust#153967 (Tweak wording of failed predicate in inference error) - rust-lang/rust#152968 (Flip "region lattice" in RegionKind doc comment) - rust-lang/rust#153531 (Fix LegacyKeyValueFormat report from docker build: various) - rust-lang/rust#153622 (remove concept of soft-unstable features) - rust-lang/rust#153709 (Fix hypothetical ICE in `variances_of`) - rust-lang/rust#153884 (test `classify-runtime-const` for `f16`) - rust-lang/rust#153894 (Point at unit structs on foreign crates in type errors when they are the pattern of a binding) - rust-lang/rust#153920 (improve `#[track_caller]` invalid ABI error) - rust-lang/rust#153946 (dissolve `tests/ui/cross`) - rust-lang/rust#153965 (Fix minor kasan bugs) - rust-lang/rust#153991 (Small report_cycle refactor)
…uwer Rollup of 14 pull requests Successful merges: - rust-lang/rust#153972 (stdarch subtree update) - rust-lang/rust#153801 (Add the option to run UI tests with the parallel frontend) - rust-lang/rust#153959 (Fix non-module `parent_module` in stripped cfg diagnostics) - rust-lang/rust#153967 (Tweak wording of failed predicate in inference error) - rust-lang/rust#152968 (Flip "region lattice" in RegionKind doc comment) - rust-lang/rust#153531 (Fix LegacyKeyValueFormat report from docker build: various) - rust-lang/rust#153622 (remove concept of soft-unstable features) - rust-lang/rust#153709 (Fix hypothetical ICE in `variances_of`) - rust-lang/rust#153884 (test `classify-runtime-const` for `f16`) - rust-lang/rust#153894 (Point at unit structs on foreign crates in type errors when they are the pattern of a binding) - rust-lang/rust#153920 (improve `#[track_caller]` invalid ABI error) - rust-lang/rust#153946 (dissolve `tests/ui/cross`) - rust-lang/rust#153965 (Fix minor kasan bugs) - rust-lang/rust#153991 (Small report_cycle refactor)
This PR adds two arguments for tests:
--parallel-frontend-threads: specify-Zthreadto compile test case (currently UI tests only)--iteration-count: the number of times to run each testAlso, due to the non-deterministic diagnostic orders and cycle errors, this PR adds the directive
//@ ignore-parallel-frontendto ignore tests with cycle error when the parallel-frontend is enabled (by--parallel-frontend-threads) and enables//@ compare-output-by-linesby default.Context: #t-compiler/parallel-rustc > Add the parallel front-end test suite @ 💬
This PR should work with #153797 together.