Skip to content

override build profile for bootstrap tests - #136157

Merged
bors merged 1 commit into
rust-lang:masterfrom
onur-ozkan:override-release-profile
Jan 31, 2025
Merged

override build profile for bootstrap tests#136157
bors merged 1 commit into
rust-lang:masterfrom
onur-ozkan:override-release-profile

Conversation

@onur-ozkan

Copy link
Copy Markdown
Contributor

Using the release profile for bootstrap self tests puts too much load on the CPU and makes it quite hot on x test bootstrap invocation for no good reason. It also makes the compilation take longer than usual (see #136048 (comment)). This change turns off the release flag for bootstrap self tests.

@rustbot

Copy link
Copy Markdown
Collaborator

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
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

@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 Jan 27, 2025
@Kobzol

Copy link
Copy Markdown
Member

This is a nice API that we can use to selectively force debug compilation for selected steps. You can r=me after CI is green :)

@rust-log-analyzer

This comment has been minimized.

@onur-ozkan
onur-ozkanforce-pushed the override-release-profile branch 2 times, most recently from 16f9a16 to e5778f0CompareJanuary 28, 2025 14:31
@onur-ozkan

Copy link
Copy Markdown
ContributorAuthor

@rustbot author (I don't like the current approach and will improve this further)

@rustbotrustbot 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-review Status: Awaiting review from the assignee but also interested parties. labels Jan 28, 2025
Signed-off-by: onur-ozkan <work@onurozkan.dev>
@onur-ozkan
onur-ozkanforce-pushed the override-release-profile branch from e5778f0 to 869bc2fCompareJanuary 29, 2025 11:49
@onur-ozkan

Copy link
Copy Markdown
ContributorAuthor

Looks much better now (see the diff).

@rustbot ready

@rustbotrustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Jan 29, 2025
@Kobzol

Copy link
Copy Markdown
Member

The clean command will no longer use --release after this, but that's probably not very important.

@bors r+

@bors

bors commented Jan 29, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit 869bc2f 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 Jan 29, 2025
@onur-ozkan

onur-ozkan commented Jan 30, 2025

Copy link
Copy Markdown
ContributorAuthor

Using precompiled LLVM seems to cause this problem. You can set NO_DOWNLOAD_CI_LLVM=1 as a workaround until we fix the bootstrapping issue.

Oops, wrong page 😄

bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 30, 2025
…iaskrgr
Rollup of 9 pull requests
Successful merges:
- rust-lang#135026 (Cast global variables to default address space)
- rust-lang#135475 (uefi: Implement path)
- rust-lang#135852 (Add `AsyncFn*` to `core` prelude)
- rust-lang#136004 (tests: Skip const OOM tests on aarch64-unknown-linux-gnu)
- rust-lang#136157 (override build profile for bootstrap tests)
- rust-lang#136180 (Introduce a wrapper for "typed valtrees" and properly check the type before extracting the value)
- rust-lang#136256 (Add release notes for 1.84.1)
- rust-lang#136271 (Remove minor future footgun in `impl Debug for MaybeUninit`)
- rust-lang#136288 (Improve documentation for file locking)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 6c9c698 into rust-lang:masterJan 31, 2025
@rustbotrustbot added this to the 1.86.0 milestone Jan 31, 2025
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Jan 31, 2025
Rollup merge of rust-lang#136157 - onur-ozkan:override-release-profile, r=Kobzol
override build profile for bootstrap tests
Using the release profile for bootstrap self tests puts too much load on the CPU and makes it quite hot on `x test bootstrap` invocation for no good reason. It also makes the compilation take longer than usual (see rust-lang#136048 (comment)). This change turns off the release flag for bootstrap self tests.
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.

6 participants

@onur-ozkan@rustbot@Kobzol@rust-log-analyzer@bors@Mark-Simulacrum