Skip to content

feat(birdbench): add BIRD's 2025-11-06 dev and both Mini-Dev releases as dated versions, and a schema-only prompt - #6711

Merged
ffrujeri merged 14 commits into
NVIDIA-NeMo:mainfrom
abelatnvidia:abel/bird-versions
Dec 1, 2026
Merged

ffrujeri merged 14 commits into
NVIDIA-NeMo:mainfrom
abelatnvidia:abel/bird-versions

Conversation

@abelatnvidia

@abelatnvidia abelatnvidia commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

What does this PR do?

Adds the BIRD authors' newer dev releases to birdbench as named, dated versions, next to the dev set Gym has always used, which stays the default. It also adds an optional schema-only prompt, the one auto-ontology-eval's runs use, so their runs and Gym's can be compared prompt for prompt.

Please review VERSIONS and load_version_entries in benchmarks/birdbench/prepare.py, prompts/schema_only_sqlite.yaml, and the --version / --prompt-format handling in eval.sh. Skip the tests. bird_sql's grading doesn't change; its task_data.py declares the three new optional row fields (evidence_section, question_id, bird_version), and the default prepared file is byte-identical to main's.

version Released Tasks Source (pinned revision, SHA-256 checked)
dev_20240627 (default) 2024-06-27 1,534 dev.json in dev.zip, as today
dev_20251106 2025-11-06 1,534 birdsql/bird_sql_dev_20251106
minidev_20250704 2025-07-04 500 birdsql/bird_mini_dev, archive/
minidev_20261028 2026-10-28 500 birdsql/bird_mini_dev, data/
  • All four run on dev.zip's 11 SQLite databases. Each version's gold SQL runs there without an error (gold check below). The newer releases change questions, evidence and gold SQL, not databases.
  • A non-default version writes its own file, data/birdbench_<dialect>_<version>.jsonl, so a cached file from one release is never read as another. Its rows also carry BIRD's question_id and bird_version. The default file is unchanged.
  • --prompt-format schema_only (SQLite): prompts/schema_only_sqlite.yaml shows the database's CREATE TABLE statements and BIRD's column descriptions, with the question and its evidence apart. It is auto-ontology-eval's schema-only control prompt, adapted with credit. On dev, all 1,534 rendered prompts are byte-identical to the prompts a saved auto-ontology-eval run sent. It needs no BM25 index.
  • Every row has a task_id, BIRD's question_id as a string, in every version and both prompt formats, as main's rows have since fix(ifbench,birdbench,ioi26): give prepared rows a stable task_id #6647. gym eval plan needs it. It is unique within each version (see Validation).
  • manifest.yaml: licensing CC-BY-SA-4.0 (was unknown); the description names the release.

What changed from dev_20240627 (counts only)

  • dev_20251106: the same 1,534 ids and databases. 614 changed, ignoring whitespace-only edits: question text 182, evidence 378, gold SQL 450, difficulty 86 (challenging 145 → 231). Counting whitespace: 619.
  • minidev_20250704: 500 dev questions; 496 have question text identical to dev_20240627's.
  • minidev_20261028: renumbered 0–499 and largely re-annotated: 13 of 500 question texts are unchanged from minidev_20250704.

Gold check

Each version's gold SQL on dev.zip's databases, one query at a time:

Version Gold queries Errors Empty result Over 30 s (masked by bird_sql) Tasks scored
dev_20240627 1,534 0 0 2: q701 (183 s), q518 (39 s) 1,532
dev_20251106 1,534 0 0 3: q701 (185 s), q1131 (123 s), q518 (39 s) 1,531
minidev_20250704 500 0 0 2: q701, q518 498
minidev_20261028 500 0 3 0 (slowest 8.9 s) 500

Open questions (each with a default)

  1. Default version (default: keep dev_20240627 in this PR). The authors' current dev is dev_20251106. Switching the default would move every existing Gym BIRD number, so this PR doesn't. Proposal: flip the default to dev_20251106 once maintainers agree, in a one-line follow-up.
  2. A gold query that times out (default: keep bird_sql's masking). Two gold queries outlast bird_sql's 30 s on every 1,534-question release: q701 takes about 183 s and q518 about 39 s (one at a time, on a laptop), and dev_20251106 adds q1131 (123 s). bird_sql masks those tasks as verifier errors, so Gym scores dev_20240627 out of 1,532; BIRD's official evaluation_ex.py counts them as misses out of 1,534. This PR doesn't change that, and reports the count per version.
  3. Mini-Dev's MySQL and PostgreSQL golds (default: not used). The 2026 Mini-Dev ships aligned gold SQL for MySQL and PostgreSQL too. Like every dialect here, this PR runs the SQLite gold and compares results; using the dialect golds would be a follow-up.

Validation

Check Result
birdbench tests (run locally; CI doesn't run benchmarks/*/tests) 121 passed
tests/unit_tests/benchmarks/test_birdbench_prepare.py (from #6647) 2 passed
task_id in each version's prepared file, both prompt formats on every row and unique: 1,534, 1,534, 500 and 500; gym eval plan's check accepts each file
Default prepared file (dev_20240627, default prompt) byte-identical to main's
gym env validate birdbench manifest, components and the 1,534-row dataset resolve
Prompt parity with auto-ontology-eval (dev_20240627, schema_only) 1,534/1,534 byte-identical
A saved auto-ontology-eval run (Model B, below) replayed through eval.sh, no model calls exit 0, 1,534 rows, health "healthy"; 868 passes of the 1,532 tasks scored (q518 and q701 masked as gold timeouts); the same verdict as auto-ontology-eval's grader on all 1,532
Gold check above
pre-commit run --files on the changed files passed

Live runs

One live run per model through eval.sh, paired per task with a saved auto-ontology-eval run of the same model. Models A and B are two public NVIDIA models, a large one and a small one. The first number is Gym's, the second auto-ontology-eval's. Grading explains no gap: replayed through eval.sh, the saved Model B run's answers get the same verdict as auto-ontology-eval's grader on every scored task (see Validation).

Run Gym vs auto-ontology-eval
Live run through eval.sh against a saved auto-ontology-eval run, Model A (large), T0, same 1,534 prompts 577 vs 553 passes (37.6% vs 36.0%); paired McNemar p = 0.16
The same with Model B (small) 839 vs 868 passes (54.8% vs 56.6%); paired McNemar p = 0.02 (see below)

An auto-ontology-eval re-run on the same day paired with Gym's run at p = 0.37, so the Model B gap is consistent with day-to-day serving variation rather than the harness; the re-run itself scored 41 below the saved run with identical prompts and settings.

Gym's percentages are of the tasks it scored: 1,533 for Model A and 1,532 for Model B, because bird_sql masks a gold query that runs over 30 s (q518's ran just inside the limit in Model A's run). The auto-ontology-eval percentages are of all 1,534.

Credits

BIRD by Li et al. (CC BY-SA 4.0). The schema-only prompt is the Auto Ontology team's (auto-ontology-eval at commit e727e4d6e1e198355099de4803590bb3681793a4: ontology_sql_eval/gym/tasks.py for the prompt, ontology_sql_eval/gym/ddl.py for the schema dump; Apache 2.0).

abelatnvidia and others added 5 commits November 24, 2026 06:49
… versions

`version` picks a release of BIRD dev's questions: dev_20240627 (the
default, unchanged), the authors' revised dev_20251106 (614 of 1,534
questions changed), and Mini-Dev as of 2025-07-04 and of the 2026-10-28
update (500 each). The newer releases come from the BIRD authors'
Hugging Face datasets at a pinned revision and are checked against their
SHA-256; all run on dev.zip's 11 databases. A non-default version writes
its own prepared file and tags its rows with question_id and
bird_version; the default file is unchanged.

`prompt_format=schema_only` (SQLite) prepares rows for auto-ontology-eval's
schema-only prompt (prompts/schema_only_sqlite.yaml): the CREATE TABLE
statements and BIRD's column descriptions, with the question and its
evidence apart. eval.sh takes --version and --prompt-format.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
With --split train it read a question_id train rows don't have and would
have tagged train rows with a dev release; eval.sh would also have put
dev and train results in one directory.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
…ma-only prompt

The README lists each release with its date, source and what changed
from dev_20240627 (counts only), and the gold check per version: no gold
errors on dev.zip's databases; q701 and q518 (and q1131 in
dev_20251106) outlast bird_sql's 30 seconds and are masked. config.yaml
documents version and prompt_format; manifest.yaml gives the license
(CC-BY-SA-4.0) and the release.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
…nts both ways

data/versions/ (the downloaded question releases) is git-ignored; only
*.jsonl was. The README gives the dev_20251106 change counts with and
without whitespace-only edits, and the SHA-256 of the dev.json the
default numbers come from.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
NVIDIA-NeMo#6647 gave every prepared BIRD row a task_id, BIRD's question_id as a
string, because `gym eval plan` refuses rows without task_id, problem_id
or instance_id. The schema-only writer builds its own rows and had none,
so a schema-only plan would be refused. It now writes the same task_id.

The default-row key-set test expects task_id, the version test checks
it on dated rows, and a new test checks schema-only rows carry the
question_id (not the row position) and pass the bird_sql task-data
schema.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@copy-pr-bot

copy-pr-bot Bot commented Nov 24, 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.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Nov 24, 2026
@svcnvidia-nemo-ci svcnvidia-nemo-ci added risk:high Autobot PR risk: high feature New capabilities, enhancements, or enablement work area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers needs-review PR is ready for code review and waiting on a reviewer labels Nov 24, 2026
@athitten

Copy link
Copy Markdown
Contributor

/ok to test 2f92e09

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 24, 2026 19:33
@athitten

Copy link
Copy Markdown
Contributor

@abelatnvidia please take a look at the secrets detector failure and fix

…he secrets detector

The secrets detector flags the SHA-256s of the three dated releases as high-entropy strings. They are public
checksums. Mark each line with `# pragma: allowlist secret`, as main does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>

@svcnvidia-nemo-ci svcnvidia-nemo-ci left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SHIP WITH CARE

I found two RISKs: the new prepared fields are missing from the owning schema, and the documented direct configuration controls do not select the matching dataset and prompt. The eval.sh path worked in the probes. I found no BLOCKER.

I reviewed all eight changed files and their relevant consumers, with three delegated reviews covering versions, prompt generation, and evaluation wiring.

Validation

I used 766267172432.dkr.ecr.us-east-1.amazonaws.com/gym:91666f99091979a03d78b76558851f5bf1bbf43a, the base/default-branch CI image, because no successful head image build was available. Missing benchmark packages were installed into a scratch virtual environment.

  • test_prepare.py: 39 passed, with one pytest configuration warning. These benchmark-local tests are outside the core suite's default discovery.
  • Base/head preparation on a two-row SQLite fixture produced byte-identical default files. Schema-only rows rendered through the real prompt code, and a fixture answer passed the actual SQLite verifier.
  • Version probes covered JSON/JSONL parsing, cache reuse and corruption, checksum rejection, task counts, and output isolation.
  • Shell probes passed 19 supported combinations and four invalid combinations. Real config composition matched the shell's filenames and prompts. Direct-config cold/warm-cache probes and strict collation reproduced the two findings.

For existing suites, I relied on head CI: lint, four core shards, eight server shards, combined coverage, and the test/server summaries passed. CI is not green: Nemo_CICD_Test failed because the reusable unit-test workflow failed. Its session-routing test reported assert 1 > 1, with 1 failed, 8 passed, and 8 skipped. Matching base runs skipped that job, so I cannot establish it as pre-existing. The secret detector also failed on the three new SHA-256 literals at prepare.py:91,99,106; the log identifies them as high-entropy strings. Changed-server tests were skipped, not passed.

I did not download the full BIRD releases, independently reproduce the external prompt-parity claim, or run live models or Spark/PostgreSQL engines. The PR's full-data and live-run results are author-supplied evidence.


Inline comments (escaped v1):

  • resources_servers/bird_sql/task_data.py line 50: RISK: Declare the new prepared-row fields in the owning schema.

    Could you add optional evidence_section, question_id, and bird_version fields here? The new writers emit them, but this schema still describes only the old shape. Every named-version row therefore has unknown provenance fields, and every schema-only row also has an unknown prompt field.

    The real collation probe, /workspace/review-probes/.venv/bin/python /workspace/review-probes/bird-prompt-1/collate_probe.py, accepted old-shape rows but rejected schema-only rows with task_data_validation="error", listing all three fields as unknown. Warning-mode evaluation and SQL verification still work; this breaks supported strict validation, not scoring.

    Please declare the fields with their prompt/provenance metadata while keeping them optional so existing files remain valid. Strengthen the new validation assertion to require report.clean; error_rows == 0 currently passes despite unknown keys.

    Acceptance: old/default rows, named-version rows, and both prompt formats should produce clean reports and pass strict collation. Keep default output bytes unchanged and continue rejecting misspelled fields.

  • benchmarks/birdbench/README.md line 106: RISK: The documented direct version control leaves the default dataset selected.

    Could you wire direct configuration through the same selection as eval.sh, or document the complete dataset overrides it needs? gym eval prepare --benchmark birdbench +prepare_script_args.version=minidev_20261028 still declares birdbench_sqlite_dev.jsonl in config.yaml. On a cold cache, preparation writes the Mini-Dev file and then raises ConfigError because its path differs. With +use_cached_prepared_benchmarks=true and an existing default file, it instead skips preparation and reuses the 2024 questions.

    The new prepare_script_args.prompt_format=schema_only control has the same mismatch and also leaves the default prompt selected. I reproduced both cold/warm-cache cases with /workspace/review-probes/.venv/bin/python /workspace/review-probes/bird-eval-1/direct_prepare_probe.py. The shell flags work because they replace the dataset declaration too.

    The smallest scoped correction is to document a complete direct override or preset, including jsonl_fpath and prompt_config, rather than presenting the prepare argument as sufficient. Alternatively, derive both before cache lookup.

    Acceptance: each documented direct workflow must select the requested release and matching prompt with and without an existing default cache. Preserve the existing default paths and working shell combinations.

Review generated by codex. This was a full review. Request a full review with /review reset=true.

@yaoyu-33
yaoyu-33 requested a review from init-nikhil November 24, 2026 20:10
@github-actions github-actions Bot added the sla:review-overdue Review response is over the one-business-day SLA label Nov 25, 2026

@init-nikhil init-nikhil left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like the two bot comments still apply? The new dataset fields fail strict validation, and using the version/prompt overrides directly can still pick up the default prepared dataset. Can we address those? The shell script seems to handle it correctly.

abelatnvidia and others added 2 commits November 25, 2026 13:55
…n TaskData

prepare.py's schema-only prompt adds evidence_section, and a named BIRD dev version (or the
schema-only prompt) adds question_id and bird_version. TaskData did not declare them, so strict
collation (task_data_validation=error) rejected every such row as having unknown keys. They are now
optional fields: evidence_section is prompt input, question_id and bird_version are provenance.
Rows without them, including every default row, validate as before, and a misspelled field is
still an unknown key.

The schema-only test now requires a clean report, not only zero failed rows, and new tests check
that every prepared shape (default and named version, each with both prompt formats) is clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
…rompt_format

Setting +prepare_script_args.version or +prepare_script_args.prompt_format directly, without eval.sh,
left config.yaml's dataset on birdbench_sqlite_dev.jsonl and default_sqlite.yaml. `gym eval prepare`
then wrote the requested file and stopped because its path differed from jsonl_fpath, or, with
+use_cached_prepared_benchmarks=true and a default file present, skipped preparation and reused the
2024 questions.

The dataset's jsonl_fpath and prompt_config now follow both arguments, so the cache check, preparation
and collation all use the requested release's file and matching prompt. Two small lookups in
config.yaml mirror prepare.output_fpath_for: the default version's file is named by the split, and the
default prompt format adds no suffix; any other value names itself, so an unknown one still reaches
prepare()'s own error. The default resolves to the same file and prompt as before, and eval.sh, which
replaces the whole dataset entry, is unchanged. Dialect and split still go through eval.sh, since they
also change the server.

test_config.py now resolves config.yaml's interpolations as Gym does and checks, for every version and
prompt format, that the dataset is the file prepare() writes and the prompt matches. The README
documents the direct overrides.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@github-actions github-actions Bot removed the sla:review-overdue Review response is over the one-business-day SLA label Nov 25, 2026
…set file

The derived file name fell back to the raw value for an unlisted version, so a non-version could name
an existing file and be reused from the cache without prepare() ever checking it:
+prepare_script_args.version=dev picked the default file, and version=dev_schema_only the
schema-only file with the default prompt. Setting dialect or split directly also still reused the
SQLite dev file, as it did before the derivation.

config.yaml's tables now list every accepted version and prompt format, and the file prefix only for
SQLite dev. Any other value, and a direct dialect or split, fails while the config is resolved, before
the cache is looked up, naming the missing table key. eval.sh replaces the whole dataset entry, so it
is unaffected. The README says to pass the same override to `gym eval run`, sends dialect and split
to eval.sh, and notes that the cache goes by file name, which dscp and include_evidence don't change.

test_config.py now composes the config with Gym's own parser, checks that the tables match
prepare.VERSIONS and PROMPT_FORMATS and that the other values fail, and runs Gym's prepare flow in
process (cache lookup and output-path check, prepare() stubbed) with and without a cached default file.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@cafzal

cafzal commented Nov 25, 2026

Copy link
Copy Markdown

@dkmisra I ran the two legacy BIRD SQLite gold queries mentioned here against the stock database files. Both q518 and q701 hit a 30 s SQLite progress-handler deadline with a fresh read-only connection and on a reused connection after warming the database file. With a longer verifier-only precompute, the exact gold queries finished in 33.31 s and 152.15 s, respectively. A typed, snapshot-keyed gold cache then scored independently rewritten equivalent queries (28 ms / 23 ms prediction time) as passes and rejected a deliberate wrong answer for each. Cache read + comparison took under 8 ms in both cases. The prediction still had its own 30 s deadline.

This matches the split in BIRD-RL: its worker-local replica pool and dirty-aware reset help stateful SQL debugging avoid per-trajectory copies; its plain BIRD executor opens the immutable/read-only database directly. Replica reuse didn't fix these slow queries. I'd try a verifier-only gold cache as an explicit alternate scoring mode, keyed by dataset version, DB content hash, gold SQL hash, engine/version and comparator, with no policy access. Keep the official shared-deadline score/denominator separately reportable; caching changes what fits under that deadline. No changes to this PR or Gym were made.

Separately, the minidev_20261028 SHA-256 in this PR already matches the current public Mini-Dev SQLite split exactly. The missing piece for the aligned cross-dialect comparison is using its native PostgreSQL/MySQL DB artifacts and per-dialect gold SQL, not adding another SQLite release ID (the upstream manifest lists seven documented cross-dialect result exceptions).

abelatnvidia and others added 3 commits November 25, 2026 14:43
eval.sh built the prepared file name from --version without checking it, so an unlisted value could
name another cached file: `--version dev_schema_only` selected the schema-only file with the default
prompt, and `--version dev` the default file, and with the cache on prepare() never ran to reject
them. eval.sh now accepts only prepare.VERSIONS, as it already did for --prompt-format; every
supported combination resolves as before.

A test pins eval.sh's list to prepare.VERSIONS (it reads the script rather than running it, since the
script's exit trap reaps orphaned server processes). The README says a direct dialect or split stops
only when it isn't sqlite or dev.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
…; test the collation path

Gym's generic message for an unsupported direct value says a key under birdbench_prepared_file is not
set and suggests providing it, which would map the value to a file again. config.yaml and the README
now say to use a listed value instead.

The direct version and prompt-format test now also checks the dataset as collation (`gym eval run`)
reads it, through filter_for_server_instance_configs, beside the one `gym eval prepare` uses.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
…st arm

The test read only the first accepting arm, so an extra arm such as `dev_schema_only) ;;` before the
rejecting `*)` would have passed it. It now requires exactly the listed versions and the `*)` arm.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@abelatnvidia

Copy link
Copy Markdown
Contributor Author

Thanks. Both are addressed in six new commits on top of the branch (no rebase).

1. Strict validation (c220305). bird_sql's TaskData now declares evidence_section (prompt input) and
question_id and bird_version (provenance), all optional, so rows without them validate as before. The schema-only
test now requires report.clean, and a new test checks that every prepared shape (default and named version, each
with both prompt formats) is clean and that a misspelled field is still reported.

Checked with gym dataset collate and task_data_validation=error on full prepared SQLite files: all 8 (four versions,
two prompt formats each) now collate clean; before, only the default did. A file with bird_version misspelled still
fails. prepare.py is unchanged, so the default file is byte-identical.

2. Direct overrides (69a60af, 5458a63, e06a7bc, f5af0c8, 705aa35). I went with deriving rather
than documenting, so the one-line override works as documented instead of needing the whole dataset entry replaced on
the command line. config.yaml now
builds the dataset's jsonl_fpath and prompt_config from prepare_script_args.version and prompt_format, through
small tables that mirror prepare.output_fpath_for (other benchmarks, such as biomnibench_da, already derive
jsonl_fpath from prepare_script_args). So +prepare_script_args.version=... and
+prepare_script_args.prompt_format=schema_only, alone or together, select the requested file and prompt before the
cache lookup. The tables list only the accepted values and SQLite dev, so anything else (an unlisted version, or a
dialect or split set directly, which also needs the server switched, as eval.sh does) stops while the config is
resolved, rather than reusing another cached file. Checked:

  • The config resolved by Gym selects the right file and prompt for all 8 version and prompt-format combinations (1 of
    8 before).
  • gym eval prepare --benchmark birdbench +prepare_script_args.version=minidev_20261028 with no cache prepares the
    Mini-Dev file and exits 0 (before: path mismatch).
  • With +use_cached_prepared_benchmarks=true and the default file present, version-only and schema-only Mini-Dev each
    reuse their own file, not the 2024 one.
  • Strict collation with only the direct overrides gives 500 rows, all rendered from the requested file with the
    matching prompt.
  • An unlisted version or prompt format, or a direct dialect or split, exits before anything is prepared or reused.
    eval.sh now also rejects an unlisted --version; before, a value such as dev_schema_only could name another
    cached file.
  • The default still resolves to birdbench_sqlite_dev.jsonl and default_sqlite.yaml, and all 19 supported eval.sh
    combinations and the 4 it rejects resolve exactly as before.

test_config.py now composes the config with Gym's own parser and runs Gym's prepare flow in process (cache lookup and
output-path check, prepare() stubbed), with and without a cached default file. The README documents the direct
overrides; it also notes that the cache goes by file name, which dscp and include_evidence don't change (that was
already so).

Tests: birdbench 121 passed (97 before), bird_sql 99 passed and 31 skipped, and Gym's task-data, benchmark and CLI
unit tests pass.

On the two CI notes in the bot review: the secrets-detector flags on the SHA-256 literals are handled by the earlier
# pragma: allowlist secret commit (the same check run locally is clean). The Nemo_CICD_Test failure was
test_every_mcp_request_runs_on_the_worker_that_runs_its_episode in tests/e2e/session_routing/ (assert 1 > 1: all
episodes ran on one worker). This PR doesn't touch session routing or MCP, so it looks timing-dependent; the next
/ok to test should show it.

@abelatnvidia

abelatnvidia commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

Thanks @cafzal, that matches what I saw (q701 about 183 s, q518 about 39 s here). A verifier-only gold cache as a separate, labelled scoring mode, with the official deadline score still reported, sounds like the right shape. I'd keep it as a follow-up rather than add it to this PR.

Since #6274 touches the same benchmark files, I checked it against this PR and #6483 locally. The text conflicts are small, but there are two real gaps if both land, and I have tested fixes for each:

Whichever of these lands second, I'll add a merge-from-main commit and one follow-up commit with the fix, with no rebase or force-push. Happy to adjust if #6274's layout changes.

To reproduce (for reviewers, or an agent)
git fetch origin pull/6274/head:pr-6274 pull/6711/head:pr-6711 pull/6483/head:pr-6483
git show pr-6274:benchmarks/birdbench/spark.yaml | grep -n jsonl_fpath
git show pr-6274:benchmarks/birdbench/postgres.yaml | grep -n jsonl_fpath

Expected: line 28 of each is benchmarks/birdbench/data/birdbench_<dialect>_dev.jsonl, with no version or prompt-format part.

git switch -c check-6274 pr-6274
git merge --no-commit pr-6711

Expected conflicts: benchmarks/birdbench/eval.sh and benchmarks/birdbench/README.md. For #6483, run git merge --abort, then git merge --no-commit pr-6483. After resolving, tests/unit_tests/benchmarks/test_birdbench_dialects.py fails its Snowflake cases until snowflake.yaml exists.

Heads checked: #6274 187480aef5, #6711 705aa35713, #6483 8a48e65df9.

@ffrujeri

Copy link
Copy Markdown
Contributor

/ok to test 705aa35

@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 30, 2026 14:49
test_code_outside_the_library_imports_exported_names_from_the_public_api
requires code outside the library to import exported names from the
package's public API. test_config.py imported GlobalConfigDictParser and
GlobalConfigDictParserConfig from nemo_gym.config.global_config.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@svcnvidia-nemo-ci svcnvidia-nemo-ci removed the waiting-on-maintainers Waiting on maintainers to respond label Nov 30, 2026
@abelatnvidia

Copy link
Copy Markdown
Contributor Author

Pushed 36c57c3, which fixes the one CI failure. benchmarks/birdbench/tests/test_config.py imported GlobalConfigDictParser and GlobalConfigDictParserConfig from nemo_gym.config.global_config; it now imports them from nemo_gym.config, as test_public_api_facades.py requires.

@abelatnvidia

Copy link
Copy Markdown
Contributor Author

@ffrujeri thanks for running CI. Could you run /ok to test 36c57c36de59c2da7c00c2a8cd2437b6f714e7cf?

@github-actions github-actions Bot removed the sla:author-overdue Author response is over the one-business-day SLA label Nov 30, 2026
init-nikhil
init-nikhil previously approved these changes Nov 30, 2026
Resolves the one conflict, in benchmarks/birdbench/manifest.yaml: main
(NVIDIA-NeMo#6233) made modality a list, and this branch changed the description and
licensing. The merged file keeps both: main's `modality: [text]` and this
branch's description and `licensing: CC-BY-SA-4.0`.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
@ffrujeri

Copy link
Copy Markdown
Contributor

/ok to test 36c57c3

@ffrujeri
ffrujeri enabled auto-merge November 30, 2026 23:33
@nemo-automation-bot
nemo-automation-bot Bot requested a review from a team November 30, 2026 23:33
auto-merge was automatically disabled November 30, 2026 23:57

Head branch was pushed to by a user without write access

@abelatnvidia

Copy link
Copy Markdown
Contributor Author

@ffrujeri thanks. The run on 36c57c3 stopped before any tests because the PR conflicted with main. I merged main to fix the conflict in benchmarks/birdbench/manifest.yaml: it keeps main's list-form modality and this PR's description and license. Could you run /ok to test 7595830eb56413232a7aa2acfcb793c3177751c3?

@init-nikhil the push dismissed your approval. Since you approved, the only change to this PR's files is that modality line, which comes from main. Could you take another look?

@ffrujeri

ffrujeri commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

/ok to test 7595830

@ffrujeri ffrujeri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the fixes. The head closes both bot findings and both points from the earlier review: TaskData declares evidence_section, question_id and bird_version, and config.yaml builds jsonl_fpath and prompt_config from version and prompt_format, so a direct override selects its own file and an unlisted value stops while the config resolves (checked with gym env resolve). The PR's own patch is the same as the one approved at 36c57c36; the merge from main dismissed that approval. LGTM.

Optional: the provenance note in prepare.py could give the full commit (e727e4d6e1e198355099de4803590bb3681793a4) and also name ontology_sql_eval/gym/tasks.py, the source of the schema-only prompt, and the description could carry the same line.


@pytest.mark.parametrize("prompt_format", birdbench_prepare.PROMPT_FORMATS)
@pytest.mark.parametrize("version", list(birdbench_prepare.VERSIONS))
def test_direct_version_and_prompt_format_select_their_file_and_prompt(version, prompt_format):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Optional: CI does not run benchmarks/*/tests, so this check does not run in CI. Could a copy go in tests/unit_tests/benchmarks/, next to test_birdbench_prepare.py? Then CI catches a later change to config.yaml, for example when the Spark and PostgreSQL configs from #6274 land.

@ffrujeri
ffrujeri enabled auto-merge December 1, 2026 18:19
@abelatnvidia

Copy link
Copy Markdown
Contributor Author

Thanks for the review. I've updated the description's credit line to give the full commit and name tasks.py. You're right that CI doesn't run benchmarks/*/tests. Since both code points are optional and CI is already running on this head, I'll do them in a small follow-up PR after this merges: a copy of the config test in tests/unit_tests/benchmarks/, and the same full commit and tasks.py in prepare.py's provenance note.

@ffrujeri
ffrujeri added this pull request to the merge queue Dec 1, 2026
@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/46716356449

Merged via the queue into NVIDIA-NeMo:main with commit e6a49b1 Dec 1, 2026
70 checks passed
abelatnvidia added a commit to abelatnvidia/Gym that referenced this pull request Dec 2, 2026
NVIDIA-NeMo#6711 (BIRD versions and the schema-only prompt) and this branch both added a
section after the dialect notes in benchmarks/birdbench/README.md. Both are
kept: the Snowflake section first (it belongs to the dialect notes), then
main's Versions and Schema-only prompt sections. No other conflicts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Abel Brown <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers feature New capabilities, enhancements, or enablement work needs-review PR is ready for code review and waiting on a reviewer risk:high Autobot PR risk: high

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants