gunk-dev/the-valley
the-valley:bd-b53fe9dbugopen

pending calls a check grown when the machine was busy, not the change slower

State
free to start
Created
2026-11-14 by contributor

Body

`pending` marks a check as grown when its build time exceeds the median of its earlier builds. The comparison takes no account of what else was building, so it flags a change for a slowdown the change did not cause.

One case, a VM check whose test barely differed from main's:

| conditions of the build | build time |
|---|---|
| alone, ten earlier builds | 530–560 s |
| beside one other 325 s check | 644 s |
| beside 21 other checks (1,102 s of builds in total) | 930 s, flagged grown |
| alone, next version, same worker code under test | 711 s, flagged grown |

Three back-to-back builds on one machine settled it: main 1,179 s, the change 1,467 s, main again 1,542 s. The worker under test made 32 passes in each, and 1,246, 1,209 and 1,265 ssh logins. The change did no more work than main; the same derivation varied by 30% within an hour.

The flag cost a fix round and about two hours of measurement before the change could be handed over.

What would have told the truth:

- The telemetry already records what else ran in the batch (`check.result` per check with `build_ms` and `slot_wait_ms`). A build that shared the machine with many others is not comparable with a baseline of solo builds; say so, or compare like with like.
- Wall time alone cannot separate the change from the machine. A count of work is stable where time is not. For this check, passes and ssh logins were; a check could publish such a count beside its time.
- A single build above the median is weak evidence. The wording could give the spread of earlier builds, not only the median.

This is a note of the problem and the evidence, not a design.

Comments

No comments.