Skip to content

feat(node): a store of what prepare makes on a pool node; end-to-end test for #277 - #292

Merged
7schmiede merged 1 commit into
mainfrom
feat/node-store
Oct 26, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/node-store

Conversation

@7schmiede

Copy link
Copy Markdown
Member

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).
  • Node agent: store per member and repository (stores/<secret_name> with store.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_stores every 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_members removes a gone member's stores.
  • Lane daemon: uses the node's store when given one; an older node gives none (prepare in every copy, as before); never sweeps it.

End to end (remote-lane CI job): the fixture's API gets prepare with outputs and link. Checked: the requester's worktree gets deps linked (ADR-0063), a pre-commit hook that reads deps/made.txt lets a commit through, devstack status in the worktree names the link, the node's store takes the entry in, and after lane reset a fresh start on the node reports prepare_store_hit.

Locally on Windows: unit tests of devstack-build, -daemon, -node; clippy clean. The node path itself runs only in the Linux remote-lane job.

Split out of #277: #290 (warming), #291 (dashboard).

🤖 Generated with Claude Code

…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>
@7schmiede
7schmiede merged commit 5082726 into main Oct 26, 2026
13 checks passed
@7schmiede
7schmiede deleted the feat/node-store branch October 26, 2026 20:13
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