Skip to content

[epic] Expand benchmark test coverage as part of benchmark migration in Nemo Gym #1542

Closed as not planned

Description

@sephmard

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.py aren'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.py scripts 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.py runs against every benchmark discovered by list_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.py with at least 3 golden fixtures (pass / fail / edge).
  • test_prepare_offline.py exercises every prepare.py against a vendored fixture and runs in CI without network access.
  • test_benchmark_e2e.py produces a non-empty _aggregate_metrics.json for each benchmark via a stub agent; full sweep runs nightly.
  • test_nel_parity.py exists for each migrated benchmark; tolerance and the frozen NEL-output fixture set are documented.
  • benchmark-contract-tests CI job is required on PRs touching benchmarks/, resources_servers/, or nemo_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.

Activity

  1. gchlebus commented on Jul 2, 2026

    @gchlebus
    Contributor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions