You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Eval scripts that join stderr into stdout can corrupt test IDs #6969
Several SWE resources servers join their eval script's stderr into stdout before grading: swebench (/bin/bash /eval.sh 2>&1), and exec 2>&1 in swe_rebench, swemer_v1, swemer_v2, swe_next, scale_swe and, with #6763, swemer_ultra. They need the join. On a provider that returns stdout and stderr apart (E2B, AgentENV), test results a runner prints on stderr would otherwise fall outside the region the grader parses. For swebench, the markers themselves reach the output on stderr.
The join has a cost. With both streams in one pipe, a stderr write can land in the middle of a test result line, and the parser then reads a wrong test ID. @macandro96 reproduced this with r2e_gym's and swe_gym's parsers: 1,000 passing pytest tests run with -s, while a background thread wrote to stderr, gave wrong test IDs in all three repeats (#6763 (comment)). That reproduction doesn't cover the servers above, but their parsers read the same kind of joined output.
Activity