Skip to content

release-check: post_watch_once's curl branch used wget's options - #3293

Merged
bong-water-water-bong merged 1 commit into
mainfrom
release-check/queue-plain-curl
Nov 22, 2026
Merged

bong-water-water-bong merged 1 commit into
mainfrom
release-check/queue-plain-curl

Conversation

@bong-water-water-bong

Copy link
Copy Markdown
Collaborator

Part of #3287 (release-check row 5 of 5, chat-npu-queue-plain).

Cause of the FAIL: post_watch_once's curl branch spells its POST as --header='…' --post-data=… (wget's options). curl rejects --post-data ("option --post-data: is unknown") before sending anything, so every image that has curl read status 000 and reported "the non-streamed chat got no HTTP status at all".

Measured on the installed v2026.47 box (long streamed NPU chat, then a short non-streamed one 1 s later, straight to lemond): the short request gets HTTP 503 device_busy after 5.0 s, which is exactly the bound the row proves. The serve was right; the check was not.

Change: -H / --data-binary, as post_fetch already does for curl.

Remaining half of the row: Lemonade drops the backend's Retry-After header on that 503, so with this fix the row moves on to "the 503 carried no numeric Retry-After". That is a real gap (a client is not told how long to wait) and is fixed in our Lemonade fork separately (forward the backend's Retry-After); its pin bump follows.

🤖 Generated with Claude Code

…ine#3287)

The curl arm of post_watch_once spelled its request as --header='...' --post-data=..., which curl rejects
('option --post-data: is unknown') before sending anything, so on every image with curl the
chat-npu-queue-plain row read status 000 and reported 'no HTTP status at all'. Measured on the installed
v2026.47 box: the same request with curl's own options gets 503 device_busy after 5.0 s from lemond, the
bound the row is there to prove. -H/--data-binary now, as post_fetch already does for curl.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

🎫 Ticket compliance analysis 🔶

3287 - Partially compliant

Compliant requirements:

  • The PR fixes the incorrect curl options in the post_watch_once function
  • The fix ensures that the release-check row correctly reports HTTP status codes from the NPU chat endpoint
  • The PR correctly implements curl's native options (-H and --data-binary) as used elsewhere in the codebase

Non-compliant requirements:

  • The PR does not address the other release-check items mentioned in the ticket (stale release-check rows, payload-runpath, xhci-capture, etc.)

Requires further human verification:

  • The specific behavior of the NPU chat endpoint under load needs to be verified manually to ensure the fix works as expected
  • The full release-check suite should be run to confirm that the fix doesn't break other checks
⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
🧪 No relevant tests
🔒 No security concerns identified
⚡ Recommended focus areas for review

Incorrect curl options

The curl branch in post_watch_once was using wget-style options (--header, --post-data) instead of curl-native options (-H, --data-binary). This caused curl to reject the command before sending the request, leading to a "no HTTP status at all" error in the release-check. The fix correctly uses curl's native options.

# engine#3287: curl's own options. This branch had wget's (--header=, --post-data=), which curl rejects before it
# sends anything, so every curl image reported "no HTTP status at all" for a serve that answered 503 in 5 s.
if [ -n "$KEY" ]; then
    curl -s -m 200 -D "$3.headers" -o "$3" -w '%{http_code}' \
         -H 'Content-Type: application/json' -H "Authorization: Bearer $KEY" \
         --data-binary "$1" "$2" 2>/dev/null
else
    curl -s -m 200 -D "$3.headers" -o "$3" -w '%{http_code}' \
         -H 'Content-Type: application/json' --data-binary "$1" "$2" 2>/dev/null
fi

@bong-water-water-bong
bong-water-water-bong enabled auto-merge (squash) November 22, 2026 07:36
@bong-water-water-bong
bong-water-water-bong merged commit 0287d8b into main Nov 22, 2026
11 checks passed
@bong-water-water-bong
bong-water-water-bong deleted the release-check/queue-plain-curl branch November 22, 2026 07:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant