Fix the Python test environment for 490 SWE-smith tasks

#4
by burtenshaw HF Staff - opened
harness-hub org

What

The runtime images for the 490 SWE-smith Python tasks install pytest and the project into the testbed conda env but put the base env first on PATH. Agents run commands in non-interactive shells, so python had neither pytest nor the project, and pip install failed in network-locked sandboxes. In training run 513252, No module named 'pytest' appeared in 1,214 coding rollouts.

This PR re-pins those 490 rows to harness-adapters revision df43f14c04a1ee2edeb101b52061e9b14da48da6 (branch testbed-path), where each bundle:

  • sets [environment.env] PATH in task.toml with /opt/miniconda3/envs/testbed/bin first (Harbor >= 0.22 applies it to every sandbox command)
  • ends its instruction.md with an Environment note

It also updates the instruction column for those rows, the README, SHA256SUMS, and adds provenance/testbed-path-fix.json with per-task file hashes.

Checks

Harbor 0.27 on HF sandboxes, with each task's prebuilt image:

Task task.toml Agent Reward python pytest
kayak__pypika original oracle 1.0 /opt/miniconda3/bin/python /opt/miniconda3/bin/python: No module named pytest
kayak__pypika patched oracle 1.0 /opt/miniconda3/envs/testbed/bin/python pytest 8.4.2
kayak__pypika patched nop 0.0 - -
marshmallow-code__marshmallow patched oracle 1.0 /opt/miniconda3/envs/testbed/bin/python pytest 9.2.0
marshmallow-code__marshmallow patched nop 0.0 - -

Grading is unchanged: tests/test.sh activates testbed itself. The 227 Go tasks and the 130 SWE-Gym tasks are not touched. The inkling-python-r1/r2 runtime receipts still describe the original bundles at 5d320e9.

burtenshaw changed pull request status to closed
harness-hub org

Rebuilt on top of main in e610663, because the dataset card changed in 1a084d5. The data files and provenance/testbed-path-fix.json are identical to this PR (same SHA-256), and its README changes are carried into the current card. Closing as superseded.

Sign up or log in to comment