Repository navigation
feat(prepare): warm the store for a ref before a lane needs it, here and on nodes (ADR-0065) - #296
Merged
Merged
Conversation
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 #290. Builds ADR-0065 (accepted).
[prepare] warm = ["origin/main"](PrepareSettings); a ref devstack hands to git (no option, no range, no whitespace); an error without a service whosepreparenamesoutputs;WARM_SINCE = 0.24.0warning.crates/devstack-daemon/src/warm.rs): the main tree's daemon reads each ref's commit every minute (never fetches); a new commit, quiet for two minutes, is checked out under.devstack/warm/with an index of its own (read-tree,checkout-index), so the key is a checkout's (line endings, filters) and the worktree/index/worktree list stay untouched. Inputs first; the rest only for a key the store lacks;prepareunder the one-at-a-time lock (Supervisor::warm_service). Last commit per ref in.devstack/warm/done.json; a failure is a notice, retried at the next commit.lanes.rswarm_nodes,remote.rsRemoteLane::warm): the nodes ofran_onwhose slots hold a lane of the repository get a warm lease (lanewarm--<ref>), on a fresh checkout (not the one with this machine's outputs): lease → sync → start →GET /v1/warmuntil done → release. The node (devstack-node):warminLeaseRequest/Lease/NodeLease/NodePolicy(falseanywhere refuses), no Compose group for a warm lease,DEVSTACK_WARM→ the lane's daemon runswarm_laneonly. A node before 0.24.0 is not asked (it would start a whole lane); a 404 from/v1/warmends at once.docs/stack-file.md,docs/pool.md,docs/dashboard-api.md, ADR-0065 paths as built, CHANGELOG.warm_herewith the key in the store (only inputs checked out) and, on Windows, without it (whole ref, prepared into the store, then a hit).remote-laneCI:warm = ["HEAD"]in the fixture, timing viaDEVSTACK_WARM_EVERY_MS/_QUIET_MS; after a commit on the main branch the daemon log must showprepare_warmedwithplacelocalandremote.Merged with #295 (the store dashboard):
run_preparereturnsPrepareView.🤖 Generated with Claude Code