Repository navigation
fix: make daily Codex regression noninteractive and sidecar-backed - #11159
Conversation
Co-authored-by: lpcox <[email protected]>
There was a problem hiding this comment.
🔵 Needs a closer look
Runtime evidence is needed to confirm that Codex 0.159.3 routes WebSocket and HTTPS fallback traffic through the sidecar across Docker, Cloud Hypervisor, and NVX, because current tests mock Codex and transport boundaries.
No open issues 🎉
What changed in this PR
This PR addresses #11150 by making the shared Codex regression harness noninteractive and explicitly routing inference through AWF’s credential-injecting sidecar across Docker, Cloud Hypervisor, and NVX.
Changes:
- Close Codex stdin and configure a sidecar-backed Responses provider for WebSocket and HTTPS requests.
- Require exact responses and successful sidecar routing evidence, retaining only bounded, allowlisted fields.
- Add regression coverage for stdin handling, provider configuration, credential replacement, and evidence validation.
| File | Description |
|---|---|
src/services/credentials/openai-credential-env.ts |
Clarifies in comments that placeholder credentials do not guarantee routing. |
scripts/ci/run-agent-runtime-regression.sh |
Requires exact responses and successful Codex sidecar evidence. |
scripts/ci/run-agent-regression-guest.sh |
Closes stdin, selects the sidecar provider, and checks exact output. |
scripts/ci/collect-agent-regression-evidence.test.ts |
Tests routing-field filtering, unsafe inputs, and evidence limits. |
scripts/ci/collect-agent-regression-evidence.cjs |
Collects bounded, allowlisted Codex routing evidence. |
scripts/ci/agent-runtime-regression.test.ts |
Covers noninteractive invocation, routing configuration, and failure conditions. |
containers/api-proxy/server.websocket.test.js |
Tests placeholder credential replacement before the upstream WebSocket upgrade. |
containers/api-proxy/server.proxy-headers.test.js |
Tests placeholder credential replacement on HTTPS fallback. |
Review effort: Balanced (auto)
|
✅ Copilot review passed with no inline comments. @copilot Add the |
✅ Coverage Check PassedOverall Coverage
Coverage comparison generated by |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded.
|
|
📡 Smoke OTel Tracing completed. All tracing scenarios validated. ✅
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
🔌 Smoke Services is testing service connectivity for this pull request... |
|
✅ Smoke Claude passed
|
|
✨ The prophecy is fulfilled... Smoke Codex has completed its mystical journey. The stars align. 🌟
|
|
🛡️ Smoke Copilot Network Isolation confirmed the egress allowlist is enforced. ✅
|
|
🚀 Security Guard has started processing this pull request |
|
✅ Build Test Suite completed successfully!
|
|
🪪 Smoke Copilot BYOK AOAI (Entra) is testing Azure OpenAI BYOK (Entra / GitHub OIDC) mode on this pull request... |
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
|
🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request... |
|
🚀 Security Guard has started processing this pull request |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤
|
|
💎 Smoke Gemini is crystallizing results on this pull request... |
|
✅ Smoke Copilot BYOK completed. Copilot BYOK mode operational. 🔓
|
|
✅ Smoke Claude passed
|
|
🔑 Smoke Copilot BYOK AOAI (api-key) is testing Azure OpenAI BYOK (api-key) mode on this pull request... |
|
✅ Smoke Copilot BYOK AOAI (Entra) completed. Copilot AOAI BYOK (Entra) mode operational. 🔓
|
|
📡 Smoke OTel Tracing is starting OTel tracing validation... |
|
✅ Build Test Suite completed successfully!
|
|
Smoke Cloud Hypervisor completed. Cloud Hypervisor + Copilot passed.
|
Smoke Test: Claude Engine Validation
Overall result: PASS
|
Smoke Test: Copilot BYOK (Direct) Mode ✅
Status: PASS Running in direct BYOK mode (
|
|
Cloud Hypervisor + Copilot smoke test
Overall: PASS
|
|
EGRESS_RESULT allow=pass deny=pass
Overall: PASS — cc @lpcox
|
|
Fix canonical Copilot placeholder checks in daily runtime regression GitHub MCP connectivity: ✅ Running in direct BYOK mode (AWF_AUTH_TYPE=github-oidc + AWF_AUTH_AZURE_* + COPILOT_PROVIDER_BASE_URL) via api-proxy → Azure OpenAI (Foundry, o4-mini-aw) authenticated via Microsoft Entra Overall status: PASS
|
|
Smoke Copilot: PR "fix: estimate missing model prices with same-backend medians"
Overall: PASS —
|
Smoke Test
|
🏗️ Build Test Suite Results
Overall: 6/8 ecosystems passed — FAIL Failures
The
|
Chroot Version Comparison
Node.js differs between host and chroot, so the
|
Pinned Codex 0.159.3 stalled on inherited stdin under Docker and attempted direct OpenAI inference with placeholder credentials under Cloud Hypervisor and NVX. This change addresses both failure modes in the shared regression harness.
Deterministic invocation
< /dev/null.Stricter acceptance and safe evidence
Focused regression coverage
Existing egress restrictions and the ten-minute budget remain unchanged.