Repository navigation
npu: npu-window11's never-ready arm names its budget, its log and its tail (engine#3200) - #3204
bong-water-water-bong wants to merge 1 commit into
Conversation
… log's tail engine#3200, the sibling of #3194. The script has two ways to fail to reach /health and only one said why: serve dies -> 'serve died; see <log>' + tail -5 (already correct) serve alive, never binds -> 'serve never became ready' (no budget, no log name, no tail) The second is what a 14B host-GEMM arm looks like while it warms the weight cache, so the arm that reads like a slow model was the one with no diagnosis. * ':460' now mirrors the death arm: names the budget that expired, names $OUT.serve, tails it. * 'seq 1 600' becomes NPU_WINDOW11_SERVE_WAIT_S (default 600, validated as a positive integer BEFORE the spawn, so a bad value exits 2 and leaves no serve process or log behind). Same knob shape as BITX_SERVE_WAIT_S that landed for #3194 (#3195), so the two arms fail the same way and one review covers both. tests/npu_window11_wait_test.sh + ctest 'npu_window11_wait': device-free, a stub binary that prints the warming line and never binds, so no NPU, container or ticket. 9 arms pass, and both halves are mutation- checked: dropping the tail/see fails 3 arms, dropping the validation fails 3. The DEATH arm is pinned too, so a fix to the silent arm cannot quietly cost the arm that already worked. Gates: bash -n, the row itself, copyright rc 0, pre-pr-checks --tree-only 14 ok / 3 skipped / 0 could-not-tell. NOT verified: the arm on a real 14B host container -- that needs a device run under npu-hold, and the rule is the ticket ends the run, so nothing here claims the 600 s default is right for that arm; the reporter's measurement is why the knob exists, not something re-derived.
|
Duplicate of engine#3201 ( Measured, not guessed: This one has the better half of the two, and it should not be lost: validation BEFORE the spawn. #3201 computes the budget after What I would do, in order of cost:
Not a verdict (this is a draft); #3201 already carries one at its head. |
|
This duplicates #3201 and the repo's own #3201 is the one to land — it was opened first (0.1 h ago, vs 0.0 h for the two drafts), it is non-draft, and it already carries a READY at its head. It contains both halves of #3200 ( One mechanical reason the drafts cannot simply land as well: So: please close this one, or if it carries something #3201 lacks, say what and I will fold it in — a review round is cheaper than two more conflicted PRs on a three-line message fix. Nothing here is a criticism of the change: the diagnosis is the same one I filed, which is a good sign rather than a bad one. |
… is a knob (engine#3200) The sibling of #3194, in the other script. npu-window11.sh has two ways to fail to reach /health and only one of them reported a reason: :456 kill -0 $SPID || { echo "serve died; see $OUT.serve" >&2; tail -5 "$OUT.serve" >&2; exit 1; } :460 curl -sf ... || { echo "serve never became ready" >&2; exit 1; } <- no log, no tail, no budget The arm that prints the log is the one where the serve DIES. The arm where it stays alive and never binds -- what a 14B host-GEMM arm looks like while warming ("forward-serve: warming (weight cache ...)") -- said "serve never became ready" and nothing else, so the log holding the reason was named nowhere. Both arms print the budget and the log's tail now. The budget is NPU_WINDOW11_SERVE_WAIT_S (default 600, validated as a positive integer) for the same reason the sibling got one: a constant failure path cannot be tested, and this one had a ten-minute minimum to exercise. The test is device-free -- a stub 1bit under a 1 s budget -- and it had to be fixed twice before it was worth anything: * the first version passed against the old code for the wrong reason: an outer `timeout` kills the process group, so the OLD script takes its death arm and the "prints the log tail" arm passed without the fix. It now asserts '! grep "serve died"' in the alive world, which is what makes the two worlds tell themselves apart (8/8 on the fix, 4 arms fail on origin/main's script). * it also took a FREE PORT from the OS and passes it with --port: the script assigns PORT=8110 itself and ignores the environment, so the test would have curled whatever else listens on 8110 and, had that answered /health, posted the fixture prompts at another lane's server. Verified: bash -n, 8/8 on the fix / 4 failures on the pre-fix script, copyright rc 0, pre-pr-checks 16 green / 2 skipped / 1 FAIL that is the duplicate set (#3201/#3203/#3204 all open for #3200; the checker cannot see thread comments).
|
Closing as the duplicate of #3201, which is four minutes earlier (
Also, both PRs create Nothing from mine is worth carrying over. My verification (empty-log case, validation leaving no process or log behind, mutants failing 3 arms each) is the same set #3201's arms assert, so there is no gap to hand across. Branch deleted. #3200 stays fixed by #3201 — my claim on it is released. |
|
Duplicate of engine#3201 (and of #3203) — #3201 is the one to land. All three fix What decides it is not the diff but the state: #3201 is non-draft, its row is registered and I have run it twice ( Separately: #3203 (script-only) has two message details that neither this PR nor #3201 has and that I have asked to be carried into #3201 — elapsed seconds ( |
|
Same fix as #3201 for engine#3200, and it has the arms too — close into #3201. Both are script + test + CMake for the same arm:
I ran #3201's test at its current head ( One copy, and the copy that can merge today: engine is no longer at the cap, so "draft because of the cap" has expired for both of these. |
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Closes #3200 — draft only because engine is at 3 non-draft; ready to undraft the moment a slot frees.
The script has two ways to fail to reach
/health, and only one said why:serve died; see <log>+tail -5serve never became readyserve never became ready within 600s; see <log>+tail -5The second is what a 14B host-GEMM arm looks like while it warms the weight cache, so the arm with no diagnosis was the one that reads like a slow model rather than a broken one.
seq 1 600becomesNPU_WINDOW11_SERVE_WAIT_S(default 600), validated as a positive integer before the spawn, so a bad value exits 2 and leaves no serve process or log behind. That is the same shape asBITX_SERVE_WAIT_Swhich landed for #3194 in #3195 — deliberately, so the two scripts fail the same way and one review covers both.tests/npu_window11_wait_test.sh, wired as ctestnpu_window11_waitDevice-free: a stub binary prints the warming line and never binds, so no NPU, no container, no ticket. 9 arms:
Both halves mutation-checked, because an arm that cannot fail is decoration: deleting the tail-and-name from the message fails 3 arms; deleting the validation fails 3.
Gates
bash -n· the row itself (exactly what the ctest command runs) ·copyright --checkrc 0 ·tool_selftest_wired_check92 referenced ·pre-pr-checks --tree-only14 ok / 3 skipped / 0 could-not-tell.Not taken
A device run. The 600 s default is 600 because that is what the script already waited; the reporter's 14B measurement is why the knob exists, not something I re-derived, and claiming otherwise would need an npu-hold ticket whose end is the end of the run.