Repository navigation
chore: CI: fold Linux Lake into Linux release - #13759
Merged
Merged
Conversation
|
Mathlib CI status (docs):
|
Collaborator
|
Reference manual CI status:
|
Garmelon
approved these changes
May 18, 2026
Garmelon
left a comment
Contributor
There was a problem hiding this comment.
Nice, one fewer build configurations.
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
May 18, 2026
JJYYY-JJY
pushed a commit
to JJYYY-JJY/lean4
that referenced
this pull request
Jul 24, 2026
This PR restores reuse of the Lake artifact cache across core CI builds. Since leanprover#13759, the `Linux Lake (Cached)` job downloaded the cache but still rebuilt everything, because the cache trace is keyed on `Lean.githash`, which is the commit hash on the release job that produces the cache, but the stage0 tree hash on the non-release job that consumes it. To fix this, the Lean trace Lake uses is overriden via `LEAN_GITHASH` to be the stage0 tree hash (rather than whatever `Lean.githash` may be). This ensures so stage1 `.olean`s are reusable across commits that do not touch stage0. The override affects only the cache trace, not the compiled `.olean`s, which still embed the same `Lean.githash`. Release builds cannot reuse `.olean`s embedded with a different `Lean.githash`. Nonetheless, this change would allow Lake to reuse them if they have the same stage0. To avoid this, restoring `.olean`s from the cache is now completely disabled for release builds. In practice, this is pure savings, as the `.olean`s restored from the cache during release builds were unused anyway due to the mismatched githash. Implementation-wise, CMake serves as the single source of truth for `LEAN_GITHASH`: it computes the stage0 tree hash once, embeds it as the non-release `Lean.githash` (as before), and passes it to Lake as `LEAN_GITHASH` for the core build (via `stdlib.make`). CI reads the file and sets `LEAN_GITHASH` in the CI job environment so that the standalone `lake cache` steps use the same key. The hash is computed with `git rev-parse HEAD:stage0` rather than the previous `git ls-tree HEAD "{}/../../stage0" --object-only`, because it is now also needed at stage 1 where that relative path does not apply. Both commands return the same tree object hash. 🤖 Prepared with Claude Code --------- Co-authored-by: Claude Code <[email protected]>
robsimmons
pushed a commit
that referenced
this pull request
Jul 29, 2026
This PR restores reuse of the Lake artifact cache across core CI builds. Since #13759, the `Linux Lake (Cached)` job downloaded the cache but still rebuilt everything, because the cache trace is keyed on `Lean.githash`, which is the commit hash on the release job that produces the cache, but the stage0 tree hash on the non-release job that consumes it. To fix this, the Lean trace Lake uses is overriden via `LEAN_GITHASH` to be the stage0 tree hash (rather than whatever `Lean.githash` may be). This ensures so stage1 `.olean`s are reusable across commits that do not touch stage0. The override affects only the cache trace, not the compiled `.olean`s, which still embed the same `Lean.githash`. Release builds cannot reuse `.olean`s embedded with a different `Lean.githash`. Nonetheless, this change would allow Lake to reuse them if they have the same stage0. To avoid this, restoring `.olean`s from the cache is now completely disabled for release builds. In practice, this is pure savings, as the `.olean`s restored from the cache during release builds were unused anyway due to the mismatched githash. Implementation-wise, CMake serves as the single source of truth for `LEAN_GITHASH`: it computes the stage0 tree hash once, embeds it as the non-release `Lean.githash` (as before), and passes it to Lake as `LEAN_GITHASH` for the core build (via `stdlib.make`). CI reads the file and sets `LEAN_GITHASH` in the CI job environment so that the standalone `lake cache` steps use the same key. The hash is computed with `git rev-parse HEAD:stage0` rather than the previous `git ls-tree HEAD "{}/../../stage0" --object-only`, because it is now also needed at stage 1 where that relative path does not apply. Both commands return the same tree object hash. 🤖 Prepared with Claude Code --------- Co-authored-by: Claude Code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Now that they both use Lake, there's little reason for the duplication