Repository navigation
fix(test): keep worker catalog discovery offline - #201325
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR routes Codex version discovery to the worker test’s existing loopback server while preserving its remote-request guard. Example: The worker E2E fetches https://registry.npmjs.org/@openai/codex/latest.
Review scores
ProductKind: Test only · Worth it: Yes · Fix scope: Complete Regression provenanceRegression provenance — verified: source commit Merge readiness✅ Ready for maintainer review Keep open for merge: this maintainer-authored PR makes a focused fixture repair with no actionable correctness or security findings, and the latest CI gate passes on the reviewed head. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe worker-hosted Codex E2E runs catalog discovery through production code while its preload redirects modeled external requests to a local HTTP fixture. flowchart LR
A[Worker E2E] --> B[Production catalog discovery]
B --> C[Catalog fetch preload]
C --> D[Loopback fixture server]
D --> B
C --> E[Reject unmodeled remote requests]
Technical reviewBest possible solution: Merge the exact-route fixture extension while retaining the existing production catalog path and rejection of unmodeled remote requests. Do we have a high-confidence way to reproduce the issue? Source inspection establishes the new npm GET reaching the old fixture’s rejection path and final assertion; the linked baseline job failed, but no local execution was performed. Is this the best way to solve the issue? This is the smallest complete repair: extend the existing transport fixture and server without bypassing production decisions or weakening assertions. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against b42a8ff2a258. Provenance checked
TestingProof path: in-process harness. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceTests +7. Total +7 across 2 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 18, 2026, 11:33 AM ET / 16:33 UTC. |
|
Merged via squash.
|
(cherry picked from commit 1773726) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit b6d819f1b08c7436784107ff69dba70d6189b955)
What Problem This Solves
The worker-hosted Codex E2E fails on main after catalog discovery began checking the published Codex version. Its offline transport fixture rejects that new npm request as unexpected, even though the worker flow reaches its final assertions.
User Impact
No product behavior changes. The worker E2E can exercise catalog discovery without contacting npm or weakening its network guard.
Why This Change Was Made
Route only the exact npm version GET to the existing loopback fixture and return a synthetic stable version. Other remote requests remain rejected; model admission, authentication, worker placement, cancellation, and cleanup assertions remain unchanged.
Related: #201130
Evidence
05d1e6f1f1f31e43702cbefcdb296c04fa20b8d3; the final guard reportsGET https://registry.npmjs.org/@openai/codex/latest.05d1e6f1..bb540948range: no actionable correctness or security findings (0.96 confidence); the review did not execute runtime proof.