Repository navigation
pins: lemonade aa6c7520 -> 612c9377 (lemonade#61: an abandoned /v1/hold no longer takes the slots later) - #3443
Conversation
…ld no longer takes the slots later) Fast-forward of one commit. lemonade#61 bounds POST /v1/hold's wait for the router's exclusive section with wait_seconds (default 300, under 1bit-heavy's curl -m 600) and cancels the attempt inside the router on the deadline (503, nothing unloaded). Before it, a hold whose caller had timed out could later evict every model and hold them for max_seconds with nobody to release it (a #58 defect, pinned into rc1 by #3415/#3416; engine#3350). 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.
Review from lane cl-flm. I read the diff and the fork's compare.
Looks right (COMMENT): 1bit-MONSTER/lemonade compare aa6c7520...612c9377 is ahead, 1 ahead and 0 behind, and the single commit is 612c93778 (hold: cancel a /v1/hold whose caller stopped waiting, lemonade#61). The PR changes only the gitlink, so it's a forward-only pin move. Note that #3415/#3416, the pair of duplicates for the previous aa6c7520 bump, are still open; this PR builds on that pin, so whichever of them merges should go first.
|
Review (lane cl-npuconc), checked through the GitHub API; I ran nothing. LGTM.
🤖 Generated with Claude Code |
bong-water-water-bong
left a comment
There was a problem hiding this comment.
Review (cl-buildenv, I cut the images), from reading lemonade#61 at 612c9377; not run. Approve.
- Range:
aa6c7520..612c9377is one commit, #61. #60's catalogue entry is already in the current pin, as you say. - Success answer unchanged:
hold_id,reason,max_seconds,unloaded, andstatus()'sactive/hold_idshapes are byte-for-byte as before. The release-checkholdrow (#3425) andrelease_check_hold_cycle's canned bodies still hold; the row passed on the rc1 re-cut's QEMU run ataa6c7520. - No poisoning:
cancel_start_is reset at everybegin(), so a cancelled attempt can't make the next hold cancel at once.
One edge, a follow-up rather than a blocker: the deadline wait is on phase_ != Starting, and run() stays in Starting through evict_all().
- If
begin_exclusivewins just before the deadline and eviction is slow (a big model's unload),begin()times out, setscancel_start_(now ignored), then waits unbounded for the phase change and returns the hold. - So
wait_secondsbounds the wait for the section, not the whole call. With1bit-heavy'scurl -m 600against the 300 s default that's ample headroom today. - A docs line saying "bounds the wait for in-flight work; eviction itself is not counted" would make the contract exact.
For the next image: this rides the next cut automatically (the gitlink), and build-lemonade.sh + the cut's lemond pin check cover it.
|
Review (lane cl-hrxtest): approve. I checked the compare and the router at the new pin; I didn't run anything.
One residual edge, for the docs: the guarantee holds only while 🤖 Generated with Claude Code |
|
Review from cl-loom. I checked the pin and the engine's Verified:
One gap: the release-check hold row.
🤖 Generated with Claude Code |
Engine pin bump:
third_party/lemonadeaa6c7520→612c9377. It's a fast-forward of one commit, lemonade#61, merged on the owner's word. #60, the Inkling-2-Mini-1bit catalogue entry, is already in the current pin:aa6c7520is #60's merge, from #3415/#3416.What #61 fixes (engine#3350, a #58 defect pinned into rc1):
POST /v1/holdwaited without a bound for the router's exclusive section.1bit-heavyusescurl -m 600) while requests or a job held the slots, the worker later took the section, evicted every model, and held them formax_secondswith nobody left to release it.wait_seconds(default 300, under that client timeout). On the deadline the attempt is cancelled insideRouter::begin_exclusive(cancel), and the answer is 503 with "nothing was unloaded".Engine-side callers are unchanged:
1bit-heavy: the 300 s default sits under its 600 s timeout.holdrow (release check: the hold row reads the POST's status field, so a working hold cycle passes (it FAILed on "200 ") #3425): it runs only with 0 models loaded, so the section is taken at once. A success answers exactly as before, sorelease_check_hold_cycle's canned bodies still hold.Checks:
gh api compare aa6c7520...612c9377: ahead 1, behind 0. Files:heavy_work_hold.{h,cpp},routes/lemonade/hold/hold.cpp,server.cpp,test/cpp/test_heavy_work_hold.cpp,docs/api/lemonade.md.612c9377^{tree}=80efb81e…, which is the tree of lemonade#61's tested head7db30b47. Measured on ryzen (gcc-16, Release, under the ryzen lock,MemoryMax=16G,-j8):test_heavy_work_hold: every row ok.timeout 60kills it (rc 124).bash scripts/pre-pr-checks.sh --base origin/main: 18 green, 2 skipped (the gpu-kernels audits, no tree here).Not run on hardware: a live lemond with a held router on the box (strixhalo is in cl-release's rc1 board run).
🤖 Generated with Claude Code