Datasets:
commit (part 76)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +6 -0
- mailtutan--mailtutan.661a6be/environment/Dockerfile +1 -0
- mailtutan--mailtutan.661a6be/tests/Dockerfile +1 -0
- mainmatter--cargo-autoinherit.0bb5bee/environment/Dockerfile +60 -0
- mainmatter--cargo-autoinherit.0bb5bee/environment/download.sh +754 -0
- mainmatter--cargo-autoinherit.0bb5bee/environment/executable +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/environment/harbor_prepare_download_env.sh +37 -0
- mainmatter--cargo-autoinherit.0bb5bee/environment/workspace.tar.gz +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/instruction.md +98 -0
- mainmatter--cargo-autoinherit.0bb5bee/solution/solve.sh +33 -0
- mainmatter--cargo-autoinherit.0bb5bee/task.toml +69 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/Dockerfile +69 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/download.sh +754 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/executable +3 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/harbor_prepare_download_env.sh +37 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/programgym_evaluator.py +1201 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/programgym_task.json +1817 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/test.sh +82 -0
- mainmatter--cargo-autoinherit.0bb5bee/tests/workspace.tar.gz +3 -0
- majerle--lwrb.eb95819/environment/Dockerfile +1 -0
- majerle--lwrb.eb95819/tests/Dockerfile +1 -0
- majerle--lwshell.61f0a5b/environment/Dockerfile +89 -0
- majerle--lwshell.61f0a5b/environment/docker-compose.yaml +22 -0
- majerle--lwshell.61f0a5b/environment/download.sh +52 -0
- majerle--lwshell.61f0a5b/environment/executable +0 -0
- majerle--lwshell.61f0a5b/environment/harbor_configure_apt_mirror.sh +37 -0
- majerle--lwshell.61f0a5b/environment/harbor_configure_java_mirrors.sh +50 -0
- majerle--lwshell.61f0a5b/environment/harbor_prepare_download_env.sh +44 -0
- majerle--lwshell.61f0a5b/environment/workspace.tar.gz +3 -0
- majerle--lwshell.61f0a5b/instruction.md +98 -0
- majerle--lwshell.61f0a5b/solution/solve.sh +33 -0
- majerle--lwshell.61f0a5b/task.toml +69 -0
- majerle--lwshell.61f0a5b/tests/Dockerfile +103 -0
- majerle--lwshell.61f0a5b/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- majerle--lwshell.61f0a5b/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- majerle--lwshell.61f0a5b/tests/blobs/tests/generated_upstream.tar.gz +3 -0
- majerle--lwshell.61f0a5b/tests/docker-compose.yaml +22 -0
- majerle--lwshell.61f0a5b/tests/download.sh +52 -0
- majerle--lwshell.61f0a5b/tests/executable +0 -0
- majerle--lwshell.61f0a5b/tests/harbor_configure_apt_mirror.sh +37 -0
- majerle--lwshell.61f0a5b/tests/harbor_configure_java_mirrors.sh +50 -0
- majerle--lwshell.61f0a5b/tests/harbor_prepare_download_env.sh +44 -0
- majerle--lwshell.61f0a5b/tests/programgym_evaluator.py +1201 -0
- majerle--lwshell.61f0a5b/tests/programgym_task.json +449 -0
- majerle--lwshell.61f0a5b/tests/test.sh +82 -0
- majerle--lwshell.61f0a5b/tests/workspace.tar.gz +3 -0
- makew0rld--didder.408a18a/environment/Dockerfile +98 -0
.gitattributes
CHANGED
|
@@ -3426,3 +3426,9 @@ m-manu--go-find-duplicates.cd928ba/environment/executable filter=lfs diff=lfs me
|
|
| 3426 |
m-manu--go-find-duplicates.cd928ba/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3427 |
maciejczyzewski--libchaos.4412a89/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3428 |
maciejczyzewski--libchaos.4412a89/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3426 |
m-manu--go-find-duplicates.cd928ba/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3427 |
maciejczyzewski--libchaos.4412a89/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3428 |
maciejczyzewski--libchaos.4412a89/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3429 |
+
mainmatter--cargo-autoinherit.0bb5bee/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3430 |
+
mainmatter--cargo-autoinherit.0bb5bee/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3431 |
+
makew0rld--didder.408a18a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3432 |
+
makew0rld--didder.408a18a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3433 |
+
makew0rld--dither.6055917/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3434 |
+
makew0rld--dither.6055917/tests/executable filter=lfs diff=lfs merge=lfs -text
|
mailtutan--mailtutan.661a6be/environment/Dockerfile
CHANGED
|
@@ -57,3 +57,4 @@ RUN mkdir -p /home/agent \
|
|
| 57 |
&& chmod 111 /workspace/executable
|
| 58 |
ENV HOME=/home/agent
|
| 59 |
WORKDIR /workspace
|
|
|
|
|
|
| 57 |
&& chmod 111 /workspace/executable
|
| 58 |
ENV HOME=/home/agent
|
| 59 |
WORKDIR /workspace
|
| 60 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
mailtutan--mailtutan.661a6be/tests/Dockerfile
CHANGED
|
@@ -66,3 +66,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 66 |
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
COPY blobs/ /tests/blobs/
|
| 68 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 66 |
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
COPY blobs/ /tests/blobs/
|
| 68 |
RUN chmod +x /tests/test.sh
|
| 69 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
mainmatter--cargo-autoinherit.0bb5bee/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 50 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 51 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 52 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 53 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 54 |
+
RUN mkdir -p /home/agent \
|
| 55 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 56 |
+
&& chown agent:agent /workspace/executable \
|
| 57 |
+
&& chmod 111 /workspace/executable
|
| 58 |
+
ENV HOME=/home/agent
|
| 59 |
+
WORKDIR /workspace
|
| 60 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
mainmatter--cargo-autoinherit.0bb5bee/environment/download.sh
ADDED
|
@@ -0,0 +1,754 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh — ProgramGym networked dependency-prefetch stage for
|
| 4 |
+
# mainmatter/cargo-autoinherit (a Cargo subcommand binary).
|
| 5 |
+
#
|
| 6 |
+
# This file is intended to be *sourced* (not executed) from the repository root:
|
| 7 |
+
# source /source_ro/download.sh
|
| 8 |
+
#
|
| 9 |
+
# It must be standalone: it must NOT read any repository file. All dependency
|
| 10 |
+
# information (Cargo manifest + pinned Cargo.lock) is embedded inline below. It
|
| 11 |
+
# only populates the offline cargo registry cache; it does not build or test
|
| 12 |
+
# anything.
|
| 13 |
+
#
|
| 14 |
+
# No `exit` in normal control flow (source-safe). Failures are surfaced by the
|
| 15 |
+
# `set -e`-style guard implemented via an explicit branch.
|
| 16 |
+
|
| 17 |
+
set -eu
|
| 18 |
+
|
| 19 |
+
# Guard: download.sh must be sourced, never executed. When sourced,
|
| 20 |
+
# ${BASH_SOURCE[0]} (this file) differs from $0 (the parent shell); when
|
| 21 |
+
# executed directly they are equal and we abort.
|
| 22 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 23 |
+
echo "download.sh must be sourced, not executed: source ./download.sh" >&2
|
| 24 |
+
exit 2
|
| 25 |
+
fi
|
| 26 |
+
|
| 27 |
+
# ---------------------------------------------------------------------------
|
| 28 |
+
# Working area for the generated (temporary) Cargo project.
|
| 29 |
+
# ---------------------------------------------------------------------------
|
| 30 |
+
FETCH_WORKDIR="$(mktemp -d)"
|
| 31 |
+
mkdir -p "$FETCH_WORKDIR/src"
|
| 32 |
+
|
| 33 |
+
# Cargo home: default ~/.cargo is fine in the download stage.
|
| 34 |
+
export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
| 35 |
+
|
| 36 |
+
# ---------------------------------------------------------------------------
|
| 37 |
+
# 1. Write the generated Cargo manifest (mirrors the repository's direct
|
| 38 |
+
# dependencies exactly).
|
| 39 |
+
# ---------------------------------------------------------------------------
|
| 40 |
+
cat > "$FETCH_WORKDIR/Cargo.toml" <<'TOML'
|
| 41 |
+
[package]
|
| 42 |
+
name = "cargo-autoinherit"
|
| 43 |
+
version = "0.1.6"
|
| 44 |
+
edition = "2021"
|
| 45 |
+
|
| 46 |
+
[dependencies]
|
| 47 |
+
anyhow = "1.0.80"
|
| 48 |
+
clap = { version = "4", features = ["derive"] }
|
| 49 |
+
guppy = "0.17.5"
|
| 50 |
+
fs-err = "2.11.0"
|
| 51 |
+
cargo-manifest = "0.19.1"
|
| 52 |
+
toml = "0.8.10"
|
| 53 |
+
semver = "1.0.22"
|
| 54 |
+
toml_edit = "0.22.6"
|
| 55 |
+
pathdiff = "0.2.1"
|
| 56 |
+
TOML
|
| 57 |
+
|
| 58 |
+
# ---------------------------------------------------------------------------
|
| 59 |
+
# 2. Write stub source files so the generated manifest resolves cleanly under
|
| 60 |
+
# `cargo fetch` (convention-based lib + bin targets).
|
| 61 |
+
# ---------------------------------------------------------------------------
|
| 62 |
+
cat > "$FETCH_WORKDIR/src/lib.rs" <<'EOF'
|
| 63 |
+
// Stub generated by download.sh purely so `cargo fetch` can resolve the
|
| 64 |
+
// generated manifest; download.sh performs no compilation.
|
| 65 |
+
EOF
|
| 66 |
+
|
| 67 |
+
cat > "$FETCH_WORKDIR/src/main.rs" <<'EOF'
|
| 68 |
+
fn main() {}
|
| 69 |
+
EOF
|
| 70 |
+
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
# 3. Write the pinned Cargo.lock inline so the versions fetched exactly match
|
| 73 |
+
# the ones the offline build resolves from the repository's real lockfile.
|
| 74 |
+
# ---------------------------------------------------------------------------
|
| 75 |
+
cat > "$FETCH_WORKDIR/Cargo.lock" <<'LOCK'
|
| 76 |
+
# This file is automatically @generated by Cargo.
|
| 77 |
+
# It is not intended for manual editing.
|
| 78 |
+
version = 4
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "ahash"
|
| 82 |
+
version = "0.8.11"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
|
| 85 |
+
dependencies = [
|
| 86 |
+
"cfg-if",
|
| 87 |
+
"getrandom",
|
| 88 |
+
"once_cell",
|
| 89 |
+
"version_check",
|
| 90 |
+
"zerocopy",
|
| 91 |
+
]
|
| 92 |
+
|
| 93 |
+
[[package]]
|
| 94 |
+
name = "anstream"
|
| 95 |
+
version = "0.6.13"
|
| 96 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 97 |
+
checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb"
|
| 98 |
+
dependencies = [
|
| 99 |
+
"anstyle",
|
| 100 |
+
"anstyle-parse",
|
| 101 |
+
"anstyle-query",
|
| 102 |
+
"anstyle-wincon",
|
| 103 |
+
"colorchoice",
|
| 104 |
+
"utf8parse",
|
| 105 |
+
]
|
| 106 |
+
|
| 107 |
+
[[package]]
|
| 108 |
+
name = "anstyle"
|
| 109 |
+
version = "1.0.6"
|
| 110 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 111 |
+
checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
|
| 112 |
+
|
| 113 |
+
[[package]]
|
| 114 |
+
name = "anstyle-parse"
|
| 115 |
+
version = "0.2.3"
|
| 116 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 117 |
+
checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
|
| 118 |
+
dependencies = [
|
| 119 |
+
"utf8parse",
|
| 120 |
+
]
|
| 121 |
+
|
| 122 |
+
[[package]]
|
| 123 |
+
name = "anstyle-query"
|
| 124 |
+
version = "1.0.2"
|
| 125 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 126 |
+
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
|
| 127 |
+
dependencies = [
|
| 128 |
+
"windows-sys",
|
| 129 |
+
]
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "anstyle-wincon"
|
| 133 |
+
version = "3.0.2"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"anstyle",
|
| 138 |
+
"windows-sys",
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
[[package]]
|
| 142 |
+
name = "anyhow"
|
| 143 |
+
version = "1.0.81"
|
| 144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 145 |
+
checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247"
|
| 146 |
+
|
| 147 |
+
[[package]]
|
| 148 |
+
name = "autocfg"
|
| 149 |
+
version = "1.1.0"
|
| 150 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 151 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 152 |
+
|
| 153 |
+
[[package]]
|
| 154 |
+
name = "camino"
|
| 155 |
+
version = "1.1.6"
|
| 156 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 157 |
+
checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c"
|
| 158 |
+
dependencies = [
|
| 159 |
+
"serde",
|
| 160 |
+
]
|
| 161 |
+
|
| 162 |
+
[[package]]
|
| 163 |
+
name = "cargo-autoinherit"
|
| 164 |
+
version = "0.1.6"
|
| 165 |
+
dependencies = [
|
| 166 |
+
"anyhow",
|
| 167 |
+
"cargo-manifest",
|
| 168 |
+
"clap",
|
| 169 |
+
"fs-err",
|
| 170 |
+
"guppy",
|
| 171 |
+
"pathdiff",
|
| 172 |
+
"semver",
|
| 173 |
+
"toml",
|
| 174 |
+
"toml_edit",
|
| 175 |
+
]
|
| 176 |
+
|
| 177 |
+
[[package]]
|
| 178 |
+
name = "cargo-manifest"
|
| 179 |
+
version = "0.19.1"
|
| 180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 181 |
+
checksum = "a1d8af896b707212cd0e99c112a78c9497dd32994192a463ed2f7419d29bd8c6"
|
| 182 |
+
dependencies = [
|
| 183 |
+
"serde",
|
| 184 |
+
"thiserror 2.0.11",
|
| 185 |
+
"toml",
|
| 186 |
+
]
|
| 187 |
+
|
| 188 |
+
[[package]]
|
| 189 |
+
name = "cargo-platform"
|
| 190 |
+
version = "0.1.7"
|
| 191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 192 |
+
checksum = "694c8807f2ae16faecc43dc17d74b3eb042482789fd0eb64b39a2e04e087053f"
|
| 193 |
+
dependencies = [
|
| 194 |
+
"serde",
|
| 195 |
+
]
|
| 196 |
+
|
| 197 |
+
[[package]]
|
| 198 |
+
name = "cargo_metadata"
|
| 199 |
+
version = "0.18.1"
|
| 200 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 201 |
+
checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037"
|
| 202 |
+
dependencies = [
|
| 203 |
+
"camino",
|
| 204 |
+
"cargo-platform",
|
| 205 |
+
"semver",
|
| 206 |
+
"serde",
|
| 207 |
+
"serde_json",
|
| 208 |
+
"thiserror 1.0.58",
|
| 209 |
+
]
|
| 210 |
+
|
| 211 |
+
[[package]]
|
| 212 |
+
name = "cfg-expr"
|
| 213 |
+
version = "0.15.7"
|
| 214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 215 |
+
checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d"
|
| 216 |
+
dependencies = [
|
| 217 |
+
"smallvec",
|
| 218 |
+
"target-lexicon",
|
| 219 |
+
]
|
| 220 |
+
|
| 221 |
+
[[package]]
|
| 222 |
+
name = "cfg-if"
|
| 223 |
+
version = "1.0.0"
|
| 224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 225 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 226 |
+
|
| 227 |
+
[[package]]
|
| 228 |
+
name = "clap"
|
| 229 |
+
version = "4.5.4"
|
| 230 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 231 |
+
checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0"
|
| 232 |
+
dependencies = [
|
| 233 |
+
"clap_builder",
|
| 234 |
+
"clap_derive",
|
| 235 |
+
]
|
| 236 |
+
|
| 237 |
+
[[package]]
|
| 238 |
+
name = "clap_builder"
|
| 239 |
+
version = "4.5.2"
|
| 240 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 241 |
+
checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4"
|
| 242 |
+
dependencies = [
|
| 243 |
+
"anstream",
|
| 244 |
+
"anstyle",
|
| 245 |
+
"clap_lex",
|
| 246 |
+
"strsim",
|
| 247 |
+
]
|
| 248 |
+
|
| 249 |
+
[[package]]
|
| 250 |
+
name = "clap_derive"
|
| 251 |
+
version = "4.5.4"
|
| 252 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 253 |
+
checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64"
|
| 254 |
+
dependencies = [
|
| 255 |
+
"heck",
|
| 256 |
+
"proc-macro2",
|
| 257 |
+
"quote",
|
| 258 |
+
"syn",
|
| 259 |
+
]
|
| 260 |
+
|
| 261 |
+
[[package]]
|
| 262 |
+
name = "clap_lex"
|
| 263 |
+
version = "0.7.0"
|
| 264 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 265 |
+
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
|
| 266 |
+
|
| 267 |
+
[[package]]
|
| 268 |
+
name = "colorchoice"
|
| 269 |
+
version = "1.0.0"
|
| 270 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 271 |
+
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
|
| 272 |
+
|
| 273 |
+
[[package]]
|
| 274 |
+
name = "debug-ignore"
|
| 275 |
+
version = "1.0.5"
|
| 276 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 277 |
+
checksum = "ffe7ed1d93f4553003e20b629abe9085e1e81b1429520f897f8f8860bc6dfc21"
|
| 278 |
+
|
| 279 |
+
[[package]]
|
| 280 |
+
name = "either"
|
| 281 |
+
version = "1.10.0"
|
| 282 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 283 |
+
checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
|
| 284 |
+
|
| 285 |
+
[[package]]
|
| 286 |
+
name = "equivalent"
|
| 287 |
+
version = "1.0.1"
|
| 288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 289 |
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
| 290 |
+
|
| 291 |
+
[[package]]
|
| 292 |
+
name = "fixedbitset"
|
| 293 |
+
version = "0.4.2"
|
| 294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 295 |
+
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
| 296 |
+
|
| 297 |
+
[[package]]
|
| 298 |
+
name = "fs-err"
|
| 299 |
+
version = "2.11.0"
|
| 300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 301 |
+
checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41"
|
| 302 |
+
dependencies = [
|
| 303 |
+
"autocfg",
|
| 304 |
+
]
|
| 305 |
+
|
| 306 |
+
[[package]]
|
| 307 |
+
name = "getrandom"
|
| 308 |
+
version = "0.2.12"
|
| 309 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 310 |
+
checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5"
|
| 311 |
+
dependencies = [
|
| 312 |
+
"cfg-if",
|
| 313 |
+
"libc",
|
| 314 |
+
"wasi",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "guppy"
|
| 319 |
+
version = "0.17.5"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "34e99a7734579b834a076ef11789783c153c6eb5fb3520ed15bc41f483f0f317"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"ahash",
|
| 324 |
+
"camino",
|
| 325 |
+
"cargo_metadata",
|
| 326 |
+
"cfg-if",
|
| 327 |
+
"debug-ignore",
|
| 328 |
+
"fixedbitset",
|
| 329 |
+
"guppy-workspace-hack",
|
| 330 |
+
"indexmap",
|
| 331 |
+
"itertools",
|
| 332 |
+
"nested",
|
| 333 |
+
"once_cell",
|
| 334 |
+
"pathdiff",
|
| 335 |
+
"petgraph",
|
| 336 |
+
"semver",
|
| 337 |
+
"serde",
|
| 338 |
+
"serde_json",
|
| 339 |
+
"smallvec",
|
| 340 |
+
"static_assertions",
|
| 341 |
+
"target-spec",
|
| 342 |
+
]
|
| 343 |
+
|
| 344 |
+
[[package]]
|
| 345 |
+
name = "guppy-workspace-hack"
|
| 346 |
+
version = "0.1.0"
|
| 347 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 348 |
+
checksum = "92620684d99f750bae383ecb3be3748142d6095760afd5cbcf2261e9a279d780"
|
| 349 |
+
|
| 350 |
+
[[package]]
|
| 351 |
+
name = "hashbrown"
|
| 352 |
+
version = "0.14.3"
|
| 353 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 354 |
+
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
| 355 |
+
|
| 356 |
+
[[package]]
|
| 357 |
+
name = "heck"
|
| 358 |
+
version = "0.5.0"
|
| 359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 360 |
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
| 361 |
+
|
| 362 |
+
[[package]]
|
| 363 |
+
name = "indexmap"
|
| 364 |
+
version = "2.2.5"
|
| 365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 366 |
+
checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4"
|
| 367 |
+
dependencies = [
|
| 368 |
+
"equivalent",
|
| 369 |
+
"hashbrown",
|
| 370 |
+
]
|
| 371 |
+
|
| 372 |
+
[[package]]
|
| 373 |
+
name = "itertools"
|
| 374 |
+
version = "0.12.1"
|
| 375 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 376 |
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
| 377 |
+
dependencies = [
|
| 378 |
+
"either",
|
| 379 |
+
]
|
| 380 |
+
|
| 381 |
+
[[package]]
|
| 382 |
+
name = "itoa"
|
| 383 |
+
version = "1.0.10"
|
| 384 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 385 |
+
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
| 386 |
+
|
| 387 |
+
[[package]]
|
| 388 |
+
name = "libc"
|
| 389 |
+
version = "0.2.153"
|
| 390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 391 |
+
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
| 392 |
+
|
| 393 |
+
[[package]]
|
| 394 |
+
name = "memchr"
|
| 395 |
+
version = "2.7.1"
|
| 396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 397 |
+
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
| 398 |
+
|
| 399 |
+
[[package]]
|
| 400 |
+
name = "nested"
|
| 401 |
+
version = "0.1.1"
|
| 402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 403 |
+
checksum = "ca2b420f638f07fe83056b55ea190bb815f609ec5a35e7017884a10f78839c9e"
|
| 404 |
+
|
| 405 |
+
[[package]]
|
| 406 |
+
name = "once_cell"
|
| 407 |
+
version = "1.19.0"
|
| 408 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 409 |
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
| 410 |
+
|
| 411 |
+
[[package]]
|
| 412 |
+
name = "pathdiff"
|
| 413 |
+
version = "0.2.1"
|
| 414 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 415 |
+
checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"
|
| 416 |
+
dependencies = [
|
| 417 |
+
"camino",
|
| 418 |
+
]
|
| 419 |
+
|
| 420 |
+
[[package]]
|
| 421 |
+
name = "petgraph"
|
| 422 |
+
version = "0.6.4"
|
| 423 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 424 |
+
checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9"
|
| 425 |
+
dependencies = [
|
| 426 |
+
"fixedbitset",
|
| 427 |
+
"indexmap",
|
| 428 |
+
]
|
| 429 |
+
|
| 430 |
+
[[package]]
|
| 431 |
+
name = "proc-macro2"
|
| 432 |
+
version = "1.0.93"
|
| 433 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 434 |
+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
|
| 435 |
+
dependencies = [
|
| 436 |
+
"unicode-ident",
|
| 437 |
+
]
|
| 438 |
+
|
| 439 |
+
[[package]]
|
| 440 |
+
name = "quote"
|
| 441 |
+
version = "1.0.35"
|
| 442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 443 |
+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
| 444 |
+
dependencies = [
|
| 445 |
+
"proc-macro2",
|
| 446 |
+
]
|
| 447 |
+
|
| 448 |
+
[[package]]
|
| 449 |
+
name = "ryu"
|
| 450 |
+
version = "1.0.17"
|
| 451 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 452 |
+
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
|
| 453 |
+
|
| 454 |
+
[[package]]
|
| 455 |
+
name = "semver"
|
| 456 |
+
version = "1.0.22"
|
| 457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 458 |
+
checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
|
| 459 |
+
dependencies = [
|
| 460 |
+
"serde",
|
| 461 |
+
]
|
| 462 |
+
|
| 463 |
+
[[package]]
|
| 464 |
+
name = "serde"
|
| 465 |
+
version = "1.0.197"
|
| 466 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 467 |
+
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
|
| 468 |
+
dependencies = [
|
| 469 |
+
"serde_derive",
|
| 470 |
+
]
|
| 471 |
+
|
| 472 |
+
[[package]]
|
| 473 |
+
name = "serde_derive"
|
| 474 |
+
version = "1.0.197"
|
| 475 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 476 |
+
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
|
| 477 |
+
dependencies = [
|
| 478 |
+
"proc-macro2",
|
| 479 |
+
"quote",
|
| 480 |
+
"syn",
|
| 481 |
+
]
|
| 482 |
+
|
| 483 |
+
[[package]]
|
| 484 |
+
name = "serde_json"
|
| 485 |
+
version = "1.0.114"
|
| 486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 487 |
+
checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0"
|
| 488 |
+
dependencies = [
|
| 489 |
+
"itoa",
|
| 490 |
+
"ryu",
|
| 491 |
+
"serde",
|
| 492 |
+
]
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "serde_spanned"
|
| 496 |
+
version = "0.6.5"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"serde",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "smallvec"
|
| 505 |
+
version = "1.13.1"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
|
| 508 |
+
|
| 509 |
+
[[package]]
|
| 510 |
+
name = "static_assertions"
|
| 511 |
+
version = "1.1.0"
|
| 512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 513 |
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
| 514 |
+
|
| 515 |
+
[[package]]
|
| 516 |
+
name = "strsim"
|
| 517 |
+
version = "0.11.0"
|
| 518 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 519 |
+
checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01"
|
| 520 |
+
|
| 521 |
+
[[package]]
|
| 522 |
+
name = "syn"
|
| 523 |
+
version = "2.0.98"
|
| 524 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 525 |
+
checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
|
| 526 |
+
dependencies = [
|
| 527 |
+
"proc-macro2",
|
| 528 |
+
"quote",
|
| 529 |
+
"unicode-ident",
|
| 530 |
+
]
|
| 531 |
+
|
| 532 |
+
[[package]]
|
| 533 |
+
name = "target-lexicon"
|
| 534 |
+
version = "0.12.14"
|
| 535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 536 |
+
checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
|
| 537 |
+
|
| 538 |
+
[[package]]
|
| 539 |
+
name = "target-spec"
|
| 540 |
+
version = "3.1.0"
|
| 541 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 542 |
+
checksum = "36a8e795b1824524d13cdf04f73cf8b4f244ce86c96b4d2a83a6ca1a753d2752"
|
| 543 |
+
dependencies = [
|
| 544 |
+
"cfg-expr",
|
| 545 |
+
"guppy-workspace-hack",
|
| 546 |
+
"target-lexicon",
|
| 547 |
+
"unicode-ident",
|
| 548 |
+
]
|
| 549 |
+
|
| 550 |
+
[[package]]
|
| 551 |
+
name = "thiserror"
|
| 552 |
+
version = "1.0.58"
|
| 553 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 554 |
+
checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297"
|
| 555 |
+
dependencies = [
|
| 556 |
+
"thiserror-impl 1.0.58",
|
| 557 |
+
]
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "thiserror"
|
| 561 |
+
version = "2.0.11"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc"
|
| 564 |
+
dependencies = [
|
| 565 |
+
"thiserror-impl 2.0.11",
|
| 566 |
+
]
|
| 567 |
+
|
| 568 |
+
[[package]]
|
| 569 |
+
name = "thiserror-impl"
|
| 570 |
+
version = "1.0.58"
|
| 571 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 572 |
+
checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7"
|
| 573 |
+
dependencies = [
|
| 574 |
+
"proc-macro2",
|
| 575 |
+
"quote",
|
| 576 |
+
"syn",
|
| 577 |
+
]
|
| 578 |
+
|
| 579 |
+
[[package]]
|
| 580 |
+
name = "thiserror-impl"
|
| 581 |
+
version = "2.0.11"
|
| 582 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 583 |
+
checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2"
|
| 584 |
+
dependencies = [
|
| 585 |
+
"proc-macro2",
|
| 586 |
+
"quote",
|
| 587 |
+
"syn",
|
| 588 |
+
]
|
| 589 |
+
|
| 590 |
+
[[package]]
|
| 591 |
+
name = "toml"
|
| 592 |
+
version = "0.8.11"
|
| 593 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 594 |
+
checksum = "af06656561d28735e9c1cd63dfd57132c8155426aa6af24f36a00a351f88c48e"
|
| 595 |
+
dependencies = [
|
| 596 |
+
"indexmap",
|
| 597 |
+
"serde",
|
| 598 |
+
"serde_spanned",
|
| 599 |
+
"toml_datetime",
|
| 600 |
+
"toml_edit",
|
| 601 |
+
]
|
| 602 |
+
|
| 603 |
+
[[package]]
|
| 604 |
+
name = "toml_datetime"
|
| 605 |
+
version = "0.6.5"
|
| 606 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 607 |
+
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
|
| 608 |
+
dependencies = [
|
| 609 |
+
"serde",
|
| 610 |
+
]
|
| 611 |
+
|
| 612 |
+
[[package]]
|
| 613 |
+
name = "toml_edit"
|
| 614 |
+
version = "0.22.7"
|
| 615 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 616 |
+
checksum = "18769cd1cec395d70860ceb4d932812a0b4d06b1a4bb336745a4d21b9496e992"
|
| 617 |
+
dependencies = [
|
| 618 |
+
"indexmap",
|
| 619 |
+
"serde",
|
| 620 |
+
"serde_spanned",
|
| 621 |
+
"toml_datetime",
|
| 622 |
+
"winnow",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "unicode-ident"
|
| 627 |
+
version = "1.0.12"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
| 630 |
+
|
| 631 |
+
[[package]]
|
| 632 |
+
name = "utf8parse"
|
| 633 |
+
version = "0.2.1"
|
| 634 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 635 |
+
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
| 636 |
+
|
| 637 |
+
[[package]]
|
| 638 |
+
name = "version_check"
|
| 639 |
+
version = "0.9.4"
|
| 640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 641 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 642 |
+
|
| 643 |
+
[[package]]
|
| 644 |
+
name = "wasi"
|
| 645 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 647 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 648 |
+
|
| 649 |
+
[[package]]
|
| 650 |
+
name = "windows-sys"
|
| 651 |
+
version = "0.52.0"
|
| 652 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 653 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 654 |
+
dependencies = [
|
| 655 |
+
"windows-targets",
|
| 656 |
+
]
|
| 657 |
+
|
| 658 |
+
[[package]]
|
| 659 |
+
name = "windows-targets"
|
| 660 |
+
version = "0.52.4"
|
| 661 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 662 |
+
checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
|
| 663 |
+
dependencies = [
|
| 664 |
+
"windows_aarch64_gnullvm",
|
| 665 |
+
"windows_aarch64_msvc",
|
| 666 |
+
"windows_i686_gnu",
|
| 667 |
+
"windows_i686_msvc",
|
| 668 |
+
"windows_x86_64_gnu",
|
| 669 |
+
"windows_x86_64_gnullvm",
|
| 670 |
+
"windows_x86_64_msvc",
|
| 671 |
+
]
|
| 672 |
+
|
| 673 |
+
[[package]]
|
| 674 |
+
name = "windows_aarch64_gnullvm"
|
| 675 |
+
version = "0.52.4"
|
| 676 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 677 |
+
checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
|
| 678 |
+
|
| 679 |
+
[[package]]
|
| 680 |
+
name = "windows_aarch64_msvc"
|
| 681 |
+
version = "0.52.4"
|
| 682 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 683 |
+
checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
|
| 684 |
+
|
| 685 |
+
[[package]]
|
| 686 |
+
name = "windows_i686_gnu"
|
| 687 |
+
version = "0.52.4"
|
| 688 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 689 |
+
checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
|
| 690 |
+
|
| 691 |
+
[[package]]
|
| 692 |
+
name = "windows_i686_msvc"
|
| 693 |
+
version = "0.52.4"
|
| 694 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 695 |
+
checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
|
| 696 |
+
|
| 697 |
+
[[package]]
|
| 698 |
+
name = "windows_x86_64_gnu"
|
| 699 |
+
version = "0.52.4"
|
| 700 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 701 |
+
checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
|
| 702 |
+
|
| 703 |
+
[[package]]
|
| 704 |
+
name = "windows_x86_64_gnullvm"
|
| 705 |
+
version = "0.52.4"
|
| 706 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 707 |
+
checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
|
| 708 |
+
|
| 709 |
+
[[package]]
|
| 710 |
+
name = "windows_x86_64_msvc"
|
| 711 |
+
version = "0.52.4"
|
| 712 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 713 |
+
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
|
| 714 |
+
|
| 715 |
+
[[package]]
|
| 716 |
+
name = "winnow"
|
| 717 |
+
version = "0.6.5"
|
| 718 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 719 |
+
checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8"
|
| 720 |
+
dependencies = [
|
| 721 |
+
"memchr",
|
| 722 |
+
]
|
| 723 |
+
|
| 724 |
+
[[package]]
|
| 725 |
+
name = "zerocopy"
|
| 726 |
+
version = "0.7.32"
|
| 727 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 728 |
+
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
|
| 729 |
+
dependencies = [
|
| 730 |
+
"zerocopy-derive",
|
| 731 |
+
]
|
| 732 |
+
|
| 733 |
+
[[package]]
|
| 734 |
+
name = "zerocopy-derive"
|
| 735 |
+
version = "0.7.32"
|
| 736 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 737 |
+
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
|
| 738 |
+
dependencies = [
|
| 739 |
+
"proc-macro2",
|
| 740 |
+
"quote",
|
| 741 |
+
"syn",
|
| 742 |
+
]
|
| 743 |
+
LOCK
|
| 744 |
+
|
| 745 |
+
# ---------------------------------------------------------------------------
|
| 746 |
+
# 4. Prefetch every dependency declared by the generated manifest into the
|
| 747 |
+
# offline cargo registry cache. `--locked` guarantees the versions cached are
|
| 748 |
+
# exactly the ones pinned above (and pinned by the repository's real lock).
|
| 749 |
+
# Running from a mktemp dir with `--manifest-path` avoids the repo root and
|
| 750 |
+
# does not read any repository file.
|
| 751 |
+
# ---------------------------------------------------------------------------
|
| 752 |
+
cargo fetch --locked --manifest-path "$FETCH_WORKDIR/Cargo.toml"
|
| 753 |
+
|
| 754 |
+
echo "download.sh: cargo dependency prefetch complete."
|
mainmatter--cargo-autoinherit.0bb5bee/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1324aea7c4daa530ef27ecfe229eb82f6053a7ff93b33500c1500ea3bca061
|
| 3 |
+
size 3578920
|
mainmatter--cargo-autoinherit.0bb5bee/environment/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
command -v cargo
|
| 4 |
+
command -v rustc
|
| 5 |
+
command -v rustup
|
| 6 |
+
cd /workspace
|
| 7 |
+
set -a
|
| 8 |
+
source /tmp/programgym-download.sh
|
| 9 |
+
set +a
|
| 10 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 11 |
+
import os
|
| 12 |
+
import shlex
|
| 13 |
+
|
| 14 |
+
ignored = {
|
| 15 |
+
"ALL_PROXY",
|
| 16 |
+
"HTTP_PROXY",
|
| 17 |
+
"HTTPS_PROXY",
|
| 18 |
+
"NO_PROXY",
|
| 19 |
+
"OLDPWD",
|
| 20 |
+
"PIP_PROXY",
|
| 21 |
+
"PWD",
|
| 22 |
+
"SHLVL",
|
| 23 |
+
"_",
|
| 24 |
+
"all_proxy",
|
| 25 |
+
"http_proxy",
|
| 26 |
+
"https_proxy",
|
| 27 |
+
"no_proxy",
|
| 28 |
+
"pip_proxy",
|
| 29 |
+
}
|
| 30 |
+
for key in sorted(os.environ):
|
| 31 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 32 |
+
continue
|
| 33 |
+
value = os.environ[key]
|
| 34 |
+
if "\n" in value:
|
| 35 |
+
continue
|
| 36 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 37 |
+
PY
|
mainmatter--cargo-autoinherit.0bb5bee/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:939d482dd2d8ab03b16dee333b0f46110dcca8b7d5da9076e1249d3e2f4c60a8
|
| 3 |
+
size 6483
|
mainmatter--cargo-autoinherit.0bb5bee/instruction.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a helpful assistant that can interact with a computer.
|
| 2 |
+
|
| 3 |
+
This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
|
| 4 |
+
Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
|
| 5 |
+
You must figure out the behavior solely by running and interacting with the provided binary.
|
| 6 |
+
Writing original code based on observed behavior is the entire point of this benchmark.
|
| 7 |
+
|
| 8 |
+
Any approach that shortcuts this — finding existing source code, wrapping the binary,
|
| 9 |
+
or installing the original tool — does not count as a solution. It will be detected by an
|
| 10 |
+
automated judge, marked as a disqualification, and scored as a failure.
|
| 11 |
+
The trace will be posted to an online wall of shame.
|
| 12 |
+
|
| 13 |
+
<RULES>
|
| 14 |
+
## What is not allowed
|
| 15 |
+
|
| 16 |
+
### 1. Obtaining source code
|
| 17 |
+
|
| 18 |
+
The only source of truth about what the executable does is the executable itself and its
|
| 19 |
+
bundled documentation. You must not search the internet, package registries, or any external
|
| 20 |
+
source for information about this project's source code. Even if you recognize what the
|
| 21 |
+
executable is, you must reimplement it from behavioral observation alone.
|
| 22 |
+
|
| 23 |
+
This includes but is not limited to:
|
| 24 |
+
- Cloning or browsing the original GitHub repository, its forks, or mirrors
|
| 25 |
+
- Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
|
| 26 |
+
- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
|
| 27 |
+
- Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
|
| 28 |
+
- Searching the web for the project's source code or implementation details
|
| 29 |
+
|
| 30 |
+
### 2. Wrapping or reusing the original binary
|
| 31 |
+
|
| 32 |
+
Your submission must be a genuine reimplementation. The provided `./executable` is for
|
| 33 |
+
observation only — your final solution must not depend on it or any other pre-built version
|
| 34 |
+
of the same tool at runtime.
|
| 35 |
+
|
| 36 |
+
This includes but is not limited to:
|
| 37 |
+
- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
|
| 38 |
+
- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
|
| 39 |
+
- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
|
| 40 |
+
- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
|
| 41 |
+
- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
|
| 42 |
+
|
| 43 |
+
### 3. Binary analysis of the provided executable
|
| 44 |
+
|
| 45 |
+
All information about the provided `./executable` must be obtained by interacting with it
|
| 46 |
+
through its normal user interface (CLI flags, stdin/stdout, etc.).
|
| 47 |
+
- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
|
| 48 |
+
- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
|
| 49 |
+
|
| 50 |
+
Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
|
| 51 |
+
analysis tools on binaries that you produce yourself during development.
|
| 52 |
+
|
| 53 |
+
## What IS allowed
|
| 54 |
+
|
| 55 |
+
- Running the executable with any inputs, flags, and arguments to observe its behavior
|
| 56 |
+
- Reading any documentation files bundled in the workspace
|
| 57 |
+
</RULES>
|
| 58 |
+
|
| 59 |
+
## Task context
|
| 60 |
+
|
| 61 |
+
We want to write the source code for a given executable.
|
| 62 |
+
The executable is located at `./executable` in the workspace root.
|
| 63 |
+
|
| 64 |
+
You also have access to the existing documentation.
|
| 65 |
+
|
| 66 |
+
## Your task
|
| 67 |
+
|
| 68 |
+
Implement the source code to generate an executable of exactly identical behavior as the original.
|
| 69 |
+
|
| 70 |
+
No project-specific dependencies are pre-installed.
|
| 71 |
+
You do NOT have access to the internet.
|
| 72 |
+
**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
|
| 73 |
+
Finally, commit your changes.
|
| 74 |
+
|
| 75 |
+
Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
|
| 76 |
+
`compile.sh` should be executable and should install any dependencies needed to compile the executable.
|
| 77 |
+
If your compile.sh fails to compile on a fresh checkout, your task has failed.
|
| 78 |
+
|
| 79 |
+
## Important: This is a reverse-engineering benchmark
|
| 80 |
+
|
| 81 |
+
Your goal is to write original code from scratch that reproduces the executable's behavior.
|
| 82 |
+
The only way to learn what the executable does is to run it and read its bundled documentation.
|
| 83 |
+
|
| 84 |
+
Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
|
| 85 |
+
provided binary will be detected by an automated judge, disqualified, and scored as zero.
|
| 86 |
+
See the full rules in the system prompt above. Key points:
|
| 87 |
+
|
| 88 |
+
- Do NOT search the internet, clone repos, or download the project from any package registry
|
| 89 |
+
- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
|
| 90 |
+
- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
|
| 91 |
+
- You SHOULD extensively test the executable to understand its behavior before writing code.
|
| 92 |
+
If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
|
| 93 |
+
|
| 94 |
+
## Recommended Workflow
|
| 95 |
+
|
| 96 |
+
1. Explore all documentation files
|
| 97 |
+
2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
|
| 98 |
+
3. Write the source code to implement the behavior
|
mainmatter--cargo-autoinherit.0bb5bee/solution/solve.sh
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Oracle-only ceiling check. The reference is execute-only for normal agents;
|
| 3 |
+
# because the oracle runs as the owning `agent` user it can temporarily add read
|
| 4 |
+
# permission and encode the binary for Harbor's normal artifact handoff.
|
| 5 |
+
set -euo pipefail
|
| 6 |
+
test -f ./executable
|
| 7 |
+
chmod u+r ./executable
|
| 8 |
+
python3 - <<'PY'
|
| 9 |
+
import base64
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
Path(".programgym_oracle_reference").write_bytes(
|
| 13 |
+
base64.b64encode(Path("executable").read_bytes())
|
| 14 |
+
)
|
| 15 |
+
PY
|
| 16 |
+
chmod u-r ./executable
|
| 17 |
+
cat > compile.sh <<'EOF'
|
| 18 |
+
#!/usr/bin/env bash
|
| 19 |
+
set -euo pipefail
|
| 20 |
+
if [ -f ./.programgym_oracle_reference ]; then
|
| 21 |
+
python3 - <<'PY'
|
| 22 |
+
import base64
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
|
| 25 |
+
Path("executable").write_bytes(
|
| 26 |
+
base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
|
| 27 |
+
)
|
| 28 |
+
PY
|
| 29 |
+
fi
|
| 30 |
+
test -f ./executable
|
| 31 |
+
chmod +x ./executable
|
| 32 |
+
EOF
|
| 33 |
+
chmod +x compile.sh
|
mainmatter--cargo-autoinherit.0bb5bee/task.toml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
source = "ProgramGym"
|
| 3 |
+
artifacts = [
|
| 4 |
+
"/logs/verifier/programgym_eval.json",
|
| 5 |
+
"/logs/verifier/harbor_diagnostics.json",
|
| 6 |
+
"/logs/verifier/programgym_eval.log",
|
| 7 |
+
"/logs/verifier/reward.json",
|
| 8 |
+
"/logs/verifier/reward.txt",
|
| 9 |
+
# Keep agent/runtime state out of the submission handoff. In particular,
|
| 10 |
+
# Claude Code installs an absolute symlink under .local/bin; transferring it
|
| 11 |
+
# makes Python's safe tar extraction reject the entire workspace archive.
|
| 12 |
+
{ source = "/workspace", exclude = [
|
| 13 |
+
"executable",
|
| 14 |
+
".git",
|
| 15 |
+
".bashrc",
|
| 16 |
+
".cache",
|
| 17 |
+
".cc-switch",
|
| 18 |
+
".claude",
|
| 19 |
+
".local",
|
| 20 |
+
] },
|
| 21 |
+
]
|
| 22 |
+
|
| 23 |
+
[task]
|
| 24 |
+
name = "programgym/mainmatter--cargo-autoinherit.0bb5bee"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for mainmatter/cargo-autoinherit"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "mainmatter__cargo-autoinherit.0bb5bee"
|
| 32 |
+
repository = "mainmatter/cargo-autoinherit"
|
| 33 |
+
commit = "0bb5bee3fad1c0623cac1ca8dfeebc539099f75e"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.9283958522567137
|
| 37 |
+
test_branches = 3
|
| 38 |
+
test_count = 198
|
| 39 |
+
|
| 40 |
+
[agent]
|
| 41 |
+
timeout_sec = 14400
|
| 42 |
+
user = "agent"
|
| 43 |
+
network_mode = "allowlist"
|
| 44 |
+
allowed_hosts = ["api.anthropic.com", "api.openai.com"]
|
| 45 |
+
|
| 46 |
+
[verifier]
|
| 47 |
+
timeout_sec = 7200
|
| 48 |
+
user = "root"
|
| 49 |
+
environment_mode = "separate"
|
| 50 |
+
|
| 51 |
+
[verifier.env]
|
| 52 |
+
PROGRAMGYM_XDIST_WORKERS = "8"
|
| 53 |
+
|
| 54 |
+
[verifier.environment]
|
| 55 |
+
build_timeout_sec = 1800
|
| 56 |
+
cpus = 8
|
| 57 |
+
memory_mb = 16384
|
| 58 |
+
storage_mb = 30720
|
| 59 |
+
gpus = 0
|
| 60 |
+
workdir = "/workspace"
|
| 61 |
+
|
| 62 |
+
[environment]
|
| 63 |
+
network_mode = "public"
|
| 64 |
+
build_timeout_sec = 1800
|
| 65 |
+
cpus = 8
|
| 66 |
+
memory_mb = 16384
|
| 67 |
+
storage_mb = 30720
|
| 68 |
+
gpus = 0
|
| 69 |
+
workdir = "/workspace"
|
mainmatter--cargo-autoinherit.0bb5bee/tests/Dockerfile
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 50 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 51 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 52 |
+
&& mkdir -p /workspace /tests
|
| 53 |
+
|
| 54 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 55 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 56 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 57 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 58 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 59 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 60 |
+
RUN python3 -m pip install --break-system-packages \
|
| 61 |
+
--no-cache-dir --disable-pip-version-check \
|
| 62 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 63 |
+
|
| 64 |
+
COPY test.sh /tests/test.sh
|
| 65 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 66 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
+
COPY blobs/ /tests/blobs/
|
| 68 |
+
RUN chmod +x /tests/test.sh
|
| 69 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_01.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:84233d577fd0685d2d6cf87f9b2a0fb128722a80a88160dfb708eb4cc22facc6
|
| 3 |
+
size 18220
|
mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_02.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:588561b2dbaa9c7129d660a556193bcda302d0b65eccbf610843d9f13c0ee969
|
| 3 |
+
size 20179
|
mainmatter--cargo-autoinherit.0bb5bee/tests/blobs/tests/generated_module_03.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6f92c91bf97eed3b1eb61df8be262f7abff2060705e0c5432ca93a08c4b05ab5
|
| 3 |
+
size 14435
|
mainmatter--cargo-autoinherit.0bb5bee/tests/download.sh
ADDED
|
@@ -0,0 +1,754 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh — ProgramGym networked dependency-prefetch stage for
|
| 4 |
+
# mainmatter/cargo-autoinherit (a Cargo subcommand binary).
|
| 5 |
+
#
|
| 6 |
+
# This file is intended to be *sourced* (not executed) from the repository root:
|
| 7 |
+
# source /source_ro/download.sh
|
| 8 |
+
#
|
| 9 |
+
# It must be standalone: it must NOT read any repository file. All dependency
|
| 10 |
+
# information (Cargo manifest + pinned Cargo.lock) is embedded inline below. It
|
| 11 |
+
# only populates the offline cargo registry cache; it does not build or test
|
| 12 |
+
# anything.
|
| 13 |
+
#
|
| 14 |
+
# No `exit` in normal control flow (source-safe). Failures are surfaced by the
|
| 15 |
+
# `set -e`-style guard implemented via an explicit branch.
|
| 16 |
+
|
| 17 |
+
set -eu
|
| 18 |
+
|
| 19 |
+
# Guard: download.sh must be sourced, never executed. When sourced,
|
| 20 |
+
# ${BASH_SOURCE[0]} (this file) differs from $0 (the parent shell); when
|
| 21 |
+
# executed directly they are equal and we abort.
|
| 22 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 23 |
+
echo "download.sh must be sourced, not executed: source ./download.sh" >&2
|
| 24 |
+
exit 2
|
| 25 |
+
fi
|
| 26 |
+
|
| 27 |
+
# ---------------------------------------------------------------------------
|
| 28 |
+
# Working area for the generated (temporary) Cargo project.
|
| 29 |
+
# ---------------------------------------------------------------------------
|
| 30 |
+
FETCH_WORKDIR="$(mktemp -d)"
|
| 31 |
+
mkdir -p "$FETCH_WORKDIR/src"
|
| 32 |
+
|
| 33 |
+
# Cargo home: default ~/.cargo is fine in the download stage.
|
| 34 |
+
export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
| 35 |
+
|
| 36 |
+
# ---------------------------------------------------------------------------
|
| 37 |
+
# 1. Write the generated Cargo manifest (mirrors the repository's direct
|
| 38 |
+
# dependencies exactly).
|
| 39 |
+
# ---------------------------------------------------------------------------
|
| 40 |
+
cat > "$FETCH_WORKDIR/Cargo.toml" <<'TOML'
|
| 41 |
+
[package]
|
| 42 |
+
name = "cargo-autoinherit"
|
| 43 |
+
version = "0.1.6"
|
| 44 |
+
edition = "2021"
|
| 45 |
+
|
| 46 |
+
[dependencies]
|
| 47 |
+
anyhow = "1.0.80"
|
| 48 |
+
clap = { version = "4", features = ["derive"] }
|
| 49 |
+
guppy = "0.17.5"
|
| 50 |
+
fs-err = "2.11.0"
|
| 51 |
+
cargo-manifest = "0.19.1"
|
| 52 |
+
toml = "0.8.10"
|
| 53 |
+
semver = "1.0.22"
|
| 54 |
+
toml_edit = "0.22.6"
|
| 55 |
+
pathdiff = "0.2.1"
|
| 56 |
+
TOML
|
| 57 |
+
|
| 58 |
+
# ---------------------------------------------------------------------------
|
| 59 |
+
# 2. Write stub source files so the generated manifest resolves cleanly under
|
| 60 |
+
# `cargo fetch` (convention-based lib + bin targets).
|
| 61 |
+
# ---------------------------------------------------------------------------
|
| 62 |
+
cat > "$FETCH_WORKDIR/src/lib.rs" <<'EOF'
|
| 63 |
+
// Stub generated by download.sh purely so `cargo fetch` can resolve the
|
| 64 |
+
// generated manifest; download.sh performs no compilation.
|
| 65 |
+
EOF
|
| 66 |
+
|
| 67 |
+
cat > "$FETCH_WORKDIR/src/main.rs" <<'EOF'
|
| 68 |
+
fn main() {}
|
| 69 |
+
EOF
|
| 70 |
+
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
# 3. Write the pinned Cargo.lock inline so the versions fetched exactly match
|
| 73 |
+
# the ones the offline build resolves from the repository's real lockfile.
|
| 74 |
+
# ---------------------------------------------------------------------------
|
| 75 |
+
cat > "$FETCH_WORKDIR/Cargo.lock" <<'LOCK'
|
| 76 |
+
# This file is automatically @generated by Cargo.
|
| 77 |
+
# It is not intended for manual editing.
|
| 78 |
+
version = 4
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "ahash"
|
| 82 |
+
version = "0.8.11"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011"
|
| 85 |
+
dependencies = [
|
| 86 |
+
"cfg-if",
|
| 87 |
+
"getrandom",
|
| 88 |
+
"once_cell",
|
| 89 |
+
"version_check",
|
| 90 |
+
"zerocopy",
|
| 91 |
+
]
|
| 92 |
+
|
| 93 |
+
[[package]]
|
| 94 |
+
name = "anstream"
|
| 95 |
+
version = "0.6.13"
|
| 96 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 97 |
+
checksum = "d96bd03f33fe50a863e394ee9718a706f988b9079b20c3784fb726e7678b62fb"
|
| 98 |
+
dependencies = [
|
| 99 |
+
"anstyle",
|
| 100 |
+
"anstyle-parse",
|
| 101 |
+
"anstyle-query",
|
| 102 |
+
"anstyle-wincon",
|
| 103 |
+
"colorchoice",
|
| 104 |
+
"utf8parse",
|
| 105 |
+
]
|
| 106 |
+
|
| 107 |
+
[[package]]
|
| 108 |
+
name = "anstyle"
|
| 109 |
+
version = "1.0.6"
|
| 110 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 111 |
+
checksum = "8901269c6307e8d93993578286ac0edf7f195079ffff5ebdeea6a59ffb7e36bc"
|
| 112 |
+
|
| 113 |
+
[[package]]
|
| 114 |
+
name = "anstyle-parse"
|
| 115 |
+
version = "0.2.3"
|
| 116 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 117 |
+
checksum = "c75ac65da39e5fe5ab759307499ddad880d724eed2f6ce5b5e8a26f4f387928c"
|
| 118 |
+
dependencies = [
|
| 119 |
+
"utf8parse",
|
| 120 |
+
]
|
| 121 |
+
|
| 122 |
+
[[package]]
|
| 123 |
+
name = "anstyle-query"
|
| 124 |
+
version = "1.0.2"
|
| 125 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 126 |
+
checksum = "e28923312444cdd728e4738b3f9c9cac739500909bb3d3c94b43551b16517648"
|
| 127 |
+
dependencies = [
|
| 128 |
+
"windows-sys",
|
| 129 |
+
]
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "anstyle-wincon"
|
| 133 |
+
version = "3.0.2"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "1cd54b81ec8d6180e24654d0b371ad22fc3dd083b6ff8ba325b72e00c87660a7"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"anstyle",
|
| 138 |
+
"windows-sys",
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
[[package]]
|
| 142 |
+
name = "anyhow"
|
| 143 |
+
version = "1.0.81"
|
| 144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 145 |
+
checksum = "0952808a6c2afd1aa8947271f3a60f1a6763c7b912d210184c5149b5cf147247"
|
| 146 |
+
|
| 147 |
+
[[package]]
|
| 148 |
+
name = "autocfg"
|
| 149 |
+
version = "1.1.0"
|
| 150 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 151 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 152 |
+
|
| 153 |
+
[[package]]
|
| 154 |
+
name = "camino"
|
| 155 |
+
version = "1.1.6"
|
| 156 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 157 |
+
checksum = "c59e92b5a388f549b863a7bea62612c09f24c8393560709a54558a9abdfb3b9c"
|
| 158 |
+
dependencies = [
|
| 159 |
+
"serde",
|
| 160 |
+
]
|
| 161 |
+
|
| 162 |
+
[[package]]
|
| 163 |
+
name = "cargo-autoinherit"
|
| 164 |
+
version = "0.1.6"
|
| 165 |
+
dependencies = [
|
| 166 |
+
"anyhow",
|
| 167 |
+
"cargo-manifest",
|
| 168 |
+
"clap",
|
| 169 |
+
"fs-err",
|
| 170 |
+
"guppy",
|
| 171 |
+
"pathdiff",
|
| 172 |
+
"semver",
|
| 173 |
+
"toml",
|
| 174 |
+
"toml_edit",
|
| 175 |
+
]
|
| 176 |
+
|
| 177 |
+
[[package]]
|
| 178 |
+
name = "cargo-manifest"
|
| 179 |
+
version = "0.19.1"
|
| 180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 181 |
+
checksum = "a1d8af896b707212cd0e99c112a78c9497dd32994192a463ed2f7419d29bd8c6"
|
| 182 |
+
dependencies = [
|
| 183 |
+
"serde",
|
| 184 |
+
"thiserror 2.0.11",
|
| 185 |
+
"toml",
|
| 186 |
+
]
|
| 187 |
+
|
| 188 |
+
[[package]]
|
| 189 |
+
name = "cargo-platform"
|
| 190 |
+
version = "0.1.7"
|
| 191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 192 |
+
checksum = "694c8807f2ae16faecc43dc17d74b3eb042482789fd0eb64b39a2e04e087053f"
|
| 193 |
+
dependencies = [
|
| 194 |
+
"serde",
|
| 195 |
+
]
|
| 196 |
+
|
| 197 |
+
[[package]]
|
| 198 |
+
name = "cargo_metadata"
|
| 199 |
+
version = "0.18.1"
|
| 200 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 201 |
+
checksum = "2d886547e41f740c616ae73108f6eb70afe6d940c7bc697cb30f13daec073037"
|
| 202 |
+
dependencies = [
|
| 203 |
+
"camino",
|
| 204 |
+
"cargo-platform",
|
| 205 |
+
"semver",
|
| 206 |
+
"serde",
|
| 207 |
+
"serde_json",
|
| 208 |
+
"thiserror 1.0.58",
|
| 209 |
+
]
|
| 210 |
+
|
| 211 |
+
[[package]]
|
| 212 |
+
name = "cfg-expr"
|
| 213 |
+
version = "0.15.7"
|
| 214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 215 |
+
checksum = "fa50868b64a9a6fda9d593ce778849ea8715cd2a3d2cc17ffdb4a2f2f2f1961d"
|
| 216 |
+
dependencies = [
|
| 217 |
+
"smallvec",
|
| 218 |
+
"target-lexicon",
|
| 219 |
+
]
|
| 220 |
+
|
| 221 |
+
[[package]]
|
| 222 |
+
name = "cfg-if"
|
| 223 |
+
version = "1.0.0"
|
| 224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 225 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 226 |
+
|
| 227 |
+
[[package]]
|
| 228 |
+
name = "clap"
|
| 229 |
+
version = "4.5.4"
|
| 230 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 231 |
+
checksum = "90bc066a67923782aa8515dbaea16946c5bcc5addbd668bb80af688e53e548a0"
|
| 232 |
+
dependencies = [
|
| 233 |
+
"clap_builder",
|
| 234 |
+
"clap_derive",
|
| 235 |
+
]
|
| 236 |
+
|
| 237 |
+
[[package]]
|
| 238 |
+
name = "clap_builder"
|
| 239 |
+
version = "4.5.2"
|
| 240 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 241 |
+
checksum = "ae129e2e766ae0ec03484e609954119f123cc1fe650337e155d03b022f24f7b4"
|
| 242 |
+
dependencies = [
|
| 243 |
+
"anstream",
|
| 244 |
+
"anstyle",
|
| 245 |
+
"clap_lex",
|
| 246 |
+
"strsim",
|
| 247 |
+
]
|
| 248 |
+
|
| 249 |
+
[[package]]
|
| 250 |
+
name = "clap_derive"
|
| 251 |
+
version = "4.5.4"
|
| 252 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 253 |
+
checksum = "528131438037fd55894f62d6e9f068b8f45ac57ffa77517819645d10aed04f64"
|
| 254 |
+
dependencies = [
|
| 255 |
+
"heck",
|
| 256 |
+
"proc-macro2",
|
| 257 |
+
"quote",
|
| 258 |
+
"syn",
|
| 259 |
+
]
|
| 260 |
+
|
| 261 |
+
[[package]]
|
| 262 |
+
name = "clap_lex"
|
| 263 |
+
version = "0.7.0"
|
| 264 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 265 |
+
checksum = "98cc8fbded0c607b7ba9dd60cd98df59af97e84d24e49c8557331cfc26d301ce"
|
| 266 |
+
|
| 267 |
+
[[package]]
|
| 268 |
+
name = "colorchoice"
|
| 269 |
+
version = "1.0.0"
|
| 270 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 271 |
+
checksum = "acbf1af155f9b9ef647e42cdc158db4b64a1b61f743629225fde6f3e0be2a7c7"
|
| 272 |
+
|
| 273 |
+
[[package]]
|
| 274 |
+
name = "debug-ignore"
|
| 275 |
+
version = "1.0.5"
|
| 276 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 277 |
+
checksum = "ffe7ed1d93f4553003e20b629abe9085e1e81b1429520f897f8f8860bc6dfc21"
|
| 278 |
+
|
| 279 |
+
[[package]]
|
| 280 |
+
name = "either"
|
| 281 |
+
version = "1.10.0"
|
| 282 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 283 |
+
checksum = "11157ac094ffbdde99aa67b23417ebdd801842852b500e395a45a9c0aac03e4a"
|
| 284 |
+
|
| 285 |
+
[[package]]
|
| 286 |
+
name = "equivalent"
|
| 287 |
+
version = "1.0.1"
|
| 288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 289 |
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
| 290 |
+
|
| 291 |
+
[[package]]
|
| 292 |
+
name = "fixedbitset"
|
| 293 |
+
version = "0.4.2"
|
| 294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 295 |
+
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
| 296 |
+
|
| 297 |
+
[[package]]
|
| 298 |
+
name = "fs-err"
|
| 299 |
+
version = "2.11.0"
|
| 300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 301 |
+
checksum = "88a41f105fe1d5b6b34b2055e3dc59bb79b46b48b2040b9e6c7b4b5de097aa41"
|
| 302 |
+
dependencies = [
|
| 303 |
+
"autocfg",
|
| 304 |
+
]
|
| 305 |
+
|
| 306 |
+
[[package]]
|
| 307 |
+
name = "getrandom"
|
| 308 |
+
version = "0.2.12"
|
| 309 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 310 |
+
checksum = "190092ea657667030ac6a35e305e62fc4dd69fd98ac98631e5d3a2b1575a12b5"
|
| 311 |
+
dependencies = [
|
| 312 |
+
"cfg-if",
|
| 313 |
+
"libc",
|
| 314 |
+
"wasi",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "guppy"
|
| 319 |
+
version = "0.17.5"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "34e99a7734579b834a076ef11789783c153c6eb5fb3520ed15bc41f483f0f317"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"ahash",
|
| 324 |
+
"camino",
|
| 325 |
+
"cargo_metadata",
|
| 326 |
+
"cfg-if",
|
| 327 |
+
"debug-ignore",
|
| 328 |
+
"fixedbitset",
|
| 329 |
+
"guppy-workspace-hack",
|
| 330 |
+
"indexmap",
|
| 331 |
+
"itertools",
|
| 332 |
+
"nested",
|
| 333 |
+
"once_cell",
|
| 334 |
+
"pathdiff",
|
| 335 |
+
"petgraph",
|
| 336 |
+
"semver",
|
| 337 |
+
"serde",
|
| 338 |
+
"serde_json",
|
| 339 |
+
"smallvec",
|
| 340 |
+
"static_assertions",
|
| 341 |
+
"target-spec",
|
| 342 |
+
]
|
| 343 |
+
|
| 344 |
+
[[package]]
|
| 345 |
+
name = "guppy-workspace-hack"
|
| 346 |
+
version = "0.1.0"
|
| 347 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 348 |
+
checksum = "92620684d99f750bae383ecb3be3748142d6095760afd5cbcf2261e9a279d780"
|
| 349 |
+
|
| 350 |
+
[[package]]
|
| 351 |
+
name = "hashbrown"
|
| 352 |
+
version = "0.14.3"
|
| 353 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 354 |
+
checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604"
|
| 355 |
+
|
| 356 |
+
[[package]]
|
| 357 |
+
name = "heck"
|
| 358 |
+
version = "0.5.0"
|
| 359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 360 |
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
| 361 |
+
|
| 362 |
+
[[package]]
|
| 363 |
+
name = "indexmap"
|
| 364 |
+
version = "2.2.5"
|
| 365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 366 |
+
checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4"
|
| 367 |
+
dependencies = [
|
| 368 |
+
"equivalent",
|
| 369 |
+
"hashbrown",
|
| 370 |
+
]
|
| 371 |
+
|
| 372 |
+
[[package]]
|
| 373 |
+
name = "itertools"
|
| 374 |
+
version = "0.12.1"
|
| 375 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 376 |
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
| 377 |
+
dependencies = [
|
| 378 |
+
"either",
|
| 379 |
+
]
|
| 380 |
+
|
| 381 |
+
[[package]]
|
| 382 |
+
name = "itoa"
|
| 383 |
+
version = "1.0.10"
|
| 384 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 385 |
+
checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c"
|
| 386 |
+
|
| 387 |
+
[[package]]
|
| 388 |
+
name = "libc"
|
| 389 |
+
version = "0.2.153"
|
| 390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 391 |
+
checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd"
|
| 392 |
+
|
| 393 |
+
[[package]]
|
| 394 |
+
name = "memchr"
|
| 395 |
+
version = "2.7.1"
|
| 396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 397 |
+
checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149"
|
| 398 |
+
|
| 399 |
+
[[package]]
|
| 400 |
+
name = "nested"
|
| 401 |
+
version = "0.1.1"
|
| 402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 403 |
+
checksum = "ca2b420f638f07fe83056b55ea190bb815f609ec5a35e7017884a10f78839c9e"
|
| 404 |
+
|
| 405 |
+
[[package]]
|
| 406 |
+
name = "once_cell"
|
| 407 |
+
version = "1.19.0"
|
| 408 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 409 |
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
| 410 |
+
|
| 411 |
+
[[package]]
|
| 412 |
+
name = "pathdiff"
|
| 413 |
+
version = "0.2.1"
|
| 414 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 415 |
+
checksum = "8835116a5c179084a830efb3adc117ab007512b535bc1a21c991d3b32a6b44dd"
|
| 416 |
+
dependencies = [
|
| 417 |
+
"camino",
|
| 418 |
+
]
|
| 419 |
+
|
| 420 |
+
[[package]]
|
| 421 |
+
name = "petgraph"
|
| 422 |
+
version = "0.6.4"
|
| 423 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 424 |
+
checksum = "e1d3afd2628e69da2be385eb6f2fd57c8ac7977ceeff6dc166ff1657b0e386a9"
|
| 425 |
+
dependencies = [
|
| 426 |
+
"fixedbitset",
|
| 427 |
+
"indexmap",
|
| 428 |
+
]
|
| 429 |
+
|
| 430 |
+
[[package]]
|
| 431 |
+
name = "proc-macro2"
|
| 432 |
+
version = "1.0.93"
|
| 433 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 434 |
+
checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
|
| 435 |
+
dependencies = [
|
| 436 |
+
"unicode-ident",
|
| 437 |
+
]
|
| 438 |
+
|
| 439 |
+
[[package]]
|
| 440 |
+
name = "quote"
|
| 441 |
+
version = "1.0.35"
|
| 442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 443 |
+
checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef"
|
| 444 |
+
dependencies = [
|
| 445 |
+
"proc-macro2",
|
| 446 |
+
]
|
| 447 |
+
|
| 448 |
+
[[package]]
|
| 449 |
+
name = "ryu"
|
| 450 |
+
version = "1.0.17"
|
| 451 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 452 |
+
checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1"
|
| 453 |
+
|
| 454 |
+
[[package]]
|
| 455 |
+
name = "semver"
|
| 456 |
+
version = "1.0.22"
|
| 457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 458 |
+
checksum = "92d43fe69e652f3df9bdc2b85b2854a0825b86e4fb76bc44d945137d053639ca"
|
| 459 |
+
dependencies = [
|
| 460 |
+
"serde",
|
| 461 |
+
]
|
| 462 |
+
|
| 463 |
+
[[package]]
|
| 464 |
+
name = "serde"
|
| 465 |
+
version = "1.0.197"
|
| 466 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 467 |
+
checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2"
|
| 468 |
+
dependencies = [
|
| 469 |
+
"serde_derive",
|
| 470 |
+
]
|
| 471 |
+
|
| 472 |
+
[[package]]
|
| 473 |
+
name = "serde_derive"
|
| 474 |
+
version = "1.0.197"
|
| 475 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 476 |
+
checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b"
|
| 477 |
+
dependencies = [
|
| 478 |
+
"proc-macro2",
|
| 479 |
+
"quote",
|
| 480 |
+
"syn",
|
| 481 |
+
]
|
| 482 |
+
|
| 483 |
+
[[package]]
|
| 484 |
+
name = "serde_json"
|
| 485 |
+
version = "1.0.114"
|
| 486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 487 |
+
checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0"
|
| 488 |
+
dependencies = [
|
| 489 |
+
"itoa",
|
| 490 |
+
"ryu",
|
| 491 |
+
"serde",
|
| 492 |
+
]
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "serde_spanned"
|
| 496 |
+
version = "0.6.5"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "eb3622f419d1296904700073ea6cc23ad690adbd66f13ea683df73298736f0c1"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"serde",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "smallvec"
|
| 505 |
+
version = "1.13.1"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "e6ecd384b10a64542d77071bd64bd7b231f4ed5940fba55e98c3de13824cf3d7"
|
| 508 |
+
|
| 509 |
+
[[package]]
|
| 510 |
+
name = "static_assertions"
|
| 511 |
+
version = "1.1.0"
|
| 512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 513 |
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
| 514 |
+
|
| 515 |
+
[[package]]
|
| 516 |
+
name = "strsim"
|
| 517 |
+
version = "0.11.0"
|
| 518 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 519 |
+
checksum = "5ee073c9e4cd00e28217186dbe12796d692868f432bf2e97ee73bed0c56dfa01"
|
| 520 |
+
|
| 521 |
+
[[package]]
|
| 522 |
+
name = "syn"
|
| 523 |
+
version = "2.0.98"
|
| 524 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 525 |
+
checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
|
| 526 |
+
dependencies = [
|
| 527 |
+
"proc-macro2",
|
| 528 |
+
"quote",
|
| 529 |
+
"unicode-ident",
|
| 530 |
+
]
|
| 531 |
+
|
| 532 |
+
[[package]]
|
| 533 |
+
name = "target-lexicon"
|
| 534 |
+
version = "0.12.14"
|
| 535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 536 |
+
checksum = "e1fc403891a21bcfb7c37834ba66a547a8f402146eba7265b5a6d88059c9ff2f"
|
| 537 |
+
|
| 538 |
+
[[package]]
|
| 539 |
+
name = "target-spec"
|
| 540 |
+
version = "3.1.0"
|
| 541 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 542 |
+
checksum = "36a8e795b1824524d13cdf04f73cf8b4f244ce86c96b4d2a83a6ca1a753d2752"
|
| 543 |
+
dependencies = [
|
| 544 |
+
"cfg-expr",
|
| 545 |
+
"guppy-workspace-hack",
|
| 546 |
+
"target-lexicon",
|
| 547 |
+
"unicode-ident",
|
| 548 |
+
]
|
| 549 |
+
|
| 550 |
+
[[package]]
|
| 551 |
+
name = "thiserror"
|
| 552 |
+
version = "1.0.58"
|
| 553 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 554 |
+
checksum = "03468839009160513471e86a034bb2c5c0e4baae3b43f79ffc55c4a5427b3297"
|
| 555 |
+
dependencies = [
|
| 556 |
+
"thiserror-impl 1.0.58",
|
| 557 |
+
]
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "thiserror"
|
| 561 |
+
version = "2.0.11"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc"
|
| 564 |
+
dependencies = [
|
| 565 |
+
"thiserror-impl 2.0.11",
|
| 566 |
+
]
|
| 567 |
+
|
| 568 |
+
[[package]]
|
| 569 |
+
name = "thiserror-impl"
|
| 570 |
+
version = "1.0.58"
|
| 571 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 572 |
+
checksum = "c61f3ba182994efc43764a46c018c347bc492c79f024e705f46567b418f6d4f7"
|
| 573 |
+
dependencies = [
|
| 574 |
+
"proc-macro2",
|
| 575 |
+
"quote",
|
| 576 |
+
"syn",
|
| 577 |
+
]
|
| 578 |
+
|
| 579 |
+
[[package]]
|
| 580 |
+
name = "thiserror-impl"
|
| 581 |
+
version = "2.0.11"
|
| 582 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 583 |
+
checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2"
|
| 584 |
+
dependencies = [
|
| 585 |
+
"proc-macro2",
|
| 586 |
+
"quote",
|
| 587 |
+
"syn",
|
| 588 |
+
]
|
| 589 |
+
|
| 590 |
+
[[package]]
|
| 591 |
+
name = "toml"
|
| 592 |
+
version = "0.8.11"
|
| 593 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 594 |
+
checksum = "af06656561d28735e9c1cd63dfd57132c8155426aa6af24f36a00a351f88c48e"
|
| 595 |
+
dependencies = [
|
| 596 |
+
"indexmap",
|
| 597 |
+
"serde",
|
| 598 |
+
"serde_spanned",
|
| 599 |
+
"toml_datetime",
|
| 600 |
+
"toml_edit",
|
| 601 |
+
]
|
| 602 |
+
|
| 603 |
+
[[package]]
|
| 604 |
+
name = "toml_datetime"
|
| 605 |
+
version = "0.6.5"
|
| 606 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 607 |
+
checksum = "3550f4e9685620ac18a50ed434eb3aec30db8ba93b0287467bca5826ea25baf1"
|
| 608 |
+
dependencies = [
|
| 609 |
+
"serde",
|
| 610 |
+
]
|
| 611 |
+
|
| 612 |
+
[[package]]
|
| 613 |
+
name = "toml_edit"
|
| 614 |
+
version = "0.22.7"
|
| 615 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 616 |
+
checksum = "18769cd1cec395d70860ceb4d932812a0b4d06b1a4bb336745a4d21b9496e992"
|
| 617 |
+
dependencies = [
|
| 618 |
+
"indexmap",
|
| 619 |
+
"serde",
|
| 620 |
+
"serde_spanned",
|
| 621 |
+
"toml_datetime",
|
| 622 |
+
"winnow",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "unicode-ident"
|
| 627 |
+
version = "1.0.12"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
| 630 |
+
|
| 631 |
+
[[package]]
|
| 632 |
+
name = "utf8parse"
|
| 633 |
+
version = "0.2.1"
|
| 634 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 635 |
+
checksum = "711b9620af191e0cdc7468a8d14e709c3dcdb115b36f838e601583af800a370a"
|
| 636 |
+
|
| 637 |
+
[[package]]
|
| 638 |
+
name = "version_check"
|
| 639 |
+
version = "0.9.4"
|
| 640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 641 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 642 |
+
|
| 643 |
+
[[package]]
|
| 644 |
+
name = "wasi"
|
| 645 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 647 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 648 |
+
|
| 649 |
+
[[package]]
|
| 650 |
+
name = "windows-sys"
|
| 651 |
+
version = "0.52.0"
|
| 652 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 653 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 654 |
+
dependencies = [
|
| 655 |
+
"windows-targets",
|
| 656 |
+
]
|
| 657 |
+
|
| 658 |
+
[[package]]
|
| 659 |
+
name = "windows-targets"
|
| 660 |
+
version = "0.52.4"
|
| 661 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 662 |
+
checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b"
|
| 663 |
+
dependencies = [
|
| 664 |
+
"windows_aarch64_gnullvm",
|
| 665 |
+
"windows_aarch64_msvc",
|
| 666 |
+
"windows_i686_gnu",
|
| 667 |
+
"windows_i686_msvc",
|
| 668 |
+
"windows_x86_64_gnu",
|
| 669 |
+
"windows_x86_64_gnullvm",
|
| 670 |
+
"windows_x86_64_msvc",
|
| 671 |
+
]
|
| 672 |
+
|
| 673 |
+
[[package]]
|
| 674 |
+
name = "windows_aarch64_gnullvm"
|
| 675 |
+
version = "0.52.4"
|
| 676 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 677 |
+
checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9"
|
| 678 |
+
|
| 679 |
+
[[package]]
|
| 680 |
+
name = "windows_aarch64_msvc"
|
| 681 |
+
version = "0.52.4"
|
| 682 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 683 |
+
checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675"
|
| 684 |
+
|
| 685 |
+
[[package]]
|
| 686 |
+
name = "windows_i686_gnu"
|
| 687 |
+
version = "0.52.4"
|
| 688 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 689 |
+
checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3"
|
| 690 |
+
|
| 691 |
+
[[package]]
|
| 692 |
+
name = "windows_i686_msvc"
|
| 693 |
+
version = "0.52.4"
|
| 694 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 695 |
+
checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02"
|
| 696 |
+
|
| 697 |
+
[[package]]
|
| 698 |
+
name = "windows_x86_64_gnu"
|
| 699 |
+
version = "0.52.4"
|
| 700 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 701 |
+
checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03"
|
| 702 |
+
|
| 703 |
+
[[package]]
|
| 704 |
+
name = "windows_x86_64_gnullvm"
|
| 705 |
+
version = "0.52.4"
|
| 706 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 707 |
+
checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177"
|
| 708 |
+
|
| 709 |
+
[[package]]
|
| 710 |
+
name = "windows_x86_64_msvc"
|
| 711 |
+
version = "0.52.4"
|
| 712 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 713 |
+
checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8"
|
| 714 |
+
|
| 715 |
+
[[package]]
|
| 716 |
+
name = "winnow"
|
| 717 |
+
version = "0.6.5"
|
| 718 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 719 |
+
checksum = "dffa400e67ed5a4dd237983829e66475f0a4a26938c4b04c21baede6262215b8"
|
| 720 |
+
dependencies = [
|
| 721 |
+
"memchr",
|
| 722 |
+
]
|
| 723 |
+
|
| 724 |
+
[[package]]
|
| 725 |
+
name = "zerocopy"
|
| 726 |
+
version = "0.7.32"
|
| 727 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 728 |
+
checksum = "74d4d3961e53fa4c9a25a8637fc2bfaf2595b3d3ae34875568a5cf64787716be"
|
| 729 |
+
dependencies = [
|
| 730 |
+
"zerocopy-derive",
|
| 731 |
+
]
|
| 732 |
+
|
| 733 |
+
[[package]]
|
| 734 |
+
name = "zerocopy-derive"
|
| 735 |
+
version = "0.7.32"
|
| 736 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 737 |
+
checksum = "9ce1b18ccd8e73a9321186f97e46f9f04b778851177567b1975109d26a08d2a6"
|
| 738 |
+
dependencies = [
|
| 739 |
+
"proc-macro2",
|
| 740 |
+
"quote",
|
| 741 |
+
"syn",
|
| 742 |
+
]
|
| 743 |
+
LOCK
|
| 744 |
+
|
| 745 |
+
# ---------------------------------------------------------------------------
|
| 746 |
+
# 4. Prefetch every dependency declared by the generated manifest into the
|
| 747 |
+
# offline cargo registry cache. `--locked` guarantees the versions cached are
|
| 748 |
+
# exactly the ones pinned above (and pinned by the repository's real lock).
|
| 749 |
+
# Running from a mktemp dir with `--manifest-path` avoids the repo root and
|
| 750 |
+
# does not read any repository file.
|
| 751 |
+
# ---------------------------------------------------------------------------
|
| 752 |
+
cargo fetch --locked --manifest-path "$FETCH_WORKDIR/Cargo.toml"
|
| 753 |
+
|
| 754 |
+
echo "download.sh: cargo dependency prefetch complete."
|
mainmatter--cargo-autoinherit.0bb5bee/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce1324aea7c4daa530ef27ecfe229eb82f6053a7ff93b33500c1500ea3bca061
|
| 3 |
+
size 3578920
|
mainmatter--cargo-autoinherit.0bb5bee/tests/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
command -v cargo
|
| 4 |
+
command -v rustc
|
| 5 |
+
command -v rustup
|
| 6 |
+
cd /workspace
|
| 7 |
+
set -a
|
| 8 |
+
source /tmp/programgym-download.sh
|
| 9 |
+
set +a
|
| 10 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 11 |
+
import os
|
| 12 |
+
import shlex
|
| 13 |
+
|
| 14 |
+
ignored = {
|
| 15 |
+
"ALL_PROXY",
|
| 16 |
+
"HTTP_PROXY",
|
| 17 |
+
"HTTPS_PROXY",
|
| 18 |
+
"NO_PROXY",
|
| 19 |
+
"OLDPWD",
|
| 20 |
+
"PIP_PROXY",
|
| 21 |
+
"PWD",
|
| 22 |
+
"SHLVL",
|
| 23 |
+
"_",
|
| 24 |
+
"all_proxy",
|
| 25 |
+
"http_proxy",
|
| 26 |
+
"https_proxy",
|
| 27 |
+
"no_proxy",
|
| 28 |
+
"pip_proxy",
|
| 29 |
+
}
|
| 30 |
+
for key in sorted(os.environ):
|
| 31 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 32 |
+
continue
|
| 33 |
+
value = os.environ[key]
|
| 34 |
+
if "\n" in value:
|
| 35 |
+
continue
|
| 36 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 37 |
+
PY
|
mainmatter--cargo-autoinherit.0bb5bee/tests/programgym_evaluator.py
ADDED
|
@@ -0,0 +1,1201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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gramGym evaluator.
|
| 3 |
+
|
| 4 |
+
Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
|
| 5 |
+
no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
|
| 6 |
+
cleanroom container after Harbor flips the verifier-phase network policy.
|
| 7 |
+
|
| 8 |
+
Differences from ``programgym.eval.eval.Evaluator`` that are structural to
|
| 9 |
+
running in one container:
|
| 10 |
+
|
| 11 |
+
* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
|
| 12 |
+
copy a post-compile workspace snapshot to a temp directory and restore it
|
| 13 |
+
before each branch; ``cleanup_lingering_processes`` kills leftover branch
|
| 14 |
+
processes between attempts to approximate the fresh-container boundary.
|
| 15 |
+
* No ``docker commit``. The post-compile workspace snapshot serves the same
|
| 16 |
+
role as the committed image upstream.
|
| 17 |
+
* Hidden test blobs are fetched on demand from HuggingFace via
|
| 18 |
+
``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
|
| 19 |
+
rather than being pre-staged into ``/tests/blobs/``. Override with
|
| 20 |
+
``PROGRAMGYM_BLOB_DIR`` for offline reruns.
|
| 21 |
+
|
| 22 |
+
Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
|
| 23 |
+
``compile.sh`` then stash + hash the executable, best-effort
|
| 24 |
+
``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
|
| 25 |
+
``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
|
| 26 |
+
best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
|
| 27 |
+
preserved.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
from __future__ import annotations
|
| 31 |
+
|
| 32 |
+
import hashlib
|
| 33 |
+
import json
|
| 34 |
+
import os
|
| 35 |
+
import re
|
| 36 |
+
import shlex
|
| 37 |
+
import shutil
|
| 38 |
+
import signal
|
| 39 |
+
import subprocess
|
| 40 |
+
import tempfile
|
| 41 |
+
import time
|
| 42 |
+
import traceback
|
| 43 |
+
import xml.etree.ElementTree as ET
|
| 44 |
+
from pathlib import Path
|
| 45 |
+
from typing import Any
|
| 46 |
+
|
| 47 |
+
WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
|
| 48 |
+
STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
|
| 49 |
+
METADATA_PATH = Path(
|
| 50 |
+
os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
|
| 51 |
+
)
|
| 52 |
+
LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
|
| 53 |
+
WORKER_CRASH_PHRASE = "worker '"
|
| 54 |
+
XDIST_COLLAPSE_MARKERS = (
|
| 55 |
+
"maximum crashed workers reached",
|
| 56 |
+
"xdist: maximum crashed",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
|
| 60 |
+
DEFAULT_HF_REVISION = "main"
|
| 61 |
+
|
| 62 |
+
# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
|
| 63 |
+
# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
|
| 64 |
+
_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
|
| 65 |
+
|
| 66 |
+
_TOOLCHAIN_BIN_DIR_CANDIDATES = (
|
| 67 |
+
"/usr/local/go/bin",
|
| 68 |
+
"/go/bin",
|
| 69 |
+
"/usr/local/cargo/bin",
|
| 70 |
+
"/root/.cargo/bin",
|
| 71 |
+
"/root/.ghcup/bin",
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def toolchain_bin_dirs() -> list[str]:
|
| 76 |
+
"""Return toolchain bin directories that exist on this image."""
|
| 77 |
+
candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
|
| 78 |
+
candidates.extend(
|
| 79 |
+
str(path)
|
| 80 |
+
for path in sorted(Path("/usr/lib").glob("go-*/bin"))
|
| 81 |
+
if _is_accessible_dir(path)
|
| 82 |
+
)
|
| 83 |
+
seen: set[str] = set()
|
| 84 |
+
present: list[str] = []
|
| 85 |
+
for path in candidates:
|
| 86 |
+
if path in seen:
|
| 87 |
+
continue
|
| 88 |
+
seen.add(path)
|
| 89 |
+
if _is_accessible_dir(path):
|
| 90 |
+
present.append(path)
|
| 91 |
+
return present
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def _is_accessible_dir(path: str | Path) -> bool:
|
| 95 |
+
"""Return whether path is a directory without failing on protected homes."""
|
| 96 |
+
try:
|
| 97 |
+
return Path(path).is_dir()
|
| 98 |
+
except OSError:
|
| 99 |
+
return False
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def bootstrap_toolchain_path() -> str:
|
| 103 |
+
"""Prepend discovered toolchain dirs to PATH (idempotent)."""
|
| 104 |
+
prepend = toolchain_bin_dirs()
|
| 105 |
+
current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
|
| 106 |
+
merged: list[str] = []
|
| 107 |
+
for path in prepend + current_parts:
|
| 108 |
+
if path not in merged:
|
| 109 |
+
merged.append(path)
|
| 110 |
+
new_path = ":".join(merged)
|
| 111 |
+
os.environ["PATH"] = new_path
|
| 112 |
+
return new_path
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _bash_login_command(command: str) -> str:
|
| 116 |
+
"""Run ``command`` under bash -lc with an explicit PATH export."""
|
| 117 |
+
path = bootstrap_toolchain_path()
|
| 118 |
+
return f"export PATH={shlex.quote(path)}; {command}"
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def sha256(path: Path) -> str:
|
| 122 |
+
h = hashlib.sha256()
|
| 123 |
+
with path.open("rb") as f:
|
| 124 |
+
for chunk in iter(lambda: f.read(1024 * 1024), b""):
|
| 125 |
+
h.update(chunk)
|
| 126 |
+
return h.hexdigest()
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def write_json(path: Path, data: dict[str, Any]) -> None:
|
| 130 |
+
tmp = path.with_suffix(path.suffix + ".tmp")
|
| 131 |
+
tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
|
| 132 |
+
tmp.replace(path)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
|
| 136 |
+
if path is None or not path.exists():
|
| 137 |
+
return ""
|
| 138 |
+
data = path.read_bytes()
|
| 139 |
+
if len(data) <= max_bytes:
|
| 140 |
+
return data.decode(errors="replace")
|
| 141 |
+
return data[-max_bytes:].decode(errors="replace")
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def _close_pipes(proc: subprocess.Popen[Any]) -> None:
|
| 145 |
+
for stream in (proc.stdout, proc.stderr):
|
| 146 |
+
if stream is not None:
|
| 147 |
+
try:
|
| 148 |
+
stream.close()
|
| 149 |
+
except OSError:
|
| 150 |
+
pass
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
|
| 154 |
+
try:
|
| 155 |
+
os.killpg(proc.pid, signal.SIGKILL)
|
| 156 |
+
except ProcessLookupError:
|
| 157 |
+
pass
|
| 158 |
+
try:
|
| 159 |
+
proc.kill()
|
| 160 |
+
except ProcessLookupError:
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
_PKILL_PATTERNS = (
|
| 165 |
+
f"{WORKSPACE}/eval/",
|
| 166 |
+
f"{WORKSPACE}/tests/",
|
| 167 |
+
"tail -f",
|
| 168 |
+
"development.log",
|
| 169 |
+
" less ",
|
| 170 |
+
" less$",
|
| 171 |
+
"/less ",
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def _pkill_aggressive() -> str:
|
| 176 |
+
"""Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
|
| 177 |
+
notes: list[str] = []
|
| 178 |
+
workspace = str(WORKSPACE)
|
| 179 |
+
patterns = list(_PKILL_PATTERNS) + [
|
| 180 |
+
f"pytest.*{workspace}",
|
| 181 |
+
f"xdist.*{workspace}",
|
| 182 |
+
]
|
| 183 |
+
for pattern in patterns:
|
| 184 |
+
result = subprocess.run(
|
| 185 |
+
["pkill", "-9", "-f", pattern],
|
| 186 |
+
capture_output=True,
|
| 187 |
+
text=True,
|
| 188 |
+
)
|
| 189 |
+
notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
|
| 190 |
+
return "\n".join(notes)
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def run_step(
|
| 194 |
+
command: str,
|
| 195 |
+
cwd: Path,
|
| 196 |
+
*,
|
| 197 |
+
timeout: int,
|
| 198 |
+
env: dict[str, str] | None = None,
|
| 199 |
+
step: str,
|
| 200 |
+
accept_failure: bool = False,
|
| 201 |
+
log_output: bool | None = None,
|
| 202 |
+
max_output_bytes: int = 65536,
|
| 203 |
+
) -> dict[str, Any]:
|
| 204 |
+
if log_output is None:
|
| 205 |
+
log_output = step == "run_tests" or timeout >= 60
|
| 206 |
+
|
| 207 |
+
started = time.monotonic()
|
| 208 |
+
stdout_path: Path | None = None
|
| 209 |
+
stderr_path: Path | None = None
|
| 210 |
+
stdout_f = None
|
| 211 |
+
stderr_f = None
|
| 212 |
+
|
| 213 |
+
if log_output:
|
| 214 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 215 |
+
log_id = f"{step}-{int(started * 1000)}"
|
| 216 |
+
stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
|
| 217 |
+
stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
|
| 218 |
+
stdout_f = stdout_path.open("w", encoding="utf-8")
|
| 219 |
+
stderr_f = stderr_path.open("w", encoding="utf-8")
|
| 220 |
+
popen_stdout: Any = stdout_f
|
| 221 |
+
popen_stderr: Any = stderr_f
|
| 222 |
+
else:
|
| 223 |
+
popen_stdout = subprocess.PIPE
|
| 224 |
+
popen_stderr = subprocess.PIPE
|
| 225 |
+
|
| 226 |
+
proc = subprocess.Popen(
|
| 227 |
+
["bash", "-lc", _bash_login_command(command)],
|
| 228 |
+
cwd=cwd,
|
| 229 |
+
env={**os.environ, **(env or {})},
|
| 230 |
+
stdout=popen_stdout,
|
| 231 |
+
stderr=popen_stderr,
|
| 232 |
+
start_new_session=True,
|
| 233 |
+
text=True,
|
| 234 |
+
)
|
| 235 |
+
timed_out = False
|
| 236 |
+
stdout = ""
|
| 237 |
+
stderr = ""
|
| 238 |
+
try:
|
| 239 |
+
if log_output:
|
| 240 |
+
proc.wait(timeout=timeout)
|
| 241 |
+
else:
|
| 242 |
+
stdout, stderr = proc.communicate(timeout=timeout)
|
| 243 |
+
except subprocess.TimeoutExpired:
|
| 244 |
+
timed_out = True
|
| 245 |
+
_terminate_process_tree(proc)
|
| 246 |
+
cleanup_lingering_processes(aggressive=True)
|
| 247 |
+
try:
|
| 248 |
+
proc.wait(timeout=5)
|
| 249 |
+
except subprocess.TimeoutExpired:
|
| 250 |
+
proc.kill()
|
| 251 |
+
if not log_output:
|
| 252 |
+
_close_pipes(proc)
|
| 253 |
+
finally:
|
| 254 |
+
if stdout_f is not None:
|
| 255 |
+
stdout_f.close()
|
| 256 |
+
if stderr_f is not None:
|
| 257 |
+
stderr_f.close()
|
| 258 |
+
|
| 259 |
+
if timed_out:
|
| 260 |
+
if log_output:
|
| 261 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 262 |
+
stderr_path, max_output_bytes
|
| 263 |
+
)
|
| 264 |
+
else:
|
| 265 |
+
output = ""
|
| 266 |
+
entry = {
|
| 267 |
+
"step": step,
|
| 268 |
+
"command": command,
|
| 269 |
+
"wall_time": time.monotonic() - started,
|
| 270 |
+
"output": output,
|
| 271 |
+
"returncode": 124,
|
| 272 |
+
"exception_info": f"timed out after {timeout}s",
|
| 273 |
+
}
|
| 274 |
+
else:
|
| 275 |
+
if log_output:
|
| 276 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 277 |
+
stderr_path, max_output_bytes
|
| 278 |
+
)
|
| 279 |
+
else:
|
| 280 |
+
output = stdout + stderr
|
| 281 |
+
entry = {
|
| 282 |
+
"step": step,
|
| 283 |
+
"command": command,
|
| 284 |
+
"wall_time": time.monotonic() - started,
|
| 285 |
+
"output": output,
|
| 286 |
+
"returncode": proc.returncode,
|
| 287 |
+
"exception_info": "",
|
| 288 |
+
}
|
| 289 |
+
if entry["returncode"] and not accept_failure:
|
| 290 |
+
raise RuntimeError(
|
| 291 |
+
f"{step} failed: {entry['exception_info'] or entry['output']}"
|
| 292 |
+
)
|
| 293 |
+
return entry
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
|
| 297 |
+
started = time.monotonic()
|
| 298 |
+
patterns = [
|
| 299 |
+
str(WORKSPACE / "executable"),
|
| 300 |
+
f"{WORKSPACE}/eval/",
|
| 301 |
+
f"{WORKSPACE}/tests/",
|
| 302 |
+
# lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
|
| 303 |
+
"tail -f",
|
| 304 |
+
"development.log",
|
| 305 |
+
]
|
| 306 |
+
killed: list[int] = []
|
| 307 |
+
proc_root = Path("/proc")
|
| 308 |
+
proc_available = proc_root.exists()
|
| 309 |
+
if proc_available:
|
| 310 |
+
for proc_dir in proc_root.iterdir():
|
| 311 |
+
if not proc_dir.name.isdigit():
|
| 312 |
+
continue
|
| 313 |
+
pid = int(proc_dir.name)
|
| 314 |
+
if pid in {os.getpid(), os.getppid()}:
|
| 315 |
+
continue
|
| 316 |
+
try:
|
| 317 |
+
raw = (proc_dir / "cmdline").read_bytes()
|
| 318 |
+
except (FileNotFoundError, PermissionError, ProcessLookupError):
|
| 319 |
+
continue
|
| 320 |
+
cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
|
| 321 |
+
if not any(pattern in cmdline for pattern in patterns):
|
| 322 |
+
continue
|
| 323 |
+
try:
|
| 324 |
+
os.kill(pid, signal.SIGKILL)
|
| 325 |
+
except (PermissionError, ProcessLookupError):
|
| 326 |
+
continue
|
| 327 |
+
killed.append(pid)
|
| 328 |
+
pkill_output = ""
|
| 329 |
+
if aggressive or not proc_available:
|
| 330 |
+
pkill_output = _pkill_aggressive()
|
| 331 |
+
output_parts = []
|
| 332 |
+
if killed:
|
| 333 |
+
output_parts.append("\n".join(str(pid) for pid in killed))
|
| 334 |
+
if pkill_output:
|
| 335 |
+
output_parts.append(pkill_output)
|
| 336 |
+
return {
|
| 337 |
+
"step": "cleanup_lingering_processes",
|
| 338 |
+
"command": "kill leftover branch processes referencing the workspace",
|
| 339 |
+
"wall_time": time.monotonic() - started,
|
| 340 |
+
"output": "\n".join(output_parts),
|
| 341 |
+
"returncode": 0,
|
| 342 |
+
"exception_info": "",
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
|
| 347 |
+
import tarfile
|
| 348 |
+
|
| 349 |
+
with tarfile.open(tar_path, "r:gz") as tf:
|
| 350 |
+
try:
|
| 351 |
+
tf.extractall(dest, filter="fully_trusted")
|
| 352 |
+
except TypeError:
|
| 353 |
+
tf.extractall(dest)
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
def find_results_xml() -> Path | None:
|
| 357 |
+
"""Return the junit xml path if pytest wrote one."""
|
| 358 |
+
for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
|
| 359 |
+
if candidate.exists():
|
| 360 |
+
return candidate
|
| 361 |
+
return None
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
def remove_oracle_handoff_artifacts() -> list[str]:
|
| 365 |
+
"""Drop oracle-agent handoff files from /workspace before snapshot/restore."""
|
| 366 |
+
removed: list[str] = []
|
| 367 |
+
for name in _ORACLE_HANDOFF_NAMES:
|
| 368 |
+
path = WORKSPACE / name
|
| 369 |
+
if path.exists():
|
| 370 |
+
if path.is_dir():
|
| 371 |
+
shutil.rmtree(path)
|
| 372 |
+
else:
|
| 373 |
+
path.unlink()
|
| 374 |
+
removed.append(name)
|
| 375 |
+
return removed
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def _remove_tree(path: Path) -> None:
|
| 379 |
+
"""Remove a file or directory tree, with a shell fallback for overlay races."""
|
| 380 |
+
if path.is_symlink() or path.is_file():
|
| 381 |
+
path.unlink(missing_ok=True)
|
| 382 |
+
return
|
| 383 |
+
if not path.is_dir():
|
| 384 |
+
path.unlink(missing_ok=True)
|
| 385 |
+
return
|
| 386 |
+
for attempt in range(3):
|
| 387 |
+
try:
|
| 388 |
+
shutil.rmtree(path)
|
| 389 |
+
if not path.exists():
|
| 390 |
+
return
|
| 391 |
+
except OSError:
|
| 392 |
+
if attempt == 2:
|
| 393 |
+
run_step(
|
| 394 |
+
f"rm -rf {shlex.quote(str(path))}",
|
| 395 |
+
path.parent,
|
| 396 |
+
timeout=120,
|
| 397 |
+
step="clear_workspace_fallback",
|
| 398 |
+
accept_failure=True,
|
| 399 |
+
)
|
| 400 |
+
if not path.exists():
|
| 401 |
+
return
|
| 402 |
+
raise
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
def ensure_workspace_dir() -> None:
|
| 406 |
+
"""Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
|
| 407 |
+
if WORKSPACE.exists() and not WORKSPACE.is_dir():
|
| 408 |
+
if WORKSPACE.is_symlink() or WORKSPACE.is_file():
|
| 409 |
+
WORKSPACE.unlink()
|
| 410 |
+
else:
|
| 411 |
+
shutil.rmtree(WORKSPACE)
|
| 412 |
+
WORKSPACE.mkdir(parents=True, exist_ok=True)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def clear_workspace() -> None:
|
| 416 |
+
ensure_workspace_dir()
|
| 417 |
+
for path in list(WORKSPACE.iterdir()):
|
| 418 |
+
_remove_tree(path)
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
def restore_reference_executable() -> None:
|
| 422 |
+
"""Write the stashed reference binary into /workspace after a branch overlay.
|
| 423 |
+
|
| 424 |
+
Branch blobs may ship ``executable`` as a dangling symlink into
|
| 425 |
+
``target/release/...``; ``shutil.copy2`` would follow it and raise
|
| 426 |
+
``FileNotFoundError``. Drop whatever the blob left and copy the stashed
|
| 427 |
+
reference as a regular file.
|
| 428 |
+
"""
|
| 429 |
+
ensure_workspace_dir()
|
| 430 |
+
if not STASHED_EXECUTABLE.is_file():
|
| 431 |
+
raise FileNotFoundError(
|
| 432 |
+
f"missing stashed reference executable at {STASHED_EXECUTABLE}"
|
| 433 |
+
)
|
| 434 |
+
dest = WORKSPACE / "executable"
|
| 435 |
+
if dest.exists() or dest.is_symlink():
|
| 436 |
+
if dest.is_dir():
|
| 437 |
+
shutil.rmtree(dest)
|
| 438 |
+
else:
|
| 439 |
+
dest.unlink(missing_ok=True)
|
| 440 |
+
shutil.copy2(STASHED_EXECUTABLE, dest)
|
| 441 |
+
dest.chmod(0o755)
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
def snapshot_workspace(dest: Path) -> None:
|
| 445 |
+
if dest.exists():
|
| 446 |
+
shutil.rmtree(dest)
|
| 447 |
+
shutil.copytree(WORKSPACE, dest, symlinks=True)
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
def restore_workspace(source: Path) -> None:
|
| 451 |
+
clear_workspace()
|
| 452 |
+
shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
|
| 453 |
+
ensure_workspace_dir()
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
|
| 457 |
+
removed: list[str] = []
|
| 458 |
+
for path in root.rglob("*"):
|
| 459 |
+
if path.is_file() and not path.is_symlink():
|
| 460 |
+
try:
|
| 461 |
+
if sha256(path) in hashes:
|
| 462 |
+
path.unlink()
|
| 463 |
+
removed.append(str(path.relative_to(root)))
|
| 464 |
+
except OSError:
|
| 465 |
+
continue
|
| 466 |
+
return removed
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
def branch_tests(branch_info: dict[str, Any]) -> list[str]:
|
| 470 |
+
ignored = {
|
| 471 |
+
item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
|
| 472 |
+
}
|
| 473 |
+
return [name for name in branch_info.get("tests", []) if name not in ignored]
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
def ignored_tests(metadata: dict[str, Any]) -> set[str]:
|
| 477 |
+
result: set[str] = set()
|
| 478 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 479 |
+
result.update(
|
| 480 |
+
f"{branch}/{item['name']}"
|
| 481 |
+
for item in info.get("ignored_tests", [])
|
| 482 |
+
if "name" in item
|
| 483 |
+
)
|
| 484 |
+
return result
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def active_tests(metadata: dict[str, Any]) -> set[str]:
|
| 488 |
+
active: set[str] = set()
|
| 489 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 490 |
+
if info.get("ignored"):
|
| 491 |
+
continue
|
| 492 |
+
ignored = {
|
| 493 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 494 |
+
}
|
| 495 |
+
active.update(
|
| 496 |
+
f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
|
| 497 |
+
)
|
| 498 |
+
return active
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
def inject_not_run(
|
| 502 |
+
result: dict[str, Any], branch: str, tests: list[str], error_code: str
|
| 503 |
+
) -> None:
|
| 504 |
+
result["test_results"].extend(
|
| 505 |
+
{
|
| 506 |
+
"name": name,
|
| 507 |
+
"branch": branch,
|
| 508 |
+
"status": "not_run",
|
| 509 |
+
"extra": {"error_code": error_code},
|
| 510 |
+
}
|
| 511 |
+
for name in tests
|
| 512 |
+
)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def testcase_name(case: ET.Element) -> str:
|
| 516 |
+
classname = case.attrib.get("classname", "")
|
| 517 |
+
name = case.attrib.get("name", "")
|
| 518 |
+
return f"{classname}.{name}" if classname else name
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
# Only these tags under <testcase> represent a result. <system-out> /
|
| 522 |
+
# <system-err> are stdout/stderr captures and must not be treated as results
|
| 523 |
+
# (a leading <system-out> followed by <failure> would otherwise be classified
|
| 524 |
+
# as a stdout-only "passed").
|
| 525 |
+
JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
def parse_junit(
|
| 529 |
+
raw_xml: str, branch: str, expected: list[str], ignored: set[str]
|
| 530 |
+
) -> tuple[list[dict[str, Any]], list[str]]:
|
| 531 |
+
root = ET.fromstring(raw_xml)
|
| 532 |
+
got: set[str] = set()
|
| 533 |
+
results: list[dict[str, Any]] = []
|
| 534 |
+
for case in root.iter("testcase"):
|
| 535 |
+
name = testcase_name(case)
|
| 536 |
+
got.add(name)
|
| 537 |
+
extra: dict[str, Any] = {}
|
| 538 |
+
if "time" in case.attrib:
|
| 539 |
+
try:
|
| 540 |
+
extra["time"] = float(case.attrib["time"])
|
| 541 |
+
except ValueError:
|
| 542 |
+
extra["time"] = case.attrib["time"]
|
| 543 |
+
result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
|
| 544 |
+
# Collapse duplicate same-tag result children. Pytest's
|
| 545 |
+
# "pytest.internal" pseudo-test sometimes emits two identical <error>
|
| 546 |
+
# entries; treating that as a system_error would over-flag a real
|
| 547 |
+
# single failure. Mirrors upstream eval.py:816-820.
|
| 548 |
+
if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
|
| 549 |
+
result_children = [result_children[0]]
|
| 550 |
+
if not result_children:
|
| 551 |
+
status = "passed"
|
| 552 |
+
elif len(result_children) != 1:
|
| 553 |
+
status = "system_error"
|
| 554 |
+
extra["error_details"] = (
|
| 555 |
+
f"Expected 1 result for {name}, got {len(result_children)}: "
|
| 556 |
+
f"{[c.tag for c in result_children]}"
|
| 557 |
+
)
|
| 558 |
+
else:
|
| 559 |
+
first = result_children[0]
|
| 560 |
+
status = first.tag # "skipped" | "failure" | "error"
|
| 561 |
+
extra["message"] = first.attrib.get("message") or ""
|
| 562 |
+
if first.text:
|
| 563 |
+
extra["text"] = first.text
|
| 564 |
+
results.append(
|
| 565 |
+
{"name": name, "branch": branch, "status": status, "extra": extra}
|
| 566 |
+
)
|
| 567 |
+
|
| 568 |
+
active_expected = [name for name in expected if name not in ignored]
|
| 569 |
+
missing = [name for name in active_expected if name not in got]
|
| 570 |
+
results.extend(
|
| 571 |
+
{
|
| 572 |
+
"name": name,
|
| 573 |
+
"branch": branch,
|
| 574 |
+
"status": "not_run",
|
| 575 |
+
"extra": {"error_code": "missing_from_junit_xml"},
|
| 576 |
+
}
|
| 577 |
+
for name in missing
|
| 578 |
+
)
|
| 579 |
+
unexpected = got - set(expected) - ignored
|
| 580 |
+
warnings = (
|
| 581 |
+
[f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
|
| 582 |
+
if unexpected
|
| 583 |
+
else []
|
| 584 |
+
)
|
| 585 |
+
return results, warnings
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
def count_worker_crashes(raw_xml: str) -> int:
|
| 589 |
+
if WORKER_CRASH_PHRASE not in raw_xml:
|
| 590 |
+
return 0
|
| 591 |
+
try:
|
| 592 |
+
root = ET.fromstring(raw_xml)
|
| 593 |
+
except ET.ParseError:
|
| 594 |
+
return 0
|
| 595 |
+
crashes = 0
|
| 596 |
+
for case in root.iter("testcase"):
|
| 597 |
+
for child in case:
|
| 598 |
+
text = (child.get("message") or "") + " " + (child.text or "")
|
| 599 |
+
if (
|
| 600 |
+
child.tag in {"error", "failure"}
|
| 601 |
+
and WORKER_CRASH_PHRASE in text
|
| 602 |
+
and "crashed" in text
|
| 603 |
+
):
|
| 604 |
+
crashes += 1
|
| 605 |
+
break
|
| 606 |
+
return crashes
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
def run_output_indicates_xdist_collapse(output: str) -> bool:
|
| 610 |
+
lower = output.lower()
|
| 611 |
+
return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
def count_junit_failures(raw_xml: str) -> int:
|
| 615 |
+
try:
|
| 616 |
+
root = ET.fromstring(raw_xml)
|
| 617 |
+
except ET.ParseError:
|
| 618 |
+
return 0
|
| 619 |
+
failures = 0
|
| 620 |
+
for case in root.iter("testcase"):
|
| 621 |
+
for child in case:
|
| 622 |
+
if child.tag in {"failure", "error"}:
|
| 623 |
+
failures += 1
|
| 624 |
+
break
|
| 625 |
+
return failures
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def count_junit_passed(raw_xml: str) -> int:
|
| 629 |
+
try:
|
| 630 |
+
root = ET.fromstring(raw_xml)
|
| 631 |
+
except ET.ParseError:
|
| 632 |
+
return 0
|
| 633 |
+
passed = 0
|
| 634 |
+
for case in root.iter("testcase"):
|
| 635 |
+
if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
|
| 636 |
+
passed += 1
|
| 637 |
+
return passed
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
def branch_attempt_metrics(
|
| 641 |
+
raw_xml: str, *, run_output: str, expected_tests: int
|
| 642 |
+
) -> tuple[int, int, int, int]:
|
| 643 |
+
"""Return (crashes, n_testcases, failures, missing_from_xml)."""
|
| 644 |
+
crashes = count_worker_crashes(raw_xml)
|
| 645 |
+
if run_output_indicates_xdist_collapse(run_output):
|
| 646 |
+
crashes = max(crashes, 1)
|
| 647 |
+
n_tests = count_testcases(raw_xml)
|
| 648 |
+
failures = count_junit_failures(raw_xml)
|
| 649 |
+
missing = max(0, expected_tests - n_tests)
|
| 650 |
+
return crashes, n_tests, failures, missing
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
def needs_serial_retry(
|
| 654 |
+
*,
|
| 655 |
+
serial: bool,
|
| 656 |
+
crashes: int,
|
| 657 |
+
missing: int,
|
| 658 |
+
failures: int,
|
| 659 |
+
n_tests: int,
|
| 660 |
+
expected_tests: int,
|
| 661 |
+
run_output: str,
|
| 662 |
+
) -> bool:
|
| 663 |
+
if serial:
|
| 664 |
+
return False
|
| 665 |
+
high_failure_rate = (
|
| 666 |
+
expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
|
| 667 |
+
)
|
| 668 |
+
return (
|
| 669 |
+
crashes > 0
|
| 670 |
+
or missing > 0
|
| 671 |
+
or high_failure_rate
|
| 672 |
+
or run_output_indicates_xdist_collapse(run_output)
|
| 673 |
+
)
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
def count_testcases(raw_xml: str) -> int:
|
| 677 |
+
try:
|
| 678 |
+
return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
|
| 679 |
+
except ET.ParseError:
|
| 680 |
+
return 0
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def scored_results(
|
| 684 |
+
result: dict[str, Any], metadata: dict[str, Any]
|
| 685 |
+
) -> list[dict[str, Any]]:
|
| 686 |
+
active = active_tests(metadata)
|
| 687 |
+
by_key = {
|
| 688 |
+
f"{test['branch']}/{test['name']}": test
|
| 689 |
+
for test in result["test_results"]
|
| 690 |
+
if f"{test['branch']}/{test['name']}" in active
|
| 691 |
+
}
|
| 692 |
+
return [
|
| 693 |
+
by_key.get(
|
| 694 |
+
key,
|
| 695 |
+
{
|
| 696 |
+
"branch": key.split("/", 1)[0],
|
| 697 |
+
"name": key.split("/", 1)[1],
|
| 698 |
+
"status": "not_run",
|
| 699 |
+
"extra": {"error_code": "missing_from_results"},
|
| 700 |
+
},
|
| 701 |
+
)
|
| 702 |
+
for key in sorted(active)
|
| 703 |
+
]
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 707 |
+
scored = scored_results(result, metadata)
|
| 708 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 709 |
+
n_tests = len(scored)
|
| 710 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 711 |
+
# Multi-key reward: Harbor's default Mean aggregates each key independently
|
| 712 |
+
# (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
|
| 713 |
+
# the proportion of tasks scoring a perfect pass-rate and mean of
|
| 714 |
+
# "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
|
| 715 |
+
# per-task pass-rate whose mean is the overall mean reward.
|
| 716 |
+
return {
|
| 717 |
+
"reward": pass_rate,
|
| 718 |
+
"resolved": 1.0 if pass_rate >= 1.0 else 0.0,
|
| 719 |
+
"almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 724 |
+
scored = scored_results(result, metadata)
|
| 725 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 726 |
+
n_tests = len(scored)
|
| 727 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 728 |
+
return {
|
| 729 |
+
"pass_rate": pass_rate,
|
| 730 |
+
"resolved": int(
|
| 731 |
+
bool(
|
| 732 |
+
n_tests
|
| 733 |
+
and n_passed == n_tests
|
| 734 |
+
and not result["test_branch_errors"]
|
| 735 |
+
and not result["error_code"]
|
| 736 |
+
)
|
| 737 |
+
),
|
| 738 |
+
"n_passed": n_passed,
|
| 739 |
+
"n_tests": n_tests,
|
| 740 |
+
"n_branch_errors": len(result["test_branch_errors"]),
|
| 741 |
+
"infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
|
| 742 |
+
"executable_hash_present": int(bool(result.get("executable_hash"))),
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
def use_script_pty() -> bool:
|
| 747 |
+
return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
def script_pty_available() -> bool:
|
| 751 |
+
return shutil.which("script") is not None
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
def branch_env(
|
| 755 |
+
*,
|
| 756 |
+
serial: bool,
|
| 757 |
+
has_rerunfailures: bool,
|
| 758 |
+
extras: dict[str, str] | None = None,
|
| 759 |
+
) -> dict[str, str]:
|
| 760 |
+
addopts = ["--max-worker-restart=4"]
|
| 761 |
+
# A serial fallback is already a complete second execution. Re-running each
|
| 762 |
+
# failing test two more times makes large, failure-heavy suites prohibitively
|
| 763 |
+
# slow and adds little signal.
|
| 764 |
+
if has_rerunfailures and not serial:
|
| 765 |
+
addopts.extend(["--reruns=2", "--reruns-delay=1"])
|
| 766 |
+
env = {
|
| 767 |
+
"PYTEST_ADDOPTS": " ".join(addopts),
|
| 768 |
+
# Match upstream non-TTY regression environments (dirble log format, etc.).
|
| 769 |
+
"NO_COLOR": "1",
|
| 770 |
+
"TERM": "dumb",
|
| 771 |
+
"CLICOLOR": "0",
|
| 772 |
+
"CLICOLOR_FORCE": "0",
|
| 773 |
+
"COLORTERM": "",
|
| 774 |
+
}
|
| 775 |
+
if extras:
|
| 776 |
+
env.update(extras)
|
| 777 |
+
xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
|
| 778 |
+
if serial:
|
| 779 |
+
xdist_workers = "1"
|
| 780 |
+
if xdist_workers:
|
| 781 |
+
env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
|
| 782 |
+
return env
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
_SERIAL_RUN_SH = ".programgym_run_serial.sh"
|
| 786 |
+
# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
|
| 787 |
+
# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
|
| 788 |
+
_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
def prepare_serial_run_sh(run_sh: Path) -> Path:
|
| 792 |
+
"""Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
|
| 793 |
+
serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
|
| 794 |
+
patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
|
| 795 |
+
serial_sh.write_text(patched)
|
| 796 |
+
serial_sh.chmod(0o755)
|
| 797 |
+
return serial_sh
|
| 798 |
+
|
| 799 |
+
|
| 800 |
+
def run_tests_command(*, serial: bool) -> str:
|
| 801 |
+
if serial:
|
| 802 |
+
inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
|
| 803 |
+
else:
|
| 804 |
+
inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
|
| 805 |
+
if use_script_pty() and script_pty_available():
|
| 806 |
+
return f"script -q -c {shlex.quote(inner)} /dev/null"
|
| 807 |
+
return inner
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
|
| 811 |
+
|
| 812 |
+
|
| 813 |
+
def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
|
| 814 |
+
"""Locate the per-instance blob directory.
|
| 815 |
+
|
| 816 |
+
Resolution order:
|
| 817 |
+
|
| 818 |
+
1. ``/tests/blobs/`` if pre-fetched into the task at generation time
|
| 819 |
+
(``programgym-adapter --download-blobs``). Verifier-only mount, so
|
| 820 |
+
agent never sees these.
|
| 821 |
+
2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
|
| 822 |
+
tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
|
| 823 |
+
for offline reruns sharing a cache across many tasks.
|
| 824 |
+
3. ``huggingface_hub.snapshot_download`` from
|
| 825 |
+
``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
|
| 826 |
+
|
| 827 |
+
The returned directory contains ``tests/<branch>.tar.gz`` per active
|
| 828 |
+
branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
|
| 829 |
+
on HF.
|
| 830 |
+
"""
|
| 831 |
+
if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
|
| 832 |
+
return BAKED_BLOB_DIR
|
| 833 |
+
|
| 834 |
+
local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
|
| 835 |
+
if local:
|
| 836 |
+
candidate = Path(local) / instance_id
|
| 837 |
+
if candidate.exists():
|
| 838 |
+
return candidate
|
| 839 |
+
raise FileNotFoundError(
|
| 840 |
+
f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
|
| 841 |
+
)
|
| 842 |
+
|
| 843 |
+
repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
|
| 844 |
+
"hf_repo_id", DEFAULT_HF_REPO_ID
|
| 845 |
+
)
|
| 846 |
+
revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
|
| 847 |
+
"hf_revision", DEFAULT_HF_REVISION
|
| 848 |
+
)
|
| 849 |
+
|
| 850 |
+
from huggingface_hub import snapshot_download
|
| 851 |
+
|
| 852 |
+
cache_root = Path(
|
| 853 |
+
snapshot_download(
|
| 854 |
+
repo_id,
|
| 855 |
+
repo_type="dataset",
|
| 856 |
+
revision=revision,
|
| 857 |
+
allow_patterns=f"{instance_id}/**",
|
| 858 |
+
)
|
| 859 |
+
)
|
| 860 |
+
blob_dir = cache_root / instance_id
|
| 861 |
+
if not blob_dir.exists():
|
| 862 |
+
raise FileNotFoundError(
|
| 863 |
+
f"HF blob directory missing for {instance_id} at {blob_dir}"
|
| 864 |
+
)
|
| 865 |
+
return blob_dir
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
|
| 869 |
+
bootstrap_toolchain_path()
|
| 870 |
+
branches = metadata.get("branches", {})
|
| 871 |
+
active_branch_items = [
|
| 872 |
+
(name, info) for name, info in branches.items() if not info.get("ignored")
|
| 873 |
+
]
|
| 874 |
+
result: dict[str, Any] = {
|
| 875 |
+
"test_results": [],
|
| 876 |
+
"error_code": None,
|
| 877 |
+
"error_details": None,
|
| 878 |
+
"log": [],
|
| 879 |
+
"solution_branch": "submission",
|
| 880 |
+
"test_branches": [name for name, _ in active_branch_items],
|
| 881 |
+
"test_branch_errors": {},
|
| 882 |
+
"executable_hash": None,
|
| 883 |
+
"warnings": [],
|
| 884 |
+
}
|
| 885 |
+
|
| 886 |
+
instance_id = metadata["instance_id"]
|
| 887 |
+
|
| 888 |
+
compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
|
| 889 |
+
branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
|
| 890 |
+
|
| 891 |
+
def fail_all(error_code: str, details: str) -> dict[str, Any]:
|
| 892 |
+
result["error_code"] = error_code
|
| 893 |
+
result["error_details"] = details
|
| 894 |
+
for branch, info in active_branch_items:
|
| 895 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 896 |
+
return result
|
| 897 |
+
|
| 898 |
+
with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
|
| 899 |
+
compiled_snapshot = Path(tmp) / "compiled"
|
| 900 |
+
|
| 901 |
+
started = time.monotonic()
|
| 902 |
+
removed = remove_hashed_files(
|
| 903 |
+
WORKSPACE, set(metadata.get("eval_clean_hashes", []))
|
| 904 |
+
)
|
| 905 |
+
result["log"].append(
|
| 906 |
+
{
|
| 907 |
+
"step": "remove_hashed_files",
|
| 908 |
+
"command": "remove files matching eval_clean_hashes",
|
| 909 |
+
"wall_time": time.monotonic() - started,
|
| 910 |
+
"output": "".join(f"removed '{path}'\n" for path in removed),
|
| 911 |
+
"returncode": 0,
|
| 912 |
+
"exception_info": "",
|
| 913 |
+
}
|
| 914 |
+
)
|
| 915 |
+
|
| 916 |
+
compile_sh = WORKSPACE / "compile.sh"
|
| 917 |
+
if not compile_sh.exists():
|
| 918 |
+
return fail_all(
|
| 919 |
+
"missing_compile_sh", "submission did not contain compile.sh"
|
| 920 |
+
)
|
| 921 |
+
|
| 922 |
+
seed = (
|
| 923 |
+
"if [ ! -d .git ]; then "
|
| 924 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 925 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 926 |
+
"git -c init.defaultBranch=gold init -q && "
|
| 927 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
|
| 928 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 929 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 930 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
|
| 931 |
+
"fi"
|
| 932 |
+
)
|
| 933 |
+
try:
|
| 934 |
+
result["log"].append(
|
| 935 |
+
run_step(seed, WORKSPACE, timeout=300, step="seed_git")
|
| 936 |
+
)
|
| 937 |
+
compile_log = run_step(
|
| 938 |
+
"chmod +x ./compile.sh && ./compile.sh",
|
| 939 |
+
WORKSPACE,
|
| 940 |
+
timeout=compile_timeout,
|
| 941 |
+
step="compile",
|
| 942 |
+
accept_failure=True,
|
| 943 |
+
)
|
| 944 |
+
result["log"].append(compile_log)
|
| 945 |
+
if compile_log["returncode"]:
|
| 946 |
+
return fail_all("compile_failed", compile_log["output"])
|
| 947 |
+
executable = WORKSPACE / "executable"
|
| 948 |
+
if not executable.exists():
|
| 949 |
+
return fail_all(
|
| 950 |
+
"missing_executable",
|
| 951 |
+
"compile.sh completed but did not create ./executable",
|
| 952 |
+
)
|
| 953 |
+
STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
|
| 954 |
+
# `move` (not copy) so /workspace doesn't keep a parallel copy of
|
| 955 |
+
# the agent's executable during the stash→restore window. Mirrors
|
| 956 |
+
# upstream `mv ./executable {STASHED}` (eval.py:472).
|
| 957 |
+
shutil.move(str(executable), STASHED_EXECUTABLE)
|
| 958 |
+
result["executable_hash"] = sha256(STASHED_EXECUTABLE)
|
| 959 |
+
result["log"].append(
|
| 960 |
+
run_step(
|
| 961 |
+
"pip3 install -q --disable-pip-version-check pytest-rerunfailures",
|
| 962 |
+
WORKSPACE,
|
| 963 |
+
timeout=120,
|
| 964 |
+
step="install_rerunfailures",
|
| 965 |
+
accept_failure=True,
|
| 966 |
+
)
|
| 967 |
+
)
|
| 968 |
+
has_rerunfailures = result["log"][-1]["returncode"] == 0
|
| 969 |
+
handoff_removed = remove_oracle_handoff_artifacts()
|
| 970 |
+
if handoff_removed:
|
| 971 |
+
result["log"].append(
|
| 972 |
+
{
|
| 973 |
+
"step": "remove_oracle_handoff",
|
| 974 |
+
"command": "remove oracle handoff artifacts from workspace",
|
| 975 |
+
"wall_time": 0.0,
|
| 976 |
+
"output": "".join(
|
| 977 |
+
f"removed '{name}'\n" for name in handoff_removed
|
| 978 |
+
),
|
| 979 |
+
"returncode": 0,
|
| 980 |
+
"exception_info": "",
|
| 981 |
+
}
|
| 982 |
+
)
|
| 983 |
+
snapshot_workspace(compiled_snapshot)
|
| 984 |
+
except Exception as exc:
|
| 985 |
+
return fail_all(type(exc).__name__, str(exc))
|
| 986 |
+
|
| 987 |
+
try:
|
| 988 |
+
blob_dir = resolve_blob_dir(instance_id, metadata)
|
| 989 |
+
except Exception as exc:
|
| 990 |
+
details = f"{type(exc).__name__}: {exc}"
|
| 991 |
+
for branch, info in active_branch_items:
|
| 992 |
+
result["test_branch_errors"][branch] = [
|
| 993 |
+
{
|
| 994 |
+
"error_code": "blob_resolution_failed",
|
| 995 |
+
"error_details": details,
|
| 996 |
+
}
|
| 997 |
+
]
|
| 998 |
+
inject_not_run(
|
| 999 |
+
result, branch, branch_tests(info), "blob_resolution_failed"
|
| 1000 |
+
)
|
| 1001 |
+
return result
|
| 1002 |
+
|
| 1003 |
+
for branch, info in active_branch_items:
|
| 1004 |
+
tests = branch_tests(info)
|
| 1005 |
+
blob = blob_dir / "tests" / f"{branch}.tar.gz"
|
| 1006 |
+
if not blob.exists():
|
| 1007 |
+
result["test_branch_errors"][branch] = [
|
| 1008 |
+
{"error_code": "missing_test_blob", "error_details": blob.name}
|
| 1009 |
+
]
|
| 1010 |
+
inject_not_run(result, branch, tests, "missing_test_blob")
|
| 1011 |
+
continue
|
| 1012 |
+
|
| 1013 |
+
best_xml = ""
|
| 1014 |
+
# Prefer a complete, clean XML result, then the result covering the
|
| 1015 |
+
# most expected tests, and only then the one with the most passes.
|
| 1016 |
+
# Pass-count-only ranking can retain a partial xdist result over a
|
| 1017 |
+
# complete serial result.
|
| 1018 |
+
best_quality = (-1, -1, -1)
|
| 1019 |
+
serial = bool(metadata.get("force_serial_branches"))
|
| 1020 |
+
branch_log: list[dict[str, Any]] = []
|
| 1021 |
+
branch_ignored = {
|
| 1022 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 1023 |
+
}
|
| 1024 |
+
n_expected = len([name for name in tests if name not in branch_ignored])
|
| 1025 |
+
|
| 1026 |
+
def merge_best_xml(raw_xml: str) -> None:
|
| 1027 |
+
try:
|
| 1028 |
+
parsed, warnings = parse_junit(
|
| 1029 |
+
raw_xml, branch, list(info.get("tests", [])), branch_ignored
|
| 1030 |
+
)
|
| 1031 |
+
except Exception as exc:
|
| 1032 |
+
result["test_branch_errors"][branch] = [
|
| 1033 |
+
{"error_code": "xml_parse_error", "error_details": str(exc)}
|
| 1034 |
+
]
|
| 1035 |
+
inject_not_run(result, branch, tests, "xml_parse_error")
|
| 1036 |
+
else:
|
| 1037 |
+
result["test_results"].extend(parsed)
|
| 1038 |
+
result["warnings"].extend(warnings)
|
| 1039 |
+
|
| 1040 |
+
while True:
|
| 1041 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1042 |
+
restore_workspace(compiled_snapshot)
|
| 1043 |
+
extract_trusted_blob(blob, WORKSPACE)
|
| 1044 |
+
restore_reference_executable()
|
| 1045 |
+
actual_hash = sha256(WORKSPACE / "executable")
|
| 1046 |
+
if actual_hash != result["executable_hash"]:
|
| 1047 |
+
result["test_branch_errors"][branch] = [
|
| 1048 |
+
{
|
| 1049 |
+
"error_code": "executable_hash_mismatch",
|
| 1050 |
+
"error_details": (
|
| 1051 |
+
f"expected {result['executable_hash']}, got {actual_hash}"
|
| 1052 |
+
),
|
| 1053 |
+
}
|
| 1054 |
+
]
|
| 1055 |
+
inject_not_run(result, branch, tests, "executable_hash_mismatch")
|
| 1056 |
+
break
|
| 1057 |
+
run_sh = WORKSPACE / "eval" / "run.sh"
|
| 1058 |
+
if not run_sh.exists():
|
| 1059 |
+
result["test_branch_errors"][branch] = [
|
| 1060 |
+
{
|
| 1061 |
+
"error_code": "missing_run_sh",
|
| 1062 |
+
"error_details": "eval/run.sh missing",
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
inject_not_run(result, branch, tests, "missing_run_sh")
|
| 1066 |
+
break
|
| 1067 |
+
# Upstream rewrites thread→signal so xdist workers fail cleanly
|
| 1068 |
+
# instead of os._exit(1) on timeout. That works in fresh
|
| 1069 |
+
# containers per branch; here we reuse one container and
|
| 1070 |
+
# signal timeouts leave TUI/log-watcher subprocesses alive
|
| 1071 |
+
# (e.g. lazygit --logs + tail -f), wedging pytest for up to
|
| 1072 |
+
# branch_timeout. Keep the blob's thread method and rely on
|
| 1073 |
+
# cleanup_lingering_processes + serial fallback after crashes.
|
| 1074 |
+
env = branch_env(
|
| 1075 |
+
serial=serial,
|
| 1076 |
+
has_rerunfailures=has_rerunfailures,
|
| 1077 |
+
extras=metadata.get("branch_env"),
|
| 1078 |
+
)
|
| 1079 |
+
branch_log.append(
|
| 1080 |
+
run_step(
|
| 1081 |
+
"rm -f eval/results.xml results.xml",
|
| 1082 |
+
WORKSPACE,
|
| 1083 |
+
timeout=120,
|
| 1084 |
+
step="clean_stale_results",
|
| 1085 |
+
accept_failure=True,
|
| 1086 |
+
)
|
| 1087 |
+
)
|
| 1088 |
+
if serial:
|
| 1089 |
+
prepare_serial_run_sh(run_sh)
|
| 1090 |
+
run_entry = run_step(
|
| 1091 |
+
run_tests_command(serial=serial),
|
| 1092 |
+
WORKSPACE,
|
| 1093 |
+
timeout=branch_timeout,
|
| 1094 |
+
env=env,
|
| 1095 |
+
step="run_tests",
|
| 1096 |
+
accept_failure=True,
|
| 1097 |
+
)
|
| 1098 |
+
branch_log.append(run_entry)
|
| 1099 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1100 |
+
xml_path = find_results_xml()
|
| 1101 |
+
if xml_path is None:
|
| 1102 |
+
if best_xml:
|
| 1103 |
+
merge_best_xml(best_xml)
|
| 1104 |
+
break
|
| 1105 |
+
if serial:
|
| 1106 |
+
result["test_branch_errors"][branch] = [
|
| 1107 |
+
{
|
| 1108 |
+
"error_code": "missing_results_xml",
|
| 1109 |
+
"error_details": "eval/results.xml was not produced",
|
| 1110 |
+
}
|
| 1111 |
+
]
|
| 1112 |
+
inject_not_run(result, branch, tests, "missing_results_xml")
|
| 1113 |
+
break
|
| 1114 |
+
serial = True
|
| 1115 |
+
continue
|
| 1116 |
+
raw_xml = xml_path.read_text(errors="replace")
|
| 1117 |
+
crashes, n_tests, failures, missing = branch_attempt_metrics(
|
| 1118 |
+
raw_xml,
|
| 1119 |
+
run_output=run_entry.get("output", ""),
|
| 1120 |
+
expected_tests=n_expected,
|
| 1121 |
+
)
|
| 1122 |
+
useful = count_junit_passed(raw_xml)
|
| 1123 |
+
quality = (
|
| 1124 |
+
int(crashes == 0 and missing == 0),
|
| 1125 |
+
n_tests,
|
| 1126 |
+
useful,
|
| 1127 |
+
)
|
| 1128 |
+
if quality > best_quality:
|
| 1129 |
+
best_xml = raw_xml
|
| 1130 |
+
best_quality = quality
|
| 1131 |
+
retry = needs_serial_retry(
|
| 1132 |
+
serial=serial,
|
| 1133 |
+
crashes=crashes,
|
| 1134 |
+
missing=missing,
|
| 1135 |
+
failures=failures,
|
| 1136 |
+
n_tests=n_tests,
|
| 1137 |
+
expected_tests=n_expected,
|
| 1138 |
+
run_output=run_entry.get("output", ""),
|
| 1139 |
+
)
|
| 1140 |
+
if not retry:
|
| 1141 |
+
merge_best_xml(best_xml)
|
| 1142 |
+
break
|
| 1143 |
+
serial = True
|
| 1144 |
+
for entry in branch_log:
|
| 1145 |
+
entry["branch"] = branch
|
| 1146 |
+
result["log"].extend(branch_log)
|
| 1147 |
+
|
| 1148 |
+
return result
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
|
| 1152 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1153 |
+
write_json(LOG_DIR / "programgym_eval.json", result)
|
| 1154 |
+
write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
|
| 1155 |
+
rewards = summarize(result, metadata)
|
| 1156 |
+
write_json(LOG_DIR / "reward.json", rewards)
|
| 1157 |
+
(LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
def main() -> None:
|
| 1161 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1162 |
+
log_path = LOG_DIR / "programgym_eval.log"
|
| 1163 |
+
metadata = json.loads(METADATA_PATH.read_text())
|
| 1164 |
+
branches = metadata.get("branches", {})
|
| 1165 |
+
try:
|
| 1166 |
+
result = evaluate(metadata)
|
| 1167 |
+
except Exception as exc:
|
| 1168 |
+
error_code = type(exc).__name__
|
| 1169 |
+
result = {
|
| 1170 |
+
"test_results": [],
|
| 1171 |
+
"error_code": error_code,
|
| 1172 |
+
"error_details": str(exc),
|
| 1173 |
+
"log": [
|
| 1174 |
+
{
|
| 1175 |
+
"step": "evaluator_exception",
|
| 1176 |
+
"exception_info": traceback.format_exc(),
|
| 1177 |
+
"returncode": 1,
|
| 1178 |
+
}
|
| 1179 |
+
],
|
| 1180 |
+
"solution_branch": "submission",
|
| 1181 |
+
"test_branches": [
|
| 1182 |
+
name for name, info in branches.items() if not info.get("ignored")
|
| 1183 |
+
],
|
| 1184 |
+
"test_branch_errors": {
|
| 1185 |
+
"__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
|
| 1186 |
+
},
|
| 1187 |
+
"executable_hash": None,
|
| 1188 |
+
"warnings": [],
|
| 1189 |
+
}
|
| 1190 |
+
for branch, info in branches.items():
|
| 1191 |
+
if info.get("ignored"):
|
| 1192 |
+
continue
|
| 1193 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 1194 |
+
log_path.write_text(traceback.format_exc())
|
| 1195 |
+
else:
|
| 1196 |
+
log_path.write_text("")
|
| 1197 |
+
write_outputs(result, metadata)
|
| 1198 |
+
|
| 1199 |
+
|
| 1200 |
+
if __name__ == "__main__":
|
| 1201 |
+
main()
|
mainmatter--cargo-autoinherit.0bb5bee/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,1817 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [
|
| 7 |
+
{
|
| 8 |
+
"name": "eval.tests.test_autoinherit_basic.test_dispatch_rewrites_both_normal_and_inherited",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 12 |
+
"id": "gold_fail",
|
| 13 |
+
"message": "test failed against the reference executable",
|
| 14 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 15 |
+
"severity": "error",
|
| 16 |
+
"stage": "gold_execution"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"id": "generic_keyword_oracle",
|
| 20 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 21 |
+
"path": "eval/tests/test_autoinherit_basic.py",
|
| 22 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 23 |
+
"severity": "error",
|
| 24 |
+
"stage": "static_lint"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "eval.tests.test_autoinherit_basic.test_empty_workspace_no_member_deps_is_noop_exact",
|
| 30 |
+
"reasons": [
|
| 31 |
+
{
|
| 32 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 33 |
+
"id": "gold_fail",
|
| 34 |
+
"message": "test failed against the reference executable",
|
| 35 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 36 |
+
"severity": "error",
|
| 37 |
+
"stage": "gold_execution"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name": "eval.tests.test_autoinherit_basic.test_member_already_inherited_is_byte_identical_noop",
|
| 43 |
+
"reasons": [
|
| 44 |
+
{
|
| 45 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 46 |
+
"id": "gold_fail",
|
| 47 |
+
"message": "test failed against the reference executable",
|
| 48 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 49 |
+
"severity": "error",
|
| 50 |
+
"stage": "gold_execution"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "eval.tests.test_autoinherit_basic.test_multiple_members_share_one_workspace_dep_exact",
|
| 56 |
+
"reasons": [
|
| 57 |
+
{
|
| 58 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 59 |
+
"id": "gold_fail",
|
| 60 |
+
"message": "test failed against the reference executable",
|
| 61 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 62 |
+
"severity": "error",
|
| 63 |
+
"stage": "gold_execution"
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "eval.tests.test_autoinherit_basic.test_retains_existing_workspace_dependencies_exact",
|
| 69 |
+
"reasons": [
|
| 70 |
+
{
|
| 71 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 72 |
+
"id": "gold_fail",
|
| 73 |
+
"message": "test failed against the reference executable",
|
| 74 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 75 |
+
"severity": "error",
|
| 76 |
+
"stage": "gold_execution"
|
| 77 |
+
}
|
| 78 |
+
]
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "eval.tests.test_autoinherit_basic.test_running_twice_is_idempotent_exact",
|
| 82 |
+
"reasons": [
|
| 83 |
+
{
|
| 84 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 85 |
+
"id": "gold_fail",
|
| 86 |
+
"message": "test failed against the reference executable",
|
| 87 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 88 |
+
"severity": "error",
|
| 89 |
+
"stage": "gold_execution"
|
| 90 |
+
}
|
| 91 |
+
]
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"name": "eval.tests.test_autoinherit_basic.test_single_member_normalized_exact",
|
| 95 |
+
"reasons": [
|
| 96 |
+
{
|
| 97 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 98 |
+
"id": "gold_fail",
|
| 99 |
+
"message": "test failed against the reference executable",
|
| 100 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 101 |
+
"severity": "error",
|
| 102 |
+
"stage": "gold_execution"
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "eval.tests.test_autoinherit_basic.test_success_dispatch_exit_zero_and_stdout_stderr_empty",
|
| 108 |
+
"reasons": [
|
| 109 |
+
{
|
| 110 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 111 |
+
"id": "gold_fail",
|
| 112 |
+
"message": "test failed against the reference executable",
|
| 113 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 114 |
+
"severity": "error",
|
| 115 |
+
"stage": "gold_execution"
|
| 116 |
+
}
|
| 117 |
+
]
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"name": "eval.tests.test_autoinherit_basic.test_version_caret_stripped_in_workspace_exact",
|
| 121 |
+
"reasons": [
|
| 122 |
+
{
|
| 123 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 124 |
+
"id": "gold_fail",
|
| 125 |
+
"message": "test failed against the reference executable",
|
| 126 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 127 |
+
"severity": "error",
|
| 128 |
+
"stage": "gold_execution"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"name": "eval.tests.test_autoinherit_deps.test_all_dep_kinds_combined_in_one_member_exact",
|
| 134 |
+
"reasons": [
|
| 135 |
+
{
|
| 136 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 137 |
+
"id": "gold_fail",
|
| 138 |
+
"message": "test failed against the reference executable",
|
| 139 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 140 |
+
"severity": "error",
|
| 141 |
+
"stage": "gold_execution"
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "eval.tests.test_autoinherit_deps.test_build_dependencies_promoted_to_workspace_exact",
|
| 147 |
+
"reasons": [
|
| 148 |
+
{
|
| 149 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 150 |
+
"id": "gold_fail",
|
| 151 |
+
"message": "test failed against the reference executable",
|
| 152 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 153 |
+
"severity": "error",
|
| 154 |
+
"stage": "gold_execution"
|
| 155 |
+
}
|
| 156 |
+
]
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"name": "eval.tests.test_autoinherit_deps.test_compatible_caret_requirements_merge_to_max_exact",
|
| 160 |
+
"reasons": [
|
| 161 |
+
{
|
| 162 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 163 |
+
"id": "gold_fail",
|
| 164 |
+
"message": "test failed against the reference executable",
|
| 165 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 166 |
+
"severity": "error",
|
| 167 |
+
"stage": "gold_execution"
|
| 168 |
+
}
|
| 169 |
+
]
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "eval.tests.test_autoinherit_deps.test_default_dotted_form_is_inline_exact",
|
| 173 |
+
"reasons": [
|
| 174 |
+
{
|
| 175 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 176 |
+
"id": "gold_fail",
|
| 177 |
+
"message": "test failed against the reference executable",
|
| 178 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 179 |
+
"severity": "error",
|
| 180 |
+
"stage": "gold_execution"
|
| 181 |
+
},
|
| 182 |
+
{
|
| 183 |
+
"id": "generic_keyword_oracle",
|
| 184 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 185 |
+
"path": "eval/tests/test_autoinherit_deps.py",
|
| 186 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 187 |
+
"severity": "error",
|
| 188 |
+
"stage": "static_lint"
|
| 189 |
+
}
|
| 190 |
+
]
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"name": "eval.tests.test_autoinherit_deps.test_default_features_disabled_preserved_exact",
|
| 194 |
+
"reasons": [
|
| 195 |
+
{
|
| 196 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 197 |
+
"id": "gold_fail",
|
| 198 |
+
"message": "test failed against the reference executable",
|
| 199 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 200 |
+
"severity": "error",
|
| 201 |
+
"stage": "gold_execution"
|
| 202 |
+
}
|
| 203 |
+
]
|
| 204 |
+
},
|
| 205 |
+
{
|
| 206 |
+
"name": "eval.tests.test_autoinherit_deps.test_default_features_equal_across_members_shared_exact",
|
| 207 |
+
"reasons": [
|
| 208 |
+
{
|
| 209 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 210 |
+
"id": "gold_fail",
|
| 211 |
+
"message": "test failed against the reference executable",
|
| 212 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 213 |
+
"severity": "error",
|
| 214 |
+
"stage": "gold_execution"
|
| 215 |
+
}
|
| 216 |
+
]
|
| 217 |
+
},
|
| 218 |
+
{
|
| 219 |
+
"name": "eval.tests.test_autoinherit_deps.test_default_features_mismatch_merges_to_false_exact",
|
| 220 |
+
"reasons": [
|
| 221 |
+
{
|
| 222 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 223 |
+
"id": "gold_fail",
|
| 224 |
+
"message": "test failed against the reference executable",
|
| 225 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 226 |
+
"severity": "error",
|
| 227 |
+
"stage": "gold_execution"
|
| 228 |
+
}
|
| 229 |
+
]
|
| 230 |
+
},
|
| 231 |
+
{
|
| 232 |
+
"name": "eval.tests.test_autoinherit_deps.test_dev_and_build_deps_across_members_merge_exact",
|
| 233 |
+
"reasons": [
|
| 234 |
+
{
|
| 235 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 236 |
+
"id": "gold_fail",
|
| 237 |
+
"message": "test failed against the reference executable",
|
| 238 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 239 |
+
"severity": "error",
|
| 240 |
+
"stage": "gold_execution"
|
| 241 |
+
}
|
| 242 |
+
]
|
| 243 |
+
},
|
| 244 |
+
{
|
| 245 |
+
"name": "eval.tests.test_autoinherit_deps.test_dev_dependencies_promoted_to_workspace_exact",
|
| 246 |
+
"reasons": [
|
| 247 |
+
{
|
| 248 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 249 |
+
"id": "gold_fail",
|
| 250 |
+
"message": "test failed against the reference executable",
|
| 251 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 252 |
+
"severity": "error",
|
| 253 |
+
"stage": "gold_execution"
|
| 254 |
+
}
|
| 255 |
+
]
|
| 256 |
+
},
|
| 257 |
+
{
|
| 258 |
+
"name": "eval.tests.test_autoinherit_deps.test_multiple_features_preserved_exact",
|
| 259 |
+
"reasons": [
|
| 260 |
+
{
|
| 261 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 262 |
+
"id": "gold_fail",
|
| 263 |
+
"message": "test failed against the reference executable",
|
| 264 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 265 |
+
"severity": "error",
|
| 266 |
+
"stage": "gold_execution"
|
| 267 |
+
}
|
| 268 |
+
]
|
| 269 |
+
},
|
| 270 |
+
{
|
| 271 |
+
"name": "eval.tests.test_autoinherit_deps.test_optional_dep_keeps_optional_true_exact",
|
| 272 |
+
"reasons": [
|
| 273 |
+
{
|
| 274 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 275 |
+
"id": "gold_fail",
|
| 276 |
+
"message": "test failed against the reference executable",
|
| 277 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 278 |
+
"severity": "error",
|
| 279 |
+
"stage": "gold_execution"
|
| 280 |
+
}
|
| 281 |
+
]
|
| 282 |
+
},
|
| 283 |
+
{
|
| 284 |
+
"name": "eval.tests.test_autoinherit_deps.test_optional_only_dep_keeps_optional_exact",
|
| 285 |
+
"reasons": [
|
| 286 |
+
{
|
| 287 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 288 |
+
"id": "gold_fail",
|
| 289 |
+
"message": "test failed against the reference executable",
|
| 290 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 291 |
+
"severity": "error",
|
| 292 |
+
"stage": "gold_execution"
|
| 293 |
+
}
|
| 294 |
+
]
|
| 295 |
+
},
|
| 296 |
+
{
|
| 297 |
+
"name": "eval.tests.test_autoinherit_deps.test_path_dependency_shared_as_relative_exact",
|
| 298 |
+
"reasons": [
|
| 299 |
+
{
|
| 300 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 301 |
+
"id": "gold_fail",
|
| 302 |
+
"message": "test failed against the reference executable",
|
| 303 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 304 |
+
"severity": "error",
|
| 305 |
+
"stage": "gold_execution"
|
| 306 |
+
}
|
| 307 |
+
]
|
| 308 |
+
},
|
| 309 |
+
{
|
| 310 |
+
"name": "eval.tests.test_autoinherit_deps.test_prefer_simple_dotted_keeps_inline_when_features_exact",
|
| 311 |
+
"reasons": [
|
| 312 |
+
{
|
| 313 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 314 |
+
"id": "gold_fail",
|
| 315 |
+
"message": "test failed against the reference executable",
|
| 316 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 317 |
+
"severity": "error",
|
| 318 |
+
"stage": "gold_execution"
|
| 319 |
+
}
|
| 320 |
+
]
|
| 321 |
+
},
|
| 322 |
+
{
|
| 323 |
+
"name": "eval.tests.test_autoinherit_deps.test_prefer_simple_dotted_plain_dep_exact",
|
| 324 |
+
"reasons": [
|
| 325 |
+
{
|
| 326 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 327 |
+
"id": "gold_fail",
|
| 328 |
+
"message": "test failed against the reference executable",
|
| 329 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 330 |
+
"severity": "error",
|
| 331 |
+
"stage": "gold_execution"
|
| 332 |
+
},
|
| 333 |
+
{
|
| 334 |
+
"id": "generic_keyword_oracle",
|
| 335 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 336 |
+
"path": "eval/tests/test_autoinherit_deps.py",
|
| 337 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 338 |
+
"severity": "error",
|
| 339 |
+
"stage": "static_lint"
|
| 340 |
+
}
|
| 341 |
+
]
|
| 342 |
+
},
|
| 343 |
+
{
|
| 344 |
+
"name": "eval.tests.test_autoinherit_deps.test_underscore_dev_dependencies_table_kept",
|
| 345 |
+
"reasons": [
|
| 346 |
+
{
|
| 347 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 348 |
+
"id": "gold_fail",
|
| 349 |
+
"message": "test failed against the reference executable",
|
| 350 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 351 |
+
"severity": "error",
|
| 352 |
+
"stage": "gold_execution"
|
| 353 |
+
}
|
| 354 |
+
]
|
| 355 |
+
},
|
| 356 |
+
{
|
| 357 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_build_dependencies_exact",
|
| 358 |
+
"reasons": [
|
| 359 |
+
{
|
| 360 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 361 |
+
"id": "gold_fail",
|
| 362 |
+
"message": "test failed against the reference executable",
|
| 363 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 364 |
+
"severity": "error",
|
| 365 |
+
"stage": "gold_execution"
|
| 366 |
+
},
|
| 367 |
+
{
|
| 368 |
+
"id": "generic_keyword_oracle",
|
| 369 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 370 |
+
"path": "eval/tests/test_autoinherit_edge_cases.py",
|
| 371 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 372 |
+
"severity": "error",
|
| 373 |
+
"stage": "static_lint"
|
| 374 |
+
}
|
| 375 |
+
]
|
| 376 |
+
},
|
| 377 |
+
{
|
| 378 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_dev_dependencies_exact",
|
| 379 |
+
"reasons": [
|
| 380 |
+
{
|
| 381 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 382 |
+
"id": "gold_fail",
|
| 383 |
+
"message": "test failed against the reference executable",
|
| 384 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 385 |
+
"severity": "error",
|
| 386 |
+
"stage": "gold_execution"
|
| 387 |
+
},
|
| 388 |
+
{
|
| 389 |
+
"id": "generic_keyword_oracle",
|
| 390 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 391 |
+
"path": "eval/tests/test_autoinherit_edge_cases.py",
|
| 392 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 393 |
+
"severity": "error",
|
| 394 |
+
"stage": "static_lint"
|
| 395 |
+
}
|
| 396 |
+
]
|
| 397 |
+
},
|
| 398 |
+
{
|
| 399 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_underscore_build_dependencies_exact",
|
| 400 |
+
"reasons": [
|
| 401 |
+
{
|
| 402 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 403 |
+
"id": "gold_fail",
|
| 404 |
+
"message": "test failed against the reference executable",
|
| 405 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 406 |
+
"severity": "error",
|
| 407 |
+
"stage": "gold_execution"
|
| 408 |
+
},
|
| 409 |
+
{
|
| 410 |
+
"id": "generic_keyword_oracle",
|
| 411 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 412 |
+
"path": "eval/tests/test_autoinherit_edge_cases.py",
|
| 413 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 414 |
+
"severity": "error",
|
| 415 |
+
"stage": "static_lint"
|
| 416 |
+
}
|
| 417 |
+
]
|
| 418 |
+
},
|
| 419 |
+
{
|
| 420 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_underscore_dev_dependencies_exact",
|
| 421 |
+
"reasons": [
|
| 422 |
+
{
|
| 423 |
+
"detail": "Failed: invocation autoinherit --prefer-simple-dotted timed out after 120s: stdout=None stderr=None",
|
| 424 |
+
"id": "gold_fail",
|
| 425 |
+
"message": "test failed against the reference executable",
|
| 426 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 427 |
+
"severity": "error",
|
| 428 |
+
"stage": "gold_execution"
|
| 429 |
+
},
|
| 430 |
+
{
|
| 431 |
+
"id": "generic_keyword_oracle",
|
| 432 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 433 |
+
"path": "eval/tests/test_autoinherit_edge_cases.py",
|
| 434 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 435 |
+
"severity": "error",
|
| 436 |
+
"stage": "static_lint"
|
| 437 |
+
}
|
| 438 |
+
]
|
| 439 |
+
},
|
| 440 |
+
{
|
| 441 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_member_mixes_inherited_and_fresh_dep_exact",
|
| 442 |
+
"reasons": [
|
| 443 |
+
{
|
| 444 |
+
"id": "generic_keyword_oracle",
|
| 445 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 446 |
+
"path": "eval/tests/test_autoinherit_edge_cases.py",
|
| 447 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 448 |
+
"severity": "error",
|
| 449 |
+
"stage": "static_lint"
|
| 450 |
+
}
|
| 451 |
+
]
|
| 452 |
+
},
|
| 453 |
+
{
|
| 454 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_path_dep_with_default_features_false_kept_exact",
|
| 455 |
+
"reasons": [
|
| 456 |
+
{
|
| 457 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 458 |
+
"id": "gold_fail",
|
| 459 |
+
"message": "test failed against the reference executable",
|
| 460 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 461 |
+
"severity": "error",
|
| 462 |
+
"stage": "gold_execution"
|
| 463 |
+
}
|
| 464 |
+
]
|
| 465 |
+
},
|
| 466 |
+
{
|
| 467 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_path_dep_with_version_kept_in_workspace_exact",
|
| 468 |
+
"reasons": [
|
| 469 |
+
{
|
| 470 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 471 |
+
"id": "gold_fail",
|
| 472 |
+
"message": "test failed against the reference executable",
|
| 473 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 474 |
+
"severity": "error",
|
| 475 |
+
"stage": "gold_execution"
|
| 476 |
+
}
|
| 477 |
+
]
|
| 478 |
+
},
|
| 479 |
+
{
|
| 480 |
+
"name": "eval.tests.test_autoinherit_edge_cases.test_preexisting_workspace_dep_member_rewritten_to_inherit_exact",
|
| 481 |
+
"reasons": [
|
| 482 |
+
{
|
| 483 |
+
"detail": "Failed: invocation autoinherit timed out after 120s: stdout=None stderr=None",
|
| 484 |
+
"id": "gold_fail",
|
| 485 |
+
"message": "test failed against the reference executable",
|
| 486 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 487 |
+
"severity": "error",
|
| 488 |
+
"stage": "gold_execution"
|
| 489 |
+
}
|
| 490 |
+
]
|
| 491 |
+
},
|
| 492 |
+
{
|
| 493 |
+
"name": "eval.tests.test_autoinherit_exclude.test_exclude_combined_with_prefer_simple_dotted_exact",
|
| 494 |
+
"reasons": [
|
| 495 |
+
{
|
| 496 |
+
"id": "generic_keyword_oracle",
|
| 497 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 498 |
+
"path": "eval/tests/test_autoinherit_exclude.py",
|
| 499 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 500 |
+
"severity": "error",
|
| 501 |
+
"stage": "static_lint"
|
| 502 |
+
}
|
| 503 |
+
]
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"name": "eval.tests.test_autoinherit_skips.test_incompatible_requirements_warn_and_skip_exact",
|
| 507 |
+
"reasons": [
|
| 508 |
+
{
|
| 509 |
+
"id": "generic_keyword_oracle",
|
| 510 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 511 |
+
"path": "eval/tests/test_autoinherit_skips.py",
|
| 512 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 513 |
+
"severity": "error",
|
| 514 |
+
"stage": "static_lint"
|
| 515 |
+
}
|
| 516 |
+
]
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"name": "eval.tests.test_autoinherit_skips.test_multiple_sources_version_and_path_diagnostic_exact",
|
| 520 |
+
"reasons": [
|
| 521 |
+
{
|
| 522 |
+
"id": "short_substring",
|
| 523 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 524 |
+
"path": "eval/tests/test_autoinherit_skips.py",
|
| 525 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 526 |
+
"severity": "error",
|
| 527 |
+
"stage": "static_lint"
|
| 528 |
+
},
|
| 529 |
+
{
|
| 530 |
+
"id": "generic_keyword_oracle",
|
| 531 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 532 |
+
"path": "eval/tests/test_autoinherit_skips.py",
|
| 533 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 534 |
+
"severity": "error",
|
| 535 |
+
"stage": "static_lint"
|
| 536 |
+
}
|
| 537 |
+
]
|
| 538 |
+
},
|
| 539 |
+
{
|
| 540 |
+
"name": "eval.tests.test_cli_help.test_help_describes_prefer_simple_dotted_exact",
|
| 541 |
+
"reasons": [
|
| 542 |
+
{
|
| 543 |
+
"id": "generic_keyword_oracle",
|
| 544 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 545 |
+
"path": "eval/tests/test_cli_help.py",
|
| 546 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 547 |
+
"severity": "error",
|
| 548 |
+
"stage": "static_lint"
|
| 549 |
+
}
|
| 550 |
+
]
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"name": "eval.tests.test_dispatch_errors.test_error_return_code_is_one_for_engine_failures",
|
| 554 |
+
"reasons": [
|
| 555 |
+
{
|
| 556 |
+
"id": "all_assertions_weak",
|
| 557 |
+
"message": "pytest test uses only weak assertions",
|
| 558 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 559 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 560 |
+
"severity": "error",
|
| 561 |
+
"stage": "static_lint"
|
| 562 |
+
}
|
| 563 |
+
]
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"name": "eval.tests.test_dispatch_errors.test_invalid_toml_member_manifest_fails",
|
| 567 |
+
"reasons": [
|
| 568 |
+
{
|
| 569 |
+
"id": "short_substring",
|
| 570 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 571 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 572 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 573 |
+
"severity": "error",
|
| 574 |
+
"stage": "static_lint"
|
| 575 |
+
},
|
| 576 |
+
{
|
| 577 |
+
"id": "generic_keyword_oracle",
|
| 578 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 579 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 580 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 581 |
+
"severity": "error",
|
| 582 |
+
"stage": "static_lint"
|
| 583 |
+
}
|
| 584 |
+
]
|
| 585 |
+
},
|
| 586 |
+
{
|
| 587 |
+
"name": "eval.tests.test_dispatch_errors.test_nested_empty_dir_errors",
|
| 588 |
+
"reasons": [
|
| 589 |
+
{
|
| 590 |
+
"id": "short_substring",
|
| 591 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 592 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 593 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 594 |
+
"severity": "error",
|
| 595 |
+
"stage": "static_lint"
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"id": "generic_keyword_oracle",
|
| 599 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 600 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 601 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 602 |
+
"severity": "error",
|
| 603 |
+
"stage": "static_lint"
|
| 604 |
+
}
|
| 605 |
+
]
|
| 606 |
+
},
|
| 607 |
+
{
|
| 608 |
+
"name": "eval.tests.test_dispatch_errors.test_outside_cargo_project_errors",
|
| 609 |
+
"reasons": [
|
| 610 |
+
{
|
| 611 |
+
"id": "assertion_disjunction",
|
| 612 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 613 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 614 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 615 |
+
"severity": "error",
|
| 616 |
+
"stage": "static_lint"
|
| 617 |
+
},
|
| 618 |
+
{
|
| 619 |
+
"id": "short_substring",
|
| 620 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 621 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 622 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 623 |
+
"severity": "error",
|
| 624 |
+
"stage": "static_lint"
|
| 625 |
+
},
|
| 626 |
+
{
|
| 627 |
+
"id": "generic_keyword_oracle",
|
| 628 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 629 |
+
"path": "eval/tests/test_dispatch_errors.py",
|
| 630 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 631 |
+
"severity": "error",
|
| 632 |
+
"stage": "static_lint"
|
| 633 |
+
}
|
| 634 |
+
]
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"name": "eval.tests.test_module01_dispatch_extra.test_dotted_mixed_deps_inline_and_dotted",
|
| 638 |
+
"reasons": [
|
| 639 |
+
{
|
| 640 |
+
"id": "generic_keyword_oracle",
|
| 641 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 642 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 643 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 644 |
+
"severity": "error",
|
| 645 |
+
"stage": "static_lint"
|
| 646 |
+
}
|
| 647 |
+
]
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"name": "eval.tests.test_module01_dispatch_extra.test_dotted_plain_dep_default_and_flag_differ",
|
| 651 |
+
"reasons": [
|
| 652 |
+
{
|
| 653 |
+
"id": "generic_keyword_oracle",
|
| 654 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 655 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 656 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 657 |
+
"severity": "error",
|
| 658 |
+
"stage": "static_lint"
|
| 659 |
+
}
|
| 660 |
+
]
|
| 661 |
+
},
|
| 662 |
+
{
|
| 663 |
+
"name": "eval.tests.test_module01_dispatch_extra.test_dotted_plain_dep_uses_dotted_form",
|
| 664 |
+
"reasons": [
|
| 665 |
+
{
|
| 666 |
+
"id": "generic_keyword_oracle",
|
| 667 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 668 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 669 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 670 |
+
"severity": "error",
|
| 671 |
+
"stage": "static_lint"
|
| 672 |
+
}
|
| 673 |
+
]
|
| 674 |
+
},
|
| 675 |
+
{
|
| 676 |
+
"name": "eval.tests.test_module01_dispatch_extra.test_engine_error_prefix_and_caused_by",
|
| 677 |
+
"reasons": [
|
| 678 |
+
{
|
| 679 |
+
"id": "short_substring",
|
| 680 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 681 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 682 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 683 |
+
"severity": "error",
|
| 684 |
+
"stage": "static_lint"
|
| 685 |
+
},
|
| 686 |
+
{
|
| 687 |
+
"id": "generic_keyword_oracle",
|
| 688 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 689 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 690 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 691 |
+
"severity": "error",
|
| 692 |
+
"stage": "static_lint"
|
| 693 |
+
}
|
| 694 |
+
]
|
| 695 |
+
},
|
| 696 |
+
{
|
| 697 |
+
"name": "eval.tests.test_module01_dispatch_extra.test_exclude_combined_with_prefer_simple_dotted",
|
| 698 |
+
"reasons": [
|
| 699 |
+
{
|
| 700 |
+
"id": "generic_keyword_oracle",
|
| 701 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 702 |
+
"path": "eval/tests/test_module01_dispatch_extra.py",
|
| 703 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 704 |
+
"severity": "error",
|
| 705 |
+
"stage": "static_lint"
|
| 706 |
+
}
|
| 707 |
+
]
|
| 708 |
+
}
|
| 709 |
+
],
|
| 710 |
+
"tests": [
|
| 711 |
+
"eval.tests.test_autoinherit_basic.test_dispatch_rewrites_both_normal_and_inherited",
|
| 712 |
+
"eval.tests.test_autoinherit_basic.test_empty_workspace_no_member_deps_is_noop_exact",
|
| 713 |
+
"eval.tests.test_autoinherit_basic.test_member_already_inherited_is_byte_identical_noop",
|
| 714 |
+
"eval.tests.test_autoinherit_basic.test_multiple_members_share_one_workspace_dep_exact",
|
| 715 |
+
"eval.tests.test_autoinherit_basic.test_retains_existing_workspace_dependencies_exact",
|
| 716 |
+
"eval.tests.test_autoinherit_basic.test_running_twice_is_idempotent_exact",
|
| 717 |
+
"eval.tests.test_autoinherit_basic.test_single_member_normalized_exact",
|
| 718 |
+
"eval.tests.test_autoinherit_basic.test_success_dispatch_exit_zero_and_stdout_stderr_empty",
|
| 719 |
+
"eval.tests.test_autoinherit_basic.test_version_caret_stripped_in_workspace_exact",
|
| 720 |
+
"eval.tests.test_autoinherit_deps.test_all_dep_kinds_combined_in_one_member_exact",
|
| 721 |
+
"eval.tests.test_autoinherit_deps.test_build_dependencies_promoted_to_workspace_exact",
|
| 722 |
+
"eval.tests.test_autoinherit_deps.test_compatible_caret_requirements_merge_to_max_exact",
|
| 723 |
+
"eval.tests.test_autoinherit_deps.test_default_dotted_form_is_inline_exact",
|
| 724 |
+
"eval.tests.test_autoinherit_deps.test_default_features_disabled_preserved_exact",
|
| 725 |
+
"eval.tests.test_autoinherit_deps.test_default_features_equal_across_members_shared_exact",
|
| 726 |
+
"eval.tests.test_autoinherit_deps.test_default_features_mismatch_merges_to_false_exact",
|
| 727 |
+
"eval.tests.test_autoinherit_deps.test_dev_and_build_deps_across_members_merge_exact",
|
| 728 |
+
"eval.tests.test_autoinherit_deps.test_dev_dependencies_promoted_to_workspace_exact",
|
| 729 |
+
"eval.tests.test_autoinherit_deps.test_identical_requirements_dedup_exact",
|
| 730 |
+
"eval.tests.test_autoinherit_deps.test_multiple_features_preserved_exact",
|
| 731 |
+
"eval.tests.test_autoinherit_deps.test_optional_dep_keeps_optional_true_exact",
|
| 732 |
+
"eval.tests.test_autoinherit_deps.test_optional_only_dep_keeps_optional_exact",
|
| 733 |
+
"eval.tests.test_autoinherit_deps.test_path_dependency_shared_as_relative_exact",
|
| 734 |
+
"eval.tests.test_autoinherit_deps.test_prefer_simple_dotted_keeps_inline_when_features_exact",
|
| 735 |
+
"eval.tests.test_autoinherit_deps.test_prefer_simple_dotted_plain_dep_exact",
|
| 736 |
+
"eval.tests.test_autoinherit_deps.test_underscore_dev_dependencies_table_kept",
|
| 737 |
+
"eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_build_dependencies_exact",
|
| 738 |
+
"eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_dev_dependencies_exact",
|
| 739 |
+
"eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_underscore_build_dependencies_exact",
|
| 740 |
+
"eval.tests.test_autoinherit_edge_cases.test_dotted_form_in_underscore_dev_dependencies_exact",
|
| 741 |
+
"eval.tests.test_autoinherit_edge_cases.test_dotted_form_not_used_in_dev_for_featureful_dep_exact",
|
| 742 |
+
"eval.tests.test_autoinherit_edge_cases.test_excluded_member_unique_dep_not_promoted_exact",
|
| 743 |
+
"eval.tests.test_autoinherit_edge_cases.test_member_mixes_inherited_and_fresh_dep_exact",
|
| 744 |
+
"eval.tests.test_autoinherit_edge_cases.test_path_dep_with_default_features_false_kept_exact",
|
| 745 |
+
"eval.tests.test_autoinherit_edge_cases.test_path_dep_with_version_kept_in_workspace_exact",
|
| 746 |
+
"eval.tests.test_autoinherit_edge_cases.test_preexisting_workspace_dep_member_rewritten_to_inherit_exact",
|
| 747 |
+
"eval.tests.test_autoinherit_edge_cases.test_renamed_package_default_features_disagreement_merges_exact",
|
| 748 |
+
"eval.tests.test_autoinherit_edge_cases.test_same_dep_in_normal_and_dev_sections_single_ws_entry_exact",
|
| 749 |
+
"eval.tests.test_autoinherit_exclude.test_cli_and_metadata_exclusions_union_exact",
|
| 750 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_all_members_leaves_workspace_deps_absent_exact",
|
| 751 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_combined_with_prefer_simple_dotted_exact",
|
| 752 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_equals_and_long_flag_equivalent_exact",
|
| 753 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_members_repeatable_all_excluded_exact",
|
| 754 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_nonexistent_member_is_effective_noop_exact",
|
| 755 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_via_metadata_exact",
|
| 756 |
+
"eval.tests.test_autoinherit_exclude.test_exclude_via_metadata_underscore_variant_exact",
|
| 757 |
+
"eval.tests.test_autoinherit_exclude.test_excluded_member_dep_not_promoted_reported_exact",
|
| 758 |
+
"eval.tests.test_autoinherit_exclude.test_excluded_member_dep_not_promoted_when_only_in_excluded_exact",
|
| 759 |
+
"eval.tests.test_autoinherit_skips.test_compatible_requirements_still_inherited_exact",
|
| 760 |
+
"eval.tests.test_autoinherit_skips.test_incompatible_requirements_warn_and_skip_exact",
|
| 761 |
+
"eval.tests.test_autoinherit_skips.test_multiple_sources_version_and_path_diagnostic_exact",
|
| 762 |
+
"eval.tests.test_autoinherit_skips.test_pre_existing_inherited_dep_not_reprocessed_exact",
|
| 763 |
+
"eval.tests.test_autoinherit_skips.test_wildcard_and_pinned_merge_exact",
|
| 764 |
+
"eval.tests.test_cli_errors.test_error_exit_code_is_two_across_bad_inputs_exact",
|
| 765 |
+
"eval.tests.test_cli_errors.test_exclude_members_long_missing_value_exact",
|
| 766 |
+
"eval.tests.test_cli_errors.test_exclude_members_missing_value_exact",
|
| 767 |
+
"eval.tests.test_cli_errors.test_no_arguments_usage_error_exact",
|
| 768 |
+
"eval.tests.test_cli_errors.test_unknown_flag_does_not_create_manifest_exact",
|
| 769 |
+
"eval.tests.test_cli_errors.test_unknown_flag_on_autoinherit_exact",
|
| 770 |
+
"eval.tests.test_cli_errors.test_unknown_short_flag_exact",
|
| 771 |
+
"eval.tests.test_cli_errors.test_unknown_subcommand_exact",
|
| 772 |
+
"eval.tests.test_cli_errors.test_unknown_subcommand_second_exact",
|
| 773 |
+
"eval.tests.test_cli_help.test_autoinherit_option_mentions_exclude_members_exact",
|
| 774 |
+
"eval.tests.test_cli_help.test_exclude_members_long_missing_value_exact",
|
| 775 |
+
"eval.tests.test_cli_help.test_exclude_members_missing_value_exact",
|
| 776 |
+
"eval.tests.test_cli_help.test_help_describes_prefer_simple_dotted_exact",
|
| 777 |
+
"eval.tests.test_cli_help.test_help_exits_zero_and_short_circuits_engine_exact",
|
| 778 |
+
"eval.tests.test_cli_help.test_help_helper_subcommand_autoinherit_exact",
|
| 779 |
+
"eval.tests.test_cli_help.test_help_helper_subcommand_exact",
|
| 780 |
+
"eval.tests.test_cli_help.test_help_output_has_no_panic_noise_exact",
|
| 781 |
+
"eval.tests.test_cli_help.test_subcommand_help_exact_two_dashed_options",
|
| 782 |
+
"eval.tests.test_cli_help.test_subcommand_help_long_flag_exact",
|
| 783 |
+
"eval.tests.test_cli_help.test_subcommand_help_short_flag_exact",
|
| 784 |
+
"eval.tests.test_cli_help.test_top_level_help_lists_autoinherit_subcommand_exact",
|
| 785 |
+
"eval.tests.test_cli_help.test_top_level_help_long_flag_exact",
|
| 786 |
+
"eval.tests.test_cli_help.test_top_level_help_short_flag_exact",
|
| 787 |
+
"eval.tests.test_cli_help.test_version_flag_rejected_exact",
|
| 788 |
+
"eval.tests.test_dispatch_errors.test_error_return_code_is_one_for_engine_failures",
|
| 789 |
+
"eval.tests.test_dispatch_errors.test_exclude_members_metadata_array_with_non_string",
|
| 790 |
+
"eval.tests.test_dispatch_errors.test_exclude_members_metadata_not_array",
|
| 791 |
+
"eval.tests.test_dispatch_errors.test_invalid_toml_member_manifest_fails",
|
| 792 |
+
"eval.tests.test_dispatch_errors.test_nested_empty_dir_errors",
|
| 793 |
+
"eval.tests.test_dispatch_errors.test_outside_cargo_project_errors",
|
| 794 |
+
"eval.tests.test_dispatch_errors.test_root_package_without_workspace_field",
|
| 795 |
+
"eval.tests.test_module01_dispatch_extra.test_all_dep_kinds_combined_in_one_member",
|
| 796 |
+
"eval.tests.test_module01_dispatch_extra.test_already_inherited_workspace_unmodified",
|
| 797 |
+
"eval.tests.test_module01_dispatch_extra.test_clap_error_exit_code_two_full",
|
| 798 |
+
"eval.tests.test_module01_dispatch_extra.test_default_features_equal_across_members_shared",
|
| 799 |
+
"eval.tests.test_module01_dispatch_extra.test_default_features_mismatch_merges_to_false",
|
| 800 |
+
"eval.tests.test_module01_dispatch_extra.test_dev_and_build_deps_across_members_merge",
|
| 801 |
+
"eval.tests.test_module01_dispatch_extra.test_dotted_kept_inline_when_features_and_optional",
|
| 802 |
+
"eval.tests.test_module01_dispatch_extra.test_dotted_kept_inline_when_optional",
|
| 803 |
+
"eval.tests.test_module01_dispatch_extra.test_dotted_mixed_deps_inline_and_dotted",
|
| 804 |
+
"eval.tests.test_module01_dispatch_extra.test_dotted_plain_dep_default_and_flag_differ",
|
| 805 |
+
"eval.tests.test_module01_dispatch_extra.test_dotted_plain_dep_uses_dotted_form",
|
| 806 |
+
"eval.tests.test_module01_dispatch_extra.test_engine_error_prefix_and_caused_by",
|
| 807 |
+
"eval.tests.test_module01_dispatch_extra.test_engine_error_with_empty_exclude_value_fails",
|
| 808 |
+
"eval.tests.test_module01_dispatch_extra.test_exclude_all_members_leaves_workspace_deps_absent",
|
| 809 |
+
"eval.tests.test_module01_dispatch_extra.test_exclude_combined_with_prefer_simple_dotted",
|
| 810 |
+
"eval.tests.test_module01_dispatch_extra.test_exclude_via_equals_and_short_flag_equivalent",
|
| 811 |
+
"eval.tests.test_module01_dispatch_extra.test_help_outside_cargo_project_still_succeeds_full",
|
| 812 |
+
"eval.tests.test_module01_dispatch_extra.test_help_subcommand_matches_long_help_full",
|
| 813 |
+
"eval.tests.test_module01_dispatch_extra.test_multiple_features_preserved",
|
| 814 |
+
"eval.tests.test_module01_dispatch_extra.test_optional_true_inline_kept",
|
| 815 |
+
"eval.tests.test_module01_dispatch_extra.test_renamed_package_member_not_inherited_due_to_key_mismatch",
|
| 816 |
+
"eval.tests.test_module01_dispatch_extra.test_renamed_package_promoted_under_alias",
|
| 817 |
+
"eval.tests.test_module01_dispatch_extra.test_root_package_member_dependencies_rewritten",
|
| 818 |
+
"eval.tests.test_module01_dispatch_extra.test_subcommand_help_full_output",
|
| 819 |
+
"eval.tests.test_module01_dispatch_extra.test_subcommand_short_h_matches_long_help_full",
|
| 820 |
+
"eval.tests.test_module01_dispatch_extra.test_success_exit_code_zero_with_stdout_empty",
|
| 821 |
+
"eval.tests.test_module01_dispatch_extra.test_top_help_advertises_subcommand_in_order_full",
|
| 822 |
+
"eval.tests.test_module01_dispatch_extra.test_top_level_help_full_output",
|
| 823 |
+
"eval.tests.test_module01_dispatch_extra.test_top_level_help_short_flag_full_output",
|
| 824 |
+
"eval.tests.test_module01_dispatch_extra.test_workspace_with_no_deps_unmodified"
|
| 825 |
+
]
|
| 826 |
+
},
|
| 827 |
+
"generated_module_02": {
|
| 828 |
+
"ignore_reason": "",
|
| 829 |
+
"ignored": false,
|
| 830 |
+
"ignored_tests": [
|
| 831 |
+
{
|
| 832 |
+
"name": "eval.tests.test_cli.test_multiple_exclude_flags_accepted",
|
| 833 |
+
"reasons": [
|
| 834 |
+
{
|
| 835 |
+
"id": "short_substring",
|
| 836 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 837 |
+
"path": "eval/tests/test_cli.py",
|
| 838 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 839 |
+
"severity": "error",
|
| 840 |
+
"stage": "static_lint"
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"id": "generic_keyword_oracle",
|
| 844 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 845 |
+
"path": "eval/tests/test_cli.py",
|
| 846 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 847 |
+
"severity": "error",
|
| 848 |
+
"stage": "static_lint"
|
| 849 |
+
}
|
| 850 |
+
]
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "eval.tests.test_cli.test_no_subcommand_errors",
|
| 854 |
+
"reasons": [
|
| 855 |
+
{
|
| 856 |
+
"id": "generic_keyword_oracle",
|
| 857 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 858 |
+
"path": "eval/tests/test_cli.py",
|
| 859 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 860 |
+
"severity": "error",
|
| 861 |
+
"stage": "static_lint"
|
| 862 |
+
}
|
| 863 |
+
]
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"name": "eval.tests.test_decor_preservation.test_inline_detailed_member_keeps_value_spacing[default_features_plus_features]",
|
| 867 |
+
"reasons": [
|
| 868 |
+
{
|
| 869 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- Blocking waiting for file lock on package cache error: failed to select a version for `serde`. ..",
|
| 870 |
+
"id": "gold_fail",
|
| 871 |
+
"message": "test failed against the reference executable",
|
| 872 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 873 |
+
"severity": "error",
|
| 874 |
+
"stage": "gold_execution"
|
| 875 |
+
}
|
| 876 |
+
]
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"name": "eval.tests.test_decor_preservation.test_nested_table_member_dep_replaced_with_dotted_inherit",
|
| 880 |
+
"reasons": [
|
| 881 |
+
{
|
| 882 |
+
"id": "generic_keyword_oracle",
|
| 883 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 884 |
+
"path": "eval/tests/test_decor_preservation.py",
|
| 885 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 886 |
+
"severity": "error",
|
| 887 |
+
"stage": "static_lint"
|
| 888 |
+
}
|
| 889 |
+
]
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"name": "eval.tests.test_decor_preservation.test_plain_value_member_dep_rewritten_with_normal_spacing",
|
| 893 |
+
"reasons": [
|
| 894 |
+
{
|
| 895 |
+
"id": "generic_keyword_oracle",
|
| 896 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 897 |
+
"path": "eval/tests/test_decor_preservation.py",
|
| 898 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 899 |
+
"severity": "error",
|
| 900 |
+
"stage": "static_lint"
|
| 901 |
+
}
|
| 902 |
+
]
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"name": "eval.tests.test_exclude_config.test_both_config_keys_are_reconized[hyphen_key]",
|
| 906 |
+
"reasons": [
|
| 907 |
+
{
|
| 908 |
+
"detail": "AssertionError: assert 'Excluded workspace member `bbb`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 909 |
+
"id": "gold_fail",
|
| 910 |
+
"message": "test failed against the reference executable",
|
| 911 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 912 |
+
"severity": "error",
|
| 913 |
+
"stage": "gold_execution"
|
| 914 |
+
}
|
| 915 |
+
]
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"name": "eval.tests.test_exclude_config.test_both_config_keys_are_reconized[underscore_key]",
|
| 919 |
+
"reasons": [
|
| 920 |
+
{
|
| 921 |
+
"detail": "AssertionError: assert 'Excluded workspace member `bbb`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 922 |
+
"id": "gold_fail",
|
| 923 |
+
"message": "test failed against the reference executable",
|
| 924 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 925 |
+
"severity": "error",
|
| 926 |
+
"stage": "gold_execution"
|
| 927 |
+
}
|
| 928 |
+
]
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"name": "eval.tests.test_exclude_config.test_cli_and_config_excludes_union",
|
| 932 |
+
"reasons": [
|
| 933 |
+
{
|
| 934 |
+
"detail": "AssertionError: assert 'Excluded workspace member `aaa`' in 'Excluded workspace member `bbb`\\n' + where 'Excluded workspace member `bbb`\\n' = CompletedProcess(args=['/workspace/golden-2/executable', '",
|
| 935 |
+
"id": "gold_fail",
|
| 936 |
+
"message": "test failed against the reference executable",
|
| 937 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 938 |
+
"severity": "error",
|
| 939 |
+
"stage": "gold_execution"
|
| 940 |
+
}
|
| 941 |
+
]
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"name": "eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_both]",
|
| 945 |
+
"reasons": [
|
| 946 |
+
{
|
| 947 |
+
"detail": "AssertionError: assert 'Excluded workspace member `aaa`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 948 |
+
"id": "gold_fail",
|
| 949 |
+
"message": "test failed against the reference executable",
|
| 950 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 951 |
+
"severity": "error",
|
| 952 |
+
"stage": "gold_execution"
|
| 953 |
+
}
|
| 954 |
+
]
|
| 955 |
+
},
|
| 956 |
+
{
|
| 957 |
+
"name": "eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_one_a]",
|
| 958 |
+
"reasons": [
|
| 959 |
+
{
|
| 960 |
+
"detail": "AssertionError: assert 'Excluded workspace member `aaa`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 961 |
+
"id": "gold_fail",
|
| 962 |
+
"message": "test failed against the reference executable",
|
| 963 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 964 |
+
"severity": "error",
|
| 965 |
+
"stage": "gold_execution"
|
| 966 |
+
}
|
| 967 |
+
]
|
| 968 |
+
},
|
| 969 |
+
{
|
| 970 |
+
"name": "eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_one_b]",
|
| 971 |
+
"reasons": [
|
| 972 |
+
{
|
| 973 |
+
"detail": "AssertionError: assert 'Excluded workspace member `bbb`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 974 |
+
"id": "gold_fail",
|
| 975 |
+
"message": "test failed against the reference executable",
|
| 976 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 977 |
+
"severity": "error",
|
| 978 |
+
"stage": "gold_execution"
|
| 979 |
+
}
|
| 980 |
+
]
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"name": "eval.tests.test_inherit_basic.test_default_features_false_inherited[default_features_false]",
|
| 984 |
+
"reasons": [
|
| 985 |
+
{
|
| 986 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- Blocking waiting for file lock on package cache error: failed to select a version for the require",
|
| 987 |
+
"id": "gold_fail",
|
| 988 |
+
"message": "test failed against the reference executable",
|
| 989 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 990 |
+
"severity": "error",
|
| 991 |
+
"stage": "gold_execution"
|
| 992 |
+
}
|
| 993 |
+
]
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"name": "eval.tests.test_inherit_basic.test_detailed_dep_keeps_metadata_in_member[default_features_plus_features]",
|
| 997 |
+
"reasons": [
|
| 998 |
+
{
|
| 999 |
+
"detail": "AssertionError: assert {'version': '1.0', 'default-features': False} == '1.0'",
|
| 1000 |
+
"id": "gold_fail",
|
| 1001 |
+
"message": "test failed against the reference executable",
|
| 1002 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1003 |
+
"severity": "error",
|
| 1004 |
+
"stage": "gold_execution"
|
| 1005 |
+
}
|
| 1006 |
+
]
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"name": "eval.tests.test_inherit_edge.test_existing_workspace_dep_is_not_clobbered[existing_major_only]",
|
| 1010 |
+
"reasons": [
|
| 1011 |
+
{
|
| 1012 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- Blocking waiting for file lock on package cache error: failed to select a version for the require",
|
| 1013 |
+
"id": "gold_fail",
|
| 1014 |
+
"message": "test failed against the reference executable",
|
| 1015 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1016 |
+
"severity": "error",
|
| 1017 |
+
"stage": "gold_execution"
|
| 1018 |
+
}
|
| 1019 |
+
]
|
| 1020 |
+
},
|
| 1021 |
+
{
|
| 1022 |
+
"name": "eval.tests.test_inherit_edge.test_existing_workspace_dep_is_not_clobbered[existing_pinned_patch]",
|
| 1023 |
+
"reasons": [
|
| 1024 |
+
{
|
| 1025 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- Blocking waiting for file lock on package cache error: failed to select a version for the require",
|
| 1026 |
+
"id": "gold_fail",
|
| 1027 |
+
"message": "test failed against the reference executable",
|
| 1028 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1029 |
+
"severity": "error",
|
| 1030 |
+
"stage": "gold_execution"
|
| 1031 |
+
}
|
| 1032 |
+
]
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"name": "eval.tests.test_inherit_edge.test_member_only_dep_that_is_already_workspace_reference_not_readded",
|
| 1036 |
+
"reasons": [
|
| 1037 |
+
{
|
| 1038 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- error: failed to load manifest for workspace member `/tmp/pytest-of-root/pytest-1/popen-gw8/test_",
|
| 1039 |
+
"id": "gold_fail",
|
| 1040 |
+
"message": "test failed against the reference executable",
|
| 1041 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1042 |
+
"severity": "error",
|
| 1043 |
+
"stage": "gold_execution"
|
| 1044 |
+
}
|
| 1045 |
+
]
|
| 1046 |
+
},
|
| 1047 |
+
{
|
| 1048 |
+
"name": "eval.tests.test_multisource_skip.test_multisource_refused_and_sources_lists[version_display_within_caret]",
|
| 1049 |
+
"reasons": [
|
| 1050 |
+
{
|
| 1051 |
+
"detail": "assert ' - version: ^2.0.3' in \"`serde` won't be auto-inherited because there are multiple sources for it:\\n - version: ^1.0\\n - path: /tmp/pytest-of-root/pytest-1/popen-gw7/test_multisource_refused_a",
|
| 1052 |
+
"id": "gold_fail",
|
| 1053 |
+
"message": "test failed against the reference executable",
|
| 1054 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1055 |
+
"severity": "error",
|
| 1056 |
+
"stage": "gold_execution"
|
| 1057 |
+
}
|
| 1058 |
+
]
|
| 1059 |
+
},
|
| 1060 |
+
{
|
| 1061 |
+
"name": "eval.tests.test_multisource_skip.test_multisource_three_way_presents_all_sources",
|
| 1062 |
+
"reasons": [
|
| 1063 |
+
{
|
| 1064 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- error: two packages named `anyhow` in this workspace: - /tmp/pytest-of-root/pytest-1/popen-gw6/te",
|
| 1065 |
+
"id": "gold_fail",
|
| 1066 |
+
"message": "test failed against the reference executable",
|
| 1067 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1068 |
+
"severity": "error",
|
| 1069 |
+
"stage": "gold_execution"
|
| 1070 |
+
},
|
| 1071 |
+
{
|
| 1072 |
+
"id": "generic_keyword_oracle",
|
| 1073 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1074 |
+
"path": "eval/tests/test_multisource_skip.py",
|
| 1075 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1076 |
+
"severity": "error",
|
| 1077 |
+
"stage": "static_lint"
|
| 1078 |
+
}
|
| 1079 |
+
]
|
| 1080 |
+
},
|
| 1081 |
+
{
|
| 1082 |
+
"name": "eval.tests.test_round4_engine_depth.test_default_features_false_merges_with_enabled_sibling",
|
| 1083 |
+
"reasons": [
|
| 1084 |
+
{
|
| 1085 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- error: duplicate key --> crates/a/Cargo.toml:6:2 | 6 | [dependencies] | ^^^^^^^^^^^^ error: faile",
|
| 1086 |
+
"id": "gold_fail",
|
| 1087 |
+
"message": "test failed against the reference executable",
|
| 1088 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1089 |
+
"severity": "error",
|
| 1090 |
+
"stage": "gold_execution"
|
| 1091 |
+
}
|
| 1092 |
+
]
|
| 1093 |
+
},
|
| 1094 |
+
{
|
| 1095 |
+
"name": "eval.tests.test_round4_engine_depth.test_default_features_false_merges_with_false_sibling",
|
| 1096 |
+
"reasons": [
|
| 1097 |
+
{
|
| 1098 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- error: duplicate key --> crates/a/Cargo.toml:6:2 | 6 | [dependencies] | ^^^^^^^^^^^^ error: faile",
|
| 1099 |
+
"id": "gold_fail",
|
| 1100 |
+
"message": "test failed against the reference executable",
|
| 1101 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1102 |
+
"severity": "error",
|
| 1103 |
+
"stage": "gold_execution"
|
| 1104 |
+
}
|
| 1105 |
+
]
|
| 1106 |
+
},
|
| 1107 |
+
{
|
| 1108 |
+
"name": "eval.tests.test_round4_engine_depth.test_multisource_path_dep_with_version_prints_version_suffix",
|
| 1109 |
+
"reasons": [
|
| 1110 |
+
{
|
| 1111 |
+
"id": "generic_keyword_oracle",
|
| 1112 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1113 |
+
"path": "eval/tests/test_round4_engine_depth.py",
|
| 1114 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1115 |
+
"severity": "error",
|
| 1116 |
+
"stage": "static_lint"
|
| 1117 |
+
}
|
| 1118 |
+
]
|
| 1119 |
+
},
|
| 1120 |
+
{
|
| 1121 |
+
"name": "eval.tests.test_round4_engine_depth.test_nested_build_dependency_table_replaced_preserving_decor",
|
| 1122 |
+
"reasons": [
|
| 1123 |
+
{
|
| 1124 |
+
"detail": "AssertionError: cargo ('generate-lockfile', '--offline') failed (rc=101) --- stdout --- --- stderr --- Blocking waiting for file lock on package cache error: no matching package named `cc` found locat",
|
| 1125 |
+
"id": "gold_fail",
|
| 1126 |
+
"message": "test failed against the reference executable",
|
| 1127 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1128 |
+
"severity": "error",
|
| 1129 |
+
"stage": "gold_execution"
|
| 1130 |
+
},
|
| 1131 |
+
{
|
| 1132 |
+
"id": "generic_keyword_oracle",
|
| 1133 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1134 |
+
"path": "eval/tests/test_round4_engine_depth.py",
|
| 1135 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1136 |
+
"severity": "error",
|
| 1137 |
+
"stage": "static_lint"
|
| 1138 |
+
}
|
| 1139 |
+
]
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"name": "eval.tests.test_round4_engine_depth.test_nested_table_member_dep_replaced_with_single_space_prefix",
|
| 1143 |
+
"reasons": [
|
| 1144 |
+
{
|
| 1145 |
+
"id": "generic_keyword_oracle",
|
| 1146 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1147 |
+
"path": "eval/tests/test_round4_engine_depth.py",
|
| 1148 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1149 |
+
"severity": "error",
|
| 1150 |
+
"stage": "static_lint"
|
| 1151 |
+
}
|
| 1152 |
+
]
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"name": "eval.tests.test_round4_engine_depth.test_nested_table_replaced_with_plain_inherited_stmt_keeps_space",
|
| 1156 |
+
"reasons": [
|
| 1157 |
+
{
|
| 1158 |
+
"detail": "assert 'toml = { workspace = true }' in '[package]\\nname = \"a\"\\nversion = \"0.1.0\"\\nedition = \"2021\"\\n\\n[dependencies]\\ntoml= { workspace = true }\\n'",
|
| 1159 |
+
"id": "gold_fail",
|
| 1160 |
+
"message": "test failed against the reference executable",
|
| 1161 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1162 |
+
"severity": "error",
|
| 1163 |
+
"stage": "gold_execution"
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"id": "generic_keyword_oracle",
|
| 1167 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1168 |
+
"path": "eval/tests/test_round4_engine_depth.py",
|
| 1169 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1170 |
+
"severity": "error",
|
| 1171 |
+
"stage": "static_lint"
|
| 1172 |
+
}
|
| 1173 |
+
]
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"name": "eval.tests.test_round4_engine_more.test_excluded_member_detailed_dep_left_untouched",
|
| 1177 |
+
"reasons": [
|
| 1178 |
+
{
|
| 1179 |
+
"detail": "AssertionError: assert 'Excluded workspace member `aaa`' in '' + where '' = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=0, stdout='', stderr='').stdout",
|
| 1180 |
+
"id": "gold_fail",
|
| 1181 |
+
"message": "test failed against the reference executable",
|
| 1182 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1183 |
+
"severity": "error",
|
| 1184 |
+
"stage": "gold_execution"
|
| 1185 |
+
}
|
| 1186 |
+
]
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"name": "eval.tests.test_round4_engine_more.test_underscore_dev_dependencies_section_shared_dep_inherited",
|
| 1190 |
+
"reasons": [
|
| 1191 |
+
{
|
| 1192 |
+
"id": "generic_keyword_oracle",
|
| 1193 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1194 |
+
"path": "eval/tests/test_round4_engine_more.py",
|
| 1195 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1196 |
+
"severity": "error",
|
| 1197 |
+
"stage": "static_lint"
|
| 1198 |
+
}
|
| 1199 |
+
]
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"name": "eval.tests.test_round5_skip_diagnostics.test_registry_skip_diagnostic_matches_golden_file",
|
| 1203 |
+
"reasons": [
|
| 1204 |
+
{
|
| 1205 |
+
"id": "missing_fixture_assets",
|
| 1206 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1207 |
+
"path": "eval/tests/test_round5_skip_diagnostics.py",
|
| 1208 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1209 |
+
"severity": "error",
|
| 1210 |
+
"stage": "static_lint"
|
| 1211 |
+
}
|
| 1212 |
+
]
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"name": "eval.tests.test_workspace_dep_rewrite.test_root_manifest_golden_for_detailed_path_dep",
|
| 1216 |
+
"reasons": [
|
| 1217 |
+
{
|
| 1218 |
+
"id": "missing_fixture_assets",
|
| 1219 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1220 |
+
"path": "eval/tests/test_workspace_dep_rewrite.py",
|
| 1221 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1222 |
+
"severity": "error",
|
| 1223 |
+
"stage": "static_lint"
|
| 1224 |
+
}
|
| 1225 |
+
]
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"name": "eval.tests.test_workspace_errors.test_autoinherit_inside_non_cargo_dir_errors",
|
| 1229 |
+
"reasons": [
|
| 1230 |
+
{
|
| 1231 |
+
"id": "generic_keyword_oracle",
|
| 1232 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1233 |
+
"path": "eval/tests/test_workspace_errors.py",
|
| 1234 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1235 |
+
"severity": "error",
|
| 1236 |
+
"stage": "static_lint"
|
| 1237 |
+
}
|
| 1238 |
+
]
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"name": "eval.tests.test_workspace_errors.test_workspace_with_zero_members_runs_cleanly",
|
| 1242 |
+
"reasons": [
|
| 1243 |
+
{
|
| 1244 |
+
"detail": "AssertionError: assert 1 == 0 + where 1 = CompletedProcess(args=['/workspace/golden-2/executable', 'autoinherit'], returncode=1, stdout='', stderr='Error: Faile...orkspace_with_zero_membe0` contains n",
|
| 1245 |
+
"id": "gold_fail",
|
| 1246 |
+
"message": "test failed against the reference executable",
|
| 1247 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1248 |
+
"severity": "error",
|
| 1249 |
+
"stage": "gold_execution"
|
| 1250 |
+
}
|
| 1251 |
+
]
|
| 1252 |
+
}
|
| 1253 |
+
],
|
| 1254 |
+
"tests": [
|
| 1255 |
+
"eval.tests.test_cli.test_autoinherit_help_lists_conf_flags",
|
| 1256 |
+
"eval.tests.test_cli.test_autoinherit_subcommand_help[help_subcommand_autoinherit]",
|
| 1257 |
+
"eval.tests.test_cli.test_autoinherit_subcommand_help[subcmd_long_help]",
|
| 1258 |
+
"eval.tests.test_cli.test_autoinherit_subcommand_help[subcmd_short_h]",
|
| 1259 |
+
"eval.tests.test_cli.test_missing_flag_value_usage_error[long_exclude_missing_value]",
|
| 1260 |
+
"eval.tests.test_cli.test_missing_flag_value_usage_error[short_e_missing_value]",
|
| 1261 |
+
"eval.tests.test_cli.test_multiple_exclude_flags_accepted",
|
| 1262 |
+
"eval.tests.test_cli.test_no_subcommand_errors",
|
| 1263 |
+
"eval.tests.test_cli.test_top_level_help[help_subcommand]",
|
| 1264 |
+
"eval.tests.test_cli.test_top_level_help[long_help]",
|
| 1265 |
+
"eval.tests.test_cli.test_top_level_help[short_h]",
|
| 1266 |
+
"eval.tests.test_cli.test_top_level_help_does_not_list_conf_flags",
|
| 1267 |
+
"eval.tests.test_cli.test_unknown_arguments_usage_error[unknown_subcmd_flag]",
|
| 1268 |
+
"eval.tests.test_cli.test_unknown_arguments_usage_error[unknown_subcommand]",
|
| 1269 |
+
"eval.tests.test_cli.test_unknown_arguments_usage_error[unknown_top_flag]",
|
| 1270 |
+
"eval.tests.test_decor_preservation.test_inline_detailed_member_keeps_value_spacing[default_features_plus_features]",
|
| 1271 |
+
"eval.tests.test_decor_preservation.test_inline_detailed_member_keeps_value_spacing[features_only]",
|
| 1272 |
+
"eval.tests.test_decor_preservation.test_nested_table_member_dep_replaced_with_dotted_inherit",
|
| 1273 |
+
"eval.tests.test_decor_preservation.test_plain_value_member_dep_rewritten_with_normal_spacing",
|
| 1274 |
+
"eval.tests.test_decor_preservation.test_preserve_decor_when_member_already_has_detailed_entry_guarded_by_member_match",
|
| 1275 |
+
"eval.tests.test_exclude_config.test_both_config_keys_are_reconized[hyphen_key]",
|
| 1276 |
+
"eval.tests.test_exclude_config.test_both_config_keys_are_reconized[underscore_key]",
|
| 1277 |
+
"eval.tests.test_exclude_config.test_cli_and_config_excludes_union",
|
| 1278 |
+
"eval.tests.test_exclude_config.test_config_empty_array_no_exclusion",
|
| 1279 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_element_errors[float_elem]",
|
| 1280 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_element_errors[int_elem]",
|
| 1281 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_element_errors[mixed_ok_then_int]",
|
| 1282 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_element_errors[nested_array]",
|
| 1283 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_element_errors[two_bools]",
|
| 1284 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_value_errors[bool]",
|
| 1285 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_value_errors[int]",
|
| 1286 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_value_errors[string]",
|
| 1287 |
+
"eval.tests.test_exclude_config.test_config_exclude_non_string_value_errors[table]",
|
| 1288 |
+
"eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_both]",
|
| 1289 |
+
"eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_one_a]",
|
| 1290 |
+
"eval.tests.test_exclude_config.test_config_exclude_skips_member[exclude_one_b]",
|
| 1291 |
+
"eval.tests.test_exclude_config.test_config_exclude_unknown_member_prints_nothing_and_continues",
|
| 1292 |
+
"eval.tests.test_exclude_config.test_excluded_member_dependency_not_centralized",
|
| 1293 |
+
"eval.tests.test_inherit_basic.test_alias_dependency_inherited[explicit_package_same_name]",
|
| 1294 |
+
"eval.tests.test_inherit_basic.test_caret_prefix_stripped_in_workspace[caret_minor]",
|
| 1295 |
+
"eval.tests.test_inherit_basic.test_caret_prefix_stripped_in_workspace[caret_patch]",
|
| 1296 |
+
"eval.tests.test_inherit_basic.test_caret_prefix_stripped_in_workspace[exact_plain]",
|
| 1297 |
+
"eval.tests.test_inherit_basic.test_compatible_caret_versions_merged[merge_down_order_inv]",
|
| 1298 |
+
"eval.tests.test_inherit_basic.test_compatible_caret_versions_merged[merge_upgrade_patch]",
|
| 1299 |
+
"eval.tests.test_inherit_basic.test_compatible_caret_versions_merged[same_version]",
|
| 1300 |
+
"eval.tests.test_inherit_basic.test_default_features_false_inherited[default_features_false]",
|
| 1301 |
+
"eval.tests.test_inherit_basic.test_detailed_dep_keeps_metadata_in_member[default_features_plus_features]",
|
| 1302 |
+
"eval.tests.test_inherit_basic.test_detailed_dep_keeps_metadata_in_member[features_and_optional]",
|
| 1303 |
+
"eval.tests.test_inherit_basic.test_detailed_dep_keeps_metadata_in_member[features_only]",
|
| 1304 |
+
"eval.tests.test_inherit_basic.test_detailed_dep_keeps_metadata_in_member[optional_only]",
|
| 1305 |
+
"eval.tests.test_inherit_basic.test_dev_and_build_deps_inherited[dev_and_build]",
|
| 1306 |
+
"eval.tests.test_inherit_basic.test_dotted_vs_braced_member_inheritance[default_braced]",
|
| 1307 |
+
"eval.tests.test_inherit_basic.test_dotted_vs_braced_member_inheritance[prefer_simple_dotted]",
|
| 1308 |
+
"eval.tests.test_inherit_basic.test_path_dependency_to_workspace_member_inherited",
|
| 1309 |
+
"eval.tests.test_inherit_basic.test_shared_simple_dep_inherited[anyhow]",
|
| 1310 |
+
"eval.tests.test_inherit_basic.test_shared_simple_dep_inherited[semver]",
|
| 1311 |
+
"eval.tests.test_inherit_basic.test_shared_simple_dep_inherited[serde]",
|
| 1312 |
+
"eval.tests.test_inherit_basic.test_shared_simple_dep_inherited[toml]",
|
| 1313 |
+
"eval.tests.test_inherit_basic.test_single_member_simple_dep_centralized",
|
| 1314 |
+
"eval.tests.test_inherit_basic.test_underscore_and_hyphen_section_names[build_hyphen]",
|
| 1315 |
+
"eval.tests.test_inherit_basic.test_underscore_and_hyphen_section_names[build_underscore]",
|
| 1316 |
+
"eval.tests.test_inherit_basic.test_underscore_and_hyphen_section_names[dev_hyphen]",
|
| 1317 |
+
"eval.tests.test_inherit_basic.test_underscore_and_hyphen_section_names[dev_underscore]",
|
| 1318 |
+
"eval.tests.test_inherit_edge.test_existing_workspace_dep_is_not_clobbered[existing_major_only]",
|
| 1319 |
+
"eval.tests.test_inherit_edge.test_existing_workspace_dep_is_not_clobbered[existing_pinned_patch]",
|
| 1320 |
+
"eval.tests.test_inherit_edge.test_idempotent_run_when_all_deps_already_inherited",
|
| 1321 |
+
"eval.tests.test_inherit_edge.test_member_only_dep_that_is_already_workspace_reference_not_readded",
|
| 1322 |
+
"eval.tests.test_inherit_edge.test_mixed_already_inherited_and_plain_member",
|
| 1323 |
+
"eval.tests.test_inherit_edge.test_root_workspace_dep_processing_when_table_present",
|
| 1324 |
+
"eval.tests.test_multisource_skip.test_multisource_isolation_only_affects_that_package",
|
| 1325 |
+
"eval.tests.test_multisource_skip.test_multisource_refused_and_sources_lists[version_display_caret]",
|
| 1326 |
+
"eval.tests.test_multisource_skip.test_multisource_refused_and_sources_lists[version_display_within_caret]",
|
| 1327 |
+
"eval.tests.test_multisource_skip.test_multisource_three_way_presents_all_sources",
|
| 1328 |
+
"eval.tests.test_round4_engine_depth.test_default_features_false_merges_with_enabled_sibling",
|
| 1329 |
+
"eval.tests.test_round4_engine_depth.test_default_features_false_merges_with_false_sibling",
|
| 1330 |
+
"eval.tests.test_round4_engine_depth.test_detailed_build_dependency_centralised",
|
| 1331 |
+
"eval.tests.test_round4_engine_depth.test_detailed_dep_features_and_optional_retained",
|
| 1332 |
+
"eval.tests.test_round4_engine_depth.test_detailed_dev_dep_dotted_vs_braced_inheritance[braced]",
|
| 1333 |
+
"eval.tests.test_round4_engine_depth.test_detailed_dev_dep_dotted_vs_braced_inheritance[dotted]",
|
| 1334 |
+
"eval.tests.test_round4_engine_depth.test_detailed_dev_dependency_centralised_and_inherited",
|
| 1335 |
+
"eval.tests.test_round4_engine_depth.test_multisource_path_dep_with_version_prints_version_suffix",
|
| 1336 |
+
"eval.tests.test_round4_engine_depth.test_multisource_path_dep_without_version_has_no_version_suffix",
|
| 1337 |
+
"eval.tests.test_round4_engine_depth.test_nested_build_dependency_table_replaced_preserving_decor",
|
| 1338 |
+
"eval.tests.test_round4_engine_depth.test_nested_table_member_dep_replaced_with_single_space_prefix",
|
| 1339 |
+
"eval.tests.test_round4_engine_depth.test_nested_table_replaced_with_plain_inherited_stmt_keeps_space",
|
| 1340 |
+
"eval.tests.test_round4_engine_depth.test_path_dep_with_version_default_features_false",
|
| 1341 |
+
"eval.tests.test_round4_engine_depth.test_plain_path_dep_with_version_centralised_relative",
|
| 1342 |
+
"eval.tests.test_round4_engine_more.test_deep_nested_member_path_dep_rewritten_relative_to_root",
|
| 1343 |
+
"eval.tests.test_round4_engine_more.test_excluded_member_detailed_dep_left_untouched",
|
| 1344 |
+
"eval.tests.test_round4_engine_more.test_idempotent_dotted_rerun_stable",
|
| 1345 |
+
"eval.tests.test_round4_engine_more.test_new_member_dep_inherited_into_existing_root_table_not_clobbered",
|
| 1346 |
+
"eval.tests.test_round4_engine_more.test_no_dependencies_workspace_left_unchanged",
|
| 1347 |
+
"eval.tests.test_round4_engine_more.test_two_members_share_dep_only_one_has_detailed_optional",
|
| 1348 |
+
"eval.tests.test_round4_engine_more.test_underscore_dev_dependencies_section_shared_dep_inherited",
|
| 1349 |
+
"eval.tests.test_round5_existing_table_rerun.test_member_dev_dep_still_centralised_when_an_unrelated_root_dep_is_skipped",
|
| 1350 |
+
"eval.tests.test_round5_existing_table_rerun.test_root_nested_table_for_one_pkg_does_not_block_new_sibling",
|
| 1351 |
+
"eval.tests.test_round5_existing_table_rerun.test_root_nested_workspace_dep_table_is_preserved_and_member_inherits",
|
| 1352 |
+
"eval.tests.test_round5_existing_table_rerun.test_root_nested_workspace_dep_table_rerun_stable",
|
| 1353 |
+
"eval.tests.test_round5_existing_table_rerun.test_unsupported_source_skip_rerun_stable",
|
| 1354 |
+
"eval.tests.test_round5_skip_diagnostics.test_cli_excluded_member_does_not_hide_skip_diagnostic",
|
| 1355 |
+
"eval.tests.test_round5_skip_diagnostics.test_excluded_member_with_skipped_ws_dep_prints_no_member_action",
|
| 1356 |
+
"eval.tests.test_round5_skip_diagnostics.test_multiple_unsupported_workspace_deps_each_print_one_line",
|
| 1357 |
+
"eval.tests.test_round5_skip_diagnostics.test_no_source_detailed_workspace_dep_skipped[features_and_optional]",
|
| 1358 |
+
"eval.tests.test_round5_skip_diagnostics.test_no_source_detailed_workspace_dep_skipped[features_only]",
|
| 1359 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_index_workspace_dep_skipped[serde]",
|
| 1360 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_index_workspace_dep_skipped[toml]",
|
| 1361 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_skip_diagnostic_matches_golden_file",
|
| 1362 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_workspace_dep_skipped_with_stable_diagnostic[ahash]",
|
| 1363 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_workspace_dep_skipped_with_stable_diagnostic[serde]",
|
| 1364 |
+
"eval.tests.test_round5_skip_diagnostics.test_registry_workspace_dep_skipped_with_stable_diagnostic[toml]",
|
| 1365 |
+
"eval.tests.test_round5_skip_diagnostics.test_skipped_package_does_not_block_valid_sibling_inherit",
|
| 1366 |
+
"eval.tests.test_round5_skip_diagnostics.test_skipped_package_under_dotted_flag_still_skipped",
|
| 1367 |
+
"eval.tests.test_round5_skip_diagnostics.test_skipped_package_with_member_version_source_and_root_registry",
|
| 1368 |
+
"eval.tests.test_workspace_dep_rewrite.test_default_features_false_writes_key_in_workspace",
|
| 1369 |
+
"eval.tests.test_workspace_dep_rewrite.test_multiple_detailed_shared_deps_all_serialised",
|
| 1370 |
+
"eval.tests.test_workspace_dep_rewrite.test_path_dep_rewritten_relative_to_workspace_root",
|
| 1371 |
+
"eval.tests.test_workspace_dep_rewrite.test_plain_simple_shared_dep_stored_as_bare_string",
|
| 1372 |
+
"eval.tests.test_workspace_dep_rewrite.test_root_manifest_golden_for_detailed_path_dep",
|
| 1373 |
+
"eval.tests.test_workspace_errors.test_autoinherit_error_mentions_root_path",
|
| 1374 |
+
"eval.tests.test_workspace_errors.test_autoinherit_in_cargo_project_without_workspace_errors",
|
| 1375 |
+
"eval.tests.test_workspace_errors.test_autoinherit_in_workspace_member_subdir_succeeds",
|
| 1376 |
+
"eval.tests.test_workspace_errors.test_autoinherit_inside_non_cargo_dir_errors",
|
| 1377 |
+
"eval.tests.test_workspace_errors.test_workspace_with_zero_members_runs_cleanly"
|
| 1378 |
+
]
|
| 1379 |
+
},
|
| 1380 |
+
"generated_module_03": {
|
| 1381 |
+
"ignore_reason": "",
|
| 1382 |
+
"ignored": false,
|
| 1383 |
+
"ignored_tests": [
|
| 1384 |
+
{
|
| 1385 |
+
"name": "eval.tests.test_dedup_equal_arm.test_default_features_true_emitted_as_simple",
|
| 1386 |
+
"reasons": [
|
| 1387 |
+
{
|
| 1388 |
+
"id": "sole_returncode",
|
| 1389 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1390 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1391 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1392 |
+
"severity": "error",
|
| 1393 |
+
"stage": "static_lint"
|
| 1394 |
+
},
|
| 1395 |
+
{
|
| 1396 |
+
"id": "all_assertions_weak",
|
| 1397 |
+
"message": "pytest test uses only weak assertions",
|
| 1398 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1399 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1400 |
+
"severity": "error",
|
| 1401 |
+
"stage": "static_lint"
|
| 1402 |
+
}
|
| 1403 |
+
]
|
| 1404 |
+
},
|
| 1405 |
+
{
|
| 1406 |
+
"name": "eval.tests.test_dedup_equal_arm.test_equal_arm_anyhow_patch_variants",
|
| 1407 |
+
"reasons": [
|
| 1408 |
+
{
|
| 1409 |
+
"id": "sole_returncode",
|
| 1410 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1411 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1412 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1413 |
+
"severity": "error",
|
| 1414 |
+
"stage": "static_lint"
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"id": "all_assertions_weak",
|
| 1418 |
+
"message": "pytest test uses only weak assertions",
|
| 1419 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1420 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1421 |
+
"severity": "error",
|
| 1422 |
+
"stage": "static_lint"
|
| 1423 |
+
}
|
| 1424 |
+
]
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"name": "eval.tests.test_dedup_equal_arm.test_equal_arm_first_patch_higher",
|
| 1428 |
+
"reasons": [
|
| 1429 |
+
{
|
| 1430 |
+
"id": "sole_returncode",
|
| 1431 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1432 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1433 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1434 |
+
"severity": "error",
|
| 1435 |
+
"stage": "static_lint"
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"id": "all_assertions_weak",
|
| 1439 |
+
"message": "pytest test uses only weak assertions",
|
| 1440 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1441 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1442 |
+
"severity": "error",
|
| 1443 |
+
"stage": "static_lint"
|
| 1444 |
+
}
|
| 1445 |
+
]
|
| 1446 |
+
},
|
| 1447 |
+
{
|
| 1448 |
+
"name": "eval.tests.test_dedup_equal_arm.test_equal_arm_first_patch_lower",
|
| 1449 |
+
"reasons": [
|
| 1450 |
+
{
|
| 1451 |
+
"id": "sole_returncode",
|
| 1452 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1453 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1454 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1455 |
+
"severity": "error",
|
| 1456 |
+
"stage": "static_lint"
|
| 1457 |
+
},
|
| 1458 |
+
{
|
| 1459 |
+
"id": "all_assertions_weak",
|
| 1460 |
+
"message": "pytest test uses only weak assertions",
|
| 1461 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1462 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1463 |
+
"severity": "error",
|
| 1464 |
+
"stage": "static_lint"
|
| 1465 |
+
}
|
| 1466 |
+
]
|
| 1467 |
+
},
|
| 1468 |
+
{
|
| 1469 |
+
"name": "eval.tests.test_dedup_equal_arm.test_equal_arm_identical_patch",
|
| 1470 |
+
"reasons": [
|
| 1471 |
+
{
|
| 1472 |
+
"id": "sole_returncode",
|
| 1473 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1474 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1475 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1476 |
+
"severity": "error",
|
| 1477 |
+
"stage": "static_lint"
|
| 1478 |
+
},
|
| 1479 |
+
{
|
| 1480 |
+
"id": "all_assertions_weak",
|
| 1481 |
+
"message": "pytest test uses only weak assertions",
|
| 1482 |
+
"path": "eval/tests/test_dedup_equal_arm.py",
|
| 1483 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1484 |
+
"severity": "error",
|
| 1485 |
+
"stage": "static_lint"
|
| 1486 |
+
}
|
| 1487 |
+
]
|
| 1488 |
+
},
|
| 1489 |
+
{
|
| 1490 |
+
"name": "eval.tests.test_dedup_merge.test_equal_arm_lower_first_patch_wins_max",
|
| 1491 |
+
"reasons": [
|
| 1492 |
+
{
|
| 1493 |
+
"id": "sole_returncode",
|
| 1494 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1495 |
+
"path": "eval/tests/test_dedup_merge.py",
|
| 1496 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1497 |
+
"severity": "error",
|
| 1498 |
+
"stage": "static_lint"
|
| 1499 |
+
},
|
| 1500 |
+
{
|
| 1501 |
+
"id": "all_assertions_weak",
|
| 1502 |
+
"message": "pytest test uses only weak assertions",
|
| 1503 |
+
"path": "eval/tests/test_dedup_merge.py",
|
| 1504 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1505 |
+
"severity": "error",
|
| 1506 |
+
"stage": "static_lint"
|
| 1507 |
+
}
|
| 1508 |
+
]
|
| 1509 |
+
},
|
| 1510 |
+
{
|
| 1511 |
+
"name": "eval.tests.test_dedup_merge.test_equal_arm_second_higher_patch",
|
| 1512 |
+
"reasons": [
|
| 1513 |
+
{
|
| 1514 |
+
"id": "sole_returncode",
|
| 1515 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1516 |
+
"path": "eval/tests/test_dedup_merge.py",
|
| 1517 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1518 |
+
"severity": "error",
|
| 1519 |
+
"stage": "static_lint"
|
| 1520 |
+
},
|
| 1521 |
+
{
|
| 1522 |
+
"id": "all_assertions_weak",
|
| 1523 |
+
"message": "pytest test uses only weak assertions",
|
| 1524 |
+
"path": "eval/tests/test_dedup_merge.py",
|
| 1525 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1526 |
+
"severity": "error",
|
| 1527 |
+
"stage": "static_lint"
|
| 1528 |
+
}
|
| 1529 |
+
]
|
| 1530 |
+
},
|
| 1531 |
+
{
|
| 1532 |
+
"name": "eval.tests.test_dedup_minor_branch.test_merge_first_minor_greater_than_second",
|
| 1533 |
+
"reasons": [
|
| 1534 |
+
{
|
| 1535 |
+
"id": "sole_returncode",
|
| 1536 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1537 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1538 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1539 |
+
"severity": "error",
|
| 1540 |
+
"stage": "static_lint"
|
| 1541 |
+
},
|
| 1542 |
+
{
|
| 1543 |
+
"id": "all_assertions_weak",
|
| 1544 |
+
"message": "pytest test uses only weak assertions",
|
| 1545 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1546 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1547 |
+
"severity": "error",
|
| 1548 |
+
"stage": "static_lint"
|
| 1549 |
+
}
|
| 1550 |
+
]
|
| 1551 |
+
},
|
| 1552 |
+
{
|
| 1553 |
+
"name": "eval.tests.test_dedup_minor_branch.test_merge_first_minor_less_second_position",
|
| 1554 |
+
"reasons": [
|
| 1555 |
+
{
|
| 1556 |
+
"id": "sole_returncode",
|
| 1557 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1558 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1559 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1560 |
+
"severity": "error",
|
| 1561 |
+
"stage": "static_lint"
|
| 1562 |
+
},
|
| 1563 |
+
{
|
| 1564 |
+
"id": "all_assertions_weak",
|
| 1565 |
+
"message": "pytest test uses only weak assertions",
|
| 1566 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1567 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1568 |
+
"severity": "error",
|
| 1569 |
+
"stage": "static_lint"
|
| 1570 |
+
}
|
| 1571 |
+
]
|
| 1572 |
+
},
|
| 1573 |
+
{
|
| 1574 |
+
"name": "eval.tests.test_dedup_minor_branch.test_merge_first_minor_less_than_second",
|
| 1575 |
+
"reasons": [
|
| 1576 |
+
{
|
| 1577 |
+
"id": "sole_returncode",
|
| 1578 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1579 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1580 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1581 |
+
"severity": "error",
|
| 1582 |
+
"stage": "static_lint"
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"id": "all_assertions_weak",
|
| 1586 |
+
"message": "pytest test uses only weak assertions",
|
| 1587 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1588 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1589 |
+
"severity": "error",
|
| 1590 |
+
"stage": "static_lint"
|
| 1591 |
+
}
|
| 1592 |
+
]
|
| 1593 |
+
},
|
| 1594 |
+
{
|
| 1595 |
+
"name": "eval.tests.test_dedup_minor_branch.test_path_source_and_version_source_kept_separate",
|
| 1596 |
+
"reasons": [
|
| 1597 |
+
{
|
| 1598 |
+
"id": "short_substring",
|
| 1599 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1600 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1601 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1602 |
+
"severity": "error",
|
| 1603 |
+
"stage": "static_lint"
|
| 1604 |
+
},
|
| 1605 |
+
{
|
| 1606 |
+
"id": "generic_keyword_oracle",
|
| 1607 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1608 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1609 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1610 |
+
"severity": "error",
|
| 1611 |
+
"stage": "static_lint"
|
| 1612 |
+
}
|
| 1613 |
+
]
|
| 1614 |
+
},
|
| 1615 |
+
{
|
| 1616 |
+
"name": "eval.tests.test_dedup_minor_branch.test_three_members_distinct_minors_collapse_to_max",
|
| 1617 |
+
"reasons": [
|
| 1618 |
+
{
|
| 1619 |
+
"id": "sole_returncode",
|
| 1620 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1621 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1622 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1623 |
+
"severity": "error",
|
| 1624 |
+
"stage": "static_lint"
|
| 1625 |
+
},
|
| 1626 |
+
{
|
| 1627 |
+
"id": "all_assertions_weak",
|
| 1628 |
+
"message": "pytest test uses only weak assertions",
|
| 1629 |
+
"path": "eval/tests/test_dedup_minor_branch.py",
|
| 1630 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1631 |
+
"severity": "error",
|
| 1632 |
+
"stage": "static_lint"
|
| 1633 |
+
}
|
| 1634 |
+
]
|
| 1635 |
+
}
|
| 1636 |
+
],
|
| 1637 |
+
"tests": [
|
| 1638 |
+
"eval.tests.test_dedup_cli_behavior.test_different_major_not_merged_thiserror",
|
| 1639 |
+
"eval.tests.test_dedup_cli_behavior.test_dotted_rewrite_with_merged_shared_req",
|
| 1640 |
+
"eval.tests.test_dedup_cli_behavior.test_exact_operator_only_not_merged",
|
| 1641 |
+
"eval.tests.test_dedup_cli_behavior.test_exclude_members_long_flag",
|
| 1642 |
+
"eval.tests.test_dedup_cli_behavior.test_exclude_members_preserves_order_message",
|
| 1643 |
+
"eval.tests.test_dedup_cli_behavior.test_exclude_members_short_flag",
|
| 1644 |
+
"eval.tests.test_dedup_cli_behavior.test_exclude_members_via_workspace_metadata",
|
| 1645 |
+
"eval.tests.test_dedup_cli_behavior.test_major_zero_same_minor_libc_merges",
|
| 1646 |
+
"eval.tests.test_dedup_cli_behavior.test_operator_range_not_merged",
|
| 1647 |
+
"eval.tests.test_dedup_cli_behavior.test_prefer_simple_dotted_rewrites_members",
|
| 1648 |
+
"eval.tests.test_dedup_cli_behavior.test_wildcard_with_noncaret_merges_to_specific",
|
| 1649 |
+
"eval.tests.test_dedup_equal_arm.test_default_features_false_dominates_equal_minor",
|
| 1650 |
+
"eval.tests.test_dedup_equal_arm.test_default_features_false_exact_same_source",
|
| 1651 |
+
"eval.tests.test_dedup_equal_arm.test_default_features_true_emitted_as_simple",
|
| 1652 |
+
"eval.tests.test_dedup_equal_arm.test_equal_arm_anyhow_patch_variants",
|
| 1653 |
+
"eval.tests.test_dedup_equal_arm.test_equal_arm_first_patch_higher",
|
| 1654 |
+
"eval.tests.test_dedup_equal_arm.test_equal_arm_first_patch_lower",
|
| 1655 |
+
"eval.tests.test_dedup_equal_arm.test_equal_arm_identical_patch",
|
| 1656 |
+
"eval.tests.test_dedup_merge.test_caret_leading_caret_stripped_in_output",
|
| 1657 |
+
"eval.tests.test_dedup_merge.test_distinct_crates_each_get_shared_requirement",
|
| 1658 |
+
"eval.tests.test_dedup_merge.test_equal_arm_lower_first_patch_wins_max",
|
| 1659 |
+
"eval.tests.test_dedup_merge.test_equal_arm_second_higher_patch",
|
| 1660 |
+
"eval.tests.test_dedup_merge.test_identical_requirement_deduped",
|
| 1661 |
+
"eval.tests.test_dedup_merge.test_merge_caret_into_shared",
|
| 1662 |
+
"eval.tests.test_dedup_merge.test_merge_equal_patch_max_major_nonzero",
|
| 1663 |
+
"eval.tests.test_dedup_merge.test_merge_major_zero_same_minor",
|
| 1664 |
+
"eval.tests.test_dedup_merge.test_single_dependency_still_centralized",
|
| 1665 |
+
"eval.tests.test_dedup_merge.test_three_members_single_shared_requirement",
|
| 1666 |
+
"eval.tests.test_dedup_minor_branch.test_merge_first_minor_greater_than_second",
|
| 1667 |
+
"eval.tests.test_dedup_minor_branch.test_merge_first_minor_less_second_position",
|
| 1668 |
+
"eval.tests.test_dedup_minor_branch.test_merge_first_minor_less_than_second",
|
| 1669 |
+
"eval.tests.test_dedup_minor_branch.test_path_source_and_version_source_kept_separate",
|
| 1670 |
+
"eval.tests.test_dedup_minor_branch.test_prerelease_caret_never_merged",
|
| 1671 |
+
"eval.tests.test_dedup_minor_branch.test_three_members_distinct_minors_collapse_to_max",
|
| 1672 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_all_three_dep_kinds_collapse_to_one",
|
| 1673 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_build_dependencies_merge_across_members",
|
| 1674 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_dev_dep_distinct_crates_each_centralized",
|
| 1675 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_dev_dependencies_merge_across_members",
|
| 1676 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_dev_dependency_default_features_false_merge",
|
| 1677 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_dev_dependency_less_minor_arm",
|
| 1678 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_mixed_kinds_wildcard_vs_concrete",
|
| 1679 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_same_crate_normal_and_dev_deps_merge_to_one",
|
| 1680 |
+
"eval.tests.test_dedup_mixed_dep_kinds.test_single_dev_dependency_still_centralized",
|
| 1681 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_different_major_not_merged",
|
| 1682 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_multi_comparator_range_not_merged",
|
| 1683 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_single_non_caret_comparator_not_merged",
|
| 1684 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_two_wildcards_merge_to_star",
|
| 1685 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_wildcard_and_specific_merge_to_specific",
|
| 1686 |
+
"eval.tests.test_dedup_wildcard_nonmerge.test_wildcard_in_second_position_keeps_specific"
|
| 1687 |
+
]
|
| 1688 |
+
}
|
| 1689 |
+
},
|
| 1690 |
+
"commit": "0bb5bee3fad1c0623cac1ca8dfeebc539099f75e",
|
| 1691 |
+
"data_source": "synthetic_programgym",
|
| 1692 |
+
"difficulty": "easy",
|
| 1693 |
+
"difficulty_score": 1.9283958522567137,
|
| 1694 |
+
"eval_clean_hashes": [
|
| 1695 |
+
"ce1324aea7c4daa530ef27ecfe229eb82f6053a7ff93b33500c1500ea3bca061"
|
| 1696 |
+
],
|
| 1697 |
+
"input_record": {
|
| 1698 |
+
"codeql_db_mb": 84.2,
|
| 1699 |
+
"codeql_status": true,
|
| 1700 |
+
"codeql_time": 47.84852749388665,
|
| 1701 |
+
"commit": "0bb5bee3fad1c0623cac1ca8dfeebc539099f75e",
|
| 1702 |
+
"commits": 43,
|
| 1703 |
+
"contributors": 10,
|
| 1704 |
+
"difficulty": "easy",
|
| 1705 |
+
"difficulty_code_lines": 848,
|
| 1706 |
+
"difficulty_has_tests": false,
|
| 1707 |
+
"difficulty_product_code_lines": 848,
|
| 1708 |
+
"difficulty_runtime_deps": 9,
|
| 1709 |
+
"difficulty_score": 1.9283958522567137,
|
| 1710 |
+
"difficulty_test_code_lines": 0,
|
| 1711 |
+
"full_name": "mainmatter/cargo-autoinherit",
|
| 1712 |
+
"github_stars": 240,
|
| 1713 |
+
"input_codeql_db": "rust_codeql/mainmatter__cargo-autoinherit",
|
| 1714 |
+
"language": "rs",
|
| 1715 |
+
"pb_match": [
|
| 1716 |
+
{
|
| 1717 |
+
"pb_fullname": "BurntSushi/ripgrep",
|
| 1718 |
+
"rank": 249,
|
| 1719 |
+
"similarity": 0.45729246735572815
|
| 1720 |
+
},
|
| 1721 |
+
{
|
| 1722 |
+
"pb_fullname": "rvben/rumdl",
|
| 1723 |
+
"rank": 986,
|
| 1724 |
+
"similarity": 0.4270569384098053
|
| 1725 |
+
},
|
| 1726 |
+
{
|
| 1727 |
+
"pb_fullname": "foriequal0/git-trim",
|
| 1728 |
+
"rank": 436,
|
| 1729 |
+
"similarity": 0.39783555269241333
|
| 1730 |
+
},
|
| 1731 |
+
{
|
| 1732 |
+
"pb_fullname": "oppiliappan/statix",
|
| 1733 |
+
"rank": 396,
|
| 1734 |
+
"similarity": 0.47676336765289307
|
| 1735 |
+
},
|
| 1736 |
+
{
|
| 1737 |
+
"pb_fullname": "rust-embedded/svd2rust",
|
| 1738 |
+
"rank": 789,
|
| 1739 |
+
"similarity": 0.49909335374832153
|
| 1740 |
+
},
|
| 1741 |
+
{
|
| 1742 |
+
"pb_fullname": "cordx56/rustowl",
|
| 1743 |
+
"rank": 545,
|
| 1744 |
+
"similarity": 0.5987233519554138
|
| 1745 |
+
},
|
| 1746 |
+
{
|
| 1747 |
+
"pb_fullname": "ismaelgv/rnr",
|
| 1748 |
+
"rank": 623,
|
| 1749 |
+
"similarity": 0.4047919511795044
|
| 1750 |
+
},
|
| 1751 |
+
{
|
| 1752 |
+
"pb_fullname": "astro/deadnix",
|
| 1753 |
+
"rank": 174,
|
| 1754 |
+
"similarity": 0.5311230421066284
|
| 1755 |
+
},
|
| 1756 |
+
{
|
| 1757 |
+
"pb_fullname": "sigoden/argc",
|
| 1758 |
+
"rank": 840,
|
| 1759 |
+
"similarity": 0.44676488637924194
|
| 1760 |
+
},
|
| 1761 |
+
{
|
| 1762 |
+
"pb_fullname": "parcel-bundler/lightningcss",
|
| 1763 |
+
"rank": 440,
|
| 1764 |
+
"similarity": 0.46908313035964966
|
| 1765 |
+
},
|
| 1766 |
+
{
|
| 1767 |
+
"pb_fullname": "pls-rs/pls",
|
| 1768 |
+
"rank": 763,
|
| 1769 |
+
"similarity": 0.43088293075561523
|
| 1770 |
+
},
|
| 1771 |
+
{
|
| 1772 |
+
"pb_fullname": "Byron/dua-cli",
|
| 1773 |
+
"rank": 761,
|
| 1774 |
+
"similarity": 0.43127238750457764
|
| 1775 |
+
}
|
| 1776 |
+
],
|
| 1777 |
+
"repo_age": 2.41,
|
| 1778 |
+
"repo_path": "rust/mainmatter__cargo-autoinherit",
|
| 1779 |
+
"rust_channel": "stable",
|
| 1780 |
+
"rust_edition": "2021",
|
| 1781 |
+
"rust_release_date": "2021-10-21",
|
| 1782 |
+
"rust_version": "1.56.0",
|
| 1783 |
+
"rust_version_source": "edition",
|
| 1784 |
+
"source": "commit:0bb5bee3fad1c0623cac1ca8dfeebc539099f75e",
|
| 1785 |
+
"status": "done",
|
| 1786 |
+
"url": "https://github.com/mainmatter/cargo-autoinherit"
|
| 1787 |
+
},
|
| 1788 |
+
"instance_id": "mainmatter__cargo-autoinherit.0bb5bee",
|
| 1789 |
+
"language": "rust",
|
| 1790 |
+
"module_iterations": [
|
| 1791 |
+
{
|
| 1792 |
+
"actual_iterations": 5,
|
| 1793 |
+
"branch_name": "generated_module_01",
|
| 1794 |
+
"iteration_limit": 5,
|
| 1795 |
+
"module_index": 1,
|
| 1796 |
+
"module_kind": "source",
|
| 1797 |
+
"termination_reason": "max_iterations"
|
| 1798 |
+
},
|
| 1799 |
+
{
|
| 1800 |
+
"actual_iterations": 5,
|
| 1801 |
+
"branch_name": "generated_module_02",
|
| 1802 |
+
"iteration_limit": 5,
|
| 1803 |
+
"module_index": 2,
|
| 1804 |
+
"module_kind": "source",
|
| 1805 |
+
"termination_reason": "max_iterations"
|
| 1806 |
+
},
|
| 1807 |
+
{
|
| 1808 |
+
"actual_iterations": 5,
|
| 1809 |
+
"branch_name": "generated_module_03",
|
| 1810 |
+
"iteration_limit": 5,
|
| 1811 |
+
"module_index": 3,
|
| 1812 |
+
"module_kind": "source",
|
| 1813 |
+
"termination_reason": "max_iterations"
|
| 1814 |
+
}
|
| 1815 |
+
],
|
| 1816 |
+
"repository": "mainmatter/cargo-autoinherit"
|
| 1817 |
+
}
|
mainmatter--cargo-autoinherit.0bb5bee/tests/test.sh
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
|
| 5 |
+
export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
|
| 6 |
+
|
| 7 |
+
mkdir -p /logs/verifier /logs/artifacts
|
| 8 |
+
|
| 9 |
+
write_failure() {
|
| 10 |
+
local code="$1"
|
| 11 |
+
local details="$2"
|
| 12 |
+
python3 - "$code" "$details" <<'PY'
|
| 13 |
+
import json
|
| 14 |
+
import sys
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
code, details = sys.argv[1:3]
|
| 18 |
+
try:
|
| 19 |
+
metadata = json.loads(Path("/tests/programgym_task.json").read_text())
|
| 20 |
+
n_tests = sum(
|
| 21 |
+
len([
|
| 22 |
+
name for name in info.get("tests", [])
|
| 23 |
+
if name not in {item.get("name") for item in info.get("ignored_tests", [])}
|
| 24 |
+
])
|
| 25 |
+
for branch, info in metadata.get("branches", {}).items()
|
| 26 |
+
if not info.get("ignored")
|
| 27 |
+
)
|
| 28 |
+
except Exception:
|
| 29 |
+
n_tests = 0
|
| 30 |
+
result = {
|
| 31 |
+
"test_results": [],
|
| 32 |
+
"error_code": code,
|
| 33 |
+
"error_details": details,
|
| 34 |
+
"log": [],
|
| 35 |
+
"solution_branch": "submission",
|
| 36 |
+
"test_branches": [],
|
| 37 |
+
"test_branch_errors": {
|
| 38 |
+
"__infra__": [{"error_code": code, "error_details": details}]
|
| 39 |
+
},
|
| 40 |
+
"executable_hash": None,
|
| 41 |
+
"warnings": [],
|
| 42 |
+
}
|
| 43 |
+
diagnostics = {
|
| 44 |
+
"pass_rate": 0.0,
|
| 45 |
+
"resolved": 0,
|
| 46 |
+
"n_passed": 0,
|
| 47 |
+
"n_tests": n_tests,
|
| 48 |
+
"n_branch_errors": 1,
|
| 49 |
+
"infra_error": 1,
|
| 50 |
+
"executable_hash_present": 0,
|
| 51 |
+
}
|
| 52 |
+
Path("/logs/verifier/programgym_eval.json").write_text(
|
| 53 |
+
json.dumps(result, indent=2, sort_keys=True)
|
| 54 |
+
)
|
| 55 |
+
Path("/logs/verifier/harbor_diagnostics.json").write_text(
|
| 56 |
+
json.dumps(diagnostics, indent=2, sort_keys=True)
|
| 57 |
+
)
|
| 58 |
+
Path("/logs/verifier/reward.json").write_text(
|
| 59 |
+
json.dumps(
|
| 60 |
+
{"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
|
| 61 |
+
indent=2,
|
| 62 |
+
sort_keys=True,
|
| 63 |
+
)
|
| 64 |
+
)
|
| 65 |
+
Path("/logs/verifier/reward.txt").write_text("0.0")
|
| 66 |
+
Path("/logs/verifier/programgym_eval.log").write_text(details)
|
| 67 |
+
PY
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 71 |
+
write_failure "missing_python3" "python3 is required in the cleanroom image"
|
| 72 |
+
exit 0
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
if ! python3 /tests/programgym_evaluator.py; then
|
| 76 |
+
if [ ! -s /logs/verifier/reward.txt ]; then
|
| 77 |
+
write_failure "evaluator_crashed" \
|
| 78 |
+
"programgym_evaluator.py exited non-zero with no reward written"
|
| 79 |
+
fi
|
| 80 |
+
fi
|
| 81 |
+
|
| 82 |
+
exit 0
|
mainmatter--cargo-autoinherit.0bb5bee/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:939d482dd2d8ab03b16dee333b0f46110dcca8b7d5da9076e1249d3e2f4c60a8
|
| 3 |
+
size 6483
|
majerle--lwrb.eb95819/environment/Dockerfile
CHANGED
|
@@ -54,3 +54,4 @@ RUN mkdir -p /home/agent \
|
|
| 54 |
&& chmod 111 /workspace/executable
|
| 55 |
ENV HOME=/home/agent
|
| 56 |
WORKDIR /workspace
|
|
|
|
|
|
| 54 |
&& chmod 111 /workspace/executable
|
| 55 |
ENV HOME=/home/agent
|
| 56 |
WORKDIR /workspace
|
| 57 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
majerle--lwrb.eb95819/tests/Dockerfile
CHANGED
|
@@ -68,3 +68,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 68 |
COPY programgym_task.json /tests/programgym_task.json
|
| 69 |
COPY blobs/ /tests/blobs/
|
| 70 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 68 |
COPY programgym_task.json /tests/programgym_task.json
|
| 69 |
COPY blobs/ /tests/blobs/
|
| 70 |
RUN chmod +x /tests/test.sh
|
| 71 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
majerle--lwshell.61f0a5b/environment/Dockerfile
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 51 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 52 |
+
ENV HOME=/workspace
|
| 53 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 54 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 55 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 56 |
+
ENV PAGER=cat
|
| 57 |
+
ENV MANPAGER=cat
|
| 58 |
+
ENV LESS=-R
|
| 59 |
+
ENV TQDM_DISABLE=1
|
| 60 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 61 |
+
ARG CMAKE_VERSION=3.31.10
|
| 62 |
+
RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 63 |
+
# programgym_quota_aware_nproc=1
|
| 64 |
+
RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
|
| 65 |
+
WORKDIR /workspace
|
| 66 |
+
ADD workspace.tar.gz /workspace/
|
| 67 |
+
COPY executable /workspace/executable
|
| 68 |
+
COPY download.sh /workspace/download.sh
|
| 69 |
+
RUN chmod 755 /workspace/download.sh
|
| 70 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 71 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 72 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 73 |
+
&& rm -f /workspace/download.sh \
|
| 74 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 75 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 76 |
+
RUN chmod 111 /workspace/executable
|
| 77 |
+
WORKDIR /workspace
|
| 78 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 79 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 80 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 81 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 82 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 83 |
+
RUN mkdir -p /home/agent \
|
| 84 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 85 |
+
&& chown agent:agent /workspace/executable \
|
| 86 |
+
&& chmod 111 /workspace/executable
|
| 87 |
+
ENV HOME=/home/agent
|
| 88 |
+
WORKDIR /workspace
|
| 89 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
majerle--lwshell.61f0a5b/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
main:
|
| 3 |
+
build:
|
| 4 |
+
args:
|
| 5 |
+
PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
|
| 6 |
+
PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
|
| 7 |
+
PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
|
| 8 |
+
PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
|
| 9 |
+
PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
|
| 10 |
+
PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
|
| 11 |
+
PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
|
| 12 |
+
PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
|
| 13 |
+
PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
|
| 14 |
+
PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
|
| 15 |
+
PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
|
| 16 |
+
PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
|
| 17 |
+
PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
|
| 18 |
+
PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
|
| 19 |
+
PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
|
| 20 |
+
PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
|
| 21 |
+
PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
|
| 22 |
+
PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
|
majerle--lwshell.61f0a5b/environment/download.sh
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh - ProgramGym download stage for MaJerle/lwshell (C).
|
| 4 |
+
#
|
| 5 |
+
# This project is a single CMake-driven C library (static `lwshell`) plus one
|
| 6 |
+
# demo executable `LwLibPROJECT`. The build requires only a C toolchain and
|
| 7 |
+
# CMake, all of which are already present in the base image (gcc 13, make 4.3,
|
| 8 |
+
# cmake 3.31). The final executable links statically against the project's own
|
| 9 |
+
# `lwshell` library and dynamically only against libc, so no additional system
|
| 10 |
+
# packages or third-party sources are required.
|
| 11 |
+
#
|
| 12 |
+
# This script therefore performs no package installs and no downloads. It only
|
| 13 |
+
# verifies that the prerequisite build tools are available and exports the
|
| 14 |
+
# environment the offline build stage relies on. It never compiles, links,
|
| 15 |
+
# tests, or packages anything.
|
| 16 |
+
#
|
| 17 |
+
# It is sourced (`source /source_ro/download.sh`), so it must not `exit` in
|
| 18 |
+
# normal control flow, must not depend on positional arguments, and must not
|
| 19 |
+
# depend on any repository source file being present.
|
| 20 |
+
|
| 21 |
+
# Fail helper usable in both sourced and standalone contexts.
|
| 22 |
+
pb_fail() {
|
| 23 |
+
if [ "${BASH_SOURCE[0]}" != "" ]; then
|
| 24 |
+
return 1
|
| 25 |
+
else
|
| 26 |
+
exit 1
|
| 27 |
+
fi
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
# Verify the build toolchain is reachable. Missing tools are a hard failure:
|
| 31 |
+
# build.sh cannot proceed without a compiler and a configured CMake generator.
|
| 32 |
+
for tool in gcc make cmake; do
|
| 33 |
+
if ! command -v "$tool"; then
|
| 34 |
+
echo "lwshell download: required tool '$tool' not found on PATH" 1>&2
|
| 35 |
+
pb_fail
|
| 36 |
+
fi
|
| 37 |
+
done
|
| 38 |
+
|
| 39 |
+
# Export the default value of the feature-header macro LWSHELL_CFG_USE_STATIC_COMMANDS
|
| 40 |
+
# that the final build relies on (kept for build.sh reference).
|
| 41 |
+
if [ "${LWSHELL_CFG_USE_STATIC_COMMANDS:-}" = "" ]; then
|
| 42 |
+
export LWSHELL_CFG_USE_STATIC_COMMANDS="1"
|
| 43 |
+
fi
|
| 44 |
+
|
| 45 |
+
echo "lwshell download: build toolchain verified (gcc, make, cmake) - no downloads/installs needed"
|
| 46 |
+
|
| 47 |
+
# Source-safe completion: when sourced, `return` ends the sourced script
|
| 48 |
+
# cleanly; when executed directly as ./download.sh, fall through to normal exit.
|
| 49 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 50 |
+
exit 0
|
| 51 |
+
fi
|
| 52 |
+
return 0
|
majerle--lwshell.61f0a5b/environment/executable
ADDED
|
Binary file (21.5 kB). View file
|
|
|
majerle--lwshell.61f0a5b/environment/harbor_configure_apt_mirror.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
repository_base="${1%/}"
|
| 5 |
+
if [[ -z "$repository_base" ]]; then
|
| 6 |
+
exit 0
|
| 7 |
+
fi
|
| 8 |
+
|
| 9 |
+
. /etc/os-release
|
| 10 |
+
codename="${VERSION_CODENAME:-}"
|
| 11 |
+
if [[ -z "$codename" ]]; then
|
| 12 |
+
echo "VERSION_CODENAME is not set" >&2
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
if [[ "$ID" == "ubuntu" ]]; then
|
| 17 |
+
repository_name="apt-proxy"
|
| 18 |
+
components="main universe restricted multiverse"
|
| 19 |
+
else
|
| 20 |
+
repository_name="debian-proxy"
|
| 21 |
+
components="main contrib non-free non-free-firmware"
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
+
install -d /etc/apt/sources.list.d
|
| 25 |
+
rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
|
| 26 |
+
printf 'deb [trusted=yes] %s/%s %s %s\n' \
|
| 27 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 28 |
+
>/etc/apt/sources.list
|
| 29 |
+
printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
|
| 30 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 31 |
+
>>/etc/apt/sources.list
|
| 32 |
+
|
| 33 |
+
if [[ "$ID" != "ubuntu" ]]; then
|
| 34 |
+
printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
|
| 35 |
+
"$repository_base" "debian-proxy-security" "$codename" "$components" \
|
| 36 |
+
>>/etc/apt/sources.list
|
| 37 |
+
fi
|
majerle--lwshell.61f0a5b/environment/harbor_configure_java_mirrors.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
maven_url="${1%/}"
|
| 5 |
+
plugin_url="${2%/}"
|
| 6 |
+
jitpack_url="${3%/}"
|
| 7 |
+
|
| 8 |
+
install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
|
| 9 |
+
if [[ -n "$maven_url" ]]; then
|
| 10 |
+
cat >/workspace/.m2/settings.xml <<EOF
|
| 11 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 12 |
+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
|
| 13 |
+
<mirrors>
|
| 14 |
+
<mirror>
|
| 15 |
+
<id>programgym-maven</id>
|
| 16 |
+
<name>ProgramGym Maven mirror</name>
|
| 17 |
+
<url>${maven_url}</url>
|
| 18 |
+
<mirrorOf>*</mirrorOf>
|
| 19 |
+
</mirror>
|
| 20 |
+
</mirrors>
|
| 21 |
+
</settings>
|
| 22 |
+
EOF
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
|
| 26 |
+
def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
|
| 27 |
+
def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
|
| 28 |
+
def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
|
| 29 |
+
|
| 30 |
+
settingsEvaluated { settings ->
|
| 31 |
+
settings.pluginManagement.repositories {
|
| 32 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 33 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
allprojects {
|
| 38 |
+
buildscript.repositories {
|
| 39 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 40 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 41 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 42 |
+
}
|
| 43 |
+
repositories {
|
| 44 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 45 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
EOF
|
| 49 |
+
cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
|
| 50 |
+
/workspace/.gradle/init.d/programgym-mirrors.gradle
|
majerle--lwshell.61f0a5b/environment/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
|
| 6 |
+
sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
|
| 7 |
+
fi
|
| 8 |
+
if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
|
| 9 |
+
sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
|
| 10 |
+
fi
|
| 11 |
+
if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
|
| 12 |
+
sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
|
| 13 |
+
fi
|
| 14 |
+
source /workspace/download.sh
|
| 15 |
+
set +a
|
| 16 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 17 |
+
import os
|
| 18 |
+
import shlex
|
| 19 |
+
|
| 20 |
+
ignored = {
|
| 21 |
+
"ALL_PROXY",
|
| 22 |
+
"HTTP_PROXY",
|
| 23 |
+
"HTTPS_PROXY",
|
| 24 |
+
"NO_PROXY",
|
| 25 |
+
"OLDPWD",
|
| 26 |
+
"PIP_PROXY",
|
| 27 |
+
"PWD",
|
| 28 |
+
"SHLVL",
|
| 29 |
+
"_",
|
| 30 |
+
"all_proxy",
|
| 31 |
+
"http_proxy",
|
| 32 |
+
"https_proxy",
|
| 33 |
+
"no_proxy",
|
| 34 |
+
"pip_proxy",
|
| 35 |
+
}
|
| 36 |
+
for key in sorted(os.environ):
|
| 37 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 38 |
+
continue
|
| 39 |
+
value = os.environ[key]
|
| 40 |
+
if "\n" in value:
|
| 41 |
+
continue
|
| 42 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 43 |
+
PY
|
| 44 |
+
chmod 0644 /etc/profile.d/programgym_download_env.sh
|
majerle--lwshell.61f0a5b/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d70cd256ddc65a2894ad640431d354ca51979241272819593d18ad207185a95b
|
| 3 |
+
size 5154
|
majerle--lwshell.61f0a5b/instruction.md
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
You are a helpful assistant that can interact with a computer.
|
| 2 |
+
|
| 3 |
+
This is a reverse-engineering benchmark. You are given a compiled binary and its documentation.
|
| 4 |
+
Your job is to write a new, original codebase from scratch that produces an executable with identical behavior.
|
| 5 |
+
You must figure out the behavior solely by running and interacting with the provided binary.
|
| 6 |
+
Writing original code based on observed behavior is the entire point of this benchmark.
|
| 7 |
+
|
| 8 |
+
Any approach that shortcuts this — finding existing source code, wrapping the binary,
|
| 9 |
+
or installing the original tool — does not count as a solution. It will be detected by an
|
| 10 |
+
automated judge, marked as a disqualification, and scored as a failure.
|
| 11 |
+
The trace will be posted to an online wall of shame.
|
| 12 |
+
|
| 13 |
+
<RULES>
|
| 14 |
+
## What is not allowed
|
| 15 |
+
|
| 16 |
+
### 1. Obtaining source code
|
| 17 |
+
|
| 18 |
+
The only source of truth about what the executable does is the executable itself and its
|
| 19 |
+
bundled documentation. You must not search the internet, package registries, or any external
|
| 20 |
+
source for information about this project's source code. Even if you recognize what the
|
| 21 |
+
executable is, you must reimplement it from behavioral observation alone.
|
| 22 |
+
|
| 23 |
+
This includes but is not limited to:
|
| 24 |
+
- Cloning or browsing the original GitHub repository, its forks, or mirrors
|
| 25 |
+
- Downloading the project from package registries: `cargo install <project>`, `go get github.com/<org>/<project>`, `pip install <project>`, `apt-get source <project>`, `npm install <project>`, etc.
|
| 26 |
+
- Fetching source tarballs from project websites (e.g., `curl https://lua.org/ftp/lua-5.5.0.tar.gz`)
|
| 27 |
+
- Using a package manager to download the project as a dependency and then reading its cached source (e.g., navigating into `~/.cargo/registry/src/` or `$(go env GOPATH)/pkg/mod/`)
|
| 28 |
+
- Searching the web for the project's source code or implementation details
|
| 29 |
+
|
| 30 |
+
### 2. Wrapping or reusing the original binary
|
| 31 |
+
|
| 32 |
+
Your submission must be a genuine reimplementation. The provided `./executable` is for
|
| 33 |
+
observation only — your final solution must not depend on it or any other pre-built version
|
| 34 |
+
of the same tool at runtime.
|
| 35 |
+
|
| 36 |
+
This includes but is not limited to:
|
| 37 |
+
- Writing a wrapper script that delegates to the original binary (e.g., `exec zstd "$@"`)
|
| 38 |
+
- Installing the tool from a package manager and shimming to it (e.g., `apt-get install nnn && cp $(which nnn) ./executable`)
|
| 39 |
+
- Writing a `compile.sh` that simply makes the provided binary executable (`chmod +x ./executable`) or copies it (`cp ./executable ./executable`)
|
| 40 |
+
- Building a binary whose main function shells out to an external tool (e.g., `Command::new("miniserve").args(args).exec()`)
|
| 41 |
+
- Re-linking prebuilt `.o` object files found in the workspace without writing new source code
|
| 42 |
+
|
| 43 |
+
### 3. Binary analysis of the provided executable
|
| 44 |
+
|
| 45 |
+
All information about the provided `./executable` must be obtained by interacting with it
|
| 46 |
+
through its normal user interface (CLI flags, stdin/stdout, etc.).
|
| 47 |
+
- You MUST NOT decompile `./executable` or use disassemblers (objdump, Ghidra, etc.) on it
|
| 48 |
+
- You MUST NOT use strace, ltrace, or similar tracing/instrumentation tools on `./executable`
|
| 49 |
+
|
| 50 |
+
Note: this restriction applies ONLY to the provided `./executable`. You are free to use any
|
| 51 |
+
analysis tools on binaries that you produce yourself during development.
|
| 52 |
+
|
| 53 |
+
## What IS allowed
|
| 54 |
+
|
| 55 |
+
- Running the executable with any inputs, flags, and arguments to observe its behavior
|
| 56 |
+
- Reading any documentation files bundled in the workspace
|
| 57 |
+
</RULES>
|
| 58 |
+
|
| 59 |
+
## Task context
|
| 60 |
+
|
| 61 |
+
We want to write the source code for a given executable.
|
| 62 |
+
The executable is located at `./executable` in the workspace root.
|
| 63 |
+
|
| 64 |
+
You also have access to the existing documentation.
|
| 65 |
+
|
| 66 |
+
## Your task
|
| 67 |
+
|
| 68 |
+
Implement the source code to generate an executable of exactly identical behavior as the original.
|
| 69 |
+
|
| 70 |
+
No project-specific dependencies are pre-installed.
|
| 71 |
+
You do NOT have access to the internet.
|
| 72 |
+
**IMPORTANT**: Make sure that the executable(s) and everything else that is an artifact is not committed, i.e., is in your `.gitignore` file.
|
| 73 |
+
Finally, commit your changes.
|
| 74 |
+
|
| 75 |
+
Make sure that you have a `./compile.sh` file that produces an executable `./executable` in the workspace root.
|
| 76 |
+
`compile.sh` should be executable and should install any dependencies needed to compile the executable.
|
| 77 |
+
If your compile.sh fails to compile on a fresh checkout, your task has failed.
|
| 78 |
+
|
| 79 |
+
## Important: This is a reverse-engineering benchmark
|
| 80 |
+
|
| 81 |
+
Your goal is to write original code from scratch that reproduces the executable's behavior.
|
| 82 |
+
The only way to learn what the executable does is to run it and read its bundled documentation.
|
| 83 |
+
|
| 84 |
+
Any attempt to obtain source code — whether successful or not — or to wrap/reuse the
|
| 85 |
+
provided binary will be detected by an automated judge, disqualified, and scored as zero.
|
| 86 |
+
See the full rules in the system prompt above. Key points:
|
| 87 |
+
|
| 88 |
+
- Do NOT search the internet, clone repos, or download the project from any package registry
|
| 89 |
+
- Do NOT wrap, shim, or delegate to the provided `./executable` or any installed version of the same tool
|
| 90 |
+
- Do NOT decompile the provided `./executable` or use strace/ltrace on it (analyzing your own binaries is fine)
|
| 91 |
+
- You SHOULD extensively test the executable to understand its behavior before writing code.
|
| 92 |
+
If you are dealing with a TUI, tmux/libtmux has been installed to help you test/inspect/it.
|
| 93 |
+
|
| 94 |
+
## Recommended Workflow
|
| 95 |
+
|
| 96 |
+
1. Explore all documentation files
|
| 97 |
+
2. Play with the executable to understand its behavior (however, you MUST NOT decompile `./executable` or perform any other form of binary or strace/ltrace analysis on it)
|
| 98 |
+
3. Write the source code to implement the behavior
|
majerle--lwshell.61f0a5b/solution/solve.sh
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Oracle-only ceiling check. The reference is execute-only for normal agents;
|
| 3 |
+
# because the oracle runs as the owning `agent` user it can temporarily add read
|
| 4 |
+
# permission and encode the binary for Harbor's normal artifact handoff.
|
| 5 |
+
set -euo pipefail
|
| 6 |
+
test -f ./executable
|
| 7 |
+
chmod u+r ./executable
|
| 8 |
+
python3 - <<'PY'
|
| 9 |
+
import base64
|
| 10 |
+
from pathlib import Path
|
| 11 |
+
|
| 12 |
+
Path(".programgym_oracle_reference").write_bytes(
|
| 13 |
+
base64.b64encode(Path("executable").read_bytes())
|
| 14 |
+
)
|
| 15 |
+
PY
|
| 16 |
+
chmod u-r ./executable
|
| 17 |
+
cat > compile.sh <<'EOF'
|
| 18 |
+
#!/usr/bin/env bash
|
| 19 |
+
set -euo pipefail
|
| 20 |
+
if [ -f ./.programgym_oracle_reference ]; then
|
| 21 |
+
python3 - <<'PY'
|
| 22 |
+
import base64
|
| 23 |
+
from pathlib import Path
|
| 24 |
+
|
| 25 |
+
Path("executable").write_bytes(
|
| 26 |
+
base64.b64decode(Path(".programgym_oracle_reference").read_bytes())
|
| 27 |
+
)
|
| 28 |
+
PY
|
| 29 |
+
fi
|
| 30 |
+
test -f ./executable
|
| 31 |
+
chmod +x ./executable
|
| 32 |
+
EOF
|
| 33 |
+
chmod +x compile.sh
|
majerle--lwshell.61f0a5b/task.toml
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = "1.3"
|
| 2 |
+
source = "ProgramGym"
|
| 3 |
+
artifacts = [
|
| 4 |
+
"/logs/verifier/programgym_eval.json",
|
| 5 |
+
"/logs/verifier/harbor_diagnostics.json",
|
| 6 |
+
"/logs/verifier/programgym_eval.log",
|
| 7 |
+
"/logs/verifier/reward.json",
|
| 8 |
+
"/logs/verifier/reward.txt",
|
| 9 |
+
# Keep agent/runtime state out of the submission handoff. In particular,
|
| 10 |
+
# Claude Code installs an absolute symlink under .local/bin; transferring it
|
| 11 |
+
# makes Python's safe tar extraction reject the entire workspace archive.
|
| 12 |
+
{ source = "/workspace", exclude = [
|
| 13 |
+
"executable",
|
| 14 |
+
".git",
|
| 15 |
+
".bashrc",
|
| 16 |
+
".cache",
|
| 17 |
+
".cc-switch",
|
| 18 |
+
".claude",
|
| 19 |
+
".local",
|
| 20 |
+
] },
|
| 21 |
+
]
|
| 22 |
+
|
| 23 |
+
[task]
|
| 24 |
+
name = "programgym/majerle--lwshell.61f0a5b"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for MaJerle/lwshell"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "c"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "MaJerle__lwshell.61f0a5b"
|
| 32 |
+
repository = "MaJerle/lwshell"
|
| 33 |
+
commit = "61f0a5bbcb6178c09a97a69a90c2bb3d100d3a1d"
|
| 34 |
+
language = "c"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.0588054866759067
|
| 37 |
+
test_branches = 3
|
| 38 |
+
test_count = 205
|
| 39 |
+
|
| 40 |
+
[agent]
|
| 41 |
+
timeout_sec = 14400
|
| 42 |
+
user = "agent"
|
| 43 |
+
network_mode = "allowlist"
|
| 44 |
+
allowed_hosts = ["api.anthropic.com", "api.openai.com"]
|
| 45 |
+
|
| 46 |
+
[verifier]
|
| 47 |
+
timeout_sec = 7200
|
| 48 |
+
user = "root"
|
| 49 |
+
environment_mode = "separate"
|
| 50 |
+
|
| 51 |
+
[verifier.env]
|
| 52 |
+
PROGRAMGYM_XDIST_WORKERS = "8"
|
| 53 |
+
|
| 54 |
+
[verifier.environment]
|
| 55 |
+
build_timeout_sec = 1800
|
| 56 |
+
cpus = 8
|
| 57 |
+
memory_mb = 16384
|
| 58 |
+
storage_mb = 30720
|
| 59 |
+
gpus = 0
|
| 60 |
+
workdir = "/workspace"
|
| 61 |
+
|
| 62 |
+
[environment]
|
| 63 |
+
network_mode = "public"
|
| 64 |
+
build_timeout_sec = 1800
|
| 65 |
+
cpus = 8
|
| 66 |
+
memory_mb = 16384
|
| 67 |
+
storage_mb = 30720
|
| 68 |
+
gpus = 0
|
| 69 |
+
workdir = "/workspace"
|
majerle--lwshell.61f0a5b/tests/Dockerfile
ADDED
|
@@ -0,0 +1,103 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 51 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 52 |
+
ENV HOME=/workspace
|
| 53 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 54 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 55 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 56 |
+
ENV PAGER=cat
|
| 57 |
+
ENV MANPAGER=cat
|
| 58 |
+
ENV LESS=-R
|
| 59 |
+
ENV TQDM_DISABLE=1
|
| 60 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils libtool libncurses-dev meson ninja-build python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 61 |
+
ARG CMAKE_VERSION=3.31.10
|
| 62 |
+
RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 63 |
+
# programgym_quota_aware_nproc=1
|
| 64 |
+
RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
|
| 65 |
+
WORKDIR /workspace
|
| 66 |
+
ADD workspace.tar.gz /workspace/
|
| 67 |
+
COPY executable /workspace/executable
|
| 68 |
+
COPY download.sh /workspace/download.sh
|
| 69 |
+
RUN chmod 755 /workspace/download.sh
|
| 70 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 71 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 72 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 73 |
+
&& rm -f /workspace/download.sh \
|
| 74 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 75 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 76 |
+
RUN chmod 111 /workspace/executable
|
| 77 |
+
WORKDIR /workspace
|
| 78 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 79 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 80 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 81 |
+
&& mkdir -p /workspace /tests
|
| 82 |
+
|
| 83 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 84 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 85 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 86 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 87 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 88 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 89 |
+
RUN set -eu; \
|
| 90 |
+
pip_break_system_packages=""; \
|
| 91 |
+
if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
|
| 92 |
+
pip_break_system_packages="--break-system-packages"; \
|
| 93 |
+
fi; \
|
| 94 |
+
python3 -m pip install ${pip_break_system_packages} \
|
| 95 |
+
--no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
|
| 96 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 97 |
+
|
| 98 |
+
COPY test.sh /tests/test.sh
|
| 99 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 100 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 101 |
+
COPY blobs/ /tests/blobs/
|
| 102 |
+
RUN chmod +x /tests/test.sh
|
| 103 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
majerle--lwshell.61f0a5b/tests/blobs/tests/generated_module_01.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8fc3afb438eeda04438629be32d1009e7da56b90e8294c36d1e2fc227b1be4e5
|
| 3 |
+
size 16309
|
majerle--lwshell.61f0a5b/tests/blobs/tests/generated_module_03.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32e1b64dced8c2ce6e845352d5186d16950baa24f888da4f193c3ac16ec49ce7
|
| 3 |
+
size 12009
|
majerle--lwshell.61f0a5b/tests/blobs/tests/generated_upstream.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9c6eab324f9302ce58b3e0ce6905f86f4459511486ff58164b5fd313f2744bcd
|
| 3 |
+
size 3359
|
majerle--lwshell.61f0a5b/tests/docker-compose.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
main:
|
| 3 |
+
build:
|
| 4 |
+
args:
|
| 5 |
+
PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
|
| 6 |
+
PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
|
| 7 |
+
PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
|
| 8 |
+
PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
|
| 9 |
+
PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
|
| 10 |
+
PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
|
| 11 |
+
PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
|
| 12 |
+
PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
|
| 13 |
+
PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
|
| 14 |
+
PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
|
| 15 |
+
PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
|
| 16 |
+
PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
|
| 17 |
+
PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
|
| 18 |
+
PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
|
| 19 |
+
PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
|
| 20 |
+
PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
|
| 21 |
+
PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
|
| 22 |
+
PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
|
majerle--lwshell.61f0a5b/tests/download.sh
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh - ProgramGym download stage for MaJerle/lwshell (C).
|
| 4 |
+
#
|
| 5 |
+
# This project is a single CMake-driven C library (static `lwshell`) plus one
|
| 6 |
+
# demo executable `LwLibPROJECT`. The build requires only a C toolchain and
|
| 7 |
+
# CMake, all of which are already present in the base image (gcc 13, make 4.3,
|
| 8 |
+
# cmake 3.31). The final executable links statically against the project's own
|
| 9 |
+
# `lwshell` library and dynamically only against libc, so no additional system
|
| 10 |
+
# packages or third-party sources are required.
|
| 11 |
+
#
|
| 12 |
+
# This script therefore performs no package installs and no downloads. It only
|
| 13 |
+
# verifies that the prerequisite build tools are available and exports the
|
| 14 |
+
# environment the offline build stage relies on. It never compiles, links,
|
| 15 |
+
# tests, or packages anything.
|
| 16 |
+
#
|
| 17 |
+
# It is sourced (`source /source_ro/download.sh`), so it must not `exit` in
|
| 18 |
+
# normal control flow, must not depend on positional arguments, and must not
|
| 19 |
+
# depend on any repository source file being present.
|
| 20 |
+
|
| 21 |
+
# Fail helper usable in both sourced and standalone contexts.
|
| 22 |
+
pb_fail() {
|
| 23 |
+
if [ "${BASH_SOURCE[0]}" != "" ]; then
|
| 24 |
+
return 1
|
| 25 |
+
else
|
| 26 |
+
exit 1
|
| 27 |
+
fi
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
# Verify the build toolchain is reachable. Missing tools are a hard failure:
|
| 31 |
+
# build.sh cannot proceed without a compiler and a configured CMake generator.
|
| 32 |
+
for tool in gcc make cmake; do
|
| 33 |
+
if ! command -v "$tool"; then
|
| 34 |
+
echo "lwshell download: required tool '$tool' not found on PATH" 1>&2
|
| 35 |
+
pb_fail
|
| 36 |
+
fi
|
| 37 |
+
done
|
| 38 |
+
|
| 39 |
+
# Export the default value of the feature-header macro LWSHELL_CFG_USE_STATIC_COMMANDS
|
| 40 |
+
# that the final build relies on (kept for build.sh reference).
|
| 41 |
+
if [ "${LWSHELL_CFG_USE_STATIC_COMMANDS:-}" = "" ]; then
|
| 42 |
+
export LWSHELL_CFG_USE_STATIC_COMMANDS="1"
|
| 43 |
+
fi
|
| 44 |
+
|
| 45 |
+
echo "lwshell download: build toolchain verified (gcc, make, cmake) - no downloads/installs needed"
|
| 46 |
+
|
| 47 |
+
# Source-safe completion: when sourced, `return` ends the sourced script
|
| 48 |
+
# cleanly; when executed directly as ./download.sh, fall through to normal exit.
|
| 49 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 50 |
+
exit 0
|
| 51 |
+
fi
|
| 52 |
+
return 0
|
majerle--lwshell.61f0a5b/tests/executable
ADDED
|
Binary file (21.5 kB). View file
|
|
|
majerle--lwshell.61f0a5b/tests/harbor_configure_apt_mirror.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
repository_base="${1%/}"
|
| 5 |
+
if [[ -z "$repository_base" ]]; then
|
| 6 |
+
exit 0
|
| 7 |
+
fi
|
| 8 |
+
|
| 9 |
+
. /etc/os-release
|
| 10 |
+
codename="${VERSION_CODENAME:-}"
|
| 11 |
+
if [[ -z "$codename" ]]; then
|
| 12 |
+
echo "VERSION_CODENAME is not set" >&2
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
if [[ "$ID" == "ubuntu" ]]; then
|
| 17 |
+
repository_name="apt-proxy"
|
| 18 |
+
components="main universe restricted multiverse"
|
| 19 |
+
else
|
| 20 |
+
repository_name="debian-proxy"
|
| 21 |
+
components="main contrib non-free non-free-firmware"
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
+
install -d /etc/apt/sources.list.d
|
| 25 |
+
rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
|
| 26 |
+
printf 'deb [trusted=yes] %s/%s %s %s\n' \
|
| 27 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 28 |
+
>/etc/apt/sources.list
|
| 29 |
+
printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
|
| 30 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 31 |
+
>>/etc/apt/sources.list
|
| 32 |
+
|
| 33 |
+
if [[ "$ID" != "ubuntu" ]]; then
|
| 34 |
+
printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
|
| 35 |
+
"$repository_base" "debian-proxy-security" "$codename" "$components" \
|
| 36 |
+
>>/etc/apt/sources.list
|
| 37 |
+
fi
|
majerle--lwshell.61f0a5b/tests/harbor_configure_java_mirrors.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
maven_url="${1%/}"
|
| 5 |
+
plugin_url="${2%/}"
|
| 6 |
+
jitpack_url="${3%/}"
|
| 7 |
+
|
| 8 |
+
install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
|
| 9 |
+
if [[ -n "$maven_url" ]]; then
|
| 10 |
+
cat >/workspace/.m2/settings.xml <<EOF
|
| 11 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 12 |
+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
|
| 13 |
+
<mirrors>
|
| 14 |
+
<mirror>
|
| 15 |
+
<id>programgym-maven</id>
|
| 16 |
+
<name>ProgramGym Maven mirror</name>
|
| 17 |
+
<url>${maven_url}</url>
|
| 18 |
+
<mirrorOf>*</mirrorOf>
|
| 19 |
+
</mirror>
|
| 20 |
+
</mirrors>
|
| 21 |
+
</settings>
|
| 22 |
+
EOF
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
|
| 26 |
+
def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
|
| 27 |
+
def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
|
| 28 |
+
def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
|
| 29 |
+
|
| 30 |
+
settingsEvaluated { settings ->
|
| 31 |
+
settings.pluginManagement.repositories {
|
| 32 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 33 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
allprojects {
|
| 38 |
+
buildscript.repositories {
|
| 39 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 40 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 41 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 42 |
+
}
|
| 43 |
+
repositories {
|
| 44 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 45 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
EOF
|
| 49 |
+
cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
|
| 50 |
+
/workspace/.gradle/init.d/programgym-mirrors.gradle
|
majerle--lwshell.61f0a5b/tests/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
|
| 6 |
+
sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
|
| 7 |
+
fi
|
| 8 |
+
if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
|
| 9 |
+
sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
|
| 10 |
+
fi
|
| 11 |
+
if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
|
| 12 |
+
sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
|
| 13 |
+
fi
|
| 14 |
+
source /workspace/download.sh
|
| 15 |
+
set +a
|
| 16 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 17 |
+
import os
|
| 18 |
+
import shlex
|
| 19 |
+
|
| 20 |
+
ignored = {
|
| 21 |
+
"ALL_PROXY",
|
| 22 |
+
"HTTP_PROXY",
|
| 23 |
+
"HTTPS_PROXY",
|
| 24 |
+
"NO_PROXY",
|
| 25 |
+
"OLDPWD",
|
| 26 |
+
"PIP_PROXY",
|
| 27 |
+
"PWD",
|
| 28 |
+
"SHLVL",
|
| 29 |
+
"_",
|
| 30 |
+
"all_proxy",
|
| 31 |
+
"http_proxy",
|
| 32 |
+
"https_proxy",
|
| 33 |
+
"no_proxy",
|
| 34 |
+
"pip_proxy",
|
| 35 |
+
}
|
| 36 |
+
for key in sorted(os.environ):
|
| 37 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 38 |
+
continue
|
| 39 |
+
value = os.environ[key]
|
| 40 |
+
if "\n" in value:
|
| 41 |
+
continue
|
| 42 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 43 |
+
PY
|
| 44 |
+
chmod 0644 /etc/profile.d/programgym_download_env.sh
|
majerle--lwshell.61f0a5b/tests/programgym_evaluator.py
ADDED
|
@@ -0,0 +1,1201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""In-place ProgramGym evaluator.
|
| 3 |
+
|
| 4 |
+
Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
|
| 5 |
+
no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
|
| 6 |
+
cleanroom container after Harbor flips the verifier-phase network policy.
|
| 7 |
+
|
| 8 |
+
Differences from ``programgym.eval.eval.Evaluator`` that are structural to
|
| 9 |
+
running in one container:
|
| 10 |
+
|
| 11 |
+
* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
|
| 12 |
+
copy a post-compile workspace snapshot to a temp directory and restore it
|
| 13 |
+
before each branch; ``cleanup_lingering_processes`` kills leftover branch
|
| 14 |
+
processes between attempts to approximate the fresh-container boundary.
|
| 15 |
+
* No ``docker commit``. The post-compile workspace snapshot serves the same
|
| 16 |
+
role as the committed image upstream.
|
| 17 |
+
* Hidden test blobs are fetched on demand from HuggingFace via
|
| 18 |
+
``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
|
| 19 |
+
rather than being pre-staged into ``/tests/blobs/``. Override with
|
| 20 |
+
``PROGRAMGYM_BLOB_DIR`` for offline reruns.
|
| 21 |
+
|
| 22 |
+
Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
|
| 23 |
+
``compile.sh`` then stash + hash the executable, best-effort
|
| 24 |
+
``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
|
| 25 |
+
``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
|
| 26 |
+
best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
|
| 27 |
+
preserved.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
from __future__ import annotations
|
| 31 |
+
|
| 32 |
+
import hashlib
|
| 33 |
+
import json
|
| 34 |
+
import os
|
| 35 |
+
import re
|
| 36 |
+
import shlex
|
| 37 |
+
import shutil
|
| 38 |
+
import signal
|
| 39 |
+
import subprocess
|
| 40 |
+
import tempfile
|
| 41 |
+
import time
|
| 42 |
+
import traceback
|
| 43 |
+
import xml.etree.ElementTree as ET
|
| 44 |
+
from pathlib import Path
|
| 45 |
+
from typing import Any
|
| 46 |
+
|
| 47 |
+
WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
|
| 48 |
+
STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
|
| 49 |
+
METADATA_PATH = Path(
|
| 50 |
+
os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
|
| 51 |
+
)
|
| 52 |
+
LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
|
| 53 |
+
WORKER_CRASH_PHRASE = "worker '"
|
| 54 |
+
XDIST_COLLAPSE_MARKERS = (
|
| 55 |
+
"maximum crashed workers reached",
|
| 56 |
+
"xdist: maximum crashed",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
|
| 60 |
+
DEFAULT_HF_REVISION = "main"
|
| 61 |
+
|
| 62 |
+
# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
|
| 63 |
+
# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
|
| 64 |
+
_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
|
| 65 |
+
|
| 66 |
+
_TOOLCHAIN_BIN_DIR_CANDIDATES = (
|
| 67 |
+
"/usr/local/go/bin",
|
| 68 |
+
"/go/bin",
|
| 69 |
+
"/usr/local/cargo/bin",
|
| 70 |
+
"/root/.cargo/bin",
|
| 71 |
+
"/root/.ghcup/bin",
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def toolchain_bin_dirs() -> list[str]:
|
| 76 |
+
"""Return toolchain bin directories that exist on this image."""
|
| 77 |
+
candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
|
| 78 |
+
candidates.extend(
|
| 79 |
+
str(path)
|
| 80 |
+
for path in sorted(Path("/usr/lib").glob("go-*/bin"))
|
| 81 |
+
if _is_accessible_dir(path)
|
| 82 |
+
)
|
| 83 |
+
seen: set[str] = set()
|
| 84 |
+
present: list[str] = []
|
| 85 |
+
for path in candidates:
|
| 86 |
+
if path in seen:
|
| 87 |
+
continue
|
| 88 |
+
seen.add(path)
|
| 89 |
+
if _is_accessible_dir(path):
|
| 90 |
+
present.append(path)
|
| 91 |
+
return present
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def _is_accessible_dir(path: str | Path) -> bool:
|
| 95 |
+
"""Return whether path is a directory without failing on protected homes."""
|
| 96 |
+
try:
|
| 97 |
+
return Path(path).is_dir()
|
| 98 |
+
except OSError:
|
| 99 |
+
return False
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def bootstrap_toolchain_path() -> str:
|
| 103 |
+
"""Prepend discovered toolchain dirs to PATH (idempotent)."""
|
| 104 |
+
prepend = toolchain_bin_dirs()
|
| 105 |
+
current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
|
| 106 |
+
merged: list[str] = []
|
| 107 |
+
for path in prepend + current_parts:
|
| 108 |
+
if path not in merged:
|
| 109 |
+
merged.append(path)
|
| 110 |
+
new_path = ":".join(merged)
|
| 111 |
+
os.environ["PATH"] = new_path
|
| 112 |
+
return new_path
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _bash_login_command(command: str) -> str:
|
| 116 |
+
"""Run ``command`` under bash -lc with an explicit PATH export."""
|
| 117 |
+
path = bootstrap_toolchain_path()
|
| 118 |
+
return f"export PATH={shlex.quote(path)}; {command}"
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def sha256(path: Path) -> str:
|
| 122 |
+
h = hashlib.sha256()
|
| 123 |
+
with path.open("rb") as f:
|
| 124 |
+
for chunk in iter(lambda: f.read(1024 * 1024), b""):
|
| 125 |
+
h.update(chunk)
|
| 126 |
+
return h.hexdigest()
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def write_json(path: Path, data: dict[str, Any]) -> None:
|
| 130 |
+
tmp = path.with_suffix(path.suffix + ".tmp")
|
| 131 |
+
tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
|
| 132 |
+
tmp.replace(path)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
|
| 136 |
+
if path is None or not path.exists():
|
| 137 |
+
return ""
|
| 138 |
+
data = path.read_bytes()
|
| 139 |
+
if len(data) <= max_bytes:
|
| 140 |
+
return data.decode(errors="replace")
|
| 141 |
+
return data[-max_bytes:].decode(errors="replace")
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def _close_pipes(proc: subprocess.Popen[Any]) -> None:
|
| 145 |
+
for stream in (proc.stdout, proc.stderr):
|
| 146 |
+
if stream is not None:
|
| 147 |
+
try:
|
| 148 |
+
stream.close()
|
| 149 |
+
except OSError:
|
| 150 |
+
pass
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
|
| 154 |
+
try:
|
| 155 |
+
os.killpg(proc.pid, signal.SIGKILL)
|
| 156 |
+
except ProcessLookupError:
|
| 157 |
+
pass
|
| 158 |
+
try:
|
| 159 |
+
proc.kill()
|
| 160 |
+
except ProcessLookupError:
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
_PKILL_PATTERNS = (
|
| 165 |
+
f"{WORKSPACE}/eval/",
|
| 166 |
+
f"{WORKSPACE}/tests/",
|
| 167 |
+
"tail -f",
|
| 168 |
+
"development.log",
|
| 169 |
+
" less ",
|
| 170 |
+
" less$",
|
| 171 |
+
"/less ",
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def _pkill_aggressive() -> str:
|
| 176 |
+
"""Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
|
| 177 |
+
notes: list[str] = []
|
| 178 |
+
workspace = str(WORKSPACE)
|
| 179 |
+
patterns = list(_PKILL_PATTERNS) + [
|
| 180 |
+
f"pytest.*{workspace}",
|
| 181 |
+
f"xdist.*{workspace}",
|
| 182 |
+
]
|
| 183 |
+
for pattern in patterns:
|
| 184 |
+
result = subprocess.run(
|
| 185 |
+
["pkill", "-9", "-f", pattern],
|
| 186 |
+
capture_output=True,
|
| 187 |
+
text=True,
|
| 188 |
+
)
|
| 189 |
+
notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
|
| 190 |
+
return "\n".join(notes)
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def run_step(
|
| 194 |
+
command: str,
|
| 195 |
+
cwd: Path,
|
| 196 |
+
*,
|
| 197 |
+
timeout: int,
|
| 198 |
+
env: dict[str, str] | None = None,
|
| 199 |
+
step: str,
|
| 200 |
+
accept_failure: bool = False,
|
| 201 |
+
log_output: bool | None = None,
|
| 202 |
+
max_output_bytes: int = 65536,
|
| 203 |
+
) -> dict[str, Any]:
|
| 204 |
+
if log_output is None:
|
| 205 |
+
log_output = step == "run_tests" or timeout >= 60
|
| 206 |
+
|
| 207 |
+
started = time.monotonic()
|
| 208 |
+
stdout_path: Path | None = None
|
| 209 |
+
stderr_path: Path | None = None
|
| 210 |
+
stdout_f = None
|
| 211 |
+
stderr_f = None
|
| 212 |
+
|
| 213 |
+
if log_output:
|
| 214 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 215 |
+
log_id = f"{step}-{int(started * 1000)}"
|
| 216 |
+
stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
|
| 217 |
+
stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
|
| 218 |
+
stdout_f = stdout_path.open("w", encoding="utf-8")
|
| 219 |
+
stderr_f = stderr_path.open("w", encoding="utf-8")
|
| 220 |
+
popen_stdout: Any = stdout_f
|
| 221 |
+
popen_stderr: Any = stderr_f
|
| 222 |
+
else:
|
| 223 |
+
popen_stdout = subprocess.PIPE
|
| 224 |
+
popen_stderr = subprocess.PIPE
|
| 225 |
+
|
| 226 |
+
proc = subprocess.Popen(
|
| 227 |
+
["bash", "-lc", _bash_login_command(command)],
|
| 228 |
+
cwd=cwd,
|
| 229 |
+
env={**os.environ, **(env or {})},
|
| 230 |
+
stdout=popen_stdout,
|
| 231 |
+
stderr=popen_stderr,
|
| 232 |
+
start_new_session=True,
|
| 233 |
+
text=True,
|
| 234 |
+
)
|
| 235 |
+
timed_out = False
|
| 236 |
+
stdout = ""
|
| 237 |
+
stderr = ""
|
| 238 |
+
try:
|
| 239 |
+
if log_output:
|
| 240 |
+
proc.wait(timeout=timeout)
|
| 241 |
+
else:
|
| 242 |
+
stdout, stderr = proc.communicate(timeout=timeout)
|
| 243 |
+
except subprocess.TimeoutExpired:
|
| 244 |
+
timed_out = True
|
| 245 |
+
_terminate_process_tree(proc)
|
| 246 |
+
cleanup_lingering_processes(aggressive=True)
|
| 247 |
+
try:
|
| 248 |
+
proc.wait(timeout=5)
|
| 249 |
+
except subprocess.TimeoutExpired:
|
| 250 |
+
proc.kill()
|
| 251 |
+
if not log_output:
|
| 252 |
+
_close_pipes(proc)
|
| 253 |
+
finally:
|
| 254 |
+
if stdout_f is not None:
|
| 255 |
+
stdout_f.close()
|
| 256 |
+
if stderr_f is not None:
|
| 257 |
+
stderr_f.close()
|
| 258 |
+
|
| 259 |
+
if timed_out:
|
| 260 |
+
if log_output:
|
| 261 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 262 |
+
stderr_path, max_output_bytes
|
| 263 |
+
)
|
| 264 |
+
else:
|
| 265 |
+
output = ""
|
| 266 |
+
entry = {
|
| 267 |
+
"step": step,
|
| 268 |
+
"command": command,
|
| 269 |
+
"wall_time": time.monotonic() - started,
|
| 270 |
+
"output": output,
|
| 271 |
+
"returncode": 124,
|
| 272 |
+
"exception_info": f"timed out after {timeout}s",
|
| 273 |
+
}
|
| 274 |
+
else:
|
| 275 |
+
if log_output:
|
| 276 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 277 |
+
stderr_path, max_output_bytes
|
| 278 |
+
)
|
| 279 |
+
else:
|
| 280 |
+
output = stdout + stderr
|
| 281 |
+
entry = {
|
| 282 |
+
"step": step,
|
| 283 |
+
"command": command,
|
| 284 |
+
"wall_time": time.monotonic() - started,
|
| 285 |
+
"output": output,
|
| 286 |
+
"returncode": proc.returncode,
|
| 287 |
+
"exception_info": "",
|
| 288 |
+
}
|
| 289 |
+
if entry["returncode"] and not accept_failure:
|
| 290 |
+
raise RuntimeError(
|
| 291 |
+
f"{step} failed: {entry['exception_info'] or entry['output']}"
|
| 292 |
+
)
|
| 293 |
+
return entry
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
|
| 297 |
+
started = time.monotonic()
|
| 298 |
+
patterns = [
|
| 299 |
+
str(WORKSPACE / "executable"),
|
| 300 |
+
f"{WORKSPACE}/eval/",
|
| 301 |
+
f"{WORKSPACE}/tests/",
|
| 302 |
+
# lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
|
| 303 |
+
"tail -f",
|
| 304 |
+
"development.log",
|
| 305 |
+
]
|
| 306 |
+
killed: list[int] = []
|
| 307 |
+
proc_root = Path("/proc")
|
| 308 |
+
proc_available = proc_root.exists()
|
| 309 |
+
if proc_available:
|
| 310 |
+
for proc_dir in proc_root.iterdir():
|
| 311 |
+
if not proc_dir.name.isdigit():
|
| 312 |
+
continue
|
| 313 |
+
pid = int(proc_dir.name)
|
| 314 |
+
if pid in {os.getpid(), os.getppid()}:
|
| 315 |
+
continue
|
| 316 |
+
try:
|
| 317 |
+
raw = (proc_dir / "cmdline").read_bytes()
|
| 318 |
+
except (FileNotFoundError, PermissionError, ProcessLookupError):
|
| 319 |
+
continue
|
| 320 |
+
cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
|
| 321 |
+
if not any(pattern in cmdline for pattern in patterns):
|
| 322 |
+
continue
|
| 323 |
+
try:
|
| 324 |
+
os.kill(pid, signal.SIGKILL)
|
| 325 |
+
except (PermissionError, ProcessLookupError):
|
| 326 |
+
continue
|
| 327 |
+
killed.append(pid)
|
| 328 |
+
pkill_output = ""
|
| 329 |
+
if aggressive or not proc_available:
|
| 330 |
+
pkill_output = _pkill_aggressive()
|
| 331 |
+
output_parts = []
|
| 332 |
+
if killed:
|
| 333 |
+
output_parts.append("\n".join(str(pid) for pid in killed))
|
| 334 |
+
if pkill_output:
|
| 335 |
+
output_parts.append(pkill_output)
|
| 336 |
+
return {
|
| 337 |
+
"step": "cleanup_lingering_processes",
|
| 338 |
+
"command": "kill leftover branch processes referencing the workspace",
|
| 339 |
+
"wall_time": time.monotonic() - started,
|
| 340 |
+
"output": "\n".join(output_parts),
|
| 341 |
+
"returncode": 0,
|
| 342 |
+
"exception_info": "",
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
|
| 347 |
+
import tarfile
|
| 348 |
+
|
| 349 |
+
with tarfile.open(tar_path, "r:gz") as tf:
|
| 350 |
+
try:
|
| 351 |
+
tf.extractall(dest, filter="fully_trusted")
|
| 352 |
+
except TypeError:
|
| 353 |
+
tf.extractall(dest)
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
def find_results_xml() -> Path | None:
|
| 357 |
+
"""Return the junit xml path if pytest wrote one."""
|
| 358 |
+
for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
|
| 359 |
+
if candidate.exists():
|
| 360 |
+
return candidate
|
| 361 |
+
return None
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
def remove_oracle_handoff_artifacts() -> list[str]:
|
| 365 |
+
"""Drop oracle-agent handoff files from /workspace before snapshot/restore."""
|
| 366 |
+
removed: list[str] = []
|
| 367 |
+
for name in _ORACLE_HANDOFF_NAMES:
|
| 368 |
+
path = WORKSPACE / name
|
| 369 |
+
if path.exists():
|
| 370 |
+
if path.is_dir():
|
| 371 |
+
shutil.rmtree(path)
|
| 372 |
+
else:
|
| 373 |
+
path.unlink()
|
| 374 |
+
removed.append(name)
|
| 375 |
+
return removed
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def _remove_tree(path: Path) -> None:
|
| 379 |
+
"""Remove a file or directory tree, with a shell fallback for overlay races."""
|
| 380 |
+
if path.is_symlink() or path.is_file():
|
| 381 |
+
path.unlink(missing_ok=True)
|
| 382 |
+
return
|
| 383 |
+
if not path.is_dir():
|
| 384 |
+
path.unlink(missing_ok=True)
|
| 385 |
+
return
|
| 386 |
+
for attempt in range(3):
|
| 387 |
+
try:
|
| 388 |
+
shutil.rmtree(path)
|
| 389 |
+
if not path.exists():
|
| 390 |
+
return
|
| 391 |
+
except OSError:
|
| 392 |
+
if attempt == 2:
|
| 393 |
+
run_step(
|
| 394 |
+
f"rm -rf {shlex.quote(str(path))}",
|
| 395 |
+
path.parent,
|
| 396 |
+
timeout=120,
|
| 397 |
+
step="clear_workspace_fallback",
|
| 398 |
+
accept_failure=True,
|
| 399 |
+
)
|
| 400 |
+
if not path.exists():
|
| 401 |
+
return
|
| 402 |
+
raise
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
def ensure_workspace_dir() -> None:
|
| 406 |
+
"""Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
|
| 407 |
+
if WORKSPACE.exists() and not WORKSPACE.is_dir():
|
| 408 |
+
if WORKSPACE.is_symlink() or WORKSPACE.is_file():
|
| 409 |
+
WORKSPACE.unlink()
|
| 410 |
+
else:
|
| 411 |
+
shutil.rmtree(WORKSPACE)
|
| 412 |
+
WORKSPACE.mkdir(parents=True, exist_ok=True)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def clear_workspace() -> None:
|
| 416 |
+
ensure_workspace_dir()
|
| 417 |
+
for path in list(WORKSPACE.iterdir()):
|
| 418 |
+
_remove_tree(path)
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
def restore_reference_executable() -> None:
|
| 422 |
+
"""Write the stashed reference binary into /workspace after a branch overlay.
|
| 423 |
+
|
| 424 |
+
Branch blobs may ship ``executable`` as a dangling symlink into
|
| 425 |
+
``target/release/...``; ``shutil.copy2`` would follow it and raise
|
| 426 |
+
``FileNotFoundError``. Drop whatever the blob left and copy the stashed
|
| 427 |
+
reference as a regular file.
|
| 428 |
+
"""
|
| 429 |
+
ensure_workspace_dir()
|
| 430 |
+
if not STASHED_EXECUTABLE.is_file():
|
| 431 |
+
raise FileNotFoundError(
|
| 432 |
+
f"missing stashed reference executable at {STASHED_EXECUTABLE}"
|
| 433 |
+
)
|
| 434 |
+
dest = WORKSPACE / "executable"
|
| 435 |
+
if dest.exists() or dest.is_symlink():
|
| 436 |
+
if dest.is_dir():
|
| 437 |
+
shutil.rmtree(dest)
|
| 438 |
+
else:
|
| 439 |
+
dest.unlink(missing_ok=True)
|
| 440 |
+
shutil.copy2(STASHED_EXECUTABLE, dest)
|
| 441 |
+
dest.chmod(0o755)
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
def snapshot_workspace(dest: Path) -> None:
|
| 445 |
+
if dest.exists():
|
| 446 |
+
shutil.rmtree(dest)
|
| 447 |
+
shutil.copytree(WORKSPACE, dest, symlinks=True)
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
def restore_workspace(source: Path) -> None:
|
| 451 |
+
clear_workspace()
|
| 452 |
+
shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
|
| 453 |
+
ensure_workspace_dir()
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
|
| 457 |
+
removed: list[str] = []
|
| 458 |
+
for path in root.rglob("*"):
|
| 459 |
+
if path.is_file() and not path.is_symlink():
|
| 460 |
+
try:
|
| 461 |
+
if sha256(path) in hashes:
|
| 462 |
+
path.unlink()
|
| 463 |
+
removed.append(str(path.relative_to(root)))
|
| 464 |
+
except OSError:
|
| 465 |
+
continue
|
| 466 |
+
return removed
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
def branch_tests(branch_info: dict[str, Any]) -> list[str]:
|
| 470 |
+
ignored = {
|
| 471 |
+
item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
|
| 472 |
+
}
|
| 473 |
+
return [name for name in branch_info.get("tests", []) if name not in ignored]
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
def ignored_tests(metadata: dict[str, Any]) -> set[str]:
|
| 477 |
+
result: set[str] = set()
|
| 478 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 479 |
+
result.update(
|
| 480 |
+
f"{branch}/{item['name']}"
|
| 481 |
+
for item in info.get("ignored_tests", [])
|
| 482 |
+
if "name" in item
|
| 483 |
+
)
|
| 484 |
+
return result
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def active_tests(metadata: dict[str, Any]) -> set[str]:
|
| 488 |
+
active: set[str] = set()
|
| 489 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 490 |
+
if info.get("ignored"):
|
| 491 |
+
continue
|
| 492 |
+
ignored = {
|
| 493 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 494 |
+
}
|
| 495 |
+
active.update(
|
| 496 |
+
f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
|
| 497 |
+
)
|
| 498 |
+
return active
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
def inject_not_run(
|
| 502 |
+
result: dict[str, Any], branch: str, tests: list[str], error_code: str
|
| 503 |
+
) -> None:
|
| 504 |
+
result["test_results"].extend(
|
| 505 |
+
{
|
| 506 |
+
"name": name,
|
| 507 |
+
"branch": branch,
|
| 508 |
+
"status": "not_run",
|
| 509 |
+
"extra": {"error_code": error_code},
|
| 510 |
+
}
|
| 511 |
+
for name in tests
|
| 512 |
+
)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def testcase_name(case: ET.Element) -> str:
|
| 516 |
+
classname = case.attrib.get("classname", "")
|
| 517 |
+
name = case.attrib.get("name", "")
|
| 518 |
+
return f"{classname}.{name}" if classname else name
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
# Only these tags under <testcase> represent a result. <system-out> /
|
| 522 |
+
# <system-err> are stdout/stderr captures and must not be treated as results
|
| 523 |
+
# (a leading <system-out> followed by <failure> would otherwise be classified
|
| 524 |
+
# as a stdout-only "passed").
|
| 525 |
+
JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
def parse_junit(
|
| 529 |
+
raw_xml: str, branch: str, expected: list[str], ignored: set[str]
|
| 530 |
+
) -> tuple[list[dict[str, Any]], list[str]]:
|
| 531 |
+
root = ET.fromstring(raw_xml)
|
| 532 |
+
got: set[str] = set()
|
| 533 |
+
results: list[dict[str, Any]] = []
|
| 534 |
+
for case in root.iter("testcase"):
|
| 535 |
+
name = testcase_name(case)
|
| 536 |
+
got.add(name)
|
| 537 |
+
extra: dict[str, Any] = {}
|
| 538 |
+
if "time" in case.attrib:
|
| 539 |
+
try:
|
| 540 |
+
extra["time"] = float(case.attrib["time"])
|
| 541 |
+
except ValueError:
|
| 542 |
+
extra["time"] = case.attrib["time"]
|
| 543 |
+
result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
|
| 544 |
+
# Collapse duplicate same-tag result children. Pytest's
|
| 545 |
+
# "pytest.internal" pseudo-test sometimes emits two identical <error>
|
| 546 |
+
# entries; treating that as a system_error would over-flag a real
|
| 547 |
+
# single failure. Mirrors upstream eval.py:816-820.
|
| 548 |
+
if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
|
| 549 |
+
result_children = [result_children[0]]
|
| 550 |
+
if not result_children:
|
| 551 |
+
status = "passed"
|
| 552 |
+
elif len(result_children) != 1:
|
| 553 |
+
status = "system_error"
|
| 554 |
+
extra["error_details"] = (
|
| 555 |
+
f"Expected 1 result for {name}, got {len(result_children)}: "
|
| 556 |
+
f"{[c.tag for c in result_children]}"
|
| 557 |
+
)
|
| 558 |
+
else:
|
| 559 |
+
first = result_children[0]
|
| 560 |
+
status = first.tag # "skipped" | "failure" | "error"
|
| 561 |
+
extra["message"] = first.attrib.get("message") or ""
|
| 562 |
+
if first.text:
|
| 563 |
+
extra["text"] = first.text
|
| 564 |
+
results.append(
|
| 565 |
+
{"name": name, "branch": branch, "status": status, "extra": extra}
|
| 566 |
+
)
|
| 567 |
+
|
| 568 |
+
active_expected = [name for name in expected if name not in ignored]
|
| 569 |
+
missing = [name for name in active_expected if name not in got]
|
| 570 |
+
results.extend(
|
| 571 |
+
{
|
| 572 |
+
"name": name,
|
| 573 |
+
"branch": branch,
|
| 574 |
+
"status": "not_run",
|
| 575 |
+
"extra": {"error_code": "missing_from_junit_xml"},
|
| 576 |
+
}
|
| 577 |
+
for name in missing
|
| 578 |
+
)
|
| 579 |
+
unexpected = got - set(expected) - ignored
|
| 580 |
+
warnings = (
|
| 581 |
+
[f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
|
| 582 |
+
if unexpected
|
| 583 |
+
else []
|
| 584 |
+
)
|
| 585 |
+
return results, warnings
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
def count_worker_crashes(raw_xml: str) -> int:
|
| 589 |
+
if WORKER_CRASH_PHRASE not in raw_xml:
|
| 590 |
+
return 0
|
| 591 |
+
try:
|
| 592 |
+
root = ET.fromstring(raw_xml)
|
| 593 |
+
except ET.ParseError:
|
| 594 |
+
return 0
|
| 595 |
+
crashes = 0
|
| 596 |
+
for case in root.iter("testcase"):
|
| 597 |
+
for child in case:
|
| 598 |
+
text = (child.get("message") or "") + " " + (child.text or "")
|
| 599 |
+
if (
|
| 600 |
+
child.tag in {"error", "failure"}
|
| 601 |
+
and WORKER_CRASH_PHRASE in text
|
| 602 |
+
and "crashed" in text
|
| 603 |
+
):
|
| 604 |
+
crashes += 1
|
| 605 |
+
break
|
| 606 |
+
return crashes
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
def run_output_indicates_xdist_collapse(output: str) -> bool:
|
| 610 |
+
lower = output.lower()
|
| 611 |
+
return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
def count_junit_failures(raw_xml: str) -> int:
|
| 615 |
+
try:
|
| 616 |
+
root = ET.fromstring(raw_xml)
|
| 617 |
+
except ET.ParseError:
|
| 618 |
+
return 0
|
| 619 |
+
failures = 0
|
| 620 |
+
for case in root.iter("testcase"):
|
| 621 |
+
for child in case:
|
| 622 |
+
if child.tag in {"failure", "error"}:
|
| 623 |
+
failures += 1
|
| 624 |
+
break
|
| 625 |
+
return failures
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def count_junit_passed(raw_xml: str) -> int:
|
| 629 |
+
try:
|
| 630 |
+
root = ET.fromstring(raw_xml)
|
| 631 |
+
except ET.ParseError:
|
| 632 |
+
return 0
|
| 633 |
+
passed = 0
|
| 634 |
+
for case in root.iter("testcase"):
|
| 635 |
+
if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
|
| 636 |
+
passed += 1
|
| 637 |
+
return passed
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
def branch_attempt_metrics(
|
| 641 |
+
raw_xml: str, *, run_output: str, expected_tests: int
|
| 642 |
+
) -> tuple[int, int, int, int]:
|
| 643 |
+
"""Return (crashes, n_testcases, failures, missing_from_xml)."""
|
| 644 |
+
crashes = count_worker_crashes(raw_xml)
|
| 645 |
+
if run_output_indicates_xdist_collapse(run_output):
|
| 646 |
+
crashes = max(crashes, 1)
|
| 647 |
+
n_tests = count_testcases(raw_xml)
|
| 648 |
+
failures = count_junit_failures(raw_xml)
|
| 649 |
+
missing = max(0, expected_tests - n_tests)
|
| 650 |
+
return crashes, n_tests, failures, missing
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
def needs_serial_retry(
|
| 654 |
+
*,
|
| 655 |
+
serial: bool,
|
| 656 |
+
crashes: int,
|
| 657 |
+
missing: int,
|
| 658 |
+
failures: int,
|
| 659 |
+
n_tests: int,
|
| 660 |
+
expected_tests: int,
|
| 661 |
+
run_output: str,
|
| 662 |
+
) -> bool:
|
| 663 |
+
if serial:
|
| 664 |
+
return False
|
| 665 |
+
high_failure_rate = (
|
| 666 |
+
expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
|
| 667 |
+
)
|
| 668 |
+
return (
|
| 669 |
+
crashes > 0
|
| 670 |
+
or missing > 0
|
| 671 |
+
or high_failure_rate
|
| 672 |
+
or run_output_indicates_xdist_collapse(run_output)
|
| 673 |
+
)
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
def count_testcases(raw_xml: str) -> int:
|
| 677 |
+
try:
|
| 678 |
+
return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
|
| 679 |
+
except ET.ParseError:
|
| 680 |
+
return 0
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def scored_results(
|
| 684 |
+
result: dict[str, Any], metadata: dict[str, Any]
|
| 685 |
+
) -> list[dict[str, Any]]:
|
| 686 |
+
active = active_tests(metadata)
|
| 687 |
+
by_key = {
|
| 688 |
+
f"{test['branch']}/{test['name']}": test
|
| 689 |
+
for test in result["test_results"]
|
| 690 |
+
if f"{test['branch']}/{test['name']}" in active
|
| 691 |
+
}
|
| 692 |
+
return [
|
| 693 |
+
by_key.get(
|
| 694 |
+
key,
|
| 695 |
+
{
|
| 696 |
+
"branch": key.split("/", 1)[0],
|
| 697 |
+
"name": key.split("/", 1)[1],
|
| 698 |
+
"status": "not_run",
|
| 699 |
+
"extra": {"error_code": "missing_from_results"},
|
| 700 |
+
},
|
| 701 |
+
)
|
| 702 |
+
for key in sorted(active)
|
| 703 |
+
]
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 707 |
+
scored = scored_results(result, metadata)
|
| 708 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 709 |
+
n_tests = len(scored)
|
| 710 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 711 |
+
# Multi-key reward: Harbor's default Mean aggregates each key independently
|
| 712 |
+
# (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
|
| 713 |
+
# the proportion of tasks scoring a perfect pass-rate and mean of
|
| 714 |
+
# "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
|
| 715 |
+
# per-task pass-rate whose mean is the overall mean reward.
|
| 716 |
+
return {
|
| 717 |
+
"reward": pass_rate,
|
| 718 |
+
"resolved": 1.0 if pass_rate >= 1.0 else 0.0,
|
| 719 |
+
"almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 724 |
+
scored = scored_results(result, metadata)
|
| 725 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 726 |
+
n_tests = len(scored)
|
| 727 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 728 |
+
return {
|
| 729 |
+
"pass_rate": pass_rate,
|
| 730 |
+
"resolved": int(
|
| 731 |
+
bool(
|
| 732 |
+
n_tests
|
| 733 |
+
and n_passed == n_tests
|
| 734 |
+
and not result["test_branch_errors"]
|
| 735 |
+
and not result["error_code"]
|
| 736 |
+
)
|
| 737 |
+
),
|
| 738 |
+
"n_passed": n_passed,
|
| 739 |
+
"n_tests": n_tests,
|
| 740 |
+
"n_branch_errors": len(result["test_branch_errors"]),
|
| 741 |
+
"infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
|
| 742 |
+
"executable_hash_present": int(bool(result.get("executable_hash"))),
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
def use_script_pty() -> bool:
|
| 747 |
+
return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
def script_pty_available() -> bool:
|
| 751 |
+
return shutil.which("script") is not None
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
def branch_env(
|
| 755 |
+
*,
|
| 756 |
+
serial: bool,
|
| 757 |
+
has_rerunfailures: bool,
|
| 758 |
+
extras: dict[str, str] | None = None,
|
| 759 |
+
) -> dict[str, str]:
|
| 760 |
+
addopts = ["--max-worker-restart=4"]
|
| 761 |
+
# A serial fallback is already a complete second execution. Re-running each
|
| 762 |
+
# failing test two more times makes large, failure-heavy suites prohibitively
|
| 763 |
+
# slow and adds little signal.
|
| 764 |
+
if has_rerunfailures and not serial:
|
| 765 |
+
addopts.extend(["--reruns=2", "--reruns-delay=1"])
|
| 766 |
+
env = {
|
| 767 |
+
"PYTEST_ADDOPTS": " ".join(addopts),
|
| 768 |
+
# Match upstream non-TTY regression environments (dirble log format, etc.).
|
| 769 |
+
"NO_COLOR": "1",
|
| 770 |
+
"TERM": "dumb",
|
| 771 |
+
"CLICOLOR": "0",
|
| 772 |
+
"CLICOLOR_FORCE": "0",
|
| 773 |
+
"COLORTERM": "",
|
| 774 |
+
}
|
| 775 |
+
if extras:
|
| 776 |
+
env.update(extras)
|
| 777 |
+
xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
|
| 778 |
+
if serial:
|
| 779 |
+
xdist_workers = "1"
|
| 780 |
+
if xdist_workers:
|
| 781 |
+
env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
|
| 782 |
+
return env
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
_SERIAL_RUN_SH = ".programgym_run_serial.sh"
|
| 786 |
+
# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
|
| 787 |
+
# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
|
| 788 |
+
_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
def prepare_serial_run_sh(run_sh: Path) -> Path:
|
| 792 |
+
"""Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
|
| 793 |
+
serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
|
| 794 |
+
patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
|
| 795 |
+
serial_sh.write_text(patched)
|
| 796 |
+
serial_sh.chmod(0o755)
|
| 797 |
+
return serial_sh
|
| 798 |
+
|
| 799 |
+
|
| 800 |
+
def run_tests_command(*, serial: bool) -> str:
|
| 801 |
+
if serial:
|
| 802 |
+
inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
|
| 803 |
+
else:
|
| 804 |
+
inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
|
| 805 |
+
if use_script_pty() and script_pty_available():
|
| 806 |
+
return f"script -q -c {shlex.quote(inner)} /dev/null"
|
| 807 |
+
return inner
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
|
| 811 |
+
|
| 812 |
+
|
| 813 |
+
def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
|
| 814 |
+
"""Locate the per-instance blob directory.
|
| 815 |
+
|
| 816 |
+
Resolution order:
|
| 817 |
+
|
| 818 |
+
1. ``/tests/blobs/`` if pre-fetched into the task at generation time
|
| 819 |
+
(``programgym-adapter --download-blobs``). Verifier-only mount, so
|
| 820 |
+
agent never sees these.
|
| 821 |
+
2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
|
| 822 |
+
tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
|
| 823 |
+
for offline reruns sharing a cache across many tasks.
|
| 824 |
+
3. ``huggingface_hub.snapshot_download`` from
|
| 825 |
+
``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
|
| 826 |
+
|
| 827 |
+
The returned directory contains ``tests/<branch>.tar.gz`` per active
|
| 828 |
+
branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
|
| 829 |
+
on HF.
|
| 830 |
+
"""
|
| 831 |
+
if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
|
| 832 |
+
return BAKED_BLOB_DIR
|
| 833 |
+
|
| 834 |
+
local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
|
| 835 |
+
if local:
|
| 836 |
+
candidate = Path(local) / instance_id
|
| 837 |
+
if candidate.exists():
|
| 838 |
+
return candidate
|
| 839 |
+
raise FileNotFoundError(
|
| 840 |
+
f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
|
| 841 |
+
)
|
| 842 |
+
|
| 843 |
+
repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
|
| 844 |
+
"hf_repo_id", DEFAULT_HF_REPO_ID
|
| 845 |
+
)
|
| 846 |
+
revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
|
| 847 |
+
"hf_revision", DEFAULT_HF_REVISION
|
| 848 |
+
)
|
| 849 |
+
|
| 850 |
+
from huggingface_hub import snapshot_download
|
| 851 |
+
|
| 852 |
+
cache_root = Path(
|
| 853 |
+
snapshot_download(
|
| 854 |
+
repo_id,
|
| 855 |
+
repo_type="dataset",
|
| 856 |
+
revision=revision,
|
| 857 |
+
allow_patterns=f"{instance_id}/**",
|
| 858 |
+
)
|
| 859 |
+
)
|
| 860 |
+
blob_dir = cache_root / instance_id
|
| 861 |
+
if not blob_dir.exists():
|
| 862 |
+
raise FileNotFoundError(
|
| 863 |
+
f"HF blob directory missing for {instance_id} at {blob_dir}"
|
| 864 |
+
)
|
| 865 |
+
return blob_dir
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
|
| 869 |
+
bootstrap_toolchain_path()
|
| 870 |
+
branches = metadata.get("branches", {})
|
| 871 |
+
active_branch_items = [
|
| 872 |
+
(name, info) for name, info in branches.items() if not info.get("ignored")
|
| 873 |
+
]
|
| 874 |
+
result: dict[str, Any] = {
|
| 875 |
+
"test_results": [],
|
| 876 |
+
"error_code": None,
|
| 877 |
+
"error_details": None,
|
| 878 |
+
"log": [],
|
| 879 |
+
"solution_branch": "submission",
|
| 880 |
+
"test_branches": [name for name, _ in active_branch_items],
|
| 881 |
+
"test_branch_errors": {},
|
| 882 |
+
"executable_hash": None,
|
| 883 |
+
"warnings": [],
|
| 884 |
+
}
|
| 885 |
+
|
| 886 |
+
instance_id = metadata["instance_id"]
|
| 887 |
+
|
| 888 |
+
compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
|
| 889 |
+
branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
|
| 890 |
+
|
| 891 |
+
def fail_all(error_code: str, details: str) -> dict[str, Any]:
|
| 892 |
+
result["error_code"] = error_code
|
| 893 |
+
result["error_details"] = details
|
| 894 |
+
for branch, info in active_branch_items:
|
| 895 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 896 |
+
return result
|
| 897 |
+
|
| 898 |
+
with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
|
| 899 |
+
compiled_snapshot = Path(tmp) / "compiled"
|
| 900 |
+
|
| 901 |
+
started = time.monotonic()
|
| 902 |
+
removed = remove_hashed_files(
|
| 903 |
+
WORKSPACE, set(metadata.get("eval_clean_hashes", []))
|
| 904 |
+
)
|
| 905 |
+
result["log"].append(
|
| 906 |
+
{
|
| 907 |
+
"step": "remove_hashed_files",
|
| 908 |
+
"command": "remove files matching eval_clean_hashes",
|
| 909 |
+
"wall_time": time.monotonic() - started,
|
| 910 |
+
"output": "".join(f"removed '{path}'\n" for path in removed),
|
| 911 |
+
"returncode": 0,
|
| 912 |
+
"exception_info": "",
|
| 913 |
+
}
|
| 914 |
+
)
|
| 915 |
+
|
| 916 |
+
compile_sh = WORKSPACE / "compile.sh"
|
| 917 |
+
if not compile_sh.exists():
|
| 918 |
+
return fail_all(
|
| 919 |
+
"missing_compile_sh", "submission did not contain compile.sh"
|
| 920 |
+
)
|
| 921 |
+
|
| 922 |
+
seed = (
|
| 923 |
+
"if [ ! -d .git ]; then "
|
| 924 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 925 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 926 |
+
"git -c init.defaultBranch=gold init -q && "
|
| 927 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
|
| 928 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 929 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 930 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
|
| 931 |
+
"fi"
|
| 932 |
+
)
|
| 933 |
+
try:
|
| 934 |
+
result["log"].append(
|
| 935 |
+
run_step(seed, WORKSPACE, timeout=300, step="seed_git")
|
| 936 |
+
)
|
| 937 |
+
compile_log = run_step(
|
| 938 |
+
"chmod +x ./compile.sh && ./compile.sh",
|
| 939 |
+
WORKSPACE,
|
| 940 |
+
timeout=compile_timeout,
|
| 941 |
+
step="compile",
|
| 942 |
+
accept_failure=True,
|
| 943 |
+
)
|
| 944 |
+
result["log"].append(compile_log)
|
| 945 |
+
if compile_log["returncode"]:
|
| 946 |
+
return fail_all("compile_failed", compile_log["output"])
|
| 947 |
+
executable = WORKSPACE / "executable"
|
| 948 |
+
if not executable.exists():
|
| 949 |
+
return fail_all(
|
| 950 |
+
"missing_executable",
|
| 951 |
+
"compile.sh completed but did not create ./executable",
|
| 952 |
+
)
|
| 953 |
+
STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
|
| 954 |
+
# `move` (not copy) so /workspace doesn't keep a parallel copy of
|
| 955 |
+
# the agent's executable during the stash→restore window. Mirrors
|
| 956 |
+
# upstream `mv ./executable {STASHED}` (eval.py:472).
|
| 957 |
+
shutil.move(str(executable), STASHED_EXECUTABLE)
|
| 958 |
+
result["executable_hash"] = sha256(STASHED_EXECUTABLE)
|
| 959 |
+
result["log"].append(
|
| 960 |
+
run_step(
|
| 961 |
+
"pip3 install -q --disable-pip-version-check pytest-rerunfailures",
|
| 962 |
+
WORKSPACE,
|
| 963 |
+
timeout=120,
|
| 964 |
+
step="install_rerunfailures",
|
| 965 |
+
accept_failure=True,
|
| 966 |
+
)
|
| 967 |
+
)
|
| 968 |
+
has_rerunfailures = result["log"][-1]["returncode"] == 0
|
| 969 |
+
handoff_removed = remove_oracle_handoff_artifacts()
|
| 970 |
+
if handoff_removed:
|
| 971 |
+
result["log"].append(
|
| 972 |
+
{
|
| 973 |
+
"step": "remove_oracle_handoff",
|
| 974 |
+
"command": "remove oracle handoff artifacts from workspace",
|
| 975 |
+
"wall_time": 0.0,
|
| 976 |
+
"output": "".join(
|
| 977 |
+
f"removed '{name}'\n" for name in handoff_removed
|
| 978 |
+
),
|
| 979 |
+
"returncode": 0,
|
| 980 |
+
"exception_info": "",
|
| 981 |
+
}
|
| 982 |
+
)
|
| 983 |
+
snapshot_workspace(compiled_snapshot)
|
| 984 |
+
except Exception as exc:
|
| 985 |
+
return fail_all(type(exc).__name__, str(exc))
|
| 986 |
+
|
| 987 |
+
try:
|
| 988 |
+
blob_dir = resolve_blob_dir(instance_id, metadata)
|
| 989 |
+
except Exception as exc:
|
| 990 |
+
details = f"{type(exc).__name__}: {exc}"
|
| 991 |
+
for branch, info in active_branch_items:
|
| 992 |
+
result["test_branch_errors"][branch] = [
|
| 993 |
+
{
|
| 994 |
+
"error_code": "blob_resolution_failed",
|
| 995 |
+
"error_details": details,
|
| 996 |
+
}
|
| 997 |
+
]
|
| 998 |
+
inject_not_run(
|
| 999 |
+
result, branch, branch_tests(info), "blob_resolution_failed"
|
| 1000 |
+
)
|
| 1001 |
+
return result
|
| 1002 |
+
|
| 1003 |
+
for branch, info in active_branch_items:
|
| 1004 |
+
tests = branch_tests(info)
|
| 1005 |
+
blob = blob_dir / "tests" / f"{branch}.tar.gz"
|
| 1006 |
+
if not blob.exists():
|
| 1007 |
+
result["test_branch_errors"][branch] = [
|
| 1008 |
+
{"error_code": "missing_test_blob", "error_details": blob.name}
|
| 1009 |
+
]
|
| 1010 |
+
inject_not_run(result, branch, tests, "missing_test_blob")
|
| 1011 |
+
continue
|
| 1012 |
+
|
| 1013 |
+
best_xml = ""
|
| 1014 |
+
# Prefer a complete, clean XML result, then the result covering the
|
| 1015 |
+
# most expected tests, and only then the one with the most passes.
|
| 1016 |
+
# Pass-count-only ranking can retain a partial xdist result over a
|
| 1017 |
+
# complete serial result.
|
| 1018 |
+
best_quality = (-1, -1, -1)
|
| 1019 |
+
serial = bool(metadata.get("force_serial_branches"))
|
| 1020 |
+
branch_log: list[dict[str, Any]] = []
|
| 1021 |
+
branch_ignored = {
|
| 1022 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 1023 |
+
}
|
| 1024 |
+
n_expected = len([name for name in tests if name not in branch_ignored])
|
| 1025 |
+
|
| 1026 |
+
def merge_best_xml(raw_xml: str) -> None:
|
| 1027 |
+
try:
|
| 1028 |
+
parsed, warnings = parse_junit(
|
| 1029 |
+
raw_xml, branch, list(info.get("tests", [])), branch_ignored
|
| 1030 |
+
)
|
| 1031 |
+
except Exception as exc:
|
| 1032 |
+
result["test_branch_errors"][branch] = [
|
| 1033 |
+
{"error_code": "xml_parse_error", "error_details": str(exc)}
|
| 1034 |
+
]
|
| 1035 |
+
inject_not_run(result, branch, tests, "xml_parse_error")
|
| 1036 |
+
else:
|
| 1037 |
+
result["test_results"].extend(parsed)
|
| 1038 |
+
result["warnings"].extend(warnings)
|
| 1039 |
+
|
| 1040 |
+
while True:
|
| 1041 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1042 |
+
restore_workspace(compiled_snapshot)
|
| 1043 |
+
extract_trusted_blob(blob, WORKSPACE)
|
| 1044 |
+
restore_reference_executable()
|
| 1045 |
+
actual_hash = sha256(WORKSPACE / "executable")
|
| 1046 |
+
if actual_hash != result["executable_hash"]:
|
| 1047 |
+
result["test_branch_errors"][branch] = [
|
| 1048 |
+
{
|
| 1049 |
+
"error_code": "executable_hash_mismatch",
|
| 1050 |
+
"error_details": (
|
| 1051 |
+
f"expected {result['executable_hash']}, got {actual_hash}"
|
| 1052 |
+
),
|
| 1053 |
+
}
|
| 1054 |
+
]
|
| 1055 |
+
inject_not_run(result, branch, tests, "executable_hash_mismatch")
|
| 1056 |
+
break
|
| 1057 |
+
run_sh = WORKSPACE / "eval" / "run.sh"
|
| 1058 |
+
if not run_sh.exists():
|
| 1059 |
+
result["test_branch_errors"][branch] = [
|
| 1060 |
+
{
|
| 1061 |
+
"error_code": "missing_run_sh",
|
| 1062 |
+
"error_details": "eval/run.sh missing",
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
inject_not_run(result, branch, tests, "missing_run_sh")
|
| 1066 |
+
break
|
| 1067 |
+
# Upstream rewrites thread→signal so xdist workers fail cleanly
|
| 1068 |
+
# instead of os._exit(1) on timeout. That works in fresh
|
| 1069 |
+
# containers per branch; here we reuse one container and
|
| 1070 |
+
# signal timeouts leave TUI/log-watcher subprocesses alive
|
| 1071 |
+
# (e.g. lazygit --logs + tail -f), wedging pytest for up to
|
| 1072 |
+
# branch_timeout. Keep the blob's thread method and rely on
|
| 1073 |
+
# cleanup_lingering_processes + serial fallback after crashes.
|
| 1074 |
+
env = branch_env(
|
| 1075 |
+
serial=serial,
|
| 1076 |
+
has_rerunfailures=has_rerunfailures,
|
| 1077 |
+
extras=metadata.get("branch_env"),
|
| 1078 |
+
)
|
| 1079 |
+
branch_log.append(
|
| 1080 |
+
run_step(
|
| 1081 |
+
"rm -f eval/results.xml results.xml",
|
| 1082 |
+
WORKSPACE,
|
| 1083 |
+
timeout=120,
|
| 1084 |
+
step="clean_stale_results",
|
| 1085 |
+
accept_failure=True,
|
| 1086 |
+
)
|
| 1087 |
+
)
|
| 1088 |
+
if serial:
|
| 1089 |
+
prepare_serial_run_sh(run_sh)
|
| 1090 |
+
run_entry = run_step(
|
| 1091 |
+
run_tests_command(serial=serial),
|
| 1092 |
+
WORKSPACE,
|
| 1093 |
+
timeout=branch_timeout,
|
| 1094 |
+
env=env,
|
| 1095 |
+
step="run_tests",
|
| 1096 |
+
accept_failure=True,
|
| 1097 |
+
)
|
| 1098 |
+
branch_log.append(run_entry)
|
| 1099 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1100 |
+
xml_path = find_results_xml()
|
| 1101 |
+
if xml_path is None:
|
| 1102 |
+
if best_xml:
|
| 1103 |
+
merge_best_xml(best_xml)
|
| 1104 |
+
break
|
| 1105 |
+
if serial:
|
| 1106 |
+
result["test_branch_errors"][branch] = [
|
| 1107 |
+
{
|
| 1108 |
+
"error_code": "missing_results_xml",
|
| 1109 |
+
"error_details": "eval/results.xml was not produced",
|
| 1110 |
+
}
|
| 1111 |
+
]
|
| 1112 |
+
inject_not_run(result, branch, tests, "missing_results_xml")
|
| 1113 |
+
break
|
| 1114 |
+
serial = True
|
| 1115 |
+
continue
|
| 1116 |
+
raw_xml = xml_path.read_text(errors="replace")
|
| 1117 |
+
crashes, n_tests, failures, missing = branch_attempt_metrics(
|
| 1118 |
+
raw_xml,
|
| 1119 |
+
run_output=run_entry.get("output", ""),
|
| 1120 |
+
expected_tests=n_expected,
|
| 1121 |
+
)
|
| 1122 |
+
useful = count_junit_passed(raw_xml)
|
| 1123 |
+
quality = (
|
| 1124 |
+
int(crashes == 0 and missing == 0),
|
| 1125 |
+
n_tests,
|
| 1126 |
+
useful,
|
| 1127 |
+
)
|
| 1128 |
+
if quality > best_quality:
|
| 1129 |
+
best_xml = raw_xml
|
| 1130 |
+
best_quality = quality
|
| 1131 |
+
retry = needs_serial_retry(
|
| 1132 |
+
serial=serial,
|
| 1133 |
+
crashes=crashes,
|
| 1134 |
+
missing=missing,
|
| 1135 |
+
failures=failures,
|
| 1136 |
+
n_tests=n_tests,
|
| 1137 |
+
expected_tests=n_expected,
|
| 1138 |
+
run_output=run_entry.get("output", ""),
|
| 1139 |
+
)
|
| 1140 |
+
if not retry:
|
| 1141 |
+
merge_best_xml(best_xml)
|
| 1142 |
+
break
|
| 1143 |
+
serial = True
|
| 1144 |
+
for entry in branch_log:
|
| 1145 |
+
entry["branch"] = branch
|
| 1146 |
+
result["log"].extend(branch_log)
|
| 1147 |
+
|
| 1148 |
+
return result
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
|
| 1152 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1153 |
+
write_json(LOG_DIR / "programgym_eval.json", result)
|
| 1154 |
+
write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
|
| 1155 |
+
rewards = summarize(result, metadata)
|
| 1156 |
+
write_json(LOG_DIR / "reward.json", rewards)
|
| 1157 |
+
(LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
def main() -> None:
|
| 1161 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1162 |
+
log_path = LOG_DIR / "programgym_eval.log"
|
| 1163 |
+
metadata = json.loads(METADATA_PATH.read_text())
|
| 1164 |
+
branches = metadata.get("branches", {})
|
| 1165 |
+
try:
|
| 1166 |
+
result = evaluate(metadata)
|
| 1167 |
+
except Exception as exc:
|
| 1168 |
+
error_code = type(exc).__name__
|
| 1169 |
+
result = {
|
| 1170 |
+
"test_results": [],
|
| 1171 |
+
"error_code": error_code,
|
| 1172 |
+
"error_details": str(exc),
|
| 1173 |
+
"log": [
|
| 1174 |
+
{
|
| 1175 |
+
"step": "evaluator_exception",
|
| 1176 |
+
"exception_info": traceback.format_exc(),
|
| 1177 |
+
"returncode": 1,
|
| 1178 |
+
}
|
| 1179 |
+
],
|
| 1180 |
+
"solution_branch": "submission",
|
| 1181 |
+
"test_branches": [
|
| 1182 |
+
name for name, info in branches.items() if not info.get("ignored")
|
| 1183 |
+
],
|
| 1184 |
+
"test_branch_errors": {
|
| 1185 |
+
"__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
|
| 1186 |
+
},
|
| 1187 |
+
"executable_hash": None,
|
| 1188 |
+
"warnings": [],
|
| 1189 |
+
}
|
| 1190 |
+
for branch, info in branches.items():
|
| 1191 |
+
if info.get("ignored"):
|
| 1192 |
+
continue
|
| 1193 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 1194 |
+
log_path.write_text(traceback.format_exc())
|
| 1195 |
+
else:
|
| 1196 |
+
log_path.write_text("")
|
| 1197 |
+
write_outputs(result, metadata)
|
| 1198 |
+
|
| 1199 |
+
|
| 1200 |
+
if __name__ == "__main__":
|
| 1201 |
+
main()
|
majerle--lwshell.61f0a5b/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,449 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [
|
| 7 |
+
{
|
| 8 |
+
"name": "eval.tests.test_process_semantics.test_driver_exits_promptly_with_idle_open_stdin",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"id": "golden_docstring",
|
| 12 |
+
"message": "pytest test docstring mentions golden data that is not used in the body",
|
| 13 |
+
"path": "eval/tests/test_process_semantics.py",
|
| 14 |
+
"repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
|
| 15 |
+
"severity": "error",
|
| 16 |
+
"stage": "static_lint"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"id": "golden_no_equality",
|
| 20 |
+
"message": "pytest test references golden data without equality comparison",
|
| 21 |
+
"path": "eval/tests/test_process_semantics.py",
|
| 22 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 23 |
+
"severity": "error",
|
| 24 |
+
"stage": "static_lint"
|
| 25 |
+
}
|
| 26 |
+
]
|
| 27 |
+
},
|
| 28 |
+
{
|
| 29 |
+
"name": "eval.tests.test_process_semantics.test_driver_reads_from_seekable_regular_file_stdin",
|
| 30 |
+
"reasons": [
|
| 31 |
+
{
|
| 32 |
+
"id": "golden_docstring",
|
| 33 |
+
"message": "pytest test docstring mentions golden data that is not used in the body",
|
| 34 |
+
"path": "eval/tests/test_process_semantics.py",
|
| 35 |
+
"repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
|
| 36 |
+
"severity": "error",
|
| 37 |
+
"stage": "static_lint"
|
| 38 |
+
},
|
| 39 |
+
{
|
| 40 |
+
"id": "golden_no_equality",
|
| 41 |
+
"message": "pytest test references golden data without equality comparison",
|
| 42 |
+
"path": "eval/tests/test_process_semantics.py",
|
| 43 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 44 |
+
"severity": "error",
|
| 45 |
+
"stage": "static_lint"
|
| 46 |
+
}
|
| 47 |
+
]
|
| 48 |
+
}
|
| 49 |
+
],
|
| 50 |
+
"tests": [
|
| 51 |
+
"eval.tests.test_launch_isolation.test_concurrent_runs_are_byte_identical",
|
| 52 |
+
"eval.tests.test_launch_isolation.test_driver_creates_no_files_or_directories_in_cwd[already-empty]",
|
| 53 |
+
"eval.tests.test_launch_isolation.test_driver_creates_no_files_or_directories_in_cwd[with-pre-existing-dir]",
|
| 54 |
+
"eval.tests.test_launch_isolation.test_driver_creates_no_files_or_directories_in_cwd[with-pre-existing-file]",
|
| 55 |
+
"eval.tests.test_launch_isolation.test_driver_ignores_a_full_environment_overlay",
|
| 56 |
+
"eval.tests.test_launch_isolation.test_driver_runs_with_detached_stdio[both-devnull]",
|
| 57 |
+
"eval.tests.test_launch_isolation.test_driver_runs_with_detached_stdio[stderr-devnull]",
|
| 58 |
+
"eval.tests.test_launch_isolation.test_driver_runs_with_detached_stdio[stdin-devnull]",
|
| 59 |
+
"eval.tests.test_launch_isolation.test_relocated_copy_of_executable_is_identical",
|
| 60 |
+
"eval.tests.test_launch_isolation.test_symlink_to_executable_launches_identically",
|
| 61 |
+
"eval.tests.test_process_semantics.test_all_bytes_delivered_to_slow_consumer",
|
| 62 |
+
"eval.tests.test_process_semantics.test_broken_stdout_is_a_signal_not_a_clean_exit",
|
| 63 |
+
"eval.tests.test_process_semantics.test_broken_stdout_sigpipe_is_deterministic[run1]",
|
| 64 |
+
"eval.tests.test_process_semantics.test_broken_stdout_sigpipe_is_deterministic[run2]",
|
| 65 |
+
"eval.tests.test_process_semantics.test_broken_stdout_sigpipe_is_deterministic[run3]",
|
| 66 |
+
"eval.tests.test_process_semantics.test_broken_stdout_terminates_by_sigpipe",
|
| 67 |
+
"eval.tests.test_process_semantics.test_driver_exits_promptly_with_idle_open_stdin",
|
| 68 |
+
"eval.tests.test_process_semantics.test_driver_reads_from_seekable_regular_file_stdin",
|
| 69 |
+
"eval.tests.test_process_semantics.test_driver_runs_detached_from_controlling_terminal[new-session-no-controlling-tty]",
|
| 70 |
+
"eval.tests.test_process_semantics.test_driver_runs_detached_from_controlling_terminal[new-session]",
|
| 71 |
+
"eval.tests.test_process_semantics.test_driver_runs_in_read_only_cwd[execute-only]",
|
| 72 |
+
"eval.tests.test_process_semantics.test_driver_runs_in_read_only_cwd[no-perms]",
|
| 73 |
+
"eval.tests.test_process_semantics.test_driver_runs_in_read_only_cwd[read-only-owner]",
|
| 74 |
+
"eval.tests.test_process_semantics.test_stdout_redirected_file_has_37_bytes",
|
| 75 |
+
"eval.tests.test_process_semantics.test_stdout_redirected_to_file_matches_golden[nested-dir]",
|
| 76 |
+
"eval.tests.test_process_semantics.test_stdout_redirected_to_file_matches_golden[plain]",
|
| 77 |
+
"eval.tests.test_process_semantics.test_stdout_redirected_to_file_matches_golden[spaced]",
|
| 78 |
+
"eval.tests.test_process_semantics.test_stdout_to_full_device_still_succeeds",
|
| 79 |
+
"eval.tests.test_shell_engine.test_argv_does_not_trigger_command_help[h-flag]",
|
| 80 |
+
"eval.tests.test_shell_engine.test_argv_does_not_trigger_command_help[help-word]",
|
| 81 |
+
"eval.tests.test_shell_engine.test_argv_does_not_trigger_command_help[listcmd-word]",
|
| 82 |
+
"eval.tests.test_shell_engine.test_argv_does_not_trigger_command_help[question]",
|
| 83 |
+
"eval.tests.test_shell_engine.test_deterministic_across_three_runs",
|
| 84 |
+
"eval.tests.test_shell_engine.test_executable_is_launchable_and_self_tests",
|
| 85 |
+
"eval.tests.test_shell_engine.test_failure_stdout_is_distinct_from_success",
|
| 86 |
+
"eval.tests.test_shell_engine.test_golden_fixture_equality_with_runtime",
|
| 87 |
+
"eval.tests.test_shell_engine.test_golden_fixture_has_canonical_content",
|
| 88 |
+
"eval.tests.test_shell_engine.test_golden_fixture_is_read_only",
|
| 89 |
+
"eval.tests.test_shell_engine.test_golden_fixture_matches_runtime",
|
| 90 |
+
"eval.tests.test_shell_engine.test_idempotent_repeated_runs_identical",
|
| 91 |
+
"eval.tests.test_shell_engine.test_large_or_binary_stdin_does_not_change_output[131k]",
|
| 92 |
+
"eval.tests.test_shell_engine.test_large_or_binary_stdin_does_not_change_output[all-byte-values]",
|
| 93 |
+
"eval.tests.test_shell_engine.test_large_or_binary_stdin_does_not_change_output[many-lines]",
|
| 94 |
+
"eval.tests.test_shell_engine.test_large_or_binary_stdin_does_not_change_output[null-bytes]",
|
| 95 |
+
"eval.tests.test_shell_engine.test_no_interactive_shell_surface[interactive-cmd-name]",
|
| 96 |
+
"eval.tests.test_shell_engine.test_no_interactive_shell_surface[interactive-prompt]",
|
| 97 |
+
"eval.tests.test_shell_engine.test_no_interactive_shell_surface[listcmd-banner]",
|
| 98 |
+
"eval.tests.test_shell_engine.test_no_interactive_shell_surface[static-cmd-name]",
|
| 99 |
+
"eval.tests.test_shell_engine.test_no_interactive_shell_surface[unknown-command]",
|
| 100 |
+
"eval.tests.test_shell_engine.test_no_wait_on_open_stdin_after_input",
|
| 101 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[command-like-args]",
|
| 102 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[help-flag]",
|
| 103 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[listcmd-arg]",
|
| 104 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[many-args]",
|
| 105 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[mixed-flags]",
|
| 106 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_argv[no-args]",
|
| 107 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_combined_stdin_argv",
|
| 108 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_cwd[long-dir]",
|
| 109 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_cwd[nested]",
|
| 110 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_cwd[one-level]",
|
| 111 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_cwd[spaced]",
|
| 112 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[lang-c]",
|
| 113 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[lc-utf8]",
|
| 114 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[minimal-path]",
|
| 115 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[term-tui]",
|
| 116 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[tz]",
|
| 117 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_env[unrelated-var]",
|
| 118 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[bare-cr]",
|
| 119 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[builtin-listcmd]",
|
| 120 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[command-like]",
|
| 121 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[control-bytes]",
|
| 122 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[crlf-pairs]",
|
| 123 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[empty]",
|
| 124 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[newline]",
|
| 125 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[non-utf8-bytes]",
|
| 126 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[oversized-line]",
|
| 127 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[quoted-with-escape]",
|
| 128 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[static-command-like]",
|
| 129 |
+
"eval.tests.test_shell_engine.test_output_invariant_under_stdin[whitespace-only]",
|
| 130 |
+
"eval.tests.test_shell_engine.test_report01_first_line_prefix",
|
| 131 |
+
"eval.tests.test_shell_engine.test_report02_final_line_is_completion_banner",
|
| 132 |
+
"eval.tests.test_shell_engine.test_report03_no_failure_banner_on_success",
|
| 133 |
+
"eval.tests.test_shell_engine.test_report04_stdout_has_exactly_two_lines",
|
| 134 |
+
"eval.tests.test_shell_engine.test_report05_stderr_is_empty",
|
| 135 |
+
"eval.tests.test_shell_engine.test_report06_stdout_is_crlf_canonical",
|
| 136 |
+
"eval.tests.test_shell_engine.test_report07_exact_byte_sequence",
|
| 137 |
+
"eval.tests.test_shell_engine.test_report08_output_has_no_trailing_extras",
|
| 138 |
+
"eval.tests.test_shell_engine.test_stdin_closed_returns_clean",
|
| 139 |
+
"eval.tests.test_shell_engine.test_stdout_crlf_first_line_endings",
|
| 140 |
+
"eval.tests.test_shell_engine.test_stdout_is_only_the_self_test_banners",
|
| 141 |
+
"eval.tests.test_shell_engine.test_success_stdout_contains_no_error_word",
|
| 142 |
+
"eval.tests.test_shell_engine.test_successful_self_test_contract",
|
| 143 |
+
"eval.tests.test_shell_engine.test_successful_self_test_exit_zero_only",
|
| 144 |
+
"eval.tests.test_shell_engine.test_successful_self_test_stdout_exact",
|
| 145 |
+
"eval.tests.test_tty_processing.test_tty_control_chars_do_not_affect_output",
|
| 146 |
+
"eval.tests.test_tty_processing.test_tty_does_not_block_on_input",
|
| 147 |
+
"eval.tests.test_tty_processing.test_tty_does_not_echo_supplied_input",
|
| 148 |
+
"eval.tests.test_tty_processing.test_tty_emits_exact_golden",
|
| 149 |
+
"eval.tests.test_tty_processing.test_tty_multiple_runs_are_byte_identical",
|
| 150 |
+
"eval.tests.test_tty_processing.test_tty_output_ignores_offered_input[empty-line]",
|
| 151 |
+
"eval.tests.test_tty_processing.test_tty_output_ignores_offered_input[no-input]",
|
| 152 |
+
"eval.tests.test_tty_processing.test_tty_output_ignores_offered_input[quoted-with-escape]",
|
| 153 |
+
"eval.tests.test_tty_processing.test_tty_output_ignores_offered_input[unknown-command]",
|
| 154 |
+
"eval.tests.test_tty_processing.test_tty_output_ignores_offered_input[whitespace-line]"
|
| 155 |
+
]
|
| 156 |
+
},
|
| 157 |
+
"generated_module_03": {
|
| 158 |
+
"ignore_reason": "",
|
| 159 |
+
"ignored": false,
|
| 160 |
+
"ignored_tests": [
|
| 161 |
+
{
|
| 162 |
+
"name": "eval.tests.test_stream_facets.test_redirected_stdout_file_size_matches_golden",
|
| 163 |
+
"reasons": [
|
| 164 |
+
{
|
| 165 |
+
"id": "golden_written_in_test",
|
| 166 |
+
"message": "pytest test writes to its own golden file",
|
| 167 |
+
"path": "eval/tests/test_stream_facets.py",
|
| 168 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 169 |
+
"severity": "error",
|
| 170 |
+
"stage": "static_lint"
|
| 171 |
+
}
|
| 172 |
+
]
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"tests": [
|
| 176 |
+
"eval.tests.test_concurrency.TestConcurrencyIndependence.test_back_to_back_invocations_do_not_accumulate",
|
| 177 |
+
"eval.tests.test_concurrency.TestConcurrencyIndependence.test_parallel_invocations_are_identical[1]",
|
| 178 |
+
"eval.tests.test_concurrency.TestConcurrencyIndependence.test_parallel_invocations_are_identical[4]",
|
| 179 |
+
"eval.tests.test_concurrency.TestConcurrencyIndependence.test_parallel_invocations_are_identical[8]",
|
| 180 |
+
"eval.tests.test_concurrency.TestInputScaleIndependence.test_large_stdin_is_ignored[1048576]",
|
| 181 |
+
"eval.tests.test_concurrency.TestInputScaleIndependence.test_large_stdin_is_ignored[4096]",
|
| 182 |
+
"eval.tests.test_concurrency.TestInputScaleIndependence.test_large_stdin_is_ignored[65536]",
|
| 183 |
+
"eval.tests.test_concurrency.TestInputScaleIndependence.test_no_output_echo_of_large_payload",
|
| 184 |
+
"eval.tests.test_concurrency.TestInputScaleIndependence.test_nul_bytes_in_stdin_do_not_break_output",
|
| 185 |
+
"eval.tests.test_concurrency.TestLargeArgvTolerance.test_large_argv_does_not_change_behavior[argv0]",
|
| 186 |
+
"eval.tests.test_concurrency.TestLargeArgvTolerance.test_large_argv_does_not_change_behavior[argv1]",
|
| 187 |
+
"eval.tests.test_concurrency.TestLargeArgvTolerance.test_large_argv_does_not_change_behavior[argv2]",
|
| 188 |
+
"eval.tests.test_concurrency.TestLargeArgvTolerance.test_large_argv_does_not_change_behavior[argv3]",
|
| 189 |
+
"eval.tests.test_concurrency.TestLargeArgvTolerance.test_large_argv_does_not_change_behavior[argv4]",
|
| 190 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_dev_command_words_do_not_alter_behavior[probe_args0]",
|
| 191 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_dev_command_words_do_not_alter_behavior[probe_args1]",
|
| 192 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_dev_command_words_do_not_alter_behavior[probe_args2]",
|
| 193 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args0]",
|
| 194 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args1]",
|
| 195 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args2]",
|
| 196 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args3]",
|
| 197 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args4]",
|
| 198 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args5]",
|
| 199 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args6]",
|
| 200 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args7]",
|
| 201 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args8]",
|
| 202 |
+
"eval.tests.test_entry_point.TestArgvIndependence.test_stdout_identical_across_argv[probe_args9]",
|
| 203 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_exit_status_is_zero",
|
| 204 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_output_is_header_then_footer",
|
| 205 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_returncode_zero_implies_success_marker",
|
| 206 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_stderr_is_empty",
|
| 207 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_stdout_does_not_leak_to_stderr",
|
| 208 |
+
"eval.tests.test_entry_point.TestInvocationContract.test_stdout_exactly_matches_golden",
|
| 209 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[Running test...\\r\\nTests completed...\\r\\n]",
|
| 210 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[\\n]",
|
| 211 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[\\x00\\x01\\xff]",
|
| 212 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[]",
|
| 213 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[addint 5 7\\n]",
|
| 214 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[help\\n]",
|
| 215 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_change_output[quit\\nexit\\n]",
|
| 216 |
+
"eval.tests.test_entry_point.TestStd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xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx]",
|
| 218 |
+
"eval.tests.test_entry_point.TestStdinIndependence.test_stdin_does_not_echo_input",
|
| 219 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_each_line_is_crlf_terminated",
|
| 220 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_footer_line_exact",
|
| 221 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_header_line_exact",
|
| 222 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_no_lf_only_line_endings",
|
| 223 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_no_trailing_content_after_footer",
|
| 224 |
+
"eval.tests.test_entry_point.TestStdoutContent.test_output_has_two_lines",
|
| 225 |
+
"eval.tests.test_entry_point.TestStreamSeparation.test_exit_zero_has_no_error_text",
|
| 226 |
+
"eval.tests.test_entry_point.TestStreamSeparation.test_output_begins_on_first_read",
|
| 227 |
+
"eval.tests.test_entry_point.TestStreamSeparation.test_stdout_populated_stderr_empty",
|
| 228 |
+
"eval.tests.test_golden_oracle.test_bytewise_reconstruction_matches_golden",
|
| 229 |
+
"eval.tests.test_golden_oracle.test_first_streamed_byte_is_banner_r",
|
| 230 |
+
"eval.tests.test_golden_oracle.test_golden_resource_is_consistent_with_inline_constant",
|
| 231 |
+
"eval.tests.test_golden_oracle.test_golden_text_normalised_equality",
|
| 232 |
+
"eval.tests.test_golden_oracle.test_no_bare_lf_without_preceding_cr",
|
| 233 |
+
"eval.tests.test_golden_oracle.test_none_of_golden_leaks_into_stderr",
|
| 234 |
+
"eval.tests.test_golden_oracle.test_output_is_pure_ascii_no_high_bytes",
|
| 235 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args0]",
|
| 236 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args1]",
|
| 237 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args2]",
|
| 238 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args3]",
|
| 239 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args4]",
|
| 240 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_argv[probe_args5]",
|
| 241 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_stdin[\\x00\\xff\\x00]",
|
| 242 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_stdin[]",
|
| 243 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_stdin[addint 5 7\\n]",
|
| 244 |
+
"eval.tests.test_golden_oracle.test_stdout_matches_golden_across_stdin[help\\nquit\\n]",
|
| 245 |
+
"eval.tests.test_process.TestBrokenPipeBehavior.test_early_reader_close_does_not_hang[0]",
|
| 246 |
+
"eval.tests.test_process.TestBrokenPipeBehavior.test_early_reader_close_does_not_hang[16]",
|
| 247 |
+
"eval.tests.test_process.TestBrokenPipeBehavior.test_early_reader_close_does_not_hang[1]",
|
| 248 |
+
"eval.tests.test_process.TestBrokenPipeBehavior.test_full_stream_then_close_is_clean",
|
| 249 |
+
"eval.tests.test_process.TestRuntimePromptness.test_completes_well_under_deadline",
|
| 250 |
+
"eval.tests.test_process.TestRuntimePromptness.test_launch_does_not_hang_on_closed_stdin",
|
| 251 |
+
"eval.tests.test_process.TestStreamCaptureAtomicity.test_piped_full_capture_matches_exact_bytes[1]",
|
| 252 |
+
"eval.tests.test_process.TestStreamCaptureAtomicity.test_piped_full_capture_matches_exact_bytes[32]",
|
| 253 |
+
"eval.tests.test_process.TestStreamCaptureAtomicity.test_piped_full_capture_matches_exact_bytes[4096]",
|
| 254 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_idempotent_resume_ignores_environment_noise",
|
| 255 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra0]",
|
| 256 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra1]",
|
| 257 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra2]",
|
| 258 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra3]",
|
| 259 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra4]",
|
| 260 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra5]",
|
| 261 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra6]",
|
| 262 |
+
"eval.tests.test_robustness.TestEnvironmentIndependence.test_output_stable_under_environment[env_extra7]",
|
| 263 |
+
"eval.tests.test_robustness.TestWorkingDirectoryIndependence.test_no_files_written_to_cwd",
|
| 264 |
+
"eval.tests.test_robustness.TestWorkingDirectoryIndependence.test_run_from_any_cwd[False]",
|
| 265 |
+
"eval.tests.test_robustness.TestWorkingDirectoryIndependence.test_run_from_any_cwd[True]",
|
| 266 |
+
"eval.tests.test_stream_facets.test_crlf_terminator_positions_are_exact",
|
| 267 |
+
"eval.tests.test_stream_facets.test_final_output_byte_is_lf",
|
| 268 |
+
"eval.tests.test_stream_facets.test_redirected_stdout_file_size_matches_golden",
|
| 269 |
+
"eval.tests.test_stream_output.test_both_streams_same_file_single_copy",
|
| 270 |
+
"eval.tests.test_stream_output.test_file_ends_exactly_at_footer_no_trailing_bytes",
|
| 271 |
+
"eval.tests.test_stream_output.test_plain_stdout_byte_count_matches_golden",
|
| 272 |
+
"eval.tests.test_stream_output.test_resolved_realpath_binary_emits_identical_golden",
|
| 273 |
+
"eval.tests.test_stream_output.test_separate_stdout_stderr_files_are_independent",
|
| 274 |
+
"eval.tests.test_stream_output.test_stderr_file_stays_empty",
|
| 275 |
+
"eval.tests.test_stream_output.test_stdout_file_byte_length_exact",
|
| 276 |
+
"eval.tests.test_stream_output.test_stdout_file_contains_exact_golden"
|
| 277 |
+
]
|
| 278 |
+
},
|
| 279 |
+
"generated_upstream": {
|
| 280 |
+
"ignore_reason": "",
|
| 281 |
+
"ignored": false,
|
| 282 |
+
"ignored_tests": [],
|
| 283 |
+
"tests": [
|
| 284 |
+
"eval.tests.test_lwshell_argparse.test_quoted_and_escaped_token_contract_is_exercised",
|
| 285 |
+
"eval.tests.test_lwshell_argparse.test_run_exits_zero_and_reports_no_parse_failure",
|
| 286 |
+
"eval.tests.test_lwshell_argparse.test_stdout_matches_exact_self_test_markers"
|
| 287 |
+
]
|
| 288 |
+
}
|
| 289 |
+
},
|
| 290 |
+
"commit": "61f0a5bbcb6178c09a97a69a90c2bb3d100d3a1d",
|
| 291 |
+
"data_source": "synthetic_programgym",
|
| 292 |
+
"difficulty": "easy",
|
| 293 |
+
"difficulty_score": 1.0588054866759067,
|
| 294 |
+
"eval_clean_hashes": [
|
| 295 |
+
"184a9cab365d821c4cbc94997fbaf3dd9251ff93877e96da2986519a1a198771"
|
| 296 |
+
],
|
| 297 |
+
"input_record": {
|
| 298 |
+
"commit": "61f0a5bbcb6178c09a97a69a90c2bb3d100d3a1d",
|
| 299 |
+
"commits": 148,
|
| 300 |
+
"contributors": 6,
|
| 301 |
+
"difficulty": "easy",
|
| 302 |
+
"difficulty_code_lines": 1145,
|
| 303 |
+
"difficulty_has_tests": true,
|
| 304 |
+
"difficulty_product_code_lines": 1145,
|
| 305 |
+
"difficulty_runtime_deps": 0,
|
| 306 |
+
"difficulty_score": 1.0588054866759067,
|
| 307 |
+
"difficulty_test_code_lines": 137,
|
| 308 |
+
"full_name": "MaJerle/lwshell",
|
| 309 |
+
"github_stars": 208,
|
| 310 |
+
"input_joern_zip": "c_joern/MaJerle__lwshell.zip",
|
| 311 |
+
"joern_status": true,
|
| 312 |
+
"joern_time": 16.516588679980487,
|
| 313 |
+
"language": "c",
|
| 314 |
+
"pb_match": [
|
| 315 |
+
{
|
| 316 |
+
"pb_fullname": "php/php-src",
|
| 317 |
+
"rank": 462,
|
| 318 |
+
"similarity": 0.44000935554504395
|
| 319 |
+
},
|
| 320 |
+
{
|
| 321 |
+
"pb_fullname": "tinycc/tinycc",
|
| 322 |
+
"rank": 332,
|
| 323 |
+
"similarity": 0.48647719621658325
|
| 324 |
+
},
|
| 325 |
+
{
|
| 326 |
+
"pb_fullname": "google/brotli",
|
| 327 |
+
"rank": 837,
|
| 328 |
+
"similarity": 0.4323301613330841
|
| 329 |
+
},
|
| 330 |
+
{
|
| 331 |
+
"pb_fullname": "abishekvashok/cmatrix",
|
| 332 |
+
"rank": 847,
|
| 333 |
+
"similarity": 0.48271191120147705
|
| 334 |
+
},
|
| 335 |
+
{
|
| 336 |
+
"pb_fullname": "madler/pigz",
|
| 337 |
+
"rank": 919,
|
| 338 |
+
"similarity": 0.4196552336215973
|
| 339 |
+
},
|
| 340 |
+
{
|
| 341 |
+
"pb_fullname": "sqlite/sqlite",
|
| 342 |
+
"rank": 241,
|
| 343 |
+
"similarity": 0.4688260555267334
|
| 344 |
+
},
|
| 345 |
+
{
|
| 346 |
+
"pb_fullname": "jarun/nnn",
|
| 347 |
+
"rank": 907,
|
| 348 |
+
"similarity": 0.47240713238716125
|
| 349 |
+
},
|
| 350 |
+
{
|
| 351 |
+
"pb_fullname": "lz4/lz4",
|
| 352 |
+
"rank": 754,
|
| 353 |
+
"similarity": 0.4586813449859619
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"pb_fullname": "bellard/quickjs",
|
| 357 |
+
"rank": 269,
|
| 358 |
+
"similarity": 0.4754311442375183
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"pb_fullname": "mkj/dropbear",
|
| 362 |
+
"rank": 177,
|
| 363 |
+
"similarity": 0.5213897228240967
|
| 364 |
+
},
|
| 365 |
+
{
|
| 366 |
+
"pb_fullname": "LuaJIT/LuaJIT",
|
| 367 |
+
"rank": 316,
|
| 368 |
+
"similarity": 0.4857284426689148
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"pb_fullname": "lua/lua",
|
| 372 |
+
"rank": 40,
|
| 373 |
+
"similarity": 0.5583395957946777
|
| 374 |
+
},
|
| 375 |
+
{
|
| 376 |
+
"pb_fullname": "eradman/entr",
|
| 377 |
+
"rank": 879,
|
| 378 |
+
"similarity": 0.38422515988349915
|
| 379 |
+
},
|
| 380 |
+
{
|
| 381 |
+
"pb_fullname": "htop-dev/htop",
|
| 382 |
+
"rank": 562,
|
| 383 |
+
"similarity": 0.46434879302978516
|
| 384 |
+
},
|
| 385 |
+
{
|
| 386 |
+
"pb_fullname": "arq5x/bedtools2",
|
| 387 |
+
"rank": 997,
|
| 388 |
+
"similarity": 0.4137115478515625
|
| 389 |
+
},
|
| 390 |
+
{
|
| 391 |
+
"pb_fullname": "chirlu/sox",
|
| 392 |
+
"rank": 935,
|
| 393 |
+
"similarity": 0.40176713466644287
|
| 394 |
+
},
|
| 395 |
+
{
|
| 396 |
+
"pb_fullname": "facebook/zstd",
|
| 397 |
+
"rank": 410,
|
| 398 |
+
"similarity": 0.49009275436401367
|
| 399 |
+
},
|
| 400 |
+
{
|
| 401 |
+
"pb_fullname": "xorg62/tty-clock",
|
| 402 |
+
"rank": 565,
|
| 403 |
+
"similarity": 0.3922005295753479
|
| 404 |
+
}
|
| 405 |
+
],
|
| 406 |
+
"repo_age": 5.35,
|
| 407 |
+
"repo_path": "c/MaJerle__lwshell",
|
| 408 |
+
"source": "commit:61f0a5bbcb6178c09a97a69a90c2bb3d100d3a1d",
|
| 409 |
+
"status": "done",
|
| 410 |
+
"url": "https://github.com/MaJerle/lwshell"
|
| 411 |
+
},
|
| 412 |
+
"instance_id": "MaJerle__lwshell.61f0a5b",
|
| 413 |
+
"language": "c",
|
| 414 |
+
"module_iterations": [
|
| 415 |
+
{
|
| 416 |
+
"actual_iterations": 5,
|
| 417 |
+
"branch_name": "generated_module_01",
|
| 418 |
+
"iteration_limit": 5,
|
| 419 |
+
"module_index": 1,
|
| 420 |
+
"module_kind": "source",
|
| 421 |
+
"termination_reason": "early_stopping"
|
| 422 |
+
},
|
| 423 |
+
{
|
| 424 |
+
"actual_iterations": 5,
|
| 425 |
+
"branch_name": "generated_module_02",
|
| 426 |
+
"iteration_limit": 5,
|
| 427 |
+
"module_index": 2,
|
| 428 |
+
"module_kind": "source",
|
| 429 |
+
"termination_reason": "max_iterations"
|
| 430 |
+
},
|
| 431 |
+
{
|
| 432 |
+
"actual_iterations": 5,
|
| 433 |
+
"branch_name": "generated_module_03",
|
| 434 |
+
"iteration_limit": 5,
|
| 435 |
+
"module_index": 3,
|
| 436 |
+
"module_kind": "source",
|
| 437 |
+
"termination_reason": "max_iterations"
|
| 438 |
+
},
|
| 439 |
+
{
|
| 440 |
+
"actual_iterations": 5,
|
| 441 |
+
"branch_name": "generated_upstream",
|
| 442 |
+
"iteration_limit": 5,
|
| 443 |
+
"module_index": 4,
|
| 444 |
+
"module_kind": "tests",
|
| 445 |
+
"termination_reason": "early_stopping"
|
| 446 |
+
}
|
| 447 |
+
],
|
| 448 |
+
"repository": "MaJerle/lwshell"
|
| 449 |
+
}
|
majerle--lwshell.61f0a5b/tests/test.sh
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
# Verifier exec may not inherit image ENV (Modal/gVisor, login-shell resets).
|
| 5 |
+
export PATH="/usr/local/go/bin:/go/bin:/usr/local/cargo/bin:/root/.cargo/bin:${PATH}"
|
| 6 |
+
|
| 7 |
+
mkdir -p /logs/verifier /logs/artifacts
|
| 8 |
+
|
| 9 |
+
write_failure() {
|
| 10 |
+
local code="$1"
|
| 11 |
+
local details="$2"
|
| 12 |
+
python3 - "$code" "$details" <<'PY'
|
| 13 |
+
import json
|
| 14 |
+
import sys
|
| 15 |
+
from pathlib import Path
|
| 16 |
+
|
| 17 |
+
code, details = sys.argv[1:3]
|
| 18 |
+
try:
|
| 19 |
+
metadata = json.loads(Path("/tests/programgym_task.json").read_text())
|
| 20 |
+
n_tests = sum(
|
| 21 |
+
len([
|
| 22 |
+
name for name in info.get("tests", [])
|
| 23 |
+
if name not in {item.get("name") for item in info.get("ignored_tests", [])}
|
| 24 |
+
])
|
| 25 |
+
for branch, info in metadata.get("branches", {}).items()
|
| 26 |
+
if not info.get("ignored")
|
| 27 |
+
)
|
| 28 |
+
except Exception:
|
| 29 |
+
n_tests = 0
|
| 30 |
+
result = {
|
| 31 |
+
"test_results": [],
|
| 32 |
+
"error_code": code,
|
| 33 |
+
"error_details": details,
|
| 34 |
+
"log": [],
|
| 35 |
+
"solution_branch": "submission",
|
| 36 |
+
"test_branches": [],
|
| 37 |
+
"test_branch_errors": {
|
| 38 |
+
"__infra__": [{"error_code": code, "error_details": details}]
|
| 39 |
+
},
|
| 40 |
+
"executable_hash": None,
|
| 41 |
+
"warnings": [],
|
| 42 |
+
}
|
| 43 |
+
diagnostics = {
|
| 44 |
+
"pass_rate": 0.0,
|
| 45 |
+
"resolved": 0,
|
| 46 |
+
"n_passed": 0,
|
| 47 |
+
"n_tests": n_tests,
|
| 48 |
+
"n_branch_errors": 1,
|
| 49 |
+
"infra_error": 1,
|
| 50 |
+
"executable_hash_present": 0,
|
| 51 |
+
}
|
| 52 |
+
Path("/logs/verifier/programgym_eval.json").write_text(
|
| 53 |
+
json.dumps(result, indent=2, sort_keys=True)
|
| 54 |
+
)
|
| 55 |
+
Path("/logs/verifier/harbor_diagnostics.json").write_text(
|
| 56 |
+
json.dumps(diagnostics, indent=2, sort_keys=True)
|
| 57 |
+
)
|
| 58 |
+
Path("/logs/verifier/reward.json").write_text(
|
| 59 |
+
json.dumps(
|
| 60 |
+
{"reward": 0.0, "resolved": 0.0, "almost_resolved": 0.0},
|
| 61 |
+
indent=2,
|
| 62 |
+
sort_keys=True,
|
| 63 |
+
)
|
| 64 |
+
)
|
| 65 |
+
Path("/logs/verifier/reward.txt").write_text("0.0")
|
| 66 |
+
Path("/logs/verifier/programgym_eval.log").write_text(details)
|
| 67 |
+
PY
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 71 |
+
write_failure "missing_python3" "python3 is required in the cleanroom image"
|
| 72 |
+
exit 0
|
| 73 |
+
fi
|
| 74 |
+
|
| 75 |
+
if ! python3 /tests/programgym_evaluator.py; then
|
| 76 |
+
if [ ! -s /logs/verifier/reward.txt ]; then
|
| 77 |
+
write_failure "evaluator_crashed" \
|
| 78 |
+
"programgym_evaluator.py exited non-zero with no reward written"
|
| 79 |
+
fi
|
| 80 |
+
fi
|
| 81 |
+
|
| 82 |
+
exit 0
|
majerle--lwshell.61f0a5b/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d70cd256ddc65a2894ad640431d354ca51979241272819593d18ad207185a95b
|
| 3 |
+
size 5154
|
makew0rld--didder.408a18a/environment/Dockerfile
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 51 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 52 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 53 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 54 |
+
ENV HOME=/workspace
|
| 55 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 56 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 57 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 58 |
+
ENV GOROOT=/usr/local/go
|
| 59 |
+
ENV GOPATH=/workspace/.go
|
| 60 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 61 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 62 |
+
ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 63 |
+
ENV PAGER=cat
|
| 64 |
+
ENV MANPAGER=cat
|
| 65 |
+
ENV LESS=-R
|
| 66 |
+
ENV TQDM_DISABLE=1
|
| 67 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 68 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
|
| 69 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 70 |
+
RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
|
| 71 |
+
RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
|
| 72 |
+
WORKDIR /workspace
|
| 73 |
+
ADD workspace.tar.gz /workspace/
|
| 74 |
+
COPY executable /workspace/executable
|
| 75 |
+
COPY download.sh /workspace/download.sh
|
| 76 |
+
RUN chmod 755 /workspace/download.sh
|
| 77 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 78 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 79 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 80 |
+
&& rm -f /workspace/download.sh \
|
| 81 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 82 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 83 |
+
RUN chmod 111 /workspace/executable
|
| 84 |
+
WORKDIR /workspace
|
| 85 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 86 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 87 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 88 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 89 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 90 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 91 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 92 |
+
RUN mkdir -p /home/agent \
|
| 93 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 94 |
+
&& chown agent:agent /workspace/executable \
|
| 95 |
+
&& chmod 111 /workspace/executable
|
| 96 |
+
ENV HOME=/home/agent
|
| 97 |
+
WORKDIR /workspace
|
| 98 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|