Skip to content

ci: fix explanation why LLVM download is disabled for windows-gnu - #133266

Merged
bors merged 1 commit into
rust-lang:masterfrom
mati865:windows-gnu-llvm-download
Feb 2, 2025
Merged

ci: fix explanation why LLVM download is disabled for windows-gnu#133266
bors merged 1 commit into
rust-lang:masterfrom
mati865:windows-gnu-llvm-download

Conversation

@mati865

@mati865mati865 commented Nov 20, 2024

Copy link
Copy Markdown
Member

Continuation of #132781

@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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Nov 20, 2024
@mati865

Copy link
Copy Markdown
MemberAuthor

Basically my plan is to do try build with dist so the artifacts get uploaded and then do another try but with test jobs.
If that fails, I think we should merge dist builders change only and then in later PR do the same for test jobs.

@Kobzol

Copy link
Copy Markdown
Member

I would personally prefer to disable LLVM download on the dist runners, to exercise the LLVM build path regularly.

@mati865

Copy link
Copy Markdown
MemberAuthor

I think dist runners always build LLVM artifacts for download (at least that appears to be the case in #132781) despite using the same environment variable.
Even if that's not the case, changing it would be a bigger change that affects all platforms.

@Kobzol

Copy link
Copy Markdown
Member

Yeah, just to clarify, what I meant was that we shouldn't change the behavior on dist runners - they should always build.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup=never

@bors

bors commented Nov 24, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 81f25bb has been approved by Mark-Simulacrum

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 24, 2024
@Kobzol

Copy link
Copy Markdown
Member

FWIW, this PR currently still enables LLVM download for the dist- builders. Not sure if that works, or if we even want to enable that.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Does it actually do that? AFAICT, the NO_DOWNLOAD_CI_LLVM there was just a no-op -- we don't ever read that outside of non-dist builds afaict (

rust/src/ci/run.sh

Lines 165 to 185 in 481b5fa

# We enable this for non-dist builders, since those aren't trying to produce
# fresh binaries. We currently don't entirely support distributing a fresh
# copy of the compiler (including llvm tools, etc.) if we haven't actually
# built LLVM, since not everything necessary is copied into the
# local-usage-only LLVM artifacts. If that changes, this could maybe be made
# true for all builds. In practice it's probably a good idea to keep building
# LLVM continuously on at least some builders to ensure it works, though.
# (And PGO is its own can of worms).
if [ "$NO_DOWNLOAD_CI_LLVM"="" ];then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set llvm.download-ci-llvm=if-unchanged"
else
# CI rustc requires CI LLVM to be enabled (see https://github.com/rust-lang/rust/issues/123586).
NO_DOWNLOAD_CI_RUSTC=1
# When building for CI we want to use the static C++ Standard library
# included with LLVM, since a dynamic libstdcpp may not be available.
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set llvm.static-libstdcpp"
fi
if [ "$NO_DOWNLOAD_CI_RUSTC"="" ];then
RUST_CONFIGURE_ARGS="$RUST_CONFIGURE_ARGS --set rust.download-rustc=if-unchanged"
fi
is all outside DEPLOY=1)

@bors r- until we settle this

@borsbors 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 Nov 24, 2024
@Kobzol

Copy link
Copy Markdown
Member

Sorry, you're right, I missed this, the bash scripts are a bit confusing. Then this should be fine.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+

@bors

bors commented Nov 24, 2024

Copy link
Copy Markdown
Collaborator

📌 Commit 81f25bb has been approved by Mark-Simulacrum

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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 24, 2024
bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 26, 2024
…=Mark-Simulacrum
ci: enble LLVM download for windows-gnu hosts
Continuation of rust-lang#132781
try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
@bors

bors commented Nov 26, 2024

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 81f25bb with merge 4fde74c...

@rust-log-analyzer

This comment has been minimized.

@bors

bors commented Nov 26, 2024

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-actions

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 26, 2024
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@rustbot author

Seems probably real?

@rustbotrustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 28, 2024
@mati865

Copy link
Copy Markdown
MemberAuthor

Retitled PR and commit to make it reflect the true change. The previous title would give a false hope for CI time improvements.

@mati865

Copy link
Copy Markdown
MemberAuthor

@Kobzol may I ask you for reapproval? Thank you in advance.

@Kobzol

Copy link
Copy Markdown
Member

Huh, this should have been approved already. I didn't notice the force push.

@bors r+

@bors

bors commented Jan 31, 2025

Copy link
Copy Markdown
Collaborator

📌 Commit b20bc53 has been approved by Kobzol

It is now in the queue for this repository.

workingjubilee added a commit to workingjubilee/rustc that referenced this pull request Jan 31, 2025
… r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
bors added a commit to rust-lang-ci/rust that referenced this pull request Jan 31, 2025
…kingjubilee
Rollup of 16 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#135768 (tests: Port `symbol-mangling-hashed` to rmake.rs)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#135840 (omit unused args warnings for intrinsics without body)
- rust-lang#135900 (Manually walk into WF obligations in `BestObligation` proof tree visitor)
- rust-lang#136146 (Explicitly choose x86 softfloat/hardfloat ABI)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136163 (Fix off-by-one error causing slice::sort to abort the program)
- rust-lang#136266 (fix broken release notes id)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136314 (Use proper type when applying deref adjustment in const)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136348 (miri: make float min/max non-deterministic)
- rust-lang#136351 (Add documentation for derive(CoercePointee))
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
Failed merges:
- rust-lang#135994 (Rename rustc_middle::Ty::is_unsafe_ptr to is_raw_ptr)
r? `@ghost`
`@rustbot` modify labels: rollup
jhpratt added a commit to jhpratt/rust that referenced this pull request Feb 1, 2025
… r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
@jhprattjhpratt mentioned this pull request Feb 1, 2025
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 11 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 11 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 1, 2025
… r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 10 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: dist-powerpc64-linux
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 1, 2025
… r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 5 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: dist-powerpc64-linux
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 11 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: dist-powerpc64-linux
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 1, 2025
Rollup of 11 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#135836 (bootstrap: only build `crt{begin,end}.o` when compiling to MUSL)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136283 (Update encode_utf16 to mention it is native endian)
- rust-lang#136309 (set rustc dylib on manually constructed rustc command)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136339 (CompileTest: Add Directives to Ignore `arm-unknown-*` Targets)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
try-job: dist-powerpc64-linux
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Feb 1, 2025
… r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#136133 (Fix sentence in process::abort)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#136133 (Fix sentence in process::abort)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
…iaskrgr
Rollup of 8 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#134740 (Add amdgpu target)
- rust-lang#136133 (Fix sentence in process::abort)
- rust-lang#136154 (Use +secure-plt for powerpc-unknown-linux-gnu{,spe})
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
r? `@ghost`
`@rustbot` modify labels: rollup
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
…iaskrgr
Rollup of 7 pull requests
Successful merges:
- rust-lang#133266 (ci: fix explanation why LLVM download is disabled for windows-gnu)
- rust-lang#136133 (Fix sentence in process::abort)
- rust-lang#136279 (Rename `tcx.ensure()` to `tcx.ensure_ok()`, and improve the associated docs)
- rust-lang#136328 (Rework "long type names" printing logic)
- rust-lang#136358 (`#[optimize(none)]` implies `#[inline(never)]`)
- rust-lang#136368 (Make comma separated lists of anything easier to make for errors)
- rust-lang#136412 (Tweak fn pointer suggestion span)
r? `@ghost`
`@rustbot` modify labels: rollup
@bors
bors merged commit 78794d0 into rust-lang:masterFeb 2, 2025
@rustbotrustbot added this to the 1.86.0 milestone Feb 2, 2025
@mati865
mati865 deleted the windows-gnu-llvm-download branch February 2, 2025 16:25
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request Feb 2, 2025
Rollup merge of rust-lang#133266 - mati865:windows-gnu-llvm-download, r=Kobzol
ci: fix explanation why LLVM download is disabled for windows-gnu
Continuation of rust-lang#132781
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-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@mati865@rustbot@Kobzol@Mark-Simulacrum@bors@rust-log-analyzer@alex-semenyuk