Skip to content

Fix E2E deterministic test DNS resolution - #150

Merged
jwbron merged 2 commits into
mainfrom
egg-fix-e2e-deterministic-dns
Feb 6, 2026
Merged

Fix E2E deterministic test DNS resolution#150
jwbron merged 2 commits into
mainfrom
egg-fix-e2e-deterministic-dns

Conversation

@james-in-a-box

@james-in-a-box james-in-a-box Bot commented Feb 6, 2026

Copy link
Copy Markdown
Contributor

Fix gateway DNS resolution in E2E deterministic tests

All three deterministic E2E tests (test_simple_prompt_completes,
test_file_creation_via_prompt, test_git_status_via_prompt) were failing
because the sandbox container could not resolve the egg-gateway
hostname. The run_claude_structured() helper in conftest.py had two
issues compared to the production launcher in sandbox/egg_lib/runtime.py:

  1. Missing --add-host egg-gateway:<ip> flag — the container had no DNS
    mapping for the gateway hostname.
  2. Wrong env var name — passed EGG_GATEWAY_URL but the sandbox
    entrypoint reads GATEWAY_URL, so the entrypoint fell back to the
    default http://egg-gateway:9848 which required DNS that wasn't
    configured.

This aligns the test helper with the production container launch code.

Issue: none

Test plan:

  • Re-run the E2E Tests workflow and verify the deterministic job passes
  • Confirm fuzz tests continue to pass (they use the same helper)

Authored-by: egg

egg added 2 commits February 6, 2026 04:38
The run_claude_structured() helper was missing the --add-host flag
needed to map egg-gateway to the gateway container IP. It was also
passing GATEWAY_URL under the wrong env var name (EGG_GATEWAY_URL),
causing the sandbox entrypoint to fall back to the default hostname
which could not be resolved without --add-host.

Mirrors the production container launch in sandbox/egg_lib/runtime.py
which correctly uses --add-host and GATEWAY_URL.
@jwbron
jwbron merged commit d9e9cbb into main Feb 6, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant