Skip to content

fix: replace httpbin.org with local server in mitmproxy passthrough test#633

Merged
mangelajo merged 1 commit intomainfrom
fix/flaky-mitmproxy-passthrough-test
Apr 24, 2026
Merged

fix: replace httpbin.org with local server in mitmproxy passthrough test#633
mangelajo merged 1 commit intomainfrom
fix/flaky-mitmproxy-passthrough-test

Conversation

@ambient-code
Copy link
Copy Markdown
Contributor

@ambient-code ambient-code Bot commented Apr 24, 2026

Summary

  • Fixes the flaky test_passthrough_to_public_api test that intermittently failed with a 502 response because it depended on the external httpbin.org service
  • Replaces the external HTTP dependency with a local http.server-based server started within the test, eliminating network-related flakiness entirely
  • Removes the now-unused _can_reach_internet() helper and skip condition

Fixes #626

Test plan

  • make lint-fix passes
  • make pkg-test-jumpstarter-driver-mitmproxy passes (101 tests)
  • CI integration tests pass with the local server (the passthrough test will no longer be skipped due to internet connectivity)

🤖 Generated with Claude Code

The test_passthrough_to_public_api test was flaky because it depended on
the external httpbin.org service, which intermittently returns 502 errors.
Replace it with a local HTTP server to eliminate the external dependency
while still validating the proxy passthrough behavior.

Fixes #626

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@mangelajo mangelajo merged commit 7a174e7 into main Apr 24, 2026
31 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.

flake mitm proxy failure detected on main branch

1 participant