Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: unset NO_DOWNLOAD_CI_LLVM for 2 windows jobs #132781

Closed
wants to merge 1 commit into from

Conversation

MarcoIeni
Copy link
Member

@MarcoIeni MarcoIeni commented Nov 8, 2024

mati865 mentioned in #132721 (comment) that we can remove this environment variable

try-job: dist-i686-mingw
try-job: dist-x86_64-mingw

@rustbot
Copy link
Collaborator

rustbot commented Nov 8, 2024

r? @Kobzol

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

@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-infra Relevant to the infrastructure team, which will review and decide on the PR/issue. labels Nov 8, 2024
@MarcoIeni
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 8, 2024
…try>

CI: unset NO_DOWNLOAD_CI_LLVM for windows

try-job: i686-mingw
try-job: x86_64-mingw
try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
@bors
Copy link
Contributor

bors commented Nov 8, 2024

⌛ Trying commit 70760ec with merge f9612b3...

@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented Nov 8, 2024

💔 Test failed - checks-actions

@bors bors 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 Nov 8, 2024
@mati865
Copy link
Contributor

mati865 commented Nov 9, 2024

I don't know how this works, but perhaps the dist build without that ENV has to be completed first so it can upload the artifacts?

@Kobzol
Copy link
Contributor

Kobzol commented Nov 9, 2024

It seems to me from the CI logs that dist-i686-mingw and friends does upload the built dist artifacts, including LLVM. But I guess it's worth a try to first only run the dist jobs without the env. variable.

@MarcoIeni
Copy link
Member Author

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 9, 2024
…try>

CI: unset NO_DOWNLOAD_CI_LLVM for windows

try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
@bors
Copy link
Contributor

bors commented Nov 9, 2024

⌛ Trying commit 70760ec with merge 39e570d...

@MarcoIeni
Copy link
Member Author

I'm trying the jobs dist-i686-mingw and dist-x86_64-mingw. Not sure if I understood correctly your suggestion 🤔

@bors
Copy link
Contributor

bors commented Nov 9, 2024

☀️ Try build successful - checks-actions
Build commit: 39e570d (39e570da40a97a744e222c4961f360b8bd7376f8)

@MarcoIeni
Copy link
Member Author

image

@MarcoIeni MarcoIeni changed the title CI: unset NO_DOWNLOAD_CI_LLVM for windows CI: unset NO_DOWNLOAD_CI_LLVM for 2 windows jobs Nov 9, 2024
@MarcoIeni MarcoIeni marked this pull request as ready for review November 9, 2024 22:36
@Kobzol
Copy link
Contributor

Kobzol commented Nov 10, 2024

It doesn't look like this does anything for CI time though. Let's try again to see if some cache kicks in.

@bors try

bors added a commit to rust-lang-ci/rust that referenced this pull request Nov 10, 2024
…try>

CI: unset NO_DOWNLOAD_CI_LLVM for 2 windows jobs

try-job: dist-i686-mingw
try-job: dist-x86_64-mingw
@bors
Copy link
Contributor

bors commented Nov 10, 2024

⌛ Trying commit 4d80c65 with merge 16dbc3e...

@bors
Copy link
Contributor

bors commented Nov 10, 2024

☀️ Try build successful - checks-actions
Build commit: 16dbc3e (16dbc3e8c76043dea5056f4071bf2849e9c0e57d)

@Kobzol
Copy link
Contributor

Kobzol commented Nov 10, 2024

Doesn't seem like there is any CI time effect.

@mati865
Copy link
Contributor

mati865 commented Nov 10, 2024

Doesn't seem to work: [TIMING] core::build_steps::llvm::Llvm { target: x86_64-pc-windows-gnu } -- 859.128

@mati865
Copy link
Contributor

mati865 commented Nov 10, 2024

Ah, it also doesn't work for MSVC. Probably a general Windows problem.

@MarcoIeni
Copy link
Member Author

Since it doesn't work and it doesn't make a big impact on timings, I'll close this PR 👍

@MarcoIeni MarcoIeni closed this Nov 13, 2024
@mati865
Copy link
Contributor

mati865 commented Nov 17, 2024

So this is the reason why it doesn't work with MSVC:

ciCommandSetEnv NO_DOWNLOAD_CI_LLVM 1

Do you want to give it another try or should I open a PR?

@MarcoIeni
Copy link
Member Author

go for it :)

@MarcoIeni
Copy link
Member Author

Btw the logs for the try job of dist-x86_64-mingw show that the group "Building LLVM for x86_64-pc-windows-gnu" took 14 minutes. So it seems that we aren't downloading llvm. Maybe it's because we detect that it changed (based on this)?

Also, I found this comment that suggests that we should keep this ENV variable for dist builders. Do you agree?

@Kobzol
Copy link
Contributor

Kobzol commented Nov 18, 2024

Dist builders are designed to build the components, and other jobs (and tools like rustup etc.) are designed to download them. So we should keep building them on the dist builders. In theory, we could just build them from time to time, but I don't think I trust our CI enough to do that at the moment.

@MarcoIeni
Copy link
Member Author

MarcoIeni commented Nov 18, 2024

FYI I tried downloading llvm in mingw but it fails

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 S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-infra Relevant 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.

6 participants