Skip to content

fix(tau2): exclude review_model from snapshot comparison - #2292

Merged
cmunley1 merged 2 commits into
mainfrom
fix/tau2-snapshot-review-model
Aug 3, 2026
Merged

fix(tau2): exclude review_model from snapshot comparison#2292
cmunley1 merged 2 commits into
mainfrom
fix/tau2-snapshot-review-model

Conversation

@kajalj22

@kajalj22 kajalj22 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Summary

`test_sanity_query_input` was failing in CI because `review_model` is present in `test_data.json` (the snapshot) but absent from the actual server response in some tau2-bench versions.

`review_model` was added to `TextRunConfig` in tau2-bench v1.0.1 with a default of `'claude-opus-4-5'`. Its presence in the serialized config depends on which tau2-bench commit is installed. The test's `_clean()` function already strips other volatile config fields (`max_agent_steps`, `turns_remaining_interval`) — adding `review_model` follows the same pattern and makes the comparison stable across tau2-bench versions.

Change

One line added to `_clean()` in `responses_api_agents/tau2/tests/test_app.py`:
```python
d["config"].pop("review_model", None)
```

Verified

6/6 tau2 tests pass locally.

Failure first surfaced in the full suite run off #2290:
https://github.com/NVIDIA-NeMo/Gym/actions/runs/30840804435

review_model is a tau2-bench config field whose default value varies
across tau2-bench versions (added in v1.0.1 with default
'claude-opus-4-5', but not always present depending on the installed
commit). _clean() already strips other volatile config fields
(max_agent_steps, turns_remaining_interval); review_model follows the
same pattern.

Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Kajal Jain <kajalj@nvidia.com>
@copy-pr-bot

copy-pr-bot Bot commented Aug 3, 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.

@cmunley1
cmunley1 merged commit a8626cb into main Aug 3, 2026
9 checks passed
@cmunley1
cmunley1 deleted the fix/tau2-snapshot-review-model branch August 3, 2026 21:22
OlegSudakov pushed a commit to OlegSudakov/Gym that referenced this pull request Aug 7, 2026
…#2292)

## Summary

\`test_sanity_query_input\` was failing in CI because \`review_model\`
is present in \`test_data.json\` (the snapshot) but absent from the
actual server response in some tau2-bench versions.

\`review_model\` was added to \`TextRunConfig\` in tau2-bench v1.0.1
with a default of \`'claude-opus-4-5'\`. Its presence in the serialized
config depends on which tau2-bench commit is installed. The test's
\`_clean()\` function already strips other volatile config fields
(\`max_agent_steps\`, \`turns_remaining_interval\`) — adding
\`review_model\` follows the same pattern and makes the comparison
stable across tau2-bench versions.

## Change

One line added to \`_clean()\` in
\`responses_api_agents/tau2/tests/test_app.py\`:
\`\`\`python
d["config"].pop("review_model", None)
\`\`\`

## Verified

6/6 tau2 tests pass locally.

Failure first surfaced in the full suite run off NVIDIA-NeMo#2290:
https://github.com/NVIDIA-NeMo/Gym/actions/runs/30840804435

Signed-off-by: Kajal Jain <kajalj@nvidia.com>
Co-authored-by: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: Christian Munley <cmunley@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants