Skip to content

Run calculate_matrix job on master to cache citool builds #142231

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Kobzol
Copy link
Contributor

@Kobzol Kobzol commented Jun 9, 2025

As discussed in https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/PR.20ci.20seems.20much.20to.20slow/with/523028903, the current rust-cache solution for citool doesn't work, because we don't ever write to the cache from master, so the cache is empty on PR CI jobs.

This PR runs the calculate_matrix job on master, with the only motivation to actually prime the cache.

r? @marcoieni

Kobzol added 2 commits June 9, 2025 08:06
So that we can make sure that they are reproducible locally.
This allows us to reuse its cache on PR CI jobs.
@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 Jun 9, 2025
@marcoieni
Copy link
Member

wouldn't using s3 with sccache instead of doing this improve performance even more?

@Kobzol
Copy link
Contributor Author

Kobzol commented Jun 9, 2025

Using S3 would probably have similar performance, but it would be more complicated. For starters, we would need to install sccache in the calculate_matrix job.

@marcoieni
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Jun 9, 2025

📌 Commit 54ed1b9 has been approved by marcoieni

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 Jun 9, 2025
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request Jun 9, 2025
Run `calculate_matrix` job on `master` to cache citool builds

As discussed in https://rust-lang.zulipchat.com/#narrow/channel/242791-t-infra/topic/PR.20ci.20seems.20much.20to.20slow/with/523028903, the current `rust-cache` solution for `citool` doesn't work, because we don't ever write to the cache from `master`, so the cache is empty on PR CI jobs.

This PR runs the `calculate_matrix` job on `master`, with the only motivation to actually prime the cache.

r? `@marcoieni`
bors added a commit that referenced this pull request Jun 9, 2025
Rollup of 7 pull requests

Successful merges:

 - #129121 (Stabilize `tcp_quickack`)
 - #142192 (De-duplicate f16 & f128 doctest attributes)
 - #142193 (add tests for pattern binding drop order edge cases)
 - #142222 (Dont make `ObligationCtxt`s with diagnostics unnecessarily)
 - #142228 (rustc-dev-guide subtree update)
 - #142231 (Run `calculate_matrix` job on `master` to cache citool builds)
 - #142232 (add `Cargo.lock` to CI-rustc allowed list for non-CI env)

r? `@ghost`
`@rustbot` modify labels: rollup
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-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. 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.

4 participants