Skip to content

fix(bird_sql): distinguish result mismatches and timeouts from execution failures (#3355) - #3468

Merged
yaoyu-33 merged 1 commit into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/bird-sql-distinguish-result-mismatches
Sep 18, 2026
Merged

yaoyu-33 merged 1 commit into
NVIDIA-NeMo:mainfrom
ManoharPaturi:fix/bird-sql-distinguish-result-mismatches

Conversation

@ManoharPaturi

Copy link
Copy Markdown
Contributor

Description

Fixes #3355.

resources_servers/bird_sql previously reported FailureCode.EXECUTION_ERROR whenever the predicted query's results did not match the ground truth, conflating answer correctness failures with database/execution crashes and timeouts.

Changes

  1. Added FailureCode.RESULT_MISMATCH: When both gold and predicted queries execute successfully but their result sets differ, failure_reason is set to FailureCode.RESULT_MISMATCH.
  2. Distinguished Timeouts: Added FailureCode.EXECUTION_TIMEOUT and FailureCode.GOLD_EXECUTION_TIMEOUT. Updated execute_sqlite_async and execute_and_compare in eval_utils.py to distinguish asyncio.TimeoutError from SQLite syntax/execution errors.
  3. Preserved Binary Rewards: Rewards remain unchanged (1.0 for matching execution, 0.0 otherwise).
  4. Added Regression Tests: Updated test_verify_mismatch_with_codeblock and added tests for both timeout outcomes in execute_and_compare and verify.

Validation

  • pytest resources_servers/bird_sql/tests/test_app.py (46 passed)
  • ruff check resources_servers/bird_sql/ (all checks passed)
  • Signed-off with DCO

…ion failures (NVIDIA-NeMo#3355)

Signed-off-by: Manohar Paturi <186662190+ManoharPaturi@users.noreply.github.com>
Copilot AI lite review requested due to automatic review settings September 17, 2026 07:32
@copy-pr-bot

copy-pr-bot Bot commented Sep 17, 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.

Copilot AI 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.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@nemo-automation-bot nemo-automation-bot Bot added the community-request Issue reported or requested by someone from the community label Sep 17, 2026
@yaoyu-33 yaoyu-33 added area:environment Individual environments, benchmarks, verifiers, and environment-specific resources servers bug Something isn't working complexity:low Localized change in one scope with a small, straightforward review surface needs-review PR is ready for code review and waiting on a reviewer labels Sep 17, 2026
@yaoyu-33
yaoyu-33 enabled auto-merge September 17, 2026 16:33

@yaoyu-33 yaoyu-33 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.

LGTM. Result mismatches, prediction timeouts, and gold-query timeouts are now distinguished while preserving the SQL matching logic, binary rewards, and helper default behavior. All 46 bird_sql tests passed on this head; pre-commit run --all-files also passed. Live model rollouts were not rerun for this diagnostic-only change. Full CI remains pending.

@yaoyu-33 yaoyu-33 added ready-to-merge PR is approved, current, and waiting for final CI or merge and removed needs-review PR is ready for code review and waiting on a reviewer labels Sep 17, 2026
@yaoyu-33

Copy link
Copy Markdown
Contributor

/ok to test a1e8f65

@github-actions

Copy link
Copy Markdown
Contributor

πŸ”„ Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/35306561422

Merged via the queue into NVIDIA-NeMo:main with commit 8bbbb88 Sep 18, 2026
42 checks passed

This branch was previously deployed

1 inactive deployment
public β€” a1e8f65e Deployed Sep 17, 2026 by copy-pr-bot[bot] via release / finalize / notify #3114
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 bug Something isn't working community-request Issue reported or requested by someone from the community complexity:low Localized change in one scope with a small, straightforward review surface ready-to-merge PR is approved, current, and waiting for final CI or merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[bird_sql] Distinguish result mismatches from SQL execution failures

3 participants