Repository navigation
fix(test): keep test-suite dry runs from installing audio deps - #4461
Merged
Merged
Conversation
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]>
Contributor
Author
|
/ok to test 2b13966 |
|
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. |
Contributor
Author
|
/ok to test a583ab8 |
kajalj22
approved these changes
Oct 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Background / motivation
tests/unit/test_recipes_and_test_suites.py::test_all_tests_can_find_config_if_dryrun(L0Othershard) runs every test-suite script withTEST_DRYRUN=1. A dry run only resolves the suite's config path.tests/test_suites/llm/common.env(also sourced byvlm/) callstools/install_audio_deps.shfor everyomni|audio|avqa|vlmsuite before itsTEST_DRYRUNexit. That installer runsapt-get update && apt-get install ffmpeganduv pip installfromdownload.pytorch.organd PyPI.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 theTEST_DRYRUNexit.Details
TEST_DRYRUNnow returns before any package installation, so the dry run has no side effects and needs no network.BASH_SOURCE[1]match (omni|audio|avqa|vlm).tests/test_suites/vlm/common.envis a symlink to the llm file, so both suite trees are covered.Tested
tools/install_audio_deps.shreplaced by a stub that records calls and exits 100: all 36omni|audio|avqa|vlmsuitesTEST_DRYRUN=1 bash <suite>exit 0, with 0 installer calls. Before this change the first such suite exits 100.rl@sha256:b50ada68…,FAST=1, egress blocked through a dead proxy):L0_Unit_Tests_Othergave1 failed, 1118 passed, 9 skipped. The single failure istest_all_tests_can_find_config_if_dryrun, withCommand failed with exit code 100 … E: Unable to locate package ffmpeg.L0_Unit_Tests_Otherwith this change and build(docker): let the runtime UID use the image's uv cache offline #4456. NeMo CI cluster e2etestlane990000000003/1on gcp-h100: isolated rank (no egress), repository profilenemo-rlv8 (digestf6c3757d…), imagerl@sha256:cce5f46a…built from build(docker): let the runtime UID use the image's uv cache offline #4456 (rl:37107298972), sourceko3n1g/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 mainfb8396ada), 2 GPUs per shard:test_recipes_and_test_suites.py::test_all_tests_can_find_config_if_dryrunPASSED (17.42 s). The shard has 2973 passed and 1 failed; the failure istest_opd_advantage_stage_pools_raw_gap_separately_under_tropd, which also fails onmainfb8396ada(run 37111913568).pre-commit run --files tests/test_suites/llm/common.env: passed.🤖 Generated with Claude Code