Repository navigation
feat(pool): a lane's need names its builds (ADR-0119 point 3) - #627
Merged
Merged
Conversation
7schmiede
force-pushed
the
feat/lane-need-builds
branch
from
November 24, 2026 11:51
9bf4e2b to
351c2bb
Compare
`Need::builds`: of its memory, the most the lane's build job took. The daemon's estimate from the main tree takes the build series' peak; a node asks each lane's daemon for `builds` of `/v1/usage` every round (it sees the lane as one container) and keeps the most in the run, and the coordinator's footprint the most of the last five. The lease step says "of it builds …", `remote_lane_need` logs it. Placement still takes the whole memory; the field is left out at zero, so older peers read the rest. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
7schmiede
force-pushed
the
feat/lane-need-builds
branch
from
November 24, 2026 12:20
351c2bb to
dd3dafc
Compare
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.
What and why
Point 3 of the card of ADR-0119 (#626): a lane's need for the pool names its builds' part. A lane's need of 25.4 GB came mostly from MSBuild nodes kept warm after builds; nothing said so. The need stays as it is (the build servers do take the node's memory until MSBuild ends them); it now says how much of it the builds are.
#625 and #626 are merged; this is rebased onto
main.Review card
Approved by the owner in the conversation on 2026-11-24, points 1–4 (the table is in #626). This pull request builds point 3:
Decided on my own: a node asks each lane's daemon (
/v1/usage,builds.memory) every round, all at once with three seconds each, since it measures the lane as one container; the field is serialised only when not zero; the dashboard does not show it yet (the lease step anddaemon.logdo).How it was checked
share: the field on the wire, an older peer's need without it,Amountreading the rest,max.runs: the most a run's daemon said, a part, not added.node:lane_buildsagainst a fake daemon that answers its token at its loopback host only; red with anotherHost, none for a wrong token or no daemon.cargo clippy --workspace --all-targets -D warningson Windows and inrust:1.98;cargo test -p devstack-node -p devstack-daemon.buildsfor every lane that counted: a throwaway probe lane, and two real lanes of a .NET and Angular stack, one at 12.44 GB memory of which 5.61 GB builds, the other at 10.89 GB of which 0.25 GB. Lanes that ran there survived both restarts.🤖 Generated with Claude Code