Skip to content

ci: survive cold mesh-llm cache — clone locked rev when cargo fetch leaves no checkout - #3

Merged
flaukowski merged 1 commit into
mainfrom
ci-mesh-llm-cold-fetch
Jul 28, 2026
Merged

ci: survive cold mesh-llm cache — clone locked rev when cargo fetch leaves no checkout#3
flaukowski merged 1 commit into
mainfrom
ci-mesh-llm-cold-fetch

Conversation

@flaukowski

Copy link
Copy Markdown
Owner

Summary

Fixes the Desktop Build (macOS) failure (mesh-llm checkout for 43103c5 not found after cargo fetch) that has been red on main since the upstream sync — e.g. this run.

Root cause: cargo fetch populates ~/.cargo/git/db but materializes git/checkouts lazily 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 the find … git/checkouts probe 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

  • URL/rev extraction verified against this repo's Cargo.lock (git+https://github.com/Mesh-LLM/mesh-llm.git?tag=v0.73.1#43103c5c…https://github.com/Mesh-LLM/mesh-llm.git).
  • This PR's own Desktop Build (macOS) job exercises the cold path end-to-end (pull_request runs use the PR's workflow definitions).

City-Agent: claude-fable-5

🤖 Generated with Claude Code

…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
flaukowski merged commit 635f548 into main Jul 28, 2026
44 of 46 checks passed
flaukowski added a commit that referenced this pull request Jul 29, 2026
Merge upstream/main into kannaka-buzz main (sync 2026-07-28 #3)
@flaukowski
flaukowski deleted the ci-mesh-llm-cold-fetch branch July 30, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant