Skip to content

bootstrap: Split out a separate ./x test bootstrap-py step - #148459

Merged
bors merged 1 commit into
rust-lang:masterfrom
Zalathar:bootstrap-py
Nov 4, 2025
Merged

bootstrap: Split out a separate ./x test bootstrap-py step#148459
bors merged 1 commit into
rust-lang:masterfrom
Zalathar:bootstrap-py

Conversation

@Zalathar

Copy link
Copy Markdown
Member

While testing changes to bootstrap, I was annoyed by the fact that ./x test bootstrap spams a bunch of mysterious output to the console.

That output turns out to come from bootstrap_test.py, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap.

This PR therefore pulls them out into a separate test step that can be run with ./x test bootstrap-py.

When working on the Rust parts of bootstrap, it's unhelpful for
`./x test bootstrap` to also run Python unit tests.
@rustbotrustbot added A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) labels Nov 4, 2025
@rustbot

Copy link
Copy Markdown
Collaborator

r? @clubby789

rustbot has assigned @clubby789.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@Kobzol

Copy link
Copy Markdown
Member

r? @Kobzol

@rustbotrustbot assigned Kobzol and unassigned clubby789Nov 4, 2025

@KobzolKobzol left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I was also annoyed by them :)

View changes since this review

let host = builder.config.host_target;
let build_compiler = builder.compiler(0, host);
fn should_run(run: ShouldRun<'_>) -> ShouldRun<'_> {
// Bootstrap tests might not be perfectly self-contained and can depend

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the bootstrap Python tests should be fine locally, but they are IMO not very useful anyway, so let's just run them only on CI.

@Kobzol

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 4, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 948bed2 has been approved by Kobzol

It is now in the queue for this repository.

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 4, 2025
@ZalatharZalathar mentioned this pull request Nov 4, 2025
bors added a commit that referenced this pull request Nov 4, 2025
Rollup of 4 pull requests
Successful merges:
- #144529 (Add `#[rustc_pass_indirectly_in_non_rustic_abis]`)
- #147017 (FCW for repr(C) enums whose discriminant values do not fit into a c_int or c_uint)
- #148459 (bootstrap: Split out a separate `./x test bootstrap-py` step)
- #148468 (add logging to `fudge_inference_if_ok`)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 0719287 into rust-lang:masterNov 4, 2025
11 checks passed
@rustbotrustbot added this to the 1.93.0 milestone Nov 4, 2025
rust-timer added a commit that referenced this pull request Nov 4, 2025
Rollup merge of #148459 - Zalathar:bootstrap-py, r=Kobzol
bootstrap: Split out a separate `./x test bootstrap-py` step
While testing changes to bootstrap, I was annoyed by the fact that `./x test bootstrap` spams a bunch of mysterious output to the console.
That output turns out to come from `bootstrap_test.py`, which runs unit tests for the Python parts of bootstrap. Those tests are (presumably) useful, but they don't add value when working on the Rust parts of bootstrap.
This PR therefore pulls them out into a separate test step that can be run with `./x test bootstrap-py`.
@Zalathar
Zalathar deleted the bootstrap-py branch November 4, 2025 22:21
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuiteArea: The testsuite used to check the correctness of rustcS-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-bootstrapRelevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@Zalathar@rustbot@Kobzol@bors@clubby789