Repository navigation
feat(node): a store of what prepare makes on a pool node; end-to-end test for #277 - #292
Merged
Merged
Conversation
…and repository (ADR-0062) The store module moves to devstack-build, shared by the daemon and the node agent, and learns an outbox: a lane on a node reads the member's store mounted read-only at /store and writes new entries (and notes of its hits) into `/src/.devstack/store-out` in its slot; links in an entry point to where it is read from. The agent keeps a store per member and repository, takes the outboxes of running and kept lanes in every 15 s (a rename on one filesystem), sweeps entries unused for its retention, counts the rest with the member's kept lanes (the store's least recently used go first over the room) and removes a gone member's stores. The lane image's id is part of the key on a node. The remote-lane test now gives the fixture's API a `prepare` with outputs and link: the requester's worktree is linked, a pre-commit hook reading the link passes, `status` names the link, the node's store takes the entry in, and after `lane reset` a fresh start on the node hits the store. Refs #277 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Oct 26, 2026
Merged
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.
Closes the remaining parts of #277 (step 4 and the end-to-end proof).
Node store (ADR-0062 points 3, 4, 9 on nodes)
crates/devstack-build/src/store.rs(moved from the daemon):Store::with_outbox— read the store, write new entries and hit notes into an outbox; links point to where the entry is read from.take_in,entries,remove,bytes. Unit test of the outbox round trip (incl. a workspace link).stores/<secret_name>withstore.json), mounted read-only at/store;DEVSTACK_STORE,DEVSTACK_STORE_OUT(/src/.devstack/store-out),DEVSTACK_LANE_IMAGE(image id, part of the key).take_in_storesevery round (15 s) for running and kept lanes.sweep_slots: retention, counted with the member's kept lanes (and reported as kept bytes), store entries evicted first over the room;purge_gone_membersremoves a gone member's stores.End to end (
remote-laneCI job): the fixture's API getspreparewithoutputsandlink. Checked: the requester's worktree getsdepslinked (ADR-0063), apre-commithook that readsdeps/made.txtlets a commit through,devstack statusin the worktree names the link, the node's store takes the entry in, and afterlane reseta fresh start on the node reportsprepare_store_hit.Locally on Windows: unit tests of devstack-build, -daemon, -node; clippy clean. The node path itself runs only in the Linux
remote-lanejob.Split out of #277: #290 (warming), #291 (dashboard).
🤖 Generated with Claude Code