Datasets:
commit (part 133)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +8 -0
- vitaut--zmij.c5998fb/tests/Dockerfile +1 -0
- vividboarder--vaultwarden_ldap.7bf91f3/environment/Dockerfile +60 -0
- vividboarder--vaultwarden_ldap.7bf91f3/environment/download.sh +1889 -0
- vividboarder--vaultwarden_ldap.7bf91f3/environment/executable +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/environment/harbor_prepare_download_env.sh +37 -0
- vividboarder--vaultwarden_ldap.7bf91f3/environment/workspace.tar.gz +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/instruction.md +98 -0
- vividboarder--vaultwarden_ldap.7bf91f3/solution/solve.sh +33 -0
- vividboarder--vaultwarden_ldap.7bf91f3/task.toml +69 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/Dockerfile +69 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/download.sh +1889 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/executable +3 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/harbor_prepare_download_env.sh +37 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/programgym_evaluator.py +1201 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/programgym_task.json +1635 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/test.sh +82 -0
- vividboarder--vaultwarden_ldap.7bf91f3/tests/workspace.tar.gz +3 -0
- vividcortex--siesta.99bec23/environment/Dockerfile +1 -0
- vividcortex--siesta.99bec23/tests/Dockerfile +1 -0
- vivkin--gason.c9c4aa6/environment/Dockerfile +1 -0
- vivkin--gason.c9c4aa6/tests/Dockerfile +1 -0
- vjeantet--grok.e39bbec/environment/Dockerfile +1 -0
- vjeantet--grok.e39bbec/tests/Dockerfile +1 -0
- vladimirvivien--learning-go.a19a03f/environment/Dockerfile +61 -0
- vladimirvivien--learning-go.a19a03f/environment/download.sh +138 -0
- vladimirvivien--learning-go.a19a03f/environment/executable +3 -0
- vladimirvivien--learning-go.a19a03f/environment/programgym-go.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/environment/workspace.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/instruction.md +98 -0
- vladimirvivien--learning-go.a19a03f/solution/solve.sh +33 -0
- vladimirvivien--learning-go.a19a03f/task.toml +69 -0
- vladimirvivien--learning-go.a19a03f/tests/Dockerfile +69 -0
- vladimirvivien--learning-go.a19a03f/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/tests/download.sh +138 -0
- vladimirvivien--learning-go.a19a03f/tests/executable +3 -0
- vladimirvivien--learning-go.a19a03f/tests/programgym-go.tar.gz +3 -0
- vladimirvivien--learning-go.a19a03f/tests/programgym_evaluator.py +1201 -0
- vladimirvivien--learning-go.a19a03f/tests/programgym_task.json +521 -0
- vladimirvivien--learning-go.a19a03f/tests/test.sh +82 -0
- vladimirvivien--learning-go.a19a03f/tests/workspace.tar.gz +3 -0
- voultapher--self_cell.3b0f5c3/environment/Dockerfile +93 -0
- voultapher--self_cell.3b0f5c3/environment/docker-compose.yaml +22 -0
- voultapher--self_cell.3b0f5c3/environment/download.sh +55 -0
.gitattributes
CHANGED
|
@@ -3722,3 +3722,11 @@ viaduct-ai--kustomize-sops.d9442dc/environment/executable filter=lfs diff=lfs me
|
|
| 3722 |
viaduct-ai--kustomize-sops.d9442dc/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3723 |
victoriametrics--prometheus-benchmark.f8c344d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3724 |
victoriametrics--prometheus-benchmark.f8c344d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3722 |
viaduct-ai--kustomize-sops.d9442dc/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3723 |
victoriametrics--prometheus-benchmark.f8c344d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3724 |
victoriametrics--prometheus-benchmark.f8c344d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3725 |
+
vividboarder--vaultwarden_ldap.7bf91f3/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3726 |
+
vividboarder--vaultwarden_ldap.7bf91f3/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3727 |
+
vladimirvivien--learning-go.a19a03f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3728 |
+
vladimirvivien--learning-go.a19a03f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3729 |
+
voultapher--self_cell.3b0f5c3/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3730 |
+
voultapher--self_cell.3b0f5c3/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3731 |
+
vpenso--prometheus-slurm-exporter.895c7c6/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3732 |
+
vpenso--prometheus-slurm-exporter.895c7c6/tests/executable filter=lfs diff=lfs merge=lfs -text
|
vitaut--zmij.c5998fb/tests/Dockerfile
CHANGED
|
@@ -72,3 +72,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 72 |
COPY programgym_task.json /tests/programgym_task.json
|
| 73 |
COPY blobs/ /tests/blobs/
|
| 74 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 72 |
COPY programgym_task.json /tests/programgym_task.json
|
| 73 |
COPY blobs/ /tests/blobs/
|
| 74 |
RUN chmod +x /tests/test.sh
|
| 75 |
+
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"]
|
vividboarder--vaultwarden_ldap.7bf91f3/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"]
|
vividboarder--vaultwarden_ldap.7bf91f3/environment/download.sh
ADDED
|
@@ -0,0 +1,1889 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# ProgramGym download.sh for ViViDboarder/vaultwarden_ldap.
|
| 3 |
+
# Standalone dependency prefetch, invoked via: `source /source_ro/download.sh`.
|
| 4 |
+
# Self-contained: does NOT read any repository source file at runtime. It
|
| 5 |
+
# generates a temporary Cargo manifest + lockfile from inline data and
|
| 6 |
+
# prefetches the exact locked dependency set. It performs no compile step.
|
| 7 |
+
|
| 8 |
+
# Fail helper: return 1 in source mode, else exit 1.
|
| 9 |
+
pb_fail() {
|
| 10 |
+
echo "ERROR: $*" >&2
|
| 11 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 12 |
+
return 1
|
| 13 |
+
else
|
| 14 |
+
exit 1
|
| 15 |
+
fi
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
# Persistent cargo home; build.sh reuses this same cache offline.
|
| 19 |
+
export CARGO_HOME="${CARGO_HOME:-/usr/local/cargo}"
|
| 20 |
+
|
| 21 |
+
# Writable scratch dir for the generated manifest/lock (source mount is read-only).
|
| 22 |
+
PB_FETCH_DIR="${PB_FETCH_DIR:-/tmp/programgym_fetch}"
|
| 23 |
+
|
| 24 |
+
if ! mkdir -p "$PB_FETCH_DIR/src"; then
|
| 25 |
+
pb_fail "could not create fetch directory: $PB_FETCH_DIR"
|
| 26 |
+
fi
|
| 27 |
+
|
| 28 |
+
pb_manifest="$PB_FETCH_DIR/Cargo.toml"
|
| 29 |
+
pb_lock="$PB_FETCH_DIR/Cargo.lock"
|
| 30 |
+
|
| 31 |
+
# Stub source for the generated bin target (cargo requires a buildable target).
|
| 32 |
+
printf "fn main() {}\\n" > "$PB_FETCH_DIR/src/main.rs"
|
| 33 |
+
|
| 34 |
+
# Cargo.toml generated from inline data; name/version/deps mirror the repository
|
| 35 |
+
# manifest so it is consistent with the locked dependency set below.
|
| 36 |
+
cat > "$pb_manifest" <<'MANIFEST_EOF'
|
| 37 |
+
[package]
|
| 38 |
+
name = "vaultwarden_ldap"
|
| 39 |
+
version = "2.2.1"
|
| 40 |
+
edition = "2018"
|
| 41 |
+
|
| 42 |
+
[dependencies]
|
| 43 |
+
ldap3 = "0.12"
|
| 44 |
+
serde = { version = "1.0", features = ["derive"] }
|
| 45 |
+
toml = "1.1"
|
| 46 |
+
reqwest = { version = "0.12", features = ["json", "blocking"] }
|
| 47 |
+
serde_json = "1.0"
|
| 48 |
+
thiserror = "2.0"
|
| 49 |
+
anyhow = "1.0"
|
| 50 |
+
envy = "0.4.1"
|
| 51 |
+
pledge = "0.4.2"
|
| 52 |
+
unveil = "0.3.2"
|
| 53 |
+
|
| 54 |
+
MANIFEST_EOF
|
| 55 |
+
|
| 56 |
+
# Cargo.lock (version = 4) embedded verbatim from the repository so the prefetch
|
| 57 |
+
# downloads precisely what the offline --locked build requires.
|
| 58 |
+
cat > "$pb_lock" <<'LOCK_EOF'
|
| 59 |
+
# This file is automatically @generated by Cargo.
|
| 60 |
+
# It is not intended for manual editing.
|
| 61 |
+
version = 4
|
| 62 |
+
|
| 63 |
+
[[package]]
|
| 64 |
+
name = "anyhow"
|
| 65 |
+
version = "1.0.102"
|
| 66 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 67 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 68 |
+
|
| 69 |
+
[[package]]
|
| 70 |
+
name = "async-trait"
|
| 71 |
+
version = "0.1.89"
|
| 72 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 73 |
+
checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
|
| 74 |
+
dependencies = [
|
| 75 |
+
"proc-macro2",
|
| 76 |
+
"quote",
|
| 77 |
+
"syn",
|
| 78 |
+
]
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "atomic-waker"
|
| 82 |
+
version = "1.1.2"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
| 85 |
+
|
| 86 |
+
[[package]]
|
| 87 |
+
name = "autocfg"
|
| 88 |
+
version = "1.4.0"
|
| 89 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 90 |
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
| 91 |
+
|
| 92 |
+
[[package]]
|
| 93 |
+
name = "base64"
|
| 94 |
+
version = "0.22.1"
|
| 95 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 96 |
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
| 97 |
+
|
| 98 |
+
[[package]]
|
| 99 |
+
name = "bitflags"
|
| 100 |
+
version = "2.9.1"
|
| 101 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 102 |
+
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
|
| 103 |
+
|
| 104 |
+
[[package]]
|
| 105 |
+
name = "bumpalo"
|
| 106 |
+
version = "3.18.1"
|
| 107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 108 |
+
checksum = "793db76d6187cd04dff33004d8e6c9cc4e05cd330500379d2394209271b4aeee"
|
| 109 |
+
|
| 110 |
+
[[package]]
|
| 111 |
+
name = "bytes"
|
| 112 |
+
version = "1.11.1"
|
| 113 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 114 |
+
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
| 115 |
+
|
| 116 |
+
[[package]]
|
| 117 |
+
name = "cc"
|
| 118 |
+
version = "1.2.26"
|
| 119 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 120 |
+
checksum = "956a5e21988b87f372569b66183b78babf23ebc2e744b733e4350a752c4dafac"
|
| 121 |
+
dependencies = [
|
| 122 |
+
"shlex",
|
| 123 |
+
]
|
| 124 |
+
|
| 125 |
+
[[package]]
|
| 126 |
+
name = "cfg-if"
|
| 127 |
+
version = "1.0.1"
|
| 128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 129 |
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "core-foundation"
|
| 133 |
+
version = "0.9.4"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"core-foundation-sys",
|
| 138 |
+
"libc",
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
[[package]]
|
| 142 |
+
name = "core-foundation-sys"
|
| 143 |
+
version = "0.8.7"
|
| 144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 145 |
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
| 146 |
+
|
| 147 |
+
[[package]]
|
| 148 |
+
name = "displaydoc"
|
| 149 |
+
version = "0.2.5"
|
| 150 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 151 |
+
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
|
| 152 |
+
dependencies = [
|
| 153 |
+
"proc-macro2",
|
| 154 |
+
"quote",
|
| 155 |
+
"syn",
|
| 156 |
+
]
|
| 157 |
+
|
| 158 |
+
[[package]]
|
| 159 |
+
name = "encoding_rs"
|
| 160 |
+
version = "0.8.35"
|
| 161 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 162 |
+
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
| 163 |
+
dependencies = [
|
| 164 |
+
"cfg-if",
|
| 165 |
+
]
|
| 166 |
+
|
| 167 |
+
[[package]]
|
| 168 |
+
name = "envy"
|
| 169 |
+
version = "0.4.2"
|
| 170 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 171 |
+
checksum = "3f47e0157f2cb54f5ae1bd371b30a2ae4311e1c028f575cd4e81de7353215965"
|
| 172 |
+
dependencies = [
|
| 173 |
+
"serde",
|
| 174 |
+
]
|
| 175 |
+
|
| 176 |
+
[[package]]
|
| 177 |
+
name = "equivalent"
|
| 178 |
+
version = "1.0.2"
|
| 179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 180 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "errno"
|
| 184 |
+
version = "0.3.12"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18"
|
| 187 |
+
dependencies = [
|
| 188 |
+
"libc",
|
| 189 |
+
"windows-sys 0.59.0",
|
| 190 |
+
]
|
| 191 |
+
|
| 192 |
+
[[package]]
|
| 193 |
+
name = "fastrand"
|
| 194 |
+
version = "2.3.0"
|
| 195 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 196 |
+
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
|
| 197 |
+
|
| 198 |
+
[[package]]
|
| 199 |
+
name = "fnv"
|
| 200 |
+
version = "1.0.7"
|
| 201 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 202 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 203 |
+
|
| 204 |
+
[[package]]
|
| 205 |
+
name = "foreign-types"
|
| 206 |
+
version = "0.3.2"
|
| 207 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 208 |
+
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
| 209 |
+
dependencies = [
|
| 210 |
+
"foreign-types-shared",
|
| 211 |
+
]
|
| 212 |
+
|
| 213 |
+
[[package]]
|
| 214 |
+
name = "foreign-types-shared"
|
| 215 |
+
version = "0.1.1"
|
| 216 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 217 |
+
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
| 218 |
+
|
| 219 |
+
[[package]]
|
| 220 |
+
name = "form_urlencoded"
|
| 221 |
+
version = "1.2.2"
|
| 222 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 223 |
+
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
| 224 |
+
dependencies = [
|
| 225 |
+
"percent-encoding",
|
| 226 |
+
]
|
| 227 |
+
|
| 228 |
+
[[package]]
|
| 229 |
+
name = "futures"
|
| 230 |
+
version = "0.3.31"
|
| 231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 232 |
+
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
|
| 233 |
+
dependencies = [
|
| 234 |
+
"futures-channel",
|
| 235 |
+
"futures-core",
|
| 236 |
+
"futures-executor",
|
| 237 |
+
"futures-io",
|
| 238 |
+
"futures-sink",
|
| 239 |
+
"futures-task",
|
| 240 |
+
"futures-util",
|
| 241 |
+
]
|
| 242 |
+
|
| 243 |
+
[[package]]
|
| 244 |
+
name = "futures-channel"
|
| 245 |
+
version = "0.3.31"
|
| 246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 247 |
+
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
|
| 248 |
+
dependencies = [
|
| 249 |
+
"futures-core",
|
| 250 |
+
"futures-sink",
|
| 251 |
+
]
|
| 252 |
+
|
| 253 |
+
[[package]]
|
| 254 |
+
name = "futures-core"
|
| 255 |
+
version = "0.3.31"
|
| 256 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 257 |
+
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
|
| 258 |
+
|
| 259 |
+
[[package]]
|
| 260 |
+
name = "futures-executor"
|
| 261 |
+
version = "0.3.31"
|
| 262 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 263 |
+
checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
|
| 264 |
+
dependencies = [
|
| 265 |
+
"futures-core",
|
| 266 |
+
"futures-task",
|
| 267 |
+
"futures-util",
|
| 268 |
+
]
|
| 269 |
+
|
| 270 |
+
[[package]]
|
| 271 |
+
name = "futures-io"
|
| 272 |
+
version = "0.3.31"
|
| 273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 274 |
+
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
|
| 275 |
+
|
| 276 |
+
[[package]]
|
| 277 |
+
name = "futures-macro"
|
| 278 |
+
version = "0.3.31"
|
| 279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 280 |
+
checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
|
| 281 |
+
dependencies = [
|
| 282 |
+
"proc-macro2",
|
| 283 |
+
"quote",
|
| 284 |
+
"syn",
|
| 285 |
+
]
|
| 286 |
+
|
| 287 |
+
[[package]]
|
| 288 |
+
name = "futures-sink"
|
| 289 |
+
version = "0.3.31"
|
| 290 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 291 |
+
checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
|
| 292 |
+
|
| 293 |
+
[[package]]
|
| 294 |
+
name = "futures-task"
|
| 295 |
+
version = "0.3.31"
|
| 296 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 297 |
+
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
|
| 298 |
+
|
| 299 |
+
[[package]]
|
| 300 |
+
name = "futures-util"
|
| 301 |
+
version = "0.3.31"
|
| 302 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 303 |
+
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
|
| 304 |
+
dependencies = [
|
| 305 |
+
"futures-channel",
|
| 306 |
+
"futures-core",
|
| 307 |
+
"futures-io",
|
| 308 |
+
"futures-macro",
|
| 309 |
+
"futures-sink",
|
| 310 |
+
"futures-task",
|
| 311 |
+
"memchr",
|
| 312 |
+
"pin-project-lite",
|
| 313 |
+
"pin-utils",
|
| 314 |
+
"slab",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "getrandom"
|
| 319 |
+
version = "0.2.16"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"cfg-if",
|
| 324 |
+
"libc",
|
| 325 |
+
"wasi 0.11.1+wasi-snapshot-preview1",
|
| 326 |
+
]
|
| 327 |
+
|
| 328 |
+
[[package]]
|
| 329 |
+
name = "getrandom"
|
| 330 |
+
version = "0.3.3"
|
| 331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 332 |
+
checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
|
| 333 |
+
dependencies = [
|
| 334 |
+
"cfg-if",
|
| 335 |
+
"libc",
|
| 336 |
+
"r-efi",
|
| 337 |
+
"wasi 0.14.2+wasi-0.2.4",
|
| 338 |
+
]
|
| 339 |
+
|
| 340 |
+
[[package]]
|
| 341 |
+
name = "h2"
|
| 342 |
+
version = "0.4.10"
|
| 343 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 344 |
+
checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5"
|
| 345 |
+
dependencies = [
|
| 346 |
+
"atomic-waker",
|
| 347 |
+
"bytes",
|
| 348 |
+
"fnv",
|
| 349 |
+
"futures-core",
|
| 350 |
+
"futures-sink",
|
| 351 |
+
"http",
|
| 352 |
+
"indexmap",
|
| 353 |
+
"slab",
|
| 354 |
+
"tokio",
|
| 355 |
+
"tokio-util",
|
| 356 |
+
"tracing",
|
| 357 |
+
]
|
| 358 |
+
|
| 359 |
+
[[package]]
|
| 360 |
+
name = "hashbrown"
|
| 361 |
+
version = "0.16.1"
|
| 362 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 363 |
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
| 364 |
+
|
| 365 |
+
[[package]]
|
| 366 |
+
name = "http"
|
| 367 |
+
version = "1.3.1"
|
| 368 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 369 |
+
checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
|
| 370 |
+
dependencies = [
|
| 371 |
+
"bytes",
|
| 372 |
+
"fnv",
|
| 373 |
+
"itoa",
|
| 374 |
+
]
|
| 375 |
+
|
| 376 |
+
[[package]]
|
| 377 |
+
name = "http-body"
|
| 378 |
+
version = "1.0.1"
|
| 379 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 380 |
+
checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
|
| 381 |
+
dependencies = [
|
| 382 |
+
"bytes",
|
| 383 |
+
"http",
|
| 384 |
+
]
|
| 385 |
+
|
| 386 |
+
[[package]]
|
| 387 |
+
name = "http-body-util"
|
| 388 |
+
version = "0.1.3"
|
| 389 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 390 |
+
checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
|
| 391 |
+
dependencies = [
|
| 392 |
+
"bytes",
|
| 393 |
+
"futures-core",
|
| 394 |
+
"http",
|
| 395 |
+
"http-body",
|
| 396 |
+
"pin-project-lite",
|
| 397 |
+
]
|
| 398 |
+
|
| 399 |
+
[[package]]
|
| 400 |
+
name = "httparse"
|
| 401 |
+
version = "1.10.1"
|
| 402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 403 |
+
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
| 404 |
+
|
| 405 |
+
[[package]]
|
| 406 |
+
name = "hyper"
|
| 407 |
+
version = "1.6.0"
|
| 408 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 409 |
+
checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
|
| 410 |
+
dependencies = [
|
| 411 |
+
"bytes",
|
| 412 |
+
"futures-channel",
|
| 413 |
+
"futures-util",
|
| 414 |
+
"h2",
|
| 415 |
+
"http",
|
| 416 |
+
"http-body",
|
| 417 |
+
"httparse",
|
| 418 |
+
"itoa",
|
| 419 |
+
"pin-project-lite",
|
| 420 |
+
"smallvec",
|
| 421 |
+
"tokio",
|
| 422 |
+
"want",
|
| 423 |
+
]
|
| 424 |
+
|
| 425 |
+
[[package]]
|
| 426 |
+
name = "hyper-rustls"
|
| 427 |
+
version = "0.27.7"
|
| 428 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 429 |
+
checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
|
| 430 |
+
dependencies = [
|
| 431 |
+
"http",
|
| 432 |
+
"hyper",
|
| 433 |
+
"hyper-util",
|
| 434 |
+
"rustls",
|
| 435 |
+
"rustls-pki-types",
|
| 436 |
+
"tokio",
|
| 437 |
+
"tokio-rustls",
|
| 438 |
+
"tower-service",
|
| 439 |
+
]
|
| 440 |
+
|
| 441 |
+
[[package]]
|
| 442 |
+
name = "hyper-tls"
|
| 443 |
+
version = "0.6.0"
|
| 444 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 445 |
+
checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
|
| 446 |
+
dependencies = [
|
| 447 |
+
"bytes",
|
| 448 |
+
"http-body-util",
|
| 449 |
+
"hyper",
|
| 450 |
+
"hyper-util",
|
| 451 |
+
"native-tls",
|
| 452 |
+
"tokio",
|
| 453 |
+
"tokio-native-tls",
|
| 454 |
+
"tower-service",
|
| 455 |
+
]
|
| 456 |
+
|
| 457 |
+
[[package]]
|
| 458 |
+
name = "hyper-util"
|
| 459 |
+
version = "0.1.14"
|
| 460 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 461 |
+
checksum = "dc2fdfdbff08affe55bb779f33b053aa1fe5dd5b54c257343c17edfa55711bdb"
|
| 462 |
+
dependencies = [
|
| 463 |
+
"base64",
|
| 464 |
+
"bytes",
|
| 465 |
+
"futures-channel",
|
| 466 |
+
"futures-core",
|
| 467 |
+
"futures-util",
|
| 468 |
+
"http",
|
| 469 |
+
"http-body",
|
| 470 |
+
"hyper",
|
| 471 |
+
"ipnet",
|
| 472 |
+
"libc",
|
| 473 |
+
"percent-encoding",
|
| 474 |
+
"pin-project-lite",
|
| 475 |
+
"socket2 0.5.10",
|
| 476 |
+
"system-configuration",
|
| 477 |
+
"tokio",
|
| 478 |
+
"tower-service",
|
| 479 |
+
"tracing",
|
| 480 |
+
"windows-registry",
|
| 481 |
+
]
|
| 482 |
+
|
| 483 |
+
[[package]]
|
| 484 |
+
name = "icu_collections"
|
| 485 |
+
version = "2.0.0"
|
| 486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 487 |
+
checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47"
|
| 488 |
+
dependencies = [
|
| 489 |
+
"displaydoc",
|
| 490 |
+
"potential_utf",
|
| 491 |
+
"yoke",
|
| 492 |
+
"zerofrom",
|
| 493 |
+
"zerovec",
|
| 494 |
+
]
|
| 495 |
+
|
| 496 |
+
[[package]]
|
| 497 |
+
name = "icu_locale_core"
|
| 498 |
+
version = "2.0.0"
|
| 499 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 500 |
+
checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a"
|
| 501 |
+
dependencies = [
|
| 502 |
+
"displaydoc",
|
| 503 |
+
"litemap",
|
| 504 |
+
"tinystr",
|
| 505 |
+
"writeable",
|
| 506 |
+
"zerovec",
|
| 507 |
+
]
|
| 508 |
+
|
| 509 |
+
[[package]]
|
| 510 |
+
name = "icu_normalizer"
|
| 511 |
+
version = "2.0.0"
|
| 512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 513 |
+
checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979"
|
| 514 |
+
dependencies = [
|
| 515 |
+
"displaydoc",
|
| 516 |
+
"icu_collections",
|
| 517 |
+
"icu_normalizer_data",
|
| 518 |
+
"icu_properties",
|
| 519 |
+
"icu_provider",
|
| 520 |
+
"smallvec",
|
| 521 |
+
"zerovec",
|
| 522 |
+
]
|
| 523 |
+
|
| 524 |
+
[[package]]
|
| 525 |
+
name = "icu_normalizer_data"
|
| 526 |
+
version = "2.0.0"
|
| 527 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 528 |
+
checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3"
|
| 529 |
+
|
| 530 |
+
[[package]]
|
| 531 |
+
name = "icu_properties"
|
| 532 |
+
version = "2.0.1"
|
| 533 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 534 |
+
checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b"
|
| 535 |
+
dependencies = [
|
| 536 |
+
"displaydoc",
|
| 537 |
+
"icu_collections",
|
| 538 |
+
"icu_locale_core",
|
| 539 |
+
"icu_properties_data",
|
| 540 |
+
"icu_provider",
|
| 541 |
+
"potential_utf",
|
| 542 |
+
"zerotrie",
|
| 543 |
+
"zerovec",
|
| 544 |
+
]
|
| 545 |
+
|
| 546 |
+
[[package]]
|
| 547 |
+
name = "icu_properties_data"
|
| 548 |
+
version = "2.0.1"
|
| 549 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 550 |
+
checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632"
|
| 551 |
+
|
| 552 |
+
[[package]]
|
| 553 |
+
name = "icu_provider"
|
| 554 |
+
version = "2.0.0"
|
| 555 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 556 |
+
checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af"
|
| 557 |
+
dependencies = [
|
| 558 |
+
"displaydoc",
|
| 559 |
+
"icu_locale_core",
|
| 560 |
+
"stable_deref_trait",
|
| 561 |
+
"tinystr",
|
| 562 |
+
"writeable",
|
| 563 |
+
"yoke",
|
| 564 |
+
"zerofrom",
|
| 565 |
+
"zerotrie",
|
| 566 |
+
"zerovec",
|
| 567 |
+
]
|
| 568 |
+
|
| 569 |
+
[[package]]
|
| 570 |
+
name = "idna"
|
| 571 |
+
version = "1.1.0"
|
| 572 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 573 |
+
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
|
| 574 |
+
dependencies = [
|
| 575 |
+
"idna_adapter",
|
| 576 |
+
"smallvec",
|
| 577 |
+
"utf8_iter",
|
| 578 |
+
]
|
| 579 |
+
|
| 580 |
+
[[package]]
|
| 581 |
+
name = "idna_adapter"
|
| 582 |
+
version = "1.2.1"
|
| 583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 584 |
+
checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
|
| 585 |
+
dependencies = [
|
| 586 |
+
"icu_normalizer",
|
| 587 |
+
"icu_properties",
|
| 588 |
+
]
|
| 589 |
+
|
| 590 |
+
[[package]]
|
| 591 |
+
name = "indexmap"
|
| 592 |
+
version = "2.13.0"
|
| 593 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 594 |
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
| 595 |
+
dependencies = [
|
| 596 |
+
"equivalent",
|
| 597 |
+
"hashbrown",
|
| 598 |
+
]
|
| 599 |
+
|
| 600 |
+
[[package]]
|
| 601 |
+
name = "ipnet"
|
| 602 |
+
version = "2.11.0"
|
| 603 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 604 |
+
checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
|
| 605 |
+
|
| 606 |
+
[[package]]
|
| 607 |
+
name = "iri-string"
|
| 608 |
+
version = "0.7.8"
|
| 609 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 610 |
+
checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2"
|
| 611 |
+
dependencies = [
|
| 612 |
+
"memchr",
|
| 613 |
+
"serde",
|
| 614 |
+
]
|
| 615 |
+
|
| 616 |
+
[[package]]
|
| 617 |
+
name = "itoa"
|
| 618 |
+
version = "1.0.15"
|
| 619 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 620 |
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
| 621 |
+
|
| 622 |
+
[[package]]
|
| 623 |
+
name = "js-sys"
|
| 624 |
+
version = "0.3.77"
|
| 625 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 626 |
+
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
|
| 627 |
+
dependencies = [
|
| 628 |
+
"once_cell",
|
| 629 |
+
"wasm-bindgen",
|
| 630 |
+
]
|
| 631 |
+
|
| 632 |
+
[[package]]
|
| 633 |
+
name = "lber"
|
| 634 |
+
version = "0.5.1"
|
| 635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 636 |
+
checksum = "cbcf559624bfd9fe8d488329a8959766335a43a9b8b2cdd6a2c379fca02909a5"
|
| 637 |
+
dependencies = [
|
| 638 |
+
"bytes",
|
| 639 |
+
"nom",
|
| 640 |
+
]
|
| 641 |
+
|
| 642 |
+
[[package]]
|
| 643 |
+
name = "ldap3"
|
| 644 |
+
version = "0.12.1"
|
| 645 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 646 |
+
checksum = "01fe89f5e7cfb7e4701e3a38ff9f00358e026a9aee940355d88ee9d81e5c7503"
|
| 647 |
+
dependencies = [
|
| 648 |
+
"async-trait",
|
| 649 |
+
"bytes",
|
| 650 |
+
"futures",
|
| 651 |
+
"futures-util",
|
| 652 |
+
"lber",
|
| 653 |
+
"log",
|
| 654 |
+
"native-tls",
|
| 655 |
+
"nom",
|
| 656 |
+
"percent-encoding",
|
| 657 |
+
"thiserror",
|
| 658 |
+
"tokio",
|
| 659 |
+
"tokio-native-tls",
|
| 660 |
+
"tokio-stream",
|
| 661 |
+
"tokio-util",
|
| 662 |
+
"url",
|
| 663 |
+
]
|
| 664 |
+
|
| 665 |
+
[[package]]
|
| 666 |
+
name = "libc"
|
| 667 |
+
version = "0.2.172"
|
| 668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 669 |
+
checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
|
| 670 |
+
|
| 671 |
+
[[package]]
|
| 672 |
+
name = "linux-raw-sys"
|
| 673 |
+
version = "0.9.4"
|
| 674 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 675 |
+
checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
|
| 676 |
+
|
| 677 |
+
[[package]]
|
| 678 |
+
name = "litemap"
|
| 679 |
+
version = "0.8.0"
|
| 680 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 681 |
+
checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956"
|
| 682 |
+
|
| 683 |
+
[[package]]
|
| 684 |
+
name = "log"
|
| 685 |
+
version = "0.4.29"
|
| 686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 687 |
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
| 688 |
+
|
| 689 |
+
[[package]]
|
| 690 |
+
name = "memchr"
|
| 691 |
+
version = "2.7.4"
|
| 692 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 693 |
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
| 694 |
+
|
| 695 |
+
[[package]]
|
| 696 |
+
name = "mime"
|
| 697 |
+
version = "0.3.17"
|
| 698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 699 |
+
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
|
| 700 |
+
|
| 701 |
+
[[package]]
|
| 702 |
+
name = "minimal-lexical"
|
| 703 |
+
version = "0.2.1"
|
| 704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 705 |
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
| 706 |
+
|
| 707 |
+
[[package]]
|
| 708 |
+
name = "mio"
|
| 709 |
+
version = "1.0.4"
|
| 710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 711 |
+
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
|
| 712 |
+
dependencies = [
|
| 713 |
+
"libc",
|
| 714 |
+
"wasi 0.11.1+wasi-snapshot-preview1",
|
| 715 |
+
"windows-sys 0.59.0",
|
| 716 |
+
]
|
| 717 |
+
|
| 718 |
+
[[package]]
|
| 719 |
+
name = "native-tls"
|
| 720 |
+
version = "0.2.14"
|
| 721 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 722 |
+
checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e"
|
| 723 |
+
dependencies = [
|
| 724 |
+
"libc",
|
| 725 |
+
"log",
|
| 726 |
+
"openssl",
|
| 727 |
+
"openssl-probe",
|
| 728 |
+
"openssl-sys",
|
| 729 |
+
"schannel",
|
| 730 |
+
"security-framework",
|
| 731 |
+
"security-framework-sys",
|
| 732 |
+
"tempfile",
|
| 733 |
+
]
|
| 734 |
+
|
| 735 |
+
[[package]]
|
| 736 |
+
name = "nom"
|
| 737 |
+
version = "7.1.3"
|
| 738 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 739 |
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
| 740 |
+
dependencies = [
|
| 741 |
+
"memchr",
|
| 742 |
+
"minimal-lexical",
|
| 743 |
+
]
|
| 744 |
+
|
| 745 |
+
[[package]]
|
| 746 |
+
name = "once_cell"
|
| 747 |
+
version = "1.21.3"
|
| 748 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 749 |
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
| 750 |
+
|
| 751 |
+
[[package]]
|
| 752 |
+
name = "openssl"
|
| 753 |
+
version = "0.10.73"
|
| 754 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 755 |
+
checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8"
|
| 756 |
+
dependencies = [
|
| 757 |
+
"bitflags",
|
| 758 |
+
"cfg-if",
|
| 759 |
+
"foreign-types",
|
| 760 |
+
"libc",
|
| 761 |
+
"once_cell",
|
| 762 |
+
"openssl-macros",
|
| 763 |
+
"openssl-sys",
|
| 764 |
+
]
|
| 765 |
+
|
| 766 |
+
[[package]]
|
| 767 |
+
name = "openssl-macros"
|
| 768 |
+
version = "0.1.1"
|
| 769 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 770 |
+
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
|
| 771 |
+
dependencies = [
|
| 772 |
+
"proc-macro2",
|
| 773 |
+
"quote",
|
| 774 |
+
"syn",
|
| 775 |
+
]
|
| 776 |
+
|
| 777 |
+
[[package]]
|
| 778 |
+
name = "openssl-probe"
|
| 779 |
+
version = "0.1.6"
|
| 780 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 781 |
+
checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
|
| 782 |
+
|
| 783 |
+
[[package]]
|
| 784 |
+
name = "openssl-sys"
|
| 785 |
+
version = "0.9.109"
|
| 786 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 787 |
+
checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571"
|
| 788 |
+
dependencies = [
|
| 789 |
+
"cc",
|
| 790 |
+
"libc",
|
| 791 |
+
"pkg-config",
|
| 792 |
+
"vcpkg",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "percent-encoding"
|
| 797 |
+
version = "2.3.2"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "pin-project-lite"
|
| 803 |
+
version = "0.2.16"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "pin-utils"
|
| 809 |
+
version = "0.1.0"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 812 |
+
|
| 813 |
+
[[package]]
|
| 814 |
+
name = "pkg-config"
|
| 815 |
+
version = "0.3.32"
|
| 816 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 817 |
+
checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
|
| 818 |
+
|
| 819 |
+
[[package]]
|
| 820 |
+
name = "pledge"
|
| 821 |
+
version = "0.4.2"
|
| 822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 823 |
+
checksum = "252599417b7d9a43b7fdc63dd790b0848666a8910b2ebe1a25118309c3c981e5"
|
| 824 |
+
dependencies = [
|
| 825 |
+
"libc",
|
| 826 |
+
]
|
| 827 |
+
|
| 828 |
+
[[package]]
|
| 829 |
+
name = "potential_utf"
|
| 830 |
+
version = "0.1.2"
|
| 831 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 832 |
+
checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
|
| 833 |
+
dependencies = [
|
| 834 |
+
"zerovec",
|
| 835 |
+
]
|
| 836 |
+
|
| 837 |
+
[[package]]
|
| 838 |
+
name = "proc-macro2"
|
| 839 |
+
version = "1.0.95"
|
| 840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 841 |
+
checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
|
| 842 |
+
dependencies = [
|
| 843 |
+
"unicode-ident",
|
| 844 |
+
]
|
| 845 |
+
|
| 846 |
+
[[package]]
|
| 847 |
+
name = "quote"
|
| 848 |
+
version = "1.0.40"
|
| 849 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 850 |
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
| 851 |
+
dependencies = [
|
| 852 |
+
"proc-macro2",
|
| 853 |
+
]
|
| 854 |
+
|
| 855 |
+
[[package]]
|
| 856 |
+
name = "r-efi"
|
| 857 |
+
version = "5.2.0"
|
| 858 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 859 |
+
checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5"
|
| 860 |
+
|
| 861 |
+
[[package]]
|
| 862 |
+
name = "reqwest"
|
| 863 |
+
version = "0.12.23"
|
| 864 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 865 |
+
checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
|
| 866 |
+
dependencies = [
|
| 867 |
+
"base64",
|
| 868 |
+
"bytes",
|
| 869 |
+
"encoding_rs",
|
| 870 |
+
"futures-channel",
|
| 871 |
+
"futures-core",
|
| 872 |
+
"futures-util",
|
| 873 |
+
"h2",
|
| 874 |
+
"http",
|
| 875 |
+
"http-body",
|
| 876 |
+
"http-body-util",
|
| 877 |
+
"hyper",
|
| 878 |
+
"hyper-rustls",
|
| 879 |
+
"hyper-tls",
|
| 880 |
+
"hyper-util",
|
| 881 |
+
"js-sys",
|
| 882 |
+
"log",
|
| 883 |
+
"mime",
|
| 884 |
+
"native-tls",
|
| 885 |
+
"percent-encoding",
|
| 886 |
+
"pin-project-lite",
|
| 887 |
+
"rustls-pki-types",
|
| 888 |
+
"serde",
|
| 889 |
+
"serde_json",
|
| 890 |
+
"serde_urlencoded",
|
| 891 |
+
"sync_wrapper",
|
| 892 |
+
"tokio",
|
| 893 |
+
"tokio-native-tls",
|
| 894 |
+
"tower",
|
| 895 |
+
"tower-http",
|
| 896 |
+
"tower-service",
|
| 897 |
+
"url",
|
| 898 |
+
"wasm-bindgen",
|
| 899 |
+
"wasm-bindgen-futures",
|
| 900 |
+
"web-sys",
|
| 901 |
+
]
|
| 902 |
+
|
| 903 |
+
[[package]]
|
| 904 |
+
name = "ring"
|
| 905 |
+
version = "0.17.14"
|
| 906 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 907 |
+
checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
|
| 908 |
+
dependencies = [
|
| 909 |
+
"cc",
|
| 910 |
+
"cfg-if",
|
| 911 |
+
"getrandom 0.2.16",
|
| 912 |
+
"libc",
|
| 913 |
+
"untrusted",
|
| 914 |
+
"windows-sys 0.52.0",
|
| 915 |
+
]
|
| 916 |
+
|
| 917 |
+
[[package]]
|
| 918 |
+
name = "rustix"
|
| 919 |
+
version = "1.0.7"
|
| 920 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 921 |
+
checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266"
|
| 922 |
+
dependencies = [
|
| 923 |
+
"bitflags",
|
| 924 |
+
"errno",
|
| 925 |
+
"libc",
|
| 926 |
+
"linux-raw-sys",
|
| 927 |
+
"windows-sys 0.59.0",
|
| 928 |
+
]
|
| 929 |
+
|
| 930 |
+
[[package]]
|
| 931 |
+
name = "rustls"
|
| 932 |
+
version = "0.23.27"
|
| 933 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 934 |
+
checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321"
|
| 935 |
+
dependencies = [
|
| 936 |
+
"once_cell",
|
| 937 |
+
"rustls-pki-types",
|
| 938 |
+
"rustls-webpki",
|
| 939 |
+
"subtle",
|
| 940 |
+
"zeroize",
|
| 941 |
+
]
|
| 942 |
+
|
| 943 |
+
[[package]]
|
| 944 |
+
name = "rustls-pki-types"
|
| 945 |
+
version = "1.12.0"
|
| 946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 947 |
+
checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79"
|
| 948 |
+
dependencies = [
|
| 949 |
+
"zeroize",
|
| 950 |
+
]
|
| 951 |
+
|
| 952 |
+
[[package]]
|
| 953 |
+
name = "rustls-webpki"
|
| 954 |
+
version = "0.103.3"
|
| 955 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 956 |
+
checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435"
|
| 957 |
+
dependencies = [
|
| 958 |
+
"ring",
|
| 959 |
+
"rustls-pki-types",
|
| 960 |
+
"untrusted",
|
| 961 |
+
]
|
| 962 |
+
|
| 963 |
+
[[package]]
|
| 964 |
+
name = "rustversion"
|
| 965 |
+
version = "1.0.21"
|
| 966 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 967 |
+
checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
|
| 968 |
+
|
| 969 |
+
[[package]]
|
| 970 |
+
name = "ryu"
|
| 971 |
+
version = "1.0.20"
|
| 972 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 973 |
+
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
| 974 |
+
|
| 975 |
+
[[package]]
|
| 976 |
+
name = "schannel"
|
| 977 |
+
version = "0.1.27"
|
| 978 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 979 |
+
checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
|
| 980 |
+
dependencies = [
|
| 981 |
+
"windows-sys 0.59.0",
|
| 982 |
+
]
|
| 983 |
+
|
| 984 |
+
[[package]]
|
| 985 |
+
name = "security-framework"
|
| 986 |
+
version = "2.11.1"
|
| 987 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 988 |
+
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
|
| 989 |
+
dependencies = [
|
| 990 |
+
"bitflags",
|
| 991 |
+
"core-foundation",
|
| 992 |
+
"core-foundation-sys",
|
| 993 |
+
"libc",
|
| 994 |
+
"security-framework-sys",
|
| 995 |
+
]
|
| 996 |
+
|
| 997 |
+
[[package]]
|
| 998 |
+
name = "security-framework-sys"
|
| 999 |
+
version = "2.14.0"
|
| 1000 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1001 |
+
checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
|
| 1002 |
+
dependencies = [
|
| 1003 |
+
"core-foundation-sys",
|
| 1004 |
+
"libc",
|
| 1005 |
+
]
|
| 1006 |
+
|
| 1007 |
+
[[package]]
|
| 1008 |
+
name = "serde"
|
| 1009 |
+
version = "1.0.228"
|
| 1010 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1011 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 1012 |
+
dependencies = [
|
| 1013 |
+
"serde_core",
|
| 1014 |
+
"serde_derive",
|
| 1015 |
+
]
|
| 1016 |
+
|
| 1017 |
+
[[package]]
|
| 1018 |
+
name = "serde_core"
|
| 1019 |
+
version = "1.0.228"
|
| 1020 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1021 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 1022 |
+
dependencies = [
|
| 1023 |
+
"serde_derive",
|
| 1024 |
+
]
|
| 1025 |
+
|
| 1026 |
+
[[package]]
|
| 1027 |
+
name = "serde_derive"
|
| 1028 |
+
version = "1.0.228"
|
| 1029 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1030 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 1031 |
+
dependencies = [
|
| 1032 |
+
"proc-macro2",
|
| 1033 |
+
"quote",
|
| 1034 |
+
"syn",
|
| 1035 |
+
]
|
| 1036 |
+
|
| 1037 |
+
[[package]]
|
| 1038 |
+
name = "serde_json"
|
| 1039 |
+
version = "1.0.149"
|
| 1040 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1041 |
+
checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
|
| 1042 |
+
dependencies = [
|
| 1043 |
+
"itoa",
|
| 1044 |
+
"memchr",
|
| 1045 |
+
"serde",
|
| 1046 |
+
"serde_core",
|
| 1047 |
+
"zmij",
|
| 1048 |
+
]
|
| 1049 |
+
|
| 1050 |
+
[[package]]
|
| 1051 |
+
name = "serde_spanned"
|
| 1052 |
+
version = "1.1.1"
|
| 1053 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1054 |
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
| 1055 |
+
dependencies = [
|
| 1056 |
+
"serde_core",
|
| 1057 |
+
]
|
| 1058 |
+
|
| 1059 |
+
[[package]]
|
| 1060 |
+
name = "serde_urlencoded"
|
| 1061 |
+
version = "0.7.1"
|
| 1062 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1063 |
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
| 1064 |
+
dependencies = [
|
| 1065 |
+
"form_urlencoded",
|
| 1066 |
+
"itoa",
|
| 1067 |
+
"ryu",
|
| 1068 |
+
"serde",
|
| 1069 |
+
]
|
| 1070 |
+
|
| 1071 |
+
[[package]]
|
| 1072 |
+
name = "shlex"
|
| 1073 |
+
version = "1.3.0"
|
| 1074 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1075 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 1076 |
+
|
| 1077 |
+
[[package]]
|
| 1078 |
+
name = "slab"
|
| 1079 |
+
version = "0.4.9"
|
| 1080 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1081 |
+
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
|
| 1082 |
+
dependencies = [
|
| 1083 |
+
"autocfg",
|
| 1084 |
+
]
|
| 1085 |
+
|
| 1086 |
+
[[package]]
|
| 1087 |
+
name = "smallvec"
|
| 1088 |
+
version = "1.15.1"
|
| 1089 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1090 |
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
| 1091 |
+
|
| 1092 |
+
[[package]]
|
| 1093 |
+
name = "socket2"
|
| 1094 |
+
version = "0.5.10"
|
| 1095 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1096 |
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
|
| 1097 |
+
dependencies = [
|
| 1098 |
+
"libc",
|
| 1099 |
+
"windows-sys 0.52.0",
|
| 1100 |
+
]
|
| 1101 |
+
|
| 1102 |
+
[[package]]
|
| 1103 |
+
name = "socket2"
|
| 1104 |
+
version = "0.6.2"
|
| 1105 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1106 |
+
checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0"
|
| 1107 |
+
dependencies = [
|
| 1108 |
+
"libc",
|
| 1109 |
+
"windows-sys 0.60.2",
|
| 1110 |
+
]
|
| 1111 |
+
|
| 1112 |
+
[[package]]
|
| 1113 |
+
name = "stable_deref_trait"
|
| 1114 |
+
version = "1.2.0"
|
| 1115 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1116 |
+
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
| 1117 |
+
|
| 1118 |
+
[[package]]
|
| 1119 |
+
name = "subtle"
|
| 1120 |
+
version = "2.6.1"
|
| 1121 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1122 |
+
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
| 1123 |
+
|
| 1124 |
+
[[package]]
|
| 1125 |
+
name = "syn"
|
| 1126 |
+
version = "2.0.102"
|
| 1127 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1128 |
+
checksum = "f6397daf94fa90f058bd0fd88429dd9e5738999cca8d701813c80723add80462"
|
| 1129 |
+
dependencies = [
|
| 1130 |
+
"proc-macro2",
|
| 1131 |
+
"quote",
|
| 1132 |
+
"unicode-ident",
|
| 1133 |
+
]
|
| 1134 |
+
|
| 1135 |
+
[[package]]
|
| 1136 |
+
name = "sync_wrapper"
|
| 1137 |
+
version = "1.0.2"
|
| 1138 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1139 |
+
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
|
| 1140 |
+
dependencies = [
|
| 1141 |
+
"futures-core",
|
| 1142 |
+
]
|
| 1143 |
+
|
| 1144 |
+
[[package]]
|
| 1145 |
+
name = "synstructure"
|
| 1146 |
+
version = "0.13.2"
|
| 1147 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1148 |
+
checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
|
| 1149 |
+
dependencies = [
|
| 1150 |
+
"proc-macro2",
|
| 1151 |
+
"quote",
|
| 1152 |
+
"syn",
|
| 1153 |
+
]
|
| 1154 |
+
|
| 1155 |
+
[[package]]
|
| 1156 |
+
name = "system-configuration"
|
| 1157 |
+
version = "0.6.1"
|
| 1158 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1159 |
+
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
|
| 1160 |
+
dependencies = [
|
| 1161 |
+
"bitflags",
|
| 1162 |
+
"core-foundation",
|
| 1163 |
+
"system-configuration-sys",
|
| 1164 |
+
]
|
| 1165 |
+
|
| 1166 |
+
[[package]]
|
| 1167 |
+
name = "system-configuration-sys"
|
| 1168 |
+
version = "0.6.0"
|
| 1169 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1170 |
+
checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
|
| 1171 |
+
dependencies = [
|
| 1172 |
+
"core-foundation-sys",
|
| 1173 |
+
"libc",
|
| 1174 |
+
]
|
| 1175 |
+
|
| 1176 |
+
[[package]]
|
| 1177 |
+
name = "tempfile"
|
| 1178 |
+
version = "3.20.0"
|
| 1179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1180 |
+
checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1"
|
| 1181 |
+
dependencies = [
|
| 1182 |
+
"fastrand",
|
| 1183 |
+
"getrandom 0.3.3",
|
| 1184 |
+
"once_cell",
|
| 1185 |
+
"rustix",
|
| 1186 |
+
"windows-sys 0.59.0",
|
| 1187 |
+
]
|
| 1188 |
+
|
| 1189 |
+
[[package]]
|
| 1190 |
+
name = "thiserror"
|
| 1191 |
+
version = "2.0.18"
|
| 1192 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1193 |
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
| 1194 |
+
dependencies = [
|
| 1195 |
+
"thiserror-impl",
|
| 1196 |
+
]
|
| 1197 |
+
|
| 1198 |
+
[[package]]
|
| 1199 |
+
name = "thiserror-impl"
|
| 1200 |
+
version = "2.0.18"
|
| 1201 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1202 |
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
| 1203 |
+
dependencies = [
|
| 1204 |
+
"proc-macro2",
|
| 1205 |
+
"quote",
|
| 1206 |
+
"syn",
|
| 1207 |
+
]
|
| 1208 |
+
|
| 1209 |
+
[[package]]
|
| 1210 |
+
name = "tinystr"
|
| 1211 |
+
version = "0.8.1"
|
| 1212 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1213 |
+
checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b"
|
| 1214 |
+
dependencies = [
|
| 1215 |
+
"displaydoc",
|
| 1216 |
+
"zerovec",
|
| 1217 |
+
]
|
| 1218 |
+
|
| 1219 |
+
[[package]]
|
| 1220 |
+
name = "tokio"
|
| 1221 |
+
version = "1.49.0"
|
| 1222 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1223 |
+
checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86"
|
| 1224 |
+
dependencies = [
|
| 1225 |
+
"bytes",
|
| 1226 |
+
"libc",
|
| 1227 |
+
"mio",
|
| 1228 |
+
"pin-project-lite",
|
| 1229 |
+
"socket2 0.6.2",
|
| 1230 |
+
"tokio-macros",
|
| 1231 |
+
"windows-sys 0.61.2",
|
| 1232 |
+
]
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "tokio-macros"
|
| 1236 |
+
version = "2.6.0"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"proc-macro2",
|
| 1241 |
+
"quote",
|
| 1242 |
+
"syn",
|
| 1243 |
+
]
|
| 1244 |
+
|
| 1245 |
+
[[package]]
|
| 1246 |
+
name = "tokio-native-tls"
|
| 1247 |
+
version = "0.3.1"
|
| 1248 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1249 |
+
checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
|
| 1250 |
+
dependencies = [
|
| 1251 |
+
"native-tls",
|
| 1252 |
+
"tokio",
|
| 1253 |
+
]
|
| 1254 |
+
|
| 1255 |
+
[[package]]
|
| 1256 |
+
name = "tokio-rustls"
|
| 1257 |
+
version = "0.26.2"
|
| 1258 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1259 |
+
checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
|
| 1260 |
+
dependencies = [
|
| 1261 |
+
"rustls",
|
| 1262 |
+
"tokio",
|
| 1263 |
+
]
|
| 1264 |
+
|
| 1265 |
+
[[package]]
|
| 1266 |
+
name = "tokio-stream"
|
| 1267 |
+
version = "0.1.17"
|
| 1268 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1269 |
+
checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"
|
| 1270 |
+
dependencies = [
|
| 1271 |
+
"futures-core",
|
| 1272 |
+
"pin-project-lite",
|
| 1273 |
+
"tokio",
|
| 1274 |
+
]
|
| 1275 |
+
|
| 1276 |
+
[[package]]
|
| 1277 |
+
name = "tokio-util"
|
| 1278 |
+
version = "0.7.18"
|
| 1279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1280 |
+
checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
|
| 1281 |
+
dependencies = [
|
| 1282 |
+
"bytes",
|
| 1283 |
+
"futures-core",
|
| 1284 |
+
"futures-sink",
|
| 1285 |
+
"pin-project-lite",
|
| 1286 |
+
"tokio",
|
| 1287 |
+
]
|
| 1288 |
+
|
| 1289 |
+
[[package]]
|
| 1290 |
+
name = "toml"
|
| 1291 |
+
version = "1.1.1+spec-1.1.0"
|
| 1292 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1293 |
+
checksum = "994b95d9e7bae62b34bab0e2a4510b801fa466066a6a8b2b57361fa1eba068ee"
|
| 1294 |
+
dependencies = [
|
| 1295 |
+
"indexmap",
|
| 1296 |
+
"serde_core",
|
| 1297 |
+
"serde_spanned",
|
| 1298 |
+
"toml_datetime",
|
| 1299 |
+
"toml_parser",
|
| 1300 |
+
"toml_writer",
|
| 1301 |
+
"winnow",
|
| 1302 |
+
]
|
| 1303 |
+
|
| 1304 |
+
[[package]]
|
| 1305 |
+
name = "toml_datetime"
|
| 1306 |
+
version = "1.1.1+spec-1.1.0"
|
| 1307 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1308 |
+
checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
|
| 1309 |
+
dependencies = [
|
| 1310 |
+
"serde_core",
|
| 1311 |
+
]
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "toml_parser"
|
| 1315 |
+
version = "1.1.1+spec-1.1.0"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "39ca317ebc49f06bd748bfba29533eac9485569dc9bf80b849024b025e814fb9"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"winnow",
|
| 1320 |
+
]
|
| 1321 |
+
|
| 1322 |
+
[[package]]
|
| 1323 |
+
name = "toml_writer"
|
| 1324 |
+
version = "1.1.1+spec-1.1.0"
|
| 1325 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1326 |
+
checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
|
| 1327 |
+
|
| 1328 |
+
[[package]]
|
| 1329 |
+
name = "tower"
|
| 1330 |
+
version = "0.5.2"
|
| 1331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1332 |
+
checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
|
| 1333 |
+
dependencies = [
|
| 1334 |
+
"futures-core",
|
| 1335 |
+
"futures-util",
|
| 1336 |
+
"pin-project-lite",
|
| 1337 |
+
"sync_wrapper",
|
| 1338 |
+
"tokio",
|
| 1339 |
+
"tower-layer",
|
| 1340 |
+
"tower-service",
|
| 1341 |
+
]
|
| 1342 |
+
|
| 1343 |
+
[[package]]
|
| 1344 |
+
name = "tower-http"
|
| 1345 |
+
version = "0.6.6"
|
| 1346 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1347 |
+
checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
|
| 1348 |
+
dependencies = [
|
| 1349 |
+
"bitflags",
|
| 1350 |
+
"bytes",
|
| 1351 |
+
"futures-util",
|
| 1352 |
+
"http",
|
| 1353 |
+
"http-body",
|
| 1354 |
+
"iri-string",
|
| 1355 |
+
"pin-project-lite",
|
| 1356 |
+
"tower",
|
| 1357 |
+
"tower-layer",
|
| 1358 |
+
"tower-service",
|
| 1359 |
+
]
|
| 1360 |
+
|
| 1361 |
+
[[package]]
|
| 1362 |
+
name = "tower-layer"
|
| 1363 |
+
version = "0.3.3"
|
| 1364 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1365 |
+
checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
|
| 1366 |
+
|
| 1367 |
+
[[package]]
|
| 1368 |
+
name = "tower-service"
|
| 1369 |
+
version = "0.3.3"
|
| 1370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1371 |
+
checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
|
| 1372 |
+
|
| 1373 |
+
[[package]]
|
| 1374 |
+
name = "tracing"
|
| 1375 |
+
version = "0.1.41"
|
| 1376 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1377 |
+
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
|
| 1378 |
+
dependencies = [
|
| 1379 |
+
"pin-project-lite",
|
| 1380 |
+
"tracing-core",
|
| 1381 |
+
]
|
| 1382 |
+
|
| 1383 |
+
[[package]]
|
| 1384 |
+
name = "tracing-core"
|
| 1385 |
+
version = "0.1.34"
|
| 1386 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1387 |
+
checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"
|
| 1388 |
+
dependencies = [
|
| 1389 |
+
"once_cell",
|
| 1390 |
+
]
|
| 1391 |
+
|
| 1392 |
+
[[package]]
|
| 1393 |
+
name = "try-lock"
|
| 1394 |
+
version = "0.2.5"
|
| 1395 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1396 |
+
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
| 1397 |
+
|
| 1398 |
+
[[package]]
|
| 1399 |
+
name = "unicode-ident"
|
| 1400 |
+
version = "1.0.18"
|
| 1401 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1402 |
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
| 1403 |
+
|
| 1404 |
+
[[package]]
|
| 1405 |
+
name = "untrusted"
|
| 1406 |
+
version = "0.9.0"
|
| 1407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1408 |
+
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
| 1409 |
+
|
| 1410 |
+
[[package]]
|
| 1411 |
+
name = "unveil"
|
| 1412 |
+
version = "0.3.2"
|
| 1413 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1414 |
+
checksum = "5e7fa867d559102001ec694165ed17d5f82e95213060a65f9c8b6280084bbfec"
|
| 1415 |
+
dependencies = [
|
| 1416 |
+
"libc",
|
| 1417 |
+
]
|
| 1418 |
+
|
| 1419 |
+
[[package]]
|
| 1420 |
+
name = "url"
|
| 1421 |
+
version = "2.5.8"
|
| 1422 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1423 |
+
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
| 1424 |
+
dependencies = [
|
| 1425 |
+
"form_urlencoded",
|
| 1426 |
+
"idna",
|
| 1427 |
+
"percent-encoding",
|
| 1428 |
+
"serde",
|
| 1429 |
+
]
|
| 1430 |
+
|
| 1431 |
+
[[package]]
|
| 1432 |
+
name = "utf8_iter"
|
| 1433 |
+
version = "1.0.4"
|
| 1434 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1435 |
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
| 1436 |
+
|
| 1437 |
+
[[package]]
|
| 1438 |
+
name = "vaultwarden_ldap"
|
| 1439 |
+
version = "2.2.1"
|
| 1440 |
+
dependencies = [
|
| 1441 |
+
"anyhow",
|
| 1442 |
+
"envy",
|
| 1443 |
+
"ldap3",
|
| 1444 |
+
"pledge",
|
| 1445 |
+
"reqwest",
|
| 1446 |
+
"serde",
|
| 1447 |
+
"serde_json",
|
| 1448 |
+
"thiserror",
|
| 1449 |
+
"toml",
|
| 1450 |
+
"unveil",
|
| 1451 |
+
]
|
| 1452 |
+
|
| 1453 |
+
[[package]]
|
| 1454 |
+
name = "vcpkg"
|
| 1455 |
+
version = "0.2.15"
|
| 1456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1457 |
+
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
| 1458 |
+
|
| 1459 |
+
[[package]]
|
| 1460 |
+
name = "want"
|
| 1461 |
+
version = "0.3.1"
|
| 1462 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1463 |
+
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
|
| 1464 |
+
dependencies = [
|
| 1465 |
+
"try-lock",
|
| 1466 |
+
]
|
| 1467 |
+
|
| 1468 |
+
[[package]]
|
| 1469 |
+
name = "wasi"
|
| 1470 |
+
version = "0.11.1+wasi-snapshot-preview1"
|
| 1471 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1472 |
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
| 1473 |
+
|
| 1474 |
+
[[package]]
|
| 1475 |
+
name = "wasi"
|
| 1476 |
+
version = "0.14.2+wasi-0.2.4"
|
| 1477 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1478 |
+
checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
|
| 1479 |
+
dependencies = [
|
| 1480 |
+
"wit-bindgen-rt",
|
| 1481 |
+
]
|
| 1482 |
+
|
| 1483 |
+
[[package]]
|
| 1484 |
+
name = "wasm-bindgen"
|
| 1485 |
+
version = "0.2.100"
|
| 1486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1487 |
+
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
|
| 1488 |
+
dependencies = [
|
| 1489 |
+
"cfg-if",
|
| 1490 |
+
"once_cell",
|
| 1491 |
+
"rustversion",
|
| 1492 |
+
"wasm-bindgen-macro",
|
| 1493 |
+
]
|
| 1494 |
+
|
| 1495 |
+
[[package]]
|
| 1496 |
+
name = "wasm-bindgen-backend"
|
| 1497 |
+
version = "0.2.100"
|
| 1498 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1499 |
+
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
|
| 1500 |
+
dependencies = [
|
| 1501 |
+
"bumpalo",
|
| 1502 |
+
"log",
|
| 1503 |
+
"proc-macro2",
|
| 1504 |
+
"quote",
|
| 1505 |
+
"syn",
|
| 1506 |
+
"wasm-bindgen-shared",
|
| 1507 |
+
]
|
| 1508 |
+
|
| 1509 |
+
[[package]]
|
| 1510 |
+
name = "wasm-bindgen-futures"
|
| 1511 |
+
version = "0.4.50"
|
| 1512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1513 |
+
checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
|
| 1514 |
+
dependencies = [
|
| 1515 |
+
"cfg-if",
|
| 1516 |
+
"js-sys",
|
| 1517 |
+
"once_cell",
|
| 1518 |
+
"wasm-bindgen",
|
| 1519 |
+
"web-sys",
|
| 1520 |
+
]
|
| 1521 |
+
|
| 1522 |
+
[[package]]
|
| 1523 |
+
name = "wasm-bindgen-macro"
|
| 1524 |
+
version = "0.2.100"
|
| 1525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1526 |
+
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
|
| 1527 |
+
dependencies = [
|
| 1528 |
+
"quote",
|
| 1529 |
+
"wasm-bindgen-macro-support",
|
| 1530 |
+
]
|
| 1531 |
+
|
| 1532 |
+
[[package]]
|
| 1533 |
+
name = "wasm-bindgen-macro-support"
|
| 1534 |
+
version = "0.2.100"
|
| 1535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1536 |
+
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
|
| 1537 |
+
dependencies = [
|
| 1538 |
+
"proc-macro2",
|
| 1539 |
+
"quote",
|
| 1540 |
+
"syn",
|
| 1541 |
+
"wasm-bindgen-backend",
|
| 1542 |
+
"wasm-bindgen-shared",
|
| 1543 |
+
]
|
| 1544 |
+
|
| 1545 |
+
[[package]]
|
| 1546 |
+
name = "wasm-bindgen-shared"
|
| 1547 |
+
version = "0.2.100"
|
| 1548 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1549 |
+
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
|
| 1550 |
+
dependencies = [
|
| 1551 |
+
"unicode-ident",
|
| 1552 |
+
]
|
| 1553 |
+
|
| 1554 |
+
[[package]]
|
| 1555 |
+
name = "web-sys"
|
| 1556 |
+
version = "0.3.77"
|
| 1557 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1558 |
+
checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
|
| 1559 |
+
dependencies = [
|
| 1560 |
+
"js-sys",
|
| 1561 |
+
"wasm-bindgen",
|
| 1562 |
+
]
|
| 1563 |
+
|
| 1564 |
+
[[package]]
|
| 1565 |
+
name = "windows-link"
|
| 1566 |
+
version = "0.1.1"
|
| 1567 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1568 |
+
checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
|
| 1569 |
+
|
| 1570 |
+
[[package]]
|
| 1571 |
+
name = "windows-link"
|
| 1572 |
+
version = "0.2.1"
|
| 1573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1574 |
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
| 1575 |
+
|
| 1576 |
+
[[package]]
|
| 1577 |
+
name = "windows-registry"
|
| 1578 |
+
version = "0.5.2"
|
| 1579 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1580 |
+
checksum = "b3bab093bdd303a1240bb99b8aba8ea8a69ee19d34c9e2ef9594e708a4878820"
|
| 1581 |
+
dependencies = [
|
| 1582 |
+
"windows-link 0.1.1",
|
| 1583 |
+
"windows-result",
|
| 1584 |
+
"windows-strings",
|
| 1585 |
+
]
|
| 1586 |
+
|
| 1587 |
+
[[package]]
|
| 1588 |
+
name = "windows-result"
|
| 1589 |
+
version = "0.3.4"
|
| 1590 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1591 |
+
checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
|
| 1592 |
+
dependencies = [
|
| 1593 |
+
"windows-link 0.1.1",
|
| 1594 |
+
]
|
| 1595 |
+
|
| 1596 |
+
[[package]]
|
| 1597 |
+
name = "windows-strings"
|
| 1598 |
+
version = "0.4.2"
|
| 1599 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1600 |
+
checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
|
| 1601 |
+
dependencies = [
|
| 1602 |
+
"windows-link 0.1.1",
|
| 1603 |
+
]
|
| 1604 |
+
|
| 1605 |
+
[[package]]
|
| 1606 |
+
name = "windows-sys"
|
| 1607 |
+
version = "0.52.0"
|
| 1608 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1609 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 1610 |
+
dependencies = [
|
| 1611 |
+
"windows-targets 0.52.6",
|
| 1612 |
+
]
|
| 1613 |
+
|
| 1614 |
+
[[package]]
|
| 1615 |
+
name = "windows-sys"
|
| 1616 |
+
version = "0.59.0"
|
| 1617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1618 |
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
| 1619 |
+
dependencies = [
|
| 1620 |
+
"windows-targets 0.52.6",
|
| 1621 |
+
]
|
| 1622 |
+
|
| 1623 |
+
[[package]]
|
| 1624 |
+
name = "windows-sys"
|
| 1625 |
+
version = "0.60.2"
|
| 1626 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1627 |
+
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
|
| 1628 |
+
dependencies = [
|
| 1629 |
+
"windows-targets 0.53.5",
|
| 1630 |
+
]
|
| 1631 |
+
|
| 1632 |
+
[[package]]
|
| 1633 |
+
name = "windows-sys"
|
| 1634 |
+
version = "0.61.2"
|
| 1635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1636 |
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
| 1637 |
+
dependencies = [
|
| 1638 |
+
"windows-link 0.2.1",
|
| 1639 |
+
]
|
| 1640 |
+
|
| 1641 |
+
[[package]]
|
| 1642 |
+
name = "windows-targets"
|
| 1643 |
+
version = "0.52.6"
|
| 1644 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1645 |
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
| 1646 |
+
dependencies = [
|
| 1647 |
+
"windows_aarch64_gnullvm 0.52.6",
|
| 1648 |
+
"windows_aarch64_msvc 0.52.6",
|
| 1649 |
+
"windows_i686_gnu 0.52.6",
|
| 1650 |
+
"windows_i686_gnullvm 0.52.6",
|
| 1651 |
+
"windows_i686_msvc 0.52.6",
|
| 1652 |
+
"windows_x86_64_gnu 0.52.6",
|
| 1653 |
+
"windows_x86_64_gnullvm 0.52.6",
|
| 1654 |
+
"windows_x86_64_msvc 0.52.6",
|
| 1655 |
+
]
|
| 1656 |
+
|
| 1657 |
+
[[package]]
|
| 1658 |
+
name = "windows-targets"
|
| 1659 |
+
version = "0.53.5"
|
| 1660 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1661 |
+
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
|
| 1662 |
+
dependencies = [
|
| 1663 |
+
"windows-link 0.2.1",
|
| 1664 |
+
"windows_aarch64_gnullvm 0.53.1",
|
| 1665 |
+
"windows_aarch64_msvc 0.53.1",
|
| 1666 |
+
"windows_i686_gnu 0.53.1",
|
| 1667 |
+
"windows_i686_gnullvm 0.53.1",
|
| 1668 |
+
"windows_i686_msvc 0.53.1",
|
| 1669 |
+
"windows_x86_64_gnu 0.53.1",
|
| 1670 |
+
"windows_x86_64_gnullvm 0.53.1",
|
| 1671 |
+
"windows_x86_64_msvc 0.53.1",
|
| 1672 |
+
]
|
| 1673 |
+
|
| 1674 |
+
[[package]]
|
| 1675 |
+
name = "windows_aarch64_gnullvm"
|
| 1676 |
+
version = "0.52.6"
|
| 1677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1678 |
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
| 1679 |
+
|
| 1680 |
+
[[package]]
|
| 1681 |
+
name = "windows_aarch64_gnullvm"
|
| 1682 |
+
version = "0.53.1"
|
| 1683 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1684 |
+
checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
|
| 1685 |
+
|
| 1686 |
+
[[package]]
|
| 1687 |
+
name = "windows_aarch64_msvc"
|
| 1688 |
+
version = "0.52.6"
|
| 1689 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1690 |
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
| 1691 |
+
|
| 1692 |
+
[[package]]
|
| 1693 |
+
name = "windows_aarch64_msvc"
|
| 1694 |
+
version = "0.53.1"
|
| 1695 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1696 |
+
checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
|
| 1697 |
+
|
| 1698 |
+
[[package]]
|
| 1699 |
+
name = "windows_i686_gnu"
|
| 1700 |
+
version = "0.52.6"
|
| 1701 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1702 |
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
| 1703 |
+
|
| 1704 |
+
[[package]]
|
| 1705 |
+
name = "windows_i686_gnu"
|
| 1706 |
+
version = "0.53.1"
|
| 1707 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1708 |
+
checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
|
| 1709 |
+
|
| 1710 |
+
[[package]]
|
| 1711 |
+
name = "windows_i686_gnullvm"
|
| 1712 |
+
version = "0.52.6"
|
| 1713 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1714 |
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
| 1715 |
+
|
| 1716 |
+
[[package]]
|
| 1717 |
+
name = "windows_i686_gnullvm"
|
| 1718 |
+
version = "0.53.1"
|
| 1719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1720 |
+
checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
|
| 1721 |
+
|
| 1722 |
+
[[package]]
|
| 1723 |
+
name = "windows_i686_msvc"
|
| 1724 |
+
version = "0.52.6"
|
| 1725 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1726 |
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
| 1727 |
+
|
| 1728 |
+
[[package]]
|
| 1729 |
+
name = "windows_i686_msvc"
|
| 1730 |
+
version = "0.53.1"
|
| 1731 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1732 |
+
checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
|
| 1733 |
+
|
| 1734 |
+
[[package]]
|
| 1735 |
+
name = "windows_x86_64_gnu"
|
| 1736 |
+
version = "0.52.6"
|
| 1737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1738 |
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
| 1739 |
+
|
| 1740 |
+
[[package]]
|
| 1741 |
+
name = "windows_x86_64_gnu"
|
| 1742 |
+
version = "0.53.1"
|
| 1743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1744 |
+
checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
|
| 1745 |
+
|
| 1746 |
+
[[package]]
|
| 1747 |
+
name = "windows_x86_64_gnullvm"
|
| 1748 |
+
version = "0.52.6"
|
| 1749 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1750 |
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
| 1751 |
+
|
| 1752 |
+
[[package]]
|
| 1753 |
+
name = "windows_x86_64_gnullvm"
|
| 1754 |
+
version = "0.53.1"
|
| 1755 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1756 |
+
checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
|
| 1757 |
+
|
| 1758 |
+
[[package]]
|
| 1759 |
+
name = "windows_x86_64_msvc"
|
| 1760 |
+
version = "0.52.6"
|
| 1761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1762 |
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
| 1763 |
+
|
| 1764 |
+
[[package]]
|
| 1765 |
+
name = "windows_x86_64_msvc"
|
| 1766 |
+
version = "0.53.1"
|
| 1767 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1768 |
+
checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
|
| 1769 |
+
|
| 1770 |
+
[[package]]
|
| 1771 |
+
name = "winnow"
|
| 1772 |
+
version = "1.0.1"
|
| 1773 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1774 |
+
checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5"
|
| 1775 |
+
|
| 1776 |
+
[[package]]
|
| 1777 |
+
name = "wit-bindgen-rt"
|
| 1778 |
+
version = "0.39.0"
|
| 1779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1780 |
+
checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
|
| 1781 |
+
dependencies = [
|
| 1782 |
+
"bitflags",
|
| 1783 |
+
]
|
| 1784 |
+
|
| 1785 |
+
[[package]]
|
| 1786 |
+
name = "writeable"
|
| 1787 |
+
version = "0.6.1"
|
| 1788 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1789 |
+
checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
|
| 1790 |
+
|
| 1791 |
+
[[package]]
|
| 1792 |
+
name = "yoke"
|
| 1793 |
+
version = "0.8.0"
|
| 1794 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1795 |
+
checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc"
|
| 1796 |
+
dependencies = [
|
| 1797 |
+
"serde",
|
| 1798 |
+
"stable_deref_trait",
|
| 1799 |
+
"yoke-derive",
|
| 1800 |
+
"zerofrom",
|
| 1801 |
+
]
|
| 1802 |
+
|
| 1803 |
+
[[package]]
|
| 1804 |
+
name = "yoke-derive"
|
| 1805 |
+
version = "0.8.0"
|
| 1806 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1807 |
+
checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
|
| 1808 |
+
dependencies = [
|
| 1809 |
+
"proc-macro2",
|
| 1810 |
+
"quote",
|
| 1811 |
+
"syn",
|
| 1812 |
+
"synstructure",
|
| 1813 |
+
]
|
| 1814 |
+
|
| 1815 |
+
[[package]]
|
| 1816 |
+
name = "zerofrom"
|
| 1817 |
+
version = "0.1.6"
|
| 1818 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1819 |
+
checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
|
| 1820 |
+
dependencies = [
|
| 1821 |
+
"zerofrom-derive",
|
| 1822 |
+
]
|
| 1823 |
+
|
| 1824 |
+
[[package]]
|
| 1825 |
+
name = "zerofrom-derive"
|
| 1826 |
+
version = "0.1.6"
|
| 1827 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1828 |
+
checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
|
| 1829 |
+
dependencies = [
|
| 1830 |
+
"proc-macro2",
|
| 1831 |
+
"quote",
|
| 1832 |
+
"syn",
|
| 1833 |
+
"synstructure",
|
| 1834 |
+
]
|
| 1835 |
+
|
| 1836 |
+
[[package]]
|
| 1837 |
+
name = "zeroize"
|
| 1838 |
+
version = "1.8.1"
|
| 1839 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1840 |
+
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
| 1841 |
+
|
| 1842 |
+
[[package]]
|
| 1843 |
+
name = "zerotrie"
|
| 1844 |
+
version = "0.2.2"
|
| 1845 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1846 |
+
checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595"
|
| 1847 |
+
dependencies = [
|
| 1848 |
+
"displaydoc",
|
| 1849 |
+
"yoke",
|
| 1850 |
+
"zerofrom",
|
| 1851 |
+
]
|
| 1852 |
+
|
| 1853 |
+
[[package]]
|
| 1854 |
+
name = "zerovec"
|
| 1855 |
+
version = "0.11.2"
|
| 1856 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1857 |
+
checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428"
|
| 1858 |
+
dependencies = [
|
| 1859 |
+
"yoke",
|
| 1860 |
+
"zerofrom",
|
| 1861 |
+
"zerovec-derive",
|
| 1862 |
+
]
|
| 1863 |
+
|
| 1864 |
+
[[package]]
|
| 1865 |
+
name = "zerovec-derive"
|
| 1866 |
+
version = "0.11.1"
|
| 1867 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1868 |
+
checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
|
| 1869 |
+
dependencies = [
|
| 1870 |
+
"proc-macro2",
|
| 1871 |
+
"quote",
|
| 1872 |
+
"syn",
|
| 1873 |
+
]
|
| 1874 |
+
|
| 1875 |
+
[[package]]
|
| 1876 |
+
name = "zmij"
|
| 1877 |
+
version = "1.0.21"
|
| 1878 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1879 |
+
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
| 1880 |
+
|
| 1881 |
+
LOCK_EOF
|
| 1882 |
+
|
| 1883 |
+
# Prefetch the exact locked dependency set against the generated manifest.
|
| 1884 |
+
# The --manifest-path flag keeps cargo out of /source_ro and the repo root.
|
| 1885 |
+
if ! cargo fetch --locked --manifest-path "$pb_manifest"; then
|
| 1886 |
+
pb_fail "dependency prefetch against the generated manifest failed"
|
| 1887 |
+
fi
|
| 1888 |
+
|
| 1889 |
+
echo "All Cargo dependencies fetched into $CARGO_HOME"
|
vividboarder--vaultwarden_ldap.7bf91f3/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a89a590080809176ab6549796152baf94115adee283be297a913e8fa3fe94d99
|
| 3 |
+
size 5431016
|
vividboarder--vaultwarden_ldap.7bf91f3/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
|
vividboarder--vaultwarden_ldap.7bf91f3/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f41f4819962b4296d36304c2d6932cb0a21917b1f65707160d2da689b9cb6466
|
| 3 |
+
size 2852
|
vividboarder--vaultwarden_ldap.7bf91f3/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
|
vividboarder--vaultwarden_ldap.7bf91f3/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
|
vividboarder--vaultwarden_ldap.7bf91f3/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/vividboarder--vaultwarden_ldap.7bf91f3"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for ViViDboarder/vaultwarden_ldap"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "ViViDboarder__vaultwarden_ldap.7bf91f3"
|
| 32 |
+
repository = "ViViDboarder/vaultwarden_ldap"
|
| 33 |
+
commit = "7bf91f3ec42708717a8bcc26d70fa39da5cbff23"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.8217099972983761
|
| 37 |
+
test_branches = 3
|
| 38 |
+
test_count = 268
|
| 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"
|
vividboarder--vaultwarden_ldap.7bf91f3/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"]
|
vividboarder--vaultwarden_ldap.7bf91f3/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:5b6d91aba4359d1c436923097abbbc484481fed9681eb8fd2e50db1f7493974f
|
| 3 |
+
size 22456
|
vividboarder--vaultwarden_ldap.7bf91f3/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:34f6a3f78c768c40091cd0ae2fd52c4f2fa562d0d0f79bee76170df2263704dc
|
| 3 |
+
size 21189
|
vividboarder--vaultwarden_ldap.7bf91f3/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:8279565fc34f2328571c00b8de328c4307b34ed5fa1a3a859c6b279288e16797
|
| 3 |
+
size 25266
|
vividboarder--vaultwarden_ldap.7bf91f3/tests/download.sh
ADDED
|
@@ -0,0 +1,1889 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# ProgramGym download.sh for ViViDboarder/vaultwarden_ldap.
|
| 3 |
+
# Standalone dependency prefetch, invoked via: `source /source_ro/download.sh`.
|
| 4 |
+
# Self-contained: does NOT read any repository source file at runtime. It
|
| 5 |
+
# generates a temporary Cargo manifest + lockfile from inline data and
|
| 6 |
+
# prefetches the exact locked dependency set. It performs no compile step.
|
| 7 |
+
|
| 8 |
+
# Fail helper: return 1 in source mode, else exit 1.
|
| 9 |
+
pb_fail() {
|
| 10 |
+
echo "ERROR: $*" >&2
|
| 11 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 12 |
+
return 1
|
| 13 |
+
else
|
| 14 |
+
exit 1
|
| 15 |
+
fi
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
# Persistent cargo home; build.sh reuses this same cache offline.
|
| 19 |
+
export CARGO_HOME="${CARGO_HOME:-/usr/local/cargo}"
|
| 20 |
+
|
| 21 |
+
# Writable scratch dir for the generated manifest/lock (source mount is read-only).
|
| 22 |
+
PB_FETCH_DIR="${PB_FETCH_DIR:-/tmp/programgym_fetch}"
|
| 23 |
+
|
| 24 |
+
if ! mkdir -p "$PB_FETCH_DIR/src"; then
|
| 25 |
+
pb_fail "could not create fetch directory: $PB_FETCH_DIR"
|
| 26 |
+
fi
|
| 27 |
+
|
| 28 |
+
pb_manifest="$PB_FETCH_DIR/Cargo.toml"
|
| 29 |
+
pb_lock="$PB_FETCH_DIR/Cargo.lock"
|
| 30 |
+
|
| 31 |
+
# Stub source for the generated bin target (cargo requires a buildable target).
|
| 32 |
+
printf "fn main() {}\\n" > "$PB_FETCH_DIR/src/main.rs"
|
| 33 |
+
|
| 34 |
+
# Cargo.toml generated from inline data; name/version/deps mirror the repository
|
| 35 |
+
# manifest so it is consistent with the locked dependency set below.
|
| 36 |
+
cat > "$pb_manifest" <<'MANIFEST_EOF'
|
| 37 |
+
[package]
|
| 38 |
+
name = "vaultwarden_ldap"
|
| 39 |
+
version = "2.2.1"
|
| 40 |
+
edition = "2018"
|
| 41 |
+
|
| 42 |
+
[dependencies]
|
| 43 |
+
ldap3 = "0.12"
|
| 44 |
+
serde = { version = "1.0", features = ["derive"] }
|
| 45 |
+
toml = "1.1"
|
| 46 |
+
reqwest = { version = "0.12", features = ["json", "blocking"] }
|
| 47 |
+
serde_json = "1.0"
|
| 48 |
+
thiserror = "2.0"
|
| 49 |
+
anyhow = "1.0"
|
| 50 |
+
envy = "0.4.1"
|
| 51 |
+
pledge = "0.4.2"
|
| 52 |
+
unveil = "0.3.2"
|
| 53 |
+
|
| 54 |
+
MANIFEST_EOF
|
| 55 |
+
|
| 56 |
+
# Cargo.lock (version = 4) embedded verbatim from the repository so the prefetch
|
| 57 |
+
# downloads precisely what the offline --locked build requires.
|
| 58 |
+
cat > "$pb_lock" <<'LOCK_EOF'
|
| 59 |
+
# This file is automatically @generated by Cargo.
|
| 60 |
+
# It is not intended for manual editing.
|
| 61 |
+
version = 4
|
| 62 |
+
|
| 63 |
+
[[package]]
|
| 64 |
+
name = "anyhow"
|
| 65 |
+
version = "1.0.102"
|
| 66 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 67 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 68 |
+
|
| 69 |
+
[[package]]
|
| 70 |
+
name = "async-trait"
|
| 71 |
+
version = "0.1.89"
|
| 72 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 73 |
+
checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
|
| 74 |
+
dependencies = [
|
| 75 |
+
"proc-macro2",
|
| 76 |
+
"quote",
|
| 77 |
+
"syn",
|
| 78 |
+
]
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "atomic-waker"
|
| 82 |
+
version = "1.1.2"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
|
| 85 |
+
|
| 86 |
+
[[package]]
|
| 87 |
+
name = "autocfg"
|
| 88 |
+
version = "1.4.0"
|
| 89 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 90 |
+
checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
|
| 91 |
+
|
| 92 |
+
[[package]]
|
| 93 |
+
name = "base64"
|
| 94 |
+
version = "0.22.1"
|
| 95 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 96 |
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
| 97 |
+
|
| 98 |
+
[[package]]
|
| 99 |
+
name = "bitflags"
|
| 100 |
+
version = "2.9.1"
|
| 101 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 102 |
+
checksum = "1b8e56985ec62d17e9c1001dc89c88ecd7dc08e47eba5ec7c29c7b5eeecde967"
|
| 103 |
+
|
| 104 |
+
[[package]]
|
| 105 |
+
name = "bumpalo"
|
| 106 |
+
version = "3.18.1"
|
| 107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 108 |
+
checksum = "793db76d6187cd04dff33004d8e6c9cc4e05cd330500379d2394209271b4aeee"
|
| 109 |
+
|
| 110 |
+
[[package]]
|
| 111 |
+
name = "bytes"
|
| 112 |
+
version = "1.11.1"
|
| 113 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 114 |
+
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
| 115 |
+
|
| 116 |
+
[[package]]
|
| 117 |
+
name = "cc"
|
| 118 |
+
version = "1.2.26"
|
| 119 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 120 |
+
checksum = "956a5e21988b87f372569b66183b78babf23ebc2e744b733e4350a752c4dafac"
|
| 121 |
+
dependencies = [
|
| 122 |
+
"shlex",
|
| 123 |
+
]
|
| 124 |
+
|
| 125 |
+
[[package]]
|
| 126 |
+
name = "cfg-if"
|
| 127 |
+
version = "1.0.1"
|
| 128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 129 |
+
checksum = "9555578bc9e57714c812a1f84e4fc5b4d21fcb063490c624de019f7464c91268"
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "core-foundation"
|
| 133 |
+
version = "0.9.4"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"core-foundation-sys",
|
| 138 |
+
"libc",
|
| 139 |
+
]
|
| 140 |
+
|
| 141 |
+
[[package]]
|
| 142 |
+
name = "core-foundation-sys"
|
| 143 |
+
version = "0.8.7"
|
| 144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 145 |
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
| 146 |
+
|
| 147 |
+
[[package]]
|
| 148 |
+
name = "displaydoc"
|
| 149 |
+
version = "0.2.5"
|
| 150 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 151 |
+
checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
|
| 152 |
+
dependencies = [
|
| 153 |
+
"proc-macro2",
|
| 154 |
+
"quote",
|
| 155 |
+
"syn",
|
| 156 |
+
]
|
| 157 |
+
|
| 158 |
+
[[package]]
|
| 159 |
+
name = "encoding_rs"
|
| 160 |
+
version = "0.8.35"
|
| 161 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 162 |
+
checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
|
| 163 |
+
dependencies = [
|
| 164 |
+
"cfg-if",
|
| 165 |
+
]
|
| 166 |
+
|
| 167 |
+
[[package]]
|
| 168 |
+
name = "envy"
|
| 169 |
+
version = "0.4.2"
|
| 170 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 171 |
+
checksum = "3f47e0157f2cb54f5ae1bd371b30a2ae4311e1c028f575cd4e81de7353215965"
|
| 172 |
+
dependencies = [
|
| 173 |
+
"serde",
|
| 174 |
+
]
|
| 175 |
+
|
| 176 |
+
[[package]]
|
| 177 |
+
name = "equivalent"
|
| 178 |
+
version = "1.0.2"
|
| 179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 180 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "errno"
|
| 184 |
+
version = "0.3.12"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "cea14ef9355e3beab063703aa9dab15afd25f0667c341310c1e5274bb1d0da18"
|
| 187 |
+
dependencies = [
|
| 188 |
+
"libc",
|
| 189 |
+
"windows-sys 0.59.0",
|
| 190 |
+
]
|
| 191 |
+
|
| 192 |
+
[[package]]
|
| 193 |
+
name = "fastrand"
|
| 194 |
+
version = "2.3.0"
|
| 195 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 196 |
+
checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
|
| 197 |
+
|
| 198 |
+
[[package]]
|
| 199 |
+
name = "fnv"
|
| 200 |
+
version = "1.0.7"
|
| 201 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 202 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 203 |
+
|
| 204 |
+
[[package]]
|
| 205 |
+
name = "foreign-types"
|
| 206 |
+
version = "0.3.2"
|
| 207 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 208 |
+
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
| 209 |
+
dependencies = [
|
| 210 |
+
"foreign-types-shared",
|
| 211 |
+
]
|
| 212 |
+
|
| 213 |
+
[[package]]
|
| 214 |
+
name = "foreign-types-shared"
|
| 215 |
+
version = "0.1.1"
|
| 216 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 217 |
+
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
| 218 |
+
|
| 219 |
+
[[package]]
|
| 220 |
+
name = "form_urlencoded"
|
| 221 |
+
version = "1.2.2"
|
| 222 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 223 |
+
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
| 224 |
+
dependencies = [
|
| 225 |
+
"percent-encoding",
|
| 226 |
+
]
|
| 227 |
+
|
| 228 |
+
[[package]]
|
| 229 |
+
name = "futures"
|
| 230 |
+
version = "0.3.31"
|
| 231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 232 |
+
checksum = "65bc07b1a8bc7c85c5f2e110c476c7389b4554ba72af57d8445ea63a576b0876"
|
| 233 |
+
dependencies = [
|
| 234 |
+
"futures-channel",
|
| 235 |
+
"futures-core",
|
| 236 |
+
"futures-executor",
|
| 237 |
+
"futures-io",
|
| 238 |
+
"futures-sink",
|
| 239 |
+
"futures-task",
|
| 240 |
+
"futures-util",
|
| 241 |
+
]
|
| 242 |
+
|
| 243 |
+
[[package]]
|
| 244 |
+
name = "futures-channel"
|
| 245 |
+
version = "0.3.31"
|
| 246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 247 |
+
checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
|
| 248 |
+
dependencies = [
|
| 249 |
+
"futures-core",
|
| 250 |
+
"futures-sink",
|
| 251 |
+
]
|
| 252 |
+
|
| 253 |
+
[[package]]
|
| 254 |
+
name = "futures-core"
|
| 255 |
+
version = "0.3.31"
|
| 256 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 257 |
+
checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
|
| 258 |
+
|
| 259 |
+
[[package]]
|
| 260 |
+
name = "futures-executor"
|
| 261 |
+
version = "0.3.31"
|
| 262 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 263 |
+
checksum = "1e28d1d997f585e54aebc3f97d39e72338912123a67330d723fdbb564d646c9f"
|
| 264 |
+
dependencies = [
|
| 265 |
+
"futures-core",
|
| 266 |
+
"futures-task",
|
| 267 |
+
"futures-util",
|
| 268 |
+
]
|
| 269 |
+
|
| 270 |
+
[[package]]
|
| 271 |
+
name = "futures-io"
|
| 272 |
+
version = "0.3.31"
|
| 273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 274 |
+
checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
|
| 275 |
+
|
| 276 |
+
[[package]]
|
| 277 |
+
name = "futures-macro"
|
| 278 |
+
version = "0.3.31"
|
| 279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 280 |
+
checksum = "162ee34ebcb7c64a8abebc059ce0fee27c2262618d7b60ed8faf72fef13c3650"
|
| 281 |
+
dependencies = [
|
| 282 |
+
"proc-macro2",
|
| 283 |
+
"quote",
|
| 284 |
+
"syn",
|
| 285 |
+
]
|
| 286 |
+
|
| 287 |
+
[[package]]
|
| 288 |
+
name = "futures-sink"
|
| 289 |
+
version = "0.3.31"
|
| 290 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 291 |
+
checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
|
| 292 |
+
|
| 293 |
+
[[package]]
|
| 294 |
+
name = "futures-task"
|
| 295 |
+
version = "0.3.31"
|
| 296 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 297 |
+
checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
|
| 298 |
+
|
| 299 |
+
[[package]]
|
| 300 |
+
name = "futures-util"
|
| 301 |
+
version = "0.3.31"
|
| 302 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 303 |
+
checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
|
| 304 |
+
dependencies = [
|
| 305 |
+
"futures-channel",
|
| 306 |
+
"futures-core",
|
| 307 |
+
"futures-io",
|
| 308 |
+
"futures-macro",
|
| 309 |
+
"futures-sink",
|
| 310 |
+
"futures-task",
|
| 311 |
+
"memchr",
|
| 312 |
+
"pin-project-lite",
|
| 313 |
+
"pin-utils",
|
| 314 |
+
"slab",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "getrandom"
|
| 319 |
+
version = "0.2.16"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "335ff9f135e4384c8150d6f27c6daed433577f86b4750418338c01a1a2528592"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"cfg-if",
|
| 324 |
+
"libc",
|
| 325 |
+
"wasi 0.11.1+wasi-snapshot-preview1",
|
| 326 |
+
]
|
| 327 |
+
|
| 328 |
+
[[package]]
|
| 329 |
+
name = "getrandom"
|
| 330 |
+
version = "0.3.3"
|
| 331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 332 |
+
checksum = "26145e563e54f2cadc477553f1ec5ee650b00862f0a58bcd12cbdc5f0ea2d2f4"
|
| 333 |
+
dependencies = [
|
| 334 |
+
"cfg-if",
|
| 335 |
+
"libc",
|
| 336 |
+
"r-efi",
|
| 337 |
+
"wasi 0.14.2+wasi-0.2.4",
|
| 338 |
+
]
|
| 339 |
+
|
| 340 |
+
[[package]]
|
| 341 |
+
name = "h2"
|
| 342 |
+
version = "0.4.10"
|
| 343 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 344 |
+
checksum = "a9421a676d1b147b16b82c9225157dc629087ef8ec4d5e2960f9437a90dac0a5"
|
| 345 |
+
dependencies = [
|
| 346 |
+
"atomic-waker",
|
| 347 |
+
"bytes",
|
| 348 |
+
"fnv",
|
| 349 |
+
"futures-core",
|
| 350 |
+
"futures-sink",
|
| 351 |
+
"http",
|
| 352 |
+
"indexmap",
|
| 353 |
+
"slab",
|
| 354 |
+
"tokio",
|
| 355 |
+
"tokio-util",
|
| 356 |
+
"tracing",
|
| 357 |
+
]
|
| 358 |
+
|
| 359 |
+
[[package]]
|
| 360 |
+
name = "hashbrown"
|
| 361 |
+
version = "0.16.1"
|
| 362 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 363 |
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
| 364 |
+
|
| 365 |
+
[[package]]
|
| 366 |
+
name = "http"
|
| 367 |
+
version = "1.3.1"
|
| 368 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 369 |
+
checksum = "f4a85d31aea989eead29a3aaf9e1115a180df8282431156e533de47660892565"
|
| 370 |
+
dependencies = [
|
| 371 |
+
"bytes",
|
| 372 |
+
"fnv",
|
| 373 |
+
"itoa",
|
| 374 |
+
]
|
| 375 |
+
|
| 376 |
+
[[package]]
|
| 377 |
+
name = "http-body"
|
| 378 |
+
version = "1.0.1"
|
| 379 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 380 |
+
checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
|
| 381 |
+
dependencies = [
|
| 382 |
+
"bytes",
|
| 383 |
+
"http",
|
| 384 |
+
]
|
| 385 |
+
|
| 386 |
+
[[package]]
|
| 387 |
+
name = "http-body-util"
|
| 388 |
+
version = "0.1.3"
|
| 389 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 390 |
+
checksum = "b021d93e26becf5dc7e1b75b1bed1fd93124b374ceb73f43d4d4eafec896a64a"
|
| 391 |
+
dependencies = [
|
| 392 |
+
"bytes",
|
| 393 |
+
"futures-core",
|
| 394 |
+
"http",
|
| 395 |
+
"http-body",
|
| 396 |
+
"pin-project-lite",
|
| 397 |
+
]
|
| 398 |
+
|
| 399 |
+
[[package]]
|
| 400 |
+
name = "httparse"
|
| 401 |
+
version = "1.10.1"
|
| 402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 403 |
+
checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
|
| 404 |
+
|
| 405 |
+
[[package]]
|
| 406 |
+
name = "hyper"
|
| 407 |
+
version = "1.6.0"
|
| 408 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 409 |
+
checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
|
| 410 |
+
dependencies = [
|
| 411 |
+
"bytes",
|
| 412 |
+
"futures-channel",
|
| 413 |
+
"futures-util",
|
| 414 |
+
"h2",
|
| 415 |
+
"http",
|
| 416 |
+
"http-body",
|
| 417 |
+
"httparse",
|
| 418 |
+
"itoa",
|
| 419 |
+
"pin-project-lite",
|
| 420 |
+
"smallvec",
|
| 421 |
+
"tokio",
|
| 422 |
+
"want",
|
| 423 |
+
]
|
| 424 |
+
|
| 425 |
+
[[package]]
|
| 426 |
+
name = "hyper-rustls"
|
| 427 |
+
version = "0.27.7"
|
| 428 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 429 |
+
checksum = "e3c93eb611681b207e1fe55d5a71ecf91572ec8a6705cdb6857f7d8d5242cf58"
|
| 430 |
+
dependencies = [
|
| 431 |
+
"http",
|
| 432 |
+
"hyper",
|
| 433 |
+
"hyper-util",
|
| 434 |
+
"rustls",
|
| 435 |
+
"rustls-pki-types",
|
| 436 |
+
"tokio",
|
| 437 |
+
"tokio-rustls",
|
| 438 |
+
"tower-service",
|
| 439 |
+
]
|
| 440 |
+
|
| 441 |
+
[[package]]
|
| 442 |
+
name = "hyper-tls"
|
| 443 |
+
version = "0.6.0"
|
| 444 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 445 |
+
checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
|
| 446 |
+
dependencies = [
|
| 447 |
+
"bytes",
|
| 448 |
+
"http-body-util",
|
| 449 |
+
"hyper",
|
| 450 |
+
"hyper-util",
|
| 451 |
+
"native-tls",
|
| 452 |
+
"tokio",
|
| 453 |
+
"tokio-native-tls",
|
| 454 |
+
"tower-service",
|
| 455 |
+
]
|
| 456 |
+
|
| 457 |
+
[[package]]
|
| 458 |
+
name = "hyper-util"
|
| 459 |
+
version = "0.1.14"
|
| 460 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 461 |
+
checksum = "dc2fdfdbff08affe55bb779f33b053aa1fe5dd5b54c257343c17edfa55711bdb"
|
| 462 |
+
dependencies = [
|
| 463 |
+
"base64",
|
| 464 |
+
"bytes",
|
| 465 |
+
"futures-channel",
|
| 466 |
+
"futures-core",
|
| 467 |
+
"futures-util",
|
| 468 |
+
"http",
|
| 469 |
+
"http-body",
|
| 470 |
+
"hyper",
|
| 471 |
+
"ipnet",
|
| 472 |
+
"libc",
|
| 473 |
+
"percent-encoding",
|
| 474 |
+
"pin-project-lite",
|
| 475 |
+
"socket2 0.5.10",
|
| 476 |
+
"system-configuration",
|
| 477 |
+
"tokio",
|
| 478 |
+
"tower-service",
|
| 479 |
+
"tracing",
|
| 480 |
+
"windows-registry",
|
| 481 |
+
]
|
| 482 |
+
|
| 483 |
+
[[package]]
|
| 484 |
+
name = "icu_collections"
|
| 485 |
+
version = "2.0.0"
|
| 486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 487 |
+
checksum = "200072f5d0e3614556f94a9930d5dc3e0662a652823904c3a75dc3b0af7fee47"
|
| 488 |
+
dependencies = [
|
| 489 |
+
"displaydoc",
|
| 490 |
+
"potential_utf",
|
| 491 |
+
"yoke",
|
| 492 |
+
"zerofrom",
|
| 493 |
+
"zerovec",
|
| 494 |
+
]
|
| 495 |
+
|
| 496 |
+
[[package]]
|
| 497 |
+
name = "icu_locale_core"
|
| 498 |
+
version = "2.0.0"
|
| 499 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 500 |
+
checksum = "0cde2700ccaed3872079a65fb1a78f6c0a36c91570f28755dda67bc8f7d9f00a"
|
| 501 |
+
dependencies = [
|
| 502 |
+
"displaydoc",
|
| 503 |
+
"litemap",
|
| 504 |
+
"tinystr",
|
| 505 |
+
"writeable",
|
| 506 |
+
"zerovec",
|
| 507 |
+
]
|
| 508 |
+
|
| 509 |
+
[[package]]
|
| 510 |
+
name = "icu_normalizer"
|
| 511 |
+
version = "2.0.0"
|
| 512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 513 |
+
checksum = "436880e8e18df4d7bbc06d58432329d6458cc84531f7ac5f024e93deadb37979"
|
| 514 |
+
dependencies = [
|
| 515 |
+
"displaydoc",
|
| 516 |
+
"icu_collections",
|
| 517 |
+
"icu_normalizer_data",
|
| 518 |
+
"icu_properties",
|
| 519 |
+
"icu_provider",
|
| 520 |
+
"smallvec",
|
| 521 |
+
"zerovec",
|
| 522 |
+
]
|
| 523 |
+
|
| 524 |
+
[[package]]
|
| 525 |
+
name = "icu_normalizer_data"
|
| 526 |
+
version = "2.0.0"
|
| 527 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 528 |
+
checksum = "00210d6893afc98edb752b664b8890f0ef174c8adbb8d0be9710fa66fbbf72d3"
|
| 529 |
+
|
| 530 |
+
[[package]]
|
| 531 |
+
name = "icu_properties"
|
| 532 |
+
version = "2.0.1"
|
| 533 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 534 |
+
checksum = "016c619c1eeb94efb86809b015c58f479963de65bdb6253345c1a1276f22e32b"
|
| 535 |
+
dependencies = [
|
| 536 |
+
"displaydoc",
|
| 537 |
+
"icu_collections",
|
| 538 |
+
"icu_locale_core",
|
| 539 |
+
"icu_properties_data",
|
| 540 |
+
"icu_provider",
|
| 541 |
+
"potential_utf",
|
| 542 |
+
"zerotrie",
|
| 543 |
+
"zerovec",
|
| 544 |
+
]
|
| 545 |
+
|
| 546 |
+
[[package]]
|
| 547 |
+
name = "icu_properties_data"
|
| 548 |
+
version = "2.0.1"
|
| 549 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 550 |
+
checksum = "298459143998310acd25ffe6810ed544932242d3f07083eee1084d83a71bd632"
|
| 551 |
+
|
| 552 |
+
[[package]]
|
| 553 |
+
name = "icu_provider"
|
| 554 |
+
version = "2.0.0"
|
| 555 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 556 |
+
checksum = "03c80da27b5f4187909049ee2d72f276f0d9f99a42c306bd0131ecfe04d8e5af"
|
| 557 |
+
dependencies = [
|
| 558 |
+
"displaydoc",
|
| 559 |
+
"icu_locale_core",
|
| 560 |
+
"stable_deref_trait",
|
| 561 |
+
"tinystr",
|
| 562 |
+
"writeable",
|
| 563 |
+
"yoke",
|
| 564 |
+
"zerofrom",
|
| 565 |
+
"zerotrie",
|
| 566 |
+
"zerovec",
|
| 567 |
+
]
|
| 568 |
+
|
| 569 |
+
[[package]]
|
| 570 |
+
name = "idna"
|
| 571 |
+
version = "1.1.0"
|
| 572 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 573 |
+
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
|
| 574 |
+
dependencies = [
|
| 575 |
+
"idna_adapter",
|
| 576 |
+
"smallvec",
|
| 577 |
+
"utf8_iter",
|
| 578 |
+
]
|
| 579 |
+
|
| 580 |
+
[[package]]
|
| 581 |
+
name = "idna_adapter"
|
| 582 |
+
version = "1.2.1"
|
| 583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 584 |
+
checksum = "3acae9609540aa318d1bc588455225fb2085b9ed0c4f6bd0d9d5bcd86f1a0344"
|
| 585 |
+
dependencies = [
|
| 586 |
+
"icu_normalizer",
|
| 587 |
+
"icu_properties",
|
| 588 |
+
]
|
| 589 |
+
|
| 590 |
+
[[package]]
|
| 591 |
+
name = "indexmap"
|
| 592 |
+
version = "2.13.0"
|
| 593 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 594 |
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
| 595 |
+
dependencies = [
|
| 596 |
+
"equivalent",
|
| 597 |
+
"hashbrown",
|
| 598 |
+
]
|
| 599 |
+
|
| 600 |
+
[[package]]
|
| 601 |
+
name = "ipnet"
|
| 602 |
+
version = "2.11.0"
|
| 603 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 604 |
+
checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
|
| 605 |
+
|
| 606 |
+
[[package]]
|
| 607 |
+
name = "iri-string"
|
| 608 |
+
version = "0.7.8"
|
| 609 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 610 |
+
checksum = "dbc5ebe9c3a1a7a5127f920a418f7585e9e758e911d0466ed004f393b0e380b2"
|
| 611 |
+
dependencies = [
|
| 612 |
+
"memchr",
|
| 613 |
+
"serde",
|
| 614 |
+
]
|
| 615 |
+
|
| 616 |
+
[[package]]
|
| 617 |
+
name = "itoa"
|
| 618 |
+
version = "1.0.15"
|
| 619 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 620 |
+
checksum = "4a5f13b858c8d314ee3e8f639011f7ccefe71f97f96e50151fb991f267928e2c"
|
| 621 |
+
|
| 622 |
+
[[package]]
|
| 623 |
+
name = "js-sys"
|
| 624 |
+
version = "0.3.77"
|
| 625 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 626 |
+
checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
|
| 627 |
+
dependencies = [
|
| 628 |
+
"once_cell",
|
| 629 |
+
"wasm-bindgen",
|
| 630 |
+
]
|
| 631 |
+
|
| 632 |
+
[[package]]
|
| 633 |
+
name = "lber"
|
| 634 |
+
version = "0.5.1"
|
| 635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 636 |
+
checksum = "cbcf559624bfd9fe8d488329a8959766335a43a9b8b2cdd6a2c379fca02909a5"
|
| 637 |
+
dependencies = [
|
| 638 |
+
"bytes",
|
| 639 |
+
"nom",
|
| 640 |
+
]
|
| 641 |
+
|
| 642 |
+
[[package]]
|
| 643 |
+
name = "ldap3"
|
| 644 |
+
version = "0.12.1"
|
| 645 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 646 |
+
checksum = "01fe89f5e7cfb7e4701e3a38ff9f00358e026a9aee940355d88ee9d81e5c7503"
|
| 647 |
+
dependencies = [
|
| 648 |
+
"async-trait",
|
| 649 |
+
"bytes",
|
| 650 |
+
"futures",
|
| 651 |
+
"futures-util",
|
| 652 |
+
"lber",
|
| 653 |
+
"log",
|
| 654 |
+
"native-tls",
|
| 655 |
+
"nom",
|
| 656 |
+
"percent-encoding",
|
| 657 |
+
"thiserror",
|
| 658 |
+
"tokio",
|
| 659 |
+
"tokio-native-tls",
|
| 660 |
+
"tokio-stream",
|
| 661 |
+
"tokio-util",
|
| 662 |
+
"url",
|
| 663 |
+
]
|
| 664 |
+
|
| 665 |
+
[[package]]
|
| 666 |
+
name = "libc"
|
| 667 |
+
version = "0.2.172"
|
| 668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 669 |
+
checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa"
|
| 670 |
+
|
| 671 |
+
[[package]]
|
| 672 |
+
name = "linux-raw-sys"
|
| 673 |
+
version = "0.9.4"
|
| 674 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 675 |
+
checksum = "cd945864f07fe9f5371a27ad7b52a172b4b499999f1d97574c9fa68373937e12"
|
| 676 |
+
|
| 677 |
+
[[package]]
|
| 678 |
+
name = "litemap"
|
| 679 |
+
version = "0.8.0"
|
| 680 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 681 |
+
checksum = "241eaef5fd12c88705a01fc1066c48c4b36e0dd4377dcdc7ec3942cea7a69956"
|
| 682 |
+
|
| 683 |
+
[[package]]
|
| 684 |
+
name = "log"
|
| 685 |
+
version = "0.4.29"
|
| 686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 687 |
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
| 688 |
+
|
| 689 |
+
[[package]]
|
| 690 |
+
name = "memchr"
|
| 691 |
+
version = "2.7.4"
|
| 692 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 693 |
+
checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
|
| 694 |
+
|
| 695 |
+
[[package]]
|
| 696 |
+
name = "mime"
|
| 697 |
+
version = "0.3.17"
|
| 698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 699 |
+
checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
|
| 700 |
+
|
| 701 |
+
[[package]]
|
| 702 |
+
name = "minimal-lexical"
|
| 703 |
+
version = "0.2.1"
|
| 704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 705 |
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
| 706 |
+
|
| 707 |
+
[[package]]
|
| 708 |
+
name = "mio"
|
| 709 |
+
version = "1.0.4"
|
| 710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 711 |
+
checksum = "78bed444cc8a2160f01cbcf811ef18cac863ad68ae8ca62092e8db51d51c761c"
|
| 712 |
+
dependencies = [
|
| 713 |
+
"libc",
|
| 714 |
+
"wasi 0.11.1+wasi-snapshot-preview1",
|
| 715 |
+
"windows-sys 0.59.0",
|
| 716 |
+
]
|
| 717 |
+
|
| 718 |
+
[[package]]
|
| 719 |
+
name = "native-tls"
|
| 720 |
+
version = "0.2.14"
|
| 721 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 722 |
+
checksum = "87de3442987e9dbec73158d5c715e7ad9072fda936bb03d19d7fa10e00520f0e"
|
| 723 |
+
dependencies = [
|
| 724 |
+
"libc",
|
| 725 |
+
"log",
|
| 726 |
+
"openssl",
|
| 727 |
+
"openssl-probe",
|
| 728 |
+
"openssl-sys",
|
| 729 |
+
"schannel",
|
| 730 |
+
"security-framework",
|
| 731 |
+
"security-framework-sys",
|
| 732 |
+
"tempfile",
|
| 733 |
+
]
|
| 734 |
+
|
| 735 |
+
[[package]]
|
| 736 |
+
name = "nom"
|
| 737 |
+
version = "7.1.3"
|
| 738 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 739 |
+
checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
|
| 740 |
+
dependencies = [
|
| 741 |
+
"memchr",
|
| 742 |
+
"minimal-lexical",
|
| 743 |
+
]
|
| 744 |
+
|
| 745 |
+
[[package]]
|
| 746 |
+
name = "once_cell"
|
| 747 |
+
version = "1.21.3"
|
| 748 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 749 |
+
checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d"
|
| 750 |
+
|
| 751 |
+
[[package]]
|
| 752 |
+
name = "openssl"
|
| 753 |
+
version = "0.10.73"
|
| 754 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 755 |
+
checksum = "8505734d46c8ab1e19a1dce3aef597ad87dcb4c37e7188231769bd6bd51cebf8"
|
| 756 |
+
dependencies = [
|
| 757 |
+
"bitflags",
|
| 758 |
+
"cfg-if",
|
| 759 |
+
"foreign-types",
|
| 760 |
+
"libc",
|
| 761 |
+
"once_cell",
|
| 762 |
+
"openssl-macros",
|
| 763 |
+
"openssl-sys",
|
| 764 |
+
]
|
| 765 |
+
|
| 766 |
+
[[package]]
|
| 767 |
+
name = "openssl-macros"
|
| 768 |
+
version = "0.1.1"
|
| 769 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 770 |
+
checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
|
| 771 |
+
dependencies = [
|
| 772 |
+
"proc-macro2",
|
| 773 |
+
"quote",
|
| 774 |
+
"syn",
|
| 775 |
+
]
|
| 776 |
+
|
| 777 |
+
[[package]]
|
| 778 |
+
name = "openssl-probe"
|
| 779 |
+
version = "0.1.6"
|
| 780 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 781 |
+
checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
|
| 782 |
+
|
| 783 |
+
[[package]]
|
| 784 |
+
name = "openssl-sys"
|
| 785 |
+
version = "0.9.109"
|
| 786 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 787 |
+
checksum = "90096e2e47630d78b7d1c20952dc621f957103f8bc2c8359ec81290d75238571"
|
| 788 |
+
dependencies = [
|
| 789 |
+
"cc",
|
| 790 |
+
"libc",
|
| 791 |
+
"pkg-config",
|
| 792 |
+
"vcpkg",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "percent-encoding"
|
| 797 |
+
version = "2.3.2"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "pin-project-lite"
|
| 803 |
+
version = "0.2.16"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "pin-utils"
|
| 809 |
+
version = "0.1.0"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 812 |
+
|
| 813 |
+
[[package]]
|
| 814 |
+
name = "pkg-config"
|
| 815 |
+
version = "0.3.32"
|
| 816 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 817 |
+
checksum = "7edddbd0b52d732b21ad9a5fab5c704c14cd949e5e9a1ec5929a24fded1b904c"
|
| 818 |
+
|
| 819 |
+
[[package]]
|
| 820 |
+
name = "pledge"
|
| 821 |
+
version = "0.4.2"
|
| 822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 823 |
+
checksum = "252599417b7d9a43b7fdc63dd790b0848666a8910b2ebe1a25118309c3c981e5"
|
| 824 |
+
dependencies = [
|
| 825 |
+
"libc",
|
| 826 |
+
]
|
| 827 |
+
|
| 828 |
+
[[package]]
|
| 829 |
+
name = "potential_utf"
|
| 830 |
+
version = "0.1.2"
|
| 831 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 832 |
+
checksum = "e5a7c30837279ca13e7c867e9e40053bc68740f988cb07f7ca6df43cc734b585"
|
| 833 |
+
dependencies = [
|
| 834 |
+
"zerovec",
|
| 835 |
+
]
|
| 836 |
+
|
| 837 |
+
[[package]]
|
| 838 |
+
name = "proc-macro2"
|
| 839 |
+
version = "1.0.95"
|
| 840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 841 |
+
checksum = "02b3e5e68a3a1a02aad3ec490a98007cbc13c37cbe84a3cd7b8e406d76e7f778"
|
| 842 |
+
dependencies = [
|
| 843 |
+
"unicode-ident",
|
| 844 |
+
]
|
| 845 |
+
|
| 846 |
+
[[package]]
|
| 847 |
+
name = "quote"
|
| 848 |
+
version = "1.0.40"
|
| 849 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 850 |
+
checksum = "1885c039570dc00dcb4ff087a89e185fd56bae234ddc7f056a945bf36467248d"
|
| 851 |
+
dependencies = [
|
| 852 |
+
"proc-macro2",
|
| 853 |
+
]
|
| 854 |
+
|
| 855 |
+
[[package]]
|
| 856 |
+
name = "r-efi"
|
| 857 |
+
version = "5.2.0"
|
| 858 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 859 |
+
checksum = "74765f6d916ee2faa39bc8e68e4f3ed8949b48cccdac59983d287a7cb71ce9c5"
|
| 860 |
+
|
| 861 |
+
[[package]]
|
| 862 |
+
name = "reqwest"
|
| 863 |
+
version = "0.12.23"
|
| 864 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 865 |
+
checksum = "d429f34c8092b2d42c7c93cec323bb4adeb7c67698f70839adec842ec10c7ceb"
|
| 866 |
+
dependencies = [
|
| 867 |
+
"base64",
|
| 868 |
+
"bytes",
|
| 869 |
+
"encoding_rs",
|
| 870 |
+
"futures-channel",
|
| 871 |
+
"futures-core",
|
| 872 |
+
"futures-util",
|
| 873 |
+
"h2",
|
| 874 |
+
"http",
|
| 875 |
+
"http-body",
|
| 876 |
+
"http-body-util",
|
| 877 |
+
"hyper",
|
| 878 |
+
"hyper-rustls",
|
| 879 |
+
"hyper-tls",
|
| 880 |
+
"hyper-util",
|
| 881 |
+
"js-sys",
|
| 882 |
+
"log",
|
| 883 |
+
"mime",
|
| 884 |
+
"native-tls",
|
| 885 |
+
"percent-encoding",
|
| 886 |
+
"pin-project-lite",
|
| 887 |
+
"rustls-pki-types",
|
| 888 |
+
"serde",
|
| 889 |
+
"serde_json",
|
| 890 |
+
"serde_urlencoded",
|
| 891 |
+
"sync_wrapper",
|
| 892 |
+
"tokio",
|
| 893 |
+
"tokio-native-tls",
|
| 894 |
+
"tower",
|
| 895 |
+
"tower-http",
|
| 896 |
+
"tower-service",
|
| 897 |
+
"url",
|
| 898 |
+
"wasm-bindgen",
|
| 899 |
+
"wasm-bindgen-futures",
|
| 900 |
+
"web-sys",
|
| 901 |
+
]
|
| 902 |
+
|
| 903 |
+
[[package]]
|
| 904 |
+
name = "ring"
|
| 905 |
+
version = "0.17.14"
|
| 906 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 907 |
+
checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
|
| 908 |
+
dependencies = [
|
| 909 |
+
"cc",
|
| 910 |
+
"cfg-if",
|
| 911 |
+
"getrandom 0.2.16",
|
| 912 |
+
"libc",
|
| 913 |
+
"untrusted",
|
| 914 |
+
"windows-sys 0.52.0",
|
| 915 |
+
]
|
| 916 |
+
|
| 917 |
+
[[package]]
|
| 918 |
+
name = "rustix"
|
| 919 |
+
version = "1.0.7"
|
| 920 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 921 |
+
checksum = "c71e83d6afe7ff64890ec6b71d6a69bb8a610ab78ce364b3352876bb4c801266"
|
| 922 |
+
dependencies = [
|
| 923 |
+
"bitflags",
|
| 924 |
+
"errno",
|
| 925 |
+
"libc",
|
| 926 |
+
"linux-raw-sys",
|
| 927 |
+
"windows-sys 0.59.0",
|
| 928 |
+
]
|
| 929 |
+
|
| 930 |
+
[[package]]
|
| 931 |
+
name = "rustls"
|
| 932 |
+
version = "0.23.27"
|
| 933 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 934 |
+
checksum = "730944ca083c1c233a75c09f199e973ca499344a2b7ba9e755c457e86fb4a321"
|
| 935 |
+
dependencies = [
|
| 936 |
+
"once_cell",
|
| 937 |
+
"rustls-pki-types",
|
| 938 |
+
"rustls-webpki",
|
| 939 |
+
"subtle",
|
| 940 |
+
"zeroize",
|
| 941 |
+
]
|
| 942 |
+
|
| 943 |
+
[[package]]
|
| 944 |
+
name = "rustls-pki-types"
|
| 945 |
+
version = "1.12.0"
|
| 946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 947 |
+
checksum = "229a4a4c221013e7e1f1a043678c5cc39fe5171437c88fb47151a21e6f5b5c79"
|
| 948 |
+
dependencies = [
|
| 949 |
+
"zeroize",
|
| 950 |
+
]
|
| 951 |
+
|
| 952 |
+
[[package]]
|
| 953 |
+
name = "rustls-webpki"
|
| 954 |
+
version = "0.103.3"
|
| 955 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 956 |
+
checksum = "e4a72fe2bcf7a6ac6fd7d0b9e5cb68aeb7d4c0a0271730218b3e92d43b4eb435"
|
| 957 |
+
dependencies = [
|
| 958 |
+
"ring",
|
| 959 |
+
"rustls-pki-types",
|
| 960 |
+
"untrusted",
|
| 961 |
+
]
|
| 962 |
+
|
| 963 |
+
[[package]]
|
| 964 |
+
name = "rustversion"
|
| 965 |
+
version = "1.0.21"
|
| 966 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 967 |
+
checksum = "8a0d197bd2c9dc6e53b84da9556a69ba4cdfab8619eb41a8bd1cc2027a0f6b1d"
|
| 968 |
+
|
| 969 |
+
[[package]]
|
| 970 |
+
name = "ryu"
|
| 971 |
+
version = "1.0.20"
|
| 972 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 973 |
+
checksum = "28d3b2b1366ec20994f1fd18c3c594f05c5dd4bc44d8bb0c1c632c8d6829481f"
|
| 974 |
+
|
| 975 |
+
[[package]]
|
| 976 |
+
name = "schannel"
|
| 977 |
+
version = "0.1.27"
|
| 978 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 979 |
+
checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
|
| 980 |
+
dependencies = [
|
| 981 |
+
"windows-sys 0.59.0",
|
| 982 |
+
]
|
| 983 |
+
|
| 984 |
+
[[package]]
|
| 985 |
+
name = "security-framework"
|
| 986 |
+
version = "2.11.1"
|
| 987 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 988 |
+
checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
|
| 989 |
+
dependencies = [
|
| 990 |
+
"bitflags",
|
| 991 |
+
"core-foundation",
|
| 992 |
+
"core-foundation-sys",
|
| 993 |
+
"libc",
|
| 994 |
+
"security-framework-sys",
|
| 995 |
+
]
|
| 996 |
+
|
| 997 |
+
[[package]]
|
| 998 |
+
name = "security-framework-sys"
|
| 999 |
+
version = "2.14.0"
|
| 1000 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1001 |
+
checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
|
| 1002 |
+
dependencies = [
|
| 1003 |
+
"core-foundation-sys",
|
| 1004 |
+
"libc",
|
| 1005 |
+
]
|
| 1006 |
+
|
| 1007 |
+
[[package]]
|
| 1008 |
+
name = "serde"
|
| 1009 |
+
version = "1.0.228"
|
| 1010 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1011 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 1012 |
+
dependencies = [
|
| 1013 |
+
"serde_core",
|
| 1014 |
+
"serde_derive",
|
| 1015 |
+
]
|
| 1016 |
+
|
| 1017 |
+
[[package]]
|
| 1018 |
+
name = "serde_core"
|
| 1019 |
+
version = "1.0.228"
|
| 1020 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1021 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 1022 |
+
dependencies = [
|
| 1023 |
+
"serde_derive",
|
| 1024 |
+
]
|
| 1025 |
+
|
| 1026 |
+
[[package]]
|
| 1027 |
+
name = "serde_derive"
|
| 1028 |
+
version = "1.0.228"
|
| 1029 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1030 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 1031 |
+
dependencies = [
|
| 1032 |
+
"proc-macro2",
|
| 1033 |
+
"quote",
|
| 1034 |
+
"syn",
|
| 1035 |
+
]
|
| 1036 |
+
|
| 1037 |
+
[[package]]
|
| 1038 |
+
name = "serde_json"
|
| 1039 |
+
version = "1.0.149"
|
| 1040 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1041 |
+
checksum = "83fc039473c5595ace860d8c4fafa220ff474b3fc6bfdb4293327f1a37e94d86"
|
| 1042 |
+
dependencies = [
|
| 1043 |
+
"itoa",
|
| 1044 |
+
"memchr",
|
| 1045 |
+
"serde",
|
| 1046 |
+
"serde_core",
|
| 1047 |
+
"zmij",
|
| 1048 |
+
]
|
| 1049 |
+
|
| 1050 |
+
[[package]]
|
| 1051 |
+
name = "serde_spanned"
|
| 1052 |
+
version = "1.1.1"
|
| 1053 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1054 |
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
| 1055 |
+
dependencies = [
|
| 1056 |
+
"serde_core",
|
| 1057 |
+
]
|
| 1058 |
+
|
| 1059 |
+
[[package]]
|
| 1060 |
+
name = "serde_urlencoded"
|
| 1061 |
+
version = "0.7.1"
|
| 1062 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1063 |
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
| 1064 |
+
dependencies = [
|
| 1065 |
+
"form_urlencoded",
|
| 1066 |
+
"itoa",
|
| 1067 |
+
"ryu",
|
| 1068 |
+
"serde",
|
| 1069 |
+
]
|
| 1070 |
+
|
| 1071 |
+
[[package]]
|
| 1072 |
+
name = "shlex"
|
| 1073 |
+
version = "1.3.0"
|
| 1074 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1075 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 1076 |
+
|
| 1077 |
+
[[package]]
|
| 1078 |
+
name = "slab"
|
| 1079 |
+
version = "0.4.9"
|
| 1080 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1081 |
+
checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
|
| 1082 |
+
dependencies = [
|
| 1083 |
+
"autocfg",
|
| 1084 |
+
]
|
| 1085 |
+
|
| 1086 |
+
[[package]]
|
| 1087 |
+
name = "smallvec"
|
| 1088 |
+
version = "1.15.1"
|
| 1089 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1090 |
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
| 1091 |
+
|
| 1092 |
+
[[package]]
|
| 1093 |
+
name = "socket2"
|
| 1094 |
+
version = "0.5.10"
|
| 1095 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1096 |
+
checksum = "e22376abed350d73dd1cd119b57ffccad95b4e585a7cda43e286245ce23c0678"
|
| 1097 |
+
dependencies = [
|
| 1098 |
+
"libc",
|
| 1099 |
+
"windows-sys 0.52.0",
|
| 1100 |
+
]
|
| 1101 |
+
|
| 1102 |
+
[[package]]
|
| 1103 |
+
name = "socket2"
|
| 1104 |
+
version = "0.6.2"
|
| 1105 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1106 |
+
checksum = "86f4aa3ad99f2088c990dfa82d367e19cb29268ed67c574d10d0a4bfe71f07e0"
|
| 1107 |
+
dependencies = [
|
| 1108 |
+
"libc",
|
| 1109 |
+
"windows-sys 0.60.2",
|
| 1110 |
+
]
|
| 1111 |
+
|
| 1112 |
+
[[package]]
|
| 1113 |
+
name = "stable_deref_trait"
|
| 1114 |
+
version = "1.2.0"
|
| 1115 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1116 |
+
checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
|
| 1117 |
+
|
| 1118 |
+
[[package]]
|
| 1119 |
+
name = "subtle"
|
| 1120 |
+
version = "2.6.1"
|
| 1121 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1122 |
+
checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
|
| 1123 |
+
|
| 1124 |
+
[[package]]
|
| 1125 |
+
name = "syn"
|
| 1126 |
+
version = "2.0.102"
|
| 1127 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1128 |
+
checksum = "f6397daf94fa90f058bd0fd88429dd9e5738999cca8d701813c80723add80462"
|
| 1129 |
+
dependencies = [
|
| 1130 |
+
"proc-macro2",
|
| 1131 |
+
"quote",
|
| 1132 |
+
"unicode-ident",
|
| 1133 |
+
]
|
| 1134 |
+
|
| 1135 |
+
[[package]]
|
| 1136 |
+
name = "sync_wrapper"
|
| 1137 |
+
version = "1.0.2"
|
| 1138 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1139 |
+
checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
|
| 1140 |
+
dependencies = [
|
| 1141 |
+
"futures-core",
|
| 1142 |
+
]
|
| 1143 |
+
|
| 1144 |
+
[[package]]
|
| 1145 |
+
name = "synstructure"
|
| 1146 |
+
version = "0.13.2"
|
| 1147 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1148 |
+
checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
|
| 1149 |
+
dependencies = [
|
| 1150 |
+
"proc-macro2",
|
| 1151 |
+
"quote",
|
| 1152 |
+
"syn",
|
| 1153 |
+
]
|
| 1154 |
+
|
| 1155 |
+
[[package]]
|
| 1156 |
+
name = "system-configuration"
|
| 1157 |
+
version = "0.6.1"
|
| 1158 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1159 |
+
checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
|
| 1160 |
+
dependencies = [
|
| 1161 |
+
"bitflags",
|
| 1162 |
+
"core-foundation",
|
| 1163 |
+
"system-configuration-sys",
|
| 1164 |
+
]
|
| 1165 |
+
|
| 1166 |
+
[[package]]
|
| 1167 |
+
name = "system-configuration-sys"
|
| 1168 |
+
version = "0.6.0"
|
| 1169 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1170 |
+
checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
|
| 1171 |
+
dependencies = [
|
| 1172 |
+
"core-foundation-sys",
|
| 1173 |
+
"libc",
|
| 1174 |
+
]
|
| 1175 |
+
|
| 1176 |
+
[[package]]
|
| 1177 |
+
name = "tempfile"
|
| 1178 |
+
version = "3.20.0"
|
| 1179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1180 |
+
checksum = "e8a64e3985349f2441a1a9ef0b853f869006c3855f2cda6862a94d26ebb9d6a1"
|
| 1181 |
+
dependencies = [
|
| 1182 |
+
"fastrand",
|
| 1183 |
+
"getrandom 0.3.3",
|
| 1184 |
+
"once_cell",
|
| 1185 |
+
"rustix",
|
| 1186 |
+
"windows-sys 0.59.0",
|
| 1187 |
+
]
|
| 1188 |
+
|
| 1189 |
+
[[package]]
|
| 1190 |
+
name = "thiserror"
|
| 1191 |
+
version = "2.0.18"
|
| 1192 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1193 |
+
checksum = "4288b5bcbc7920c07a1149a35cf9590a2aa808e0bc1eafaade0b80947865fbc4"
|
| 1194 |
+
dependencies = [
|
| 1195 |
+
"thiserror-impl",
|
| 1196 |
+
]
|
| 1197 |
+
|
| 1198 |
+
[[package]]
|
| 1199 |
+
name = "thiserror-impl"
|
| 1200 |
+
version = "2.0.18"
|
| 1201 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1202 |
+
checksum = "ebc4ee7f67670e9b64d05fa4253e753e016c6c95ff35b89b7941d6b856dec1d5"
|
| 1203 |
+
dependencies = [
|
| 1204 |
+
"proc-macro2",
|
| 1205 |
+
"quote",
|
| 1206 |
+
"syn",
|
| 1207 |
+
]
|
| 1208 |
+
|
| 1209 |
+
[[package]]
|
| 1210 |
+
name = "tinystr"
|
| 1211 |
+
version = "0.8.1"
|
| 1212 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1213 |
+
checksum = "5d4f6d1145dcb577acf783d4e601bc1d76a13337bb54e6233add580b07344c8b"
|
| 1214 |
+
dependencies = [
|
| 1215 |
+
"displaydoc",
|
| 1216 |
+
"zerovec",
|
| 1217 |
+
]
|
| 1218 |
+
|
| 1219 |
+
[[package]]
|
| 1220 |
+
name = "tokio"
|
| 1221 |
+
version = "1.49.0"
|
| 1222 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1223 |
+
checksum = "72a2903cd7736441aac9df9d7688bd0ce48edccaadf181c3b90be801e81d3d86"
|
| 1224 |
+
dependencies = [
|
| 1225 |
+
"bytes",
|
| 1226 |
+
"libc",
|
| 1227 |
+
"mio",
|
| 1228 |
+
"pin-project-lite",
|
| 1229 |
+
"socket2 0.6.2",
|
| 1230 |
+
"tokio-macros",
|
| 1231 |
+
"windows-sys 0.61.2",
|
| 1232 |
+
]
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "tokio-macros"
|
| 1236 |
+
version = "2.6.0"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "af407857209536a95c8e56f8231ef2c2e2aff839b22e07a1ffcbc617e9db9fa5"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"proc-macro2",
|
| 1241 |
+
"quote",
|
| 1242 |
+
"syn",
|
| 1243 |
+
]
|
| 1244 |
+
|
| 1245 |
+
[[package]]
|
| 1246 |
+
name = "tokio-native-tls"
|
| 1247 |
+
version = "0.3.1"
|
| 1248 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1249 |
+
checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
|
| 1250 |
+
dependencies = [
|
| 1251 |
+
"native-tls",
|
| 1252 |
+
"tokio",
|
| 1253 |
+
]
|
| 1254 |
+
|
| 1255 |
+
[[package]]
|
| 1256 |
+
name = "tokio-rustls"
|
| 1257 |
+
version = "0.26.2"
|
| 1258 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1259 |
+
checksum = "8e727b36a1a0e8b74c376ac2211e40c2c8af09fb4013c60d910495810f008e9b"
|
| 1260 |
+
dependencies = [
|
| 1261 |
+
"rustls",
|
| 1262 |
+
"tokio",
|
| 1263 |
+
]
|
| 1264 |
+
|
| 1265 |
+
[[package]]
|
| 1266 |
+
name = "tokio-stream"
|
| 1267 |
+
version = "0.1.17"
|
| 1268 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1269 |
+
checksum = "eca58d7bba4a75707817a2c44174253f9236b2d5fbd055602e9d5c07c139a047"
|
| 1270 |
+
dependencies = [
|
| 1271 |
+
"futures-core",
|
| 1272 |
+
"pin-project-lite",
|
| 1273 |
+
"tokio",
|
| 1274 |
+
]
|
| 1275 |
+
|
| 1276 |
+
[[package]]
|
| 1277 |
+
name = "tokio-util"
|
| 1278 |
+
version = "0.7.18"
|
| 1279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1280 |
+
checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
|
| 1281 |
+
dependencies = [
|
| 1282 |
+
"bytes",
|
| 1283 |
+
"futures-core",
|
| 1284 |
+
"futures-sink",
|
| 1285 |
+
"pin-project-lite",
|
| 1286 |
+
"tokio",
|
| 1287 |
+
]
|
| 1288 |
+
|
| 1289 |
+
[[package]]
|
| 1290 |
+
name = "toml"
|
| 1291 |
+
version = "1.1.1+spec-1.1.0"
|
| 1292 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1293 |
+
checksum = "994b95d9e7bae62b34bab0e2a4510b801fa466066a6a8b2b57361fa1eba068ee"
|
| 1294 |
+
dependencies = [
|
| 1295 |
+
"indexmap",
|
| 1296 |
+
"serde_core",
|
| 1297 |
+
"serde_spanned",
|
| 1298 |
+
"toml_datetime",
|
| 1299 |
+
"toml_parser",
|
| 1300 |
+
"toml_writer",
|
| 1301 |
+
"winnow",
|
| 1302 |
+
]
|
| 1303 |
+
|
| 1304 |
+
[[package]]
|
| 1305 |
+
name = "toml_datetime"
|
| 1306 |
+
version = "1.1.1+spec-1.1.0"
|
| 1307 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1308 |
+
checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
|
| 1309 |
+
dependencies = [
|
| 1310 |
+
"serde_core",
|
| 1311 |
+
]
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "toml_parser"
|
| 1315 |
+
version = "1.1.1+spec-1.1.0"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "39ca317ebc49f06bd748bfba29533eac9485569dc9bf80b849024b025e814fb9"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"winnow",
|
| 1320 |
+
]
|
| 1321 |
+
|
| 1322 |
+
[[package]]
|
| 1323 |
+
name = "toml_writer"
|
| 1324 |
+
version = "1.1.1+spec-1.1.0"
|
| 1325 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1326 |
+
checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
|
| 1327 |
+
|
| 1328 |
+
[[package]]
|
| 1329 |
+
name = "tower"
|
| 1330 |
+
version = "0.5.2"
|
| 1331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1332 |
+
checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
|
| 1333 |
+
dependencies = [
|
| 1334 |
+
"futures-core",
|
| 1335 |
+
"futures-util",
|
| 1336 |
+
"pin-project-lite",
|
| 1337 |
+
"sync_wrapper",
|
| 1338 |
+
"tokio",
|
| 1339 |
+
"tower-layer",
|
| 1340 |
+
"tower-service",
|
| 1341 |
+
]
|
| 1342 |
+
|
| 1343 |
+
[[package]]
|
| 1344 |
+
name = "tower-http"
|
| 1345 |
+
version = "0.6.6"
|
| 1346 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1347 |
+
checksum = "adc82fd73de2a9722ac5da747f12383d2bfdb93591ee6c58486e0097890f05f2"
|
| 1348 |
+
dependencies = [
|
| 1349 |
+
"bitflags",
|
| 1350 |
+
"bytes",
|
| 1351 |
+
"futures-util",
|
| 1352 |
+
"http",
|
| 1353 |
+
"http-body",
|
| 1354 |
+
"iri-string",
|
| 1355 |
+
"pin-project-lite",
|
| 1356 |
+
"tower",
|
| 1357 |
+
"tower-layer",
|
| 1358 |
+
"tower-service",
|
| 1359 |
+
]
|
| 1360 |
+
|
| 1361 |
+
[[package]]
|
| 1362 |
+
name = "tower-layer"
|
| 1363 |
+
version = "0.3.3"
|
| 1364 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1365 |
+
checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
|
| 1366 |
+
|
| 1367 |
+
[[package]]
|
| 1368 |
+
name = "tower-service"
|
| 1369 |
+
version = "0.3.3"
|
| 1370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1371 |
+
checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
|
| 1372 |
+
|
| 1373 |
+
[[package]]
|
| 1374 |
+
name = "tracing"
|
| 1375 |
+
version = "0.1.41"
|
| 1376 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1377 |
+
checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
|
| 1378 |
+
dependencies = [
|
| 1379 |
+
"pin-project-lite",
|
| 1380 |
+
"tracing-core",
|
| 1381 |
+
]
|
| 1382 |
+
|
| 1383 |
+
[[package]]
|
| 1384 |
+
name = "tracing-core"
|
| 1385 |
+
version = "0.1.34"
|
| 1386 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1387 |
+
checksum = "b9d12581f227e93f094d3af2ae690a574abb8a2b9b7a96e7cfe9647b2b617678"
|
| 1388 |
+
dependencies = [
|
| 1389 |
+
"once_cell",
|
| 1390 |
+
]
|
| 1391 |
+
|
| 1392 |
+
[[package]]
|
| 1393 |
+
name = "try-lock"
|
| 1394 |
+
version = "0.2.5"
|
| 1395 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1396 |
+
checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
|
| 1397 |
+
|
| 1398 |
+
[[package]]
|
| 1399 |
+
name = "unicode-ident"
|
| 1400 |
+
version = "1.0.18"
|
| 1401 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1402 |
+
checksum = "5a5f39404a5da50712a4c1eecf25e90dd62b613502b7e925fd4e4d19b5c96512"
|
| 1403 |
+
|
| 1404 |
+
[[package]]
|
| 1405 |
+
name = "untrusted"
|
| 1406 |
+
version = "0.9.0"
|
| 1407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1408 |
+
checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
|
| 1409 |
+
|
| 1410 |
+
[[package]]
|
| 1411 |
+
name = "unveil"
|
| 1412 |
+
version = "0.3.2"
|
| 1413 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1414 |
+
checksum = "5e7fa867d559102001ec694165ed17d5f82e95213060a65f9c8b6280084bbfec"
|
| 1415 |
+
dependencies = [
|
| 1416 |
+
"libc",
|
| 1417 |
+
]
|
| 1418 |
+
|
| 1419 |
+
[[package]]
|
| 1420 |
+
name = "url"
|
| 1421 |
+
version = "2.5.8"
|
| 1422 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1423 |
+
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
| 1424 |
+
dependencies = [
|
| 1425 |
+
"form_urlencoded",
|
| 1426 |
+
"idna",
|
| 1427 |
+
"percent-encoding",
|
| 1428 |
+
"serde",
|
| 1429 |
+
]
|
| 1430 |
+
|
| 1431 |
+
[[package]]
|
| 1432 |
+
name = "utf8_iter"
|
| 1433 |
+
version = "1.0.4"
|
| 1434 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1435 |
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
| 1436 |
+
|
| 1437 |
+
[[package]]
|
| 1438 |
+
name = "vaultwarden_ldap"
|
| 1439 |
+
version = "2.2.1"
|
| 1440 |
+
dependencies = [
|
| 1441 |
+
"anyhow",
|
| 1442 |
+
"envy",
|
| 1443 |
+
"ldap3",
|
| 1444 |
+
"pledge",
|
| 1445 |
+
"reqwest",
|
| 1446 |
+
"serde",
|
| 1447 |
+
"serde_json",
|
| 1448 |
+
"thiserror",
|
| 1449 |
+
"toml",
|
| 1450 |
+
"unveil",
|
| 1451 |
+
]
|
| 1452 |
+
|
| 1453 |
+
[[package]]
|
| 1454 |
+
name = "vcpkg"
|
| 1455 |
+
version = "0.2.15"
|
| 1456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1457 |
+
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
| 1458 |
+
|
| 1459 |
+
[[package]]
|
| 1460 |
+
name = "want"
|
| 1461 |
+
version = "0.3.1"
|
| 1462 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1463 |
+
checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
|
| 1464 |
+
dependencies = [
|
| 1465 |
+
"try-lock",
|
| 1466 |
+
]
|
| 1467 |
+
|
| 1468 |
+
[[package]]
|
| 1469 |
+
name = "wasi"
|
| 1470 |
+
version = "0.11.1+wasi-snapshot-preview1"
|
| 1471 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1472 |
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
| 1473 |
+
|
| 1474 |
+
[[package]]
|
| 1475 |
+
name = "wasi"
|
| 1476 |
+
version = "0.14.2+wasi-0.2.4"
|
| 1477 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1478 |
+
checksum = "9683f9a5a998d873c0d21fcbe3c083009670149a8fab228644b8bd36b2c48cb3"
|
| 1479 |
+
dependencies = [
|
| 1480 |
+
"wit-bindgen-rt",
|
| 1481 |
+
]
|
| 1482 |
+
|
| 1483 |
+
[[package]]
|
| 1484 |
+
name = "wasm-bindgen"
|
| 1485 |
+
version = "0.2.100"
|
| 1486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1487 |
+
checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
|
| 1488 |
+
dependencies = [
|
| 1489 |
+
"cfg-if",
|
| 1490 |
+
"once_cell",
|
| 1491 |
+
"rustversion",
|
| 1492 |
+
"wasm-bindgen-macro",
|
| 1493 |
+
]
|
| 1494 |
+
|
| 1495 |
+
[[package]]
|
| 1496 |
+
name = "wasm-bindgen-backend"
|
| 1497 |
+
version = "0.2.100"
|
| 1498 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1499 |
+
checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
|
| 1500 |
+
dependencies = [
|
| 1501 |
+
"bumpalo",
|
| 1502 |
+
"log",
|
| 1503 |
+
"proc-macro2",
|
| 1504 |
+
"quote",
|
| 1505 |
+
"syn",
|
| 1506 |
+
"wasm-bindgen-shared",
|
| 1507 |
+
]
|
| 1508 |
+
|
| 1509 |
+
[[package]]
|
| 1510 |
+
name = "wasm-bindgen-futures"
|
| 1511 |
+
version = "0.4.50"
|
| 1512 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1513 |
+
checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
|
| 1514 |
+
dependencies = [
|
| 1515 |
+
"cfg-if",
|
| 1516 |
+
"js-sys",
|
| 1517 |
+
"once_cell",
|
| 1518 |
+
"wasm-bindgen",
|
| 1519 |
+
"web-sys",
|
| 1520 |
+
]
|
| 1521 |
+
|
| 1522 |
+
[[package]]
|
| 1523 |
+
name = "wasm-bindgen-macro"
|
| 1524 |
+
version = "0.2.100"
|
| 1525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1526 |
+
checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
|
| 1527 |
+
dependencies = [
|
| 1528 |
+
"quote",
|
| 1529 |
+
"wasm-bindgen-macro-support",
|
| 1530 |
+
]
|
| 1531 |
+
|
| 1532 |
+
[[package]]
|
| 1533 |
+
name = "wasm-bindgen-macro-support"
|
| 1534 |
+
version = "0.2.100"
|
| 1535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1536 |
+
checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
|
| 1537 |
+
dependencies = [
|
| 1538 |
+
"proc-macro2",
|
| 1539 |
+
"quote",
|
| 1540 |
+
"syn",
|
| 1541 |
+
"wasm-bindgen-backend",
|
| 1542 |
+
"wasm-bindgen-shared",
|
| 1543 |
+
]
|
| 1544 |
+
|
| 1545 |
+
[[package]]
|
| 1546 |
+
name = "wasm-bindgen-shared"
|
| 1547 |
+
version = "0.2.100"
|
| 1548 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1549 |
+
checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
|
| 1550 |
+
dependencies = [
|
| 1551 |
+
"unicode-ident",
|
| 1552 |
+
]
|
| 1553 |
+
|
| 1554 |
+
[[package]]
|
| 1555 |
+
name = "web-sys"
|
| 1556 |
+
version = "0.3.77"
|
| 1557 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1558 |
+
checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
|
| 1559 |
+
dependencies = [
|
| 1560 |
+
"js-sys",
|
| 1561 |
+
"wasm-bindgen",
|
| 1562 |
+
]
|
| 1563 |
+
|
| 1564 |
+
[[package]]
|
| 1565 |
+
name = "windows-link"
|
| 1566 |
+
version = "0.1.1"
|
| 1567 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1568 |
+
checksum = "76840935b766e1b0a05c0066835fb9ec80071d4c09a16f6bd5f7e655e3c14c38"
|
| 1569 |
+
|
| 1570 |
+
[[package]]
|
| 1571 |
+
name = "windows-link"
|
| 1572 |
+
version = "0.2.1"
|
| 1573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1574 |
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
| 1575 |
+
|
| 1576 |
+
[[package]]
|
| 1577 |
+
name = "windows-registry"
|
| 1578 |
+
version = "0.5.2"
|
| 1579 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1580 |
+
checksum = "b3bab093bdd303a1240bb99b8aba8ea8a69ee19d34c9e2ef9594e708a4878820"
|
| 1581 |
+
dependencies = [
|
| 1582 |
+
"windows-link 0.1.1",
|
| 1583 |
+
"windows-result",
|
| 1584 |
+
"windows-strings",
|
| 1585 |
+
]
|
| 1586 |
+
|
| 1587 |
+
[[package]]
|
| 1588 |
+
name = "windows-result"
|
| 1589 |
+
version = "0.3.4"
|
| 1590 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1591 |
+
checksum = "56f42bd332cc6c8eac5af113fc0c1fd6a8fd2aa08a0119358686e5160d0586c6"
|
| 1592 |
+
dependencies = [
|
| 1593 |
+
"windows-link 0.1.1",
|
| 1594 |
+
]
|
| 1595 |
+
|
| 1596 |
+
[[package]]
|
| 1597 |
+
name = "windows-strings"
|
| 1598 |
+
version = "0.4.2"
|
| 1599 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1600 |
+
checksum = "56e6c93f3a0c3b36176cb1327a4958a0353d5d166c2a35cb268ace15e91d3b57"
|
| 1601 |
+
dependencies = [
|
| 1602 |
+
"windows-link 0.1.1",
|
| 1603 |
+
]
|
| 1604 |
+
|
| 1605 |
+
[[package]]
|
| 1606 |
+
name = "windows-sys"
|
| 1607 |
+
version = "0.52.0"
|
| 1608 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1609 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 1610 |
+
dependencies = [
|
| 1611 |
+
"windows-targets 0.52.6",
|
| 1612 |
+
]
|
| 1613 |
+
|
| 1614 |
+
[[package]]
|
| 1615 |
+
name = "windows-sys"
|
| 1616 |
+
version = "0.59.0"
|
| 1617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1618 |
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
| 1619 |
+
dependencies = [
|
| 1620 |
+
"windows-targets 0.52.6",
|
| 1621 |
+
]
|
| 1622 |
+
|
| 1623 |
+
[[package]]
|
| 1624 |
+
name = "windows-sys"
|
| 1625 |
+
version = "0.60.2"
|
| 1626 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1627 |
+
checksum = "f2f500e4d28234f72040990ec9d39e3a6b950f9f22d3dba18416c35882612bcb"
|
| 1628 |
+
dependencies = [
|
| 1629 |
+
"windows-targets 0.53.5",
|
| 1630 |
+
]
|
| 1631 |
+
|
| 1632 |
+
[[package]]
|
| 1633 |
+
name = "windows-sys"
|
| 1634 |
+
version = "0.61.2"
|
| 1635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1636 |
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
| 1637 |
+
dependencies = [
|
| 1638 |
+
"windows-link 0.2.1",
|
| 1639 |
+
]
|
| 1640 |
+
|
| 1641 |
+
[[package]]
|
| 1642 |
+
name = "windows-targets"
|
| 1643 |
+
version = "0.52.6"
|
| 1644 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1645 |
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
| 1646 |
+
dependencies = [
|
| 1647 |
+
"windows_aarch64_gnullvm 0.52.6",
|
| 1648 |
+
"windows_aarch64_msvc 0.52.6",
|
| 1649 |
+
"windows_i686_gnu 0.52.6",
|
| 1650 |
+
"windows_i686_gnullvm 0.52.6",
|
| 1651 |
+
"windows_i686_msvc 0.52.6",
|
| 1652 |
+
"windows_x86_64_gnu 0.52.6",
|
| 1653 |
+
"windows_x86_64_gnullvm 0.52.6",
|
| 1654 |
+
"windows_x86_64_msvc 0.52.6",
|
| 1655 |
+
]
|
| 1656 |
+
|
| 1657 |
+
[[package]]
|
| 1658 |
+
name = "windows-targets"
|
| 1659 |
+
version = "0.53.5"
|
| 1660 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1661 |
+
checksum = "4945f9f551b88e0d65f3db0bc25c33b8acea4d9e41163edf90dcd0b19f9069f3"
|
| 1662 |
+
dependencies = [
|
| 1663 |
+
"windows-link 0.2.1",
|
| 1664 |
+
"windows_aarch64_gnullvm 0.53.1",
|
| 1665 |
+
"windows_aarch64_msvc 0.53.1",
|
| 1666 |
+
"windows_i686_gnu 0.53.1",
|
| 1667 |
+
"windows_i686_gnullvm 0.53.1",
|
| 1668 |
+
"windows_i686_msvc 0.53.1",
|
| 1669 |
+
"windows_x86_64_gnu 0.53.1",
|
| 1670 |
+
"windows_x86_64_gnullvm 0.53.1",
|
| 1671 |
+
"windows_x86_64_msvc 0.53.1",
|
| 1672 |
+
]
|
| 1673 |
+
|
| 1674 |
+
[[package]]
|
| 1675 |
+
name = "windows_aarch64_gnullvm"
|
| 1676 |
+
version = "0.52.6"
|
| 1677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1678 |
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
| 1679 |
+
|
| 1680 |
+
[[package]]
|
| 1681 |
+
name = "windows_aarch64_gnullvm"
|
| 1682 |
+
version = "0.53.1"
|
| 1683 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1684 |
+
checksum = "a9d8416fa8b42f5c947f8482c43e7d89e73a173cead56d044f6a56104a6d1b53"
|
| 1685 |
+
|
| 1686 |
+
[[package]]
|
| 1687 |
+
name = "windows_aarch64_msvc"
|
| 1688 |
+
version = "0.52.6"
|
| 1689 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1690 |
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
| 1691 |
+
|
| 1692 |
+
[[package]]
|
| 1693 |
+
name = "windows_aarch64_msvc"
|
| 1694 |
+
version = "0.53.1"
|
| 1695 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1696 |
+
checksum = "b9d782e804c2f632e395708e99a94275910eb9100b2114651e04744e9b125006"
|
| 1697 |
+
|
| 1698 |
+
[[package]]
|
| 1699 |
+
name = "windows_i686_gnu"
|
| 1700 |
+
version = "0.52.6"
|
| 1701 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1702 |
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
| 1703 |
+
|
| 1704 |
+
[[package]]
|
| 1705 |
+
name = "windows_i686_gnu"
|
| 1706 |
+
version = "0.53.1"
|
| 1707 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1708 |
+
checksum = "960e6da069d81e09becb0ca57a65220ddff016ff2d6af6a223cf372a506593a3"
|
| 1709 |
+
|
| 1710 |
+
[[package]]
|
| 1711 |
+
name = "windows_i686_gnullvm"
|
| 1712 |
+
version = "0.52.6"
|
| 1713 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1714 |
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
| 1715 |
+
|
| 1716 |
+
[[package]]
|
| 1717 |
+
name = "windows_i686_gnullvm"
|
| 1718 |
+
version = "0.53.1"
|
| 1719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1720 |
+
checksum = "fa7359d10048f68ab8b09fa71c3daccfb0e9b559aed648a8f95469c27057180c"
|
| 1721 |
+
|
| 1722 |
+
[[package]]
|
| 1723 |
+
name = "windows_i686_msvc"
|
| 1724 |
+
version = "0.52.6"
|
| 1725 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1726 |
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
| 1727 |
+
|
| 1728 |
+
[[package]]
|
| 1729 |
+
name = "windows_i686_msvc"
|
| 1730 |
+
version = "0.53.1"
|
| 1731 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1732 |
+
checksum = "1e7ac75179f18232fe9c285163565a57ef8d3c89254a30685b57d83a38d326c2"
|
| 1733 |
+
|
| 1734 |
+
[[package]]
|
| 1735 |
+
name = "windows_x86_64_gnu"
|
| 1736 |
+
version = "0.52.6"
|
| 1737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1738 |
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
| 1739 |
+
|
| 1740 |
+
[[package]]
|
| 1741 |
+
name = "windows_x86_64_gnu"
|
| 1742 |
+
version = "0.53.1"
|
| 1743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1744 |
+
checksum = "9c3842cdd74a865a8066ab39c8a7a473c0778a3f29370b5fd6b4b9aa7df4a499"
|
| 1745 |
+
|
| 1746 |
+
[[package]]
|
| 1747 |
+
name = "windows_x86_64_gnullvm"
|
| 1748 |
+
version = "0.52.6"
|
| 1749 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1750 |
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
| 1751 |
+
|
| 1752 |
+
[[package]]
|
| 1753 |
+
name = "windows_x86_64_gnullvm"
|
| 1754 |
+
version = "0.53.1"
|
| 1755 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1756 |
+
checksum = "0ffa179e2d07eee8ad8f57493436566c7cc30ac536a3379fdf008f47f6bb7ae1"
|
| 1757 |
+
|
| 1758 |
+
[[package]]
|
| 1759 |
+
name = "windows_x86_64_msvc"
|
| 1760 |
+
version = "0.52.6"
|
| 1761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1762 |
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
| 1763 |
+
|
| 1764 |
+
[[package]]
|
| 1765 |
+
name = "windows_x86_64_msvc"
|
| 1766 |
+
version = "0.53.1"
|
| 1767 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1768 |
+
checksum = "d6bbff5f0aada427a1e5a6da5f1f98158182f26556f345ac9e04d36d0ebed650"
|
| 1769 |
+
|
| 1770 |
+
[[package]]
|
| 1771 |
+
name = "winnow"
|
| 1772 |
+
version = "1.0.1"
|
| 1773 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1774 |
+
checksum = "09dac053f1cd375980747450bfc7250c264eaae0583872e845c0c7cd578872b5"
|
| 1775 |
+
|
| 1776 |
+
[[package]]
|
| 1777 |
+
name = "wit-bindgen-rt"
|
| 1778 |
+
version = "0.39.0"
|
| 1779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1780 |
+
checksum = "6f42320e61fe2cfd34354ecb597f86f413484a798ba44a8ca1165c58d42da6c1"
|
| 1781 |
+
dependencies = [
|
| 1782 |
+
"bitflags",
|
| 1783 |
+
]
|
| 1784 |
+
|
| 1785 |
+
[[package]]
|
| 1786 |
+
name = "writeable"
|
| 1787 |
+
version = "0.6.1"
|
| 1788 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1789 |
+
checksum = "ea2f10b9bb0928dfb1b42b65e1f9e36f7f54dbdf08457afefb38afcdec4fa2bb"
|
| 1790 |
+
|
| 1791 |
+
[[package]]
|
| 1792 |
+
name = "yoke"
|
| 1793 |
+
version = "0.8.0"
|
| 1794 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1795 |
+
checksum = "5f41bb01b8226ef4bfd589436a297c53d118f65921786300e427be8d487695cc"
|
| 1796 |
+
dependencies = [
|
| 1797 |
+
"serde",
|
| 1798 |
+
"stable_deref_trait",
|
| 1799 |
+
"yoke-derive",
|
| 1800 |
+
"zerofrom",
|
| 1801 |
+
]
|
| 1802 |
+
|
| 1803 |
+
[[package]]
|
| 1804 |
+
name = "yoke-derive"
|
| 1805 |
+
version = "0.8.0"
|
| 1806 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1807 |
+
checksum = "38da3c9736e16c5d3c8c597a9aaa5d1fa565d0532ae05e27c24aa62fb32c0ab6"
|
| 1808 |
+
dependencies = [
|
| 1809 |
+
"proc-macro2",
|
| 1810 |
+
"quote",
|
| 1811 |
+
"syn",
|
| 1812 |
+
"synstructure",
|
| 1813 |
+
]
|
| 1814 |
+
|
| 1815 |
+
[[package]]
|
| 1816 |
+
name = "zerofrom"
|
| 1817 |
+
version = "0.1.6"
|
| 1818 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1819 |
+
checksum = "50cc42e0333e05660c3587f3bf9d0478688e15d870fab3346451ce7f8c9fbea5"
|
| 1820 |
+
dependencies = [
|
| 1821 |
+
"zerofrom-derive",
|
| 1822 |
+
]
|
| 1823 |
+
|
| 1824 |
+
[[package]]
|
| 1825 |
+
name = "zerofrom-derive"
|
| 1826 |
+
version = "0.1.6"
|
| 1827 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1828 |
+
checksum = "d71e5d6e06ab090c67b5e44993ec16b72dcbaabc526db883a360057678b48502"
|
| 1829 |
+
dependencies = [
|
| 1830 |
+
"proc-macro2",
|
| 1831 |
+
"quote",
|
| 1832 |
+
"syn",
|
| 1833 |
+
"synstructure",
|
| 1834 |
+
]
|
| 1835 |
+
|
| 1836 |
+
[[package]]
|
| 1837 |
+
name = "zeroize"
|
| 1838 |
+
version = "1.8.1"
|
| 1839 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1840 |
+
checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
|
| 1841 |
+
|
| 1842 |
+
[[package]]
|
| 1843 |
+
name = "zerotrie"
|
| 1844 |
+
version = "0.2.2"
|
| 1845 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1846 |
+
checksum = "36f0bbd478583f79edad978b407914f61b2972f5af6fa089686016be8f9af595"
|
| 1847 |
+
dependencies = [
|
| 1848 |
+
"displaydoc",
|
| 1849 |
+
"yoke",
|
| 1850 |
+
"zerofrom",
|
| 1851 |
+
]
|
| 1852 |
+
|
| 1853 |
+
[[package]]
|
| 1854 |
+
name = "zerovec"
|
| 1855 |
+
version = "0.11.2"
|
| 1856 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1857 |
+
checksum = "4a05eb080e015ba39cc9e23bbe5e7fb04d5fb040350f99f34e338d5fdd294428"
|
| 1858 |
+
dependencies = [
|
| 1859 |
+
"yoke",
|
| 1860 |
+
"zerofrom",
|
| 1861 |
+
"zerovec-derive",
|
| 1862 |
+
]
|
| 1863 |
+
|
| 1864 |
+
[[package]]
|
| 1865 |
+
name = "zerovec-derive"
|
| 1866 |
+
version = "0.11.1"
|
| 1867 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1868 |
+
checksum = "5b96237efa0c878c64bd89c436f661be4e46b2f3eff1ebb976f7ef2321d2f58f"
|
| 1869 |
+
dependencies = [
|
| 1870 |
+
"proc-macro2",
|
| 1871 |
+
"quote",
|
| 1872 |
+
"syn",
|
| 1873 |
+
]
|
| 1874 |
+
|
| 1875 |
+
[[package]]
|
| 1876 |
+
name = "zmij"
|
| 1877 |
+
version = "1.0.21"
|
| 1878 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1879 |
+
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
| 1880 |
+
|
| 1881 |
+
LOCK_EOF
|
| 1882 |
+
|
| 1883 |
+
# Prefetch the exact locked dependency set against the generated manifest.
|
| 1884 |
+
# The --manifest-path flag keeps cargo out of /source_ro and the repo root.
|
| 1885 |
+
if ! cargo fetch --locked --manifest-path "$pb_manifest"; then
|
| 1886 |
+
pb_fail "dependency prefetch against the generated manifest failed"
|
| 1887 |
+
fi
|
| 1888 |
+
|
| 1889 |
+
echo "All Cargo dependencies fetched into $CARGO_HOME"
|
vividboarder--vaultwarden_ldap.7bf91f3/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a89a590080809176ab6549796152baf94115adee283be297a913e8fa3fe94d99
|
| 3 |
+
size 5431016
|
vividboarder--vaultwarden_ldap.7bf91f3/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
|
vividboarder--vaultwarden_ldap.7bf91f3/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()
|
vividboarder--vaultwarden_ldap.7bf91f3/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,1635 @@
|
|
|
|
|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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_config_env.test_env_sync_interval_type_error",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"id": "generic_keyword_oracle",
|
| 12 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 13 |
+
"path": "eval/tests/test_config_env.py",
|
| 14 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 15 |
+
"severity": "error",
|
| 16 |
+
"stage": "static_lint"
|
| 17 |
+
}
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_accessors_anonymous_binding",
|
| 22 |
+
"reasons": [
|
| 23 |
+
{
|
| 24 |
+
"id": "generic_keyword_oracle",
|
| 25 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 26 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 27 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 28 |
+
"severity": "error",
|
| 29 |
+
"stage": "static_lint"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_accessors_bind_dn_without_password_unable",
|
| 35 |
+
"reasons": [
|
| 36 |
+
{
|
| 37 |
+
"id": "generic_keyword_oracle",
|
| 38 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 39 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 40 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 41 |
+
"severity": "error",
|
| 42 |
+
"stage": "static_lint"
|
| 43 |
+
}
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_accessors_bind_password_without_dn_unable",
|
| 48 |
+
"reasons": [
|
| 49 |
+
{
|
| 50 |
+
"id": "generic_keyword_oracle",
|
| 51 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 52 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 53 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 54 |
+
"severity": "error",
|
| 55 |
+
"stage": "static_lint"
|
| 56 |
+
}
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_accessors_explicit_bind_attempting_to_bind",
|
| 61 |
+
"reasons": [
|
| 62 |
+
{
|
| 63 |
+
"id": "generic_keyword_oracle",
|
| 64 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 65 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 66 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 67 |
+
"severity": "error",
|
| 68 |
+
"stage": "static_lint"
|
| 69 |
+
}
|
| 70 |
+
]
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_bind_password_file_is_directory_panics",
|
| 74 |
+
"reasons": [
|
| 75 |
+
{
|
| 76 |
+
"id": "generic_keyword_oracle",
|
| 77 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 78 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 79 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 80 |
+
"severity": "error",
|
| 81 |
+
"stage": "static_lint"
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_bind_password_file_missing_panics",
|
| 87 |
+
"reasons": [
|
| 88 |
+
{
|
| 89 |
+
"id": "generic_keyword_oracle",
|
| 90 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 91 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 92 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 93 |
+
"severity": "error",
|
| 94 |
+
"stage": "static_lint"
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
},
|
| 98 |
+
{
|
| 99 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_default_port_389_and_ssl_default_636",
|
| 100 |
+
"reasons": [
|
| 101 |
+
{
|
| 102 |
+
"id": "generic_keyword_oracle",
|
| 103 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 104 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 105 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 106 |
+
"severity": "error",
|
| 107 |
+
"stage": "static_lint"
|
| 108 |
+
}
|
| 109 |
+
]
|
| 110 |
+
},
|
| 111 |
+
{
|
| 112 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_explicit_scheme_ldaps_with_port",
|
| 113 |
+
"reasons": [
|
| 114 |
+
{
|
| 115 |
+
"id": "generic_keyword_oracle",
|
| 116 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 117 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 118 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 119 |
+
"severity": "error",
|
| 120 |
+
"stage": "static_lint"
|
| 121 |
+
}
|
| 122 |
+
]
|
| 123 |
+
},
|
| 124 |
+
{
|
| 125 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_mail_field_custom_reaches_search",
|
| 126 |
+
"reasons": [
|
| 127 |
+
{
|
| 128 |
+
"id": "generic_keyword_oracle",
|
| 129 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 130 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 131 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 132 |
+
"severity": "error",
|
| 133 |
+
"stage": "static_lint"
|
| 134 |
+
}
|
| 135 |
+
]
|
| 136 |
+
},
|
| 137 |
+
{
|
| 138 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_no_tls_verify_and_starttls_flag_accepted",
|
| 139 |
+
"reasons": [
|
| 140 |
+
{
|
| 141 |
+
"id": "generic_keyword_oracle",
|
| 142 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 143 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 144 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 145 |
+
"severity": "error",
|
| 146 |
+
"stage": "static_lint"
|
| 147 |
+
}
|
| 148 |
+
]
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"name": "eval.tests.test_config_ldap_accessors.test_ldap_search_base_dn_and_filter_reach_search",
|
| 152 |
+
"reasons": [
|
| 153 |
+
{
|
| 154 |
+
"id": "generic_keyword_oracle",
|
| 155 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 156 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 157 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 158 |
+
"severity": "error",
|
| 159 |
+
"stage": "static_lint"
|
| 160 |
+
},
|
| 161 |
+
{
|
| 162 |
+
"id": "test_network_dependency",
|
| 163 |
+
"message": "test appears to depend on networking",
|
| 164 |
+
"path": "eval/tests/test_config_ldap_accessors.py",
|
| 165 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 166 |
+
"severity": "error",
|
| 167 |
+
"stage": "static_lint"
|
| 168 |
+
}
|
| 169 |
+
]
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "eval.tests.test_config_sync_loop.test_sync_loop_counts_climb_on_repeated_failure",
|
| 173 |
+
"reasons": [
|
| 174 |
+
{
|
| 175 |
+
"id": "generic_keyword_oracle",
|
| 176 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 177 |
+
"path": "eval/tests/test_config_sync_loop.py",
|
| 178 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 179 |
+
"severity": "error",
|
| 180 |
+
"stage": "static_lint"
|
| 181 |
+
}
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "eval.tests.test_config_sync_loop.test_sync_loop_false_single_shot_no_retry",
|
| 186 |
+
"reasons": [
|
| 187 |
+
{
|
| 188 |
+
"id": "generic_keyword_oracle",
|
| 189 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 190 |
+
"path": "eval/tests/test_config_sync_loop.py",
|
| 191 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 192 |
+
"severity": "error",
|
| 193 |
+
"stage": "static_lint"
|
| 194 |
+
}
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"name": "eval.tests.test_typed_accessors.test_admin_token_file_is_directory_panics",
|
| 199 |
+
"reasons": [
|
| 200 |
+
{
|
| 201 |
+
"id": "generic_keyword_oracle",
|
| 202 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 203 |
+
"path": "eval/tests/test_typed_accessors.py",
|
| 204 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 205 |
+
"severity": "error",
|
| 206 |
+
"stage": "static_lint"
|
| 207 |
+
}
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name": "eval.tests.test_typed_accessors.test_admin_token_file_missing_panics",
|
| 212 |
+
"reasons": [
|
| 213 |
+
{
|
| 214 |
+
"id": "generic_keyword_oracle",
|
| 215 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 216 |
+
"path": "eval/tests/test_typed_accessors.py",
|
| 217 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 218 |
+
"severity": "error",
|
| 219 |
+
"stage": "static_lint"
|
| 220 |
+
}
|
| 221 |
+
]
|
| 222 |
+
}
|
| 223 |
+
],
|
| 224 |
+
"tests": [
|
| 225 |
+
"eval.tests.test_config_env.test_env_admin_token_from_env_value",
|
| 226 |
+
"eval.tests.test_config_env.test_env_boolean_type_error[no_tls_verify]",
|
| 227 |
+
"eval.tests.test_config_env.test_env_boolean_type_error[ssl]",
|
| 228 |
+
"eval.tests.test_config_env.test_env_boolean_type_error[starttls]",
|
| 229 |
+
"eval.tests.test_config_env.test_env_boolean_type_error[sync_loop]",
|
| 230 |
+
"eval.tests.test_config_env.test_env_config_ignores_non_prefixed_same_named_vars",
|
| 231 |
+
"eval.tests.test_config_env.test_env_empty_panics_with_first_required_field",
|
| 232 |
+
"eval.tests.test_config_env.test_env_fallback_after_invalid_file",
|
| 233 |
+
"eval.tests.test_config_env.test_env_fallback_after_missing_file",
|
| 234 |
+
"eval.tests.test_config_env.test_env_missing_required_field_panics[APP_LDAP_HOST-ldap_host]",
|
| 235 |
+
"eval.tests.test_config_env.test_env_missing_required_field_panics[APP_LDAP_SEARCH_BASE_DN-ldap_search_base_dn]",
|
| 236 |
+
"eval.tests.test_config_env.test_env_missing_required_field_panics[APP_LDAP_SEARCH_FILTER-ldap_search_filter]",
|
| 237 |
+
"eval.tests.test_config_env.test_env_missing_required_field_panics[APP_VAULTWARDEN_URL-vaultwarden_url]",
|
| 238 |
+
"eval.tests.test_config_env.test_env_port_type_error[non-numeric]",
|
| 239 |
+
"eval.tests.test_config_env.test_env_port_type_error[over-u16-max]",
|
| 240 |
+
"eval.tests.test_config_env.test_env_sync_interval_type_error",
|
| 241 |
+
"eval.tests.test_config_env.test_env_unknown_field_rejected",
|
| 242 |
+
"eval.tests.test_config_env.test_env_valid_boundary_transport_combinations",
|
| 243 |
+
"eval.tests.test_config_env.test_valid_env_config_loads_and_propagates_url[port-5555]",
|
| 244 |
+
"eval.tests.test_config_env.test_valid_env_config_loads_and_propagates_url[port-8443]",
|
| 245 |
+
"eval.tests.test_config_env.test_valid_env_config_loads_and_propagates_url[port-9999]",
|
| 246 |
+
"eval.tests.test_config_file_errors.test_boolean_field_wrong_type_rejected[no_tls_verify-str]",
|
| 247 |
+
"eval.tests.test_config_file_errors.test_boolean_field_wrong_type_rejected[ssl-str]",
|
| 248 |
+
"eval.tests.test_config_file_errors.test_boolean_field_wrong_type_rejected[starttls-int]",
|
| 249 |
+
"eval.tests.test_config_file_errors.test_boolean_field_wrong_type_rejected[sync_loop-str]",
|
| 250 |
+
"eval.tests.test_config_file_errors.test_config_path_is_directory",
|
| 251 |
+
"eval.tests.test_config_file_errors.test_config_path_nonexistent",
|
| 252 |
+
"eval.tests.test_config_file_errors.test_empty_config_file_missing_required_field",
|
| 253 |
+
"eval.tests.test_config_file_errors.test_invalid_toml_syntax",
|
| 254 |
+
"eval.tests.test_config_file_errors.test_ldap_port_float_rejected",
|
| 255 |
+
"eval.tests.test_config_file_errors.test_ldap_port_out_of_u16_range_rejected[negative]",
|
| 256 |
+
"eval.tests.test_config_file_errors.test_ldap_port_out_of_u16_range_rejected[over-u16-max]",
|
| 257 |
+
"eval.tests.test_config_file_errors.test_ldap_port_valid_boundary_65535_parses",
|
| 258 |
+
"eval.tests.test_config_file_errors.test_ldap_sync_interval_zero_parses",
|
| 259 |
+
"eval.tests.test_config_file_errors.test_missing_required_field_rejected[ldap_host]",
|
| 260 |
+
"eval.tests.test_config_file_errors.test_missing_required_field_rejected[ldap_search_base_dn]",
|
| 261 |
+
"eval.tests.test_config_file_errors.test_missing_required_field_rejected[ldap_search_filter]",
|
| 262 |
+
"eval.tests.test_config_file_errors.test_missing_required_field_rejected[vaultwarden_url]",
|
| 263 |
+
"eval.tests.test_config_file_errors.test_no_config_file_falls_back_to_empty_env",
|
| 264 |
+
"eval.tests.test_config_file_errors.test_sync_interval_invalid_type_rejected[float]",
|
| 265 |
+
"eval.tests.test_config_file_errors.test_sync_interval_invalid_type_rejected[negative]",
|
| 266 |
+
"eval.tests.test_config_file_errors.test_sync_interval_invalid_type_rejected[string]",
|
| 267 |
+
"eval.tests.test_config_file_errors.test_unknown_field_rejected",
|
| 268 |
+
"eval.tests.test_config_file_loading.test_config_path_absolute",
|
| 269 |
+
"eval.tests.test_config_file_loading.test_config_read_from_file_takes_precedence_over_env",
|
| 270 |
+
"eval.tests.test_config_file_loading.test_custom_config_path_via_env[alt]",
|
| 271 |
+
"eval.tests.test_config_file_loading.test_custom_config_path_via_env[myconf]",
|
| 272 |
+
"eval.tests.test_config_file_loading.test_default_config_path_is_config_toml_in_cwd",
|
| 273 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-1234]",
|
| 274 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-1]",
|
| 275 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-40000]",
|
| 276 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-54321]",
|
| 277 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-9]",
|
| 278 |
+
"eval.tests.test_config_file_loading.test_valid_config_loads_and_propagates_url[port-max-65535]",
|
| 279 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_anonymous_binding",
|
| 280 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_bind_dn_without_password_unable",
|
| 281 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_bind_password_without_dn_unable",
|
| 282 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_explicit_bind_attempting_to_bind",
|
| 283 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_reach_connect_without_binding[dn-only]",
|
| 284 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_reach_connect_without_binding[no-bind]",
|
| 285 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_accessors_reach_connect_without_binding[pw-only]",
|
| 286 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_bind_password_file_is_directory_panics",
|
| 287 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_bind_password_file_missing_panics",
|
| 288 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_bind_password_read_from_file[padded-file]",
|
| 289 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_bind_password_read_from_file[plain-file]",
|
| 290 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_default_port_389_and_ssl_default_636",
|
| 291 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_explicit_port_connects_to_that_port",
|
| 292 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_explicit_scheme_ldaps_with_port",
|
| 293 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_mail_field_custom_reaches_search",
|
| 294 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_no_tls_verify_and_starttls_flag_accepted",
|
| 295 |
+
"eval.tests.test_config_ldap_accessors.test_ldap_search_base_dn_and_filter_reach_search",
|
| 296 |
+
"eval.tests.test_config_ldap_accessors.test_root_cert_empty_skips_cert_loading",
|
| 297 |
+
"eval.tests.test_config_ldap_accessors.test_root_cert_missing_panics_on_reachable_vaultwarden",
|
| 298 |
+
"eval.tests.test_config_ldap_accessors.test_vaultwarden_auth_missing_cookie_panics",
|
| 299 |
+
"eval.tests.test_config_ldap_accessors.test_vaultwarden_users_endpoint_disabled_user_propagates",
|
| 300 |
+
"eval.tests.test_config_ldap_accessors.test_vaultwarden_users_endpoint_existing_user_propagates",
|
| 301 |
+
"eval.tests.test_config_ldap_accessors.test_vaultwarden_users_json_alias_email_field",
|
| 302 |
+
"eval.tests.test_config_sync_loop.test_mail_field_parse_variants[emailAddress]",
|
| 303 |
+
"eval.tests.test_config_sync_loop.test_mail_field_parse_variants[email]",
|
| 304 |
+
"eval.tests.test_config_sync_loop.test_mail_field_parse_variants[mail]",
|
| 305 |
+
"eval.tests.test_config_sync_loop.test_rich_config_env_variant_deserializes",
|
| 306 |
+
"eval.tests.test_config_sync_loop.test_rich_config_with_all_optionals_deserializes",
|
| 307 |
+
"eval.tests.test_config_sync_loop.test_scheme_parse_variants[scheme-ldap]",
|
| 308 |
+
"eval.tests.test_config_sync_loop.test_scheme_parse_variants[scheme-ldaps]",
|
| 309 |
+
"eval.tests.test_config_sync_loop.test_ssl_parse_variants[ssl-false]",
|
| 310 |
+
"eval.tests.test_config_sync_loop.test_ssl_parse_variants[ssl-true]",
|
| 311 |
+
"eval.tests.test_config_sync_loop.test_sync_loop_counts_climb_on_repeated_failure",
|
| 312 |
+
"eval.tests.test_config_sync_loop.test_sync_loop_false_single_shot_no_retry",
|
| 313 |
+
"eval.tests.test_config_sync_loop.test_sync_loop_true_retries_then_fails[interval-0]",
|
| 314 |
+
"eval.tests.test_config_sync_loop.test_sync_loop_true_retries_then_fails[interval-1]",
|
| 315 |
+
"eval.tests.test_typed_accessors.test_admin_token_file_is_directory_panics",
|
| 316 |
+
"eval.tests.test_typed_accessors.test_admin_token_file_missing_panics",
|
| 317 |
+
"eval.tests.test_typed_accessors.test_admin_token_from_value_accepted[long]",
|
| 318 |
+
"eval.tests.test_typed_accessors.test_admin_token_from_value_accepted[plain]",
|
| 319 |
+
"eval.tests.test_typed_accessors.test_admin_token_from_value_accepted[special-chars]",
|
| 320 |
+
"eval.tests.test_typed_accessors.test_admin_token_from_value_overrides_missing_token_file",
|
| 321 |
+
"eval.tests.test_typed_accessors.test_admin_token_read_from_file[empty]",
|
| 322 |
+
"eval.tests.test_typed_accessors.test_admin_token_read_from_file[multiline]",
|
| 323 |
+
"eval.tests.test_typed_accessors.test_admin_token_read_from_file[padded]",
|
| 324 |
+
"eval.tests.test_typed_accessors.test_admin_token_read_from_file[plain]",
|
| 325 |
+
"eval.tests.test_typed_accessors.test_no_admin_token_panics",
|
| 326 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[mail-email]",
|
| 327 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[mail-mail]",
|
| 328 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[no_tls_verify-true]",
|
| 329 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[port-389]",
|
| 330 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[port-636]",
|
| 331 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[scheme-ldap]",
|
| 332 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[scheme-ldaps]",
|
| 333 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[ssl-false]",
|
| 334 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[ssl-true]",
|
| 335 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[starttls-true]",
|
| 336 |
+
"eval.tests.test_typed_accessors.test_optional_ldap_fields_deserialize[sync-interval-10]",
|
| 337 |
+
"eval.tests.test_typed_accessors.test_root_cert_default_empty_skips_loading",
|
| 338 |
+
"eval.tests.test_typed_accessors.test_root_cert_empty_string_in_file_is_trusted_path",
|
| 339 |
+
"eval.tests.test_typed_accessors.test_root_cert_missing_path_panics_at_request"
|
| 340 |
+
]
|
| 341 |
+
},
|
| 342 |
+
"generated_module_02": {
|
| 343 |
+
"ignore_reason": "",
|
| 344 |
+
"ignored": false,
|
| 345 |
+
"ignored_tests": [],
|
| 346 |
+
"tests": [
|
| 347 |
+
"eval.tests.test_auth.test_auth_204_no_content_with_cookie_is_success",
|
| 348 |
+
"eval.tests.test_auth.test_auth_captures_cookie_then_uses_it_on_users_get",
|
| 349 |
+
"eval.tests.test_auth.test_auth_cookie_with_non_utf8_value_panics_no_cookie",
|
| 350 |
+
"eval.tests.test_auth.test_auth_form_content_type_is_urlencoded",
|
| 351 |
+
"eval.tests.test_auth.test_auth_http_error_status[400-auth_status_400]",
|
| 352 |
+
"eval.tests.test_auth.test_auth_http_error_status[401-auth_status_401]",
|
| 353 |
+
"eval.tests.test_auth.test_auth_http_error_status[403-auth_status_403]",
|
| 354 |
+
"eval.tests.test_auth.test_auth_http_error_status[404-auth_status_404]",
|
| 355 |
+
"eval.tests.test_auth.test_auth_http_error_status[429-auth_status_429]",
|
| 356 |
+
"eval.tests.test_auth.test_auth_http_error_status[500-auth_status_500]",
|
| 357 |
+
"eval.tests.test_auth.test_auth_http_error_status[502-auth_status_502]",
|
| 358 |
+
"eval.tests.test_auth.test_auth_missing_set_cookie_is_api_error",
|
| 359 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[1234567890]",
|
| 360 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[Roughly.base64.Long.Token.001]",
|
| 361 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[TOKEN_WITH_UPPER]",
|
| 362 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[a b&c=d;%]",
|
| 363 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[a+b/c?d=e&f=%20#~]",
|
| 364 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[admin]",
|
| 365 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[secret-tok-123]",
|
| 366 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[token.with.dots_and-underscores]",
|
| 367 |
+
"eval.tests.test_auth.test_auth_posts_admin_token_as_form_body[user@example.com:pass]",
|
| 368 |
+
"eval.tests.test_auth.test_auth_redirect_with_set_cookie_authenticates",
|
| 369 |
+
"eval.tests.test_auth.test_auth_redirect_without_cookie_is_api_error",
|
| 370 |
+
"eval.tests.test_auth.test_auth_set_cookie_present_but_nonempty_accepted[ ]",
|
| 371 |
+
"eval.tests.test_auth.test_auth_set_cookie_present_but_nonempty_accepted[]",
|
| 372 |
+
"eval.tests.test_auth.test_auth_set_cookie_present_but_nonempty_accepted[garbage]",
|
| 373 |
+
"eval.tests.test_auth.test_single_authentication_reused_across_calls",
|
| 374 |
+
"eval.tests.test_cert.test_invalid_der_root_cert_panics_load[-empty]",
|
| 375 |
+
"eval.tests.test_cert.test_invalid_der_root_cert_panics_load[\\x00\\x01\\x02\\x03-binary]",
|
| 376 |
+
"eval.tests.test_cert.test_invalid_der_root_cert_panics_load[this is definitely not a der cert-text]",
|
| 377 |
+
"eval.tests.test_cert.test_missing_root_cert_file_panics_open",
|
| 378 |
+
"eval.tests.test_cert.test_no_root_cert_runs_plain_http",
|
| 379 |
+
"eval.tests.test_cert.test_valid_der_root_cert_accepted",
|
| 380 |
+
"eval.tests.test_config.test_no_token_anywhere_panics",
|
| 381 |
+
"eval.tests.test_config.test_token_file_beats_nothing_in_toml",
|
| 382 |
+
"eval.tests.test_config.test_token_from_env_reaches_auth_form",
|
| 383 |
+
"eval.tests.test_config.test_token_from_file_reaches_auth_form",
|
| 384 |
+
"eval.tests.test_cookie.test_cookie_reused_without_reauthentication_on_invite",
|
| 385 |
+
"eval.tests.test_cookie.test_fresh_client_authenticates_once_on_first_call",
|
| 386 |
+
"eval.tests.test_cookie.test_repeated_runs_authenticate_anew_each_time",
|
| 387 |
+
"eval.tests.test_invite.test_disabled_existing_user_skipped_and_still_no_invite",
|
| 388 |
+
"eval.tests.test_invite.test_existing_user_skipped_case_insensitive[BOB@X.COM-bob@x.com]",
|
| 389 |
+
"eval.tests.test_invite.test_existing_user_skipped_case_insensitive[MiXeD@X.com-mIxEd@x.com]",
|
| 390 |
+
"eval.tests.test_invite.test_existing_user_skipped_case_insensitive[bob@x.com-BOB@X.COM]",
|
| 391 |
+
"eval.tests.test_invite.test_existing_user_skipped_case_insensitive[bob@x.com-bob@x.com]",
|
| 392 |
+
"eval.tests.test_invite.test_invite_all_users_already_exist_reports_zero",
|
| 393 |
+
"eval.tests.test_invite.test_invite_duplicate_email_in_ldap_invited_per_entry",
|
| 394 |
+
"eval.tests.test_invite.test_invite_empty_ldap_search_skips_invite_phase",
|
| 395 |
+
"eval.tests.test_invite.test_invite_error_stops_remaining_invites",
|
| 396 |
+
"eval.tests.test_invite.test_invite_http_error_status[400-invite_status_400]",
|
| 397 |
+
"eval.tests.test_invite.test_invite_http_error_status[401-invite_status_401]",
|
| 398 |
+
"eval.tests.test_invite.test_invite_http_error_status[403-invite_status_403]",
|
| 399 |
+
"eval.tests.test_invite.test_invite_http_error_status[404-invite_status_404]",
|
| 400 |
+
"eval.tests.test_invite.test_invite_http_error_status[429-invite_status_429]",
|
| 401 |
+
"eval.tests.test_invite.test_invite_http_error_status[500-invite_status_500]",
|
| 402 |
+
"eval.tests.test_invite.test_invite_http_error_status[502-invite_status_502]",
|
| 403 |
+
"eval.tests.test_invite.test_invite_http_error_status[503-invite_status_503]",
|
| 404 |
+
"eval.tests.test_invite.test_invite_mixed_existing_and_new_users",
|
| 405 |
+
"eval.tests.test_invite.test_invite_multiple_ldap_users_each_invited",
|
| 406 |
+
"eval.tests.test_invite.test_invite_posts_json_content_type[json+plus@x.com]",
|
| 407 |
+
"eval.tests.test_invite.test_invite_posts_json_content_type[quote\"semi;@x.com]",
|
| 408 |
+
"eval.tests.test_invite.test_invite_posts_json_content_type[uni-code@t\\xe9st.example.com]",
|
| 409 |
+
"eval.tests.test_invite.test_invite_redirect_is_treated_as_success",
|
| 410 |
+
"eval.tests.test_invite.test_invite_sends_json_email[UPPER@X.COM]",
|
| 411 |
+
"eval.tests.test_invite.test_invite_sends_json_email[a-b_c@sub.example.co]",
|
| 412 |
+
"eval.tests.test_invite.test_invite_sends_json_email[alice@new.com]",
|
| 413 |
+
"eval.tests.test_invite.test_invite_sends_json_email[bob@example.org]",
|
| 414 |
+
"eval.tests.test_invite.test_invite_sends_json_email[carol+tag@x.io]",
|
| 415 |
+
"eval.tests.test_invite.test_invite_takes_first_of_multiple_mail_values",
|
| 416 |
+
"eval.tests.test_invite.test_invite_uses_configured_mail_field_from_ldap[EMail]",
|
| 417 |
+
"eval.tests.test_invite.test_invite_uses_configured_mail_field_from_ldap[e-mail-address]",
|
| 418 |
+
"eval.tests.test_invite.test_invite_uses_configured_mail_field_from_ldap[email]",
|
| 419 |
+
"eval.tests.test_invite.test_invite_uses_configured_mail_field_from_ldap[mail]",
|
| 420 |
+
"eval.tests.test_invite.test_ldap_entry_without_mail_field_warns_with_uid",
|
| 421 |
+
"eval.tests.test_invite.test_ldap_entry_without_uid_or_mail_warns_generic",
|
| 422 |
+
"eval.tests.test_users.test_users_204_no_content_is_decode_error",
|
| 423 |
+
"eval.tests.test_users.test_users_any_redirect_is_decode_error[301-users_redir_301]",
|
| 424 |
+
"eval.tests.test_users.test_users_any_redirect_is_decode_error[303-users_redir_303]",
|
| 425 |
+
"eval.tests.test_users.test_users_any_redirect_is_decode_error[307-users_redir_307]",
|
| 426 |
+
"eval.tests.test_users.test_users_disabled_user_reported[_Status]",
|
| 427 |
+
"eval.tests.test_users.test_users_disabled_user_reported[_status]",
|
| 428 |
+
"eval.tests.test_users.test_users_duplicate_emails_each_reported",
|
| 429 |
+
"eval.tests.test_users.test_users_email_value_preserved_in_line[ ]",
|
| 430 |
+
"eval.tests.test_users.test_users_email_value_preserved_in_line[UPPER@X.COM]",
|
| 431 |
+
"eval.tests.test_users.test_users_email_value_preserved_in_line[]",
|
| 432 |
+
"eval.tests.test_users.test_users_email_value_preserved_in_line[user@example.org]",
|
| 433 |
+
"eval.tests.test_users.test_users_empty_body_is_decode_error",
|
| 434 |
+
"eval.tests.test_users.test_users_empty_list_invites_zero",
|
| 435 |
+
"eval.tests.test_users.test_users_extra_unknown_fields_ignored",
|
| 436 |
+
"eval.tests.test_users.test_users_http_error_status[400-users_status_400]",
|
| 437 |
+
"eval.tests.test_users.test_users_http_error_status[401-users_status_401]",
|
| 438 |
+
"eval.tests.test_users.test_users_http_error_status[403-users_status_403]",
|
| 439 |
+
"eval.tests.test_users.test_users_http_error_status[404-users_status_404]",
|
| 440 |
+
"eval.tests.test_users.test_users_http_error_status[410-users_status_410]",
|
| 441 |
+
"eval.tests.test_users.test_users_http_error_status[500-users_status_500]",
|
| 442 |
+
"eval.tests.test_users.test_users_http_error_status[502-users_status_502]",
|
| 443 |
+
"eval.tests.test_users.test_users_http_error_status[503-users_status_503]",
|
| 444 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[\"just a string\"-users_malformed_string_not_array]",
|
| 445 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[[{\"_status\":0}]-users_malformed_missing_email]",
|
| 446 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[[{\"email\":\"a@x.com\",\"_status\":\"two\"}]-users_malformed_noninteger_status]",
|
| 447 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[[{\"email\":\"a@x.com\",\"_status\":0},{\"email\":\"b@x.com\"}]-users_malformed_partial_element]",
|
| 448 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[[{\"email\":\"a@x.com\",\"_status\":null}]-users_malformed_null_status]",
|
| 449 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[[{\"email\":\"a@x.com\"}]-users_malformed_missing_status]",
|
| 450 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[{\"a\":1}-users_malformed_nonempty_object]",
|
| 451 |
+
"eval.tests.test_users.test_users_malformed_json_is_decode_error[{}-users_malformed_object_not_array]",
|
| 452 |
+
"eval.tests.test_users.test_users_many_users_each_reported_once",
|
| 453 |
+
"eval.tests.test_users.test_users_mixed_normal_and_disabled",
|
| 454 |
+
"eval.tests.test_users.test_users_non_disabled_status_is_normal[-1]",
|
| 455 |
+
"eval.tests.test_users.test_users_non_disabled_status_is_normal[0]",
|
| 456 |
+
"eval.tests.test_users.test_users_non_disabled_status_is_normal[1]",
|
| 457 |
+
"eval.tests.test_users.test_users_non_disabled_status_is_normal[3]",
|
| 458 |
+
"eval.tests.test_users.test_users_non_disabled_status_is_normal[4]",
|
| 459 |
+
"eval.tests.test_users.test_users_non_utf8_body_is_decode_error",
|
| 460 |
+
"eval.tests.test_users.test_users_normal_user_reported[[{\"Email\":\"alice@x.com\",\"_Status\":0}]]",
|
| 461 |
+
"eval.tests.test_users.test_users_normal_user_reported[[{\"Email\":\"alice@x.com\",\"_status\":0}]]",
|
| 462 |
+
"eval.tests.test_users.test_users_normal_user_reported[[{\"email\":\"alice@x.com\",\"_Status\":0}]]",
|
| 463 |
+
"eval.tests.test_users.test_users_normal_user_reported[[{\"email\":\"alice@x.com\",\"_status\":0}]]",
|
| 464 |
+
"eval.tests.test_users.test_users_only_status_two_is_disabled",
|
| 465 |
+
"eval.tests.test_users.test_users_redirect_is_followed_as_success_without_cookie"
|
| 466 |
+
]
|
| 467 |
+
},
|
| 468 |
+
"generated_module_03": {
|
| 469 |
+
"ignore_reason": "",
|
| 470 |
+
"ignored": false,
|
| 471 |
+
"ignored_tests": [
|
| 472 |
+
{
|
| 473 |
+
"name": "eval.tests.test_config.test_admin_token_file_missing_panics",
|
| 474 |
+
"reasons": [
|
| 475 |
+
{
|
| 476 |
+
"id": "generic_keyword_oracle",
|
| 477 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 478 |
+
"path": "eval/tests/test_config.py",
|
| 479 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 480 |
+
"severity": "error",
|
| 481 |
+
"stage": "static_lint"
|
| 482 |
+
},
|
| 483 |
+
{
|
| 484 |
+
"id": "missing_fixture_assets",
|
| 485 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 486 |
+
"path": "eval/tests/test_config.py",
|
| 487 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 488 |
+
"severity": "error",
|
| 489 |
+
"stage": "static_lint"
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"id": "golden_written_in_test",
|
| 493 |
+
"message": "pytest test writes to its own golden file",
|
| 494 |
+
"path": "eval/tests/test_config.py",
|
| 495 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 496 |
+
"severity": "error",
|
| 497 |
+
"stage": "static_lint"
|
| 498 |
+
}
|
| 499 |
+
]
|
| 500 |
+
},
|
| 501 |
+
{
|
| 502 |
+
"name": "eval.tests.test_config.test_admin_token_read_from_file",
|
| 503 |
+
"reasons": [
|
| 504 |
+
{
|
| 505 |
+
"id": "missing_fixture_assets",
|
| 506 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 507 |
+
"path": "eval/tests/test_config.py",
|
| 508 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 509 |
+
"severity": "error",
|
| 510 |
+
"stage": "static_lint"
|
| 511 |
+
},
|
| 512 |
+
{
|
| 513 |
+
"id": "golden_written_in_test",
|
| 514 |
+
"message": "pytest test writes to its own golden file",
|
| 515 |
+
"path": "eval/tests/test_config.py",
|
| 516 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 517 |
+
"severity": "error",
|
| 518 |
+
"stage": "static_lint"
|
| 519 |
+
}
|
| 520 |
+
]
|
| 521 |
+
},
|
| 522 |
+
{
|
| 523 |
+
"name": "eval.tests.test_config.test_invalid_boolean_fail",
|
| 524 |
+
"reasons": [
|
| 525 |
+
{
|
| 526 |
+
"id": "generic_keyword_oracle",
|
| 527 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 528 |
+
"path": "eval/tests/test_config.py",
|
| 529 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 530 |
+
"severity": "error",
|
| 531 |
+
"stage": "static_lint"
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"id": "missing_fixture_assets",
|
| 535 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 536 |
+
"path": "eval/tests/test_config.py",
|
| 537 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 538 |
+
"severity": "error",
|
| 539 |
+
"stage": "static_lint"
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"id": "golden_written_in_test",
|
| 543 |
+
"message": "pytest test writes to its own golden file",
|
| 544 |
+
"path": "eval/tests/test_config.py",
|
| 545 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 546 |
+
"severity": "error",
|
| 547 |
+
"stage": "static_lint"
|
| 548 |
+
}
|
| 549 |
+
]
|
| 550 |
+
},
|
| 551 |
+
{
|
| 552 |
+
"name": "eval.tests.test_config.test_invalid_integer_port_to_fail",
|
| 553 |
+
"reasons": [
|
| 554 |
+
{
|
| 555 |
+
"id": "generic_keyword_oracle",
|
| 556 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 557 |
+
"path": "eval/tests/test_config.py",
|
| 558 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 559 |
+
"severity": "error",
|
| 560 |
+
"stage": "static_lint"
|
| 561 |
+
},
|
| 562 |
+
{
|
| 563 |
+
"id": "missing_fixture_assets",
|
| 564 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 565 |
+
"path": "eval/tests/test_config.py",
|
| 566 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 567 |
+
"severity": "error",
|
| 568 |
+
"stage": "static_lint"
|
| 569 |
+
},
|
| 570 |
+
{
|
| 571 |
+
"id": "golden_written_in_test",
|
| 572 |
+
"message": "pytest test writes to its own golden file",
|
| 573 |
+
"path": "eval/tests/test_config.py",
|
| 574 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 575 |
+
"severity": "error",
|
| 576 |
+
"stage": "static_lint"
|
| 577 |
+
}
|
| 578 |
+
]
|
| 579 |
+
},
|
| 580 |
+
{
|
| 581 |
+
"name": "eval.tests.test_config.test_invalid_interval_type_fail",
|
| 582 |
+
"reasons": [
|
| 583 |
+
{
|
| 584 |
+
"id": "generic_keyword_oracle",
|
| 585 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 586 |
+
"path": "eval/tests/test_config.py",
|
| 587 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 588 |
+
"severity": "error",
|
| 589 |
+
"stage": "static_lint"
|
| 590 |
+
},
|
| 591 |
+
{
|
| 592 |
+
"id": "missing_fixture_assets",
|
| 593 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 594 |
+
"path": "eval/tests/test_config.py",
|
| 595 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 596 |
+
"severity": "error",
|
| 597 |
+
"stage": "static_lint"
|
| 598 |
+
},
|
| 599 |
+
{
|
| 600 |
+
"id": "golden_written_in_test",
|
| 601 |
+
"message": "pytest test writes to its own golden file",
|
| 602 |
+
"path": "eval/tests/test_config.py",
|
| 603 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 604 |
+
"severity": "error",
|
| 605 |
+
"stage": "static_lint"
|
| 606 |
+
}
|
| 607 |
+
]
|
| 608 |
+
},
|
| 609 |
+
{
|
| 610 |
+
"name": "eval.tests.test_config.test_malformed_toml_fails",
|
| 611 |
+
"reasons": [
|
| 612 |
+
{
|
| 613 |
+
"id": "generic_keyword_oracle",
|
| 614 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 615 |
+
"path": "eval/tests/test_config.py",
|
| 616 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 617 |
+
"severity": "error",
|
| 618 |
+
"stage": "static_lint"
|
| 619 |
+
},
|
| 620 |
+
{
|
| 621 |
+
"id": "missing_fixture_assets",
|
| 622 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 623 |
+
"path": "eval/tests/test_config.py",
|
| 624 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 625 |
+
"severity": "error",
|
| 626 |
+
"stage": "static_lint"
|
| 627 |
+
},
|
| 628 |
+
{
|
| 629 |
+
"id": "golden_written_in_test",
|
| 630 |
+
"message": "pytest test writes to its own golden file",
|
| 631 |
+
"path": "eval/tests/test_config.py",
|
| 632 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 633 |
+
"severity": "error",
|
| 634 |
+
"stage": "static_lint"
|
| 635 |
+
}
|
| 636 |
+
]
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"name": "eval.tests.test_config.test_missing_config_file_then_env_fail",
|
| 640 |
+
"reasons": [
|
| 641 |
+
{
|
| 642 |
+
"id": "generic_keyword_oracle",
|
| 643 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 644 |
+
"path": "eval/tests/test_config.py",
|
| 645 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 646 |
+
"severity": "error",
|
| 647 |
+
"stage": "static_lint"
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"id": "missing_fixture_assets",
|
| 651 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 652 |
+
"path": "eval/tests/test_config.py",
|
| 653 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 654 |
+
"severity": "error",
|
| 655 |
+
"stage": "static_lint"
|
| 656 |
+
}
|
| 657 |
+
]
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"name": "eval.tests.test_config.test_wrong_type_port_to_fail",
|
| 661 |
+
"reasons": [
|
| 662 |
+
{
|
| 663 |
+
"id": "generic_keyword_oracle",
|
| 664 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 665 |
+
"path": "eval/tests/test_config.py",
|
| 666 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 667 |
+
"severity": "error",
|
| 668 |
+
"stage": "static_lint"
|
| 669 |
+
},
|
| 670 |
+
{
|
| 671 |
+
"id": "missing_fixture_assets",
|
| 672 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 673 |
+
"path": "eval/tests/test_config.py",
|
| 674 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 675 |
+
"severity": "error",
|
| 676 |
+
"stage": "static_lint"
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"id": "golden_written_in_test",
|
| 680 |
+
"message": "pytest test writes to its own golden file",
|
| 681 |
+
"path": "eval/tests/test_config.py",
|
| 682 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 683 |
+
"severity": "error",
|
| 684 |
+
"stage": "static_lint"
|
| 685 |
+
}
|
| 686 |
+
]
|
| 687 |
+
},
|
| 688 |
+
{
|
| 689 |
+
"name": "eval.tests.test_invite_batch_golden.test_all_missing_mail_warns_and_counts_zero",
|
| 690 |
+
"reasons": [
|
| 691 |
+
{
|
| 692 |
+
"id": "generic_keyword_oracle",
|
| 693 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 694 |
+
"path": "eval/tests/test_invite_batch_golden.py",
|
| 695 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 696 |
+
"severity": "error",
|
| 697 |
+
"stage": "static_lint"
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"id": "missing_fixture_assets",
|
| 701 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 702 |
+
"path": "eval/tests/test_invite_batch_golden.py",
|
| 703 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 704 |
+
"severity": "error",
|
| 705 |
+
"stage": "static_lint"
|
| 706 |
+
}
|
| 707 |
+
]
|
| 708 |
+
},
|
| 709 |
+
{
|
| 710 |
+
"name": "eval.tests.test_invite_batch_golden.test_rich_batch_exact_stdout_matches_golden",
|
| 711 |
+
"reasons": [
|
| 712 |
+
{
|
| 713 |
+
"id": "generic_keyword_oracle",
|
| 714 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 715 |
+
"path": "eval/tests/test_invite_batch_golden.py",
|
| 716 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 717 |
+
"severity": "error",
|
| 718 |
+
"stage": "static_lint"
|
| 719 |
+
},
|
| 720 |
+
{
|
| 721 |
+
"id": "missing_fixture_assets",
|
| 722 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 723 |
+
"path": "eval/tests/test_invite_batch_golden.py",
|
| 724 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 725 |
+
"severity": "error",
|
| 726 |
+
"stage": "static_lint"
|
| 727 |
+
}
|
| 728 |
+
]
|
| 729 |
+
},
|
| 730 |
+
{
|
| 731 |
+
"name": "eval.tests.test_invite_flow.test_custom_mail_field",
|
| 732 |
+
"reasons": [
|
| 733 |
+
{
|
| 734 |
+
"id": "generic_keyword_oracle",
|
| 735 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 736 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 737 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 738 |
+
"severity": "error",
|
| 739 |
+
"stage": "static_lint"
|
| 740 |
+
},
|
| 741 |
+
{
|
| 742 |
+
"id": "missing_fixture_assets",
|
| 743 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 744 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 745 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 746 |
+
"severity": "error",
|
| 747 |
+
"stage": "static_lint"
|
| 748 |
+
}
|
| 749 |
+
]
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"name": "eval.tests.test_invite_flow.test_existing_user_not_reinvited",
|
| 753 |
+
"reasons": [
|
| 754 |
+
{
|
| 755 |
+
"id": "generic_keyword_oracle",
|
| 756 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 757 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 758 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 759 |
+
"severity": "error",
|
| 760 |
+
"stage": "static_lint"
|
| 761 |
+
},
|
| 762 |
+
{
|
| 763 |
+
"id": "missing_fixture_assets",
|
| 764 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 765 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 766 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 767 |
+
"severity": "error",
|
| 768 |
+
"stage": "static_lint"
|
| 769 |
+
}
|
| 770 |
+
]
|
| 771 |
+
},
|
| 772 |
+
{
|
| 773 |
+
"name": "eval.tests.test_invite_flow.test_invite_failure_aborts",
|
| 774 |
+
"reasons": [
|
| 775 |
+
{
|
| 776 |
+
"id": "generic_keyword_oracle",
|
| 777 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 778 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 779 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 780 |
+
"severity": "error",
|
| 781 |
+
"stage": "static_lint"
|
| 782 |
+
},
|
| 783 |
+
{
|
| 784 |
+
"id": "missing_fixture_assets",
|
| 785 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 786 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 787 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 788 |
+
"severity": "error",
|
| 789 |
+
"stage": "static_lint"
|
| 790 |
+
}
|
| 791 |
+
]
|
| 792 |
+
},
|
| 793 |
+
{
|
| 794 |
+
"name": "eval.tests.test_invite_flow.test_invite_failure_after_partial_success",
|
| 795 |
+
"reasons": [
|
| 796 |
+
{
|
| 797 |
+
"id": "generic_keyword_oracle",
|
| 798 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 799 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 800 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 801 |
+
"severity": "error",
|
| 802 |
+
"stage": "static_lint"
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"id": "missing_fixture_assets",
|
| 806 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 807 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 808 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 809 |
+
"severity": "error",
|
| 810 |
+
"stage": "static_lint"
|
| 811 |
+
}
|
| 812 |
+
]
|
| 813 |
+
},
|
| 814 |
+
{
|
| 815 |
+
"name": "eval.tests.test_invite_flow.test_missing_mail_field_with_uid_warns",
|
| 816 |
+
"reasons": [
|
| 817 |
+
{
|
| 818 |
+
"id": "generic_keyword_oracle",
|
| 819 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 820 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 821 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 822 |
+
"severity": "error",
|
| 823 |
+
"stage": "static_lint"
|
| 824 |
+
},
|
| 825 |
+
{
|
| 826 |
+
"id": "missing_fixture_assets",
|
| 827 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 828 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 829 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 830 |
+
"severity": "error",
|
| 831 |
+
"stage": "static_lint"
|
| 832 |
+
}
|
| 833 |
+
]
|
| 834 |
+
},
|
| 835 |
+
{
|
| 836 |
+
"name": "eval.tests.test_invite_flow.test_missing_mail_field_without_uid_warns",
|
| 837 |
+
"reasons": [
|
| 838 |
+
{
|
| 839 |
+
"id": "generic_keyword_oracle",
|
| 840 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 841 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 842 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 843 |
+
"severity": "error",
|
| 844 |
+
"stage": "static_lint"
|
| 845 |
+
},
|
| 846 |
+
{
|
| 847 |
+
"id": "missing_fixture_assets",
|
| 848 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 849 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 850 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 851 |
+
"severity": "error",
|
| 852 |
+
"stage": "static_lint"
|
| 853 |
+
}
|
| 854 |
+
]
|
| 855 |
+
},
|
| 856 |
+
{
|
| 857 |
+
"name": "eval.tests.test_invite_flow.test_mixed_new_and_existing",
|
| 858 |
+
"reasons": [
|
| 859 |
+
{
|
| 860 |
+
"id": "missing_fixture_assets",
|
| 861 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 862 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 863 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 864 |
+
"severity": "error",
|
| 865 |
+
"stage": "static_lint"
|
| 866 |
+
}
|
| 867 |
+
]
|
| 868 |
+
},
|
| 869 |
+
{
|
| 870 |
+
"name": "eval.tests.test_invite_flow.test_multivalue_mail_sends_invite",
|
| 871 |
+
"reasons": [
|
| 872 |
+
{
|
| 873 |
+
"id": "generic_keyword_oracle",
|
| 874 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 875 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 876 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 877 |
+
"severity": "error",
|
| 878 |
+
"stage": "static_lint"
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"id": "missing_fixture_assets",
|
| 882 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 883 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 884 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 885 |
+
"severity": "error",
|
| 886 |
+
"stage": "static_lint"
|
| 887 |
+
}
|
| 888 |
+
]
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"name": "eval.tests.test_invite_flow.test_new_user_is_invited",
|
| 892 |
+
"reasons": [
|
| 893 |
+
{
|
| 894 |
+
"id": "generic_keyword_oracle",
|
| 895 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 896 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 897 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 898 |
+
"severity": "error",
|
| 899 |
+
"stage": "static_lint"
|
| 900 |
+
},
|
| 901 |
+
{
|
| 902 |
+
"id": "missing_fixture_assets",
|
| 903 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 904 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 905 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 906 |
+
"severity": "error",
|
| 907 |
+
"stage": "static_lint"
|
| 908 |
+
}
|
| 909 |
+
]
|
| 910 |
+
},
|
| 911 |
+
{
|
| 912 |
+
"name": "eval.tests.test_invite_flow.test_no_ldap_users_sends_none",
|
| 913 |
+
"reasons": [
|
| 914 |
+
{
|
| 915 |
+
"id": "generic_keyword_oracle",
|
| 916 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 917 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 918 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 919 |
+
"severity": "error",
|
| 920 |
+
"stage": "static_lint"
|
| 921 |
+
},
|
| 922 |
+
{
|
| 923 |
+
"id": "missing_fixture_assets",
|
| 924 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 925 |
+
"path": "eval/tests/test_invite_flow.py",
|
| 926 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 927 |
+
"severity": "error",
|
| 928 |
+
"stage": "static_lint"
|
| 929 |
+
}
|
| 930 |
+
]
|
| 931 |
+
},
|
| 932 |
+
{
|
| 933 |
+
"name": "eval.tests.test_ldap_connection.test_bind_without_username_rejected",
|
| 934 |
+
"reasons": [
|
| 935 |
+
{
|
| 936 |
+
"id": "generic_keyword_oracle",
|
| 937 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 938 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 939 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 940 |
+
"severity": "error",
|
| 941 |
+
"stage": "static_lint"
|
| 942 |
+
},
|
| 943 |
+
{
|
| 944 |
+
"id": "missing_fixture_assets",
|
| 945 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 946 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 947 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 948 |
+
"severity": "error",
|
| 949 |
+
"stage": "static_lint"
|
| 950 |
+
}
|
| 951 |
+
]
|
| 952 |
+
},
|
| 953 |
+
{
|
| 954 |
+
"name": "eval.tests.test_ldap_connection.test_ldap_connection_refused",
|
| 955 |
+
"reasons": [
|
| 956 |
+
{
|
| 957 |
+
"id": "generic_keyword_oracle",
|
| 958 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 959 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 960 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 961 |
+
"severity": "error",
|
| 962 |
+
"stage": "static_lint"
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"id": "missing_fixture_assets",
|
| 966 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 967 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 968 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 969 |
+
"severity": "error",
|
| 970 |
+
"stage": "static_lint"
|
| 971 |
+
},
|
| 972 |
+
{
|
| 973 |
+
"id": "golden_written_in_test",
|
| 974 |
+
"message": "pytest test writes to its own golden file",
|
| 975 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 976 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 977 |
+
"severity": "error",
|
| 978 |
+
"stage": "static_lint"
|
| 979 |
+
}
|
| 980 |
+
]
|
| 981 |
+
},
|
| 982 |
+
{
|
| 983 |
+
"name": "eval.tests.test_ldap_connection.test_ldap_search_no_such_object",
|
| 984 |
+
"reasons": [
|
| 985 |
+
{
|
| 986 |
+
"id": "generic_keyword_oracle",
|
| 987 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 988 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 989 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 990 |
+
"severity": "error",
|
| 991 |
+
"stage": "static_lint"
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"id": "missing_fixture_assets",
|
| 995 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 996 |
+
"path": "eval/tests/test_ldap_connection.py",
|
| 997 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 998 |
+
"severity": "error",
|
| 999 |
+
"stage": "static_lint"
|
| 1000 |
+
}
|
| 1001 |
+
]
|
| 1002 |
+
},
|
| 1003 |
+
{
|
| 1004 |
+
"name": "eval.tests.test_ldap_connection_settings.test_ldaps_default_port_636_connects_nowhere",
|
| 1005 |
+
"reasons": [
|
| 1006 |
+
{
|
| 1007 |
+
"id": "generic_keyword_oracle",
|
| 1008 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1009 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1010 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1011 |
+
"severity": "error",
|
| 1012 |
+
"stage": "static_lint"
|
| 1013 |
+
},
|
| 1014 |
+
{
|
| 1015 |
+
"id": "missing_fixture_assets",
|
| 1016 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1017 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1018 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1019 |
+
"severity": "error",
|
| 1020 |
+
"stage": "static_lint"
|
| 1021 |
+
},
|
| 1022 |
+
{
|
| 1023 |
+
"id": "golden_written_in_test",
|
| 1024 |
+
"message": "pytest test writes to its own golden file",
|
| 1025 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1026 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 1027 |
+
"severity": "error",
|
| 1028 |
+
"stage": "static_lint"
|
| 1029 |
+
}
|
| 1030 |
+
]
|
| 1031 |
+
},
|
| 1032 |
+
{
|
| 1033 |
+
"name": "eval.tests.test_ldap_connection_settings.test_ldaps_default_port_overridden_by_explicit",
|
| 1034 |
+
"reasons": [
|
| 1035 |
+
{
|
| 1036 |
+
"id": "generic_keyword_oracle",
|
| 1037 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1038 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1039 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1040 |
+
"severity": "error",
|
| 1041 |
+
"stage": "static_lint"
|
| 1042 |
+
},
|
| 1043 |
+
{
|
| 1044 |
+
"id": "missing_fixture_assets",
|
| 1045 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1046 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1047 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1048 |
+
"severity": "error",
|
| 1049 |
+
"stage": "static_lint"
|
| 1050 |
+
},
|
| 1051 |
+
{
|
| 1052 |
+
"id": "golden_written_in_test",
|
| 1053 |
+
"message": "pytest test writes to its own golden file",
|
| 1054 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1055 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 1056 |
+
"severity": "error",
|
| 1057 |
+
"stage": "static_lint"
|
| 1058 |
+
}
|
| 1059 |
+
]
|
| 1060 |
+
},
|
| 1061 |
+
{
|
| 1062 |
+
"name": "eval.tests.test_ldap_connection_settings.test_starttls_and_no_tls_verify_combined_fails",
|
| 1063 |
+
"reasons": [
|
| 1064 |
+
{
|
| 1065 |
+
"id": "generic_keyword_oracle",
|
| 1066 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1067 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1068 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1069 |
+
"severity": "error",
|
| 1070 |
+
"stage": "static_lint"
|
| 1071 |
+
},
|
| 1072 |
+
{
|
| 1073 |
+
"id": "missing_fixture_assets",
|
| 1074 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1075 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1076 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1077 |
+
"severity": "error",
|
| 1078 |
+
"stage": "static_lint"
|
| 1079 |
+
}
|
| 1080 |
+
]
|
| 1081 |
+
},
|
| 1082 |
+
{
|
| 1083 |
+
"name": "eval.tests.test_ldap_connection_settings.test_starttls_true_fails_on_plain_server",
|
| 1084 |
+
"reasons": [
|
| 1085 |
+
{
|
| 1086 |
+
"id": "generic_keyword_oracle",
|
| 1087 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1088 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1089 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1090 |
+
"severity": "error",
|
| 1091 |
+
"stage": "static_lint"
|
| 1092 |
+
},
|
| 1093 |
+
{
|
| 1094 |
+
"id": "missing_fixture_assets",
|
| 1095 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1096 |
+
"path": "eval/tests/test_ldap_connection_settings.py",
|
| 1097 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1098 |
+
"severity": "error",
|
| 1099 |
+
"stage": "static_lint"
|
| 1100 |
+
}
|
| 1101 |
+
]
|
| 1102 |
+
},
|
| 1103 |
+
{
|
| 1104 |
+
"name": "eval.tests.test_scheme.test_default_ldap_port_389_when_unspecified",
|
| 1105 |
+
"reasons": [
|
| 1106 |
+
{
|
| 1107 |
+
"id": "generic_keyword_oracle",
|
| 1108 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1109 |
+
"path": "eval/tests/test_scheme.py",
|
| 1110 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1111 |
+
"severity": "error",
|
| 1112 |
+
"stage": "static_lint"
|
| 1113 |
+
},
|
| 1114 |
+
{
|
| 1115 |
+
"id": "missing_fixture_assets",
|
| 1116 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1117 |
+
"path": "eval/tests/test_scheme.py",
|
| 1118 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1119 |
+
"severity": "error",
|
| 1120 |
+
"stage": "static_lint"
|
| 1121 |
+
},
|
| 1122 |
+
{
|
| 1123 |
+
"id": "golden_written_in_test",
|
| 1124 |
+
"message": "pytest test writes to its own golden file",
|
| 1125 |
+
"path": "eval/tests/test_scheme.py",
|
| 1126 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 1127 |
+
"severity": "error",
|
| 1128 |
+
"stage": "static_lint"
|
| 1129 |
+
}
|
| 1130 |
+
]
|
| 1131 |
+
},
|
| 1132 |
+
{
|
| 1133 |
+
"name": "eval.tests.test_scheme.test_ssl_selects_ldaps_scheme",
|
| 1134 |
+
"reasons": [
|
| 1135 |
+
{
|
| 1136 |
+
"id": "generic_keyword_oracle",
|
| 1137 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1138 |
+
"path": "eval/tests/test_scheme.py",
|
| 1139 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1140 |
+
"severity": "error",
|
| 1141 |
+
"stage": "static_lint"
|
| 1142 |
+
},
|
| 1143 |
+
{
|
| 1144 |
+
"id": "missing_fixture_assets",
|
| 1145 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1146 |
+
"path": "eval/tests/test_scheme.py",
|
| 1147 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1148 |
+
"severity": "error",
|
| 1149 |
+
"stage": "static_lint"
|
| 1150 |
+
}
|
| 1151 |
+
]
|
| 1152 |
+
},
|
| 1153 |
+
{
|
| 1154 |
+
"name": "eval.tests.test_sync_loop.test_sync_loop_defaults_to_on_and_runs_until_failure",
|
| 1155 |
+
"reasons": [
|
| 1156 |
+
{
|
| 1157 |
+
"detail": "assert \"thread 'main...min/invite)\\n\" == \"thread 'main...min/invite)\\n\" Skipping 97 identical leading characters in diff, use -v to show - vite user fa3@example.com ? ^^^ + vite user l1@example.com ?",
|
| 1158 |
+
"id": "gold_fail",
|
| 1159 |
+
"message": "test failed against the reference executable",
|
| 1160 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1161 |
+
"severity": "error",
|
| 1162 |
+
"stage": "gold_execution"
|
| 1163 |
+
},
|
| 1164 |
+
{
|
| 1165 |
+
"id": "generic_keyword_oracle",
|
| 1166 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1167 |
+
"path": "eval/tests/test_sync_loop.py",
|
| 1168 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1169 |
+
"severity": "error",
|
| 1170 |
+
"stage": "static_lint"
|
| 1171 |
+
},
|
| 1172 |
+
{
|
| 1173 |
+
"id": "missing_fixture_assets",
|
| 1174 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1175 |
+
"path": "eval/tests/test_sync_loop.py",
|
| 1176 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1177 |
+
"severity": "error",
|
| 1178 |
+
"stage": "static_lint"
|
| 1179 |
+
}
|
| 1180 |
+
]
|
| 1181 |
+
},
|
| 1182 |
+
{
|
| 1183 |
+
"name": "eval.tests.test_sync_loop.test_sync_loop_failure_counter_resets_on_success",
|
| 1184 |
+
"reasons": [
|
| 1185 |
+
{
|
| 1186 |
+
"detail": "AssertionError: assert 'Error inviting users from ldap. Count 1:' in 'Config read from file at config.toml\\nAnonymously binding\\nTry to invite user: l3@example.com\\nError inviting users f...:{closure#",
|
| 1187 |
+
"id": "gold_fail",
|
| 1188 |
+
"message": "test failed against the reference executable",
|
| 1189 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1190 |
+
"severity": "error",
|
| 1191 |
+
"stage": "gold_execution"
|
| 1192 |
+
},
|
| 1193 |
+
{
|
| 1194 |
+
"id": "generic_keyword_oracle",
|
| 1195 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1196 |
+
"path": "eval/tests/test_sync_loop.py",
|
| 1197 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1198 |
+
"severity": "error",
|
| 1199 |
+
"stage": "static_lint"
|
| 1200 |
+
}
|
| 1201 |
+
]
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"name": "eval.tests.test_sync_loop.test_sync_loop_failure_limit_is_six_total",
|
| 1205 |
+
"reasons": [
|
| 1206 |
+
{
|
| 1207 |
+
"detail": "assert \"thread 'main...min/invite)\\n\" == \"thread 'main...min/invite)\\n\" Skipping 97 identical leading characters in diff, use -v to show - vite user fa3@example.com ? ^^^ + vite user l2@example.com ?",
|
| 1208 |
+
"id": "gold_fail",
|
| 1209 |
+
"message": "test failed against the reference executable",
|
| 1210 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 1211 |
+
"severity": "error",
|
| 1212 |
+
"stage": "gold_execution"
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"id": "generic_keyword_oracle",
|
| 1216 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1217 |
+
"path": "eval/tests/test_sync_loop.py",
|
| 1218 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1219 |
+
"severity": "error",
|
| 1220 |
+
"stage": "static_lint"
|
| 1221 |
+
},
|
| 1222 |
+
{
|
| 1223 |
+
"id": "missing_fixture_assets",
|
| 1224 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1225 |
+
"path": "eval/tests/test_sync_loop.py",
|
| 1226 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1227 |
+
"severity": "error",
|
| 1228 |
+
"stage": "static_lint"
|
| 1229 |
+
}
|
| 1230 |
+
]
|
| 1231 |
+
},
|
| 1232 |
+
{
|
| 1233 |
+
"name": "eval.tests.test_sync_loop_continue.test_sync_loop_empty_ldap_keeps_running",
|
| 1234 |
+
"reasons": [
|
| 1235 |
+
{
|
| 1236 |
+
"id": "generic_keyword_oracle",
|
| 1237 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1238 |
+
"path": "eval/tests/test_sync_loop_continue.py",
|
| 1239 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1240 |
+
"severity": "error",
|
| 1241 |
+
"stage": "static_lint"
|
| 1242 |
+
}
|
| 1243 |
+
]
|
| 1244 |
+
},
|
| 1245 |
+
{
|
| 1246 |
+
"name": "eval.tests.test_sync_loop_continue.test_sync_loop_missing_uid_warns_each_iteration",
|
| 1247 |
+
"reasons": [
|
| 1248 |
+
{
|
| 1249 |
+
"id": "generic_keyword_oracle",
|
| 1250 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1251 |
+
"path": "eval/tests/test_sync_loop_continue.py",
|
| 1252 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1253 |
+
"severity": "error",
|
| 1254 |
+
"stage": "static_lint"
|
| 1255 |
+
}
|
| 1256 |
+
]
|
| 1257 |
+
},
|
| 1258 |
+
{
|
| 1259 |
+
"name": "eval.tests.test_sync_loop_continue.test_sync_loop_new_user_invited_and_loops",
|
| 1260 |
+
"reasons": [
|
| 1261 |
+
{
|
| 1262 |
+
"id": "generic_keyword_oracle",
|
| 1263 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1264 |
+
"path": "eval/tests/test_sync_loop_continue.py",
|
| 1265 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1266 |
+
"severity": "error",
|
| 1267 |
+
"stage": "static_lint"
|
| 1268 |
+
}
|
| 1269 |
+
]
|
| 1270 |
+
},
|
| 1271 |
+
{
|
| 1272 |
+
"name": "eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_ldap_search_failure",
|
| 1273 |
+
"reasons": [
|
| 1274 |
+
{
|
| 1275 |
+
"id": "generic_keyword_oracle",
|
| 1276 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1277 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1278 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1279 |
+
"severity": "error",
|
| 1280 |
+
"stage": "static_lint"
|
| 1281 |
+
},
|
| 1282 |
+
{
|
| 1283 |
+
"id": "missing_fixture_assets",
|
| 1284 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1285 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1286 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1287 |
+
"severity": "error",
|
| 1288 |
+
"stage": "static_lint"
|
| 1289 |
+
}
|
| 1290 |
+
]
|
| 1291 |
+
},
|
| 1292 |
+
{
|
| 1293 |
+
"name": "eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_persistent_invite_failure",
|
| 1294 |
+
"reasons": [
|
| 1295 |
+
{
|
| 1296 |
+
"id": "generic_keyword_oracle",
|
| 1297 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1298 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1299 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1300 |
+
"severity": "error",
|
| 1301 |
+
"stage": "static_lint"
|
| 1302 |
+
},
|
| 1303 |
+
{
|
| 1304 |
+
"id": "missing_fixture_assets",
|
| 1305 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1306 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1307 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1308 |
+
"severity": "error",
|
| 1309 |
+
"stage": "static_lint"
|
| 1310 |
+
}
|
| 1311 |
+
]
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"name": "eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_vaultwarden_users_failure",
|
| 1315 |
+
"reasons": [
|
| 1316 |
+
{
|
| 1317 |
+
"id": "generic_keyword_oracle",
|
| 1318 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1319 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1320 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1321 |
+
"severity": "error",
|
| 1322 |
+
"stage": "static_lint"
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"id": "missing_fixture_assets",
|
| 1326 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1327 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1328 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1329 |
+
"severity": "error",
|
| 1330 |
+
"stage": "static_lint"
|
| 1331 |
+
}
|
| 1332 |
+
]
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"name": "eval.tests.test_sync_loop_failure_exits.test_sync_loop_never_prints_count_six",
|
| 1336 |
+
"reasons": [
|
| 1337 |
+
{
|
| 1338 |
+
"id": "generic_keyword_oracle",
|
| 1339 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1340 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1341 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1342 |
+
"severity": "error",
|
| 1343 |
+
"stage": "static_lint"
|
| 1344 |
+
}
|
| 1345 |
+
]
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"name": "eval.tests.test_sync_loop_failure_exits.test_sync_loop_nonzero_interval_still_aborts",
|
| 1349 |
+
"reasons": [
|
| 1350 |
+
{
|
| 1351 |
+
"id": "generic_keyword_oracle",
|
| 1352 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1353 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1354 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1355 |
+
"severity": "error",
|
| 1356 |
+
"stage": "static_lint"
|
| 1357 |
+
},
|
| 1358 |
+
{
|
| 1359 |
+
"id": "missing_fixture_assets",
|
| 1360 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1361 |
+
"path": "eval/tests/test_sync_loop_failure_exits.py",
|
| 1362 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1363 |
+
"severity": "error",
|
| 1364 |
+
"stage": "static_lint"
|
| 1365 |
+
}
|
| 1366 |
+
]
|
| 1367 |
+
},
|
| 1368 |
+
{
|
| 1369 |
+
"name": "eval.tests.test_vaultwarden_auth.test_vaultwarden_auth_unauthorized",
|
| 1370 |
+
"reasons": [
|
| 1371 |
+
{
|
| 1372 |
+
"id": "short_substring",
|
| 1373 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1374 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1375 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1376 |
+
"severity": "error",
|
| 1377 |
+
"stage": "static_lint"
|
| 1378 |
+
},
|
| 1379 |
+
{
|
| 1380 |
+
"id": "generic_keyword_oracle",
|
| 1381 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1382 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1383 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1384 |
+
"severity": "error",
|
| 1385 |
+
"stage": "static_lint"
|
| 1386 |
+
},
|
| 1387 |
+
{
|
| 1388 |
+
"id": "missing_fixture_assets",
|
| 1389 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1390 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1391 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1392 |
+
"severity": "error",
|
| 1393 |
+
"stage": "static_lint"
|
| 1394 |
+
}
|
| 1395 |
+
]
|
| 1396 |
+
},
|
| 1397 |
+
{
|
| 1398 |
+
"name": "eval.tests.test_vaultwarden_auth.test_vaultwarden_route_to_connect_failure",
|
| 1399 |
+
"reasons": [
|
| 1400 |
+
{
|
| 1401 |
+
"id": "generic_keyword_oracle",
|
| 1402 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1403 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1404 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1405 |
+
"severity": "error",
|
| 1406 |
+
"stage": "static_lint"
|
| 1407 |
+
},
|
| 1408 |
+
{
|
| 1409 |
+
"id": "missing_fixture_assets",
|
| 1410 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1411 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1412 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1413 |
+
"severity": "error",
|
| 1414 |
+
"stage": "static_lint"
|
| 1415 |
+
},
|
| 1416 |
+
{
|
| 1417 |
+
"id": "golden_written_in_test",
|
| 1418 |
+
"message": "pytest test writes to its own golden file",
|
| 1419 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1420 |
+
"repair_hint": "Read committed golden data instead of writing expected output inside the test.",
|
| 1421 |
+
"severity": "error",
|
| 1422 |
+
"stage": "static_lint"
|
| 1423 |
+
}
|
| 1424 |
+
]
|
| 1425 |
+
},
|
| 1426 |
+
{
|
| 1427 |
+
"name": "eval.tests.test_vaultwarden_auth.test_vaultwarden_users_endpoint_error",
|
| 1428 |
+
"reasons": [
|
| 1429 |
+
{
|
| 1430 |
+
"id": "short_substring",
|
| 1431 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1432 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1433 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1434 |
+
"severity": "error",
|
| 1435 |
+
"stage": "static_lint"
|
| 1436 |
+
},
|
| 1437 |
+
{
|
| 1438 |
+
"id": "generic_keyword_oracle",
|
| 1439 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1440 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1441 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1442 |
+
"severity": "error",
|
| 1443 |
+
"stage": "static_lint"
|
| 1444 |
+
},
|
| 1445 |
+
{
|
| 1446 |
+
"id": "missing_fixture_assets",
|
| 1447 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 1448 |
+
"path": "eval/tests/test_vaultwarden_auth.py",
|
| 1449 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 1450 |
+
"severity": "error",
|
| 1451 |
+
"stage": "static_lint"
|
| 1452 |
+
}
|
| 1453 |
+
]
|
| 1454 |
+
}
|
| 1455 |
+
],
|
| 1456 |
+
"tests": [
|
| 1457 |
+
"eval.tests.test_config.test_admin_token_file_missing_panics",
|
| 1458 |
+
"eval.tests.test_config.test_admin_token_read_from_file",
|
| 1459 |
+
"eval.tests.test_config.test_config_custom_path_marker",
|
| 1460 |
+
"eval.tests.test_config.test_config_file_read_marker",
|
| 1461 |
+
"eval.tests.test_config.test_default_mail_field_is_mail",
|
| 1462 |
+
"eval.tests.test_config.test_env_config_bool_and_int_parsing",
|
| 1463 |
+
"eval.tests.test_config.test_env_config_ignored_when_file_valid",
|
| 1464 |
+
"eval.tests.test_config.test_invalid_boolean_fail",
|
| 1465 |
+
"eval.tests.test_config.test_invalid_env_bool_fails",
|
| 1466 |
+
"eval.tests.test_config.test_invalid_integer_port_to_fail",
|
| 1467 |
+
"eval.tests.test_config.test_invalid_interval_type_fail",
|
| 1468 |
+
"eval.tests.test_config.test_malformed_toml_fails",
|
| 1469 |
+
"eval.tests.test_config.test_missing_admin_token_panics",
|
| 1470 |
+
"eval.tests.test_config.test_missing_config_file_then_env_fail",
|
| 1471 |
+
"eval.tests.test_config.test_missing_config_file_then_env_success",
|
| 1472 |
+
"eval.tests.test_config.test_missing_required_field_to_env_panic",
|
| 1473 |
+
"eval.tests.test_config.test_missing_root_cert_file_panics",
|
| 1474 |
+
"eval.tests.test_config.test_unknown_field_toml_fails",
|
| 1475 |
+
"eval.tests.test_config.test_wrong_type_port_to_fail",
|
| 1476 |
+
"eval.tests.test_invite_batch_golden.test_all_missing_mail_warns_and_counts_zero",
|
| 1477 |
+
"eval.tests.test_invite_batch_golden.test_exact_order_new_then_existing_mixed",
|
| 1478 |
+
"eval.tests.test_invite_batch_golden.test_rich_batch_exact_stdout_matches_golden",
|
| 1479 |
+
"eval.tests.test_invite_batch_golden.test_summary_counts_only_new_users",
|
| 1480 |
+
"eval.tests.test_invite_flow.test_active_existing_user_print",
|
| 1481 |
+
"eval.tests.test_invite_flow.test_additional_fields_requested_are_harmless",
|
| 1482 |
+
"eval.tests.test_invite_flow.test_custom_mail_field",
|
| 1483 |
+
"eval.tests.test_invite_flow.test_dedup_is_case_insensitive_on_existing_side",
|
| 1484 |
+
"eval.tests.test_invite_flow.test_dedup_is_case_insensitive_on_ldap_side",
|
| 1485 |
+
"eval.tests.test_invite_flow.test_disabled_existing_user_print",
|
| 1486 |
+
"eval.tests.test_invite_flow.test_existing_user_not_reinvited",
|
| 1487 |
+
"eval.tests.test_invite_flow.test_invite_failure_aborts",
|
| 1488 |
+
"eval.tests.test_invite_flow.test_invite_failure_after_partial_success",
|
| 1489 |
+
"eval.tests.test_invite_flow.test_missing_mail_field_and_empty_uid",
|
| 1490 |
+
"eval.tests.test_invite_flow.test_missing_mail_field_with_uid_warns",
|
| 1491 |
+
"eval.tests.test_invite_flow.test_missing_mail_field_without_uid_warns",
|
| 1492 |
+
"eval.tests.test_invite_flow.test_mixed_new_and_existing",
|
| 1493 |
+
"eval.tests.test_invite_flow.test_multiple_new_users_count",
|
| 1494 |
+
"eval.tests.test_invite_flow.test_multivalue_mail_sends_invite",
|
| 1495 |
+
"eval.tests.test_invite_flow.test_new_user_is_invited",
|
| 1496 |
+
"eval.tests.test_invite_flow.test_no_ldap_users_sends_none",
|
| 1497 |
+
"eval.tests.test_invite_flow.test_verified_status_number_alias",
|
| 1498 |
+
"eval.tests.test_ldap_connection.test_anonymous_bind",
|
| 1499 |
+
"eval.tests.test_ldap_connection.test_bind_credentials_from_file",
|
| 1500 |
+
"eval.tests.test_ldap_connection.test_bind_file_vs_direct_password_precedence",
|
| 1501 |
+
"eval.tests.test_ldap_connection.test_bind_transport_failure_fails",
|
| 1502 |
+
"eval.tests.test_ldap_connection.test_bind_without_username_rejected",
|
| 1503 |
+
"eval.tests.test_ldap_connection.test_ldap_connection_refused",
|
| 1504 |
+
"eval.tests.test_ldap_connection.test_ldap_search_no_such_object",
|
| 1505 |
+
"eval.tests.test_ldap_connection.test_password_without_username_rejected",
|
| 1506 |
+
"eval.tests.test_ldap_connection.test_search_base_and_filter_are_used",
|
| 1507 |
+
"eval.tests.test_ldap_connection.test_simple_bind_with_credentials",
|
| 1508 |
+
"eval.tests.test_ldap_connection_settings.test_ldap_scheme_ldap_plain_succeeds",
|
| 1509 |
+
"eval.tests.test_ldap_connection_settings.test_ldap_scheme_ldap_wins_over_ssl",
|
| 1510 |
+
"eval.tests.test_ldap_connection_settings.test_ldaps_default_port_636_connects_nowhere",
|
| 1511 |
+
"eval.tests.test_ldap_connection_settings.test_ldaps_default_port_overridden_by_explicit",
|
| 1512 |
+
"eval.tests.test_ldap_connection_settings.test_no_tls_verify_false_plain_succeeds",
|
| 1513 |
+
"eval.tests.test_ldap_connection_settings.test_no_tls_verify_true_plain_succeeds",
|
| 1514 |
+
"eval.tests.test_ldap_connection_settings.test_starttls_and_no_tls_verify_combined_fails",
|
| 1515 |
+
"eval.tests.test_ldap_connection_settings.test_starttls_defaults_to_false",
|
| 1516 |
+
"eval.tests.test_ldap_connection_settings.test_starttls_true_fails_on_plain_server",
|
| 1517 |
+
"eval.tests.test_scheme.test_custom_port_respected",
|
| 1518 |
+
"eval.tests.test_scheme.test_default_ldap_port_389_when_unspecified",
|
| 1519 |
+
"eval.tests.test_scheme.test_explicit_scheme_ldap_connects",
|
| 1520 |
+
"eval.tests.test_scheme.test_explicit_scheme_overrides_ssl_default",
|
| 1521 |
+
"eval.tests.test_scheme.test_ssl_selects_ldaps_scheme",
|
| 1522 |
+
"eval.tests.test_sync_loop.test_sync_loop_defaults_to_on_and_runs_until_failure",
|
| 1523 |
+
"eval.tests.test_sync_loop.test_sync_loop_explicit_true_repeats",
|
| 1524 |
+
"eval.tests.test_sync_loop.test_sync_loop_failure_counter_resets_on_success",
|
| 1525 |
+
"eval.tests.test_sync_loop.test_sync_loop_failure_limit_is_six_total",
|
| 1526 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_default_enabled_without_key",
|
| 1527 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_disabled_user_reconcile",
|
| 1528 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_empty_ldap_keeps_running",
|
| 1529 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_existing_user_reconcile_each_iteration",
|
| 1530 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_interval_seconds_zero_is_valid",
|
| 1531 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_missing_uid_warns_each_iteration",
|
| 1532 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_multiple_new_users_each_iteration",
|
| 1533 |
+
"eval.tests.test_sync_loop_continue.test_sync_loop_new_user_invited_and_loops",
|
| 1534 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_ldap_search_failure",
|
| 1535 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_persistent_invite_failure",
|
| 1536 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_aborts_on_vaultwarden_users_failure",
|
| 1537 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_failures_do_not_invite_duplicates",
|
| 1538 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_never_prints_count_six",
|
| 1539 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_nonzero_interval_still_aborts",
|
| 1540 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_single_transient_failure_does_not_abort",
|
| 1541 |
+
"eval.tests.test_sync_loop_failure_exits.test_sync_loop_success_then_persistent_failure_still_aborts",
|
| 1542 |
+
"eval.tests.test_vaultwarden_auth.test_all_disabled_users",
|
| 1543 |
+
"eval.tests.test_vaultwarden_auth.test_cookie_stored_and_reused_for_users",
|
| 1544 |
+
"eval.tests.test_vaultwarden_auth.test_existing_user_cover_lowercased_data",
|
| 1545 |
+
"eval.tests.test_vaultwarden_auth.test_multiple_existing_users_listed",
|
| 1546 |
+
"eval.tests.test_vaultwarden_auth.test_no_auth_cookie_provided",
|
| 1547 |
+
"eval.tests.test_vaultwarden_auth.test_vaultwarden_auth_unauthorized",
|
| 1548 |
+
"eval.tests.test_vaultwarden_auth.test_vaultwarden_route_to_connect_failure",
|
| 1549 |
+
"eval.tests.test_vaultwarden_auth.test_vaultwarden_users_endpoint_error"
|
| 1550 |
+
]
|
| 1551 |
+
}
|
| 1552 |
+
},
|
| 1553 |
+
"commit": "7bf91f3ec42708717a8bcc26d70fa39da5cbff23",
|
| 1554 |
+
"data_source": "synthetic_programgym",
|
| 1555 |
+
"difficulty": "easy",
|
| 1556 |
+
"difficulty_score": 1.8217099972983761,
|
| 1557 |
+
"eval_clean_hashes": [
|
| 1558 |
+
"a89a590080809176ab6549796152baf94115adee283be297a913e8fa3fe94d99"
|
| 1559 |
+
],
|
| 1560 |
+
"input_record": {
|
| 1561 |
+
"codeql_db_mb": 83.88,
|
| 1562 |
+
"codeql_status": true,
|
| 1563 |
+
"codeql_time": 55.53649726882577,
|
| 1564 |
+
"commit": "7bf91f3ec42708717a8bcc26d70fa39da5cbff23",
|
| 1565 |
+
"commits": 262,
|
| 1566 |
+
"contributors": 9,
|
| 1567 |
+
"difficulty": "easy",
|
| 1568 |
+
"difficulty_code_lines": 603,
|
| 1569 |
+
"difficulty_has_tests": false,
|
| 1570 |
+
"difficulty_product_code_lines": 603,
|
| 1571 |
+
"difficulty_runtime_deps": 10,
|
| 1572 |
+
"difficulty_score": 1.8217099972983761,
|
| 1573 |
+
"difficulty_test_code_lines": 0,
|
| 1574 |
+
"full_name": "ViViDboarder/vaultwarden_ldap",
|
| 1575 |
+
"github_stars": 208,
|
| 1576 |
+
"input_codeql_db": "rust_codeql/ViViDboarder__vaultwarden_ldap",
|
| 1577 |
+
"language": "rs",
|
| 1578 |
+
"pb_match": [
|
| 1579 |
+
{
|
| 1580 |
+
"pb_fullname": "ogham/dog",
|
| 1581 |
+
"rank": 593,
|
| 1582 |
+
"similarity": 0.42143502831459045
|
| 1583 |
+
},
|
| 1584 |
+
{
|
| 1585 |
+
"pb_fullname": "shashwatah/jot",
|
| 1586 |
+
"rank": 544,
|
| 1587 |
+
"similarity": 0.5065340399742126
|
| 1588 |
+
},
|
| 1589 |
+
{
|
| 1590 |
+
"pb_fullname": "agourlay/zip-password-finder",
|
| 1591 |
+
"rank": 448,
|
| 1592 |
+
"similarity": 0.48829221725463867
|
| 1593 |
+
}
|
| 1594 |
+
],
|
| 1595 |
+
"repo_age": 7.43,
|
| 1596 |
+
"repo_path": "rust/ViViDboarder__vaultwarden_ldap",
|
| 1597 |
+
"rust_channel": "stable",
|
| 1598 |
+
"rust_edition": "2018",
|
| 1599 |
+
"rust_release_date": "2018-12-06",
|
| 1600 |
+
"rust_version": "1.31.0",
|
| 1601 |
+
"rust_version_source": "edition",
|
| 1602 |
+
"source": "commit:7bf91f3ec42708717a8bcc26d70fa39da5cbff23",
|
| 1603 |
+
"status": "done",
|
| 1604 |
+
"url": "https://github.com/ViViDboarder/vaultwarden_ldap"
|
| 1605 |
+
},
|
| 1606 |
+
"instance_id": "ViViDboarder__vaultwarden_ldap.7bf91f3",
|
| 1607 |
+
"language": "rust",
|
| 1608 |
+
"module_iterations": [
|
| 1609 |
+
{
|
| 1610 |
+
"actual_iterations": 5,
|
| 1611 |
+
"branch_name": "generated_module_01",
|
| 1612 |
+
"iteration_limit": 5,
|
| 1613 |
+
"module_index": 1,
|
| 1614 |
+
"module_kind": "source",
|
| 1615 |
+
"termination_reason": "max_iterations"
|
| 1616 |
+
},
|
| 1617 |
+
{
|
| 1618 |
+
"actual_iterations": 5,
|
| 1619 |
+
"branch_name": "generated_module_02",
|
| 1620 |
+
"iteration_limit": 5,
|
| 1621 |
+
"module_index": 2,
|
| 1622 |
+
"module_kind": "source",
|
| 1623 |
+
"termination_reason": "max_iterations"
|
| 1624 |
+
},
|
| 1625 |
+
{
|
| 1626 |
+
"actual_iterations": 5,
|
| 1627 |
+
"branch_name": "generated_module_03",
|
| 1628 |
+
"iteration_limit": 5,
|
| 1629 |
+
"module_index": 3,
|
| 1630 |
+
"module_kind": "source",
|
| 1631 |
+
"termination_reason": "max_iterations"
|
| 1632 |
+
}
|
| 1633 |
+
],
|
| 1634 |
+
"repository": "ViViDboarder/vaultwarden_ldap"
|
| 1635 |
+
}
|
vividboarder--vaultwarden_ldap.7bf91f3/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
|
vividboarder--vaultwarden_ldap.7bf91f3/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f41f4819962b4296d36304c2d6932cb0a21917b1f65707160d2da689b9cb6466
|
| 3 |
+
size 2852
|
vividcortex--siesta.99bec23/environment/Dockerfile
CHANGED
|
@@ -58,3 +58,4 @@ RUN mkdir -p /home/agent \
|
|
| 58 |
&& chmod 111 /workspace/executable
|
| 59 |
ENV HOME=/home/agent
|
| 60 |
WORKDIR /workspace
|
|
|
|
|
|
| 58 |
&& chmod 111 /workspace/executable
|
| 59 |
ENV HOME=/home/agent
|
| 60 |
WORKDIR /workspace
|
| 61 |
+
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"]
|
vividcortex--siesta.99bec23/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"]
|
vivkin--gason.c9c4aa6/environment/Dockerfile
CHANGED
|
@@ -53,3 +53,4 @@ RUN mkdir -p /home/agent \
|
|
| 53 |
&& chmod 111 /workspace/executable
|
| 54 |
ENV HOME=/home/agent
|
| 55 |
WORKDIR /workspace
|
|
|
|
|
|
| 53 |
&& chmod 111 /workspace/executable
|
| 54 |
ENV HOME=/home/agent
|
| 55 |
WORKDIR /workspace
|
| 56 |
+
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"]
|
vivkin--gason.c9c4aa6/tests/Dockerfile
CHANGED
|
@@ -61,3 +61,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 61 |
COPY programgym_task.json /tests/programgym_task.json
|
| 62 |
COPY blobs/ /tests/blobs/
|
| 63 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 61 |
COPY programgym_task.json /tests/programgym_task.json
|
| 62 |
COPY blobs/ /tests/blobs/
|
| 63 |
RUN chmod +x /tests/test.sh
|
| 64 |
+
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"]
|
vjeantet--grok.e39bbec/environment/Dockerfile
CHANGED
|
@@ -58,3 +58,4 @@ RUN mkdir -p /home/agent \
|
|
| 58 |
&& chmod 111 /workspace/executable
|
| 59 |
ENV HOME=/home/agent
|
| 60 |
WORKDIR /workspace
|
|
|
|
|
|
| 58 |
&& chmod 111 /workspace/executable
|
| 59 |
ENV HOME=/home/agent
|
| 60 |
WORKDIR /workspace
|
| 61 |
+
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"]
|
vjeantet--grok.e39bbec/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"]
|
vladimirvivien--learning-go.a19a03f/environment/Dockerfile
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 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_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 14 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 15 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 16 |
+
ENV npm_config_strict_ssl=false
|
| 17 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 18 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 19 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 20 |
+
ENV PIP_TRUSTED_HOST=""
|
| 21 |
+
ENV HOME=/workspace
|
| 22 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 23 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 24 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 25 |
+
ENV GOROOT=/usr/local/go
|
| 26 |
+
ENV GOPATH=/workspace/.go
|
| 27 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 28 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 29 |
+
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
|
| 30 |
+
ENV PAGER=cat
|
| 31 |
+
ENV MANPAGER=cat
|
| 32 |
+
ENV LESS=-R
|
| 33 |
+
ENV TQDM_DISABLE=1
|
| 34 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 35 |
+
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/*
|
| 36 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 37 |
+
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
|
| 38 |
+
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
|
| 39 |
+
WORKDIR /workspace
|
| 40 |
+
ADD workspace.tar.gz /workspace/
|
| 41 |
+
COPY executable /workspace/executable
|
| 42 |
+
COPY download.sh /workspace/download.sh
|
| 43 |
+
RUN chmod 755 /workspace/download.sh
|
| 44 |
+
RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
|
| 45 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 46 |
+
RUN chmod 111 /workspace/executable
|
| 47 |
+
WORKDIR /workspace
|
| 48 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 49 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 50 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 51 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 52 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 53 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 54 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 55 |
+
RUN mkdir -p /home/agent \
|
| 56 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 57 |
+
&& chown agent:agent /workspace/executable \
|
| 58 |
+
&& chmod 111 /workspace/executable
|
| 59 |
+
ENV HOME=/home/agent
|
| 60 |
+
WORKDIR /workspace
|
| 61 |
+
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"]
|
vladimirvivien--learning-go.a19a03f/environment/download.sh
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module golang.fyi/redirect
|
| 9 |
+
|
| 10 |
+
go 1.13
|
| 11 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 12 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 13 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 14 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 15 |
+
*"|"*|*","*)
|
| 16 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 17 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 18 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 19 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 20 |
+
fi
|
| 21 |
+
;;
|
| 22 |
+
esac
|
| 23 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 24 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 25 |
+
fi
|
| 26 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 27 |
+
import os
|
| 28 |
+
import signal
|
| 29 |
+
import subprocess
|
| 30 |
+
import sys
|
| 31 |
+
import time
|
| 32 |
+
|
| 33 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 34 |
+
if not command:
|
| 35 |
+
raise SystemExit(125)
|
| 36 |
+
environment = os.environ.copy()
|
| 37 |
+
environment["GOPROXY"] = proxy
|
| 38 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 39 |
+
try:
|
| 40 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 41 |
+
except subprocess.TimeoutExpired:
|
| 42 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 43 |
+
sentinel.write("expired\n")
|
| 44 |
+
try:
|
| 45 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 46 |
+
except ProcessLookupError:
|
| 47 |
+
pass
|
| 48 |
+
deadline = time.monotonic() + float(grace_text)
|
| 49 |
+
group_alive = True
|
| 50 |
+
while time.monotonic() < deadline:
|
| 51 |
+
process.poll()
|
| 52 |
+
try:
|
| 53 |
+
os.killpg(process.pid, 0)
|
| 54 |
+
except ProcessLookupError:
|
| 55 |
+
group_alive = False
|
| 56 |
+
break
|
| 57 |
+
time.sleep(0.05)
|
| 58 |
+
if group_alive:
|
| 59 |
+
try:
|
| 60 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 61 |
+
except ProcessLookupError:
|
| 62 |
+
pass
|
| 63 |
+
process.wait()
|
| 64 |
+
raise SystemExit(124)
|
| 65 |
+
if returncode < 0:
|
| 66 |
+
returncode = 128 - returncode
|
| 67 |
+
raise SystemExit(returncode)
|
| 68 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 69 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 70 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 71 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 72 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 73 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 74 |
+
return 1
|
| 75 |
+
else
|
| 76 |
+
exit 1
|
| 77 |
+
fi
|
| 78 |
+
fi
|
| 79 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 80 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 81 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 82 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 83 |
+
return 1
|
| 84 |
+
else
|
| 85 |
+
exit 1
|
| 86 |
+
fi
|
| 87 |
+
fi
|
| 88 |
+
_programgym_go_with_nexus_timeout() {
|
| 89 |
+
local programgym_go_rc
|
| 90 |
+
local programgym_go_timeout_sentinel
|
| 91 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 92 |
+
return 1
|
| 93 |
+
fi
|
| 94 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 95 |
+
programgym_go_rc=0
|
| 96 |
+
else
|
| 97 |
+
programgym_go_rc=$?
|
| 98 |
+
fi
|
| 99 |
+
if [ ! -s "$programgym_go_timeout_sentinel" ]; then
|
| 100 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 101 |
+
return "$programgym_go_rc"
|
| 102 |
+
fi
|
| 103 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 104 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 105 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 106 |
+
return "$programgym_go_rc"
|
| 107 |
+
fi
|
| 108 |
+
printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 109 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 110 |
+
}
|
| 111 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 112 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 113 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 114 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 115 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 116 |
+
return 1
|
| 117 |
+
else
|
| 118 |
+
exit 1
|
| 119 |
+
fi
|
| 120 |
+
fi
|
| 121 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 122 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 123 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 124 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 125 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 126 |
+
else
|
| 127 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 128 |
+
fi
|
| 129 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 130 |
+
export GOTOOLCHAIN=local
|
| 131 |
+
# No external Go module dependencies to prefetch.
|
| 132 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 133 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 134 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 135 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 136 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 137 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 138 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
vladimirvivien--learning-go.a19a03f/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1bd5c1c4fc038dbf619df4c30567ba14f3b9a0d39a3df5d746f5793d581d637
|
| 3 |
+
size 2407348
|
vladimirvivien--learning-go.a19a03f/environment/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
|
| 3 |
+
size 59908810
|
vladimirvivien--learning-go.a19a03f/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b4429986dd98f0a14c494d24a3c888a40801026fe6e8ef55bc03561eb4a5ad6
|
| 3 |
+
size 228
|
vladimirvivien--learning-go.a19a03f/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
|
vladimirvivien--learning-go.a19a03f/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
|
vladimirvivien--learning-go.a19a03f/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/vladimirvivien--learning-go.a19a03f"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for vladimirvivien/learning-go"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "vladimirvivien__learning-go.a19a03f"
|
| 32 |
+
repository = "vladimirvivien/learning-go"
|
| 33 |
+
commit = "a19a03fea47fa593960ec429c054fc433557c8c9"
|
| 34 |
+
language = "go"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.9753858489894673
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 385
|
| 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"
|
vladimirvivien--learning-go.a19a03f/tests/Dockerfile
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 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_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 14 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 15 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 16 |
+
ENV npm_config_strict_ssl=false
|
| 17 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 18 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 19 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 20 |
+
ENV PIP_TRUSTED_HOST=""
|
| 21 |
+
ENV HOME=/workspace
|
| 22 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 23 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 24 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 25 |
+
ENV GOROOT=/usr/local/go
|
| 26 |
+
ENV GOPATH=/workspace/.go
|
| 27 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 28 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 29 |
+
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
|
| 30 |
+
ENV PAGER=cat
|
| 31 |
+
ENV MANPAGER=cat
|
| 32 |
+
ENV LESS=-R
|
| 33 |
+
ENV TQDM_DISABLE=1
|
| 34 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 35 |
+
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/*
|
| 36 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 37 |
+
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
|
| 38 |
+
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
|
| 39 |
+
WORKDIR /workspace
|
| 40 |
+
ADD workspace.tar.gz /workspace/
|
| 41 |
+
COPY executable /workspace/executable
|
| 42 |
+
COPY download.sh /workspace/download.sh
|
| 43 |
+
RUN chmod 755 /workspace/download.sh
|
| 44 |
+
RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
|
| 45 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 46 |
+
RUN chmod 111 /workspace/executable
|
| 47 |
+
WORKDIR /workspace
|
| 48 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 49 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 50 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 51 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 52 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 53 |
+
&& mkdir -p /workspace /tests
|
| 54 |
+
|
| 55 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 56 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 57 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 58 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 59 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 60 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 61 |
+
RUN python3 -m pip install --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"]
|
vladimirvivien--learning-go.a19a03f/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:faddf42bf954824ad2b37510b6e4e8f7623448e6ee1306fb4e626c7722f343c6
|
| 3 |
+
size 4427
|
vladimirvivien--learning-go.a19a03f/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:a4a54eec2d8c783d0b9b07a1cbe46ad386d618b56e86b1447efb29c5109c42f5
|
| 3 |
+
size 7400
|
vladimirvivien--learning-go.a19a03f/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:4d2793564d852851e23eaaef3123a9338b0500830defe6425e05ced1d38d5bc5
|
| 3 |
+
size 6587
|
vladimirvivien--learning-go.a19a03f/tests/blobs/tests/generated_module_04.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:523598706d99de77ea5b678ce63bd04f87928816dd7785c743046589880eef06
|
| 3 |
+
size 7409
|
vladimirvivien--learning-go.a19a03f/tests/download.sh
ADDED
|
@@ -0,0 +1,138 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module golang.fyi/redirect
|
| 9 |
+
|
| 10 |
+
go 1.13
|
| 11 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 12 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 13 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 14 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 15 |
+
*"|"*|*","*)
|
| 16 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 17 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 18 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 19 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 20 |
+
fi
|
| 21 |
+
;;
|
| 22 |
+
esac
|
| 23 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 24 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 25 |
+
fi
|
| 26 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 27 |
+
import os
|
| 28 |
+
import signal
|
| 29 |
+
import subprocess
|
| 30 |
+
import sys
|
| 31 |
+
import time
|
| 32 |
+
|
| 33 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 34 |
+
if not command:
|
| 35 |
+
raise SystemExit(125)
|
| 36 |
+
environment = os.environ.copy()
|
| 37 |
+
environment["GOPROXY"] = proxy
|
| 38 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 39 |
+
try:
|
| 40 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 41 |
+
except subprocess.TimeoutExpired:
|
| 42 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 43 |
+
sentinel.write("expired\n")
|
| 44 |
+
try:
|
| 45 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 46 |
+
except ProcessLookupError:
|
| 47 |
+
pass
|
| 48 |
+
deadline = time.monotonic() + float(grace_text)
|
| 49 |
+
group_alive = True
|
| 50 |
+
while time.monotonic() < deadline:
|
| 51 |
+
process.poll()
|
| 52 |
+
try:
|
| 53 |
+
os.killpg(process.pid, 0)
|
| 54 |
+
except ProcessLookupError:
|
| 55 |
+
group_alive = False
|
| 56 |
+
break
|
| 57 |
+
time.sleep(0.05)
|
| 58 |
+
if group_alive:
|
| 59 |
+
try:
|
| 60 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 61 |
+
except ProcessLookupError:
|
| 62 |
+
pass
|
| 63 |
+
process.wait()
|
| 64 |
+
raise SystemExit(124)
|
| 65 |
+
if returncode < 0:
|
| 66 |
+
returncode = 128 - returncode
|
| 67 |
+
raise SystemExit(returncode)
|
| 68 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 69 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 70 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 71 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 72 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 73 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 74 |
+
return 1
|
| 75 |
+
else
|
| 76 |
+
exit 1
|
| 77 |
+
fi
|
| 78 |
+
fi
|
| 79 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 80 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 81 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 82 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 83 |
+
return 1
|
| 84 |
+
else
|
| 85 |
+
exit 1
|
| 86 |
+
fi
|
| 87 |
+
fi
|
| 88 |
+
_programgym_go_with_nexus_timeout() {
|
| 89 |
+
local programgym_go_rc
|
| 90 |
+
local programgym_go_timeout_sentinel
|
| 91 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 92 |
+
return 1
|
| 93 |
+
fi
|
| 94 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 95 |
+
programgym_go_rc=0
|
| 96 |
+
else
|
| 97 |
+
programgym_go_rc=$?
|
| 98 |
+
fi
|
| 99 |
+
if [ ! -s "$programgym_go_timeout_sentinel" ]; then
|
| 100 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 101 |
+
return "$programgym_go_rc"
|
| 102 |
+
fi
|
| 103 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 104 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 105 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 106 |
+
return "$programgym_go_rc"
|
| 107 |
+
fi
|
| 108 |
+
printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 109 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 110 |
+
}
|
| 111 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 112 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 113 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 114 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 115 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 116 |
+
return 1
|
| 117 |
+
else
|
| 118 |
+
exit 1
|
| 119 |
+
fi
|
| 120 |
+
fi
|
| 121 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 122 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 123 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 124 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 125 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 126 |
+
else
|
| 127 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 128 |
+
fi
|
| 129 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 130 |
+
export GOTOOLCHAIN=local
|
| 131 |
+
# No external Go module dependencies to prefetch.
|
| 132 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 133 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 134 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 135 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 136 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 137 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 138 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
vladimirvivien--learning-go.a19a03f/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1bd5c1c4fc038dbf619df4c30567ba14f3b9a0d39a3df5d746f5793d581d637
|
| 3 |
+
size 2407348
|
vladimirvivien--learning-go.a19a03f/tests/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@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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()
|
vladimirvivien--learning-go.a19a03f/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,521 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [],
|
| 7 |
+
"tests": [
|
| 8 |
+
"eval.tests.test_cli_circuit.test_division_by_zero_current_inf",
|
| 9 |
+
"eval.tests.test_cli_circuit.test_flag_after_positional_ignored_for_op_too",
|
| 10 |
+
"eval.tests.test_cli_circuit.test_flag_missing_value_exits_2[missing_current_value]",
|
| 11 |
+
"eval.tests.test_cli_circuit.test_flag_missing_value_exits_2[missing_op_value]",
|
| 12 |
+
"eval.tests.test_cli_circuit.test_flag_missing_value_exits_2[missing_power_value]",
|
| 13 |
+
"eval.tests.test_cli_circuit.test_flag_missing_value_exits_2[missing_resistance_value]",
|
| 14 |
+
"eval.tests.test_cli_circuit.test_flag_missing_value_exits_2[missing_voltage_value]",
|
| 15 |
+
"eval.tests.test_cli_circuit.test_float_with_exponent_and_fraction",
|
| 16 |
+
"eval.tests.test_cli_circuit.test_help_flag_writes_usage_to_stderr[--help]",
|
| 17 |
+
"eval.tests.test_cli_circuit.test_help_flag_writes_usage_to_stderr[-h]",
|
| 18 |
+
"eval.tests.test_cli_circuit.test_help_flag_writes_usage_to_stderr[-help]",
|
| 19 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[double_dash_value]",
|
| 20 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[empty_float]",
|
| 21 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[hex_float_rejected]",
|
| 22 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[invalid_current]",
|
| 23 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[invalid_resistance]",
|
| 24 |
+
"eval.tests.test_cli_circuit.test_invalid_float_flag_exits_2[invalid_voltage]",
|
| 25 |
+
"eval.tests.test_cli_circuit.test_large_overflow_voltage",
|
| 26 |
+
"eval.tests.test_cli_circuit.test_nan_literal_accepted_as_float",
|
| 27 |
+
"eval.tests.test_cli_circuit.test_negative_float_operand",
|
| 28 |
+
"eval.tests.test_cli_circuit.test_negative_overflow_power_inf",
|
| 29 |
+
"eval.tests.test_cli_circuit.test_no_args_default_op_voltage_zero",
|
| 30 |
+
"eval.tests.test_cli_circuit.test_op_current[current_basic]",
|
| 31 |
+
"eval.tests.test_cli_circuit.test_op_current[current_lowercase]",
|
| 32 |
+
"eval.tests.test_cli_circuit.test_op_current[current_ohm]",
|
| 33 |
+
"eval.tests.test_cli_circuit.test_op_current_vp[current_vp_basic]",
|
| 34 |
+
"eval.tests.test_cli_circuit.test_op_current_vp[current_vp_div_zero_nan]",
|
| 35 |
+
"eval.tests.test_cli_circuit.test_op_current_vp[current_vp_lowercase]",
|
| 36 |
+
"eval.tests.test_cli_circuit.test_op_power[power_basic]",
|
| 37 |
+
"eval.tests.test_cli_circuit.test_op_power[power_lowercase_negative]",
|
| 38 |
+
"eval.tests.test_cli_circuit.test_op_power[power_ohm]",
|
| 39 |
+
"eval.tests.test_cli_circuit.test_op_power_ir[power_ir_basic]",
|
| 40 |
+
"eval.tests.test_cli_circuit.test_op_power_ir[power_ir_lowercase]",
|
| 41 |
+
"eval.tests.test_cli_circuit.test_op_power_ir[power_ir_zero_current]",
|
| 42 |
+
"eval.tests.test_cli_circuit.test_op_power_vr[power_vr_basic]",
|
| 43 |
+
"eval.tests.test_cli_circuit.test_op_power_vr[power_vr_division]",
|
| 44 |
+
"eval.tests.test_cli_circuit.test_op_power_vr[power_vr_lowercase]",
|
| 45 |
+
"eval.tests.test_cli_circuit.test_op_resistance[resistance_basic]",
|
| 46 |
+
"eval.tests.test_cli_circuit.test_op_resistance[resistance_div_zero_inf]",
|
| 47 |
+
"eval.tests.test_cli_circuit.test_op_resistance[resistance_lowercase]",
|
| 48 |
+
"eval.tests.test_cli_circuit.test_op_volt_formula[voltage_lowercase_op]",
|
| 49 |
+
"eval.tests.test_cli_circuit.test_op_volt_formula[voltage_ohm_basic]",
|
| 50 |
+
"eval.tests.test_cli_circuit.test_op_volt_formula[voltage_ohm_default_like]",
|
| 51 |
+
"eval.tests.test_cli_circuit.test_op_volt_formula[voltage_zero_resistance]",
|
| 52 |
+
"eval.tests.test_cli_circuit.test_op_voltpi_formula[voltpi_basic]",
|
| 53 |
+
"eval.tests.test_cli_circuit.test_op_voltpi_formula[voltpi_divide_zero_nan]",
|
| 54 |
+
"eval.tests.test_cli_circuit.test_op_voltpi_formula[voltpi_lowercase]",
|
| 55 |
+
"eval.tests.test_cli_circuit.test_positional_arg_before_flags_stops_flag_parsing",
|
| 56 |
+
"eval.tests.test_cli_circuit.test_scientific_notation_float_parsed",
|
| 57 |
+
"eval.tests.test_cli_circuit.test_separator_before_flags_keeps_defaults",
|
| 58 |
+
"eval.tests.test_cli_circuit.test_unknown_flag_exits_2",
|
| 59 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[empty_op_equals]",
|
| 60 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[empty_op_space]",
|
| 61 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[listed_but_unhandled_Rvp]",
|
| 62 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[listed_but_unhandled_rvp]",
|
| 63 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[unknown_op_X]",
|
| 64 |
+
"eval.tests.test_cli_circuit.test_unknown_op_prints_usage_to_stdout_and_exits_1[unknown_op_lower]"
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
"generated_module_02": {
|
| 68 |
+
"ignore_reason": "",
|
| 69 |
+
"ignored": false,
|
| 70 |
+
"ignored_tests": [
|
| 71 |
+
{
|
| 72 |
+
"name": "eval.tests.test_cli.test_help_short_flag_lists_flags",
|
| 73 |
+
"reasons": [
|
| 74 |
+
{
|
| 75 |
+
"id": "short_substring",
|
| 76 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 77 |
+
"path": "eval/tests/test_cli.py",
|
| 78 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 79 |
+
"severity": "error",
|
| 80 |
+
"stage": "static_lint"
|
| 81 |
+
}
|
| 82 |
+
]
|
| 83 |
+
}
|
| 84 |
+
],
|
| 85 |
+
"tests": [
|
| 86 |
+
"eval.tests.test_cli.test_blank_op_usage_exits_1",
|
| 87 |
+
"eval.tests.test_cli.test_current_partial_operand_missing_r_defaults_zero",
|
| 88 |
+
"eval.tests.test_cli.test_help_does_not_run_computation",
|
| 89 |
+
"eval.tests.test_cli.test_help_double_dash_lists_flags",
|
| 90 |
+
"eval.tests.test_cli.test_help_short_flag_lists_flags",
|
| 91 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[-I]",
|
| 92 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[IvpExtra]",
|
| 93 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[VPI]",
|
| 94 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[XYZ]",
|
| 95 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[current]",
|
| 96 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1[volt]",
|
| 97 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[-I]",
|
| 98 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[IvpExtra]",
|
| 99 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[VPI]",
|
| 100 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[XYZ]",
|
| 101 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[current]",
|
| 102 |
+
"eval.tests.test_cli.test_invalid_op_usage_exit_1_equals_form[volt]",
|
| 103 |
+
"eval.tests.test_cli.test_long_unknown_flag_exits_2",
|
| 104 |
+
"eval.tests.test_cli.test_malformed_float_flag_exits_2",
|
| 105 |
+
"eval.tests.test_cli.test_missing_flag_value_exits_2",
|
| 106 |
+
"eval.tests.test_cli.test_op_P_dispatches_power_not_current",
|
| 107 |
+
"eval.tests.test_cli.test_op_R_dispatches_resistor_not_current",
|
| 108 |
+
"eval.tests.test_cli.test_operands_ignored_by_unused_op",
|
| 109 |
+
"eval.tests.test_cli.test_unknown_flag_exits_2",
|
| 110 |
+
"eval.tests.test_cli.test_volt_partial_operand_missing_i_defaults_zero",
|
| 111 |
+
"eval.tests.test_current.test_op_I_current[-1--2]",
|
| 112 |
+
"eval.tests.test_current.test_op_I_current[-1-2]",
|
| 113 |
+
"eval.tests.test_current.test_op_I_current[-10-4]",
|
| 114 |
+
"eval.tests.test_current.test_op_I_current[-2-4]",
|
| 115 |
+
"eval.tests.test_current.test_op_I_current[-4-6]",
|
| 116 |
+
"eval.tests.test_current.test_op_I_current[-5--2]",
|
| 117 |
+
"eval.tests.test_current.test_op_I_current[-5-0_0]",
|
| 118 |
+
"eval.tests.test_current.test_op_I_current[-5-0_1]",
|
| 119 |
+
"eval.tests.test_current.test_op_I_current[-7-2]",
|
| 120 |
+
"eval.tests.test_current.test_op_I_current[-inf-2]",
|
| 121 |
+
"eval.tests.test_current.test_op_I_current[0--3]",
|
| 122 |
+
"eval.tests.test_current.test_op_I_current[0-0]",
|
| 123 |
+
"eval.tests.test_current.test_op_I_current[0-5]",
|
| 124 |
+
"eval.tests.test_current.test_op_I_current[0.1-0.3]",
|
| 125 |
+
"eval.tests.test_current.test_op_I_current[0.5-0.25]",
|
| 126 |
+
"eval.tests.test_current.test_op_I_current[0.75-0.5]",
|
| 127 |
+
"eval.tests.test_current.test_op_I_current[1--5]",
|
| 128 |
+
"eval.tests.test_current.test_op_I_current[1-0]",
|
| 129 |
+
"eval.tests.test_current.test_op_I_current[1-3]",
|
| 130 |
+
"eval.tests.test_current.test_op_I_current[1-6]",
|
| 131 |
+
"eval.tests.test_current.test_op_I_current[1.23456-1]",
|
| 132 |
+
"eval.tests.test_current.test_op_I_current[1.5-2]",
|
| 133 |
+
"eval.tests.test_current.test_op_I_current[10-4]",
|
| 134 |
+
"eval.tests.test_current.test_op_I_current[100-3]",
|
| 135 |
+
"eval.tests.test_current.test_op_I_current[100-8]",
|
| 136 |
+
"eval.tests.test_current.test_op_I_current[100.0-2]",
|
| 137 |
+
"eval.tests.test_current.test_op_I_current[1000-7]",
|
| 138 |
+
"eval.tests.test_current.test_op_I_current[123.456-7.89]",
|
| 139 |
+
"eval.tests.test_current.test_op_I_current[15-10000]",
|
| 140 |
+
"eval.tests.test_current.test_op_I_current[2--4]",
|
| 141 |
+
"eval.tests.test_current.test_op_I_current[2-3]",
|
| 142 |
+
"eval.tests.test_current.test_op_I_current[2-4]",
|
| 143 |
+
"eval.tests.test_current.test_op_I_current[2-7]",
|
| 144 |
+
"eval.tests.test_current.test_op_I_current[2.5-0.5]",
|
| 145 |
+
"eval.tests.test_current.test_op_I_current[3--2]",
|
| 146 |
+
"eval.tests.test_current.test_op_I_current[3-1]",
|
| 147 |
+
"eval.tests.test_current.test_op_I_current[5-0]",
|
| 148 |
+
"eval.tests.test_current.test_op_I_current[5-3]",
|
| 149 |
+
"eval.tests.test_current.test_op_I_current[5-5]",
|
| 150 |
+
"eval.tests.test_current.test_op_I_current[6-6]",
|
| 151 |
+
"eval.tests.test_current.test_op_I_current[6-8]",
|
| 152 |
+
"eval.tests.test_current.test_op_I_current[7-2]",
|
| 153 |
+
"eval.tests.test_current.test_op_I_current[9-3]",
|
| 154 |
+
"eval.tests.test_current.test_op_I_current[inf-2]",
|
| 155 |
+
"eval.tests.test_current.test_op_I_current[nan-2]",
|
| 156 |
+
"eval.tests.test_current.test_op_Ivp_current[-2--6]",
|
| 157 |
+
"eval.tests.test_current.test_op_Ivp_current[-4-12]",
|
| 158 |
+
"eval.tests.test_current.test_op_Ivp_current[0--10]",
|
| 159 |
+
"eval.tests.test_current.test_op_Ivp_current[0-0]",
|
| 160 |
+
"eval.tests.test_current.test_op_Ivp_current[0-10]",
|
| 161 |
+
"eval.tests.test_current.test_op_Ivp_current[0.5-1.25]",
|
| 162 |
+
"eval.tests.test_current.test_op_Ivp_current[1-5]",
|
| 163 |
+
"eval.tests.test_current.test_op_Ivp_current[1.5-3.75]",
|
| 164 |
+
"eval.tests.test_current.test_op_Ivp_current[12-24]",
|
| 165 |
+
"eval.tests.test_current.test_op_Ivp_current[2-7]",
|
| 166 |
+
"eval.tests.test_current.test_op_Ivp_current[20-5]",
|
| 167 |
+
"eval.tests.test_current.test_op_Ivp_current[3-100]",
|
| 168 |
+
"eval.tests.test_current.test_op_Ivp_current[3-10]",
|
| 169 |
+
"eval.tests.test_current.test_op_Ivp_current[4--8]",
|
| 170 |
+
"eval.tests.test_current.test_op_Ivp_current[4-12]",
|
| 171 |
+
"eval.tests.test_current.test_op_Ivp_current[5-0]",
|
| 172 |
+
"eval.tests.test_current.test_op_Ivp_current[7-1]",
|
| 173 |
+
"eval.tests.test_current.test_op_Ivp_current[8-2]",
|
| 174 |
+
"eval.tests.test_current.test_op_i_lowercase_alias_current[-7-2]",
|
| 175 |
+
"eval.tests.test_current.test_op_i_lowercase_alias_current[1-0]",
|
| 176 |
+
"eval.tests.test_current.test_op_i_lowercase_alias_current[15-10000]",
|
| 177 |
+
"eval.tests.test_current.test_op_ivp_lowercase_alias_current[-2--6]",
|
| 178 |
+
"eval.tests.test_current.test_op_ivp_lowercase_alias_current[0-10]",
|
| 179 |
+
"eval.tests.test_current.test_op_ivp_lowercase_alias_current[12-24]",
|
| 180 |
+
"eval.tests.test_volt.test_default_operation_is_V",
|
| 181 |
+
"eval.tests.test_volt.test_default_operation_uses_given_operands",
|
| 182 |
+
"eval.tests.test_volt.test_op_V_volt[-2-3]",
|
| 183 |
+
"eval.tests.test_volt.test_op_V_volt[-6--2]",
|
| 184 |
+
"eval.tests.test_volt.test_op_V_volt[-inf-2]",
|
| 185 |
+
"eval.tests.test_volt.test_op_V_volt[0-0]",
|
| 186 |
+
"eval.tests.test_volt.test_op_V_volt[0-3]",
|
| 187 |
+
"eval.tests.test_volt.test_op_V_volt[0-5]",
|
| 188 |
+
"eval.tests.test_volt.test_op_V_volt[0.005-1000]",
|
| 189 |
+
"eval.tests.test_volt.test_op_V_volt[0.025-100]",
|
| 190 |
+
"eval.tests.test_volt.test_op_V_volt[0.035-100]",
|
| 191 |
+
"eval.tests.test_volt.test_op_V_volt[0.1-0.2]",
|
| 192 |
+
"eval.tests.test_volt.test_op_V_volt[0.25-0.5]",
|
| 193 |
+
"eval.tests.test_volt.test_op_V_volt[0.5-12]",
|
| 194 |
+
"eval.tests.test_volt.test_op_V_volt[1-1]",
|
| 195 |
+
"eval.tests.test_volt.test_op_V_volt[1.005-1]",
|
| 196 |
+
"eval.tests.test_volt.test_op_V_volt[1.5-2]",
|
| 197 |
+
"eval.tests.test_volt.test_op_V_volt[10-4]",
|
| 198 |
+
"eval.tests.test_volt.test_op_V_volt[1000.0-0.001]",
|
| 199 |
+
"eval.tests.test_volt.test_op_V_volt[123.456-7.89]",
|
| 200 |
+
"eval.tests.test_volt.test_op_V_volt[2--3]",
|
| 201 |
+
"eval.tests.test_volt.test_op_V_volt[2-3]",
|
| 202 |
+
"eval.tests.test_volt.test_op_V_volt[2.45-1]",
|
| 203 |
+
"eval.tests.test_volt.test_op_V_volt[2.5-4]",
|
| 204 |
+
"eval.tests.test_volt.test_op_V_volt[3.333-3]",
|
| 205 |
+
"eval.tests.test_volt.test_op_V_volt[5-5]",
|
| 206 |
+
"eval.tests.test_volt.test_op_V_volt[inf-2]",
|
| 207 |
+
"eval.tests.test_volt.test_op_V_volt[nan-2]",
|
| 208 |
+
"eval.tests.test_volt.test_op_Vpi_volt[-10-2]",
|
| 209 |
+
"eval.tests.test_volt.test_op_Vpi_volt[-6-0]",
|
| 210 |
+
"eval.tests.test_volt.test_op_Vpi_volt[-8--2]",
|
| 211 |
+
"eval.tests.test_volt.test_op_Vpi_volt[0-0]",
|
| 212 |
+
"eval.tests.test_volt.test_op_Vpi_volt[0-5]",
|
| 213 |
+
"eval.tests.test_volt.test_op_Vpi_volt[1-3]",
|
| 214 |
+
"eval.tests.test_volt.test_op_Vpi_volt[1.5-0.25]",
|
| 215 |
+
"eval.tests.test_volt.test_op_Vpi_volt[10-0]",
|
| 216 |
+
"eval.tests.test_volt.test_op_Vpi_volt[10-2]",
|
| 217 |
+
"eval.tests.test_volt.test_op_Vpi_volt[100-3]",
|
| 218 |
+
"eval.tests.test_volt.test_op_Vpi_volt[12--4]",
|
| 219 |
+
"eval.tests.test_volt.test_op_Vpi_volt[15-5]",
|
| 220 |
+
"eval.tests.test_volt.test_op_Vpi_volt[2.5-0.5]",
|
| 221 |
+
"eval.tests.test_volt.test_op_Vpi_volt[22-7]",
|
| 222 |
+
"eval.tests.test_volt.test_op_Vpi_volt[5-4]",
|
| 223 |
+
"eval.tests.test_volt.test_op_Vpi_volt[7-2]",
|
| 224 |
+
"eval.tests.test_volt.test_op_Vpi_volt[9-3]",
|
| 225 |
+
"eval.tests.test_volt.test_op_v_lowercase_alias_volt[-2-3]",
|
| 226 |
+
"eval.tests.test_volt.test_op_v_lowercase_alias_volt[5-5]",
|
| 227 |
+
"eval.tests.test_volt.test_op_v_lowercase_alias_volt[nan-2]",
|
| 228 |
+
"eval.tests.test_volt.test_op_vpi_lowercase_alias_volt[-8--2]",
|
| 229 |
+
"eval.tests.test_volt.test_op_vpi_lowercase_alias_volt[10-0]",
|
| 230 |
+
"eval.tests.test_volt.test_op_vpi_lowercase_alias_volt[10-2]"
|
| 231 |
+
]
|
| 232 |
+
},
|
| 233 |
+
"generated_module_03": {
|
| 234 |
+
"ignore_reason": "",
|
| 235 |
+
"ignored": false,
|
| 236 |
+
"ignored_tests": [],
|
| 237 |
+
"tests": [
|
| 238 |
+
"eval.tests.test_resistor_inputs.test_extra_positional_operand_is_ignored",
|
| 239 |
+
"eval.tests.test_resistor_inputs.test_flag_order_does_not_matter",
|
| 240 |
+
"eval.tests.test_resistor_inputs.test_flag_value_single_dash_equals_form",
|
| 241 |
+
"eval.tests.test_resistor_inputs.test_help_flag_prints_usage_to_stderr_exit0[long_help]",
|
| 242 |
+
"eval.tests.test_resistor_inputs.test_help_flag_prints_usage_to_stderr_exit0[short_help]",
|
| 243 |
+
"eval.tests.test_resistor_inputs.test_help_via_flag_multiple_times",
|
| 244 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[i_bad_exp]",
|
| 245 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[i_dashes]",
|
| 246 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[i_word]",
|
| 247 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[v_alpha]",
|
| 248 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[v_trailing_garbage]",
|
| 249 |
+
"eval.tests.test_resistor_inputs.test_malformed_operand_flag_errors[v_two_dots]",
|
| 250 |
+
"eval.tests.test_resistor_inputs.test_near_miss_operations_are_not_R[empty_op]",
|
| 251 |
+
"eval.tests.test_resistor_inputs.test_near_miss_operations_are_not_R[trailing_space]",
|
| 252 |
+
"eval.tests.test_resistor_inputs.test_near_miss_operations_are_not_R[unknown_suffix]",
|
| 253 |
+
"eval.tests.test_resistor_inputs.test_near_miss_operations_are_not_R[wrapped_spaces]",
|
| 254 |
+
"eval.tests.test_resistor_inputs.test_negative_flag_value_needs_separate_token",
|
| 255 |
+
"eval.tests.test_resistor_inputs.test_unknown_flag_errors",
|
| 256 |
+
"eval.tests.test_resistor_inputs.test_unknown_operation_reports_usage_exit1",
|
| 257 |
+
"eval.tests.test_resistor_r.test_r_computation[eighteen_over_p6]",
|
| 258 |
+
"eval.tests.test_resistor_r.test_r_computation[exact_two]",
|
| 259 |
+
"eval.tests.test_resistor_r.test_r_computation[fraction]",
|
| 260 |
+
"eval.tests.test_resistor_r.test_r_computation[hundred_over_iv]",
|
| 261 |
+
"eval.tests.test_resistor_r.test_r_computation[identity_equal]",
|
| 262 |
+
"eval.tests.test_resistor_r.test_r_computation[large_precision]",
|
| 263 |
+
"eval.tests.test_resistor_r.test_r_computation[larger]",
|
| 264 |
+
"eval.tests.test_resistor_r.test_r_computation[many_operand_places]",
|
| 265 |
+
"eval.tests.test_resistor_r.test_r_computation[neg_fraction]",
|
| 266 |
+
"eval.tests.test_resistor_r.test_r_computation[neg_over_neg]",
|
| 267 |
+
"eval.tests.test_resistor_r.test_r_computation[neg_over_pos]",
|
| 268 |
+
"eval.tests.test_resistor_r.test_r_computation[nine_over_two]",
|
| 269 |
+
"eval.tests.test_resistor_r.test_r_computation[ohm_basic]",
|
| 270 |
+
"eval.tests.test_resistor_r.test_r_computation[point_two_over_pfour]",
|
| 271 |
+
"eval.tests.test_resistor_r.test_r_computation[pos_over_neg]",
|
| 272 |
+
"eval.tests.test_resistor_r.test_r_computation[quarter]",
|
| 273 |
+
"eval.tests.test_resistor_r.test_r_computation[repeating_seventh]",
|
| 274 |
+
"eval.tests.test_resistor_r.test_r_computation[repeating_third]",
|
| 275 |
+
"eval.tests.test_resistor_r.test_r_computation[small_fraction]",
|
| 276 |
+
"eval.tests.test_resistor_r.test_r_computation[sub_unit_result]",
|
| 277 |
+
"eval.tests.test_resistor_r.test_r_computation[three_half]",
|
| 278 |
+
"eval.tests.test_resistor_r.test_r_computation[tiny_current]",
|
| 279 |
+
"eval.tests.test_resistor_r.test_r_computation[v_less_than_i]",
|
| 280 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_005]",
|
| 281 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_015]",
|
| 282 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_025]",
|
| 283 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_045]",
|
| 284 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_065]",
|
| 285 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_075]",
|
| 286 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[boundary_135]",
|
| 287 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[half_to_even_up]",
|
| 288 |
+
"eval.tests.test_resistor_r.test_r_fmt_rounding_boundaries[seventh_over_f]",
|
| 289 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[eighteen_over_p6_lower]",
|
| 290 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[exact_two_lower]",
|
| 291 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[fraction_lower]",
|
| 292 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[hundred_over_iv_lower]",
|
| 293 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[identity_equal_lower]",
|
| 294 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[large_precision_lower]",
|
| 295 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[larger_lower]",
|
| 296 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[many_operand_places_lower]",
|
| 297 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[neg_fraction_lower]",
|
| 298 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[neg_over_neg_lower]",
|
| 299 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[neg_over_pos_lower]",
|
| 300 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[nine_over_two_lower]",
|
| 301 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[ohm_basic_lower]",
|
| 302 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[point_two_over_pfour_lower]",
|
| 303 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[pos_over_neg_lower]",
|
| 304 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[quarter_lower]",
|
| 305 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[repeating_seventh_lower]",
|
| 306 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[repeating_third_lower]",
|
| 307 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[small_fraction_lower]",
|
| 308 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[sub_unit_result_lower]",
|
| 309 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[three_half_lower]",
|
| 310 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[tiny_current_lower]",
|
| 311 |
+
"eval.tests.test_resistor_r.test_r_lowercase_op_equivalence[v_less_than_i_lower]",
|
| 312 |
+
"eval.tests.test_resistor_r.test_r_nan_zero_over_zero_boundary[both_zero]",
|
| 313 |
+
"eval.tests.test_resistor_r.test_r_operand_display_rounds_but_computation_uses_full_precision",
|
| 314 |
+
"eval.tests.test_resistor_r.test_r_zero_current_infinity_boundaries[neg_voltage_zero_current]",
|
| 315 |
+
"eval.tests.test_resistor_r.test_r_zero_current_infinity_boundaries[pos_voltage_zero_current]",
|
| 316 |
+
"eval.tests.test_resistor_r.test_r_zero_voltage_identity_boundaries[zero_voltage_negative_current]",
|
| 317 |
+
"eval.tests.test_resistor_r.test_r_zero_voltage_identity_boundaries[zero_voltage_positive_current]",
|
| 318 |
+
"eval.tests.test_resistor_r.test_repeated_r_runs_deterministic"
|
| 319 |
+
]
|
| 320 |
+
},
|
| 321 |
+
"generated_module_04": {
|
| 322 |
+
"ignore_reason": "",
|
| 323 |
+
"ignored": false,
|
| 324 |
+
"ignored_tests": [],
|
| 325 |
+
"tests": [
|
| 326 |
+
"eval.tests.test_power_dispatch.test_help_flag_prints_flag_usage_on_stderr_exit_0",
|
| 327 |
+
"eval.tests.test_power_dispatch.test_help_long_form_matches_short",
|
| 328 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[ p]",
|
| 329 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[BAD]",
|
| 330 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[P ]",
|
| 331 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[Power]",
|
| 332 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[X]",
|
| 333 |
+
"eval.tests.test_power_dispatch.test_invalid_command_prints_usage_and_exits_1[]",
|
| 334 |
+
"eval.tests.test_power_dispatch.test_malformed_float_flag_rejected[0x]",
|
| 335 |
+
"eval.tests.test_power_dispatch.test_malformed_float_flag_rejected[1,5]",
|
| 336 |
+
"eval.tests.test_power_dispatch.test_malformed_float_flag_rejected[1e5abc]",
|
| 337 |
+
"eval.tests.test_power_dispatch.test_malformed_float_flag_rejected[]",
|
| 338 |
+
"eval.tests.test_power_dispatch.test_malformed_float_flag_rejected[abc]",
|
| 339 |
+
"eval.tests.test_power_dispatch.test_missing_flag_value_rejected_with_exit_2",
|
| 340 |
+
"eval.tests.test_power_dispatch.test_nan_is_a_valid_float_flag_value",
|
| 341 |
+
"eval.tests.test_power_dispatch.test_negative_power_output_is_expected_form",
|
| 342 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[P]",
|
| 343 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[Pir]",
|
| 344 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[Pvr]",
|
| 345 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[p]",
|
| 346 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[pir]",
|
| 347 |
+
"eval.tests.test_power_dispatch.test_power_commands_return_success[pvr]",
|
| 348 |
+
"eval.tests.test_power_dispatch.test_unknown_flag_rejected_with_exit_2",
|
| 349 |
+
"eval.tests.test_power_p.test_p_command_case_insensitive_dispatch[P-6.0]",
|
| 350 |
+
"eval.tests.test_power_p.test_p_command_case_insensitive_dispatch[p-6.0]",
|
| 351 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[1.004-1.0]",
|
| 352 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[1.005-1.0]",
|
| 353 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[12345.678-1.0]",
|
| 354 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[2.675-1.0]",
|
| 355 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[2.685-1.0]",
|
| 356 |
+
"eval.tests.test_power_p.test_p_command_display_rounding[999.999-1.0]",
|
| 357 |
+
"eval.tests.test_power_p.test_p_command_inf_voltage_overflow",
|
| 358 |
+
"eval.tests.test_power_p.test_p_command_multiplication[0.0-0.0]",
|
| 359 |
+
"eval.tests.test_power_p.test_p_command_multiplication[0.0-5.0]",
|
| 360 |
+
"eval.tests.test_power_p.test_p_command_multiplication[0.005-0.005]",
|
| 361 |
+
"eval.tests.test_power_p.test_p_command_multiplication[1.0-1.0]",
|
| 362 |
+
"eval.tests.test_power_p.test_p_command_multiplication[10.0-2.0]",
|
| 363 |
+
"eval.tests.test_power_p.test_p_command_multiplication[100.0-100.0]",
|
| 364 |
+
"eval.tests.test_power_p.test_p_command_multiplication[100.0-2.0]",
|
| 365 |
+
"eval.tests.test_power_p.test_p_command_multiplication[12.0-0.5]",
|
| 366 |
+
"eval.tests.test_power_p.test_p_command_multiplication[12345.678-0.0001]",
|
| 367 |
+
"eval.tests.test_power_p.test_p_command_multiplication[2.5-3.1]",
|
| 368 |
+
"eval.tests.test_power_p.test_p_command_multiplication[5.0-0.0]",
|
| 369 |
+
"eval.tests.test_power_p.test_p_command_nan_propagates",
|
| 370 |
+
"eval.tests.test_power_p.test_p_command_negative_inputs[-0.0-7.0]",
|
| 371 |
+
"eval.tests.test_power_p.test_p_command_negative_inputs[-2.0--4.0]",
|
| 372 |
+
"eval.tests.test_power_p.test_p_command_negative_inputs[-5.0-3.0]",
|
| 373 |
+
"eval.tests.test_power_p.test_p_command_negative_inputs[5.0--3.0]",
|
| 374 |
+
"eval.tests.test_power_p.test_p_command_negative_zero_product",
|
| 375 |
+
"eval.tests.test_power_p.test_p_command_numeric_boundaries[1e+153-1e+154]",
|
| 376 |
+
"eval.tests.test_power_p.test_p_command_numeric_boundaries[1e+200-1e-300]",
|
| 377 |
+
"eval.tests.test_power_p.test_p_command_numeric_boundaries[1e-200-1e-200]",
|
| 378 |
+
"eval.tests.test_power_p.test_p_command_overflow_inf_result",
|
| 379 |
+
"eval.tests.test_power_pir.test_pir_command_case_insensitive_dispatch[Pir-2.5]",
|
| 380 |
+
"eval.tests.test_power_pir.test_pir_command_case_insensitive_dispatch[pir-2.5]",
|
| 381 |
+
"eval.tests.test_power_pir.test_pir_command_nan_propagates",
|
| 382 |
+
"eval.tests.test_power_pir.test_pir_command_negative_zero_renders_as_negative",
|
| 383 |
+
"eval.tests.test_power_pir.test_pir_command_numeric_boundaries[1e+200-1e-300]",
|
| 384 |
+
"eval.tests.test_power_pir.test_pir_command_numeric_boundaries[1e-300-1e-300]",
|
| 385 |
+
"eval.tests.test_power_pir.test_pir_command_overflow_inf_result",
|
| 386 |
+
"eval.tests.test_power_pir.test_pir_command_rounding_and_scaling[1.005-1.0]",
|
| 387 |
+
"eval.tests.test_power_pir.test_pir_command_rounding_and_scaling[10.0-0.001]",
|
| 388 |
+
"eval.tests.test_power_pir.test_pir_command_rounding_and_scaling[100.0-0.0001]",
|
| 389 |
+
"eval.tests.test_power_pir.test_pir_command_rounding_and_scaling[2.5-0.4]",
|
| 390 |
+
"eval.tests.test_power_pir.test_pir_command_sign_semantics[-2.0--4.0]",
|
| 391 |
+
"eval.tests.test_power_pir.test_pir_command_sign_semantics[-3.0-2.0]",
|
| 392 |
+
"eval.tests.test_power_pir.test_pir_command_sign_semantics[0.0--7.0]",
|
| 393 |
+
"eval.tests.test_power_pir.test_pir_command_sign_semantics[3.0--2.0]",
|
| 394 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[0.0-0.0]",
|
| 395 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[0.0-5.0]",
|
| 396 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[0.5-10.0]",
|
| 397 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[1.0-1.0]",
|
| 398 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[10.0-4.0]",
|
| 399 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[2.0-3.0]",
|
| 400 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[3.0-2.5]",
|
| 401 |
+
"eval.tests.test_power_pir.test_pir_command_square_times_resistance[5.0-0.0]",
|
| 402 |
+
"eval.tests.test_power_pvr.test_pvr_command_case_insensitive_dispatch[Pvr-25.0]",
|
| 403 |
+
"eval.tests.test_power_pvr.test_pvr_command_case_insensitive_dispatch[pvr-25.0]",
|
| 404 |
+
"eval.tests.test_power_pvr.test_pvr_command_division_by_zero[0.0-0.0]",
|
| 405 |
+
"eval.tests.test_power_pvr.test_pvr_command_division_by_zero[1.0-0.0_0]",
|
| 406 |
+
"eval.tests.test_power_pvr.test_pvr_command_division_by_zero[1.0-0.0_1]",
|
| 407 |
+
"eval.tests.test_power_pvr.test_pvr_command_division_by_zero[10.0-0.0]",
|
| 408 |
+
"eval.tests.test_power_pvr.test_pvr_command_nan_inputs[2.0-nan]",
|
| 409 |
+
"eval.tests.test_power_pvr.test_pvr_command_nan_inputs[nan-2.0]",
|
| 410 |
+
"eval.tests.test_power_pvr.test_pvr_command_numeric_boundaries[1.0-1e-300]",
|
| 411 |
+
"eval.tests.test_power_pvr.test_pvr_command_numeric_boundaries[1e-100-1e+200]",
|
| 412 |
+
"eval.tests.test_power_pvr.test_pvr_command_numeric_boundaries[2e+200-1e+100]",
|
| 413 |
+
"eval.tests.test_power_pvr.test_pvr_command_rounding_and_scaling[0.005-2.0]",
|
| 414 |
+
"eval.tests.test_power_pvr.test_pvr_command_rounding_and_scaling[1.005-1.0]",
|
| 415 |
+
"eval.tests.test_power_pvr.test_pvr_command_rounding_and_scaling[12345.678-10.0]",
|
| 416 |
+
"eval.tests.test_power_pvr.test_pvr_command_rounding_and_scaling[3.0-0.001]",
|
| 417 |
+
"eval.tests.test_power_pvr.test_pvr_command_sign_semantics[-10.0-4.0]",
|
| 418 |
+
"eval.tests.test_power_pvr.test_pvr_command_sign_semantics[-5.0--2.0]",
|
| 419 |
+
"eval.tests.test_power_pvr.test_pvr_command_sign_semantics[0.0--3.0]",
|
| 420 |
+
"eval.tests.test_power_pvr.test_pvr_command_sign_semantics[10.0--4.0]",
|
| 421 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[0.0-5.0]",
|
| 422 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[1.0-0.5]",
|
| 423 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[1.0-1.0]",
|
| 424 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[10.0-2.0]",
|
| 425 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[10.0-4.0]",
|
| 426 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[12.0-1.0]",
|
| 427 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[2.5-0.4]",
|
| 428 |
+
"eval.tests.test_power_pvr.test_pvr_command_square_over_resistance[6.0-3.0]"
|
| 429 |
+
]
|
| 430 |
+
}
|
| 431 |
+
},
|
| 432 |
+
"commit": "a19a03fea47fa593960ec429c054fc433557c8c9",
|
| 433 |
+
"data_source": "synthetic_programgym",
|
| 434 |
+
"difficulty": "easy",
|
| 435 |
+
"difficulty_score": 1.9753858489894673,
|
| 436 |
+
"eval_clean_hashes": [
|
| 437 |
+
"f1bd5c1c4fc038dbf619df4c30567ba14f3b9a0d39a3df5d746f5793d581d637"
|
| 438 |
+
],
|
| 439 |
+
"input_record": {
|
| 440 |
+
"commit": "a19a03fea47fa593960ec429c054fc433557c8c9",
|
| 441 |
+
"commits": 38,
|
| 442 |
+
"contributors": 3,
|
| 443 |
+
"difficulty": "easy",
|
| 444 |
+
"difficulty_code_lines": 9449,
|
| 445 |
+
"difficulty_has_tests": false,
|
| 446 |
+
"difficulty_product_code_lines": 9449,
|
| 447 |
+
"difficulty_runtime_deps": 0,
|
| 448 |
+
"difficulty_score": 1.9753858489894673,
|
| 449 |
+
"difficulty_test_code_lines": 474,
|
| 450 |
+
"full_name": "vladimirvivien/learning-go",
|
| 451 |
+
"github_stars": 235,
|
| 452 |
+
"input_joern_zip": "go_joern/vladimirvivien__learning-go.zip",
|
| 453 |
+
"joern_status": true,
|
| 454 |
+
"joern_time": 5.657172044971958,
|
| 455 |
+
"language": "go",
|
| 456 |
+
"pb_match": [
|
| 457 |
+
{
|
| 458 |
+
"pb_fullname": "go-critic/go-critic",
|
| 459 |
+
"rank": 626,
|
| 460 |
+
"similarity": 0.5232120156288147
|
| 461 |
+
},
|
| 462 |
+
{
|
| 463 |
+
"pb_fullname": "mibk/dupl",
|
| 464 |
+
"rank": 581,
|
| 465 |
+
"similarity": 0.529873788356781
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"pb_fullname": "mgechev/revive",
|
| 469 |
+
"rank": 487,
|
| 470 |
+
"similarity": 0.5415235757827759
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"pb_fullname": "cweill/gotests",
|
| 474 |
+
"rank": 935,
|
| 475 |
+
"similarity": 0.5068190097808838
|
| 476 |
+
}
|
| 477 |
+
],
|
| 478 |
+
"repo_age": 12.02,
|
| 479 |
+
"repo_path": "go/vladimirvivien__learning-go",
|
| 480 |
+
"source": "commit:a19a03fea47fa593960ec429c054fc433557c8c9",
|
| 481 |
+
"status": "done",
|
| 482 |
+
"url": "https://github.com/vladimirvivien/learning-go"
|
| 483 |
+
},
|
| 484 |
+
"instance_id": "vladimirvivien__learning-go.a19a03f",
|
| 485 |
+
"language": "go",
|
| 486 |
+
"module_iterations": [
|
| 487 |
+
{
|
| 488 |
+
"actual_iterations": 5,
|
| 489 |
+
"branch_name": "generated_module_01",
|
| 490 |
+
"iteration_limit": 5,
|
| 491 |
+
"module_index": 1,
|
| 492 |
+
"module_kind": "source",
|
| 493 |
+
"termination_reason": "max_iterations"
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"actual_iterations": 5,
|
| 497 |
+
"branch_name": "generated_module_02",
|
| 498 |
+
"iteration_limit": 5,
|
| 499 |
+
"module_index": 2,
|
| 500 |
+
"module_kind": "source",
|
| 501 |
+
"termination_reason": "max_iterations"
|
| 502 |
+
},
|
| 503 |
+
{
|
| 504 |
+
"actual_iterations": 5,
|
| 505 |
+
"branch_name": "generated_module_03",
|
| 506 |
+
"iteration_limit": 5,
|
| 507 |
+
"module_index": 3,
|
| 508 |
+
"module_kind": "source",
|
| 509 |
+
"termination_reason": "max_iterations"
|
| 510 |
+
},
|
| 511 |
+
{
|
| 512 |
+
"actual_iterations": 5,
|
| 513 |
+
"branch_name": "generated_module_04",
|
| 514 |
+
"iteration_limit": 5,
|
| 515 |
+
"module_index": 4,
|
| 516 |
+
"module_kind": "source",
|
| 517 |
+
"termination_reason": "max_iterations"
|
| 518 |
+
}
|
| 519 |
+
],
|
| 520 |
+
"repository": "vladimirvivien/learning-go"
|
| 521 |
+
}
|
vladimirvivien--learning-go.a19a03f/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
|
vladimirvivien--learning-go.a19a03f/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b4429986dd98f0a14c494d24a3c888a40801026fe6e8ef55bc03561eb4a5ad6
|
| 3 |
+
size 228
|
voultapher--self_cell.3b0f5c3/environment/Dockerfile
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 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 CARGO_HOME=/usr/local/cargo
|
| 57 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 58 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 59 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 60 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 61 |
+
ENV PAGER=cat
|
| 62 |
+
ENV MANPAGER=cat
|
| 63 |
+
ENV LESS=-R
|
| 64 |
+
ENV TQDM_DISABLE=1
|
| 65 |
+
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/*
|
| 66 |
+
RUN set -eux; for attempt in 1 2 3 4 5; do rustup component add llvm-tools-preview --toolchain 1.97.1 && break; [ "$attempt" -lt 5 ] || exit 1; sleep $((attempt * 2)); done
|
| 67 |
+
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"
|
| 68 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 69 |
+
WORKDIR /workspace
|
| 70 |
+
ADD workspace.tar.gz /workspace/
|
| 71 |
+
COPY executable /workspace/executable
|
| 72 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 73 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 74 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 75 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 76 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 77 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 78 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 79 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 80 |
+
RUN chmod 111 /workspace/executable
|
| 81 |
+
WORKDIR /workspace
|
| 82 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 83 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 84 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 85 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 86 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 87 |
+
RUN mkdir -p /home/agent \
|
| 88 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 89 |
+
&& chown agent:agent /workspace/executable \
|
| 90 |
+
&& chmod 111 /workspace/executable
|
| 91 |
+
ENV HOME=/home/agent
|
| 92 |
+
WORKDIR /workspace
|
| 93 |
+
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"]
|
voultapher--self_cell.3b0f5c3/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}
|
voultapher--self_cell.3b0f5c3/environment/download.sh
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# Standalone dependency prefetch for the self_cell repository.
|
| 3 |
+
#
|
| 4 |
+
# Selected build target: the `lazy_ast` example (examples/ workspace; see
|
| 5 |
+
# single.json). Its only registry dependency is once_cell = "=1.1.0". The
|
| 6 |
+
# self_cell crate itself is an in-repository path dependency
|
| 7 |
+
# (examples/lazy_ast/Cargo.toml -> self_cell = { path = "../../" }), so it does
|
| 8 |
+
# not need to be downloaded; cargo resolves it from the repository source tree.
|
| 9 |
+
#
|
| 10 |
+
# This file is SOURCED (`source /source_ro/download.sh`) during the networked
|
| 11 |
+
# download stage, at which point the repository tree is NOT mounted and only
|
| 12 |
+
# this file itself is present. It must therefore be fully self-contained: it
|
| 13 |
+
# generates its own temporary Cargo manifest from inline data and runs
|
| 14 |
+
# `cargo fetch --manifest-path` against that manifest. The fetched crates land
|
| 15 |
+
# in the shared CARGO_HOME registry cache, which the offline build stage reuses
|
| 16 |
+
# via `cargo build --offline`.
|
| 17 |
+
#
|
| 18 |
+
# It must not read any repository file and must not build, test, or compile.
|
| 19 |
+
|
| 20 |
+
set -u
|
| 21 |
+
|
| 22 |
+
# Anchor the shared cargo registry cache so the offline build stage finds the
|
| 23 |
+
# prefetched crates in the same place.
|
| 24 |
+
if [ -z "${CARGO_HOME:-}" ]; then
|
| 25 |
+
export CARGO_HOME="${HOME}/.cargo"
|
| 26 |
+
fi
|
| 27 |
+
|
| 28 |
+
download_dir="$(mktemp -d)"
|
| 29 |
+
trap 'rm -rf "$download_dir"' EXIT
|
| 30 |
+
|
| 31 |
+
# Generate a temporary manifest listing exactly the registry dependencies that
|
| 32 |
+
# the selected `lazy_ast` example needs.
|
| 33 |
+
cat > "$download_dir/Cargo.toml" <<'EOF'
|
| 34 |
+
[package]
|
| 35 |
+
name = "self_cell_prefetch_probe"
|
| 36 |
+
version = "0.0.0"
|
| 37 |
+
edition = "2018"
|
| 38 |
+
|
| 39 |
+
[dependencies]
|
| 40 |
+
once_cell = "=1.1.0"
|
| 41 |
+
EOF
|
| 42 |
+
|
| 43 |
+
mkdir -p "$download_dir/src"
|
| 44 |
+
printf '' > "$download_dir/src/lib.rs"
|
| 45 |
+
|
| 46 |
+
# Fetch once_cell into the shared cargo registry cache. Explicit branch so a
|
| 47 |
+
# real failure propagates instead of being swallowed; safe whether sourced or
|
| 48 |
+
# executed directly.
|
| 49 |
+
if ! cargo fetch --manifest-path "$download_dir/Cargo.toml"; then
|
| 50 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 51 |
+
return 1
|
| 52 |
+
else
|
| 53 |
+
exit 1
|
| 54 |
+
fi
|
| 55 |
+
fi
|