burtenshaw commited on
Commit ·
b603b18
1
Parent(s): 16d5c0d
Simplify setup to an inline Harbor command
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- README.md +3 -49
- tasks/0000_324_324276_qa_3/environment/bootstrap.sh +0 -17
- tasks/0000_324_324276_qa_3/environment/pull_bucket.py +8 -3
- tasks/0000_324_324276_qa_3/task.toml +8 -4
- tasks/0000_369_369503_qa_1/environment/bootstrap.sh +0 -17
- tasks/0000_369_369503_qa_1/environment/pull_bucket.py +8 -3
- tasks/0000_369_369503_qa_1/task.toml +8 -4
- tasks/0000_455_455459_qa_4/environment/bootstrap.sh +0 -17
- tasks/0000_455_455459_qa_4/environment/pull_bucket.py +8 -3
- tasks/0000_455_455459_qa_4/task.toml +8 -4
- tasks/0000_465_465850_qa_5/environment/bootstrap.sh +0 -17
- tasks/0000_465_465850_qa_5/environment/pull_bucket.py +8 -3
- tasks/0000_465_465850_qa_5/task.toml +8 -4
- tasks/0000_526_526258_qa_2/environment/bootstrap.sh +0 -17
- tasks/0000_526_526258_qa_2/environment/pull_bucket.py +8 -3
- tasks/0000_526_526258_qa_2/task.toml +8 -4
- tasks/0000_539_539873_qa_3/environment/bootstrap.sh +0 -17
- tasks/0000_539_539873_qa_3/environment/pull_bucket.py +8 -3
- tasks/0000_539_539873_qa_3/task.toml +8 -4
- tasks/0000_582_582934_qa_4/environment/bootstrap.sh +0 -17
- tasks/0000_582_582934_qa_4/environment/pull_bucket.py +8 -3
- tasks/0000_582_582934_qa_4/task.toml +8 -4
- tasks/0000_587_587336_qa_5/environment/bootstrap.sh +0 -17
- tasks/0000_587_587336_qa_5/environment/pull_bucket.py +8 -3
- tasks/0000_587_587336_qa_5/task.toml +8 -4
- tasks/0000_641_641256_qa_1/environment/bootstrap.sh +0 -17
- tasks/0000_641_641256_qa_1/environment/pull_bucket.py +8 -3
- tasks/0000_641_641256_qa_1/task.toml +8 -4
- tasks/0000_656_656399_qa_2/environment/bootstrap.sh +0 -17
- tasks/0000_656_656399_qa_2/environment/pull_bucket.py +8 -3
- tasks/0000_656_656399_qa_2/task.toml +8 -4
- tasks/0000_767_767688_qa_4/environment/bootstrap.sh +0 -17
- tasks/0000_767_767688_qa_4/environment/pull_bucket.py +8 -3
- tasks/0000_767_767688_qa_4/task.toml +8 -4
- tasks/0000_780_780974_qa_4/environment/bootstrap.sh +0 -17
- tasks/0000_780_780974_qa_4/environment/pull_bucket.py +8 -3
- tasks/0000_780_780974_qa_4/task.toml +8 -4
- tasks/0000_804_804467_qa_1/environment/bootstrap.sh +0 -17
- tasks/0000_804_804467_qa_1/environment/pull_bucket.py +8 -3
- tasks/0000_804_804467_qa_1/task.toml +8 -4
- tasks/0000_804_804467_qa_3/environment/bootstrap.sh +0 -17
- tasks/0000_804_804467_qa_3/environment/pull_bucket.py +8 -3
- tasks/0000_804_804467_qa_3/task.toml +8 -4
- tasks/0000_806_806826_qa_3/environment/bootstrap.sh +0 -17
- tasks/0000_806_806826_qa_3/environment/pull_bucket.py +8 -3
- tasks/0000_806_806826_qa_3/task.toml +8 -4
- tasks/0000_849_849952_qa_4/environment/bootstrap.sh +0 -17
- tasks/0000_849_849952_qa_4/environment/pull_bucket.py +8 -3
- tasks/0000_849_849952_qa_4/task.toml +8 -4
- tasks/0000_886_886039_qa_2/environment/bootstrap.sh +0 -17
README.md
CHANGED
|
@@ -41,8 +41,8 @@ real dataset and a question, and asks it to explore the data, compute the answer
|
|
| 41 |
Every answer is checked deterministically.
|
| 42 |
|
| 43 |
|
| 44 |
-
Packaged in [Harbor](https://github.com/
|
| 45 |
-
agentic environment:
|
| 46 |
|
| 47 |
## What's inside
|
| 48 |
|
|
@@ -55,7 +55,7 @@ agentic environment: a standard Python image, its own data, and its own verifier
|
|
| 55 |
tasks/<task_id>/
|
| 56 |
task.toml # metadata, the question, the gold answer, grading tolerances
|
| 57 |
instruction.md # the prompt the agent sees
|
| 58 |
-
environment/ #
|
| 59 |
tests/ # grader.py (deterministic) + test.sh
|
| 60 |
registry.json # the suite manifest
|
| 61 |
manifest.parquet # one row per task, for filtering without walking the tree
|
|
@@ -70,52 +70,6 @@ pip install "openenv[harbor]" # tested with openenv 0.6.0, needs Python 3.12+
|
|
| 70 |
The `[harbor]` extra is what brings in the sandboxes. A plain `pip install openenv` gives you
|
| 71 |
the CLI but nothing to run a task in. `--sandbox e2b` also needs `E2B_API_KEY` set.
|
| 72 |
|
| 73 |
-
## Runtime setup without a custom image
|
| 74 |
-
|
| 75 |
-
Each `task.toml` declares the same digest-pinned Docker Official Image,
|
| 76 |
-
`python:3.12-slim-trixie`, and `workdir = "/workdir"`. There is no task-specific
|
| 77 |
-
image to build or publish. Use Harbor **0.25.0 or newer** with a backend that supports
|
| 78 |
-
prebuilt images, uploading `environment/`, and pre-agent healthchecks.
|
| 79 |
-
|
| 80 |
-
Harbor uploads `environment/` into `/workdir`, then the task's healthcheck runs
|
| 81 |
-
`bash /workdir/bootstrap.sh` **before agent setup**. The script installs curl/git
|
| 82 |
-
and the pinned Python dependencies, creates the input directory, and downloads
|
| 83 |
-
that task's bucket prefix. Setup needs package/data network access and permission
|
| 84 |
-
to install system packages. The Python requirements were captured from
|
| 85 |
-
`savatar101/env-data-agent-train@sha256:7b3f7e22780b431ce0d43717dcef6875cde84baeee824cc87e968374d62d3470`
|
| 86 |
-
to preserve the existing package versions.
|
| 87 |
-
|
| 88 |
-
The HF Sandbox backend can now use the original dataset directly:
|
| 89 |
-
|
| 90 |
-
```bash
|
| 91 |
-
openenv harbor rollout \
|
| 92 |
-
--dataset FineEnvs/SmolDataEnvs-harbor-train \
|
| 93 |
-
--llm-url http://127.0.0.1:8000/v1 --model <your-model> \
|
| 94 |
-
--harness opencode --sandbox hf-sandbox --task-index 0
|
| 95 |
-
```
|
| 96 |
-
|
| 97 |
-
Set `HF_TOKEN` on the server for HF Sandbox and bucket access. A model running in
|
| 98 |
-
a remote sandbox also needs a reachable capture proxy, as in the usual Harbor
|
| 99 |
-
deployment. This changes task provisioning; it does not change model serving.
|
| 100 |
-
|
| 101 |
-
Keep `environment/` free of `Dockerfile` and `docker-compose.yaml`: Harbor skips
|
| 102 |
-
automatic setup-file upload when either exists. `TAR_OPTIONS=--no-same-owner` in
|
| 103 |
-
the task environment prevents GNU tar from restoring archive ownership during
|
| 104 |
-
HF Sandbox uploads. Bash and tar are already present in the standard base.
|
| 105 |
-
|
| 106 |
-
Dependencies are installed once per sandbox, so cold startup is slower than a
|
| 107 |
-
prebuilt environment. Setup has a 600-second timeout and fails before the agent
|
| 108 |
-
starts if installation or data download fails. Repeated healthchecks reuse the
|
| 109 |
-
dependency installation but finish the complete data pull, including after an
|
| 110 |
-
interrupted download. If using another base image, retain Bash/tar, installation
|
| 111 |
-
permissions, and the task dependencies; changing only `docker_image` is not enough.
|
| 112 |
-
|
| 113 |
-
Offline regression checks:
|
| 114 |
-
|
| 115 |
-
```bash
|
| 116 |
-
python3 -m unittest discover -s tests -v
|
| 117 |
-
```
|
| 118 |
-
|
| 119 |
## Serve it
|
| 120 |
|
| 121 |
```bash
|
|
|
|
| 41 |
Every answer is checked deterministically.
|
| 42 |
|
| 43 |
|
| 44 |
+
Packaged in [Harbor](https://github.com/huggingface/OpenEnv) format, so each task is a ready-made
|
| 45 |
+
agentic environment: its own container, its own data, its own verifier.
|
| 46 |
|
| 47 |
## What's inside
|
| 48 |
|
|
|
|
| 55 |
tasks/<task_id>/
|
| 56 |
task.toml # metadata, the question, the gold answer, grading tolerances
|
| 57 |
instruction.md # the prompt the agent sees
|
| 58 |
+
environment/ # Dockerfile (shared base image) + the data-pull hook
|
| 59 |
tests/ # grader.py (deterministic) + test.sh
|
| 60 |
registry.json # the suite manifest
|
| 61 |
manifest.parquet # one row per task, for filtering without walking the tree
|
|
|
|
| 70 |
The `[harbor]` extra is what brings in the sandboxes. A plain `pip install openenv` gives you
|
| 71 |
the CLI but nothing to run a task in. `--sandbox e2b` also needs `E2B_API_KEY` set.
|
| 72 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 73 |
## Serve it
|
| 74 |
|
| 75 |
```bash
|
tasks/0000_324_324276_qa_3/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_324_324276_qa_3/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_324_324276_qa_3/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_369_369503_qa_1/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_369_369503_qa_1/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_369_369503_qa_1/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_455_455459_qa_4/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_455_455459_qa_4/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_455_455459_qa_4/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_465_465850_qa_5/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_465_465850_qa_5/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_465_465850_qa_5/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_526_526258_qa_2/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_526_526258_qa_2/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_526_526258_qa_2/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_539_539873_qa_3/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_539_539873_qa_3/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_539_539873_qa_3/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_582_582934_qa_4/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_582_582934_qa_4/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_582_582934_qa_4/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_587_587336_qa_5/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_587_587336_qa_5/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_587_587336_qa_5/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_641_641256_qa_1/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_641_641256_qa_1/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_641_641256_qa_1/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_656_656399_qa_2/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_656_656399_qa_2/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_656_656399_qa_2/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_767_767688_qa_4/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_767_767688_qa_4/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_767_767688_qa_4/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_780_780974_qa_4/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_780_780974_qa_4/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_780_780974_qa_4/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_804_804467_qa_1/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_804_804467_qa_1/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_804_804467_qa_1/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_804_804467_qa_3/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_804_804467_qa_3/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_804_804467_qa_3/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_806_806826_qa_3/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_806_806826_qa_3/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_806_806826_qa_3/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_849_849952_qa_4/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tasks/0000_849_849952_qa_4/environment/pull_bucket.py
CHANGED
|
@@ -1,8 +1,8 @@
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
-
Invoked by
|
| 4 |
-
|
| 5 |
-
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
@@ -18,6 +18,11 @@ def main() -> int:
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
targets = [
|
| 22 |
(it.path, str(dest / Path(it.path).name))
|
| 23 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
|
|
|
| 1 |
"""Pull this task's bucket prefix into /home/user/input/.
|
| 2 |
|
| 3 |
+
Invoked by Harbor's [environment.healthcheck] command (declared in task.toml)
|
| 4 |
+
— runs after container start, before the agent. Idempotent: skips work if
|
| 5 |
+
files are already present from a prior pull.
|
| 6 |
"""
|
| 7 |
|
| 8 |
import os
|
|
|
|
| 18 |
dest = Path("/home/user/input")
|
| 19 |
dest.mkdir(parents=True, exist_ok=True)
|
| 20 |
|
| 21 |
+
existing = [p for p in dest.iterdir() if p.is_file()]
|
| 22 |
+
if existing:
|
| 23 |
+
print(f"[pull_bucket] {dest}/ already has {len(existing)} file(s); skipping", flush=True)
|
| 24 |
+
return 0
|
| 25 |
+
|
| 26 |
targets = [
|
| 27 |
(it.path, str(dest / Path(it.path).name))
|
| 28 |
for it in list_bucket_tree(bucket, prefix=prefix, recursive=True)
|
tasks/0000_849_849952_qa_4/task.toml
CHANGED
|
@@ -30,11 +30,15 @@ gpus = 0
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
-
#
|
| 34 |
-
# Install the pinned dependencies and pull this task's bucket prefix before
|
| 35 |
-
# agent setup. No task-specific container build is needed.
|
| 36 |
[environment.healthcheck]
|
| 37 |
-
command =
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 38 |
interval_sec = 2.0
|
| 39 |
timeout_sec = 600.0
|
| 40 |
start_period_sec = 0.0
|
|
|
|
| 30 |
allow_internet = true
|
| 31 |
mcp_servers = []
|
| 32 |
|
| 33 |
+
# Install dependencies and pull task data before agent setup.
|
|
|
|
|
|
|
| 34 |
[environment.healthcheck]
|
| 35 |
+
command = '''
|
| 36 |
+
apt-get update &&
|
| 37 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl git &&
|
| 38 |
+
python3 -m pip install --no-cache-dir -r /workdir/requirements.txt &&
|
| 39 |
+
python3 /workdir/pull_bucket.py &&
|
| 40 |
+
test -n "$(ls /home/user/input)"
|
| 41 |
+
'''
|
| 42 |
interval_sec = 2.0
|
| 43 |
timeout_sec = 600.0
|
| 44 |
start_period_sec = 0.0
|
tasks/0000_886_886039_qa_2/environment/bootstrap.sh
DELETED
|
@@ -1,17 +0,0 @@
|
|
| 1 |
-
#!/usr/bin/env bash
|
| 2 |
-
set -euo pipefail
|
| 3 |
-
cd "$(dirname "$0")"
|
| 4 |
-
|
| 5 |
-
# Harbor uploads this directory before the pre-agent healthcheck runs.
|
| 6 |
-
if [ ! -f .bootstrap-complete ]; then
|
| 7 |
-
export DEBIAN_FRONTEND=noninteractive
|
| 8 |
-
apt-get update
|
| 9 |
-
apt-get install -y --no-install-recommends ca-certificates curl git
|
| 10 |
-
rm -rf /var/lib/apt/lists/*
|
| 11 |
-
python3 -m pip install --no-cache-dir --requirement requirements.txt
|
| 12 |
-
mkdir -p /home/user/input /workdir
|
| 13 |
-
touch .bootstrap-complete
|
| 14 |
-
fi
|
| 15 |
-
|
| 16 |
-
# Always finish the whole pull, including after an interrupted earlier attempt.
|
| 17 |
-
python3 pull_bucket.py
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|