Skip to content

[Merged by Bors] - ci: skip cache warmup if the "previous" commit uses a different toolchain#37653

Closed
bryangingechen wants to merge 1 commit intoleanprover-community:masterfrom
bryangingechen:skip-cache-warmup-if-toolchain-differs
Closed

[Merged by Bors] - ci: skip cache warmup if the "previous" commit uses a different toolchain#37653
bryangingechen wants to merge 1 commit intoleanprover-community:masterfrom
bryangingechen:skip-cache-warmup-if-toolchain-differs

Conversation

@bryangingechen
Copy link
Copy Markdown
Contributor

@bryangingechen bryangingechen commented Apr 5, 2026

#37564 changed cache so that it looks for a bundled leantar rather than downloading a copy. This caused the "warmup cache" step introduced in #36623 to break since the "previous" commit being fetched could be using an older toolchain.

We fix this by simply skipping getting the cache for the previous commit if the toolchain differs. It's likely that the oleans are all invalidated anyways.

Prepared with claude code.


Open in Gitpod

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

PR summary 2050ca5474

Import changes for modified files

No significant changes to the import graph

Import changes for all files
Files Import difference

Declarations diff

No declarations were harmed in the making of this PR! 🐙

You can run this locally as follows
## summary with just the declaration names:
./scripts/pr_summary/declarations_diff.sh <optional_commit>

## more verbose report:
./scripts/pr_summary/declarations_diff.sh long <optional_commit>

The doc-module for scripts/pr_summary/declarations_diff.sh contains some details about this script.


No changes to technical debt.

You can run this locally as

./scripts/reporting/technical-debt-metrics.sh pr_summary
  • The relative value is the weighted sum of the differences with weight given by the inverse of the current value of the statistic.
  • The absolute value is the relative value divided by the total sum of the inverses of the current values (i.e. the weighted average of the differences).

⚠️ Workflow documentation reminder

This PR modifies files under .github/workflows/.
Please update docs/workflows.md if the workflow inventory, triggers, or behavior changed.

Modified workflow files:

  • .github/workflows/build_template.yml

@github-actions github-actions bot added the CI Modifies the continuous integration setup or other automation label Apr 5, 2026
Copy link
Copy Markdown
Contributor

@YaelDillies YaelDillies left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! 🚀

maintainer merge

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 5, 2026

🚀 Pull request has been placed on the maintainer queue by YaelDillies.

@mathlib-triage mathlib-triage bot added the maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. label Apr 5, 2026
Copy link
Copy Markdown
Contributor

@adomani adomani left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

I'm happy to try this quickly, I'm simply not sure about trailing line break being handled correctly.

Feel free to merge once you are available to fix potential issues!

bors d+

@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 5, 2026

✌️ bryangingechen can now approve this pull request. To approve and merge a pull request, simply reply with bors r+. More detailed instructions are available here.

@mathlib-triage mathlib-triage bot added delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). and removed maintainer-merge A reviewer has approved the changed; awaiting maintainer approval. labels Apr 5, 2026
@bryangingechen
Copy link
Copy Markdown
Contributor Author

bors r+

mathlib-bors bot pushed a commit that referenced this pull request Apr 5, 2026
…hain (#37653)

#37564 changed `cache` so that it looks for a bundled `leantar` rather than downloading a copy. This caused the "warmup cache" step introduced in #36623 to break since the "previous" commit being fetched could be using an older toolchain.

We fix this by simply skipping getting the cache for the previous commit if the toolchain differs. It's likely that the oleans are all invalidated anyways.

Prepared with claude code.
@mathlib-triage mathlib-triage bot added the ready-to-merge This PR has been sent to bors. label Apr 5, 2026
@mathlib-bors
Copy link
Copy Markdown
Contributor

mathlib-bors bot commented Apr 5, 2026

Pull request successfully merged into master.

Build succeeded:

@mathlib-bors mathlib-bors bot changed the title ci: skip cache warmup if the "previous" commit uses a different toolchain [Merged by Bors] - ci: skip cache warmup if the "previous" commit uses a different toolchain Apr 5, 2026
@mathlib-bors mathlib-bors bot closed this Apr 5, 2026
riccardobrasca pushed a commit to riccardobrasca/mathlib4 that referenced this pull request Apr 6, 2026
…hain (leanprover-community#37653)

leanprover-community#37564 changed `cache` so that it looks for a bundled `leantar` rather than downloading a copy. This caused the "warmup cache" step introduced in leanprover-community#36623 to break since the "previous" commit being fetched could be using an older toolchain.

We fix this by simply skipping getting the cache for the previous commit if the toolchain differs. It's likely that the oleans are all invalidated anyways.

Prepared with claude code.
YellPika pushed a commit to YellPika/mathlib4 that referenced this pull request Apr 6, 2026
…hain (leanprover-community#37653)

leanprover-community#37564 changed `cache` so that it looks for a bundled `leantar` rather than downloading a copy. This caused the "warmup cache" step introduced in leanprover-community#36623 to break since the "previous" commit being fetched could be using an older toolchain.

We fix this by simply skipping getting the cache for the previous commit if the toolchain differs. It's likely that the oleans are all invalidated anyways.

Prepared with claude code.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI Modifies the continuous integration setup or other automation delegated This pull request has been delegated to the PR author (or occasionally another non-maintainer). ready-to-merge This PR has been sent to bors.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants