Repository navigation
test(responses): answer requests the code under test did not send with 404 in the Droid default fixtures - #8715
Conversation
…h 404 in the Droid default fixtures dev batch 43508374033, test 5/5 (self-hosted Linux): a fixture upstream of droid-reasoning-defaults received a bodiless GET /healthz on its ephemeral loopback port. Its handler read every request as JSON, threw, and failed "native Chat leaves explicit effort values and invalid defaults alone"; the case kept sending after its teardown had run and a later send got 429, which was the batch's unhandled error. Nothing in opencodex probes a provider's /healthz, so the request came from another process that knew the port. Only a POST can be the request under test, so both fixture upstreams now answer anything else with 404 without reading or capturing it. Injecting a GET /healthz at every upstream fails all 28 cases before (with the same SyntaxError, 429 and unhandled error) and passes all 28 after.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
✅ Deterministic PR hygiene checks passed. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Maintainer judgment: integrating into Exact head 5fcd570:
Test-only change; no outstanding maintainer change requests and no security-boundary surface. |
) gui/tests/codex-account-pool-target-switch.test.tsx "an old visit's read must not give back the new visit's in-flight count" counted roster reads one macrotask after a target switch rendered outside act. The new target's read reaches fetch only after React commits and runs that effect, and on loaded CI runners that took longer: PR gates on #8715 and #8716 saw 2 reads where 3 were due. The case now waits (bounded, 2 s) for the third read before asserting the exact count; every assertion is unchanged. Delaying the fixture's fetch by 5 ms fails the old version the same way (expected 3, received 2) and passes this one. Co-authored-by: lidge-jun <[email protected]>
Summary
test 5/5 of dev batch 43508374033 (self-hosted Linux, shard 5/5 batch 43/64: 778 pass / 1 fail / 1 error) failed
tests/responses/droid-reasoning-defaults.test.ts"native Chat leaves explicit effort values and invalid defaults alone". The log shows the cause: a fixture upstream (Bun.serve({ port: 0 })) received a bodilessGET /healthz("GET - /healthz failed"), its handler read every request as JSON and threwSyntaxError: Unexpected end of JSON input, and the case failed mid-run. The case kept sending after its teardown had already released the spend home and removed the temp home, and its last send got 429. That 429 is the batch's "Unhandled error between tests".This is not a regression in the Droid reasoning default logic. The test file has not changed since de82861; nothing between the last green batches and this head touches reasoning or effort handling; and nothing in opencodex sends
/healthzto a provider. The file passes alone on28680d5c0(28/28). The request came from another process that knew that loopback port. On a self-hosted host that runs several runners, an ephemeral port is reused across processes, and a lingering health probe for a former owner of the port can arrive.Only a POST can be the request under test, so both fixture upstreams (
upstream()andfailingUpstream()) now answer anything else with 404, without reading or capturing it. The asserted request path and every other assertion are unchanged.Verification
GET /healthzto each fixture upstream right after it starts: on theorigin/devversion the targeted case fails with the same three symptoms (SyntaxError, "GET - /healthz failed", unhandled 429). With the probe at every upstream, the whole file fails (0 pass / 28 fail / 27 errors). With the fix and the same probes: 28 pass / 0 fail.bun test tests/responses/droid-reasoning-defaults.test.ts: 28 pass / 0 fail.bun run typecheck: exit 0.Checklist
Summary by CodeRabbit