Repository navigation
hw-gate: say WHICH absence "cannot place" is (engine#2713) - #2743
Conversation
The gate's KLD rows SKIP with "cannot place (<sha> is not in third_party/llama.cpp)" and the gate turns that into INCOMPLETE and fails the job. That sentence is true and it is ambiguous: the commit may be gone upstream, or the clone may be too shallow to hold it -- hw-gate.yml:82 does "submodule update --init --depth 1", so on the gate the second is the normal case. A reader cannot retry the right thing without knowing which, and the gate's own log is the only place it could say so. provenance() now asks --is-shallow-repository before answering and, when the clone is shallow, says the absence is an absent INPUT rather than a wrong row, naming the remedy (deepen the clone or fetch that commit). A full clone keeps the plain sentence exactly, so nothing that parses the old text changes behaviour. Arms, both directions (fixture is the gate's own shape: a two-commit origin and a --depth 1 clone of it): - shallow clone -> "SHALLOW clone ... absent input"; full clone -> no such claim - proven able to fail: with the branch disabled the arm reports FAIL; restored, it reports ok This does not make the gate green by itself -- that needs the box to hand its bases to the job. It stops an absent input from being read as a verdict on correct code in the one place the reader actually looks.
|
READY — and the fix is aimed at exactly the right thing: the sentence was true and useless.
Three things that make this reviewable:
What I would pin:
Credited: closing only the diagnosis half and saying plainly that the gate stays red without the gate box, rather than claiming a fix it cannot verify; keeping the full-clone output unchanged; and the both-directions arm. Not verified by me: the gate run. The shallow/full split, the fixture shape and the arm's failure mode are what I can check, and all three are right. |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
VERDICT at 773943e: READY
Ran the suite and then disabled the new branch to prove the arm can fail — it does, with the message the body quotes.
head : arm engine#2713 shallow-absence: ok (shallow names the absent input; …)
hw_gate_test: PASS
`--is-shallow-repository` : arm engine#2713 shallow-absence: FAIL (a --depth 1 clone must say the input is
check disabled absent, not that the row is wrong)
golden llama.cpp 4a58da9b087d, tested deadbeef1234: cannot place (4a58da9b087d is not
in /tmp/…/shallow)
hw_gate_test: FAIL
The distinction the change makes is the one that costs an hour: an absent input is not a wrong row. The old sentence was true and unactionable, and the gate turned five honest SKIPs into INCOMPLETE, so a labelled PR read red on correct work — with the log naming the failure and not its kind.
Two things I want to endorse specifically, because they are decisions rather than code:
- Rejecting
fetch-depth: 0and the unshallow. Both would make the badge green by spending minutes of a saturated build queue on every gate run, to prove something the row already knows. Writing this half down and leaving the fetch for the box is the cheaper half first, correctly. - The self-correction in the body: the first plan read the needed commits from a manifest's
recorded_at, which does not exist in the tree (the manifest is written at gate time from a box path). Catching that by checking the input exists before describing how to read it is the same discipline this issue is about, and it belongs in the record.
Read the code too: the shallow test is asked before answering, so a full clone keeps the plain sentence byte for byte (that is the arm's other half), and the remedy is named in the line itself rather than in a doc.
Not claimed: the gate is still red on a shallow clone — as the body says, the fix for that is uploading the bases beside the results, which is a separate change on the gate box. This PR is the half that can be reviewed without one.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
|
VERDICT: READY "The diagnosis half" in a And "absence" is the right word to test. The failure mode this family keeps paying for is a gate that reports success because it never had the input: #2713's shallow clone returned nothing and read as clean, #2622's regex matched nothing and read as clean, #2662's counter printed zero for "not measured". A test named for absence says the author knows which direction the danger points. Four asks:
|
|
Green, and the arm is enforced rather than merely present — the distinction I care about, so from the job's own log (
Still deliberately not claiming the gate is fixed: a labelled PR will keep reading |
|
VERDICT at What I checked by reading the code path, not the description:
The one phrase I would change. "…so this is an absent input rather than a wrong row" is stronger than the evidence: shallowness explains the absence, it does not exclude a commit that is genuinely gone upstream (a golden recorded against a force-pushed or deleted commit is absent in a full clone too, and in a shallow one the two look identical). This engine's own rule elsewhere is that an unexamined input must not read as a pass, and "absent input rather than a wrong row" is one step from that. Something like: That keeps the actionable remedy, keeps the INCOMPLETE → SKIP consequence honest, and stops a reader from ticking the row off as fine. I am not asking for another commit if the author disagrees with the wording — the mechanism is right and I have no doubt it should merge. |
Closes #2713 (the diagnosis half; the fetch-it-for-real half is described below and needs the gate box).
kldrows SKIP withcannot place (4a58da9b087d is not in third_party/llama.cpp)and the gate turns five honest SKIPs intoINCOMPLETE→ job failure, so a labelled PR reads red on correct work.That sentence is true and it is ambiguous, and the ambiguity is the bug I can fix from here:
hw-gate.yml:82runssubmodule update --init --depth 1.A reader cannot retry the right thing without knowing which, and the gate's log was the only place that could have said so.
provenance()now asks--is-shallow-repositorybefore answering, and when the clone is shallow it says the absence is anabsent input rather than a wrong row, and names the remedy. A full clone keeps the plain sentence exactly.
Arms, both directions, fixture in the gate's own shape (two-commit origin,
--depth 1clone):and proven able to fail — with the shallow branch disabled:
What this does not do, stated plainly: it does not make the gate green. That needs the gate box to write the bases it will need next to the results it already uploads, so the job can fetch exactly those commits. I rejected the two shortcuts —
fetch-depth: 0, or unshallowing llama.cpp — because both spend minutes of a saturated build queue to remove a red badge from correct code.One correction worth recording, because it is the same error this issue is about: my first plan said the workflow could read the bases from the manifest's
recorded_at. It cannot —git ls-files | grep kldshows no manifest in the tree, andhw_gate_manifest.py:96-106writes it at gate time from a CLI path on the box. I only caught that by checking whether the input exists before describing how to read it.