Skip to content

test(client): make recovered timeout observation fixture deterministic #5895

Open

Description

@mpatel31415

The final-head CI for #5205 failed in tests/unit_tests/client/test_model_failure_observations.py::test_a_recovered_response_timeout_keeps_its_confirmed_upload_observation:

https://github.com/NVIDIA-NeMo/Gym/actions/runs/42714304027/job/129492323059

The fixture delays the first endpoint by 80 ms and gives every request a 40 ms whole-request timeout. The captured trace logs a timeout and one retry, then raises TimeoutError while waiting for response headers before reaching the recovery assertions. The CI log does not retain the exact server dispatch count for the final attempt.

Make the intended first timeout deterministic after a confirmed real HTTP upload, keep the real client retry and failure-observation path, and give the ordinary recovery request the normal HTTP budget. Preserve the successful response, exactly two server calls, and the single typed failure observation with confirmed upload. Validate with controlled recovery-header latency and the full affected test module.

The nearby merged #5887 repairs different body-read fixtures; this recovered-response test is unchanged there. Scope this follow-up to the failing test fixture.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions