Skip to content

docs: consolidate test-suite conventions into the testing skill - #3562

Open
terrykong wants to merge 2 commits into
test-suite-namingfrom
test-suite-skill
Open

terrykong wants to merge 2 commits into
test-suite-namingfrom
test-suite-skill

Conversation

@terrykong

Copy link
Copy Markdown
Collaborator

What does this PR do ?

Writes down the rules that decided the four PRs below it.

Stack position: PR 5 of 5, the last one. Below: #3561 (recipe naming + validator). Nothing above.

PR 1–4 pruned, restructured, declared, and renamed on the basis of rules that existed only in a review conversation. This puts them in the testing skill so the next person adding a nightly test can find them, and so a reviewer has something to point at.

What the skill now says

The unit tests already catch naming, budget overruns, and missing declarations. The skill covers what they cannot:

  • A nightly slot costs 7× its per-run price, every week, forever. That one sentence is the reason for everything else. Lane ceilings live in SUITE_BUDGETS; when a lane is full the fix is to retire a test, not raise the number.
  • Cost bands — ≤32 GPU-h fine / 33–64 justify / >64 reviewer agreement / >128 belongs in release. Calibrated to the lane: ~79% of nightly tests sit in the ≤32 band and account for ~40% of the cost, while the handful above 64 carry more than a third.
  • At most two nightly tests per (algorithm, model). GB200 mirrors, TQ wrappers, and .vN bumps don't count separately. The tree exceeds this today — sft+llama3.1-8b, grpo+qwen3-30ba3b and grpo+nanov3-30BA3B carry six apiece — which is stated as backlog, not precedent.
  • Feature coverage rides on one model. New coverage for packing, LoRA, FP8, a new parallelism goes on Qwen2.5-Math-1.5B-Instruct (~16 GPU-h) rather than whichever model the author happens to be working on. It is explicitly exempt from both the ≤2 rule and from product-relevance pruning — nobody ships it, and that is fine, because deleting it would push every feature test back onto a large model.
  • Never add coverage to a performance/ recipe. Those hyperparameters feed a tracked series.
  • Evidence — a linked W&B run showing convergence, and a check_metrics.py assertion. A test that has never demonstrated convergence cannot detect a change in it.

adding-a-test.md holds the mechanics: the YAML/driver pair, the CONFIG block variables and what each one costs you, the depth-independent common.env source line, GB200 mirrors, TQ wrapper delegation, and the local checks that work without a cluster.

Also in this PR

  • tests/test_suites/README.md becomes a pointer. It was a second copy of the naming rules, which now have a validator. The launch/snapshot documentation moved into the skill; research/template_project/README.md linked to its anchor and was repointed.
  • The review skill checks suite tests. review-pr now works the testing checklist when a diff touches tests/test_suites/ or examples/configs/recipes/ — explicitly not re-deriving what the unit tests cover.
  • Fixes a wrong number I introduced in test: add a recipe-name validator and rename 13 mismatched recipes #3561. The naming validator's docstring said 94 recipes enable sequence packing; the real figure over the 185 recipes it checks is 64. The argument is unchanged (8 recipes say seqpack either way), but the number was wrong and is now verified.

Verified locally

  • All nine suites still reproduce their manifests; all six budgets pass (nightly 22,974/26,500 GPU-h per week)
  • 231/231 drivers pass TEST_DRYRUN
  • Every number quoted in the skill recomputed against the tree at this SHA, not carried over from the earlier PRs

Follow-ups this does not do

The skill describes the vehicle model as the home for feature coverage, but the re-homing itself is separate work: building the vehicle's plain-Megatron arm, and moving the sampling-parity pair, HSDP, and megatron_generation coverage onto it. PR 3b (deleting the manifests) is still waiting on the nemo-ci change scoped in #3560.

Before your PR is "Ready for review"

Pre checks:

  • Make sure you read and followed Contributor guidelines
  • Did you write any new necessary tests? — none; this is documentation plus a docstring correction.
  • Did you run the unit tests and functional tests locally? — the suite/manifest/budget/dry-run checks were run directly (see above). The pytest run itself needs CI: the uv workspace will not build without the 3rdparty/* submodules.
  • Did you add or update any necessary documentation? — that is what this PR is.

@terrykong
terrykong requested review from a team as code owners August 10, 2026 00:21
@copy-pr-bot

copy-pr-bot Bot commented Aug 10, 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.

@terrykong terrykong changed the title docs: write down what earns a place in a test suite docs: consolidate test-suite conventions into the testing skill Aug 10, 2026
The rules that decided PR 1 through PR 4 lived in a review conversation, not
in the repo, so the next person adding a nightly test had no way to know them.

The testing skill now carries the judgement calls the unit tests cannot make:
what a nightly slot costs (7x its per-run price, every week, forever), the
GPU-hour bands, at most two nightly tests per (algorithm, model), feature
coverage riding on one small vehicle model instead of whichever model the
author is working on, and the prohibition on adding coverage to a performance/
recipe. adding-a-test.md holds the mechanics -- the file pair, the CONFIG
block, GB200 mirrors, TQ wrappers, and how to check your work without a
cluster.

tests/test_suites/README.md becomes a pointer to it rather than a second copy
of the naming rules, which now have a validator anyway.

Also corrects the sequence-packing count in the naming validator's docstring:
64 of the 185 recipes it checks enable packing, not 94. The asymmetry argument
is unchanged -- 8 recipes say seqpack either way -- but the number was wrong.

Signed-off-by: Terry Kong <[email protected]>
docs/testing.md covered unit and functional tests and said nothing about the
nightly/release/performance suites, so a contributor reading the repo's own
testing guide had no path to the rules that govern them.

Signed-off-by: Terry Kong <[email protected]>
@terrykong
terrykong requested a review from a team as a code owner August 11, 2026 16:19
@github-actions github-actions Bot added the Documentation Improvements or additions to documentation label Aug 11, 2026
@terrykong terrykong added the CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version) label Nov 5, 2026
@terrykong terrykong removed the Documentation Improvements or additions to documentation label Nov 28, 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

CI:Lfast Runs a fast test suite and re-use nightly `main` container (but sync dependencies to PRs version)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant