Skip to content

test(client): AUT-2823 make HTTP body-failure fixtures deterministic - #5887

Merged
ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:test/deterministic-model-body-failures
Nov 9, 2026
Merged

ko3n1g merged 1 commit into
NVIDIA-NeMo:mainfrom
svcnemo-autobot:test/deterministic-model-body-failures

Conversation

@svcnemo-autobot

Copy link
Copy Markdown
Contributor

Background

The body-failure fixtures could exhaust their 50 ms whole-request deadline before receiving headers, failing merge-queue validation without exercising the intended behavior. Observed in run 42620258770 for #5764; no separate issue is needed for this focused test repair.

What changed

Replace wall-clock races in the two parameterized HTTP body-failure tests with deterministic body-read failures.

Details

Keep real HTTP requests and response headers, then inject the timeout at the body read. Retain real truncated-response coverage and use a controlled clock for elapsed-time assertions. Preserve status, failure attribution, and one-request/one-attempt checks, and assert the exception type and wire request count. Only test_model_failure_observations.py changes; production behavior and dependencies are unchanged.

Tested

  • Managed unit:core-unit-tests: 19,933 passed, 108 native skips, 343 subtests passed; all 15 affected cases passed.
  • Managed unit:lint: applicable hooks passed; guardwords-check excluded by platform policy, Markdown filename hook had no files.
  • Results cover the committed file bytes on base c442d056; signing introduced no source changes. An initial run hit an unrelated rollout timeout; the unchanged retry passed.
  • Server/sandbox suites and model rollouts: N/A locally for this test-only repair. Exact-head GitHub CI remains pending.

@copy-pr-bot

copy-pr-bot Bot commented Nov 9, 2026

Copy link
Copy Markdown

This pull request requires additional validation before any workflows can run on NVIDIA's runners.

Pull request vetters can view their responsibilities here.

Contributors can view more details about this message here.

@svcnvidia-nemo-ci svcnvidia-nemo-ci added area:model Model servers, inference providers, and model adapters complexity:low Localized change in one scope with a small, straightforward review surface labels Nov 9, 2026
@svcnvidia-nemo-ci

Copy link
Copy Markdown
Contributor

/ok to test b1ed7f2

@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP

LGTM — no concerns found.

I reviewed all changes in the test file and traced the affected HTTP and model-client failure paths. The revised fixtures retain real requests, headers, and truncated-response coverage while controlling body-read timeouts. The assertions preserve status attribution, forwarded failure IDs, elapsed-time accounting, and one-request/one-attempt behavior.

This was a static review; I didn't execute tests or independently verify the reported CI results.

Note: formal approval is not available for this request, so this review is posted as a comment only.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@ko3n1g
ko3n1g added this pull request to the merge queue Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42701660111

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@ko3n1g
ko3n1g added this pull request to the merge queue Nov 9, 2026
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/42703752389

Merged via the queue into NVIDIA-NeMo:main with commit f49b582 Nov 9, 2026
70 checks passed

This branch was previously deployed

1 inactive deployment
public — b1ed7f27 Deployed Nov 9, 2026 by copy-pr-bot[bot] via release / finalize / notify #11178
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:model Model servers, inference providers, and model adapters complexity:low Localized change in one scope with a small, straightforward review surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants