Skip to content

Add the option to run UI tests with the parallel frontend#153801

Merged
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
ywxt:parallel-test
Mar 17, 2026
Merged

Add the option to run UI tests with the parallel frontend#153801
rust-bors[bot] merged 2 commits intorust-lang:mainfrom
ywxt:parallel-test

Conversation

@ywxt
Copy link
Contributor

@ywxt ywxt commented Mar 13, 2026

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 @ 💬

This PR should work with #153797 together.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-compiletest Area: The compiletest test runner A-rustc-dev-guide Area: rustc-dev-guide A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants