Skip to content

feat(pool): a lane's need names its builds (ADR-0119 point 3) - #627

Merged
7schmiede merged 1 commit into
mainfrom
feat/lane-need-builds
Nov 24, 2026
Merged

7schmiede merged 1 commit into
mainfrom
feat/lane-need-builds

Conversation

@7schmiede

@7schmiede 7schmiede commented Nov 24, 2026 •

Copy link
Copy Markdown
Member

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:

# Category Point Beats Reversing costs
3 contract The need a lane reports to the pool names its builds apart (services and containers plus builds); placement still takes the sum, the log names the builds' part. Needs like 25.4 GB nobody can explain. Medium: a field through node, coordinator and hub; older nodes leave it out.

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 and daemon.log do).

How it was checked

  • share: the field on the wire, an older peer's need without it, Amount reading the rest, max.
  • runs: the most a run's daemon said, a part, not added.
  • node: lane_builds against a fake daemon that answers its token at its loopback host only; red with another Host, none for a wrong token or no daemon.
  • cargo clippy --workspace --all-targets -D warnings on Windows and in rust:1.98; cargo test -p devstack-node -p devstack-daemon.
  • On a pool node, with the owner's go-ahead: the node agent and the coordinator ran this build for a while (originals restored afterwards, sha256 checked against the image). The coordinator's footprints then carried builds for 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

@7schmiede
7schmiede force-pushed the feat/lane-need-builds branch from 9bf4e2b to 351c2bb Compare November 24, 2026 11:51
`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
7schmiede force-pushed the feat/lane-need-builds branch from 351c2bb to dd3dafc Compare November 24, 2026 12:20
@7schmiede
7schmiede merged commit f31e3d7 into main Nov 24, 2026
14 checks passed
@7schmiede
7schmiede deleted the feat/lane-need-builds branch November 24, 2026 12:30
@7schmiede 7schmiede mentioned this pull request Nov 26, 2026
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