Repository navigation
test(combos): keep the rename fixture off provider discovery and serialize its temp homes - #6833
Conversation
…alize its temp homes (#6777)
Codex Review SummaryThis 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. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 32 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. Review configuration: ⚙️ Run configuration
📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
✅ Deterministic PR hygiene checks passed. |
* docs(devlog): record the #6777 fixture implementation * docs(devlog): record the #6776 fixture implementation * docs(devlog): close the N3 test-infra unit (#6775, #6777, #6776) Moves devlog/_plan/261009_n3_test_infra to devlog/_fin with an Outcome section recording #6835 (7f642e3), #6833 (6d7e5f4) and #6834 (c4baa30), their exact-head CI, the union check, and the scope left as follow-ups. * docs(devlog): say which N3 CI jobs were skipped
Summary
Fixes #6777. The combo rename management tests could time out and then corrupt the next test's fixture.
The rename route awaits Claude agent sync, which gathers routed models, and the fixture's synthetic providers (
https://a.example/v1etc.) had live discovery on. Discovery ends in a DNS lookup that the HTTP request's abort signal does not bound. When DNS was slow, the case exceeded Bun's 5 s default; Bun then started the next case while the first callback was still running, so the first read the second's fixture and itsfinallyrestored the environment under it. That is the reportednew-public/stable-publicmismatch followed byENOENT config.json. Hosted CI resolves DNS fast and runs with--timeout 60000, which hid it.Test-only change in
tests/routing/combo-management-api.test.ts:liveModels: false, so the static catalog path is used and no outbound request is made. The route's await stays: the case asserts agent definitions are migrated before the response returns.withTempHomeowners are serialized.afterEachdrains the queue with a 50 s bound; if an owner never settles, the helper is poisoned so later owners (including ones already queued) reject instead of sharing a live environment, and later drains fail immediately.providerOutboundGetis never called (3 calls on dev); an overlapping-owner case and a poison case cover the helper (both fail with the dev helper).No production code changes.
Verification
Every local run started Bun with a fresh temporary
HOME,USERPROFILEandCLAUDE_CONFIG_DIR(the separate #6775 hazard).bun test tests/routing/combo-management-api.test.ts: 41 pass, 0 fail.bun test tests/ci-workflows/file-size-ratchet.test.ts: pass (file at 1,913 lines).bun run typecheck: exit 0.--isolate --timeout 60000flags (77/77 across four files).Checklist