Skip to content

feat: lake: cache staging#13144

Merged
tydeu merged 5 commits intoleanprover:masterfrom
tydeu:lake/cache-staging
Mar 27, 2026
Merged

feat: lake: cache staging#13144
tydeu merged 5 commits intoleanprover:masterfrom
tydeu:lake/cache-staging

Conversation

@tydeu
Copy link
Copy Markdown
Member

@tydeu tydeu commented Mar 26, 2026

This PR adds three new lake cache subcommands for staged cache uploads: stage, unstage, and put-staged. These are designed to function as parallels for the commands of the same name in Mathlib's lake exe cache.

  • lake cache stage: Copies the build outputs of a mappings file from the Lake cache to a staging directory.
  • lake cache unstage: Copies the build outputs from a staging directory back into the Lake cache.
  • lake cache put-staged: Uploads build outputs from a staging directory to a remote cache service. Unlike lake cache put, this command does not load the workspace configuration. As a result, platform and toolchain settings must be supplied manually via --platform and --toolchain if needed.

This PR also removes deprecation warnings when using environment variables to configure the cache service for lake cache put (and lake cache put-staged).

🤖 Prepared with Claude Code

@tydeu tydeu added changelog-lake Lake lake-ci Run all Lake tests labels Mar 26, 2026
@github-actions github-actions bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Mar 26, 2026
@leanprover-bot
Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI can not be attempted yet, as the nightly-testing-2026-03-25 tag does not exist there yet. We will retry when you push more commits. If you rebase your branch onto nightly-with-manual, reference manual CI should run now. You can force reference manual CI using the force-manual-ci label. (2026-03-26 21:34:08)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Mar 26, 2026
@github-actions github-actions bot added the mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN label Mar 26, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 26, 2026
@mathlib-lean-pr-testing mathlib-lean-pr-testing bot added the builds-mathlib CI has verified that Mathlib builds against this PR label Mar 26, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@tydeu tydeu force-pushed the lake/cache-staging branch from 668dcb1 to 5205818 Compare March 27, 2026 00:58
@tydeu tydeu marked this pull request as ready for review March 27, 2026 01:27
mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Mar 27, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 27, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@tydeu tydeu added this pull request to the merge queue Mar 27, 2026
Merged via the queue into leanprover:master with commit 5078509 Mar 27, 2026
25 checks passed
@tydeu tydeu deleted the lake/cache-staging branch March 27, 2026 03:42
github-merge-queue bot pushed a commit that referenced this pull request Mar 27, 2026
This PR fixes a typo in #13144 where `lake cache help put-staged` was
incorrectly `lake cache help putStaged`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

builds-mathlib CI has verified that Mathlib builds against this PR changelog-lake Lake lake-ci Run all Lake tests mathlib4-nightly-available A branch for this PR exists at leanprover-community/mathlib4-nightly-testing:lean-pr-testing-NNNN toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants