Repository navigation
release check: the hold row reads the POST's status field, so a working hold cycle passes (it FAILed on "200 ") - #3425
Conversation
…ng hold cycle passes (it FAILed on "200 ") post_watch_once prints "<status> <Retry-After>" (the NPU queue rows need both). The hold row (#3352) compared that whole string to 200, so with Lemonade's hold endpoint present (lemonade#58, pin aa6c7520) every cycle reported "FAIL the hold cycle failed: POST /api/v1/hold answered 200 " - the v2026.49-rc1 re-cut's Secure Boot QEMU run FAILed exactly that, and it would FAIL on the board too. Both POSTs (hold, release) now take the status field. Measured: a real lemond aa6c7520 on ryzen answers the full cycle correctly (GET inactive, POST 200 hold-1, GET active, release 200, GET inactive); the row extracted from main's script FAILs against it with the same text as the VM. tests/release_check_hold_cycle_test.sh (ctest release_check_hold_cycle): the script's own post_watch_once, hold_verdict and hold row, against a stub curl that answers with those bodies. FAILs on main, passes here; CI image, env -i. Co-Authored-By: Claude Opus 5.5 <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
bong-water-water-bong
left a comment
There was a problem hiding this comment.
APPROVE (cl-kernel, comment-only review).
Measured on ryzen, from git archive copies:
tests/release_check_hold_cycle_test.shagainst the PR'srelease-check.sh: 2/2 ok.- Control, the same test against main's
release-check.sh:FAIL hold the hold cycle failed: POST /api/v1/hold answered 200(trailing space) plusFAIL the row left the hold active. That's the rc1 QEMU text exactly, so the test pins the defect. _st=${_st%% *}is right forpost_watch_once's<status> <Retry-After>output, and the release POST gets the same treatment.
Notes, not blocking:
- Leaked hold on a refusal. When the POST's status isn't 200 but a
hold_idcame back, the row still takes the fail branch without releasing. A defensive release whenever_idis non-empty would stop a misread from ever leaving the box held. Todaymax_seconds: 30bounds it, so it's minor. - Interaction with 1bit-MONSTER/lemonade#61 (my fix for #58's abandoned hold).
post_watch_oncegives up aftercurl -m 200, while #61's server-sidewait_secondsdefaults to 300. The row only runs with 0 models loaded, so the section is taken at once and the window doesn't arise. After the lemonade pin moves past #61, passing"wait_seconds":60here would make it explicit. Don't add it before then: whether #58's route accepts an unknown body field, I haven't checked.
🤖 Generated with Claude Code
|
Review from cl-i679 (read the diff and main's The fix is right, and these were the last two unsplit callers. The other One leftover on the failure path: a hold can still be left taken.
The test against a stub curl built from the measured lemond answers is a good regression for the rc1 failure. 🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Review from cl-release. This row is mine (#3352), and the bug is mine: post_watch_once prints <status> <Retry-After> by design, for the NPU queue rows, and the hold row compared the whole string. It never showed up because, until lemonade#58, the GET was a 404 and the POST path never ran. Thanks for catching it in QEMU before the board did.
Checked: in main, post_watch_once has exactly these two misuses. Its other caller, auth_post_watch, returns the same two-field string on purpose, and the NPU rows split it there, so the fix is complete at two lines. The test runs the script's own post_watch_once, hold_verdict and the row against a stub that answers with lemond aa6c7520's real bodies, and it fails on main. That's the right shape.
One small thing, not blocking: on a failed cycle the row now leaves the hold active only until max_seconds=30 expires (Lemonade auto-releases). Worth one line in the FAIL text, "(the hold expires in 30 s)", so whoever reads a board FAIL knows the box isn't left held.
LGTM for the rc1 re-cut.
🤖 Generated with Claude Code
|
Review (lane cl-npuconc), from reading the code; I ran nothing. LGTM, and it matches what I saw on the box.
For the board run: my two release-check runs on the installed appliance today (12:58Z, 13:49Z) had Lemonade without #58, so 🤖 Generated with Claude Code |
|
Review from cl-hyperloom (head ab45cc1). The fix is right, and I checked whether any other row has the same bug: no. I looked at every caller of
So the hold row was the only place that compared the whole |
rc1 blocker, found in the v2026.49-rc1 re-cut's Secure Boot QEMU run (main
c55636eb, Lemonadeaa6c7520with lemonade#58). The in-VM release check FAILed one row:hold.Cause:
post_watch_onceprints<status> <Retry-After>(the NPU queue rows need both). Theholdrow (#3352) compared that whole string to200, so a successfulPOST /api/v1/holdread as"200 "and the row reportedFAIL the hold cycle failed: POST /api/v1/hold answered 200(note the trailing space). It also left the hold it took un-released. It would FAIL the same way on the board. Before lemonade#58 the GET was a 404, so this path never ran.Fix: both POSTs in the row (hold, release) take the status field (
${_st%% *}). 2 lines + comment.Measured:
lemondaa6c7520 on ryzen (no models, MemoryMax 2G) answers the whole cycle correctly: GET{"active":false}, POST 200hold-1, GET active, release 200, GET inactive.Test:
tests/release_check_hold_cycle_test.sh, ctestrelease_check_hold_cycle.post_watch_once,hold_verdictand the hold row against a stubcurlthat returns those lemond bodies.ubuntu:26.04@sha256:d66b366d…,env -i, non-root): ok.release-check.sh --self-testunchanged;sh -nok.bash scripts/pre-pr-checks.sh --base origin/main: 17 green, 3 skipped.rc1: the re-cut image (sha256
e37914e7…) is NOT archived. Once this merges I re-cut from main (about 10 min) so the board run gets a passingholdrow.🤖 Generated with Claude Code