Skip to content

Conversation

Shourya742
Copy link
Contributor

@Shourya742 Shourya742 commented Sep 15, 2025

This PR enables the bootstrap self-test to run via cargo test. I have removed the detect_src_and_out test for now, but it will be reintroduced in a follow-up PR where all bootstrap tests will be migrated to use testCtx.

r? @Kobzol

try-job: aarch64-apple

@rustbot
Copy link
Collaborator

rustbot commented Sep 15, 2025

This PR modifies src/bootstrap/src/core/config.

If appropriate, please update CONFIG_CHANGE_HISTORY in src/bootstrap/src/utils/change_tracker.rs.

@rustbot rustbot added 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 Sep 15, 2025
@rust-log-analyzer

This comment has been minimized.

@Kobzol
Copy link
Member

Kobzol commented Sep 15, 2025

It's really cool being able to debug bootstrap tests 🤩 However, the source directory is mounted as read-only on CI, I think that either we'll have to port more tests over to TestCtx first, or keep the old test hacks.

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thank you, this is a great cleanup. Left some comments.

View changes since this review

@Shourya742 Shourya742 force-pushed the make-cargo-test-work-for-self-test branch from 9eb758a to 33e262e Compare September 21, 2025 15:29
@rustbot
Copy link
Collaborator

rustbot commented Sep 21, 2025

This PR was rebased onto a different master 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.

Copy link
Member

@Kobzol Kobzol left a comment

Choose a reason for hiding this comment

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

Thanks, that's pretty much how I imagined it.

View changes since this review

@bors bors added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 24, 2025
@rust-log-analyzer

This comment has been minimized.

@Kobzol
Copy link
Member

Kobzol commented Sep 25, 2025

@bors2 delegate=try

@rust-bors
Copy link

rust-bors bot commented Sep 25, 2025

✌️ @Shourya742, you can now perform try builds on this pull request!

You can now post @bors2 try to start a try build.

@Kobzol
Copy link
Member

Kobzol commented Sep 25, 2025

@bors try

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 25, 2025
…, r=<try>

Make cargo test work for  bootstrap self test

try-job: aarch64-apple
@rust-bors
Copy link

rust-bors bot commented Sep 25, 2025

☀️ Try build successful (CI)
Build commit: fb8a940 (fb8a940b60076e6c217f88f7416f8f71d58d1302, parent: bbcbc7818ba27c951f9fd881fd3ec4cd5123b741)

@Kobzol
Copy link
Member

Kobzol commented Sep 25, 2025

@bors try

@rust-bors

This comment has been minimized.

rust-bors bot added a commit that referenced this pull request Sep 25, 2025
…, r=<try>

Make cargo test work for  bootstrap self test

try-job: aarch64-apple
@rust-log-analyzer

This comment has been minimized.

@Kobzol Kobzol force-pushed the make-cargo-test-work-for-self-test branch from 04dec14 to 191c7ed Compare September 25, 2025 16:05
@Kobzol
Copy link
Member

Kobzol commented Sep 25, 2025

@bors r+

Let's try again :)

@bors
Copy link
Collaborator

bors commented Sep 25, 2025

📌 Commit 191c7ed has been approved by Kobzol

It is now in the queue for this repository.

@bors bors 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 Sep 25, 2025
@rust-bors
Copy link

rust-bors bot commented Sep 25, 2025

☀️ Try build successful (CI)
Build commit: 88604c7 (88604c718431b44109a5586a67c0b39b50df56d9, parent: 7cfd7d328b14b936c7ffede92cacebe8557c6388)

@bors
Copy link
Collaborator

bors commented Sep 26, 2025

⌛ Testing commit 191c7ed with merge a885811...

@bors
Copy link
Collaborator

bors commented Sep 26, 2025

☀️ Test successful - checks-actions
Approved by: Kobzol
Pushing a885811 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Sep 26, 2025
@bors bors merged commit a885811 into rust-lang:master Sep 26, 2025
11 checks passed
@rustbot rustbot added this to the 1.92.0 milestone Sep 26, 2025
Copy link
Contributor

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 5b9007b (parent) -> a885811 (this PR)

Test differences

Show 1 test diff

Stage 0

  • core::config::tests::detect_src_and_out: pass -> [missing] (J0)

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard a8858111044a9391ac7558f969d3bf62ef43222d --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. dist-aarch64-apple: 6465.7s -> 8584.1s (32.8%)
  2. dist-x86_64-apple: 7302.6s -> 6007.1s (-17.7%)
  3. aarch64-msvc-2: 4904.1s -> 5532.7s (12.8%)
  4. dist-powerpc64le-linux-gnu: 5776.8s -> 5122.2s (-11.3%)
  5. dist-various-2: 2136.7s -> 2362.4s (10.6%)
  6. x86_64-gnu-llvm-20: 2187.7s -> 2415.8s (10.4%)
  7. test-various: 4444.0s -> 4827.3s (8.6%)
  8. dist-x86_64-windows-gnullvm: 5178.1s -> 4734.5s (-8.6%)
  9. pr-check-2: 2325.1s -> 2156.7s (-7.2%)
  10. aarch64-gnu-debug: 3796.7s -> 4060.1s (6.9%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (a885811): comparison URL.

Overall result: no relevant changes - no action needed

@rustbot label: -perf-regression

Instruction count

This benchmark run did not return any relevant results for this metric.

Max RSS (memory usage)

Results (primary 3.1%, secondary 2.3%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
3.1% [3.1%, 3.1%] 1
Regressions ❌
(secondary)
2.3% [2.3%, 2.3%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) 3.1% [3.1%, 3.1%] 1

Cycles

Results (primary -4.2%, secondary -6.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
- - 0
Improvements ✅
(primary)
-4.2% [-10.3%, -1.7%] 22
Improvements ✅
(secondary)
-6.7% [-20.1%, -0.9%] 19
All ❌✅ (primary) -4.2% [-10.3%, -1.7%] 22

Binary size

Results (secondary 0.0%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.0% [0.0%, 0.0%] 1
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
- - 0
All ❌✅ (primary) - - 0

Bootstrap: 478.827s -> 470.315s (-1.78%)
Artifact size: 388.10 MiB -> 388.10 MiB (0.00%)

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

Labels

merged-by-bors This PR was explicitly merged by bors. 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)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants