Fix baseline patch capture before verifier (part 4)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/task_093/pre_artifacts.sh +24 -0
- tasks/task_093/task.toml +0 -4
- tasks/task_094/pre_artifacts.sh +24 -0
- tasks/task_094/task.toml +0 -4
- tasks/task_095/pre_artifacts.sh +24 -0
- tasks/task_095/task.toml +0 -4
- tasks/task_096/pre_artifacts.sh +24 -0
- tasks/task_096/task.toml +0 -4
- tasks/task_097/pre_artifacts.sh +24 -0
- tasks/task_097/task.toml +0 -4
- tasks/task_098/pre_artifacts.sh +24 -0
- tasks/task_098/task.toml +0 -4
- tasks/task_099/pre_artifacts.sh +24 -0
- tasks/task_099/task.toml +0 -4
- tasks/task_100/pre_artifacts.sh +24 -0
- tasks/task_100/task.toml +0 -4
- tasks/task_101/pre_artifacts.sh +24 -0
- tasks/task_101/task.toml +0 -4
- tasks/task_102/pre_artifacts.sh +24 -0
- tasks/task_102/task.toml +0 -4
- tasks/task_103/pre_artifacts.sh +24 -0
- tasks/task_103/task.toml +0 -4
- tasks/task_104/pre_artifacts.sh +24 -0
- tasks/task_104/task.toml +0 -4
- tasks/task_105/pre_artifacts.sh +24 -0
- tasks/task_105/task.toml +0 -4
- tasks/task_106/pre_artifacts.sh +24 -0
- tasks/task_106/task.toml +0 -4
- tasks/task_107/pre_artifacts.sh +24 -0
- tasks/task_107/task.toml +0 -4
- tasks/task_108/pre_artifacts.sh +24 -0
- tasks/task_108/task.toml +0 -4
- tasks/task_109/pre_artifacts.sh +24 -0
- tasks/task_109/task.toml +0 -4
- tasks/task_110/pre_artifacts.sh +24 -0
- tasks/task_110/task.toml +0 -4
- tasks/task_111/pre_artifacts.sh +24 -0
- tasks/task_111/task.toml +0 -4
- tasks/task_112/pre_artifacts.sh +24 -0
- tasks/task_112/task.toml +0 -4
- tasks/task_113/pre_artifacts.sh +24 -0
- tasks/task_113/task.toml +0 -4
- tasks/task_114/pre_artifacts.sh +24 -0
- tasks/task_114/task.toml +0 -4
- tasks/task_115/pre_artifacts.sh +24 -0
- tasks/task_115/task.toml +0 -4
- tasks/task_116/pre_artifacts.sh +24 -0
- tasks/task_116/task.toml +0 -4
- tasks/task_117/pre_artifacts.sh +24 -0
- tasks/task_117/task.toml +0 -4
tasks/task_093/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_093/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_093"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_093 && git config --global --add safe.directory /app/task_093 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_093"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_094/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_094/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_094"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_094 && git config --global --add safe.directory /app/task_094 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_094"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_095/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_095/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_095"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_095 && git config --global --add safe.directory /app/task_095 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_095"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_096/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_096/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_096"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_096 && git config --global --add safe.directory /app/task_096 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_096"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_097/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_097/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_097"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_097 && git config --global --add safe.directory /app/task_097 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_097"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_098/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_098/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_098"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_098 && git config --global --add safe.directory /app/task_098 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_098"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_099/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_099/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_099"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_099 && git config --global --add safe.directory /app/task_099 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_099"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_100/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_100/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_100"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_100 && git config --global --add safe.directory /app/task_100 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_100"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_101/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_101/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_101"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_101 && git config --global --add safe.directory /app/task_101 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_101"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_102/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_102/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_102"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_102 && git config --global --add safe.directory /app/task_102 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_102"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_103/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_103/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_103"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_103 && git config --global --add safe.directory /app/task_103 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_103"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_104/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_104/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_104"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_104 && git config --global --add safe.directory /app/task_104 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_104"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_105/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_105/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_105"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_105 && git config --global --add safe.directory /app/task_105 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_105"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_106/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_106/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_106"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_106 && git config --global --add safe.directory /app/task_106 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_106"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_107/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_107/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_107"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_107 && git config --global --add safe.directory /app/task_107 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_107"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_108/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_108/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_108"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_108 && git config --global --add safe.directory /app/task_108 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_108"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_109/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_109/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_109"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_109 && git config --global --add safe.directory /app/task_109 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_109"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_110/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_110/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_110"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_110 && git config --global --add safe.directory /app/task_110 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_110"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_111/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_111/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_111"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_111 && git config --global --add safe.directory /app/task_111 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_111"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_112/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_112/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_112"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_112 && git config --global --add safe.directory /app/task_112 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_112"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_113/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_113/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_113"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_113 && git config --global --add safe.directory /app/task_113 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_113"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_114/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_114/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_114"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_114 && git config --global --add safe.directory /app/task_114 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_114"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_115/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_115/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_115"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_115 && git config --global --add safe.directory /app/task_115 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_115"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_116/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_116/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_116"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_116 && git config --global --add safe.directory /app/task_116 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_116"
|
|
|
|
|
|
|
|
|
|
|
|
tasks/task_117/pre_artifacts.sh
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/sh
|
| 2 |
+
set -eu
|
| 3 |
+
|
| 4 |
+
# Pier runs this hook in the task workdir after the agent exits and before a
|
| 5 |
+
# separate verifier starts. Always create the artifact, including for a clean
|
| 6 |
+
# or timed-out agent run, so the verifier receives an explicit empty patch.
|
| 7 |
+
task_dir="${SCI_BENCH_TASK_DIR:-$PWD}"
|
| 8 |
+
artifacts_dir="${ENV_ARTIFACTS_PATH:-/logs/artifacts}"
|
| 9 |
+
patch="$artifacts_dir/model.patch"
|
| 10 |
+
|
| 11 |
+
mkdir -p "$artifacts_dir"
|
| 12 |
+
: > "$patch"
|
| 13 |
+
|
| 14 |
+
cd "$task_dir"
|
| 15 |
+
git config --global --add safe.directory "$task_dir"
|
| 16 |
+
roots="$(git rev-list --max-parents=0 --reverse HEAD)"
|
| 17 |
+
set -- $roots
|
| 18 |
+
if [ "$#" -ne 1 ]; then
|
| 19 |
+
echo "task repository must have exactly one baseline root commit" >&2
|
| 20 |
+
exit 1
|
| 21 |
+
fi
|
| 22 |
+
baseline="$1"
|
| 23 |
+
git add -A
|
| 24 |
+
git diff --cached --binary "$baseline" > "$patch"
|
tasks/task_117/task.toml
CHANGED
|
@@ -38,7 +38,3 @@ cpus = 2
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_117"
|
| 41 |
-
|
| 42 |
-
[[verifier.collect]]
|
| 43 |
-
command = "cd /app/task_117 && git config --global --add safe.directory /app/task_117 && baseline=$(git rev-list --max-parents=0 --reverse HEAD | head -n 1) && git add -A && git diff --cached --binary \"$baseline\" > /logs/artifacts/model.patch"
|
| 44 |
-
timeout_sec = 300.0
|
|
|
|
| 38 |
memory_mb = 8192
|
| 39 |
storage_mb = 20480
|
| 40 |
workdir = "/app/task_117"
|
|
|
|
|
|
|
|
|
|
|
|