Skip to content

test_streamable_http.py::test_streamablehttp_client_resumption hangs intermittently #744

Open
@davemssavage

Description

@davemssavage

Describe the bug
When running pytest on codespaces tests/shared/test_streamable_http.py::test_streamablehttp_client_resumption occaisionally hangs

To Reproduce
Steps to reproduce the behavior:

  1. Go to main branch of code
  2. Open branch in fresh codespace
  3. In codespace terminal install uv - e.g. curl -LsSf https://astral.sh/uv/install.sh | sh
  4. In codespace terminal install dev dependencies e.g. uv sync --frozen --all-extras --dev
  5. In codespace terminal run uv run pytest -vv
  6. In codespace terminal check tests completed
  7. Repeat 5 until test hangs (usually within 1-5 repeats but I have seen up to 10 successes prior to a hang)

Expected behavior
Tests run to completion and do not hang

Screenshots

Image

Desktop (please complete the following information):

  • OS: Github codeworkspace
  • Browser Firefox
  • Version main

Additional context
As can be seen from the screen shot their appears to be a port open, I suspect a race condition meaning the test some times gets stuck, I've not yet had a chance to figure out what the test is doing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions