Skip to content

feat: lake: use trace mtime for arts when possible#12799

Merged
tydeu merged 3 commits intoleanprover:masterfrom
tydeu:lake/mtime-refactor
Mar 5, 2026
Merged

feat: lake: use trace mtime for arts when possible#12799
tydeu merged 3 commits intoleanprover:masterfrom
tydeu:lake/mtime-refactor

Conversation

@tydeu
Copy link
Copy Markdown
Member

@tydeu tydeu commented Mar 5, 2026

This PR changes Lake to use the modification times of traces (where available) for artifact modification times.

When artifacts are hard-linked from the cache, they retain the modification time of the artifact in the cache. Thus, the artifact modification time is an unreliable metric for determining whether an artifact is up-to-date relative to other artifacts in the presence of the cache. The trace file, however, is modified consistently when the artifacts are updated, making it the most reliable indicator of modification time.

@tydeu tydeu added the changelog-lake Lake label Mar 5, 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 5, 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-04 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-05 02:36:23)

mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Mar 5, 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 5, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 5, 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 5, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@tydeu tydeu marked this pull request as ready for review March 5, 2026 04:37
@tydeu tydeu enabled auto-merge March 5, 2026 04:45
@tydeu tydeu added this pull request to the merge queue Mar 5, 2026
mathlib-nightly-testing bot pushed a commit to leanprover-community/batteries that referenced this pull request Mar 5, 2026
Merged via the queue into leanprover:master with commit 4384344 Mar 5, 2026
19 checks passed
mathlib-nightly-testing bot pushed a commit to leanprover-community/mathlib4-nightly-testing that referenced this pull request Mar 5, 2026
@mathlib-lean-pr-testing
Copy link
Copy Markdown

Mathlib CI status (docs):

@tydeu tydeu deleted the lake/mtime-refactor branch March 6, 2026 19:19
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 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