Fix the Python test environment for 490 SWE-smith tasks
Browse files## 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`.
- README.md +3 -1
- SHA256SUMS +4 -3
- data/coding.jsonl +0 -0
- data/tasks.jsonl +2 -2
- provenance/testbed-path-fix.json +0 -0
|
@@ -85,7 +85,7 @@ Load `split="all"` for the built-in union of the three stored splits. Every task
|
|
| 85 |
|
| 86 |
## Obtain task files
|
| 87 |
|
| 88 |
-
The 871 baseline coding bundles are referenced
|
| 89 |
The 712 knowledge-work and automation bundles are referenced at revision `7e3c1fefe791bc43901d93fbd4a11d6d39d851b5` of [automation-adapter-envs](https://huggingface.co/datasets/harness-hub/automation-adapter-envs).
|
| 90 |
These files remain in their source repositories; this release does not duplicate them. Their exact repository, revision and path are recorded in every row.
|
| 91 |
|
|
@@ -93,6 +93,8 @@ The 14 coding additions are included as individual archives under `bundles/`, wi
|
|
| 93 |
|
| 94 |
The replacement archive for `tasksmith-ae872f5c3953` contains only the two plain-text email fixtures required by its six grading cases. If you downloaded this task from the initial snapshot, download it again into an empty directory so old fixtures do not remain alongside the replacement. The [repair record](provenance/tasksmith-ae872f5c3953/fixture-repair.json) identifies the replacement digest and control results. Earlier provenance and runtime records describe the original export.
|
| 95 |
|
|
|
|
|
|
|
| 96 |
The included `download_task.py` downloads a selected task, following the pinned references or verifying and extracting its archive:
|
| 97 |
|
| 98 |
```bash
|
|
|
|
| 85 |
|
| 86 |
## Obtain task files
|
| 87 |
|
| 88 |
+
The 871 baseline coding bundles are referenced in [harness-adapters](https://huggingface.co/datasets/harness-hub/harness-adapters). The 490 SWE-smith Python bundles are pinned at revision `df43f14c04a1ee2edeb101b52061e9b14da48da6` on its `testbed-path` branch, which fixes their Python test environment (see below). The other 381 are pinned at revision `5d320e93b7832c6c66e6a5acd8403fb1a3c50bc6`.
|
| 89 |
The 712 knowledge-work and automation bundles are referenced at revision `7e3c1fefe791bc43901d93fbd4a11d6d39d851b5` of [automation-adapter-envs](https://huggingface.co/datasets/harness-hub/automation-adapter-envs).
|
| 90 |
These files remain in their source repositories; this release does not duplicate them. Their exact repository, revision and path are recorded in every row.
|
| 91 |
|
|
|
|
| 93 |
|
| 94 |
The replacement archive for `tasksmith-ae872f5c3953` contains only the two plain-text email fixtures required by its six grading cases. If you downloaded this task from the initial snapshot, download it again into an empty directory so old fixtures do not remain alongside the replacement. The [repair record](provenance/tasksmith-ae872f5c3953/fixture-repair.json) identifies the replacement digest and control results. Earlier provenance and runtime records describe the original export.
|
| 95 |
|
| 96 |
+
The runtime images for the 490 SWE-smith Python tasks install pytest and the project into the `testbed` conda environment but put the base environment first on `PATH`, so an agent's non-interactive shell got a `python` without either. Their bundles now set `[environment.env] PATH` in `task.toml` with `/opt/miniconda3/envs/testbed/bin` first, which Harbor 0.22 and later applies to every sandbox command, and their instructions end with an Environment note. The `instruction` column carries the new text. Grading is unchanged because `tests/test.sh` activates `testbed` itself. The [change record](provenance/testbed-path-fix.json) lists each task's old and new file hashes and the sandbox checks. The `runtime-revisions/inkling-python-r1` and `r2` receipts describe the original bundles at `5d320e93b7832c6c66e6a5acd8403fb1a3c50bc6`.
|
| 97 |
+
|
| 98 |
The included `download_task.py` downloads a selected task, following the pinned references or verifying and extracting its archive:
|
| 99 |
|
| 100 |
```bash
|
|
@@ -1,5 +1,5 @@
|
|
| 1 |
b0dafd21cb0ce625fdb9f65e941c7d932e2b60d7144c3d24f3bdbb768e0114ed LICENSES.md
|
| 2 |
-
|
| 3 |
6720c802b48f5c15b9952370f527408c4672cfd0ea5e50c16833f59e4d317cbd bundles/cyber-authorization.tar.gz
|
| 4 |
63ffc4d91661789dc4ed1d15a71934aed57a326742bcdbebd7a96e2f137ee2a8 bundles/tasksmith-0ba04a338dbb.tar.gz
|
| 5 |
3518cb5b8d75853eedc381b6e4b23acba83018ccdb353b0e400d3d4f10815bcb bundles/tasksmith-2e594e91712a.tar.gz
|
|
@@ -15,10 +15,10 @@ ac3f78788559c82f418be11a7109967a40b09bf11de8ce271461531c85587923 bundles/tasksm
|
|
| 15 |
645dd194544d64225492fef16954f9c23b3a87c8e3dffcf56399187f83144d13 bundles/tasksmith-b6d969373e1e.tar.gz
|
| 16 |
f28a9af1fb4a2a3a0d595c906deaabddbd25a1f5f1fbe563272693bd0e1390ac bundles/tasksmith-ca08ab4caec6.tar.gz
|
| 17 |
c214639cb02403e7cb95c6392766ef03cfb3145e6178182ae95e20b42b26dc94 bundles/tasksmith-eb64d1312ca8.tar.gz
|
| 18 |
-
|
| 19 |
3ba484b7c981a1fc8432d3b17d355a5ce8c4671d24fdcbfa26a675575217f487 data/cyber.jsonl
|
| 20 |
be7573c278a3513ecebae54acda643d27269407ff09c3c49a6c6a97f43fc354c data/knowledge_work.jsonl
|
| 21 |
-
|
| 22 |
f893f8358c80fb70b7d99d6c9cbd28824cd92d83a632088cb18298cc343628f5 download_task.py
|
| 23 |
d4836787a3c68f208033aacfc457202471b666e4ff1550605eeb5d16f92bee22 provenance/automation-LICENSES.md
|
| 24 |
88f8ccd90d50f98f7019dc27c1b2591a335c76b6df7807ef3786d1a75894a82a provenance/automation-dataset-card.md
|
|
@@ -119,3 +119,4 @@ fbd27036ed3ff99334a337d948600e4ea2ffff188de34c8b3894df5d661f870b provenance/tas
|
|
| 119 |
92f994dd6e78b59a020100eeeb2520a4c4945d1adbb17f8eb785461930bfbd3d provenance/tasksmith-eb64d1312ca8/quality-label.json
|
| 120 |
47e37ca417109efab71324d04e73098b38ebccb13fcdd6b52ee9428e0b832ae7 provenance/tasksmith-eb64d1312ca8/quality-result.json
|
| 121 |
4d76dbb4c1686820cabd567d72f8aea358909765eb8626774c68099b4ba492e1 provenance/tasksmith-eb64d1312ca8/source.json
|
|
|
|
|
|
| 1 |
b0dafd21cb0ce625fdb9f65e941c7d932e2b60d7144c3d24f3bdbb768e0114ed LICENSES.md
|
| 2 |
+
f0b108a4be756cb6a223126bd8b6d6c3ad7763a7de8c0c39b949a92ed048316f README.md
|
| 3 |
6720c802b48f5c15b9952370f527408c4672cfd0ea5e50c16833f59e4d317cbd bundles/cyber-authorization.tar.gz
|
| 4 |
63ffc4d91661789dc4ed1d15a71934aed57a326742bcdbebd7a96e2f137ee2a8 bundles/tasksmith-0ba04a338dbb.tar.gz
|
| 5 |
3518cb5b8d75853eedc381b6e4b23acba83018ccdb353b0e400d3d4f10815bcb bundles/tasksmith-2e594e91712a.tar.gz
|
|
|
|
| 15 |
645dd194544d64225492fef16954f9c23b3a87c8e3dffcf56399187f83144d13 bundles/tasksmith-b6d969373e1e.tar.gz
|
| 16 |
f28a9af1fb4a2a3a0d595c906deaabddbd25a1f5f1fbe563272693bd0e1390ac bundles/tasksmith-ca08ab4caec6.tar.gz
|
| 17 |
c214639cb02403e7cb95c6392766ef03cfb3145e6178182ae95e20b42b26dc94 bundles/tasksmith-eb64d1312ca8.tar.gz
|
| 18 |
+
be3d0c9f10a53e18c450803c8ae1b825f6251b2026803ea94325d502752d867d data/coding.jsonl
|
| 19 |
3ba484b7c981a1fc8432d3b17d355a5ce8c4671d24fdcbfa26a675575217f487 data/cyber.jsonl
|
| 20 |
be7573c278a3513ecebae54acda643d27269407ff09c3c49a6c6a97f43fc354c data/knowledge_work.jsonl
|
| 21 |
+
900e00ccb87dd022ff9e2f8f7835d30ba548214ded03ae489fa8f89dbb6230b1 data/tasks.jsonl
|
| 22 |
f893f8358c80fb70b7d99d6c9cbd28824cd92d83a632088cb18298cc343628f5 download_task.py
|
| 23 |
d4836787a3c68f208033aacfc457202471b666e4ff1550605eeb5d16f92bee22 provenance/automation-LICENSES.md
|
| 24 |
88f8ccd90d50f98f7019dc27c1b2591a335c76b6df7807ef3786d1a75894a82a provenance/automation-dataset-card.md
|
|
|
|
| 119 |
92f994dd6e78b59a020100eeeb2520a4c4945d1adbb17f8eb785461930bfbd3d provenance/tasksmith-eb64d1312ca8/quality-label.json
|
| 120 |
47e37ca417109efab71324d04e73098b38ebccb13fcdd6b52ee9428e0b832ae7 provenance/tasksmith-eb64d1312ca8/quality-result.json
|
| 121 |
4d76dbb4c1686820cabd567d72f8aea358909765eb8626774c68099b4ba492e1 provenance/tasksmith-eb64d1312ca8/source.json
|
| 122 |
+
1021caf9b41fa5eb7517127cdb88cb71fd52d75f5a7d97643d6b71cf162ef3d1 provenance/testbed-path-fix.json
|
|
The diff for this file is too large to render.
See raw diff
|
|
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:900e00ccb87dd022ff9e2f8f7835d30ba548214ded03ae489fa8f89dbb6230b1
|
| 3 |
+
size 17197091
|
|
The diff for this file is too large to render.
See raw diff
|
|
|