Skip to content

fix(eval): reject -i/--input in end-to-end eval run instead of silently ignoring it - #2709

Merged
adil-a merged 1 commit into
mainfrom
fix/eval-run-input-ignored-e2e
Aug 24, 2026
Merged

adil-a merged 1 commit into
mainfrom
fix/eval-run-input-ignored-e2e

Conversation

@adil-a

@adil-a adil-a commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

What

gym eval run -i myfile.jsonl without --no-serve silently ignores -i: E2ERolloutCollectionConfig has no input_jsonl_fpath field (Pydantic extra="ignore" drops it), and the e2e path then unconditionally overwrites the input with the prepared split it generates. The run proceeds on different data than the user asked for, with no warning.

Fix

A model_validator on E2ERolloutCollectionConfig raises a clean ConfigError when input_jsonl_fpath is passed in e2e mode, telling the user to either add --no-serve (run on their file against already-running servers) or drop -i (use the prepared data). --no-serve -i behavior is unchanged. E2e mode generating its own input is correct and unchanged — this only makes the contradictory flag combination loud instead of a silent no-op.

Tests

3 new tests (error fires in e2e; e2e without -i still validates; --no-serve + -i unaffected); full test_rollout_collection.py suite passes.

🤖 Generated with Claude Code

…ly ignoring it

E2ERolloutCollectionConfig has no input_jsonl_fpath field, so pydantic's
default extra='ignore' dropped a user-passed -i/--input and e2e collection
overwrote it with the prepared split path — the user's file was silently
ignored. Fail loud with a ConfigError telling the user to either add
--no-serve (to use their file) or drop -i (to use prepared data).

Co-Authored-By: Claude Fable 5 <[email protected]>
Signed-off-by: Adil Asif <[email protected]>
@copy-pr-bot

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

@adil-a
adil-a enabled auto-merge (squash) August 24, 2026 18:10
@adil-a
adil-a merged commit e87d5d9 into main Aug 24, 2026
18 checks passed
@adil-a
adil-a deleted the fix/eval-run-input-ignored-e2e branch August 24, 2026 18:16
@claude claude Bot mentioned this pull request Aug 24, 2026
5 tasks
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.

2 participants