Skip to content

fix(test): keep test-suite dry runs from installing audio deps - #4461

Merged
kajalj22 merged 2 commits into
mainfrom
ko3n1g/fix/test-dryrun-audio-deps
Oct 5, 2026
Merged

kajalj22 merged 2 commits into
mainfrom
ko3n1g/fix/test-dryrun-audio-deps

Conversation

@ko3n1g

@ko3n1g ko3n1g commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Background / motivation

  • We run NeMo-RL's L0/L1 suites in an air-gapped environment: GPU ranks with no egress, as runtime UID 65532. build(docker): let the runtime UID use the image's uv cache offline #4456 makes the image's uv cache usable there.
  • tests/unit/test_recipes_and_test_suites.py::test_all_tests_can_find_config_if_dryrun (L0 Other shard) runs every test-suite script with TEST_DRYRUN=1. A dry run only resolves the suite's config path.
  • tests/test_suites/llm/common.env (also sourced by vlm/) calls tools/install_audio_deps.sh for every omni|audio|avqa|vlm suite before its TEST_DRYRUN exit. That installer runs apt-get update && apt-get install ffmpeg and uv pip install from download.pytorch.org and PyPI.
  • Without network, or without root, the dry run fails with exit 100 (E: Unable to locate package ffmpeg), so the unit test fails although no config is broken.

What changed

  • tests/test_suites/llm/common.env: move the audio-deps install below the TEST_DRYRUN exit.

Details

  • TEST_DRYRUN now returns before any package installation, so the dry run has no side effects and needs no network.
  • Real runs are unchanged: the install still happens before the experiment starts, for the same BASH_SOURCE[1] match (omni|audio|avqa|vlm).
  • tests/test_suites/vlm/common.env is a symlink to the llm file, so both suite trees are covered.

Tested

  • Local, on a copy of the tree with tools/install_audio_deps.sh replaced by a stub that records calls and exits 100: all 36 omni|audio|avqa|vlm suites TEST_DRYRUN=1 bash <suite> exit 0, with 0 installer calls. Before this change the first such suite exits 100.
  • Offline reproduction (baseline image rl@sha256:b50ada68…, FAST=1, egress blocked through a dead proxy): L0_Unit_Tests_Other gave 1 failed, 1118 passed, 9 skipped. The single failure is test_all_tests_can_find_config_if_dryrun, with Command failed with exit code 100 … E: Unable to locate package ffmpeg.
  • Air-gapped run of L0_Unit_Tests_Other with this change and build(docker): let the runtime UID use the image's uv cache offline #4456. NeMo CI cluster e2e test lane 990000000003/1 on gcp-h100: isolated rank (no egress), repository profile nemo-rl v8 (digest f6c3757d…), image rl@sha256:cce5f46a… built from build(docker): let the runtime UID use the image's uv cache offline #4456 (rl:37107298972), source ko3n1g/fix/offline-test-execution @ 40467c738 (build(docker): let the runtime UID use the image's uv cache offline #4456 + fix(test): keep test-suite dry runs from installing audio deps #4461 on main fb8396ada), 2 GPUs per shard: test_recipes_and_test_suites.py::test_all_tests_can_find_config_if_dryrun PASSED (17.42 s). The shard has 2973 passed and 1 failed; the failure is test_opd_advantage_stage_pools_raw_gap_separately_under_tropd, which also fails on main fb8396ada (run 37111913568).
  • pre-commit run --files tests/test_suites/llm/common.env: passed.

🤖 Generated with Claude Code

tests/test_suites/llm/common.env ran tools/install_audio_deps.sh for
every vlm/audio/omni/avqa suite before its TEST_DRYRUN exit. A dry run
only resolves the suite's config, yet it ran apt-get and uv pip
against the network, so test_all_tests_can_find_config_if_dryrun fails
without network access (exit 100, "Unable to locate package ffmpeg")
and as a non-root user.

Move the install below the TEST_DRYRUN exit. Real runs still install
the deps before the experiment starts.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Signed-off-by: oliver könig <[email protected]>
@ko3n1g ko3n1g added the CI:L0 Run doctests and unit tests label Oct 3, 2026
@ko3n1g

ko3n1g commented Oct 3, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test 2b13966

@copy-pr-bot

copy-pr-bot Bot commented Oct 3, 2026

Copy link
Copy Markdown

Auto-sync is disabled for ready for review pull requests in this repository. Workflows must be run manually.

Contributors can view more details about this message here.

@ko3n1g

ko3n1g commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

/ok to test a583ab8

@kajalj22
kajalj22 merged commit 450c954 into main Oct 5, 2026
75 checks passed
@kajalj22
kajalj22 deleted the ko3n1g/fix/test-dryrun-audio-deps branch October 5, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI:L0 Run doctests and unit tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants