Repository navigation
Description
Related to: #1451
Use cases, pain points, and background
The benchmark migration (#1451) ports a growing list of benchmarks from NEL into Gym (aime24, aime25, gpqa, mmlu_pro, mmlu_prox, ifbench, livecodebench, browsecomp, ruler, spider2_lite, xstest, aalcr, nemotron_3_ultra, …). Test coverage hasn't kept pace.
Today tests/unit_tests/test_benchmarks.py only exercises list_benchmarks and prepare_benchmark against a mocked global config; there are no per-benchmark verifier tests, no end-to-end smoke per benchmark, and tests/functional_tests/ is a single shell script. That leaves a few gaps worth closing during the migration:
- A breaking change to
BenchmarkConfig, the resource-server contract, or the prompt-config schema can land without any individual benchmark catching it. - Verifier regressions in
resources_servers/<bench>/app.pyaren't caught until a full rollout run — slow and expensive feedback. - There's no parity check that a migrated benchmark in Gym scores the same as it did in NEL on a fixed set of model outputs, so silent drift during the port is possible.
prepare.pyscripts are network-dependent (HF downloads) and have no offline fixture-based test, so CI can't validate them quickly.- BYOB and the unified discovery registry (separate ticket) need a test harness to land into.
Description
Add a layered test suite that grows with each migrated benchmark: contract tests every benchmark must pass, per-benchmark verifier tests with golden fixtures, a lightweight e2e smoke per benchmark, and a NEL-parity check on a fixed sample of model outputs.
Out of scope
- Adding new benchmarks. This ticket is about coverage for benchmarks already in or being migrated through Epic: Validated Benchmarks to NeMo Gym for Nemotron #1451.
- Full-rollout integration tests against live model endpoints. The functional smoke uses a stub agent; real model runs stay in the nightly/release pipeline.
- Test-coverage targets for
nemo_gym/modules outside the benchmark stack. - Restructuring the
tests/directory layout beyond the additions listed. - Replacing the existing single shell script in
tests/functional_tests/; it stays until its callers migrate.
Acceptance Criteria
- Parametrized contract test in
test_benchmarks.pyruns against every benchmark discovered bylist_benchmarks()and fails clearly when any required artifact is missing or malformed. - Each benchmark migrated under Epic: Validated Benchmarks to NeMo Gym for Nemotron #1451 has a
tests/unit_tests/benchmarks/test_<bench>_verifier.pywith at least 3 golden fixtures (pass / fail / edge). -
test_prepare_offline.pyexercises everyprepare.pyagainst a vendored fixture and runs in CI without network access. -
test_benchmark_e2e.pyproduces a non-empty_aggregate_metrics.jsonfor each benchmark via a stub agent; full sweep runs nightly. -
test_nel_parity.pyexists for each migrated benchmark; tolerance and the frozen NEL-output fixture set are documented. -
benchmark-contract-testsCI job is required on PRs touchingbenchmarks/,resources_servers/, ornemo_gym/benchmarks.py. - Per-benchmark fixture directories under
tests/fixtures/documented in a short README explaining how to add fixtures for a newly migrated benchmark. - Migration checklist in Epic: Validated Benchmarks to NeMo Gym for Nemotron #1451 updated to include "parity test green" as a per-benchmark gate.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
gchlebus commentedon Jul 2, 2026
This work happens along with benchmark migration to Gym and validation of the Gym path. Keeping me as assignee. The work will be happening by respective benchmark PICs on the Frontier Eval side.
align MMLU-Pro prompt formatting with NeMo Skills (#1853)
align MMLU-Pro prompt formatting with NeMo Skills (NVIDIA-NeMo#1853)