[anneal][v2] Add and integrate nix-built exocrate#3383
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3383 +/- ##
==========================================
+ Coverage 91.84% 91.85% +0.01%
==========================================
Files 20 20
Lines 6080 6093 +13
==========================================
+ Hits 5584 5597 +13
Misses 496 496 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
41bb90e to
ca9434e
Compare
34394dc to
b45304b
Compare
ca9434e to
d22541f
Compare
|
|
||
| use clap::Parser as _; | ||
|
|
||
| /// Anneal: A Literate Verification Toolchain |
There was a problem hiding this comment.
| /// Anneal: A Literate Verification Toolchain | |
| /// Anneal |
I suspect we're going to move away from the "literate verification" phrase, which I've found confuses ~everybody
There was a problem hiding this comment.
You edited the wrong src/main.rs 😛
b45304b to
d060c92
Compare
d22541f to
cb85c73
Compare
d060c92 to
929a91b
Compare
|
@joshlf I don't know enough about action permissions to know whether these are unneeded. If they are needed, I'm not sure the most sensible prose to explain why in this context. |
929a91b to
bf31762
Compare
cb85c73 to
f2d675b
Compare
82c32c9 to
5f697f9
Compare
f2d675b to
ebd4245
Compare
3412078 to
5909564
Compare
5909564 to
fe81493
Compare
ebd4245 to
f549d17
Compare
| uses: DeterminateSystems/determinate-nix-action@441b9e401ac050c38a07d8313748c5c2d17e8aff # v3.6.1 | ||
|
|
||
| - name: Run Magic Nix Cache | ||
| uses: DeterminateSystems/magic-nix-cache-action@main # zizmor: ignore[unpinned-uses] |
| uses: DeterminateSystems/determinate-nix-action@441b9e401ac050c38a07d8313748c5c2d17e8aff # v3.6.1 | ||
|
|
||
| - name: Run Magic Nix Cache | ||
| uses: DeterminateSystems/magic-nix-cache-action@main # zizmor: ignore[unpinned-uses] |
| # to maintain the principle of least privilege. | ||
| - name: Enable unprivileged user namespaces (Ubuntu 24.04) |
There was a problem hiding this comment.
| # to maintain the principle of least privilege. | |
| - name: Enable unprivileged user namespaces (Ubuntu 24.04) | |
| # to maintain the principle of least privilege. | |
| # | |
| # FIXME(#3412): Deduplicate this with what's repeated below? | |
| - name: Enable unprivileged user namespaces (Ubuntu 24.04) |
|
|
||
| use clap::Parser as _; | ||
|
|
||
| /// Anneal: A Literate Verification Toolchain |
There was a problem hiding this comment.
You edited the wrong src/main.rs 😛
fe81493 to
f300c70
Compare
f300c70 to
f3e3b5e
Compare
4f657b1 to
9606fec
Compare
f3e3b5e to
f838f8e
Compare
f838f8e to
9f29506
Compare
- Add nix derivations for exocrate - Add `setup` sub-command to locate-or-install exocrate - Add integration test for "developer mode" `setup` that presumes local exocrate archive - Add github workflows to: - Warm nix cache - Locally link exocrate archive from nix, then run all tests gherrit-pr-id: Gwhroikc5idscowxamayknlke2uiddzv3
9f29506 to
1da6e9a
Compare
| " local top_dir=$(ls tmp_extract | head -n 1)" | ||
| # Resolve the component directory path nested inside top_dir | ||
| # (e.g. 'tmp_extract/rustc-nightly-x86_64-unknown-linux-gnu/rustc') | ||
| # This perfectly replicates setup.rs double-directory skipping. |
There was a problem hiding this comment.
It feels like this is just a reference to how a particular .rs file is currently implemented. Can you just explain the behavior directly instead of making reference to a file the reader may not have read, and whose behavior may change out from under us?
| dontUnpack = true; | ||
|
|
||
| buildPhase = builtins.concatStringsSep "\n" [ | ||
| # 1. Unpack the downloaded archive directly into output directory |
There was a problem hiding this comment.
Let's not number these? It's one more thing we have to keep up to date, and doesn't really add any value.
| ]; | ||
|
|
||
| installPhase = builtins.concatStringsSep "\n" [ | ||
| # 1. Copy the downloaded .ltar cache files from ~/.cache/mathlib/ |
| ]; | ||
|
|
||
| buildPhase = builtins.concatStringsSep "\n" [ | ||
| # 1. Copy the clean, git-scrubbed package directories to the output path. |
| "echo \"Using leantar binary at: \$LEANTAR_BIN\"" | ||
| # 3. Unpack all downloaded .ltar archives recursively using leantar. | ||
| # | ||
| # Why: Lake precompiled dependency object files reside in .ltar archives. |
There was a problem hiding this comment.
Remove the Why: prefix here and elsewhere. It's obvious that this is an explanation from context.
| # and lakefiles to use local path dependencies. This allows Lake to resolve | ||
| # all checkouts offline from local directories directly, bypassing all Git | ||
| # checks and preventing it from triggering dynamic clones. | ||
| "python3 << 'EOF'" |
There was a problem hiding this comment.
Why this style here but a single multi-line string for the previous python script?
setupsub-command to locate-or-install exocratesetupthat presumes localexocrate archive
Latest Update: v19 — Compare vs v18
📚 Full Patch History
Links show the diff between the row version and the column version.
⬇️ Download this PR
Branch
git fetch origin refs/heads/Gwhroikc5idscowxamayknlke2uiddzv3 && git checkout -b pr-Gwhroikc5idscowxamayknlke2uiddzv3 FETCH_HEADCheckout
git fetch origin refs/heads/Gwhroikc5idscowxamayknlke2uiddzv3 && git checkout FETCH_HEADCherry Pick
git fetch origin refs/heads/Gwhroikc5idscowxamayknlke2uiddzv3 && git cherry-pick FETCH_HEADPull
Stacked PRs enabled by GHerrit.