Skip to content

Consolidate LLVM skip in check builds in bootstrap - #161853

Merged
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
Kobzol:bootstrap-llvm-env
Aug 28, 2026
Merged

Consolidate LLVM skip in check builds in bootstrap#161853
rust-bors[bot] merged 4 commits into
rust-lang:mainfrom
Kobzol:bootstrap-llvm-env

Conversation

@Kobzol

@Kobzol Kobzol commented Aug 27, 2026

Copy link
Copy Markdown
Member

Before it was distributed amongst two places, which made it harder to follow the logic, and the RUST_CHECK logic was also applied for anything being built, even though it is only relevant for rustc itself. This PR centralizes the handling, and also enables it for doc builds.

So ./x doc compiler now doesn't require building LLVM 🎉

r? jieyouxu

@rustbot rustbot 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 Aug 27, 2026

@jieyouxu jieyouxu 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, you can r=me after (or before) #161290

View changes since this review

@jieyouxu

Copy link
Copy Markdown
Member

@bors rollup=never note="bootstrap llvm skip logic"

@Kobzol

Kobzol commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@bors r=jieyouxu

Let's try to land this and see if there aren't any issues.

@rust-bors

rust-bors Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 9bff2d7 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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 Aug 27, 2026
@rust-log-analyzer

This comment has been minimized.

@Kobzol

Kobzol commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@bors r-

@rust-bors rust-bors Bot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 27, 2026
@rust-bors

rust-bors Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

This pull request was unapproved.

View changes since this unapproval

@Kobzol

Kobzol commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

Surprise surprise, I didn't run bootstrap tests.

Comment thread src/bootstrap/src/core/builder/tests.rs
@Kobzol

Kobzol commented Aug 27, 2026

Copy link
Copy Markdown
Member Author

@bors r=jieyouxu

@rust-bors

rust-bors Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 45f342d has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors Bot 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Aug 27, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors Bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Aug 28, 2026
@rust-bors

rust-bors Bot commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

☀️ Test successful - CI
Approved by: jieyouxu
Duration: 3h 29m 10s
Pushing 17fd5b8 to main...

@rust-bors
rust-bors Bot merged commit 17fd5b8 into rust-lang:main Aug 28, 2026
14 checks passed
@rustbot rustbot added this to the 1.100.0 milestone Aug 28, 2026
@github-actions

Copy link
Copy Markdown
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 344f790 (parent) -> 17fd5b8 (this PR)

Test differences

Show 3 test diffs

3 doctest diffs were found. These are ignored, as they are noisy.

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard 17fd5b8a37b6667b6cc137f3cc35f09759768a3b --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. i686-msvc-2: 1h 18m -> 2h 4m (+59.2%)
  2. i686-gnu-nopt-2: 1h 33m -> 2h 17m (+46.9%)
  3. x86_64-gnu-llvm-21-3: 1h 13m -> 1h 47m (+45.9%)
  4. x86_64-gnu-stdlib-semver-check: 18m 4s -> 11m 29s (-36.4%)
  5. pr-check-1: 41m 25s -> 28m (-32.4%)
  6. i686-msvc-1: 2h 12m -> 2h 54m (+31.8%)
  7. x86_64-gnu-gcc-core-tests: 17m 50s -> 12m 10s (-31.8%)
  8. dist-x86_64-musl: 2h 18m -> 1h 34m (-31.6%)
  9. x86_64-msvc-2: 1h 56m -> 2h 30m (+29.0%)
  10. dist-x86_64-solaris: 1h 21m -> 1h 45m (+28.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
Copy Markdown
Collaborator

Finished benchmarking commit (17fd5b8): comparison URL.

Overall result: ❌✅ regressions and improvements - no action needed

@rustbot label: -perf-regression

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

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

Max RSS (memory usage)

Results (primary 2.6%, secondary 0.5%)

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

mean range count
Regressions ❌
(primary)
7.7% [7.7%, 7.7%] 1
Regressions ❌
(secondary)
3.7% [1.3%, 8.9%] 9
Improvements ✅
(primary)
-2.5% [-2.5%, -2.5%] 1
Improvements ✅
(secondary)
-4.3% [-5.2%, -2.1%] 6
All ❌✅ (primary) 2.6% [-2.5%, 7.7%] 2

Cycles

Results (secondary -14.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
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-14.0% [-24.3%, -3.0%] 8
All ❌✅ (primary) - - 0

Binary size

This perf run didn't have relevant results for this metric.

Bootstrap: 475.673s -> 474.378s (-0.27%)
Artifact size: 403.60 MiB -> 402.85 MiB (-0.19%)

@Kobzol
Kobzol deleted the bootstrap-llvm-env branch August 28, 2026 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-testsuite Area: The testsuite used to check the correctness of rustc merged-by-bors This PR was explicitly merged by bors. 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.

5 participants