clan: the target prefetches tarball-pinned flake inputs too — nixpkgs' 196 MiB source stops pushing from the operator (GOTCHAS #342) #1862
No reviewers
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss!1862
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "session/gateway-pulls-own-software"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This is part 1 of Ben's ruling to make the gateway pull its own software.
Measured live on WKT-DEMO fire 4 (drive
20260925T023906Z, #1855). Duringenroll-copy, bens-mac-04 pushed at ~386 kB/s for ~20 min. The box was receiving/nix/store/lr5ld8f0…-source, the 196 MiB nixpkgs tree.Checked against cache.nixos.org, both closures lack the same small share:
That nixpkgs
sourceis 196 MiB of the missing 338 MiB.Cause. #1803's
prefetchInputsOnTargetread onlytype: githublock nodes. clan-core pins nixpkgs as a releases.nixos.org tarball, so the prefetch skipped it.Fix.
prefetchRefsFromLockalso renders each tarball input asurl?narHash=<sri>, beside the github revs. A hand prefetch of that ref realised the identical/nix/store/lr5ld8f0…-source. A tarball with no narHash, or a git source, is still left to the copy.Tests. Three new tests failed before the fix and pass after it. The
internal/clansuite,go vetand golangci-lint are clean. GOTCHAS #342 and a STATUS entry are included.Part 2 follows. The rented gateway will build its own system, so the operator machine neither downloads the whole closure nor pushes the ~140 MiB it compiles.
Refs #1855
🤖 Generated with Claude Code
https://claude.ai/code/session_013h5C35beyRQMAA1QjxZGk7