Skip to content

test(mimo_music): wait for renderer startup before timeout - #5450

Open
deavgprime wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
deavgprime:fix/mimo-timeout-readiness
Open

deavgprime wants to merge 2 commits into
NVIDIA-NeMo:mainfrom
deavgprime:fix/mimo-timeout-readiness

Conversation

@deavgprime

Copy link
Copy Markdown
Contributor

What changed and why

Fixes #5429.

The renderer cleanup test can time out during scorer startup, before the renderer writes its PID. It then fails while reading the missing file instead of checking cleanup.

In the test, wait for an atomically written PID marker before applying the real one-second timeout. Cover both immediate startup and a 1.5-second startup delay. The test still checks that the renderer is no longer running and its scratch directory is removed. The startup wait is bounded at 30 seconds.

Validation

Linux, Python 3.13.17:

  • Reproduced the original failure by delaying renderer startup by 1.5 seconds.
  • gym env test --resources-server mimo_music +should_validate_data=true +skip_venv_if_present=true: 63 passed, no skips; example data validation passed.
  • Repeated both timeout cases in three fresh pytest runs: all six passed.
  • A local mutation that kills only the scorer, leaving the renderer alive, makes both cases fail at the process-cleanup assertion.
  • pre-commit run --all-files passed. The private guardwords catalog was unavailable, so that hook skipped its scan.

Full core and sandbox suites were not run locally; this changes one component test file.

Compatibility and rollout evidence

No runtime, configuration or benchmark-result changes. Model rollout: N/A, test-only change.

Proposed labels: ci, area:environment, needs-review.

Copilot AI balanced review requested due to automatic review settings November 2, 2026 17:33
@copy-pr-bot

copy-pr-bot Bot commented Nov 2, 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.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Nov 2, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added ci CI, automation, test queue, or workflow infrastructure work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer waiting-on-maintainers Waiting on maintainers to respond labels Nov 2, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers ci CI, automation, test queue, or workflow infrastructure work community-request Issue reported or requested by someone from the community needs-review PR is ready for code review and waiting on a reviewer waiting-on-maintainers Waiting on maintainers to respond

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: mimo_music test_real_timeout_reaps_renderer reads the renderer pid file before it exists

3 participants