Repository navigation
Conversation
3 of 4 tasks
terrykong
force-pushed
the
test-suite-declarations
branch
from
August 9, 2026 23:57
07935b6 to
435c211
Compare
4 tasks done
PR 3a of the test-suite overhaul. Below it: the recipe restructure. Above it: PR 3b, which deletes the .txt manifests once nemo-ci reads the declarations instead. Each driver's CONFIG block now says which suite it belongs to, which SKU it targets, and which dependency-bump gates it guards: SUITE=nightly # nightly | release | performance | disabled GATES="mcore" # optional, only where the driver gates a bump SKU=h100 # h100 | gb200 DISABLED_REASON="..." # required when SUITE=disabled The decision about which suite a test belongs to is made once, when the test is written, by the person who knows what it costs. Putting it in the driver keeps that decision next to the thing it describes, instead of in one of nine files somewhere else. The CONFIG block is already the cross-repo interface for per-test metadata -- tools/launch, nemo-ci's generator and the unit tests all parse it -- so this extends an existing mechanism rather than adding one. tools/list-suites reads those declarations and prints the scripts in a suite, one repo-relative path per line: a drop-in replacement for reading tests/test_suites/<suite>.txt. It is plain bash with no dependencies, because it is called to build a job list before any Python environment exists and a failed `uv sync` must not be able to make a suite look empty. --gpu-hours reports per-test and total cost using the same integer arithmetic as tools/launch, so the numbers agree exactly. The manifests remain authoritative in this change. Nothing is deleted and no suite's contents move, so this is safe to land before nemo-ci is migrated. test_declarations_reproduce_the_manifest asserts the two agree for all nine suites, which is what stops them drifting apart in the meantime; it retires along with the manifests. Two further tests replace one that was narrower: test_every_driver_declares_a_valid_suite_and_sku rejects an unknown SUITE or SKU and requires a reason on anything disabled, and test_declared_sku_matches_gpus_per_node checks the declared SKU against the GPUs actually requested from Slurm. The latter subsumes test_nightly_suites_match_gpus_per_node, which only covered the two nightly lanes, so that test is removed. Also normalises a whitespace-only line in release.txt, and separates the header comment in disabled.txt from the first entry's reason so that each entry's rationale is attributable to it alone. Verified locally: tools/list-suites reproduces all nine manifests exactly (231 drivers); its --gpu-hours totals match tools/launch for every lane; all 231 drivers still pass TEST_DRYRUN with the declarations present. Signed-off-by: Terry Kong <[email protected]>
GATES named the only thing the field is used for today -- selecting the subset of nightly that guards a Megatron or Megatron-Bridge bump -- rather than the mechanism, which is an arbitrary label selecting a slice of a suite. The next slice we want may have nothing to do with gating a dependency bump. TAGS is the conventional word for that, it reads correctly when multi-valued (TAGS="mcore fp8", where SUBSUITE="mcore fp8" would not), and it says nothing about why a slice exists. No behaviour change: tools/list-suites still resolves nightly_mcore to SUITE=nightly plus the mcore tag, and all nine suites still reproduce their manifests exactly. Signed-off-by: Terry Kong <[email protected]>
Folding the manifest comments into DISABLED_REASON dropped the part that mattered. The Qwen3.5 geo3k reason was cut mid-sentence at "which...", losing the finding that the hang is not vLLM-version specific but the pre-existing Qwen3.5 + Megatron + EP hang. The circle_click reason kept the description and dropped both actual reasons: the recipe has never run end to end, so its reward threshold is unvalidated. A DISABLED_REASON that says what a test is rather than why it is off gives the next reader nothing to act on. Signed-off-by: Terry Kong <[email protected]>
terrykong
force-pushed
the
test-suite-declarations
branch
from
August 11, 2026 16:19
435c211 to
aea2ee1
Compare
3 of 4 tasks
This branch has not been deployed
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.
@kajalj22 — this needs a matching nemo-ci change
TL;DR:
tests/test_suites/<suite>.txtis being replaced bytools/list-suites <suite>, which prints the same thing. Nothing breaks when this PR merges — the.txtfiles stay. A later PR deletes them, and that one can only land after nemo-ci switches.The change, in
nemo_rl/generate_rl_dynamic.sh:Everything downstream is unchanged — the
while IFS= read -r raw_lineloop, the comment stripping, thetests/test_suites/prefix normalisation,extract_config, all of it.What you can rely on:
nightly,nightly_gb200,nightly_mcore,nightly_mcore_gb200,release,release_gb200,performance,performance_gb200,disableduv synccannot make a suite look emptytools/list-suitesin the RL clone, mode 755tools/list-suites --suiteslists every valid name;--gpu-hours <suite>prints per-test and total costVerified:
tools/list-suitesreproduces all nine manifests exactly — same 231 scripts, same paths. So the generated child pipeline is byte-identical before and after your switch.There is no rush: this PR and yours are independent, and the manifests only disappear in a follow-up that waits on you.
What does this PR do ?
Moves suite membership out of nine
.txtfiles and into each test driver'sCONFIGblock.Stack position: PR 3a of 5. Below: #3559. Above: PR 3b (delete the manifests — blocked on the nemo-ci change above), PR 4 (naming validator), PR 5 (testing skill).
The declarations
DISABLED_REASON="..."is required wheneverSUITE=disabled.Why the driver. Which suite a test belongs to is decided once, when the test is written, by the person who knows what it costs. Keeping that next to the thing it describes beats keeping it in one of nine files elsewhere. And the
CONFIGblock is already the cross-repo interface for per-test metadata —tools/launch, nemo-ci's generator and the unit tests all parse it — so this extends a mechanism rather than inventing one.Why
TAGSis separate fromSUITE.nightly_mcoreis the only overlap in the whole system: a curated slice of nightly, consumed today by two different dependency-bump triggers. Cadence ("how often does this run") and slice ("which subset am I selecting") are different questions, so a test saysSUITE=nightlyandTAGS="mcore"rather than a multi-valued suite that would also permit meaningless combinations likenightly release.TAGSdeliberately says nothing about why a slice exists — the Megatron bump is simply the first thing we slice for.Why
SKUrather than deriving fromGPUS_PER_NODE. The lane is a hardware SKU; the GPU count is a consequence. Deriving it would re-encode the same fact in two places — the class of bug that produced recipes named2n8gthat run on one node. It's declared once and cross-checked instead.tools/list-suitesPlain bash, no dependencies, for the reason in the box above.
Tests
test_declarations_reproduce_the_manifest— parametrised over all nine suites; this is what prevents drift while both sources of truth exist, and it retires with the manifests.test_every_driver_declares_a_valid_suite_and_sku— rejects an unknownSUITE/SKU, requires a reason on anything disabled.test_declared_sku_matches_gpus_per_node— declared SKU vs GPUs actually requested from Slurm.test_nightly_suites_match_gpus_per_nodeis removed: it only covered the two nightly lanes and is subsumed by the last two above, which cover all 231 drivers.Also
Normalises a whitespace-only line in
release.txt, and separates the header comment indisabled.txtfrom the first entry's reason so each entry's rationale is attributable to it alone.Verified locally
tools/list-suitesreproduces all nine manifests exactly (231 drivers)--gpu-hourstotals matchtools/launchper lane (nightly3282,release6394,nightly_gb200321)TEST_DRYRUNwith the declarations present — they're live bash inside theCONFIGblock, so this confirms nothing in them breaks a driverBefore your PR is "Ready for review"
Pre checks:
TEST_DRYRUNran in full (231/231) and the three new tests were replicated against the same files. The pytest module itself needs CI: the uv workspace will not build without the3rdparty/*submodules, andtools/launchcannot run on macOS (itsextract_configuses GNUsed \+— notetools/list-suitesdeliberately avoids that and works under both BSD and GNU).tools/list-suitesdocuments its own usage;tests/test_suites/README.mdis updated in PR 3b when the manifests actually go away.