Repository navigation
fix(swe): mask evaluator launch failures - #4002
Merged
cmunley1 merged 2 commits intoOct 8, 2026
Merged
Conversation
Signed-off-by: wdykas <[email protected]>
5 tasks done
wdykas
marked this pull request as ready for review
October 8, 2026 16:55
Contributor
Author
|
@sdevare-nv could I get a review on this simple one as well |
Contributor
|
/ok to test 5facc6d |
cmunley1
approved these changes
Oct 8, 2026
cmunley1
enabled auto-merge
October 8, 2026 17:45
Contributor
|
/ok to test b6bddcd |
Contributor
|
🔄 Merge queue validation started! You can track the progress here: https://github.com/NVIDIA-NeMo/Gym/actions/runs/37831054871 |
4 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?
Exclude SWE rollouts from training when the evaluator process fails before its script starts. Currently, a completed agent patch followed by an evaluator launch failure becomes
reward=0withmask_sample=False, treating an unmeasured result as a valid policy failure.Record
eval_launch_failedwhen evaluation raises and its per-episode startup marker is absent, then include that flag in the existing masking decision. Every supported evaluator writes this marker before model-dependent setup or tests. Preserve both the public and legacy mask fields through the existing response path.Ordinary failed tests remain valid zero rewards. Post-start script failures retain existing behavior because they can be caused by the submitted patch; this change does not classify every evaluator exception as infrastructure failure. No separate issue is needed for this focused, reproduced defect.
Validation
python -m pytest responses_api_agents/swe_agents/tests/test_app.py -q: all 189 tests passed.python -m pytest responses_api_agents/swe_agents/tests/test_app.py -k TestEvaluatorLaunchFailure -q: 4 passed. Tests exercise the native evaluation, response assembly, and verification path; check both masks and token preservation; and cover legacy metrics and legitimate negative results.pre-commit run --all-files: passed.Rollouts
The reproduction retains an actual completed OpenHands trajectory with a nonempty patch and 11,283 generated tokens. It replaces the evaluator process outcome, then passes through native response assembly. A downstream configured training check demonstrates that excluding the failed-evaluation row removes 3,221 trainable message-penalty positions while preserving the healthy sibling.
Checklist