Conversation
This PR avoids recompressing module archives restored from the artifact cache when collecting build outputs.
kim-em
marked this pull request as draft
September 16, 2026 23:28
This PR retains cached archives through hard links by default and adds LAKE_COPY_CACHE_ARCHIVES to explicitly allow copying when hard links fail.
Collaborator
Author
|
We've deployed a TauCeti CI workaround: save the verified input-to-archive records before building, then hard-link unchanged archives before stock Lake generates the final mapping with The deployed staging step reused 5,639 archives, then generated the mapping in 4.4s (01:13:50.213–01:13:54.619 UTC). CI, cache publication, and public readback all passed. The workaround's code links here so we can remove it once our pinned Lean includes this fix or something similar. |
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.
This PR preserves downloaded module archives so
lake build -oreuses them instead of recompressing identical outputs. It also preserves their platform-independence flag.TauCeti’s sandboxed build, step 28, log line 5635 starts
lake build --no-build -o .lake/outputs.jsonlat 07:42:40.943 and finishes at 07:46:33.754: 3m53s. The measured local improvement is 277s to 5.7s, with all 5,455 mappings unchanged.By default, archive retention uses hard links; if unavailable, it skips retention without copying.
LAKE_COPY_CACHE_ARCHIVES=trueexplicitly enables the copy fallback, independently ofrestoreAllArtifacts.Tests cover archive reuse, actual cross-filesystem hard-link failures, copy opt-in, read-only caches, platform-independent mappings, environment propagation, and source-change invalidation.
🤖 prepared with codex