Repository navigation
hrx_build_scope: the compile costs 2.0 min, not eight, and here is how to re-measure (engine#3245) - #3246
hrx_build_scope: the compile costs 2.0 min, not eight, and here is how to re-measure (engine#3245)#3246bong-water-water-bong wants to merge 1 commit into
Conversation
…w to re-measure (engine#3245)
The docstring justified the configure-only path with "an eight-minute compile on the bench runner", and the self-test
comment repeated it. Nobody had measured it; I quoted it in engine#3228's issue body and then had to correct it in
public. The runner disagrees: of the last 30 `hrx_build` runs, the successes are median **2.0 min** (min 0.2, max 5.4)
and a configure-only run is **0.2 min**, so the saving a registration-only PR gets is ~1.8 min of the single build
runner. Same branch, both shapes: 2.0 / 1.9 / 2.7 min full, 0.2 min configure-only.
The fix is the figure, its unit and the command that produces it, so the next reader re-derives instead of repeating:
gh run list --workflow hrx-build.yml --limit 30 --json createdAt,updatedAt,conclusion
No behaviour change: `--self-test` 0 failures, and the replayed verdicts are unchanged (6f124c7 configure-only,
10fdd3d full). `git grep "eight-minute"` finds no other occurrence in the tree.
|
Closing on the cap, my own error, not a defect in the change. I read the counter at 21:1x as 1 non-draft open, then pushed at 21:20:47Z without re-reading it. In between, #3243 (21:10:47) and #3244 (21:11:33) were opened, so the count was already 3 when mine became the 4th. That is the "no reservation" hazard the board named today, with my name on it: one number, several decision-makers, and the window between reading it and acting on it. Of the four, mine is the least valuable — a docstring figure and the command that re-measures it — so it is the one that waits. The work is finished and the branch is kept: The measurement in #3245 does not change: over 26 successful |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
…th the method (#3249) engine#3245. `hrx_build_scope.py` argued for the `configure-only` path with "an eight-minute compile on the bench runner" (docstring) and repeated it in a self-test comment. Nobody had measured it. Measured now, over the last 30 `hrx_build` runs (26 successes): min 0.17 min median 1.92 min max 5.4 min configure-only 0.17 min same branch, full runs 2.0 / 1.9 / 2.7 min (cl-infra/3223) So the saving a registration-only PR gets is **≈1.8 min**, not eight, and the ratio is ~11x rather than ~47x. The `configure-only` decision is unaffected -- this is the recorded cost, not the rule -- and both replayed verdicts are unchanged (`6f124c74` configure-only, `10fdd3de` full), `--self-test` 0 failures. The figure is load-bearing: it is the argument for the whole path and the number a lane quotes when deciding whether to spend a build slot, which is why it now carries its own method in the file: gh run list --workflow hrx-build.yml --limit 30 --json createdAt,updatedAt,conclusion A number in a comment that nobody measured will be repeated by whoever reads it next; this one was (I quoted it in engine#3228 and had to correct it publicly). The fix PR for this issue, #3246, was closed unmerged, so the figure was still on main at `:21` and `:253` when I took it. Co-authored-by: bong-water-water-bong <[email protected]>
Closes #3245.
hrx_build_scope.pyargued for theconfigure-onlypath with "an eight-minute compile on the bench runner", and repeated it in a self-test comment. Nobody had measured it; I quoted it in #3228 and then had to correct it publicly. Measured over the last 30hrx_buildruns:So a registration-only PR saves ≈1.8 min of the single build runner, not eight. Both occurrences now carry that figure with its unit and the command that reproduces it, so the next reader re-derives instead of repeating:
No behaviour change, and checked rather than asserted:
Why the figure matters more than the wording: it is the argument for the whole
configure-onlypath and the number a lane quotes when deciding whether to spend a slot — a comment nobody measured will be repeated by the next reader, and this one was, by me, in public. One file, +14/−2, one push.