Skip to content

flake mitm proxy failure detected on main branch #626

@mangelajo

Description

@mangelajo

https://github.com/jumpstarter-dev/jumpstarter/actions/runs/24677952922/job/72167104730

=================================== FAILURES ===================================
________________ TestPassthrough.test_passthrough_to_public_api ________________

self = <jumpstarter_driver_mitmproxy.driver_integration_test.TestPassthrough object at 0x7fd86f898710>
client = MitmproxyClient(uuid=UUID('342d859b-6dc0-4874-bbb1-6b95446e84c3'), labels={'jumpstarter.dev/client': 'jumpstarter_driv...ct at 0x7fd86f2587a0>, stack=<contextlib.ExitStack object at 0x7fd86f2413a0>, description=None, methods_description={})
proxy_port = 60481

    def test_passthrough_to_public_api(self, client, proxy_port):
        client.start("passthrough")
        assert _wait_for_port("127.0.0.1", proxy_port), (
            f"mitmdump did not start on port {proxy_port}"
        )
    
        try:
            response = requests.get(
                "http://httpbin.org/get",
                proxies={"http": f"http://127.0.0.1:{proxy_port}/"},
                timeout=15,
            )
>           assert response.status_code == 200
E           assert 502 == 200
E            +  where 502 = <Response [502]>.status_code

jumpstarter_driver_mitmproxy/driver_integration_test.py:335: AssertionError
------------------------------ Captured log call -------------------------------
INFO     jumpstarter_driver_mitmproxy.driver:driver.py:2085 Installed bundled v2 addon: /tmp/pytest-of-runner/pytest-14/test_passthrough_to_public_api0/addons/mock_addon.py
INFO     jumpstarter_driver_mitmproxy.driver:driver.py:497 Starting mitmdump: mitmdump --listen-host 127.0.0.1 --listen-port 60481 --set confdir=/tmp/pytest-of-runner/pytest-14/test_passthrough_to_public_api0/confdir --quiet --set ssl_insecure=true -s /tmp/pytest-of-runner/pytest-14/test_passthrough_to_public_api0/addons/mock_addon.py

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions