Repository navigation
fix(benchmarks): reject manifest.yaml in benchmark discovery - #3564
Merged
iguehring-nvidia merged 1 commit intoSep 21, 2026
Merged
Conversation
This was referenced Sep 21, 2026
iguehring-nvidia
force-pushed
the
iguehring/skip-manifests-in-benchmark-discovery
branch
from
September 21, 2026 13:56
67f3a6f to
90484fc
Compare
#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
force-pushed
the
iguehring/skip-manifests-in-benchmark-discovery
branch
from
September 21, 2026 14:01
90484fc to
8e21681
Compare
ritaneves
approved these changes
Sep 21, 2026
Contributor
|
Thank you for catching this @iguehring-nvidia , approved! |
ritaneves
enabled auto-merge
September 21, 2026 14:09
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/35611181696 |
github-merge-queue
Bot
removed this pull request from the merge queue due to failed status checks
Sep 21, 2026
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/35613471852 |
iguehring-nvidia
deleted the
iguehring/skip-manifests-in-benchmark-discovery
branch
September 21, 2026 14:51
3 tasks done
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?
Unbreaks
mainafter #3535. Its 75 newbenchmarks/*/manifest.yamlfiles each mirror their benchmark'stype: benchmarkdataset, 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 andtests/unit_tests/test_benchmarks.py::TestDiscoverBenchmarksInDir::test_every_repo_benchmark_appears_in_listingfails onmain:#3535's own merge-queue run passed because it was queued against the previous base; the first PR queued after it (#3529) has been ejected twice with "failed status checks". Reproduced locally: fails onmain(9164de0e), passes on its parent (2581db97).Fix:
_is_benchmark_configrejects amanifest.yamlby 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.pyalready filtered the manifest out of the legacy benchmark listing for the same reason; that filter is now redundant and removed, andMANIFEST_FILENAMEmoves tobenchmarks.pyso both modules read one definition (registry imports benchmarks, not the other way round).Validation
New test
test_prefilter_rejects_the_benchmarks_manifest: aconfig.yamland amanifest.yamldeclaring 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 benchmarksoutput is unchanged from before #3535; the catalog (registry.py) reads manifests through its own path as before.Checklist
_benchmark_config_pathsexplains the exclusion.pre-commit run --all-files) (so CI lint/format checks pass).git commit -s) (so the DCO check passes).🤖 Generated with Claude Code