Skip to content

Eval scripts that join stderr into stdout can corrupt test IDs #6969

Backlog

Description

@zyzhou5

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions