Repository navigation
feat: add manifests for resolved benchmarks - #3535
Merged
Merged
Conversation
ritaneves
marked this pull request as draft
September 18, 2026 15:28
|
Auto-sync is disabled for draft pull requests in this repository. Workflows must be run manually. Contributors can view more details about this message here. |
Signed-off-by: Rita Fernandes Neves <[email protected]>
ritaneves
force-pushed
the
rfneves/fill-manifests
branch
from
September 21, 2026 09:25
5904ae3 to
dc0d0a3
Compare
ritaneves
marked this pull request as ready for review
September 21, 2026 09:29
Glorf
approved these changes
Sep 21, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/35589911719 |
7 tasks done
Contributor
|
Heads-up: the new |
7 tasks done
iguehring-nvidia
added a commit
that referenced
this pull request
Sep 21, 2026
#3535 added a manifest.yaml beside 75 benchmark configs. Each mirrors its benchmark's `type: benchmark` dataset, so the content-based prefilter takes it for a second config of the same benchmark; it does not resolve as one, so `gym list benchmarks` drops it and test_every_repo_benchmark_appears_in_listing fails on main (218 discovered, 143 listed), which ejects every PR from the merge queue. _is_benchmark_config now rejects a manifest by name before looking at content, so the predicate states the whole definition of a benchmark config. The registry's own filter for the same file becomes redundant and goes; the filename constant moves to benchmarks.py so both read one definition. Signed-off-by: Ingo Guehring <[email protected]>
iguehring-nvidia
added a commit
that referenced
this pull request
Sep 21, 2026
#3535 added a manifest.yaml beside 75 benchmark configs. Each mirrors its benchmark's `type: benchmark` dataset, so the content-based prefilter takes it for a second config of the same benchmark; it does not resolve as one, so `gym list benchmarks` drops it and test_every_repo_benchmark_appears_in_listing fails on main (218 discovered, 143 listed), which ejects every PR from the merge queue. _is_benchmark_config now rejects a manifest by name before looking at content, so the predicate states the whole definition of a benchmark config. The registry's own filter for the same file becomes redundant and goes; the filename constant moves to benchmarks.py so both read one definition. Signed-off-by: Ingo Guehring <[email protected]>
reinainblood
pushed a commit
to reinainblood/Gym
that referenced
this pull request
Sep 21, 2026
…NeMo#3564) ## What does this PR do? Unbreaks `main` after NVIDIA-NeMo#3535. Its 75 new `benchmarks/*/manifest.yaml` files each mirror their benchmark's `type: benchmark` dataset, so `_benchmark_config_paths`'s content-based prefilter (`_is_benchmark_config`) takes every manifest for a second config of the same benchmark. Manifests don't resolve as configs, so the listing drops them and `tests/unit_tests/test_benchmarks.py::TestDiscoverBenchmarksInDir::test_every_repo_benchmark_appears_in_listing` fails on `main`: ``` AssertionError: 218 benchmark config(s) discovered but only 143 appear in the listing ``` `NVIDIA-NeMo#3535`'s own merge-queue run passed because it was queued against the previous base; the first PR queued after it (NVIDIA-NeMo#3529) has been ejected twice with "failed status checks". Reproduced locally: fails on `main` (`9164de0e`), passes on its parent (`2581db97`). Fix: `_is_benchmark_config` rejects a `manifest.yaml` by name before looking at content, so the predicate states the whole definition of a benchmark config and every caller of the discovery inherits it. `nemo_gym/registry.py` already filtered the manifest out of the legacy benchmark listing for the same reason; that filter is now redundant and removed, and `MANIFEST_FILENAME` moves to `benchmarks.py` so both modules read one definition (registry imports benchmarks, not the other way round). ## Validation ``` python -m pytest tests/unit_tests/test_benchmarks.py tests/unit_tests/test_registry.py \ tests/unit_tests/test_environment_publication.py tests/unit_tests/test_environment_onboarding.py \ tests/unit_tests/test_environment_manifest.py # all pass, including test_every_repo_benchmark_appears_in_listing (218 == 218) pre-commit run --files nemo_gym/benchmarks.py nemo_gym/registry.py tests/unit_tests/test_benchmarks.py ``` New test `test_prefilter_rejects_the_benchmarks_manifest`: a `config.yaml` and a `manifest.yaml` declaring the same dataset → the prefilter rejects the manifest and only the config is discovered. ## Rollouts N/A — discovery only. ## Compatibility and benchmark impact None to configs or scoring. `gym list benchmarks` output is unchanged from before NVIDIA-NeMo#3535; the catalog (`registry.py`) reads manifests through its own path as before. ## Checklist - [x] I have read the [contributing guidelines](https://github.com/NVIDIA-NeMo/Gym/blob/main/CONTRIBUTING.md). - [x] The change is focused; unrelated "drive-by" edits are tracked as separate issues/PRs. - [x] Tests added or updated and pass locally, or N/A for docs-only / non-code changes (so CI unit/server checks pass when applicable). - [x] Documentation added or updated, or N/A with justification — docstring of `_benchmark_config_paths` explains the exclusion. - [x] Pre-commit checks pass locally (`pre-commit run --all-files`) (so CI lint/format checks pass). - [x] New source files include the required Apache-2.0 SPDX header — no new files. - [x] All commits have DCO sign-off (`git commit -s`) (so the DCO check passes). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Ingo Guehring <[email protected]>
7 tasks done
ritaneves
added a commit
that referenced
this pull request
Sep 29, 2026
## What does this PR do? Complete the remaining benchmark manifests, rebased onto main at `d4c0f86c7`. Related to #1520 and #2094. The initial 75 manifests already landed in #3535 and are not part of this diff. This PR adds **95 manifests**, giving **170/170 benchmark catalog entries** manifest coverage on the rebased checkout. ### Alignment with the existing format - Use the existing `dump_manifest` serializer and field ordering, block lists, and plain YAML scalars rather than mixed hand-authored styles. - Preserve serialization of all 75 existing benchmark manifests byte-for-byte; none are modified. - Omit redundant `config_path: config.yaml` and `prompt_source: template` defaults, including when scaffold/sync rewrites existing manifests. - Reuse main's existing exclusion of manifest files from benchmark config discovery instead of duplicating that implementation. - Correct Terminal-Bench 4 metadata for its now agent-owned mini-SWE loop and policy-model wiring. - Include the 27 configurations added upstream since the original audit: 24 DeepSearchQA/WideSearch configurations plus FukuyamaBench, MolDeTox, and SciCodePile. ### Additive contract support The remaining workloads need cases the existing template-only contract cannot represent: - `prompt_source`: template (unchanged default), prepared messages, or agent-owned prompting. - Explicit nullable `resources_server` for non-custom-verifier profiles. - Relative, catalog-contained `config_path` for named YAML configurations. - Optional `dataset_owner` for configurations with multiple dataset-bearing instances. - Constant reward ranges, including SpeedBench's existing [0, 0] placeholder. Runtime configs remain authoritative. Shared prompts and multi-benchmark suite fragments are not fabricated standalone workloads. Mandatory manifest CI is a separate follow-up; this does not close the onboarding epic. ## Validation **592 targeted tests passed** on the final rebased diff: ```sh .venv/bin/python -m pytest tests/unit_tests/test_environment_validation.py tests/unit_tests/test_environment_manifest.py tests/unit_tests/test_registry.py tests/unit_tests/test_environment_scaffold.py tests/unit_tests/test_environment_publication.py tests/unit_tests/test_environment_onboarding.py tests/unit_tests/test_cli_main.py tests/unit_tests/test_benchmarks.py tests/unit_tests/test_verifier_fixture.py -q --tb=short -o addopts='' --junitxml=/private/tmp/gym-manifest-rebased-validation.xml .venv/bin/pre-commit run --all-files git diff --check ``` All checks above passed. Regression tests reproduced the serializer drift and stale/missing manifests before fixes. Additional offline audit: - **170/170** schema, catalog identity, preparation-script, and prompt-contract checks passed; zero no-manifest entries in the benchmarks tree. - **169/170** strict resolved-composition comparisons passed. - The HLE variant under `nemotron_3.5_super/benchmark_configs/hle_no_tools` still requires real judge settings (`openai_base_url`, `openai_api_key`, `openai_model`). No credentials or endpoints were fabricated. - All **75 existing manifests** serialize byte-for-byte identically. Full prepared-dataset validation, full server/sandbox/coverage suites, Fern checks, and model evaluations were not run. This remains a draft; the repository bot reports that draft PRs do not auto-sync to the main CI workflow. No CI trust-gate comment or manual workflow dispatch was issued. ## Rollouts N/A: no runtime benchmark configs, scorers, agents, or preparation scripts changed. This updates metadata, discovery, and validation; no model rollout was run. ## Compatibility and benchmark impact Existing template manifests and default config paths remain compatible and retain their serialized format. Custom Gym verifiers still require a resource server. Resource-less manifests do not add external-scorer support to gym env test/publish, which retain resource-server fixture requirements. Experimental metadata does not certify completed benchmark runs or reproducibility. No benchmark score changes are intended. ## Checklist - [x] I have read the [contributing guidelines](https://github.com/NVIDIA-NeMo/Gym/blob/main/CONTRIBUTING.md). - [x] The change is focused. - [x] Tests added or updated and pass locally; broader validation limitations are documented above. - [x] Onboarding documentation updated. - [x] Full pre-commit checks pass. - [x] Required source SPDX headers retained; new files are metadata manifests matching the existing format. - [x] All commits have DCO sign-off. --------- Signed-off-by: Rita Fernandes Neves <[email protected]>
This branch was previously 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.
What does this PR do?
Adds experimental
manifest.yamlmetadata for 75 existing benchmark implementations whose current configs can be represented without changing their layout or runtime behavior.Each manifest:
This PR is intentionally manifest-only: it does not modify benchmark configs, tests, or runtime code.
Thirteen config variants that would require directory restructuring or compatibility wrapper configs are intentionally excluded:
apex25/config_with_systemarxivmath_{0426,0526,0626}/config_with_systembrokenarxiv_{0426,0526,0626}/config_with_systemlivecodebench/v{5_2408_2502,6_2408_2505}/{config,cascade}longbench_v2/config_n3_1mlongcodebench/config_n3_1mValidation
.venv/bin/python -m pytest tests/unit_tests/test_environment_manifest.py -q— 34 passed.git diff --check origin/main...HEAD— passed.Rollouts
N/A. This PR adds declarative metadata only and does not change benchmark configuration or runtime behavior.
Compatibility and benchmark impact
None. Existing benchmark configs, selectors, execution paths, prompts, datasets, and scoring behavior are unchanged.
Checklist
pre-commit run --all-fileswas not run locally; the PR lint check passes.