fix(ci): add BASE_URL environment variables for CODEX api-proxy routing#802
Conversation
CODEX was not being directed to use the api-proxy because the OPENAI_BASE_URL and ANTHROPIC_BASE_URL environment variables were not explicitly set in the smoke-codex workflow. While AWF automatically sets these variables when generating the docker-compose configuration (if API keys are present), explicitly setting them in the workflow env ensures they are available to the CODEX agent for routing API calls through the api-proxy sidecar. This fix adds: - OPENAI_BASE_URL=http://api-proxy:10000 - ANTHROPIC_BASE_URL=http://api-proxy:10001 to the 'Run Codex' step environment variables. Fixes job failure in run 63483600453.
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
Smoke Test Results (Copilot Engine)✅ GitHub MCP: Retrieved last 2 merged PRs
✅ Playwright: Verified GitHub homepage (title: "GitHub · Change is constant. GitHub keeps you ahead. · GitHub") ✅ File Writing: Created ✅ Bash Tool: Verified file contents Overall Status: PASS ✅ cc
|
Node.js Build Test Results
Overall: PASS ✅ All Node.js projects were successfully installed and tested.
|
C++ Build Test Results
Overall: PASS ✅ All C++ projects built successfully.
|
Build Test: Go - Results
Overall: PASS ✅ All Go projects built and tested successfully.
|
Bun Build Test Results
Overall: PASS All Bun projects installed and tested successfully.
|
Rust Build Test Results
Overall: PASS ✅ All Rust projects built and tested successfully.
|
.NET Build Test Results
Overall: PASS ✅ All .NET projects successfully restored, built, and ran.
|
Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com>
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
Bun Build Test Results
Overall: PASS ✅ All tests completed successfully.
|
Node.js Build Test Results
Overall: PASS ✅ All Node.js projects installed and tested successfully.
|
Smoke Test ResultsLast 2 Merged PRs:
Test Results:
Status: PASS cc @lpcox (PR author & assignee)
|
C++ Build Test Results
Overall: PASS ✅ All C++ projects configured and built successfully.
|
Deno Build Test Results
Overall: ✅ PASS All Deno tests completed successfully.
|
* Initial plan * fix: add api-proxy IP to squid allowlist Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com> --------- Co-authored-by: anthropic-code-agent[bot] <242468646+Claude@users.noreply.github.com> Co-authored-by: lpcox <15877973+lpcox@users.noreply.github.com>
Rust Build Test Results
Overall: PASS ✅ All Rust projects built and tested successfully.
|
|
📰 VERDICT: Smoke Copilot has concluded. All systems operational. This is a developing story. 🎤 |
|
💫 TO BE CONTINUED... Smoke Claude failed! Our hero faces unexpected challenges... |
|
🌑 The shadows whisper... Smoke Codex failed. The oracle requires further meditation... |
|
Chroot tests passed! Smoke Chroot - All security and functionality tests succeeded. |
C++ Build Test Results
Overall: PASS All C++ projects built successfully through the AWF firewall.
|
Bun Build Test Results
Overall: PASS ✅ All Bun projects built and tested successfully.
|
Node.js Build Test Results
Overall: ✅ PASS All Node.js projects successfully installed dependencies and passed their test suites.
|
Go Build Test Results
Overall: PASS ✅ All Go projects successfully downloaded dependencies and passed tests.
|
Build Test: Deno ✅
Overall: ✅ PASS All Deno tests passed successfully.
|
.NET Build Test Results
Overall: PASS All .NET projects built and ran successfully.
|
Rust Build Test Results
Overall: PASS ✅ All Rust projects built and tested successfully.
|
Java Build Test Results ✅All Java projects built and tested successfully through AWF firewall.
Overall: PASS 🎉 All Maven dependencies were downloaded through the Squid proxy at
|
Smoke Test Results✅ GitHub MCP: Last 2 merged PRs retrieved
❌ Playwright: Timeout navigating to github.com Status: FAIL (Playwright timeout) cc @lpcox
|
Chroot Test Results
Overall Result: ❌ Tests did not pass The chroot environment has different versions of Python and Node.js compared to the host, which may cause compatibility issues when tools attempt to access host binaries through transparent chroot mode.
|
c32fe02
into
claude/enable-api-proxy-by-default
CODEX was not routing API calls through the api-proxy because
OPENAI_BASE_URLandANTHROPIC_BASE_URLwere not set in the workflow environment.Changes
OPENAI_BASE_URL=http://api-proxy:10000to smoke-codex workflow envANTHROPIC_BASE_URL=http://api-proxy:10001to smoke-codex workflow envContext
AWF automatically deploys the api-proxy sidecar when
OPENAI_API_KEYis present and sets these BASE_URL variables in the docker-compose configuration. However, explicitly setting them in the workflowenv:section ensures they're available to the CODEX agent process for API routing decisions before container orchestration.The api-proxy sidecar (at 172.30.0.30) injects authentication headers and routes through Squid (172.30.0.10) to enforce L7 domain whitelisting.