ci: survive cold mesh-llm cache — clone locked rev when cargo fetch leaves no checkout - #3
Merged
Merged
Conversation
…eaves no checkout cargo fetch populates ~/.cargo/git/db but only materializes checkouts lazily at build time, so runners with no warm rust-cache (fresh fork, evicted cache) failed 'Build mesh llama native libraries' with 'checkout not found after cargo fetch'. Fall back to cloning the Cargo.lock-pinned rev (URL also derived from the lockfile) into RUNNER_TEMP. Applies to ci.yml, release.yml, signed-macos-canary.yml. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
flaukowski
added a commit
that referenced
this pull request
Jul 29, 2026
Merge upstream/main into kannaka-buzz main (sync 2026-07-28 #3)
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.
Summary
Fixes the Desktop Build (macOS) failure (
mesh-llm checkout for 43103c5 not found after cargo fetch) that has been red onmainsince the upstream sync — e.g. this run.Root cause:
cargo fetchpopulates~/.cargo/git/dbbut materializesgit/checkoutslazily at build time. Upstream block/buzz never sees this because its per-repo Actions caches (rust-cache +mesh-llama-*) are warm; a fork starts cold (caches are not inherited), so thefind … git/checkoutsprobe comes up empty and the step hard-fails.Fix: when no checkout exists, clone the Cargo.lock-pinned rev directly into
RUNNER_TEMP(URL parsed from the same lockfile entry as the rev, so dep bumps still need no lockstep edit). Warm-cache fast path unchanged. Applied to the three workflows sharing the block:ci.yml,release.yml,signed-macos-canary.yml.Generic robustness fix — candidate for an upstream PR to block/buzz as well (any cold runner there would hit the same cliff).
Test plan
Cargo.lock(git+https://github.com/Mesh-LLM/mesh-llm.git?tag=v0.73.1#43103c5c…→https://github.com/Mesh-LLM/mesh-llm.git).City-Agent: claude-fable-5
🤖 Generated with Claude Code