[anneal] Reuse pre-built Lean artifacts in generated workspaces#3255
Open
[anneal] Reuse pre-built Lean artifacts in generated workspaces#3255
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3255 +/- ##
=======================================
Coverage 91.88% 91.88%
=======================================
Files 20 20
Lines 6076 6076
=======================================
Hits 5583 5583
Misses 493 493 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Modify `src/aeneas.rs` to read `lake-manifest.json` from the Aeneas directory and generate pinned `require` statements in `lakefile.lean` pointing to the toolchain's `.lake/packages` directory. This prevents Lake from re-downloading Mathlib and rebuilding Aeneas in the generated workspace, significantly speeding up verification. If a dependency listed in the manifest is missing from the toolchain, we fail with a hard error asking the user to run setup again. gherrit-pr-id: G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb
0319d2f to
234131c
Compare
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.
Modify
src/aeneas.rsto readlake-manifest.jsonfrom the Aeneasdirectory and generate pinned
requirestatements inlakefile.leanpointing to the toolchain's
.lake/packagesdirectory.This prevents Lake from re-downloading Mathlib and rebuilding Aeneas
in the generated workspace, significantly speeding up verification.
If a dependency listed in the manifest is missing from the toolchain,
we fail with a hard error asking the user to run setup again.
Latest Update: v2 — Compare vs v1
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git checkout -b pr-G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb FETCH_HEADCheckout
git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/G4yr5ojlipqf3iwpr5ddns5cvkfwpeeeb && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.