Repository navigation
feat(dashboard): show the store of what prepare makes (ADR-0062) - #295
Merged
Merged
Conversation
A service's view says where its last `prepare` outputs came from
(`ServiceView.prepare`): copied out of the store (key, copy time, what
`prepare` took when it made the entry) or a run (its time, why the store
gave nothing, whether it went into the store). `GET /v1/store` lists the
store's entries with their size, last use and the trees that use them;
`DELETE /v1/store/{service}/{key}` removes one. A node reports its
members' stores apart in `kept.store_bytes` (optional, older nodes omit
it).
The dashboard shows the source in the service detail view, a store line
on the usage page opening the list with a remove action, and a node's
store beside what it keeps in the pool view.
Closes #291
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…s source on Windows only (no shim in a unit test) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
7schmiede
added a commit
that referenced
this pull request
Oct 26, 2026
* chore: 0.24.0 A lane on a pool node now gets what its `prepare` makes without a second install: its worktree here is linked to a copy from this machine's store, so a pre-commit hook with `npx eslint` runs there (ADR-0063), and the node keeps a store per member and repository, so the next lane with the same lockfile copies `node_modules` instead of running `npm ci` (ADR-0062). The daemon in a lane's container sends its own lines through its requester, under the member's consent (ADR-0037 addendum). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: 0.24.0 with the warm store and the store dashboard The release now also carries #295 (the dashboard shows the store of what prepare makes) and #296 (`[prepare] warm`, ADR-0065): the summary, plan.md and the devstack-config skill say so, and a frozen compat file holds `[prepare] warm`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
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 #291
API (docs/dashboard-api.md)
ServiceView.prepare?: {source: "store"|"run", at, ms, key?, prepare_ms?, miss?, stored?}: where the service's lastprepareoutputs came from. It is kept in the supervisor's memory from whenrun_prepareends (a lane's copy, a build's snapshot).misssays why the store gave nothing: no entry for these inputs on this machine, copying took longer than running,versionfailed, an output tracked in the repository, or the node gives the lane no store. It is absent when noprepareran since the daemon started (no file format change).GET /v1/store->{owned, bytes, entries: [{service, key, outputs, bytes, files, created, last_used, prepare_ms, copy_ms?, used_by}]}, the largest first.used_by: the trees (lane names,""the main tree) whose service's lastpreparecame from the entry or went into it. A lane's API answers from the same store (a lane on a node: the member's store there,owned: false).DELETE /v1/store/{service}/{key}:204.404when there is no such entry (or the name cannot be one).409while aprepareof that key in this daemon holds it (waits 5 s), or for a node's store.kept.store_bytes?(part ofkept.bytes): optional,serde(default). Older nodes and coordinators omit it.Views
ServiceDetailView.vue: a "Prepare" row in Details, e.g.from the store, copied in 2.4s; prepare took 2m 40s when it made them · 3 min ago · key …orprepare ran, 41.0s (store miss: no entry for these inputs on this machine); kept in the store.UsageView.vue+ newStoreLine.vue: "Store of what prepare makes: 3 entries, 1.2 GB". It opens a modal with the entries (service, short key, outputs, size, made/prepare/copy times, last used, used by) and a remove action per entry (with a confirmation). It always asks the main tree's daemon.PoolView.vue: next to "N kept, X" a node shows "store Y". The kept figure then leaves out the store, when the node reports it.ui/src/lib/store.tswith vitest.A lane's start phases (
moving.phases) are the node's steps up to the point where the lane's daemon runs there.prepareruns after that, in that daemon, so it shows in the lane's service view (through the lane's API) and not as a new phase.Tests
cargo fmt --checkandcargo clippy --workspace --all-targets -- -D warnings: cleancargo test -p devstack-daemon -p devstack-node: pass (new:a_service_says_where_its_prepare_came_from_and_the_store_lists_and_removes_entries,what_a_node_keeps_names_its_store_and_older_nodes_need_not)cd ui && npm ci && npm run typecheck && npx vitest run && npm run build: pass (72 tests)🤖 Generated with Claude Code