Datasets:
commit (part 48)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +14 -0
- google--codesearch.b34f2a0/environment/Dockerfile +1 -0
- google--codesearch.b34f2a0/tests/Dockerfile +1 -0
- google--fuse-archive.8b6426a/environment/Dockerfile +92 -0
- google--fuse-archive.8b6426a/environment/docker-compose.yaml +22 -0
- google--fuse-archive.8b6426a/environment/download.sh +5 -0
- google--fuse-archive.8b6426a/environment/executable +3 -0
- google--fuse-archive.8b6426a/environment/harbor_configure_apt_mirror.sh +37 -0
- google--fuse-archive.8b6426a/environment/harbor_configure_java_mirrors.sh +50 -0
- google--fuse-archive.8b6426a/environment/harbor_prepare_download_env.sh +44 -0
- google--fuse-archive.8b6426a/environment/programgym-gcc13.tar.gz +3 -0
- google--fuse-archive.8b6426a/environment/workspace.tar.gz +3 -0
- google--fuse-archive.8b6426a/instruction.md +98 -0
- google--fuse-archive.8b6426a/solution/solve.sh +33 -0
- google--fuse-archive.8b6426a/task.toml +69 -0
- google--fuse-archive.8b6426a/tests/Dockerfile +106 -0
- google--fuse-archive.8b6426a/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- google--fuse-archive.8b6426a/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- google--fuse-archive.8b6426a/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- google--fuse-archive.8b6426a/tests/blobs/tests/generated_upstream.tar.gz +3 -0
- google--fuse-archive.8b6426a/tests/docker-compose.yaml +22 -0
- google--fuse-archive.8b6426a/tests/download.sh +5 -0
- google--fuse-archive.8b6426a/tests/executable +3 -0
- google--fuse-archive.8b6426a/tests/harbor_configure_apt_mirror.sh +37 -0
- google--fuse-archive.8b6426a/tests/harbor_configure_java_mirrors.sh +50 -0
- google--fuse-archive.8b6426a/tests/harbor_prepare_download_env.sh +44 -0
- google--fuse-archive.8b6426a/tests/programgym-gcc13.tar.gz +3 -0
- google--fuse-archive.8b6426a/tests/programgym_evaluator.py +1201 -0
- google--fuse-archive.8b6426a/tests/programgym_task.json +0 -0
- google--fuse-archive.8b6426a/tests/test.sh +82 -0
- google--fuse-archive.8b6426a/tests/workspace.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/environment/Dockerfile +60 -0
- google--mdbook-i18n-helpers.da4106d/environment/download.sh +2210 -0
- google--mdbook-i18n-helpers.da4106d/environment/executable +3 -0
- google--mdbook-i18n-helpers.da4106d/environment/harbor_prepare_download_env.sh +37 -0
- google--mdbook-i18n-helpers.da4106d/environment/workspace.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/instruction.md +98 -0
- google--mdbook-i18n-helpers.da4106d/solution/solve.sh +33 -0
- google--mdbook-i18n-helpers.da4106d/task.toml +69 -0
- google--mdbook-i18n-helpers.da4106d/tests/Dockerfile +69 -0
- google--mdbook-i18n-helpers.da4106d/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- google--mdbook-i18n-helpers.da4106d/tests/download.sh +2210 -0
- google--mdbook-i18n-helpers.da4106d/tests/executable +3 -0
- google--mdbook-i18n-helpers.da4106d/tests/harbor_prepare_download_env.sh +37 -0
- google--mdbook-i18n-helpers.da4106d/tests/programgym_evaluator.py +1201 -0
- google--mdbook-i18n-helpers.da4106d/tests/programgym_task.json +854 -0
- google--mdbook-i18n-helpers.da4106d/tests/test.sh +82 -0
.gitattributes
CHANGED
|
@@ -3264,3 +3264,17 @@ golang-minibear2333--golang.4a898d4/environment/executable filter=lfs diff=lfs m
|
|
| 3264 |
golang-minibear2333--golang.4a898d4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3265 |
gomarkdown--markdown.e08cff8/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3266 |
gomarkdown--markdown.e08cff8/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3264 |
golang-minibear2333--golang.4a898d4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3265 |
gomarkdown--markdown.e08cff8/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3266 |
gomarkdown--markdown.e08cff8/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3267 |
+
google--fuse-archive.8b6426a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3268 |
+
google--fuse-archive.8b6426a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3269 |
+
google--mdbook-i18n-helpers.da4106d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3270 |
+
google--mdbook-i18n-helpers.da4106d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3271 |
+
googlecloudplatform--berglas.b62fff0/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3272 |
+
googlecloudplatform--berglas.b62fff0/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3273 |
+
googlecloudplatform--gcping.f436afd/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3274 |
+
googlecloudplatform--gcping.f436afd/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3275 |
+
googlecloudplatform--microservices-demo.5096a85/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3276 |
+
googlecloudplatform--microservices-demo.5096a85/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3277 |
+
googlecloudplatform--protoc-gen-bq-schema.fb1db22/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3278 |
+
googlecloudplatform--protoc-gen-bq-schema.fb1db22/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3279 |
+
googleprojectzero--jackalope.c4a5b46/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3280 |
+
googleprojectzero--jackalope.c4a5b46/tests/executable filter=lfs diff=lfs merge=lfs -text
|
google--codesearch.b34f2a0/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"]
|
google--codesearch.b34f2a0/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"]
|
google--fuse-archive.8b6426a/environment/Dockerfile
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 51 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 52 |
+
ENV HOME=/workspace
|
| 53 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 54 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 55 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 56 |
+
ENV PAGER=cat
|
| 57 |
+
ENV MANPAGER=cat
|
| 58 |
+
ENV LESS=-R
|
| 59 |
+
ENV TQDM_DISABLE=1
|
| 60 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
|
| 61 |
+
ARG CMAKE_VERSION=3.31.10
|
| 62 |
+
RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 63 |
+
COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
|
| 64 |
+
ARG GCC_VERSION=13.3.0
|
| 65 |
+
RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
|
| 66 |
+
# programgym_quota_aware_nproc=1
|
| 67 |
+
RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
|
| 68 |
+
WORKDIR /workspace
|
| 69 |
+
ADD workspace.tar.gz /workspace/
|
| 70 |
+
COPY executable /workspace/executable
|
| 71 |
+
COPY download.sh /workspace/download.sh
|
| 72 |
+
RUN chmod 755 /workspace/download.sh
|
| 73 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 74 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 75 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 76 |
+
&& rm -f /workspace/download.sh \
|
| 77 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 78 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 79 |
+
RUN chmod 111 /workspace/executable
|
| 80 |
+
WORKDIR /workspace
|
| 81 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 82 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 83 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 84 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 85 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 86 |
+
RUN mkdir -p /home/agent \
|
| 87 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 88 |
+
&& chown agent:agent /workspace/executable \
|
| 89 |
+
&& chmod 111 /workspace/executable
|
| 90 |
+
ENV HOME=/home/agent
|
| 91 |
+
WORKDIR /workspace
|
| 92 |
+
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"]
|
google--fuse-archive.8b6426a/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}
|
google--fuse-archive.8b6426a/environment/download.sh
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
apt-get update
|
| 4 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libfuse3-dev libarchive-dev libboost-dev pkg-config
|
| 5 |
+
export LD_LIBRARY_PATH=/opt/gcc-13/lib64
|
google--fuse-archive.8b6426a/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:626634d6eea1791fd2cd7648db0295bc6f3a469d075e7efe7df51ae971446aa7
|
| 3 |
+
size 266376
|
google--fuse-archive.8b6426a/environment/harbor_configure_apt_mirror.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
repository_base="${1%/}"
|
| 5 |
+
if [[ -z "$repository_base" ]]; then
|
| 6 |
+
exit 0
|
| 7 |
+
fi
|
| 8 |
+
|
| 9 |
+
. /etc/os-release
|
| 10 |
+
codename="${VERSION_CODENAME:-}"
|
| 11 |
+
if [[ -z "$codename" ]]; then
|
| 12 |
+
echo "VERSION_CODENAME is not set" >&2
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
if [[ "$ID" == "ubuntu" ]]; then
|
| 17 |
+
repository_name="apt-proxy"
|
| 18 |
+
components="main universe restricted multiverse"
|
| 19 |
+
else
|
| 20 |
+
repository_name="debian-proxy"
|
| 21 |
+
components="main contrib non-free non-free-firmware"
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
+
install -d /etc/apt/sources.list.d
|
| 25 |
+
rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
|
| 26 |
+
printf 'deb [trusted=yes] %s/%s %s %s\n' \
|
| 27 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 28 |
+
>/etc/apt/sources.list
|
| 29 |
+
printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
|
| 30 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 31 |
+
>>/etc/apt/sources.list
|
| 32 |
+
|
| 33 |
+
if [[ "$ID" != "ubuntu" ]]; then
|
| 34 |
+
printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
|
| 35 |
+
"$repository_base" "debian-proxy-security" "$codename" "$components" \
|
| 36 |
+
>>/etc/apt/sources.list
|
| 37 |
+
fi
|
google--fuse-archive.8b6426a/environment/harbor_configure_java_mirrors.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
maven_url="${1%/}"
|
| 5 |
+
plugin_url="${2%/}"
|
| 6 |
+
jitpack_url="${3%/}"
|
| 7 |
+
|
| 8 |
+
install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
|
| 9 |
+
if [[ -n "$maven_url" ]]; then
|
| 10 |
+
cat >/workspace/.m2/settings.xml <<EOF
|
| 11 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 12 |
+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
|
| 13 |
+
<mirrors>
|
| 14 |
+
<mirror>
|
| 15 |
+
<id>programgym-maven</id>
|
| 16 |
+
<name>ProgramGym Maven mirror</name>
|
| 17 |
+
<url>${maven_url}</url>
|
| 18 |
+
<mirrorOf>*</mirrorOf>
|
| 19 |
+
</mirror>
|
| 20 |
+
</mirrors>
|
| 21 |
+
</settings>
|
| 22 |
+
EOF
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
|
| 26 |
+
def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
|
| 27 |
+
def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
|
| 28 |
+
def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
|
| 29 |
+
|
| 30 |
+
settingsEvaluated { settings ->
|
| 31 |
+
settings.pluginManagement.repositories {
|
| 32 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 33 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
allprojects {
|
| 38 |
+
buildscript.repositories {
|
| 39 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 40 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 41 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 42 |
+
}
|
| 43 |
+
repositories {
|
| 44 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 45 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
EOF
|
| 49 |
+
cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
|
| 50 |
+
/workspace/.gradle/init.d/programgym-mirrors.gradle
|
google--fuse-archive.8b6426a/environment/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
|
| 6 |
+
sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
|
| 7 |
+
fi
|
| 8 |
+
if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
|
| 9 |
+
sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
|
| 10 |
+
fi
|
| 11 |
+
if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
|
| 12 |
+
sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
|
| 13 |
+
fi
|
| 14 |
+
source /workspace/download.sh
|
| 15 |
+
set +a
|
| 16 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 17 |
+
import os
|
| 18 |
+
import shlex
|
| 19 |
+
|
| 20 |
+
ignored = {
|
| 21 |
+
"ALL_PROXY",
|
| 22 |
+
"HTTP_PROXY",
|
| 23 |
+
"HTTPS_PROXY",
|
| 24 |
+
"NO_PROXY",
|
| 25 |
+
"OLDPWD",
|
| 26 |
+
"PIP_PROXY",
|
| 27 |
+
"PWD",
|
| 28 |
+
"SHLVL",
|
| 29 |
+
"_",
|
| 30 |
+
"all_proxy",
|
| 31 |
+
"http_proxy",
|
| 32 |
+
"https_proxy",
|
| 33 |
+
"no_proxy",
|
| 34 |
+
"pip_proxy",
|
| 35 |
+
}
|
| 36 |
+
for key in sorted(os.environ):
|
| 37 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 38 |
+
continue
|
| 39 |
+
value = os.environ[key]
|
| 40 |
+
if "\n" in value:
|
| 41 |
+
continue
|
| 42 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 43 |
+
PY
|
| 44 |
+
chmod 0644 /etc/profile.d/programgym_download_env.sh
|
google--fuse-archive.8b6426a/environment/programgym-gcc13.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
|
| 3 |
+
size 146620404
|
google--fuse-archive.8b6426a/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5255e49d04fa697cc2d14b05e76fc8c83a8fb0a979af2c2fad9b1765923220f
|
| 3 |
+
size 13944
|
google--fuse-archive.8b6426a/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
|
google--fuse-archive.8b6426a/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
|
google--fuse-archive.8b6426a/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/google--fuse-archive.8b6426a"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for google/fuse-archive"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "google__fuse-archive.8b6426a"
|
| 32 |
+
repository = "google/fuse-archive"
|
| 33 |
+
commit = "8b6426a00c98b09f463653e84124237db91d86cc"
|
| 34 |
+
language = "cpp"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.7649975992848805
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 220
|
| 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"
|
google--fuse-archive.8b6426a/tests/Dockerfile
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 51 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 52 |
+
ENV HOME=/workspace
|
| 53 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 54 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 55 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 56 |
+
ENV PAGER=cat
|
| 57 |
+
ENV MANPAGER=cat
|
| 58 |
+
ENV LESS=-R
|
| 59 |
+
ENV TQDM_DISABLE=1
|
| 60 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
|
| 61 |
+
ARG CMAKE_VERSION=3.31.10
|
| 62 |
+
RUN set -eux; python3 -m pip install --no-cache-dir "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 63 |
+
COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
|
| 64 |
+
ARG GCC_VERSION=13.3.0
|
| 65 |
+
RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
|
| 66 |
+
# programgym_quota_aware_nproc=1
|
| 67 |
+
RUN set -eux; printf '%s\n' '#!/bin/sh' 'if [ "$#" -gt 0 ]; then exec /usr/bin/nproc "$@"; fi' 'visible="$(/usr/bin/nproc)"' 'quota=""' 'period=""' 'if [ -r /sys/fs/cgroup/cpu.max ]; then' ' set -- $(cat /sys/fs/cgroup/cpu.max)' ' quota="${1:-}"' ' period="${2:-}"' 'elif [ -r /sys/fs/cgroup/cpu/cpu.cfs_quota_us ] && [ -r /sys/fs/cgroup/cpu/cpu.cfs_period_us ]; then' ' quota="$(cat /sys/fs/cgroup/cpu/cpu.cfs_quota_us)"' ' period="$(cat /sys/fs/cgroup/cpu/cpu.cfs_period_us)"' fi 'if [ -n "$quota" ] && [ "$quota" != max ] && [ "$quota" -gt 0 ] 2>/dev/null && [ "$period" -gt 0 ] 2>/dev/null; then' ' limit=$(( (quota + period - 1) / period ))' ' if [ "$limit" -lt 1 ]; then limit=1; fi' ' if [ "$limit" -lt "$visible" ]; then visible="$limit"; fi' fi 'printf "%s\n" "$visible"' > /usr/local/bin/nproc; chmod 0755 /usr/local/bin/nproc; /usr/local/bin/nproc >/dev/null
|
| 68 |
+
WORKDIR /workspace
|
| 69 |
+
ADD workspace.tar.gz /workspace/
|
| 70 |
+
COPY executable /workspace/executable
|
| 71 |
+
COPY download.sh /workspace/download.sh
|
| 72 |
+
RUN chmod 755 /workspace/download.sh
|
| 73 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 74 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 75 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 76 |
+
&& rm -f /workspace/download.sh \
|
| 77 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 78 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 79 |
+
RUN chmod 111 /workspace/executable
|
| 80 |
+
WORKDIR /workspace
|
| 81 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 82 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 83 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 84 |
+
&& mkdir -p /workspace /tests
|
| 85 |
+
|
| 86 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 87 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 88 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 89 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 90 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 91 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 92 |
+
RUN set -eu; \
|
| 93 |
+
pip_break_system_packages=""; \
|
| 94 |
+
if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
|
| 95 |
+
pip_break_system_packages="--break-system-packages"; \
|
| 96 |
+
fi; \
|
| 97 |
+
python3 -m pip install ${pip_break_system_packages} \
|
| 98 |
+
--no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
|
| 99 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 100 |
+
|
| 101 |
+
COPY test.sh /tests/test.sh
|
| 102 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 103 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 104 |
+
COPY blobs/ /tests/blobs/
|
| 105 |
+
RUN chmod +x /tests/test.sh
|
| 106 |
+
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"]
|
google--fuse-archive.8b6426a/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:f51cb1689abc08a40ba2368f11cc86d26a2976fb311bd353c436e9ae3e53cca7
|
| 3 |
+
size 17079
|
google--fuse-archive.8b6426a/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:d294130b7b8cfe153616847e498e9ddf45581febbd32af418e18ff5df27fe036
|
| 3 |
+
size 16710
|
google--fuse-archive.8b6426a/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:00115f3b3c0051ffed9b82fa3753dd77e181982ccbf6e98f840b4a2ca1cc46fe
|
| 3 |
+
size 13296
|
google--fuse-archive.8b6426a/tests/blobs/tests/generated_upstream.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c78462b9914e73d91c13ee45de634aef03abeaab12b4fc1e23d3a99a3179f133
|
| 3 |
+
size 102717
|
google--fuse-archive.8b6426a/tests/docker-compose.yaml
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
main:
|
| 3 |
+
build:
|
| 4 |
+
args:
|
| 5 |
+
PROGRAMGYM_APT_REPOSITORY_BASE_URL: ${PROGRAMGYM_APT_REPOSITORY_BASE_URL:-}
|
| 6 |
+
PROGRAMGYM_GOPROXY: ${PROGRAMGYM_GOPROXY:-https://proxy.golang.org,direct}
|
| 7 |
+
PROGRAMGYM_GOSUMDB: ${PROGRAMGYM_GOSUMDB:-sum.golang.org}
|
| 8 |
+
PROGRAMGYM_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
|
| 9 |
+
PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
|
| 10 |
+
PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
|
| 11 |
+
PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
|
| 12 |
+
PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
|
| 13 |
+
PROGRAMGYM_RUSTUP_DIST_SERVER: ${PROGRAMGYM_RUSTUP_DIST_SERVER:-https://static.rust-lang.org}
|
| 14 |
+
PROGRAMGYM_RUSTUP_UPDATE_ROOT: ${PROGRAMGYM_RUSTUP_UPDATE_ROOT:-https://static.rust-lang.org/rustup}
|
| 15 |
+
PROGRAMGYM_CARGO_INDEX: ${PROGRAMGYM_CARGO_INDEX:-sparse+https://index.crates.io/}
|
| 16 |
+
PROGRAMGYM_CARGO_NET_RETRY: ${PROGRAMGYM_CARGO_NET_RETRY:-10}
|
| 17 |
+
PROGRAMGYM_CARGO_HTTP_TIMEOUT: ${PROGRAMGYM_CARGO_HTTP_TIMEOUT:-600}
|
| 18 |
+
PROGRAMGYM_CARGO_HTTP_MULTIPLEXING: ${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING:-false}
|
| 19 |
+
PROGRAMGYM_MAVEN_MIRROR_URL: ${PROGRAMGYM_MAVEN_MIRROR_URL:-}
|
| 20 |
+
PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL: ${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL:-}
|
| 21 |
+
PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL: ${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-https://services.gradle.org/distributions}
|
| 22 |
+
PROGRAMGYM_JITPACK_REPOSITORY_URL: ${PROGRAMGYM_JITPACK_REPOSITORY_URL:-https://jitpack.io}
|
google--fuse-archive.8b6426a/tests/download.sh
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
apt-get update
|
| 4 |
+
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends libfuse3-dev libarchive-dev libboost-dev pkg-config
|
| 5 |
+
export LD_LIBRARY_PATH=/opt/gcc-13/lib64
|
google--fuse-archive.8b6426a/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:626634d6eea1791fd2cd7648db0295bc6f3a469d075e7efe7df51ae971446aa7
|
| 3 |
+
size 266376
|
google--fuse-archive.8b6426a/tests/harbor_configure_apt_mirror.sh
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
repository_base="${1%/}"
|
| 5 |
+
if [[ -z "$repository_base" ]]; then
|
| 6 |
+
exit 0
|
| 7 |
+
fi
|
| 8 |
+
|
| 9 |
+
. /etc/os-release
|
| 10 |
+
codename="${VERSION_CODENAME:-}"
|
| 11 |
+
if [[ -z "$codename" ]]; then
|
| 12 |
+
echo "VERSION_CODENAME is not set" >&2
|
| 13 |
+
exit 1
|
| 14 |
+
fi
|
| 15 |
+
|
| 16 |
+
if [[ "$ID" == "ubuntu" ]]; then
|
| 17 |
+
repository_name="apt-proxy"
|
| 18 |
+
components="main universe restricted multiverse"
|
| 19 |
+
else
|
| 20 |
+
repository_name="debian-proxy"
|
| 21 |
+
components="main contrib non-free non-free-firmware"
|
| 22 |
+
fi
|
| 23 |
+
|
| 24 |
+
install -d /etc/apt/sources.list.d
|
| 25 |
+
rm -f /etc/apt/sources.list /etc/apt/sources.list.d/*
|
| 26 |
+
printf 'deb [trusted=yes] %s/%s %s %s\n' \
|
| 27 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 28 |
+
>/etc/apt/sources.list
|
| 29 |
+
printf 'deb [trusted=yes] %s/%s %s-updates %s\n' \
|
| 30 |
+
"$repository_base" "$repository_name" "$codename" "$components" \
|
| 31 |
+
>>/etc/apt/sources.list
|
| 32 |
+
|
| 33 |
+
if [[ "$ID" != "ubuntu" ]]; then
|
| 34 |
+
printf 'deb [trusted=yes] %s/%s %s-security %s\n' \
|
| 35 |
+
"$repository_base" "debian-proxy-security" "$codename" "$components" \
|
| 36 |
+
>>/etc/apt/sources.list
|
| 37 |
+
fi
|
google--fuse-archive.8b6426a/tests/harbor_configure_java_mirrors.sh
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
|
| 4 |
+
maven_url="${1%/}"
|
| 5 |
+
plugin_url="${2%/}"
|
| 6 |
+
jitpack_url="${3%/}"
|
| 7 |
+
|
| 8 |
+
install -d /workspace/.m2 /workspace/.gradle/init.d /opt/programgym/gradle-init
|
| 9 |
+
if [[ -n "$maven_url" ]]; then
|
| 10 |
+
cat >/workspace/.m2/settings.xml <<EOF
|
| 11 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
| 12 |
+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0">
|
| 13 |
+
<mirrors>
|
| 14 |
+
<mirror>
|
| 15 |
+
<id>programgym-maven</id>
|
| 16 |
+
<name>ProgramGym Maven mirror</name>
|
| 17 |
+
<url>${maven_url}</url>
|
| 18 |
+
<mirrorOf>*</mirrorOf>
|
| 19 |
+
</mirror>
|
| 20 |
+
</mirrors>
|
| 21 |
+
</settings>
|
| 22 |
+
EOF
|
| 23 |
+
fi
|
| 24 |
+
|
| 25 |
+
cat >/opt/programgym/gradle-init/programgym-mirrors.gradle <<'EOF'
|
| 26 |
+
def pbMaven = System.getenv('PROGRAMGYM_MAVEN_MIRROR_URL')
|
| 27 |
+
def pbPlugins = System.getenv('PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL')
|
| 28 |
+
def pbJitpack = System.getenv('PROGRAMGYM_JITPACK_REPOSITORY_URL')
|
| 29 |
+
|
| 30 |
+
settingsEvaluated { settings ->
|
| 31 |
+
settings.pluginManagement.repositories {
|
| 32 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 33 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 34 |
+
}
|
| 35 |
+
}
|
| 36 |
+
|
| 37 |
+
allprojects {
|
| 38 |
+
buildscript.repositories {
|
| 39 |
+
if (pbPlugins) { maven { url = uri(pbPlugins) } }
|
| 40 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 41 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 42 |
+
}
|
| 43 |
+
repositories {
|
| 44 |
+
if (pbMaven) { maven { url = uri(pbMaven) } }
|
| 45 |
+
if (pbJitpack) { maven { url = uri(pbJitpack) } }
|
| 46 |
+
}
|
| 47 |
+
}
|
| 48 |
+
EOF
|
| 49 |
+
cp /opt/programgym/gradle-init/programgym-mirrors.gradle \
|
| 50 |
+
/workspace/.gradle/init.d/programgym-mirrors.gradle
|
google--fuse-archive.8b6426a/tests/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
if [[ -n "${PROGRAMGYM_MAVEN_MIRROR_URL:-}" ]]; then
|
| 6 |
+
sed -i -e "s|https://repo.maven.apache.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" -e "s|https://repo1.maven.org/maven2|${PROGRAMGYM_MAVEN_MIRROR_URL%/}|g" /workspace/download.sh
|
| 7 |
+
fi
|
| 8 |
+
if [[ -n "${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL:-}" ]]; then
|
| 9 |
+
sed -i -e "s|https://services.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" -e "s|https://downloads.gradle.org/distributions|${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL%/}|g" /workspace/download.sh
|
| 10 |
+
fi
|
| 11 |
+
if [[ -n "${PROGRAMGYM_JITPACK_REPOSITORY_URL:-}" ]]; then
|
| 12 |
+
sed -i -e "s|https://jitpack.io|${PROGRAMGYM_JITPACK_REPOSITORY_URL%/}|g" /workspace/download.sh
|
| 13 |
+
fi
|
| 14 |
+
source /workspace/download.sh
|
| 15 |
+
set +a
|
| 16 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 17 |
+
import os
|
| 18 |
+
import shlex
|
| 19 |
+
|
| 20 |
+
ignored = {
|
| 21 |
+
"ALL_PROXY",
|
| 22 |
+
"HTTP_PROXY",
|
| 23 |
+
"HTTPS_PROXY",
|
| 24 |
+
"NO_PROXY",
|
| 25 |
+
"OLDPWD",
|
| 26 |
+
"PIP_PROXY",
|
| 27 |
+
"PWD",
|
| 28 |
+
"SHLVL",
|
| 29 |
+
"_",
|
| 30 |
+
"all_proxy",
|
| 31 |
+
"http_proxy",
|
| 32 |
+
"https_proxy",
|
| 33 |
+
"no_proxy",
|
| 34 |
+
"pip_proxy",
|
| 35 |
+
}
|
| 36 |
+
for key in sorted(os.environ):
|
| 37 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 38 |
+
continue
|
| 39 |
+
value = os.environ[key]
|
| 40 |
+
if "\n" in value:
|
| 41 |
+
continue
|
| 42 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 43 |
+
PY
|
| 44 |
+
chmod 0644 /etc/profile.d/programgym_download_env.sh
|
google--fuse-archive.8b6426a/tests/programgym-gcc13.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f67d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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()
|
google--fuse-archive.8b6426a/tests/programgym_task.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
google--fuse-archive.8b6426a/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
|
google--fuse-archive.8b6426a/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e5255e49d04fa697cc2d14b05e76fc8c83a8fb0a979af2c2fad9b1765923220f
|
| 3 |
+
size 13944
|
google--mdbook-i18n-helpers.da4106d/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"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|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# Standalone dependency-download stage for google/mdbook-i18n-helpers.
|
| 4 |
+
# Sourced as: source /source_ro/download.sh
|
| 5 |
+
# Generates a temporary Cargo workspace mirroring the repository's four member
|
| 6 |
+
# crates, embeds the committed Cargo.lock so the offline build resolves to the
|
| 7 |
+
# exact same crate versions, and prefetches every dependency into the shared
|
| 8 |
+
# Cargo registry cache. It compiles nothing.
|
| 9 |
+
#
|
| 10 |
+
# Safe to source: exports variables only, no positional args, no bare `exit`.
|
| 11 |
+
|
| 12 |
+
# Fail loudly in a way that works both when sourced and when executed directly.
|
| 13 |
+
_fail() {
|
| 14 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 15 |
+
exit 1
|
| 16 |
+
else
|
| 17 |
+
return 1
|
| 18 |
+
fi
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
# Rust/Cargo 1.97.1 is preinstalled in the build container. Keep parallelism
|
| 22 |
+
# finite so cargo does not oversubscribe nested-container CPUs.
|
| 23 |
+
export CARGO_BUILD_JOBS=4
|
| 24 |
+
export CARGO_PROFILE_RELEASE_THIN_LTO=false
|
| 25 |
+
|
| 26 |
+
# All download work happens in a scratch dir; never start from a source root.
|
| 27 |
+
_download_dir=$(mktemp -d /tmp/pb-mdbook-fetch.XXXXXX) || { echo "mktemp failed" >&2; _fail; }
|
| 28 |
+
export PROGRAMGYM_CARGO_FETCH_DIR="$_download_dir"
|
| 29 |
+
|
| 30 |
+
# ---------------------------------------------------------------- workspace
|
| 31 |
+
# Generate the workspace manifests inline. These mirror the repository's real
|
| 32 |
+
# manifests so dependency resolution matches the committed Cargo.lock.
|
| 33 |
+
cat > "$_download_dir/Cargo.toml" <<'WS'
|
| 34 |
+
[workspace]
|
| 35 |
+
members = ["i18n-helpers", "i18n-report", "mdbook-tera-backend", "fuzz"]
|
| 36 |
+
default-members = ["i18n-helpers", "i18n-report", "mdbook-tera-backend"]
|
| 37 |
+
resolver = "2"
|
| 38 |
+
|
| 39 |
+
[workspace.dependencies]
|
| 40 |
+
anyhow = "1.0.102"
|
| 41 |
+
mdbook-driver = "0.5.2"
|
| 42 |
+
mdbook-preprocessor = "0.5.3"
|
| 43 |
+
mdbook-renderer = "0.5.3"
|
| 44 |
+
polib = "0.3.0"
|
| 45 |
+
pretty_assertions = "1.4.1"
|
| 46 |
+
serde_json = "1.0.150"
|
| 47 |
+
tempfile = "3.27.0"
|
| 48 |
+
|
| 49 |
+
[workspace.lints.clippy]
|
| 50 |
+
dbg_macro = "warn"
|
| 51 |
+
print_stdout = "warn"
|
| 52 |
+
print_stderr = "warn"
|
| 53 |
+
WS
|
| 54 |
+
|
| 55 |
+
mkdir -p "$_download_dir/i18n-helpers/src/bin" \
|
| 56 |
+
"$_download_dir/i18n-helpers/src/preprocessors" \
|
| 57 |
+
"$_download_dir/i18n-helpers/src/renderers" \
|
| 58 |
+
"$_download_dir/i18n-helpers/src/xgettext" \
|
| 59 |
+
"$_download_dir/i18n-report/src" \
|
| 60 |
+
"$_download_dir/mdbook-tera-backend/src/tera_renderer" \
|
| 61 |
+
"$_download_dir/fuzz/src" \
|
| 62 |
+
"$_download_dir/fuzz/fuzz_targets"
|
| 63 |
+
|
| 64 |
+
cat > "$_download_dir/i18n-helpers/Cargo.toml" <<'MHELP'
|
| 65 |
+
[package]
|
| 66 |
+
name = "mdbook-i18n-helpers"
|
| 67 |
+
version = "0.4.0"
|
| 68 |
+
edition = "2021"
|
| 69 |
+
license = "Apache-2.0"
|
| 70 |
+
description = "Plugins for a mdbook translation workflow based on Gettext."
|
| 71 |
+
|
| 72 |
+
[lints]
|
| 73 |
+
workspace = true
|
| 74 |
+
|
| 75 |
+
[dependencies]
|
| 76 |
+
anyhow.workspace = true
|
| 77 |
+
chrono = { version = "0.4.44", default-features = false, features = ["alloc"] }
|
| 78 |
+
dateparser = "0.3.1"
|
| 79 |
+
mdbook-preprocessor.workspace = true
|
| 80 |
+
mdbook-renderer.workspace = true
|
| 81 |
+
polib.workspace = true
|
| 82 |
+
pulldown-cmark = { version = "0.13.4", default-features = false, features = ["html"] }
|
| 83 |
+
pulldown-cmark-to-cmark = "22.0.0"
|
| 84 |
+
regex = "1.12"
|
| 85 |
+
semver = "1.0.28"
|
| 86 |
+
serde_json.workspace = true
|
| 87 |
+
syntect = { version = "5.3.0", default-features = false, features = ["parsing", "default-syntaxes", "regex-fancy"] }
|
| 88 |
+
textwrap = { version = "0.16.2", default-features = false }
|
| 89 |
+
|
| 90 |
+
[dev-dependencies]
|
| 91 |
+
mdbook-driver.workspace = true
|
| 92 |
+
pretty_assertions.workspace = true
|
| 93 |
+
tempfile.workspace = true
|
| 94 |
+
|
| 95 |
+
[[bin]]
|
| 96 |
+
name = "mdbook-gettext"
|
| 97 |
+
path = "src/bin/mdbook-gettext.rs"
|
| 98 |
+
|
| 99 |
+
[[bin]]
|
| 100 |
+
name = "mdbook-xgettext"
|
| 101 |
+
path = "src/bin/mdbook-xgettext.rs"
|
| 102 |
+
|
| 103 |
+
[[bin]]
|
| 104 |
+
name = "mdbook-i18n-normalize"
|
| 105 |
+
path = "src/bin/mdbook-i18n-normalize.rs"
|
| 106 |
+
MHELP
|
| 107 |
+
|
| 108 |
+
cat > "$_download_dir/i18n-report/Cargo.toml" <<'MREP'
|
| 109 |
+
[package]
|
| 110 |
+
name = "i18n-report"
|
| 111 |
+
version = "0.2.0"
|
| 112 |
+
edition = "2021"
|
| 113 |
+
license = "Apache-2.0"
|
| 114 |
+
description = "Utility to generate an HTML report from a set of PO files."
|
| 115 |
+
|
| 116 |
+
[lints]
|
| 117 |
+
workspace = true
|
| 118 |
+
|
| 119 |
+
[dependencies]
|
| 120 |
+
anyhow.workspace = true
|
| 121 |
+
clap = { version = "4.6.1", features = ["derive"] }
|
| 122 |
+
polib.workspace = true
|
| 123 |
+
tera = { version = "1.20.1", default-features = false }
|
| 124 |
+
MREP
|
| 125 |
+
|
| 126 |
+
cat > "$_download_dir/mdbook-tera-backend/Cargo.toml" <<'MTERA'
|
| 127 |
+
[package]
|
| 128 |
+
name = "mdbook-tera-backend"
|
| 129 |
+
version = "0.0.2"
|
| 130 |
+
edition = "2021"
|
| 131 |
+
license = "Apache-2.0"
|
| 132 |
+
description = "Plugin to extend mdbook with Tera templates and custom HTML components."
|
| 133 |
+
|
| 134 |
+
[lints]
|
| 135 |
+
workspace = true
|
| 136 |
+
|
| 137 |
+
[dependencies]
|
| 138 |
+
anyhow.workspace = true
|
| 139 |
+
mdbook-renderer.workspace = true
|
| 140 |
+
serde = "1.0"
|
| 141 |
+
tera = "1.20.1"
|
| 142 |
+
|
| 143 |
+
[dev-dependencies]
|
| 144 |
+
mdbook-driver.workspace = true
|
| 145 |
+
tempfile.workspace = true
|
| 146 |
+
MTERA
|
| 147 |
+
|
| 148 |
+
cat > "$_download_dir/fuzz/Cargo.toml" <<'MFUZZ'
|
| 149 |
+
[package]
|
| 150 |
+
name = "mdbook-i18n-helpers-fuzz"
|
| 151 |
+
version = "0.0.0"
|
| 152 |
+
edition = "2021"
|
| 153 |
+
publish = false
|
| 154 |
+
|
| 155 |
+
[package.metadata]
|
| 156 |
+
cargo-fuzz = true
|
| 157 |
+
|
| 158 |
+
[lints]
|
| 159 |
+
workspace = true
|
| 160 |
+
|
| 161 |
+
[dependencies]
|
| 162 |
+
arbitrary = { version = "1.4.2", features = ["derive"] }
|
| 163 |
+
libfuzzer-sys = "0.4.12"
|
| 164 |
+
mdbook-i18n-helpers = { path = "../i18n-helpers" }
|
| 165 |
+
mdbook-preprocessor.workspace = true
|
| 166 |
+
mdbook-renderer.workspace = true
|
| 167 |
+
polib.workspace = true
|
| 168 |
+
pretty_assertions.workspace = true
|
| 169 |
+
|
| 170 |
+
[[bin]]
|
| 171 |
+
name = "group_events"
|
| 172 |
+
path = "fuzz_targets/group_events.rs"
|
| 173 |
+
test = false
|
| 174 |
+
doc = false
|
| 175 |
+
bench = false
|
| 176 |
+
|
| 177 |
+
[[bin]]
|
| 178 |
+
name = "normalize"
|
| 179 |
+
path = "fuzz_targets/normalize.rs"
|
| 180 |
+
test = false
|
| 181 |
+
doc = false
|
| 182 |
+
bench = false
|
| 183 |
+
|
| 184 |
+
[[bin]]
|
| 185 |
+
name = "gettext"
|
| 186 |
+
path = "fuzz_targets/gettext.rs"
|
| 187 |
+
test = false
|
| 188 |
+
doc = false
|
| 189 |
+
bench = false
|
| 190 |
+
|
| 191 |
+
[[bin]]
|
| 192 |
+
name = "xgettext"
|
| 193 |
+
path = "fuzz_targets/xgettext.rs"
|
| 194 |
+
test = false
|
| 195 |
+
doc = false
|
| 196 |
+
bench = false
|
| 197 |
+
MFUZZ
|
| 198 |
+
|
| 199 |
+
# Stub sources: cargo fetch only needs the declared target paths to exist; it
|
| 200 |
+
# never compiles them. Content is irrelevant for the download stage.
|
| 201 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/lib.rs"
|
| 202 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-gettext.rs"
|
| 203 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-xgettext.rs"
|
| 204 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-i18n-normalize.rs"
|
| 205 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/preprocessors.rs"
|
| 206 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/renderers.rs"
|
| 207 |
+
printf '// stub\n' > "$_download_dir/i18n-report/src/main.rs"
|
| 208 |
+
printf '// stub\n' > "$_download_dir/mdbook-tera-backend/src/main.rs"
|
| 209 |
+
printf '// stub\n' > "$_download_dir/mdbook-tera-backend/src/tera_renderer.rs"
|
| 210 |
+
for t in group_events normalize gettext xgettext; do
|
| 211 |
+
printf '// stub\n' > "$_download_dir/fuzz/fuzz_targets/$t.rs"
|
| 212 |
+
done
|
| 213 |
+
|
| 214 |
+
# ------------------------------------------------------------------ lockfile
|
| 215 |
+
# Embed the committed Cargo.lock so the offline build's --locked resolution
|
| 216 |
+
# matches exactly. DO NOT EDIT between the markers.
|
| 217 |
+
cat > "$_download_dir/Cargo.lock" <<'LOCKEOF'
|
| 218 |
+
# This file is automatically @generated by Cargo.
|
| 219 |
+
# It is not intended for manual editing.
|
| 220 |
+
version = 4
|
| 221 |
+
|
| 222 |
+
[[package]]
|
| 223 |
+
name = "adler"
|
| 224 |
+
version = "1.0.2"
|
| 225 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 226 |
+
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
| 227 |
+
|
| 228 |
+
[[package]]
|
| 229 |
+
name = "aho-corasick"
|
| 230 |
+
version = "1.1.3"
|
| 231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 232 |
+
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
|
| 233 |
+
dependencies = [
|
| 234 |
+
"memchr",
|
| 235 |
+
]
|
| 236 |
+
|
| 237 |
+
[[package]]
|
| 238 |
+
name = "android_system_properties"
|
| 239 |
+
version = "0.1.5"
|
| 240 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 241 |
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
| 242 |
+
dependencies = [
|
| 243 |
+
"libc",
|
| 244 |
+
]
|
| 245 |
+
|
| 246 |
+
[[package]]
|
| 247 |
+
name = "anstream"
|
| 248 |
+
version = "1.0.0"
|
| 249 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 250 |
+
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
| 251 |
+
dependencies = [
|
| 252 |
+
"anstyle",
|
| 253 |
+
"anstyle-parse",
|
| 254 |
+
"anstyle-query",
|
| 255 |
+
"anstyle-wincon",
|
| 256 |
+
"colorchoice",
|
| 257 |
+
"is_terminal_polyfill",
|
| 258 |
+
"utf8parse",
|
| 259 |
+
]
|
| 260 |
+
|
| 261 |
+
[[package]]
|
| 262 |
+
name = "anstyle"
|
| 263 |
+
version = "1.0.14"
|
| 264 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 265 |
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
| 266 |
+
|
| 267 |
+
[[package]]
|
| 268 |
+
name = "anstyle-parse"
|
| 269 |
+
version = "1.0.0"
|
| 270 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 271 |
+
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
| 272 |
+
dependencies = [
|
| 273 |
+
"utf8parse",
|
| 274 |
+
]
|
| 275 |
+
|
| 276 |
+
[[package]]
|
| 277 |
+
name = "anstyle-query"
|
| 278 |
+
version = "1.0.3"
|
| 279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 280 |
+
checksum = "a64c907d4e79225ac72e2a354c9ce84d50ebb4586dee56c82b3ee73004f537f5"
|
| 281 |
+
dependencies = [
|
| 282 |
+
"windows-sys 0.52.0",
|
| 283 |
+
]
|
| 284 |
+
|
| 285 |
+
[[package]]
|
| 286 |
+
name = "anstyle-wincon"
|
| 287 |
+
version = "3.0.11"
|
| 288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 289 |
+
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
| 290 |
+
dependencies = [
|
| 291 |
+
"anstyle",
|
| 292 |
+
"once_cell_polyfill",
|
| 293 |
+
"windows-sys 0.61.1",
|
| 294 |
+
]
|
| 295 |
+
|
| 296 |
+
[[package]]
|
| 297 |
+
name = "anyhow"
|
| 298 |
+
version = "1.0.102"
|
| 299 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 300 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 301 |
+
|
| 302 |
+
[[package]]
|
| 303 |
+
name = "arbitrary"
|
| 304 |
+
version = "1.4.2"
|
| 305 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 306 |
+
checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
|
| 307 |
+
dependencies = [
|
| 308 |
+
"derive_arbitrary",
|
| 309 |
+
]
|
| 310 |
+
|
| 311 |
+
[[package]]
|
| 312 |
+
name = "autocfg"
|
| 313 |
+
version = "1.3.0"
|
| 314 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 315 |
+
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "bincode"
|
| 319 |
+
version = "1.3.3"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"serde",
|
| 324 |
+
]
|
| 325 |
+
|
| 326 |
+
[[package]]
|
| 327 |
+
name = "bit-set"
|
| 328 |
+
version = "0.8.0"
|
| 329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 330 |
+
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
|
| 331 |
+
dependencies = [
|
| 332 |
+
"bit-vec",
|
| 333 |
+
]
|
| 334 |
+
|
| 335 |
+
[[package]]
|
| 336 |
+
name = "bit-vec"
|
| 337 |
+
version = "0.8.0"
|
| 338 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 339 |
+
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
| 340 |
+
|
| 341 |
+
[[package]]
|
| 342 |
+
name = "bitflags"
|
| 343 |
+
version = "2.5.0"
|
| 344 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 345 |
+
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
|
| 346 |
+
|
| 347 |
+
[[package]]
|
| 348 |
+
name = "block-buffer"
|
| 349 |
+
version = "0.10.4"
|
| 350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 351 |
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
| 352 |
+
dependencies = [
|
| 353 |
+
"generic-array",
|
| 354 |
+
]
|
| 355 |
+
|
| 356 |
+
[[package]]
|
| 357 |
+
name = "bstr"
|
| 358 |
+
version = "1.9.1"
|
| 359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 360 |
+
checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706"
|
| 361 |
+
dependencies = [
|
| 362 |
+
"memchr",
|
| 363 |
+
"serde",
|
| 364 |
+
]
|
| 365 |
+
|
| 366 |
+
[[package]]
|
| 367 |
+
name = "bumpalo"
|
| 368 |
+
version = "3.16.0"
|
| 369 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 370 |
+
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
| 371 |
+
|
| 372 |
+
[[package]]
|
| 373 |
+
name = "cc"
|
| 374 |
+
version = "1.0.98"
|
| 375 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 376 |
+
checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f"
|
| 377 |
+
dependencies = [
|
| 378 |
+
"jobserver",
|
| 379 |
+
"libc",
|
| 380 |
+
"once_cell",
|
| 381 |
+
]
|
| 382 |
+
|
| 383 |
+
[[package]]
|
| 384 |
+
name = "cfg-if"
|
| 385 |
+
version = "1.0.0"
|
| 386 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 387 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 388 |
+
|
| 389 |
+
[[package]]
|
| 390 |
+
name = "chrono"
|
| 391 |
+
version = "0.4.44"
|
| 392 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 393 |
+
checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
|
| 394 |
+
dependencies = [
|
| 395 |
+
"iana-time-zone",
|
| 396 |
+
"js-sys",
|
| 397 |
+
"num-traits",
|
| 398 |
+
"wasm-bindgen",
|
| 399 |
+
"windows-link",
|
| 400 |
+
]
|
| 401 |
+
|
| 402 |
+
[[package]]
|
| 403 |
+
name = "chrono-tz"
|
| 404 |
+
version = "0.9.0"
|
| 405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 406 |
+
checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb"
|
| 407 |
+
dependencies = [
|
| 408 |
+
"chrono",
|
| 409 |
+
"chrono-tz-build",
|
| 410 |
+
"phf 0.11.2",
|
| 411 |
+
]
|
| 412 |
+
|
| 413 |
+
[[package]]
|
| 414 |
+
name = "chrono-tz-build"
|
| 415 |
+
version = "0.3.0"
|
| 416 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 417 |
+
checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1"
|
| 418 |
+
dependencies = [
|
| 419 |
+
"parse-zoneinfo",
|
| 420 |
+
"phf 0.11.2",
|
| 421 |
+
"phf_codegen 0.11.2",
|
| 422 |
+
]
|
| 423 |
+
|
| 424 |
+
[[package]]
|
| 425 |
+
name = "clap"
|
| 426 |
+
version = "4.6.1"
|
| 427 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 428 |
+
checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
|
| 429 |
+
dependencies = [
|
| 430 |
+
"clap_builder",
|
| 431 |
+
"clap_derive",
|
| 432 |
+
]
|
| 433 |
+
|
| 434 |
+
[[package]]
|
| 435 |
+
name = "clap_builder"
|
| 436 |
+
version = "4.6.0"
|
| 437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 438 |
+
checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
|
| 439 |
+
dependencies = [
|
| 440 |
+
"anstream",
|
| 441 |
+
"anstyle",
|
| 442 |
+
"clap_lex",
|
| 443 |
+
"strsim",
|
| 444 |
+
]
|
| 445 |
+
|
| 446 |
+
[[package]]
|
| 447 |
+
name = "clap_derive"
|
| 448 |
+
version = "4.6.1"
|
| 449 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 450 |
+
checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
|
| 451 |
+
dependencies = [
|
| 452 |
+
"heck",
|
| 453 |
+
"proc-macro2",
|
| 454 |
+
"quote",
|
| 455 |
+
"syn",
|
| 456 |
+
]
|
| 457 |
+
|
| 458 |
+
[[package]]
|
| 459 |
+
name = "clap_lex"
|
| 460 |
+
version = "1.0.0"
|
| 461 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 462 |
+
checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
|
| 463 |
+
|
| 464 |
+
[[package]]
|
| 465 |
+
name = "colorchoice"
|
| 466 |
+
version = "1.0.1"
|
| 467 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 468 |
+
checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422"
|
| 469 |
+
|
| 470 |
+
[[package]]
|
| 471 |
+
name = "concat-string"
|
| 472 |
+
version = "1.0.1"
|
| 473 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 474 |
+
checksum = "7439becb5fafc780b6f4de382b1a7a3e70234afe783854a4702ee8adbb838609"
|
| 475 |
+
|
| 476 |
+
[[package]]
|
| 477 |
+
name = "core-foundation-sys"
|
| 478 |
+
version = "0.8.6"
|
| 479 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 480 |
+
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "cpufeatures"
|
| 484 |
+
version = "0.2.12"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"
|
| 487 |
+
dependencies = [
|
| 488 |
+
"libc",
|
| 489 |
+
]
|
| 490 |
+
|
| 491 |
+
[[package]]
|
| 492 |
+
name = "crc32fast"
|
| 493 |
+
version = "1.4.2"
|
| 494 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 495 |
+
checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
|
| 496 |
+
dependencies = [
|
| 497 |
+
"cfg-if",
|
| 498 |
+
]
|
| 499 |
+
|
| 500 |
+
[[package]]
|
| 501 |
+
name = "crossbeam-deque"
|
| 502 |
+
version = "0.8.5"
|
| 503 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 504 |
+
checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"
|
| 505 |
+
dependencies = [
|
| 506 |
+
"crossbeam-epoch",
|
| 507 |
+
"crossbeam-utils",
|
| 508 |
+
]
|
| 509 |
+
|
| 510 |
+
[[package]]
|
| 511 |
+
name = "crossbeam-epoch"
|
| 512 |
+
version = "0.9.18"
|
| 513 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 514 |
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
| 515 |
+
dependencies = [
|
| 516 |
+
"crossbeam-utils",
|
| 517 |
+
]
|
| 518 |
+
|
| 519 |
+
[[package]]
|
| 520 |
+
name = "crossbeam-utils"
|
| 521 |
+
version = "0.8.20"
|
| 522 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 523 |
+
checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
|
| 524 |
+
|
| 525 |
+
[[package]]
|
| 526 |
+
name = "crypto-common"
|
| 527 |
+
version = "0.1.6"
|
| 528 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 529 |
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
| 530 |
+
dependencies = [
|
| 531 |
+
"generic-array",
|
| 532 |
+
"typenum",
|
| 533 |
+
]
|
| 534 |
+
|
| 535 |
+
[[package]]
|
| 536 |
+
name = "darling"
|
| 537 |
+
version = "0.20.11"
|
| 538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 539 |
+
checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
|
| 540 |
+
dependencies = [
|
| 541 |
+
"darling_core",
|
| 542 |
+
"darling_macro",
|
| 543 |
+
]
|
| 544 |
+
|
| 545 |
+
[[package]]
|
| 546 |
+
name = "darling_core"
|
| 547 |
+
version = "0.20.11"
|
| 548 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 549 |
+
checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
|
| 550 |
+
dependencies = [
|
| 551 |
+
"fnv",
|
| 552 |
+
"ident_case",
|
| 553 |
+
"proc-macro2",
|
| 554 |
+
"quote",
|
| 555 |
+
"strsim",
|
| 556 |
+
"syn",
|
| 557 |
+
]
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "darling_macro"
|
| 561 |
+
version = "0.20.11"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
|
| 564 |
+
dependencies = [
|
| 565 |
+
"darling_core",
|
| 566 |
+
"quote",
|
| 567 |
+
"syn",
|
| 568 |
+
]
|
| 569 |
+
|
| 570 |
+
[[package]]
|
| 571 |
+
name = "dateparser"
|
| 572 |
+
version = "0.3.1"
|
| 573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 574 |
+
checksum = "fa7c3b5f25f753dcbf8f77a535166e08cba151529b6df9be966984053a68cf39"
|
| 575 |
+
dependencies = [
|
| 576 |
+
"anyhow",
|
| 577 |
+
"chrono",
|
| 578 |
+
"regex",
|
| 579 |
+
]
|
| 580 |
+
|
| 581 |
+
[[package]]
|
| 582 |
+
name = "derive_arbitrary"
|
| 583 |
+
version = "1.4.1"
|
| 584 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 585 |
+
checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
|
| 586 |
+
dependencies = [
|
| 587 |
+
"proc-macro2",
|
| 588 |
+
"quote",
|
| 589 |
+
"syn",
|
| 590 |
+
]
|
| 591 |
+
|
| 592 |
+
[[package]]
|
| 593 |
+
name = "derive_builder"
|
| 594 |
+
version = "0.20.2"
|
| 595 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 596 |
+
checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
|
| 597 |
+
dependencies = [
|
| 598 |
+
"derive_builder_macro",
|
| 599 |
+
]
|
| 600 |
+
|
| 601 |
+
[[package]]
|
| 602 |
+
name = "derive_builder_core"
|
| 603 |
+
version = "0.20.2"
|
| 604 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 605 |
+
checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
|
| 606 |
+
dependencies = [
|
| 607 |
+
"darling",
|
| 608 |
+
"proc-macro2",
|
| 609 |
+
"quote",
|
| 610 |
+
"syn",
|
| 611 |
+
]
|
| 612 |
+
|
| 613 |
+
[[package]]
|
| 614 |
+
name = "derive_builder_macro"
|
| 615 |
+
version = "0.20.2"
|
| 616 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 617 |
+
checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
|
| 618 |
+
dependencies = [
|
| 619 |
+
"derive_builder_core",
|
| 620 |
+
"syn",
|
| 621 |
+
]
|
| 622 |
+
|
| 623 |
+
[[package]]
|
| 624 |
+
name = "deunicode"
|
| 625 |
+
version = "1.6.0"
|
| 626 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 627 |
+
checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00"
|
| 628 |
+
|
| 629 |
+
[[package]]
|
| 630 |
+
name = "diff"
|
| 631 |
+
version = "0.1.13"
|
| 632 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 633 |
+
checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
| 634 |
+
|
| 635 |
+
[[package]]
|
| 636 |
+
name = "digest"
|
| 637 |
+
version = "0.10.7"
|
| 638 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 639 |
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
| 640 |
+
dependencies = [
|
| 641 |
+
"block-buffer",
|
| 642 |
+
"crypto-common",
|
| 643 |
+
]
|
| 644 |
+
|
| 645 |
+
[[package]]
|
| 646 |
+
name = "ego-tree"
|
| 647 |
+
version = "0.10.0"
|
| 648 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 649 |
+
checksum = "b2972feb8dffe7bc8c5463b1dacda1b0dfbed3710e50f977d965429692d74cd8"
|
| 650 |
+
|
| 651 |
+
[[package]]
|
| 652 |
+
name = "equivalent"
|
| 653 |
+
version = "1.0.2"
|
| 654 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 655 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 656 |
+
|
| 657 |
+
[[package]]
|
| 658 |
+
name = "errno"
|
| 659 |
+
version = "0.3.10"
|
| 660 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 661 |
+
checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
|
| 662 |
+
dependencies = [
|
| 663 |
+
"libc",
|
| 664 |
+
"windows-sys 0.59.0",
|
| 665 |
+
]
|
| 666 |
+
|
| 667 |
+
[[package]]
|
| 668 |
+
name = "fancy-regex"
|
| 669 |
+
version = "0.16.2"
|
| 670 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 671 |
+
checksum = "998b056554fbe42e03ae0e152895cd1a7e1002aec800fdc6635d20270260c46f"
|
| 672 |
+
dependencies = [
|
| 673 |
+
"bit-set",
|
| 674 |
+
"regex-automata",
|
| 675 |
+
"regex-syntax",
|
| 676 |
+
]
|
| 677 |
+
|
| 678 |
+
[[package]]
|
| 679 |
+
name = "fastrand"
|
| 680 |
+
version = "2.1.1"
|
| 681 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 682 |
+
checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
|
| 683 |
+
|
| 684 |
+
[[package]]
|
| 685 |
+
name = "flate2"
|
| 686 |
+
version = "1.0.30"
|
| 687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 688 |
+
checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae"
|
| 689 |
+
dependencies = [
|
| 690 |
+
"crc32fast",
|
| 691 |
+
"miniz_oxide",
|
| 692 |
+
]
|
| 693 |
+
|
| 694 |
+
[[package]]
|
| 695 |
+
name = "fnv"
|
| 696 |
+
version = "1.0.7"
|
| 697 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 698 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 699 |
+
|
| 700 |
+
[[package]]
|
| 701 |
+
name = "font-awesome-as-a-crate"
|
| 702 |
+
version = "0.3.0"
|
| 703 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 704 |
+
checksum = "932dcfbd51320af5f27f1ba02d2e567dec332cac7d2c221ba45d8e767264c4dc"
|
| 705 |
+
|
| 706 |
+
[[package]]
|
| 707 |
+
name = "futf"
|
| 708 |
+
version = "0.1.5"
|
| 709 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 710 |
+
checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
|
| 711 |
+
dependencies = [
|
| 712 |
+
"mac",
|
| 713 |
+
"new_debug_unreachable",
|
| 714 |
+
]
|
| 715 |
+
|
| 716 |
+
[[package]]
|
| 717 |
+
name = "generic-array"
|
| 718 |
+
version = "0.14.7"
|
| 719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 720 |
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
| 721 |
+
dependencies = [
|
| 722 |
+
"typenum",
|
| 723 |
+
"version_check",
|
| 724 |
+
]
|
| 725 |
+
|
| 726 |
+
[[package]]
|
| 727 |
+
name = "getrandom"
|
| 728 |
+
version = "0.2.15"
|
| 729 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 730 |
+
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
|
| 731 |
+
dependencies = [
|
| 732 |
+
"cfg-if",
|
| 733 |
+
"libc",
|
| 734 |
+
"wasi 0.11.0+wasi-snapshot-preview1",
|
| 735 |
+
]
|
| 736 |
+
|
| 737 |
+
[[package]]
|
| 738 |
+
name = "getrandom"
|
| 739 |
+
version = "0.3.1"
|
| 740 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 741 |
+
checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
|
| 742 |
+
dependencies = [
|
| 743 |
+
"cfg-if",
|
| 744 |
+
"libc",
|
| 745 |
+
"wasi 0.13.3+wasi-0.2.2",
|
| 746 |
+
"windows-targets",
|
| 747 |
+
]
|
| 748 |
+
|
| 749 |
+
[[package]]
|
| 750 |
+
name = "globset"
|
| 751 |
+
version = "0.4.14"
|
| 752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 753 |
+
checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1"
|
| 754 |
+
dependencies = [
|
| 755 |
+
"aho-corasick",
|
| 756 |
+
"bstr",
|
| 757 |
+
"log",
|
| 758 |
+
"regex-automata",
|
| 759 |
+
"regex-syntax",
|
| 760 |
+
]
|
| 761 |
+
|
| 762 |
+
[[package]]
|
| 763 |
+
name = "globwalk"
|
| 764 |
+
version = "0.9.1"
|
| 765 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 766 |
+
checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757"
|
| 767 |
+
dependencies = [
|
| 768 |
+
"bitflags",
|
| 769 |
+
"ignore",
|
| 770 |
+
"walkdir",
|
| 771 |
+
]
|
| 772 |
+
|
| 773 |
+
[[package]]
|
| 774 |
+
name = "handlebars"
|
| 775 |
+
version = "6.3.2"
|
| 776 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 777 |
+
checksum = "759e2d5aea3287cb1190c8ec394f42866cb5bf74fcbf213f354e3c856ea26098"
|
| 778 |
+
dependencies = [
|
| 779 |
+
"derive_builder",
|
| 780 |
+
"log",
|
| 781 |
+
"num-order",
|
| 782 |
+
"pest",
|
| 783 |
+
"pest_derive",
|
| 784 |
+
"serde",
|
| 785 |
+
"serde_json",
|
| 786 |
+
"thiserror 2.0.17",
|
| 787 |
+
]
|
| 788 |
+
|
| 789 |
+
[[package]]
|
| 790 |
+
name = "hashbrown"
|
| 791 |
+
version = "0.16.1"
|
| 792 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 793 |
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "heck"
|
| 797 |
+
version = "0.5.0"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "hex"
|
| 803 |
+
version = "0.4.3"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "html5ever"
|
| 809 |
+
version = "0.36.1"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "6452c4751a24e1b99c3260d505eaeee76a050573e61f30ac2c924ddc7236f01e"
|
| 812 |
+
dependencies = [
|
| 813 |
+
"log",
|
| 814 |
+
"markup5ever",
|
| 815 |
+
]
|
| 816 |
+
|
| 817 |
+
[[package]]
|
| 818 |
+
name = "humansize"
|
| 819 |
+
version = "2.1.3"
|
| 820 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 821 |
+
checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7"
|
| 822 |
+
dependencies = [
|
| 823 |
+
"libm",
|
| 824 |
+
]
|
| 825 |
+
|
| 826 |
+
[[package]]
|
| 827 |
+
name = "i18n-report"
|
| 828 |
+
version = "0.2.0"
|
| 829 |
+
dependencies = [
|
| 830 |
+
"anyhow",
|
| 831 |
+
"clap",
|
| 832 |
+
"polib",
|
| 833 |
+
"tera",
|
| 834 |
+
]
|
| 835 |
+
|
| 836 |
+
[[package]]
|
| 837 |
+
name = "iana-time-zone"
|
| 838 |
+
version = "0.1.60"
|
| 839 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 840 |
+
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
|
| 841 |
+
dependencies = [
|
| 842 |
+
"android_system_properties",
|
| 843 |
+
"core-foundation-sys",
|
| 844 |
+
"iana-time-zone-haiku",
|
| 845 |
+
"js-sys",
|
| 846 |
+
"wasm-bindgen",
|
| 847 |
+
"windows-core",
|
| 848 |
+
]
|
| 849 |
+
|
| 850 |
+
[[package]]
|
| 851 |
+
name = "iana-time-zone-haiku"
|
| 852 |
+
version = "0.1.2"
|
| 853 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 854 |
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
| 855 |
+
dependencies = [
|
| 856 |
+
"cc",
|
| 857 |
+
]
|
| 858 |
+
|
| 859 |
+
[[package]]
|
| 860 |
+
name = "ident_case"
|
| 861 |
+
version = "1.0.1"
|
| 862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 863 |
+
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
| 864 |
+
|
| 865 |
+
[[package]]
|
| 866 |
+
name = "ignore"
|
| 867 |
+
version = "0.4.22"
|
| 868 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 869 |
+
checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1"
|
| 870 |
+
dependencies = [
|
| 871 |
+
"crossbeam-deque",
|
| 872 |
+
"globset",
|
| 873 |
+
"log",
|
| 874 |
+
"memchr",
|
| 875 |
+
"regex-automata",
|
| 876 |
+
"same-file",
|
| 877 |
+
"walkdir",
|
| 878 |
+
"winapi-util",
|
| 879 |
+
]
|
| 880 |
+
|
| 881 |
+
[[package]]
|
| 882 |
+
name = "indexmap"
|
| 883 |
+
version = "2.13.0"
|
| 884 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 885 |
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
| 886 |
+
dependencies = [
|
| 887 |
+
"equivalent",
|
| 888 |
+
"hashbrown",
|
| 889 |
+
]
|
| 890 |
+
|
| 891 |
+
[[package]]
|
| 892 |
+
name = "is_terminal_polyfill"
|
| 893 |
+
version = "1.70.0"
|
| 894 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 895 |
+
checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800"
|
| 896 |
+
|
| 897 |
+
[[package]]
|
| 898 |
+
name = "itoa"
|
| 899 |
+
version = "1.0.11"
|
| 900 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 901 |
+
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
|
| 902 |
+
|
| 903 |
+
[[package]]
|
| 904 |
+
name = "jobserver"
|
| 905 |
+
version = "0.1.31"
|
| 906 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 907 |
+
checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e"
|
| 908 |
+
dependencies = [
|
| 909 |
+
"libc",
|
| 910 |
+
]
|
| 911 |
+
|
| 912 |
+
[[package]]
|
| 913 |
+
name = "js-sys"
|
| 914 |
+
version = "0.3.69"
|
| 915 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 916 |
+
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
|
| 917 |
+
dependencies = [
|
| 918 |
+
"wasm-bindgen",
|
| 919 |
+
]
|
| 920 |
+
|
| 921 |
+
[[package]]
|
| 922 |
+
name = "lazy_static"
|
| 923 |
+
version = "1.4.0"
|
| 924 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 925 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 926 |
+
|
| 927 |
+
[[package]]
|
| 928 |
+
name = "libc"
|
| 929 |
+
version = "0.2.182"
|
| 930 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 931 |
+
checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
|
| 932 |
+
|
| 933 |
+
[[package]]
|
| 934 |
+
name = "libfuzzer-sys"
|
| 935 |
+
version = "0.4.12"
|
| 936 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 937 |
+
checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"
|
| 938 |
+
dependencies = [
|
| 939 |
+
"arbitrary",
|
| 940 |
+
"cc",
|
| 941 |
+
]
|
| 942 |
+
|
| 943 |
+
[[package]]
|
| 944 |
+
name = "libm"
|
| 945 |
+
version = "0.2.8"
|
| 946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 947 |
+
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
|
| 948 |
+
|
| 949 |
+
[[package]]
|
| 950 |
+
name = "linereader"
|
| 951 |
+
version = "0.4.0"
|
| 952 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 953 |
+
checksum = "d921fea6860357575519aca014c6e22470585accdd543b370c404a8a72d0dd1d"
|
| 954 |
+
dependencies = [
|
| 955 |
+
"memchr",
|
| 956 |
+
]
|
| 957 |
+
|
| 958 |
+
[[package]]
|
| 959 |
+
name = "linux-raw-sys"
|
| 960 |
+
version = "0.12.1"
|
| 961 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 962 |
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
| 963 |
+
|
| 964 |
+
[[package]]
|
| 965 |
+
name = "lock_api"
|
| 966 |
+
version = "0.4.14"
|
| 967 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 968 |
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
| 969 |
+
dependencies = [
|
| 970 |
+
"scopeguard",
|
| 971 |
+
]
|
| 972 |
+
|
| 973 |
+
[[package]]
|
| 974 |
+
name = "log"
|
| 975 |
+
version = "0.4.21"
|
| 976 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 977 |
+
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
|
| 978 |
+
|
| 979 |
+
[[package]]
|
| 980 |
+
name = "mac"
|
| 981 |
+
version = "0.1.1"
|
| 982 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 983 |
+
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
| 984 |
+
|
| 985 |
+
[[package]]
|
| 986 |
+
name = "markup5ever"
|
| 987 |
+
version = "0.36.1"
|
| 988 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 989 |
+
checksum = "6c3294c4d74d0742910f8c7b466f44dda9eb2d5742c1e430138df290a1e8451c"
|
| 990 |
+
dependencies = [
|
| 991 |
+
"log",
|
| 992 |
+
"tendril",
|
| 993 |
+
"web_atoms",
|
| 994 |
+
]
|
| 995 |
+
|
| 996 |
+
[[package]]
|
| 997 |
+
name = "mdbook-core"
|
| 998 |
+
version = "0.5.3"
|
| 999 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1000 |
+
checksum = "6fc1c4da7fd9e2e412f3891428f9468fab890ed159723ed0892bb85a049ac1c1"
|
| 1001 |
+
dependencies = [
|
| 1002 |
+
"anyhow",
|
| 1003 |
+
"regex",
|
| 1004 |
+
"serde",
|
| 1005 |
+
"serde_json",
|
| 1006 |
+
"toml 1.1.2+spec-1.1.0",
|
| 1007 |
+
"tracing",
|
| 1008 |
+
]
|
| 1009 |
+
|
| 1010 |
+
[[package]]
|
| 1011 |
+
name = "mdbook-driver"
|
| 1012 |
+
version = "0.5.2"
|
| 1013 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1014 |
+
checksum = "a229930b29a9908560883e1f386eae25d8a971d259a80f49916a50627f04a42d"
|
| 1015 |
+
dependencies = [
|
| 1016 |
+
"anyhow",
|
| 1017 |
+
"indexmap",
|
| 1018 |
+
"mdbook-core",
|
| 1019 |
+
"mdbook-html",
|
| 1020 |
+
"mdbook-markdown",
|
| 1021 |
+
"mdbook-preprocessor",
|
| 1022 |
+
"mdbook-renderer",
|
| 1023 |
+
"mdbook-summary",
|
| 1024 |
+
"regex",
|
| 1025 |
+
"serde",
|
| 1026 |
+
"serde_json",
|
| 1027 |
+
"shlex",
|
| 1028 |
+
"tempfile",
|
| 1029 |
+
"toml 0.9.8",
|
| 1030 |
+
"topological-sort",
|
| 1031 |
+
"tracing",
|
| 1032 |
+
]
|
| 1033 |
+
|
| 1034 |
+
[[package]]
|
| 1035 |
+
name = "mdbook-html"
|
| 1036 |
+
version = "0.5.2"
|
| 1037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1038 |
+
checksum = "9dee80c03c65e3212fb528b8c9be5568a6a85cf795d03cf9fd6ba39ad52069ca"
|
| 1039 |
+
dependencies = [
|
| 1040 |
+
"anyhow",
|
| 1041 |
+
"ego-tree",
|
| 1042 |
+
"font-awesome-as-a-crate",
|
| 1043 |
+
"handlebars",
|
| 1044 |
+
"hex",
|
| 1045 |
+
"html5ever",
|
| 1046 |
+
"indexmap",
|
| 1047 |
+
"mdbook-core",
|
| 1048 |
+
"mdbook-markdown",
|
| 1049 |
+
"mdbook-renderer",
|
| 1050 |
+
"pulldown-cmark",
|
| 1051 |
+
"regex",
|
| 1052 |
+
"serde",
|
| 1053 |
+
"serde_json",
|
| 1054 |
+
"sha2",
|
| 1055 |
+
"tracing",
|
| 1056 |
+
]
|
| 1057 |
+
|
| 1058 |
+
[[package]]
|
| 1059 |
+
name = "mdbook-i18n-helpers"
|
| 1060 |
+
version = "0.4.0"
|
| 1061 |
+
dependencies = [
|
| 1062 |
+
"anyhow",
|
| 1063 |
+
"chrono",
|
| 1064 |
+
"dateparser",
|
| 1065 |
+
"mdbook-driver",
|
| 1066 |
+
"mdbook-preprocessor",
|
| 1067 |
+
"mdbook-renderer",
|
| 1068 |
+
"polib",
|
| 1069 |
+
"pretty_assertions",
|
| 1070 |
+
"pulldown-cmark",
|
| 1071 |
+
"pulldown-cmark-to-cmark",
|
| 1072 |
+
"regex",
|
| 1073 |
+
"semver",
|
| 1074 |
+
"serde_json",
|
| 1075 |
+
"syntect",
|
| 1076 |
+
"tempfile",
|
| 1077 |
+
"textwrap",
|
| 1078 |
+
]
|
| 1079 |
+
|
| 1080 |
+
[[package]]
|
| 1081 |
+
name = "mdbook-i18n-helpers-fuzz"
|
| 1082 |
+
version = "0.0.0"
|
| 1083 |
+
dependencies = [
|
| 1084 |
+
"arbitrary",
|
| 1085 |
+
"libfuzzer-sys",
|
| 1086 |
+
"mdbook-i18n-helpers",
|
| 1087 |
+
"mdbook-preprocessor",
|
| 1088 |
+
"mdbook-renderer",
|
| 1089 |
+
"polib",
|
| 1090 |
+
"pretty_assertions",
|
| 1091 |
+
]
|
| 1092 |
+
|
| 1093 |
+
[[package]]
|
| 1094 |
+
name = "mdbook-markdown"
|
| 1095 |
+
version = "0.5.2"
|
| 1096 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1097 |
+
checksum = "07c41bf35212f5d8b83e543aa6a4887dc5709c8489c5fb9ed00f1b51ce1a2cc6"
|
| 1098 |
+
dependencies = [
|
| 1099 |
+
"pulldown-cmark",
|
| 1100 |
+
"regex",
|
| 1101 |
+
"tracing",
|
| 1102 |
+
]
|
| 1103 |
+
|
| 1104 |
+
[[package]]
|
| 1105 |
+
name = "mdbook-preprocessor"
|
| 1106 |
+
version = "0.5.3"
|
| 1107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1108 |
+
checksum = "8eff7b4afaafd664a649a03b8891ad8199aef359a35b911ad6c31acab38ed209"
|
| 1109 |
+
dependencies = [
|
| 1110 |
+
"anyhow",
|
| 1111 |
+
"mdbook-core",
|
| 1112 |
+
"serde",
|
| 1113 |
+
"serde_json",
|
| 1114 |
+
]
|
| 1115 |
+
|
| 1116 |
+
[[package]]
|
| 1117 |
+
name = "mdbook-renderer"
|
| 1118 |
+
version = "0.5.3"
|
| 1119 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1120 |
+
checksum = "e607259410d53aa5cdaf5b6c1c6b3fd61f2e0f0523ebf457d34cd4f0b71e2a88"
|
| 1121 |
+
dependencies = [
|
| 1122 |
+
"anyhow",
|
| 1123 |
+
"mdbook-core",
|
| 1124 |
+
"serde",
|
| 1125 |
+
"serde_json",
|
| 1126 |
+
]
|
| 1127 |
+
|
| 1128 |
+
[[package]]
|
| 1129 |
+
name = "mdbook-summary"
|
| 1130 |
+
version = "0.5.2"
|
| 1131 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1132 |
+
checksum = "c00d85b291d67a69c92e939450390fe34d6ea418a868c8f7b42f0b300af35a7b"
|
| 1133 |
+
dependencies = [
|
| 1134 |
+
"anyhow",
|
| 1135 |
+
"mdbook-core",
|
| 1136 |
+
"memchr",
|
| 1137 |
+
"pulldown-cmark",
|
| 1138 |
+
"serde",
|
| 1139 |
+
"tracing",
|
| 1140 |
+
]
|
| 1141 |
+
|
| 1142 |
+
[[package]]
|
| 1143 |
+
name = "mdbook-tera-backend"
|
| 1144 |
+
version = "0.0.2"
|
| 1145 |
+
dependencies = [
|
| 1146 |
+
"anyhow",
|
| 1147 |
+
"mdbook-driver",
|
| 1148 |
+
"mdbook-renderer",
|
| 1149 |
+
"serde",
|
| 1150 |
+
"tempfile",
|
| 1151 |
+
"tera",
|
| 1152 |
+
]
|
| 1153 |
+
|
| 1154 |
+
[[package]]
|
| 1155 |
+
name = "memchr"
|
| 1156 |
+
version = "2.7.6"
|
| 1157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1158 |
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
| 1159 |
+
|
| 1160 |
+
[[package]]
|
| 1161 |
+
name = "miniz_oxide"
|
| 1162 |
+
version = "0.7.3"
|
| 1163 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1164 |
+
checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae"
|
| 1165 |
+
dependencies = [
|
| 1166 |
+
"adler",
|
| 1167 |
+
]
|
| 1168 |
+
|
| 1169 |
+
[[package]]
|
| 1170 |
+
name = "new_debug_unreachable"
|
| 1171 |
+
version = "1.0.6"
|
| 1172 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1173 |
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
| 1174 |
+
|
| 1175 |
+
[[package]]
|
| 1176 |
+
name = "num-modular"
|
| 1177 |
+
version = "0.6.1"
|
| 1178 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1179 |
+
checksum = "17bb261bf36fa7d83f4c294f834e91256769097b3cb505d44831e0a179ac647f"
|
| 1180 |
+
|
| 1181 |
+
[[package]]
|
| 1182 |
+
name = "num-order"
|
| 1183 |
+
version = "1.2.0"
|
| 1184 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1185 |
+
checksum = "537b596b97c40fcf8056d153049eb22f481c17ebce72a513ec9286e4986d1bb6"
|
| 1186 |
+
dependencies = [
|
| 1187 |
+
"num-modular",
|
| 1188 |
+
]
|
| 1189 |
+
|
| 1190 |
+
[[package]]
|
| 1191 |
+
name = "num-traits"
|
| 1192 |
+
version = "0.2.19"
|
| 1193 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1194 |
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
| 1195 |
+
dependencies = [
|
| 1196 |
+
"autocfg",
|
| 1197 |
+
]
|
| 1198 |
+
|
| 1199 |
+
[[package]]
|
| 1200 |
+
name = "once_cell"
|
| 1201 |
+
version = "1.19.0"
|
| 1202 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1203 |
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
| 1204 |
+
|
| 1205 |
+
[[package]]
|
| 1206 |
+
name = "once_cell_polyfill"
|
| 1207 |
+
version = "1.70.2"
|
| 1208 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1209 |
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
| 1210 |
+
|
| 1211 |
+
[[package]]
|
| 1212 |
+
name = "parking_lot"
|
| 1213 |
+
version = "0.12.5"
|
| 1214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1215 |
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
| 1216 |
+
dependencies = [
|
| 1217 |
+
"lock_api",
|
| 1218 |
+
"parking_lot_core",
|
| 1219 |
+
]
|
| 1220 |
+
|
| 1221 |
+
[[package]]
|
| 1222 |
+
name = "parking_lot_core"
|
| 1223 |
+
version = "0.9.12"
|
| 1224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1225 |
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
| 1226 |
+
dependencies = [
|
| 1227 |
+
"cfg-if",
|
| 1228 |
+
"libc",
|
| 1229 |
+
"redox_syscall",
|
| 1230 |
+
"smallvec",
|
| 1231 |
+
"windows-link",
|
| 1232 |
+
]
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "parse-zoneinfo"
|
| 1236 |
+
version = "0.3.1"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"regex",
|
| 1241 |
+
]
|
| 1242 |
+
|
| 1243 |
+
[[package]]
|
| 1244 |
+
name = "percent-encoding"
|
| 1245 |
+
version = "2.3.1"
|
| 1246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1247 |
+
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
|
| 1248 |
+
|
| 1249 |
+
[[package]]
|
| 1250 |
+
name = "pest"
|
| 1251 |
+
version = "2.7.10"
|
| 1252 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1253 |
+
checksum = "560131c633294438da9f7c4b08189194b20946c8274c6b9e38881a7874dc8ee8"
|
| 1254 |
+
dependencies = [
|
| 1255 |
+
"memchr",
|
| 1256 |
+
"thiserror 1.0.61",
|
| 1257 |
+
"ucd-trie",
|
| 1258 |
+
]
|
| 1259 |
+
|
| 1260 |
+
[[package]]
|
| 1261 |
+
name = "pest_derive"
|
| 1262 |
+
version = "2.7.10"
|
| 1263 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1264 |
+
checksum = "26293c9193fbca7b1a3bf9b79dc1e388e927e6cacaa78b4a3ab705a1d3d41459"
|
| 1265 |
+
dependencies = [
|
| 1266 |
+
"pest",
|
| 1267 |
+
"pest_generator",
|
| 1268 |
+
]
|
| 1269 |
+
|
| 1270 |
+
[[package]]
|
| 1271 |
+
name = "pest_generator"
|
| 1272 |
+
version = "2.7.10"
|
| 1273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1274 |
+
checksum = "3ec22af7d3fb470a85dd2ca96b7c577a1eb4ef6f1683a9fe9a8c16e136c04687"
|
| 1275 |
+
dependencies = [
|
| 1276 |
+
"pest",
|
| 1277 |
+
"pest_meta",
|
| 1278 |
+
"proc-macro2",
|
| 1279 |
+
"quote",
|
| 1280 |
+
"syn",
|
| 1281 |
+
]
|
| 1282 |
+
|
| 1283 |
+
[[package]]
|
| 1284 |
+
name = "pest_meta"
|
| 1285 |
+
version = "2.7.10"
|
| 1286 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1287 |
+
checksum = "d7a240022f37c361ec1878d646fc5b7d7c4d28d5946e1a80ad5a7a4f4ca0bdcd"
|
| 1288 |
+
dependencies = [
|
| 1289 |
+
"once_cell",
|
| 1290 |
+
"pest",
|
| 1291 |
+
"sha2",
|
| 1292 |
+
]
|
| 1293 |
+
|
| 1294 |
+
[[package]]
|
| 1295 |
+
name = "phf"
|
| 1296 |
+
version = "0.11.2"
|
| 1297 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1298 |
+
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
|
| 1299 |
+
dependencies = [
|
| 1300 |
+
"phf_shared 0.11.2",
|
| 1301 |
+
]
|
| 1302 |
+
|
| 1303 |
+
[[package]]
|
| 1304 |
+
name = "phf"
|
| 1305 |
+
version = "0.13.1"
|
| 1306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1307 |
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
| 1308 |
+
dependencies = [
|
| 1309 |
+
"phf_shared 0.13.1",
|
| 1310 |
+
"serde",
|
| 1311 |
+
]
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "phf_codegen"
|
| 1315 |
+
version = "0.11.2"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"phf_generator 0.11.2",
|
| 1320 |
+
"phf_shared 0.11.2",
|
| 1321 |
+
]
|
| 1322 |
+
|
| 1323 |
+
[[package]]
|
| 1324 |
+
name = "phf_codegen"
|
| 1325 |
+
version = "0.13.1"
|
| 1326 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1327 |
+
checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
|
| 1328 |
+
dependencies = [
|
| 1329 |
+
"phf_generator 0.13.1",
|
| 1330 |
+
"phf_shared 0.13.1",
|
| 1331 |
+
]
|
| 1332 |
+
|
| 1333 |
+
[[package]]
|
| 1334 |
+
name = "phf_generator"
|
| 1335 |
+
version = "0.11.2"
|
| 1336 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1337 |
+
checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
|
| 1338 |
+
dependencies = [
|
| 1339 |
+
"phf_shared 0.11.2",
|
| 1340 |
+
"rand",
|
| 1341 |
+
]
|
| 1342 |
+
|
| 1343 |
+
[[package]]
|
| 1344 |
+
name = "phf_generator"
|
| 1345 |
+
version = "0.13.1"
|
| 1346 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1347 |
+
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
|
| 1348 |
+
dependencies = [
|
| 1349 |
+
"fastrand",
|
| 1350 |
+
"phf_shared 0.13.1",
|
| 1351 |
+
]
|
| 1352 |
+
|
| 1353 |
+
[[package]]
|
| 1354 |
+
name = "phf_shared"
|
| 1355 |
+
version = "0.11.2"
|
| 1356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1357 |
+
checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
|
| 1358 |
+
dependencies = [
|
| 1359 |
+
"siphasher 0.3.11",
|
| 1360 |
+
]
|
| 1361 |
+
|
| 1362 |
+
[[package]]
|
| 1363 |
+
name = "phf_shared"
|
| 1364 |
+
version = "0.13.1"
|
| 1365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1366 |
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
| 1367 |
+
dependencies = [
|
| 1368 |
+
"siphasher 1.0.2",
|
| 1369 |
+
]
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "pin-project-lite"
|
| 1373 |
+
version = "0.2.16"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
| 1376 |
+
|
| 1377 |
+
[[package]]
|
| 1378 |
+
name = "polib"
|
| 1379 |
+
version = "0.3.0"
|
| 1380 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1381 |
+
checksum = "ee83e5a284d919e51b071969bbf2d12d6943857aab02d84c5cc449373c9f3b7b"
|
| 1382 |
+
dependencies = [
|
| 1383 |
+
"concat-string",
|
| 1384 |
+
"linereader",
|
| 1385 |
+
]
|
| 1386 |
+
|
| 1387 |
+
[[package]]
|
| 1388 |
+
name = "ppv-lite86"
|
| 1389 |
+
version = "0.2.17"
|
| 1390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1391 |
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
| 1392 |
+
|
| 1393 |
+
[[package]]
|
| 1394 |
+
name = "precomputed-hash"
|
| 1395 |
+
version = "0.1.1"
|
| 1396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1397 |
+
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
| 1398 |
+
|
| 1399 |
+
[[package]]
|
| 1400 |
+
name = "pretty_assertions"
|
| 1401 |
+
version = "1.4.1"
|
| 1402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1403 |
+
checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d"
|
| 1404 |
+
dependencies = [
|
| 1405 |
+
"diff",
|
| 1406 |
+
"yansi",
|
| 1407 |
+
]
|
| 1408 |
+
|
| 1409 |
+
[[package]]
|
| 1410 |
+
name = "proc-macro2"
|
| 1411 |
+
version = "1.0.106"
|
| 1412 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1413 |
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
| 1414 |
+
dependencies = [
|
| 1415 |
+
"unicode-ident",
|
| 1416 |
+
]
|
| 1417 |
+
|
| 1418 |
+
[[package]]
|
| 1419 |
+
name = "pulldown-cmark"
|
| 1420 |
+
version = "0.13.4"
|
| 1421 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1422 |
+
checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e"
|
| 1423 |
+
dependencies = [
|
| 1424 |
+
"bitflags",
|
| 1425 |
+
"memchr",
|
| 1426 |
+
"pulldown-cmark-escape",
|
| 1427 |
+
"unicase",
|
| 1428 |
+
]
|
| 1429 |
+
|
| 1430 |
+
[[package]]
|
| 1431 |
+
name = "pulldown-cmark-escape"
|
| 1432 |
+
version = "0.11.0"
|
| 1433 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1434 |
+
checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
|
| 1435 |
+
|
| 1436 |
+
[[package]]
|
| 1437 |
+
name = "pulldown-cmark-to-cmark"
|
| 1438 |
+
version = "22.0.0"
|
| 1439 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1440 |
+
checksum = "50793def1b900256624a709439404384204a5dc3a6ec580281bfaac35e882e90"
|
| 1441 |
+
dependencies = [
|
| 1442 |
+
"pulldown-cmark",
|
| 1443 |
+
]
|
| 1444 |
+
|
| 1445 |
+
[[package]]
|
| 1446 |
+
name = "quote"
|
| 1447 |
+
version = "1.0.45"
|
| 1448 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1449 |
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
| 1450 |
+
dependencies = [
|
| 1451 |
+
"proc-macro2",
|
| 1452 |
+
]
|
| 1453 |
+
|
| 1454 |
+
[[package]]
|
| 1455 |
+
name = "rand"
|
| 1456 |
+
version = "0.8.6"
|
| 1457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1458 |
+
checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
|
| 1459 |
+
dependencies = [
|
| 1460 |
+
"libc",
|
| 1461 |
+
"rand_chacha",
|
| 1462 |
+
"rand_core",
|
| 1463 |
+
]
|
| 1464 |
+
|
| 1465 |
+
[[package]]
|
| 1466 |
+
name = "rand_chacha"
|
| 1467 |
+
version = "0.3.1"
|
| 1468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1469 |
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
| 1470 |
+
dependencies = [
|
| 1471 |
+
"ppv-lite86",
|
| 1472 |
+
"rand_core",
|
| 1473 |
+
]
|
| 1474 |
+
|
| 1475 |
+
[[package]]
|
| 1476 |
+
name = "rand_core"
|
| 1477 |
+
version = "0.6.4"
|
| 1478 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1479 |
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
| 1480 |
+
dependencies = [
|
| 1481 |
+
"getrandom 0.2.15",
|
| 1482 |
+
]
|
| 1483 |
+
|
| 1484 |
+
[[package]]
|
| 1485 |
+
name = "redox_syscall"
|
| 1486 |
+
version = "0.5.18"
|
| 1487 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1488 |
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
| 1489 |
+
dependencies = [
|
| 1490 |
+
"bitflags",
|
| 1491 |
+
]
|
| 1492 |
+
|
| 1493 |
+
[[package]]
|
| 1494 |
+
name = "regex"
|
| 1495 |
+
version = "1.12.3"
|
| 1496 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1497 |
+
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
|
| 1498 |
+
dependencies = [
|
| 1499 |
+
"aho-corasick",
|
| 1500 |
+
"memchr",
|
| 1501 |
+
"regex-automata",
|
| 1502 |
+
"regex-syntax",
|
| 1503 |
+
]
|
| 1504 |
+
|
| 1505 |
+
[[package]]
|
| 1506 |
+
name = "regex-automata"
|
| 1507 |
+
version = "0.4.13"
|
| 1508 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1509 |
+
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
|
| 1510 |
+
dependencies = [
|
| 1511 |
+
"aho-corasick",
|
| 1512 |
+
"memchr",
|
| 1513 |
+
"regex-syntax",
|
| 1514 |
+
]
|
| 1515 |
+
|
| 1516 |
+
[[package]]
|
| 1517 |
+
name = "regex-syntax"
|
| 1518 |
+
version = "0.8.5"
|
| 1519 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1520 |
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
| 1521 |
+
|
| 1522 |
+
[[package]]
|
| 1523 |
+
name = "rustix"
|
| 1524 |
+
version = "1.1.4"
|
| 1525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1526 |
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
| 1527 |
+
dependencies = [
|
| 1528 |
+
"bitflags",
|
| 1529 |
+
"errno",
|
| 1530 |
+
"libc",
|
| 1531 |
+
"linux-raw-sys",
|
| 1532 |
+
"windows-sys 0.61.1",
|
| 1533 |
+
]
|
| 1534 |
+
|
| 1535 |
+
[[package]]
|
| 1536 |
+
name = "same-file"
|
| 1537 |
+
version = "1.0.6"
|
| 1538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1539 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 1540 |
+
dependencies = [
|
| 1541 |
+
"winapi-util",
|
| 1542 |
+
]
|
| 1543 |
+
|
| 1544 |
+
[[package]]
|
| 1545 |
+
name = "scopeguard"
|
| 1546 |
+
version = "1.2.0"
|
| 1547 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1548 |
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
| 1549 |
+
|
| 1550 |
+
[[package]]
|
| 1551 |
+
name = "semver"
|
| 1552 |
+
version = "1.0.28"
|
| 1553 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1554 |
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
| 1555 |
+
|
| 1556 |
+
[[package]]
|
| 1557 |
+
name = "serde"
|
| 1558 |
+
version = "1.0.228"
|
| 1559 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1560 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 1561 |
+
dependencies = [
|
| 1562 |
+
"serde_core",
|
| 1563 |
+
"serde_derive",
|
| 1564 |
+
]
|
| 1565 |
+
|
| 1566 |
+
[[package]]
|
| 1567 |
+
name = "serde_core"
|
| 1568 |
+
version = "1.0.228"
|
| 1569 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1570 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 1571 |
+
dependencies = [
|
| 1572 |
+
"serde_derive",
|
| 1573 |
+
]
|
| 1574 |
+
|
| 1575 |
+
[[package]]
|
| 1576 |
+
name = "serde_derive"
|
| 1577 |
+
version = "1.0.228"
|
| 1578 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1579 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 1580 |
+
dependencies = [
|
| 1581 |
+
"proc-macro2",
|
| 1582 |
+
"quote",
|
| 1583 |
+
"syn",
|
| 1584 |
+
]
|
| 1585 |
+
|
| 1586 |
+
[[package]]
|
| 1587 |
+
name = "serde_json"
|
| 1588 |
+
version = "1.0.150"
|
| 1589 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1590 |
+
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
| 1591 |
+
dependencies = [
|
| 1592 |
+
"itoa",
|
| 1593 |
+
"memchr",
|
| 1594 |
+
"serde",
|
| 1595 |
+
"serde_core",
|
| 1596 |
+
"zmij",
|
| 1597 |
+
]
|
| 1598 |
+
|
| 1599 |
+
[[package]]
|
| 1600 |
+
name = "serde_spanned"
|
| 1601 |
+
version = "1.1.1"
|
| 1602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1603 |
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
| 1604 |
+
dependencies = [
|
| 1605 |
+
"serde_core",
|
| 1606 |
+
]
|
| 1607 |
+
|
| 1608 |
+
[[package]]
|
| 1609 |
+
name = "sha2"
|
| 1610 |
+
version = "0.10.9"
|
| 1611 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1612 |
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
| 1613 |
+
dependencies = [
|
| 1614 |
+
"cfg-if",
|
| 1615 |
+
"cpufeatures",
|
| 1616 |
+
"digest",
|
| 1617 |
+
]
|
| 1618 |
+
|
| 1619 |
+
[[package]]
|
| 1620 |
+
name = "shlex"
|
| 1621 |
+
version = "1.3.0"
|
| 1622 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1623 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 1624 |
+
|
| 1625 |
+
[[package]]
|
| 1626 |
+
name = "siphasher"
|
| 1627 |
+
version = "0.3.11"
|
| 1628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1629 |
+
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
|
| 1630 |
+
|
| 1631 |
+
[[package]]
|
| 1632 |
+
name = "siphasher"
|
| 1633 |
+
version = "1.0.2"
|
| 1634 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1635 |
+
checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"
|
| 1636 |
+
|
| 1637 |
+
[[package]]
|
| 1638 |
+
name = "slug"
|
| 1639 |
+
version = "0.1.5"
|
| 1640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1641 |
+
checksum = "3bd94acec9c8da640005f8e135a39fc0372e74535e6b368b7a04b875f784c8c4"
|
| 1642 |
+
dependencies = [
|
| 1643 |
+
"deunicode",
|
| 1644 |
+
"wasm-bindgen",
|
| 1645 |
+
]
|
| 1646 |
+
|
| 1647 |
+
[[package]]
|
| 1648 |
+
name = "smallvec"
|
| 1649 |
+
version = "1.15.1"
|
| 1650 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1651 |
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
| 1652 |
+
|
| 1653 |
+
[[package]]
|
| 1654 |
+
name = "string_cache"
|
| 1655 |
+
version = "0.9.0"
|
| 1656 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1657 |
+
checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
|
| 1658 |
+
dependencies = [
|
| 1659 |
+
"new_debug_unreachable",
|
| 1660 |
+
"parking_lot",
|
| 1661 |
+
"phf_shared 0.13.1",
|
| 1662 |
+
"precomputed-hash",
|
| 1663 |
+
]
|
| 1664 |
+
|
| 1665 |
+
[[package]]
|
| 1666 |
+
name = "string_cache_codegen"
|
| 1667 |
+
version = "0.6.1"
|
| 1668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1669 |
+
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
|
| 1670 |
+
dependencies = [
|
| 1671 |
+
"phf_generator 0.13.1",
|
| 1672 |
+
"phf_shared 0.13.1",
|
| 1673 |
+
"proc-macro2",
|
| 1674 |
+
"quote",
|
| 1675 |
+
]
|
| 1676 |
+
|
| 1677 |
+
[[package]]
|
| 1678 |
+
name = "strsim"
|
| 1679 |
+
version = "0.11.1"
|
| 1680 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1681 |
+
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
| 1682 |
+
|
| 1683 |
+
[[package]]
|
| 1684 |
+
name = "syn"
|
| 1685 |
+
version = "2.0.117"
|
| 1686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1687 |
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
| 1688 |
+
dependencies = [
|
| 1689 |
+
"proc-macro2",
|
| 1690 |
+
"quote",
|
| 1691 |
+
"unicode-ident",
|
| 1692 |
+
]
|
| 1693 |
+
|
| 1694 |
+
[[package]]
|
| 1695 |
+
name = "syntect"
|
| 1696 |
+
version = "5.3.0"
|
| 1697 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1698 |
+
checksum = "656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925"
|
| 1699 |
+
dependencies = [
|
| 1700 |
+
"bincode",
|
| 1701 |
+
"fancy-regex",
|
| 1702 |
+
"flate2",
|
| 1703 |
+
"fnv",
|
| 1704 |
+
"once_cell",
|
| 1705 |
+
"regex-syntax",
|
| 1706 |
+
"serde",
|
| 1707 |
+
"serde_derive",
|
| 1708 |
+
"thiserror 2.0.17",
|
| 1709 |
+
"walkdir",
|
| 1710 |
+
]
|
| 1711 |
+
|
| 1712 |
+
[[package]]
|
| 1713 |
+
name = "tempfile"
|
| 1714 |
+
version = "3.27.0"
|
| 1715 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1716 |
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
| 1717 |
+
dependencies = [
|
| 1718 |
+
"fastrand",
|
| 1719 |
+
"getrandom 0.3.1",
|
| 1720 |
+
"once_cell",
|
| 1721 |
+
"rustix",
|
| 1722 |
+
"windows-sys 0.61.1",
|
| 1723 |
+
]
|
| 1724 |
+
|
| 1725 |
+
[[package]]
|
| 1726 |
+
name = "tendril"
|
| 1727 |
+
version = "0.4.3"
|
| 1728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1729 |
+
checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
|
| 1730 |
+
dependencies = [
|
| 1731 |
+
"futf",
|
| 1732 |
+
"mac",
|
| 1733 |
+
"utf-8",
|
| 1734 |
+
]
|
| 1735 |
+
|
| 1736 |
+
[[package]]
|
| 1737 |
+
name = "tera"
|
| 1738 |
+
version = "1.20.1"
|
| 1739 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1740 |
+
checksum = "e8004bca281f2d32df3bacd59bc67b312cb4c70cea46cbd79dbe8ac5ed206722"
|
| 1741 |
+
dependencies = [
|
| 1742 |
+
"chrono",
|
| 1743 |
+
"chrono-tz",
|
| 1744 |
+
"globwalk",
|
| 1745 |
+
"humansize",
|
| 1746 |
+
"lazy_static",
|
| 1747 |
+
"percent-encoding",
|
| 1748 |
+
"pest",
|
| 1749 |
+
"pest_derive",
|
| 1750 |
+
"rand",
|
| 1751 |
+
"regex",
|
| 1752 |
+
"serde",
|
| 1753 |
+
"serde_json",
|
| 1754 |
+
"slug",
|
| 1755 |
+
"unicode-segmentation",
|
| 1756 |
+
]
|
| 1757 |
+
|
| 1758 |
+
[[package]]
|
| 1759 |
+
name = "textwrap"
|
| 1760 |
+
version = "0.16.2"
|
| 1761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1762 |
+
checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"
|
| 1763 |
+
|
| 1764 |
+
[[package]]
|
| 1765 |
+
name = "thiserror"
|
| 1766 |
+
version = "1.0.61"
|
| 1767 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1768 |
+
checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709"
|
| 1769 |
+
dependencies = [
|
| 1770 |
+
"thiserror-impl 1.0.61",
|
| 1771 |
+
]
|
| 1772 |
+
|
| 1773 |
+
[[package]]
|
| 1774 |
+
name = "thiserror"
|
| 1775 |
+
version = "2.0.17"
|
| 1776 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1777 |
+
checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
|
| 1778 |
+
dependencies = [
|
| 1779 |
+
"thiserror-impl 2.0.17",
|
| 1780 |
+
]
|
| 1781 |
+
|
| 1782 |
+
[[package]]
|
| 1783 |
+
name = "thiserror-impl"
|
| 1784 |
+
version = "1.0.61"
|
| 1785 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1786 |
+
checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
|
| 1787 |
+
dependencies = [
|
| 1788 |
+
"proc-macro2",
|
| 1789 |
+
"quote",
|
| 1790 |
+
"syn",
|
| 1791 |
+
]
|
| 1792 |
+
|
| 1793 |
+
[[package]]
|
| 1794 |
+
name = "thiserror-impl"
|
| 1795 |
+
version = "2.0.17"
|
| 1796 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1797 |
+
checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
|
| 1798 |
+
dependencies = [
|
| 1799 |
+
"proc-macro2",
|
| 1800 |
+
"quote",
|
| 1801 |
+
"syn",
|
| 1802 |
+
]
|
| 1803 |
+
|
| 1804 |
+
[[package]]
|
| 1805 |
+
name = "toml"
|
| 1806 |
+
version = "0.9.8"
|
| 1807 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1808 |
+
checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8"
|
| 1809 |
+
dependencies = [
|
| 1810 |
+
"indexmap",
|
| 1811 |
+
"serde_core",
|
| 1812 |
+
"serde_spanned",
|
| 1813 |
+
"toml_datetime 0.7.3",
|
| 1814 |
+
"toml_parser",
|
| 1815 |
+
"toml_writer",
|
| 1816 |
+
"winnow 0.7.13",
|
| 1817 |
+
]
|
| 1818 |
+
|
| 1819 |
+
[[package]]
|
| 1820 |
+
name = "toml"
|
| 1821 |
+
version = "1.1.2+spec-1.1.0"
|
| 1822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1823 |
+
checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"
|
| 1824 |
+
dependencies = [
|
| 1825 |
+
"indexmap",
|
| 1826 |
+
"serde_core",
|
| 1827 |
+
"serde_spanned",
|
| 1828 |
+
"toml_datetime 1.1.1+spec-1.1.0",
|
| 1829 |
+
"toml_parser",
|
| 1830 |
+
"toml_writer",
|
| 1831 |
+
"winnow 1.0.3",
|
| 1832 |
+
]
|
| 1833 |
+
|
| 1834 |
+
[[package]]
|
| 1835 |
+
name = "toml_datetime"
|
| 1836 |
+
version = "0.7.3"
|
| 1837 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1838 |
+
checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533"
|
| 1839 |
+
dependencies = [
|
| 1840 |
+
"serde_core",
|
| 1841 |
+
]
|
| 1842 |
+
|
| 1843 |
+
[[package]]
|
| 1844 |
+
name = "toml_datetime"
|
| 1845 |
+
version = "1.1.1+spec-1.1.0"
|
| 1846 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1847 |
+
checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
|
| 1848 |
+
dependencies = [
|
| 1849 |
+
"serde_core",
|
| 1850 |
+
]
|
| 1851 |
+
|
| 1852 |
+
[[package]]
|
| 1853 |
+
name = "toml_parser"
|
| 1854 |
+
version = "1.1.2+spec-1.1.0"
|
| 1855 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1856 |
+
checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
|
| 1857 |
+
dependencies = [
|
| 1858 |
+
"winnow 1.0.3",
|
| 1859 |
+
]
|
| 1860 |
+
|
| 1861 |
+
[[package]]
|
| 1862 |
+
name = "toml_writer"
|
| 1863 |
+
version = "1.1.1+spec-1.1.0"
|
| 1864 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1865 |
+
checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
|
| 1866 |
+
|
| 1867 |
+
[[package]]
|
| 1868 |
+
name = "topological-sort"
|
| 1869 |
+
version = "0.2.2"
|
| 1870 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1871 |
+
checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d"
|
| 1872 |
+
|
| 1873 |
+
[[package]]
|
| 1874 |
+
name = "tracing"
|
| 1875 |
+
version = "0.1.44"
|
| 1876 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1877 |
+
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
| 1878 |
+
dependencies = [
|
| 1879 |
+
"pin-project-lite",
|
| 1880 |
+
"tracing-attributes",
|
| 1881 |
+
"tracing-core",
|
| 1882 |
+
]
|
| 1883 |
+
|
| 1884 |
+
[[package]]
|
| 1885 |
+
name = "tracing-attributes"
|
| 1886 |
+
version = "0.1.31"
|
| 1887 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1888 |
+
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
| 1889 |
+
dependencies = [
|
| 1890 |
+
"proc-macro2",
|
| 1891 |
+
"quote",
|
| 1892 |
+
"syn",
|
| 1893 |
+
]
|
| 1894 |
+
|
| 1895 |
+
[[package]]
|
| 1896 |
+
name = "tracing-core"
|
| 1897 |
+
version = "0.1.36"
|
| 1898 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1899 |
+
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
| 1900 |
+
dependencies = [
|
| 1901 |
+
"once_cell",
|
| 1902 |
+
]
|
| 1903 |
+
|
| 1904 |
+
[[package]]
|
| 1905 |
+
name = "typenum"
|
| 1906 |
+
version = "1.17.0"
|
| 1907 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1908 |
+
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
|
| 1909 |
+
|
| 1910 |
+
[[package]]
|
| 1911 |
+
name = "ucd-trie"
|
| 1912 |
+
version = "0.1.6"
|
| 1913 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1914 |
+
checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
|
| 1915 |
+
|
| 1916 |
+
[[package]]
|
| 1917 |
+
name = "unicase"
|
| 1918 |
+
version = "2.7.0"
|
| 1919 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1920 |
+
checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89"
|
| 1921 |
+
dependencies = [
|
| 1922 |
+
"version_check",
|
| 1923 |
+
]
|
| 1924 |
+
|
| 1925 |
+
[[package]]
|
| 1926 |
+
name = "unicode-ident"
|
| 1927 |
+
version = "1.0.12"
|
| 1928 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1929 |
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
| 1930 |
+
|
| 1931 |
+
[[package]]
|
| 1932 |
+
name = "unicode-segmentation"
|
| 1933 |
+
version = "1.12.0"
|
| 1934 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1935 |
+
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
|
| 1936 |
+
|
| 1937 |
+
[[package]]
|
| 1938 |
+
name = "utf-8"
|
| 1939 |
+
version = "0.7.6"
|
| 1940 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1941 |
+
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
| 1942 |
+
|
| 1943 |
+
[[package]]
|
| 1944 |
+
name = "utf8parse"
|
| 1945 |
+
version = "0.2.2"
|
| 1946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1947 |
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
| 1948 |
+
|
| 1949 |
+
[[package]]
|
| 1950 |
+
name = "version_check"
|
| 1951 |
+
version = "0.9.4"
|
| 1952 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1953 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 1954 |
+
|
| 1955 |
+
[[package]]
|
| 1956 |
+
name = "walkdir"
|
| 1957 |
+
version = "2.5.0"
|
| 1958 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1959 |
+
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
|
| 1960 |
+
dependencies = [
|
| 1961 |
+
"same-file",
|
| 1962 |
+
"winapi-util",
|
| 1963 |
+
]
|
| 1964 |
+
|
| 1965 |
+
[[package]]
|
| 1966 |
+
name = "wasi"
|
| 1967 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 1968 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1969 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 1970 |
+
|
| 1971 |
+
[[package]]
|
| 1972 |
+
name = "wasi"
|
| 1973 |
+
version = "0.13.3+wasi-0.2.2"
|
| 1974 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1975 |
+
checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
|
| 1976 |
+
dependencies = [
|
| 1977 |
+
"wit-bindgen-rt",
|
| 1978 |
+
]
|
| 1979 |
+
|
| 1980 |
+
[[package]]
|
| 1981 |
+
name = "wasm-bindgen"
|
| 1982 |
+
version = "0.2.92"
|
| 1983 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1984 |
+
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
|
| 1985 |
+
dependencies = [
|
| 1986 |
+
"cfg-if",
|
| 1987 |
+
"wasm-bindgen-macro",
|
| 1988 |
+
]
|
| 1989 |
+
|
| 1990 |
+
[[package]]
|
| 1991 |
+
name = "wasm-bindgen-backend"
|
| 1992 |
+
version = "0.2.92"
|
| 1993 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1994 |
+
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
|
| 1995 |
+
dependencies = [
|
| 1996 |
+
"bumpalo",
|
| 1997 |
+
"log",
|
| 1998 |
+
"once_cell",
|
| 1999 |
+
"proc-macro2",
|
| 2000 |
+
"quote",
|
| 2001 |
+
"syn",
|
| 2002 |
+
"wasm-bindgen-shared",
|
| 2003 |
+
]
|
| 2004 |
+
|
| 2005 |
+
[[package]]
|
| 2006 |
+
name = "wasm-bindgen-macro"
|
| 2007 |
+
version = "0.2.92"
|
| 2008 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2009 |
+
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
|
| 2010 |
+
dependencies = [
|
| 2011 |
+
"quote",
|
| 2012 |
+
"wasm-bindgen-macro-support",
|
| 2013 |
+
]
|
| 2014 |
+
|
| 2015 |
+
[[package]]
|
| 2016 |
+
name = "wasm-bindgen-macro-support"
|
| 2017 |
+
version = "0.2.92"
|
| 2018 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2019 |
+
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
|
| 2020 |
+
dependencies = [
|
| 2021 |
+
"proc-macro2",
|
| 2022 |
+
"quote",
|
| 2023 |
+
"syn",
|
| 2024 |
+
"wasm-bindgen-backend",
|
| 2025 |
+
"wasm-bindgen-shared",
|
| 2026 |
+
]
|
| 2027 |
+
|
| 2028 |
+
[[package]]
|
| 2029 |
+
name = "wasm-bindgen-shared"
|
| 2030 |
+
version = "0.2.92"
|
| 2031 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2032 |
+
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
|
| 2033 |
+
|
| 2034 |
+
[[package]]
|
| 2035 |
+
name = "web_atoms"
|
| 2036 |
+
version = "0.2.3"
|
| 2037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2038 |
+
checksum = "57a9779e9f04d2ac1ce317aee707aa2f6b773afba7b931222bff6983843b1576"
|
| 2039 |
+
dependencies = [
|
| 2040 |
+
"phf 0.13.1",
|
| 2041 |
+
"phf_codegen 0.13.1",
|
| 2042 |
+
"string_cache",
|
| 2043 |
+
"string_cache_codegen",
|
| 2044 |
+
]
|
| 2045 |
+
|
| 2046 |
+
[[package]]
|
| 2047 |
+
name = "winapi-util"
|
| 2048 |
+
version = "0.1.8"
|
| 2049 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2050 |
+
checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b"
|
| 2051 |
+
dependencies = [
|
| 2052 |
+
"windows-sys 0.52.0",
|
| 2053 |
+
]
|
| 2054 |
+
|
| 2055 |
+
[[package]]
|
| 2056 |
+
name = "windows-core"
|
| 2057 |
+
version = "0.52.0"
|
| 2058 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2059 |
+
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
|
| 2060 |
+
dependencies = [
|
| 2061 |
+
"windows-targets",
|
| 2062 |
+
]
|
| 2063 |
+
|
| 2064 |
+
[[package]]
|
| 2065 |
+
name = "windows-link"
|
| 2066 |
+
version = "0.2.0"
|
| 2067 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2068 |
+
checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
|
| 2069 |
+
|
| 2070 |
+
[[package]]
|
| 2071 |
+
name = "windows-sys"
|
| 2072 |
+
version = "0.52.0"
|
| 2073 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2074 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 2075 |
+
dependencies = [
|
| 2076 |
+
"windows-targets",
|
| 2077 |
+
]
|
| 2078 |
+
|
| 2079 |
+
[[package]]
|
| 2080 |
+
name = "windows-sys"
|
| 2081 |
+
version = "0.59.0"
|
| 2082 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2083 |
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
| 2084 |
+
dependencies = [
|
| 2085 |
+
"windows-targets",
|
| 2086 |
+
]
|
| 2087 |
+
|
| 2088 |
+
[[package]]
|
| 2089 |
+
name = "windows-sys"
|
| 2090 |
+
version = "0.61.1"
|
| 2091 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2092 |
+
checksum = "6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f"
|
| 2093 |
+
dependencies = [
|
| 2094 |
+
"windows-link",
|
| 2095 |
+
]
|
| 2096 |
+
|
| 2097 |
+
[[package]]
|
| 2098 |
+
name = "windows-targets"
|
| 2099 |
+
version = "0.52.6"
|
| 2100 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2101 |
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
| 2102 |
+
dependencies = [
|
| 2103 |
+
"windows_aarch64_gnullvm",
|
| 2104 |
+
"windows_aarch64_msvc",
|
| 2105 |
+
"windows_i686_gnu",
|
| 2106 |
+
"windows_i686_gnullvm",
|
| 2107 |
+
"windows_i686_msvc",
|
| 2108 |
+
"windows_x86_64_gnu",
|
| 2109 |
+
"windows_x86_64_gnullvm",
|
| 2110 |
+
"windows_x86_64_msvc",
|
| 2111 |
+
]
|
| 2112 |
+
|
| 2113 |
+
[[package]]
|
| 2114 |
+
name = "windows_aarch64_gnullvm"
|
| 2115 |
+
version = "0.52.6"
|
| 2116 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2117 |
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
| 2118 |
+
|
| 2119 |
+
[[package]]
|
| 2120 |
+
name = "windows_aarch64_msvc"
|
| 2121 |
+
version = "0.52.6"
|
| 2122 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2123 |
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
| 2124 |
+
|
| 2125 |
+
[[package]]
|
| 2126 |
+
name = "windows_i686_gnu"
|
| 2127 |
+
version = "0.52.6"
|
| 2128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2129 |
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
| 2130 |
+
|
| 2131 |
+
[[package]]
|
| 2132 |
+
name = "windows_i686_gnullvm"
|
| 2133 |
+
version = "0.52.6"
|
| 2134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2135 |
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
| 2136 |
+
|
| 2137 |
+
[[package]]
|
| 2138 |
+
name = "windows_i686_msvc"
|
| 2139 |
+
version = "0.52.6"
|
| 2140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2141 |
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
| 2142 |
+
|
| 2143 |
+
[[package]]
|
| 2144 |
+
name = "windows_x86_64_gnu"
|
| 2145 |
+
version = "0.52.6"
|
| 2146 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2147 |
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
| 2148 |
+
|
| 2149 |
+
[[package]]
|
| 2150 |
+
name = "windows_x86_64_gnullvm"
|
| 2151 |
+
version = "0.52.6"
|
| 2152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2153 |
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
| 2154 |
+
|
| 2155 |
+
[[package]]
|
| 2156 |
+
name = "windows_x86_64_msvc"
|
| 2157 |
+
version = "0.52.6"
|
| 2158 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2159 |
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
| 2160 |
+
|
| 2161 |
+
[[package]]
|
| 2162 |
+
name = "winnow"
|
| 2163 |
+
version = "0.7.13"
|
| 2164 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2165 |
+
checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
|
| 2166 |
+
|
| 2167 |
+
[[package]]
|
| 2168 |
+
name = "winnow"
|
| 2169 |
+
version = "1.0.3"
|
| 2170 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2171 |
+
checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1"
|
| 2172 |
+
|
| 2173 |
+
[[package]]
|
| 2174 |
+
name = "wit-bindgen-rt"
|
| 2175 |
+
version = "0.33.0"
|
| 2176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2177 |
+
checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
|
| 2178 |
+
dependencies = [
|
| 2179 |
+
"bitflags",
|
| 2180 |
+
]
|
| 2181 |
+
|
| 2182 |
+
[[package]]
|
| 2183 |
+
name = "yansi"
|
| 2184 |
+
version = "1.0.1"
|
| 2185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2186 |
+
checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
|
| 2187 |
+
|
| 2188 |
+
[[package]]
|
| 2189 |
+
name = "zmij"
|
| 2190 |
+
version = "1.0.7"
|
| 2191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2192 |
+
checksum = "de9211a9f64b825911bdf0240f58b7a8dac217fe260fc61f080a07f61372fbd5"
|
| 2193 |
+
LOCKEOF
|
| 2194 |
+
|
| 2195 |
+
# --------------------------------------------------------------------- fetch
|
| 2196 |
+
# Prefetch every dependency (exactly the locked versions) into the shared
|
| 2197 |
+
# CARGO_HOME registry cache. This is a network read; nothing is compiled or
|
| 2198 |
+
# linked here. --locked keeps the cache consistent with the embedded lockfile.
|
| 2199 |
+
cargo fetch --locked --manifest-path "$_download_dir/Cargo.toml"
|
| 2200 |
+
_fr=$?
|
| 2201 |
+
if [ "$_fr" -ne 0 ]; then
|
| 2202 |
+
echo "cargo fetch failed" >&2
|
| 2203 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 2204 |
+
exit 1
|
| 2205 |
+
else
|
| 2206 |
+
return 1
|
| 2207 |
+
fi
|
| 2208 |
+
fi
|
| 2209 |
+
|
| 2210 |
+
echo "download.sh: prefetched mdbook-i18n-helpers dependencies into the Cargo cache."
|
google--mdbook-i18n-helpers.da4106d/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5569e1c96b55a982e697eab8dbd662b75dc09eef283f89ee14da86d921e66703
|
| 3 |
+
size 4981520
|
google--mdbook-i18n-helpers.da4106d/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
|
google--mdbook-i18n-helpers.da4106d/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d28e6982f1cd8a09cbf78273842a0589d1aa3e501dce047a9f6000054741840
|
| 3 |
+
size 6216
|
google--mdbook-i18n-helpers.da4106d/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
|
google--mdbook-i18n-helpers.da4106d/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
|
google--mdbook-i18n-helpers.da4106d/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/google--mdbook-i18n-helpers.da4106d"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for google/mdbook-i18n-helpers"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "google__mdbook-i18n-helpers.da4106d"
|
| 32 |
+
repository = "google/mdbook-i18n-helpers"
|
| 33 |
+
commit = "da4106dead1b0bb684eeda65d5490510af90657e"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.7655195430979527
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 292
|
| 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"
|
google--mdbook-i18n-helpers.da4106d/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"]
|
google--mdbook-i18n-helpers.da4106d/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:f2073c8d801035b160486f9e76f1600aa01b625fd860a9cae9144024b369b89d
|
| 3 |
+
size 12724
|
google--mdbook-i18n-helpers.da4106d/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:cf090f04d3a7250bec89c055b8246e97906ef572c505a8d436cec81674ca0c15
|
| 3 |
+
size 13484
|
google--mdbook-i18n-helpers.da4106d/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:57c08ecb6933746977b7052e51cc4773bf377a10ffe39042e640f366f1dc103d
|
| 3 |
+
size 7256
|
google--mdbook-i18n-helpers.da4106d/tests/blobs/tests/generated_module_04.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# Standalone dependency-download stage for google/mdbook-i18n-helpers.
|
| 4 |
+
# Sourced as: source /source_ro/download.sh
|
| 5 |
+
# Generates a temporary Cargo workspace mirroring the repository's four member
|
| 6 |
+
# crates, embeds the committed Cargo.lock so the offline build resolves to the
|
| 7 |
+
# exact same crate versions, and prefetches every dependency into the shared
|
| 8 |
+
# Cargo registry cache. It compiles nothing.
|
| 9 |
+
#
|
| 10 |
+
# Safe to source: exports variables only, no positional args, no bare `exit`.
|
| 11 |
+
|
| 12 |
+
# Fail loudly in a way that works both when sourced and when executed directly.
|
| 13 |
+
_fail() {
|
| 14 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 15 |
+
exit 1
|
| 16 |
+
else
|
| 17 |
+
return 1
|
| 18 |
+
fi
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
# Rust/Cargo 1.97.1 is preinstalled in the build container. Keep parallelism
|
| 22 |
+
# finite so cargo does not oversubscribe nested-container CPUs.
|
| 23 |
+
export CARGO_BUILD_JOBS=4
|
| 24 |
+
export CARGO_PROFILE_RELEASE_THIN_LTO=false
|
| 25 |
+
|
| 26 |
+
# All download work happens in a scratch dir; never start from a source root.
|
| 27 |
+
_download_dir=$(mktemp -d /tmp/pb-mdbook-fetch.XXXXXX) || { echo "mktemp failed" >&2; _fail; }
|
| 28 |
+
export PROGRAMGYM_CARGO_FETCH_DIR="$_download_dir"
|
| 29 |
+
|
| 30 |
+
# ---------------------------------------------------------------- workspace
|
| 31 |
+
# Generate the workspace manifests inline. These mirror the repository's real
|
| 32 |
+
# manifests so dependency resolution matches the committed Cargo.lock.
|
| 33 |
+
cat > "$_download_dir/Cargo.toml" <<'WS'
|
| 34 |
+
[workspace]
|
| 35 |
+
members = ["i18n-helpers", "i18n-report", "mdbook-tera-backend", "fuzz"]
|
| 36 |
+
default-members = ["i18n-helpers", "i18n-report", "mdbook-tera-backend"]
|
| 37 |
+
resolver = "2"
|
| 38 |
+
|
| 39 |
+
[workspace.dependencies]
|
| 40 |
+
anyhow = "1.0.102"
|
| 41 |
+
mdbook-driver = "0.5.2"
|
| 42 |
+
mdbook-preprocessor = "0.5.3"
|
| 43 |
+
mdbook-renderer = "0.5.3"
|
| 44 |
+
polib = "0.3.0"
|
| 45 |
+
pretty_assertions = "1.4.1"
|
| 46 |
+
serde_json = "1.0.150"
|
| 47 |
+
tempfile = "3.27.0"
|
| 48 |
+
|
| 49 |
+
[workspace.lints.clippy]
|
| 50 |
+
dbg_macro = "warn"
|
| 51 |
+
print_stdout = "warn"
|
| 52 |
+
print_stderr = "warn"
|
| 53 |
+
WS
|
| 54 |
+
|
| 55 |
+
mkdir -p "$_download_dir/i18n-helpers/src/bin" \
|
| 56 |
+
"$_download_dir/i18n-helpers/src/preprocessors" \
|
| 57 |
+
"$_download_dir/i18n-helpers/src/renderers" \
|
| 58 |
+
"$_download_dir/i18n-helpers/src/xgettext" \
|
| 59 |
+
"$_download_dir/i18n-report/src" \
|
| 60 |
+
"$_download_dir/mdbook-tera-backend/src/tera_renderer" \
|
| 61 |
+
"$_download_dir/fuzz/src" \
|
| 62 |
+
"$_download_dir/fuzz/fuzz_targets"
|
| 63 |
+
|
| 64 |
+
cat > "$_download_dir/i18n-helpers/Cargo.toml" <<'MHELP'
|
| 65 |
+
[package]
|
| 66 |
+
name = "mdbook-i18n-helpers"
|
| 67 |
+
version = "0.4.0"
|
| 68 |
+
edition = "2021"
|
| 69 |
+
license = "Apache-2.0"
|
| 70 |
+
description = "Plugins for a mdbook translation workflow based on Gettext."
|
| 71 |
+
|
| 72 |
+
[lints]
|
| 73 |
+
workspace = true
|
| 74 |
+
|
| 75 |
+
[dependencies]
|
| 76 |
+
anyhow.workspace = true
|
| 77 |
+
chrono = { version = "0.4.44", default-features = false, features = ["alloc"] }
|
| 78 |
+
dateparser = "0.3.1"
|
| 79 |
+
mdbook-preprocessor.workspace = true
|
| 80 |
+
mdbook-renderer.workspace = true
|
| 81 |
+
polib.workspace = true
|
| 82 |
+
pulldown-cmark = { version = "0.13.4", default-features = false, features = ["html"] }
|
| 83 |
+
pulldown-cmark-to-cmark = "22.0.0"
|
| 84 |
+
regex = "1.12"
|
| 85 |
+
semver = "1.0.28"
|
| 86 |
+
serde_json.workspace = true
|
| 87 |
+
syntect = { version = "5.3.0", default-features = false, features = ["parsing", "default-syntaxes", "regex-fancy"] }
|
| 88 |
+
textwrap = { version = "0.16.2", default-features = false }
|
| 89 |
+
|
| 90 |
+
[dev-dependencies]
|
| 91 |
+
mdbook-driver.workspace = true
|
| 92 |
+
pretty_assertions.workspace = true
|
| 93 |
+
tempfile.workspace = true
|
| 94 |
+
|
| 95 |
+
[[bin]]
|
| 96 |
+
name = "mdbook-gettext"
|
| 97 |
+
path = "src/bin/mdbook-gettext.rs"
|
| 98 |
+
|
| 99 |
+
[[bin]]
|
| 100 |
+
name = "mdbook-xgettext"
|
| 101 |
+
path = "src/bin/mdbook-xgettext.rs"
|
| 102 |
+
|
| 103 |
+
[[bin]]
|
| 104 |
+
name = "mdbook-i18n-normalize"
|
| 105 |
+
path = "src/bin/mdbook-i18n-normalize.rs"
|
| 106 |
+
MHELP
|
| 107 |
+
|
| 108 |
+
cat > "$_download_dir/i18n-report/Cargo.toml" <<'MREP'
|
| 109 |
+
[package]
|
| 110 |
+
name = "i18n-report"
|
| 111 |
+
version = "0.2.0"
|
| 112 |
+
edition = "2021"
|
| 113 |
+
license = "Apache-2.0"
|
| 114 |
+
description = "Utility to generate an HTML report from a set of PO files."
|
| 115 |
+
|
| 116 |
+
[lints]
|
| 117 |
+
workspace = true
|
| 118 |
+
|
| 119 |
+
[dependencies]
|
| 120 |
+
anyhow.workspace = true
|
| 121 |
+
clap = { version = "4.6.1", features = ["derive"] }
|
| 122 |
+
polib.workspace = true
|
| 123 |
+
tera = { version = "1.20.1", default-features = false }
|
| 124 |
+
MREP
|
| 125 |
+
|
| 126 |
+
cat > "$_download_dir/mdbook-tera-backend/Cargo.toml" <<'MTERA'
|
| 127 |
+
[package]
|
| 128 |
+
name = "mdbook-tera-backend"
|
| 129 |
+
version = "0.0.2"
|
| 130 |
+
edition = "2021"
|
| 131 |
+
license = "Apache-2.0"
|
| 132 |
+
description = "Plugin to extend mdbook with Tera templates and custom HTML components."
|
| 133 |
+
|
| 134 |
+
[lints]
|
| 135 |
+
workspace = true
|
| 136 |
+
|
| 137 |
+
[dependencies]
|
| 138 |
+
anyhow.workspace = true
|
| 139 |
+
mdbook-renderer.workspace = true
|
| 140 |
+
serde = "1.0"
|
| 141 |
+
tera = "1.20.1"
|
| 142 |
+
|
| 143 |
+
[dev-dependencies]
|
| 144 |
+
mdbook-driver.workspace = true
|
| 145 |
+
tempfile.workspace = true
|
| 146 |
+
MTERA
|
| 147 |
+
|
| 148 |
+
cat > "$_download_dir/fuzz/Cargo.toml" <<'MFUZZ'
|
| 149 |
+
[package]
|
| 150 |
+
name = "mdbook-i18n-helpers-fuzz"
|
| 151 |
+
version = "0.0.0"
|
| 152 |
+
edition = "2021"
|
| 153 |
+
publish = false
|
| 154 |
+
|
| 155 |
+
[package.metadata]
|
| 156 |
+
cargo-fuzz = true
|
| 157 |
+
|
| 158 |
+
[lints]
|
| 159 |
+
workspace = true
|
| 160 |
+
|
| 161 |
+
[dependencies]
|
| 162 |
+
arbitrary = { version = "1.4.2", features = ["derive"] }
|
| 163 |
+
libfuzzer-sys = "0.4.12"
|
| 164 |
+
mdbook-i18n-helpers = { path = "../i18n-helpers" }
|
| 165 |
+
mdbook-preprocessor.workspace = true
|
| 166 |
+
mdbook-renderer.workspace = true
|
| 167 |
+
polib.workspace = true
|
| 168 |
+
pretty_assertions.workspace = true
|
| 169 |
+
|
| 170 |
+
[[bin]]
|
| 171 |
+
name = "group_events"
|
| 172 |
+
path = "fuzz_targets/group_events.rs"
|
| 173 |
+
test = false
|
| 174 |
+
doc = false
|
| 175 |
+
bench = false
|
| 176 |
+
|
| 177 |
+
[[bin]]
|
| 178 |
+
name = "normalize"
|
| 179 |
+
path = "fuzz_targets/normalize.rs"
|
| 180 |
+
test = false
|
| 181 |
+
doc = false
|
| 182 |
+
bench = false
|
| 183 |
+
|
| 184 |
+
[[bin]]
|
| 185 |
+
name = "gettext"
|
| 186 |
+
path = "fuzz_targets/gettext.rs"
|
| 187 |
+
test = false
|
| 188 |
+
doc = false
|
| 189 |
+
bench = false
|
| 190 |
+
|
| 191 |
+
[[bin]]
|
| 192 |
+
name = "xgettext"
|
| 193 |
+
path = "fuzz_targets/xgettext.rs"
|
| 194 |
+
test = false
|
| 195 |
+
doc = false
|
| 196 |
+
bench = false
|
| 197 |
+
MFUZZ
|
| 198 |
+
|
| 199 |
+
# Stub sources: cargo fetch only needs the declared target paths to exist; it
|
| 200 |
+
# never compiles them. Content is irrelevant for the download stage.
|
| 201 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/lib.rs"
|
| 202 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-gettext.rs"
|
| 203 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-xgettext.rs"
|
| 204 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/bin/mdbook-i18n-normalize.rs"
|
| 205 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/preprocessors.rs"
|
| 206 |
+
printf '// stub\n' > "$_download_dir/i18n-helpers/src/renderers.rs"
|
| 207 |
+
printf '// stub\n' > "$_download_dir/i18n-report/src/main.rs"
|
| 208 |
+
printf '// stub\n' > "$_download_dir/mdbook-tera-backend/src/main.rs"
|
| 209 |
+
printf '// stub\n' > "$_download_dir/mdbook-tera-backend/src/tera_renderer.rs"
|
| 210 |
+
for t in group_events normalize gettext xgettext; do
|
| 211 |
+
printf '// stub\n' > "$_download_dir/fuzz/fuzz_targets/$t.rs"
|
| 212 |
+
done
|
| 213 |
+
|
| 214 |
+
# ------------------------------------------------------------------ lockfile
|
| 215 |
+
# Embed the committed Cargo.lock so the offline build's --locked resolution
|
| 216 |
+
# matches exactly. DO NOT EDIT between the markers.
|
| 217 |
+
cat > "$_download_dir/Cargo.lock" <<'LOCKEOF'
|
| 218 |
+
# This file is automatically @generated by Cargo.
|
| 219 |
+
# It is not intended for manual editing.
|
| 220 |
+
version = 4
|
| 221 |
+
|
| 222 |
+
[[package]]
|
| 223 |
+
name = "adler"
|
| 224 |
+
version = "1.0.2"
|
| 225 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 226 |
+
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
| 227 |
+
|
| 228 |
+
[[package]]
|
| 229 |
+
name = "aho-corasick"
|
| 230 |
+
version = "1.1.3"
|
| 231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 232 |
+
checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
|
| 233 |
+
dependencies = [
|
| 234 |
+
"memchr",
|
| 235 |
+
]
|
| 236 |
+
|
| 237 |
+
[[package]]
|
| 238 |
+
name = "android_system_properties"
|
| 239 |
+
version = "0.1.5"
|
| 240 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 241 |
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
| 242 |
+
dependencies = [
|
| 243 |
+
"libc",
|
| 244 |
+
]
|
| 245 |
+
|
| 246 |
+
[[package]]
|
| 247 |
+
name = "anstream"
|
| 248 |
+
version = "1.0.0"
|
| 249 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 250 |
+
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
| 251 |
+
dependencies = [
|
| 252 |
+
"anstyle",
|
| 253 |
+
"anstyle-parse",
|
| 254 |
+
"anstyle-query",
|
| 255 |
+
"anstyle-wincon",
|
| 256 |
+
"colorchoice",
|
| 257 |
+
"is_terminal_polyfill",
|
| 258 |
+
"utf8parse",
|
| 259 |
+
]
|
| 260 |
+
|
| 261 |
+
[[package]]
|
| 262 |
+
name = "anstyle"
|
| 263 |
+
version = "1.0.14"
|
| 264 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 265 |
+
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
| 266 |
+
|
| 267 |
+
[[package]]
|
| 268 |
+
name = "anstyle-parse"
|
| 269 |
+
version = "1.0.0"
|
| 270 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 271 |
+
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
| 272 |
+
dependencies = [
|
| 273 |
+
"utf8parse",
|
| 274 |
+
]
|
| 275 |
+
|
| 276 |
+
[[package]]
|
| 277 |
+
name = "anstyle-query"
|
| 278 |
+
version = "1.0.3"
|
| 279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 280 |
+
checksum = "a64c907d4e79225ac72e2a354c9ce84d50ebb4586dee56c82b3ee73004f537f5"
|
| 281 |
+
dependencies = [
|
| 282 |
+
"windows-sys 0.52.0",
|
| 283 |
+
]
|
| 284 |
+
|
| 285 |
+
[[package]]
|
| 286 |
+
name = "anstyle-wincon"
|
| 287 |
+
version = "3.0.11"
|
| 288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 289 |
+
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
| 290 |
+
dependencies = [
|
| 291 |
+
"anstyle",
|
| 292 |
+
"once_cell_polyfill",
|
| 293 |
+
"windows-sys 0.61.1",
|
| 294 |
+
]
|
| 295 |
+
|
| 296 |
+
[[package]]
|
| 297 |
+
name = "anyhow"
|
| 298 |
+
version = "1.0.102"
|
| 299 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 300 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 301 |
+
|
| 302 |
+
[[package]]
|
| 303 |
+
name = "arbitrary"
|
| 304 |
+
version = "1.4.2"
|
| 305 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 306 |
+
checksum = "c3d036a3c4ab069c7b410a2ce876bd74808d2d0888a82667669f8e783a898bf1"
|
| 307 |
+
dependencies = [
|
| 308 |
+
"derive_arbitrary",
|
| 309 |
+
]
|
| 310 |
+
|
| 311 |
+
[[package]]
|
| 312 |
+
name = "autocfg"
|
| 313 |
+
version = "1.3.0"
|
| 314 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 315 |
+
checksum = "0c4b4d0bd25bd0b74681c0ad21497610ce1b7c91b1022cd21c80c6fbdd9476b0"
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "bincode"
|
| 319 |
+
version = "1.3.3"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "b1f45e9417d87227c7a56d22e471c6206462cba514c7590c09aff4cf6d1ddcad"
|
| 322 |
+
dependencies = [
|
| 323 |
+
"serde",
|
| 324 |
+
]
|
| 325 |
+
|
| 326 |
+
[[package]]
|
| 327 |
+
name = "bit-set"
|
| 328 |
+
version = "0.8.0"
|
| 329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 330 |
+
checksum = "08807e080ed7f9d5433fa9b275196cfc35414f66a0c79d864dc51a0d825231a3"
|
| 331 |
+
dependencies = [
|
| 332 |
+
"bit-vec",
|
| 333 |
+
]
|
| 334 |
+
|
| 335 |
+
[[package]]
|
| 336 |
+
name = "bit-vec"
|
| 337 |
+
version = "0.8.0"
|
| 338 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 339 |
+
checksum = "5e764a1d40d510daf35e07be9eb06e75770908c27d411ee6c92109c9840eaaf7"
|
| 340 |
+
|
| 341 |
+
[[package]]
|
| 342 |
+
name = "bitflags"
|
| 343 |
+
version = "2.5.0"
|
| 344 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 345 |
+
checksum = "cf4b9d6a944f767f8e5e0db018570623c85f3d925ac718db4e06d0187adb21c1"
|
| 346 |
+
|
| 347 |
+
[[package]]
|
| 348 |
+
name = "block-buffer"
|
| 349 |
+
version = "0.10.4"
|
| 350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 351 |
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
| 352 |
+
dependencies = [
|
| 353 |
+
"generic-array",
|
| 354 |
+
]
|
| 355 |
+
|
| 356 |
+
[[package]]
|
| 357 |
+
name = "bstr"
|
| 358 |
+
version = "1.9.1"
|
| 359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 360 |
+
checksum = "05efc5cfd9110c8416e471df0e96702d58690178e206e61b7173706673c93706"
|
| 361 |
+
dependencies = [
|
| 362 |
+
"memchr",
|
| 363 |
+
"serde",
|
| 364 |
+
]
|
| 365 |
+
|
| 366 |
+
[[package]]
|
| 367 |
+
name = "bumpalo"
|
| 368 |
+
version = "3.16.0"
|
| 369 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 370 |
+
checksum = "79296716171880943b8470b5f8d03aa55eb2e645a4874bdbb28adb49162e012c"
|
| 371 |
+
|
| 372 |
+
[[package]]
|
| 373 |
+
name = "cc"
|
| 374 |
+
version = "1.0.98"
|
| 375 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 376 |
+
checksum = "41c270e7540d725e65ac7f1b212ac8ce349719624d7bcff99f8e2e488e8cf03f"
|
| 377 |
+
dependencies = [
|
| 378 |
+
"jobserver",
|
| 379 |
+
"libc",
|
| 380 |
+
"once_cell",
|
| 381 |
+
]
|
| 382 |
+
|
| 383 |
+
[[package]]
|
| 384 |
+
name = "cfg-if"
|
| 385 |
+
version = "1.0.0"
|
| 386 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 387 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 388 |
+
|
| 389 |
+
[[package]]
|
| 390 |
+
name = "chrono"
|
| 391 |
+
version = "0.4.44"
|
| 392 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 393 |
+
checksum = "c673075a2e0e5f4a1dde27ce9dee1ea4558c7ffe648f576438a20ca1d2acc4b0"
|
| 394 |
+
dependencies = [
|
| 395 |
+
"iana-time-zone",
|
| 396 |
+
"js-sys",
|
| 397 |
+
"num-traits",
|
| 398 |
+
"wasm-bindgen",
|
| 399 |
+
"windows-link",
|
| 400 |
+
]
|
| 401 |
+
|
| 402 |
+
[[package]]
|
| 403 |
+
name = "chrono-tz"
|
| 404 |
+
version = "0.9.0"
|
| 405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 406 |
+
checksum = "93698b29de5e97ad0ae26447b344c482a7284c737d9ddc5f9e52b74a336671bb"
|
| 407 |
+
dependencies = [
|
| 408 |
+
"chrono",
|
| 409 |
+
"chrono-tz-build",
|
| 410 |
+
"phf 0.11.2",
|
| 411 |
+
]
|
| 412 |
+
|
| 413 |
+
[[package]]
|
| 414 |
+
name = "chrono-tz-build"
|
| 415 |
+
version = "0.3.0"
|
| 416 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 417 |
+
checksum = "0c088aee841df9c3041febbb73934cfc39708749bf96dc827e3359cd39ef11b1"
|
| 418 |
+
dependencies = [
|
| 419 |
+
"parse-zoneinfo",
|
| 420 |
+
"phf 0.11.2",
|
| 421 |
+
"phf_codegen 0.11.2",
|
| 422 |
+
]
|
| 423 |
+
|
| 424 |
+
[[package]]
|
| 425 |
+
name = "clap"
|
| 426 |
+
version = "4.6.1"
|
| 427 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 428 |
+
checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
|
| 429 |
+
dependencies = [
|
| 430 |
+
"clap_builder",
|
| 431 |
+
"clap_derive",
|
| 432 |
+
]
|
| 433 |
+
|
| 434 |
+
[[package]]
|
| 435 |
+
name = "clap_builder"
|
| 436 |
+
version = "4.6.0"
|
| 437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 438 |
+
checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
|
| 439 |
+
dependencies = [
|
| 440 |
+
"anstream",
|
| 441 |
+
"anstyle",
|
| 442 |
+
"clap_lex",
|
| 443 |
+
"strsim",
|
| 444 |
+
]
|
| 445 |
+
|
| 446 |
+
[[package]]
|
| 447 |
+
name = "clap_derive"
|
| 448 |
+
version = "4.6.1"
|
| 449 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 450 |
+
checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
|
| 451 |
+
dependencies = [
|
| 452 |
+
"heck",
|
| 453 |
+
"proc-macro2",
|
| 454 |
+
"quote",
|
| 455 |
+
"syn",
|
| 456 |
+
]
|
| 457 |
+
|
| 458 |
+
[[package]]
|
| 459 |
+
name = "clap_lex"
|
| 460 |
+
version = "1.0.0"
|
| 461 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 462 |
+
checksum = "3a822ea5bc7590f9d40f1ba12c0dc3c2760f3482c6984db1573ad11031420831"
|
| 463 |
+
|
| 464 |
+
[[package]]
|
| 465 |
+
name = "colorchoice"
|
| 466 |
+
version = "1.0.1"
|
| 467 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 468 |
+
checksum = "0b6a852b24ab71dffc585bcb46eaf7959d175cb865a7152e35b348d1b2960422"
|
| 469 |
+
|
| 470 |
+
[[package]]
|
| 471 |
+
name = "concat-string"
|
| 472 |
+
version = "1.0.1"
|
| 473 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 474 |
+
checksum = "7439becb5fafc780b6f4de382b1a7a3e70234afe783854a4702ee8adbb838609"
|
| 475 |
+
|
| 476 |
+
[[package]]
|
| 477 |
+
name = "core-foundation-sys"
|
| 478 |
+
version = "0.8.6"
|
| 479 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 480 |
+
checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f"
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "cpufeatures"
|
| 484 |
+
version = "0.2.12"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "53fe5e26ff1b7aef8bca9c6080520cfb8d9333c7568e1829cef191a9723e5504"
|
| 487 |
+
dependencies = [
|
| 488 |
+
"libc",
|
| 489 |
+
]
|
| 490 |
+
|
| 491 |
+
[[package]]
|
| 492 |
+
name = "crc32fast"
|
| 493 |
+
version = "1.4.2"
|
| 494 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 495 |
+
checksum = "a97769d94ddab943e4510d138150169a2758b5ef3eb191a9ee688de3e23ef7b3"
|
| 496 |
+
dependencies = [
|
| 497 |
+
"cfg-if",
|
| 498 |
+
]
|
| 499 |
+
|
| 500 |
+
[[package]]
|
| 501 |
+
name = "crossbeam-deque"
|
| 502 |
+
version = "0.8.5"
|
| 503 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 504 |
+
checksum = "613f8cc01fe9cf1a3eb3d7f488fd2fa8388403e97039e2f73692932e291a770d"
|
| 505 |
+
dependencies = [
|
| 506 |
+
"crossbeam-epoch",
|
| 507 |
+
"crossbeam-utils",
|
| 508 |
+
]
|
| 509 |
+
|
| 510 |
+
[[package]]
|
| 511 |
+
name = "crossbeam-epoch"
|
| 512 |
+
version = "0.9.18"
|
| 513 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 514 |
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
| 515 |
+
dependencies = [
|
| 516 |
+
"crossbeam-utils",
|
| 517 |
+
]
|
| 518 |
+
|
| 519 |
+
[[package]]
|
| 520 |
+
name = "crossbeam-utils"
|
| 521 |
+
version = "0.8.20"
|
| 522 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 523 |
+
checksum = "22ec99545bb0ed0ea7bb9b8e1e9122ea386ff8a48c0922e43f36d45ab09e0e80"
|
| 524 |
+
|
| 525 |
+
[[package]]
|
| 526 |
+
name = "crypto-common"
|
| 527 |
+
version = "0.1.6"
|
| 528 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 529 |
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
| 530 |
+
dependencies = [
|
| 531 |
+
"generic-array",
|
| 532 |
+
"typenum",
|
| 533 |
+
]
|
| 534 |
+
|
| 535 |
+
[[package]]
|
| 536 |
+
name = "darling"
|
| 537 |
+
version = "0.20.11"
|
| 538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 539 |
+
checksum = "fc7f46116c46ff9ab3eb1597a45688b6715c6e628b5c133e288e709a29bcb4ee"
|
| 540 |
+
dependencies = [
|
| 541 |
+
"darling_core",
|
| 542 |
+
"darling_macro",
|
| 543 |
+
]
|
| 544 |
+
|
| 545 |
+
[[package]]
|
| 546 |
+
name = "darling_core"
|
| 547 |
+
version = "0.20.11"
|
| 548 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 549 |
+
checksum = "0d00b9596d185e565c2207a0b01f8bd1a135483d02d9b7b0a54b11da8d53412e"
|
| 550 |
+
dependencies = [
|
| 551 |
+
"fnv",
|
| 552 |
+
"ident_case",
|
| 553 |
+
"proc-macro2",
|
| 554 |
+
"quote",
|
| 555 |
+
"strsim",
|
| 556 |
+
"syn",
|
| 557 |
+
]
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "darling_macro"
|
| 561 |
+
version = "0.20.11"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "fc34b93ccb385b40dc71c6fceac4b2ad23662c7eeb248cf10d529b7e055b6ead"
|
| 564 |
+
dependencies = [
|
| 565 |
+
"darling_core",
|
| 566 |
+
"quote",
|
| 567 |
+
"syn",
|
| 568 |
+
]
|
| 569 |
+
|
| 570 |
+
[[package]]
|
| 571 |
+
name = "dateparser"
|
| 572 |
+
version = "0.3.1"
|
| 573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 574 |
+
checksum = "fa7c3b5f25f753dcbf8f77a535166e08cba151529b6df9be966984053a68cf39"
|
| 575 |
+
dependencies = [
|
| 576 |
+
"anyhow",
|
| 577 |
+
"chrono",
|
| 578 |
+
"regex",
|
| 579 |
+
]
|
| 580 |
+
|
| 581 |
+
[[package]]
|
| 582 |
+
name = "derive_arbitrary"
|
| 583 |
+
version = "1.4.1"
|
| 584 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 585 |
+
checksum = "30542c1ad912e0e3d22a1935c290e12e8a29d704a420177a31faad4a601a0800"
|
| 586 |
+
dependencies = [
|
| 587 |
+
"proc-macro2",
|
| 588 |
+
"quote",
|
| 589 |
+
"syn",
|
| 590 |
+
]
|
| 591 |
+
|
| 592 |
+
[[package]]
|
| 593 |
+
name = "derive_builder"
|
| 594 |
+
version = "0.20.2"
|
| 595 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 596 |
+
checksum = "507dfb09ea8b7fa618fcf76e953f4f5e192547945816d5358edffe39f6f94947"
|
| 597 |
+
dependencies = [
|
| 598 |
+
"derive_builder_macro",
|
| 599 |
+
]
|
| 600 |
+
|
| 601 |
+
[[package]]
|
| 602 |
+
name = "derive_builder_core"
|
| 603 |
+
version = "0.20.2"
|
| 604 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 605 |
+
checksum = "2d5bcf7b024d6835cfb3d473887cd966994907effbe9227e8c8219824d06c4e8"
|
| 606 |
+
dependencies = [
|
| 607 |
+
"darling",
|
| 608 |
+
"proc-macro2",
|
| 609 |
+
"quote",
|
| 610 |
+
"syn",
|
| 611 |
+
]
|
| 612 |
+
|
| 613 |
+
[[package]]
|
| 614 |
+
name = "derive_builder_macro"
|
| 615 |
+
version = "0.20.2"
|
| 616 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 617 |
+
checksum = "ab63b0e2bf4d5928aff72e83a7dace85d7bba5fe12dcc3c5a572d78caffd3f3c"
|
| 618 |
+
dependencies = [
|
| 619 |
+
"derive_builder_core",
|
| 620 |
+
"syn",
|
| 621 |
+
]
|
| 622 |
+
|
| 623 |
+
[[package]]
|
| 624 |
+
name = "deunicode"
|
| 625 |
+
version = "1.6.0"
|
| 626 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 627 |
+
checksum = "339544cc9e2c4dc3fc7149fd630c5f22263a4fdf18a98afd0075784968b5cf00"
|
| 628 |
+
|
| 629 |
+
[[package]]
|
| 630 |
+
name = "diff"
|
| 631 |
+
version = "0.1.13"
|
| 632 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 633 |
+
checksum = "56254986775e3233ffa9c4d7d3faaf6d36a2c09d30b20687e9f88bc8bafc16c8"
|
| 634 |
+
|
| 635 |
+
[[package]]
|
| 636 |
+
name = "digest"
|
| 637 |
+
version = "0.10.7"
|
| 638 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 639 |
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
| 640 |
+
dependencies = [
|
| 641 |
+
"block-buffer",
|
| 642 |
+
"crypto-common",
|
| 643 |
+
]
|
| 644 |
+
|
| 645 |
+
[[package]]
|
| 646 |
+
name = "ego-tree"
|
| 647 |
+
version = "0.10.0"
|
| 648 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 649 |
+
checksum = "b2972feb8dffe7bc8c5463b1dacda1b0dfbed3710e50f977d965429692d74cd8"
|
| 650 |
+
|
| 651 |
+
[[package]]
|
| 652 |
+
name = "equivalent"
|
| 653 |
+
version = "1.0.2"
|
| 654 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 655 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 656 |
+
|
| 657 |
+
[[package]]
|
| 658 |
+
name = "errno"
|
| 659 |
+
version = "0.3.10"
|
| 660 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 661 |
+
checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
|
| 662 |
+
dependencies = [
|
| 663 |
+
"libc",
|
| 664 |
+
"windows-sys 0.59.0",
|
| 665 |
+
]
|
| 666 |
+
|
| 667 |
+
[[package]]
|
| 668 |
+
name = "fancy-regex"
|
| 669 |
+
version = "0.16.2"
|
| 670 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 671 |
+
checksum = "998b056554fbe42e03ae0e152895cd1a7e1002aec800fdc6635d20270260c46f"
|
| 672 |
+
dependencies = [
|
| 673 |
+
"bit-set",
|
| 674 |
+
"regex-automata",
|
| 675 |
+
"regex-syntax",
|
| 676 |
+
]
|
| 677 |
+
|
| 678 |
+
[[package]]
|
| 679 |
+
name = "fastrand"
|
| 680 |
+
version = "2.1.1"
|
| 681 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 682 |
+
checksum = "e8c02a5121d4ea3eb16a80748c74f5549a5665e4c21333c6098f283870fbdea6"
|
| 683 |
+
|
| 684 |
+
[[package]]
|
| 685 |
+
name = "flate2"
|
| 686 |
+
version = "1.0.30"
|
| 687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 688 |
+
checksum = "5f54427cfd1c7829e2a139fcefea601bf088ebca651d2bf53ebc600eac295dae"
|
| 689 |
+
dependencies = [
|
| 690 |
+
"crc32fast",
|
| 691 |
+
"miniz_oxide",
|
| 692 |
+
]
|
| 693 |
+
|
| 694 |
+
[[package]]
|
| 695 |
+
name = "fnv"
|
| 696 |
+
version = "1.0.7"
|
| 697 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 698 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 699 |
+
|
| 700 |
+
[[package]]
|
| 701 |
+
name = "font-awesome-as-a-crate"
|
| 702 |
+
version = "0.3.0"
|
| 703 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 704 |
+
checksum = "932dcfbd51320af5f27f1ba02d2e567dec332cac7d2c221ba45d8e767264c4dc"
|
| 705 |
+
|
| 706 |
+
[[package]]
|
| 707 |
+
name = "futf"
|
| 708 |
+
version = "0.1.5"
|
| 709 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 710 |
+
checksum = "df420e2e84819663797d1ec6544b13c5be84629e7bb00dc960d6917db2987843"
|
| 711 |
+
dependencies = [
|
| 712 |
+
"mac",
|
| 713 |
+
"new_debug_unreachable",
|
| 714 |
+
]
|
| 715 |
+
|
| 716 |
+
[[package]]
|
| 717 |
+
name = "generic-array"
|
| 718 |
+
version = "0.14.7"
|
| 719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 720 |
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
| 721 |
+
dependencies = [
|
| 722 |
+
"typenum",
|
| 723 |
+
"version_check",
|
| 724 |
+
]
|
| 725 |
+
|
| 726 |
+
[[package]]
|
| 727 |
+
name = "getrandom"
|
| 728 |
+
version = "0.2.15"
|
| 729 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 730 |
+
checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
|
| 731 |
+
dependencies = [
|
| 732 |
+
"cfg-if",
|
| 733 |
+
"libc",
|
| 734 |
+
"wasi 0.11.0+wasi-snapshot-preview1",
|
| 735 |
+
]
|
| 736 |
+
|
| 737 |
+
[[package]]
|
| 738 |
+
name = "getrandom"
|
| 739 |
+
version = "0.3.1"
|
| 740 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 741 |
+
checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
|
| 742 |
+
dependencies = [
|
| 743 |
+
"cfg-if",
|
| 744 |
+
"libc",
|
| 745 |
+
"wasi 0.13.3+wasi-0.2.2",
|
| 746 |
+
"windows-targets",
|
| 747 |
+
]
|
| 748 |
+
|
| 749 |
+
[[package]]
|
| 750 |
+
name = "globset"
|
| 751 |
+
version = "0.4.14"
|
| 752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 753 |
+
checksum = "57da3b9b5b85bd66f31093f8c408b90a74431672542466497dcbdfdc02034be1"
|
| 754 |
+
dependencies = [
|
| 755 |
+
"aho-corasick",
|
| 756 |
+
"bstr",
|
| 757 |
+
"log",
|
| 758 |
+
"regex-automata",
|
| 759 |
+
"regex-syntax",
|
| 760 |
+
]
|
| 761 |
+
|
| 762 |
+
[[package]]
|
| 763 |
+
name = "globwalk"
|
| 764 |
+
version = "0.9.1"
|
| 765 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 766 |
+
checksum = "0bf760ebf69878d9fd8f110c89703d90ce35095324d1f1edcb595c63945ee757"
|
| 767 |
+
dependencies = [
|
| 768 |
+
"bitflags",
|
| 769 |
+
"ignore",
|
| 770 |
+
"walkdir",
|
| 771 |
+
]
|
| 772 |
+
|
| 773 |
+
[[package]]
|
| 774 |
+
name = "handlebars"
|
| 775 |
+
version = "6.3.2"
|
| 776 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 777 |
+
checksum = "759e2d5aea3287cb1190c8ec394f42866cb5bf74fcbf213f354e3c856ea26098"
|
| 778 |
+
dependencies = [
|
| 779 |
+
"derive_builder",
|
| 780 |
+
"log",
|
| 781 |
+
"num-order",
|
| 782 |
+
"pest",
|
| 783 |
+
"pest_derive",
|
| 784 |
+
"serde",
|
| 785 |
+
"serde_json",
|
| 786 |
+
"thiserror 2.0.17",
|
| 787 |
+
]
|
| 788 |
+
|
| 789 |
+
[[package]]
|
| 790 |
+
name = "hashbrown"
|
| 791 |
+
version = "0.16.1"
|
| 792 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 793 |
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "heck"
|
| 797 |
+
version = "0.5.0"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "hex"
|
| 803 |
+
version = "0.4.3"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "html5ever"
|
| 809 |
+
version = "0.36.1"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "6452c4751a24e1b99c3260d505eaeee76a050573e61f30ac2c924ddc7236f01e"
|
| 812 |
+
dependencies = [
|
| 813 |
+
"log",
|
| 814 |
+
"markup5ever",
|
| 815 |
+
]
|
| 816 |
+
|
| 817 |
+
[[package]]
|
| 818 |
+
name = "humansize"
|
| 819 |
+
version = "2.1.3"
|
| 820 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 821 |
+
checksum = "6cb51c9a029ddc91b07a787f1d86b53ccfa49b0e86688c946ebe8d3555685dd7"
|
| 822 |
+
dependencies = [
|
| 823 |
+
"libm",
|
| 824 |
+
]
|
| 825 |
+
|
| 826 |
+
[[package]]
|
| 827 |
+
name = "i18n-report"
|
| 828 |
+
version = "0.2.0"
|
| 829 |
+
dependencies = [
|
| 830 |
+
"anyhow",
|
| 831 |
+
"clap",
|
| 832 |
+
"polib",
|
| 833 |
+
"tera",
|
| 834 |
+
]
|
| 835 |
+
|
| 836 |
+
[[package]]
|
| 837 |
+
name = "iana-time-zone"
|
| 838 |
+
version = "0.1.60"
|
| 839 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 840 |
+
checksum = "e7ffbb5a1b541ea2561f8c41c087286cc091e21e556a4f09a8f6cbf17b69b141"
|
| 841 |
+
dependencies = [
|
| 842 |
+
"android_system_properties",
|
| 843 |
+
"core-foundation-sys",
|
| 844 |
+
"iana-time-zone-haiku",
|
| 845 |
+
"js-sys",
|
| 846 |
+
"wasm-bindgen",
|
| 847 |
+
"windows-core",
|
| 848 |
+
]
|
| 849 |
+
|
| 850 |
+
[[package]]
|
| 851 |
+
name = "iana-time-zone-haiku"
|
| 852 |
+
version = "0.1.2"
|
| 853 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 854 |
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
| 855 |
+
dependencies = [
|
| 856 |
+
"cc",
|
| 857 |
+
]
|
| 858 |
+
|
| 859 |
+
[[package]]
|
| 860 |
+
name = "ident_case"
|
| 861 |
+
version = "1.0.1"
|
| 862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 863 |
+
checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
|
| 864 |
+
|
| 865 |
+
[[package]]
|
| 866 |
+
name = "ignore"
|
| 867 |
+
version = "0.4.22"
|
| 868 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 869 |
+
checksum = "b46810df39e66e925525d6e38ce1e7f6e1d208f72dc39757880fcb66e2c58af1"
|
| 870 |
+
dependencies = [
|
| 871 |
+
"crossbeam-deque",
|
| 872 |
+
"globset",
|
| 873 |
+
"log",
|
| 874 |
+
"memchr",
|
| 875 |
+
"regex-automata",
|
| 876 |
+
"same-file",
|
| 877 |
+
"walkdir",
|
| 878 |
+
"winapi-util",
|
| 879 |
+
]
|
| 880 |
+
|
| 881 |
+
[[package]]
|
| 882 |
+
name = "indexmap"
|
| 883 |
+
version = "2.13.0"
|
| 884 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 885 |
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
| 886 |
+
dependencies = [
|
| 887 |
+
"equivalent",
|
| 888 |
+
"hashbrown",
|
| 889 |
+
]
|
| 890 |
+
|
| 891 |
+
[[package]]
|
| 892 |
+
name = "is_terminal_polyfill"
|
| 893 |
+
version = "1.70.0"
|
| 894 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 895 |
+
checksum = "f8478577c03552c21db0e2724ffb8986a5ce7af88107e6be5d2ee6e158c12800"
|
| 896 |
+
|
| 897 |
+
[[package]]
|
| 898 |
+
name = "itoa"
|
| 899 |
+
version = "1.0.11"
|
| 900 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 901 |
+
checksum = "49f1f14873335454500d59611f1cf4a4b0f786f9ac11f4312a78e4cf2566695b"
|
| 902 |
+
|
| 903 |
+
[[package]]
|
| 904 |
+
name = "jobserver"
|
| 905 |
+
version = "0.1.31"
|
| 906 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 907 |
+
checksum = "d2b099aaa34a9751c5bf0878add70444e1ed2dd73f347be99003d4577277de6e"
|
| 908 |
+
dependencies = [
|
| 909 |
+
"libc",
|
| 910 |
+
]
|
| 911 |
+
|
| 912 |
+
[[package]]
|
| 913 |
+
name = "js-sys"
|
| 914 |
+
version = "0.3.69"
|
| 915 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 916 |
+
checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d"
|
| 917 |
+
dependencies = [
|
| 918 |
+
"wasm-bindgen",
|
| 919 |
+
]
|
| 920 |
+
|
| 921 |
+
[[package]]
|
| 922 |
+
name = "lazy_static"
|
| 923 |
+
version = "1.4.0"
|
| 924 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 925 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 926 |
+
|
| 927 |
+
[[package]]
|
| 928 |
+
name = "libc"
|
| 929 |
+
version = "0.2.182"
|
| 930 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 931 |
+
checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
|
| 932 |
+
|
| 933 |
+
[[package]]
|
| 934 |
+
name = "libfuzzer-sys"
|
| 935 |
+
version = "0.4.12"
|
| 936 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 937 |
+
checksum = "f12a681b7dd8ce12bff52488013ba614b869148d54dd79836ab85aafdd53f08d"
|
| 938 |
+
dependencies = [
|
| 939 |
+
"arbitrary",
|
| 940 |
+
"cc",
|
| 941 |
+
]
|
| 942 |
+
|
| 943 |
+
[[package]]
|
| 944 |
+
name = "libm"
|
| 945 |
+
version = "0.2.8"
|
| 946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 947 |
+
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"
|
| 948 |
+
|
| 949 |
+
[[package]]
|
| 950 |
+
name = "linereader"
|
| 951 |
+
version = "0.4.0"
|
| 952 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 953 |
+
checksum = "d921fea6860357575519aca014c6e22470585accdd543b370c404a8a72d0dd1d"
|
| 954 |
+
dependencies = [
|
| 955 |
+
"memchr",
|
| 956 |
+
]
|
| 957 |
+
|
| 958 |
+
[[package]]
|
| 959 |
+
name = "linux-raw-sys"
|
| 960 |
+
version = "0.12.1"
|
| 961 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 962 |
+
checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
|
| 963 |
+
|
| 964 |
+
[[package]]
|
| 965 |
+
name = "lock_api"
|
| 966 |
+
version = "0.4.14"
|
| 967 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 968 |
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
| 969 |
+
dependencies = [
|
| 970 |
+
"scopeguard",
|
| 971 |
+
]
|
| 972 |
+
|
| 973 |
+
[[package]]
|
| 974 |
+
name = "log"
|
| 975 |
+
version = "0.4.21"
|
| 976 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 977 |
+
checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c"
|
| 978 |
+
|
| 979 |
+
[[package]]
|
| 980 |
+
name = "mac"
|
| 981 |
+
version = "0.1.1"
|
| 982 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 983 |
+
checksum = "c41e0c4fef86961ac6d6f8a82609f55f31b05e4fce149ac5710e439df7619ba4"
|
| 984 |
+
|
| 985 |
+
[[package]]
|
| 986 |
+
name = "markup5ever"
|
| 987 |
+
version = "0.36.1"
|
| 988 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 989 |
+
checksum = "6c3294c4d74d0742910f8c7b466f44dda9eb2d5742c1e430138df290a1e8451c"
|
| 990 |
+
dependencies = [
|
| 991 |
+
"log",
|
| 992 |
+
"tendril",
|
| 993 |
+
"web_atoms",
|
| 994 |
+
]
|
| 995 |
+
|
| 996 |
+
[[package]]
|
| 997 |
+
name = "mdbook-core"
|
| 998 |
+
version = "0.5.3"
|
| 999 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1000 |
+
checksum = "6fc1c4da7fd9e2e412f3891428f9468fab890ed159723ed0892bb85a049ac1c1"
|
| 1001 |
+
dependencies = [
|
| 1002 |
+
"anyhow",
|
| 1003 |
+
"regex",
|
| 1004 |
+
"serde",
|
| 1005 |
+
"serde_json",
|
| 1006 |
+
"toml 1.1.2+spec-1.1.0",
|
| 1007 |
+
"tracing",
|
| 1008 |
+
]
|
| 1009 |
+
|
| 1010 |
+
[[package]]
|
| 1011 |
+
name = "mdbook-driver"
|
| 1012 |
+
version = "0.5.2"
|
| 1013 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1014 |
+
checksum = "a229930b29a9908560883e1f386eae25d8a971d259a80f49916a50627f04a42d"
|
| 1015 |
+
dependencies = [
|
| 1016 |
+
"anyhow",
|
| 1017 |
+
"indexmap",
|
| 1018 |
+
"mdbook-core",
|
| 1019 |
+
"mdbook-html",
|
| 1020 |
+
"mdbook-markdown",
|
| 1021 |
+
"mdbook-preprocessor",
|
| 1022 |
+
"mdbook-renderer",
|
| 1023 |
+
"mdbook-summary",
|
| 1024 |
+
"regex",
|
| 1025 |
+
"serde",
|
| 1026 |
+
"serde_json",
|
| 1027 |
+
"shlex",
|
| 1028 |
+
"tempfile",
|
| 1029 |
+
"toml 0.9.8",
|
| 1030 |
+
"topological-sort",
|
| 1031 |
+
"tracing",
|
| 1032 |
+
]
|
| 1033 |
+
|
| 1034 |
+
[[package]]
|
| 1035 |
+
name = "mdbook-html"
|
| 1036 |
+
version = "0.5.2"
|
| 1037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1038 |
+
checksum = "9dee80c03c65e3212fb528b8c9be5568a6a85cf795d03cf9fd6ba39ad52069ca"
|
| 1039 |
+
dependencies = [
|
| 1040 |
+
"anyhow",
|
| 1041 |
+
"ego-tree",
|
| 1042 |
+
"font-awesome-as-a-crate",
|
| 1043 |
+
"handlebars",
|
| 1044 |
+
"hex",
|
| 1045 |
+
"html5ever",
|
| 1046 |
+
"indexmap",
|
| 1047 |
+
"mdbook-core",
|
| 1048 |
+
"mdbook-markdown",
|
| 1049 |
+
"mdbook-renderer",
|
| 1050 |
+
"pulldown-cmark",
|
| 1051 |
+
"regex",
|
| 1052 |
+
"serde",
|
| 1053 |
+
"serde_json",
|
| 1054 |
+
"sha2",
|
| 1055 |
+
"tracing",
|
| 1056 |
+
]
|
| 1057 |
+
|
| 1058 |
+
[[package]]
|
| 1059 |
+
name = "mdbook-i18n-helpers"
|
| 1060 |
+
version = "0.4.0"
|
| 1061 |
+
dependencies = [
|
| 1062 |
+
"anyhow",
|
| 1063 |
+
"chrono",
|
| 1064 |
+
"dateparser",
|
| 1065 |
+
"mdbook-driver",
|
| 1066 |
+
"mdbook-preprocessor",
|
| 1067 |
+
"mdbook-renderer",
|
| 1068 |
+
"polib",
|
| 1069 |
+
"pretty_assertions",
|
| 1070 |
+
"pulldown-cmark",
|
| 1071 |
+
"pulldown-cmark-to-cmark",
|
| 1072 |
+
"regex",
|
| 1073 |
+
"semver",
|
| 1074 |
+
"serde_json",
|
| 1075 |
+
"syntect",
|
| 1076 |
+
"tempfile",
|
| 1077 |
+
"textwrap",
|
| 1078 |
+
]
|
| 1079 |
+
|
| 1080 |
+
[[package]]
|
| 1081 |
+
name = "mdbook-i18n-helpers-fuzz"
|
| 1082 |
+
version = "0.0.0"
|
| 1083 |
+
dependencies = [
|
| 1084 |
+
"arbitrary",
|
| 1085 |
+
"libfuzzer-sys",
|
| 1086 |
+
"mdbook-i18n-helpers",
|
| 1087 |
+
"mdbook-preprocessor",
|
| 1088 |
+
"mdbook-renderer",
|
| 1089 |
+
"polib",
|
| 1090 |
+
"pretty_assertions",
|
| 1091 |
+
]
|
| 1092 |
+
|
| 1093 |
+
[[package]]
|
| 1094 |
+
name = "mdbook-markdown"
|
| 1095 |
+
version = "0.5.2"
|
| 1096 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1097 |
+
checksum = "07c41bf35212f5d8b83e543aa6a4887dc5709c8489c5fb9ed00f1b51ce1a2cc6"
|
| 1098 |
+
dependencies = [
|
| 1099 |
+
"pulldown-cmark",
|
| 1100 |
+
"regex",
|
| 1101 |
+
"tracing",
|
| 1102 |
+
]
|
| 1103 |
+
|
| 1104 |
+
[[package]]
|
| 1105 |
+
name = "mdbook-preprocessor"
|
| 1106 |
+
version = "0.5.3"
|
| 1107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1108 |
+
checksum = "8eff7b4afaafd664a649a03b8891ad8199aef359a35b911ad6c31acab38ed209"
|
| 1109 |
+
dependencies = [
|
| 1110 |
+
"anyhow",
|
| 1111 |
+
"mdbook-core",
|
| 1112 |
+
"serde",
|
| 1113 |
+
"serde_json",
|
| 1114 |
+
]
|
| 1115 |
+
|
| 1116 |
+
[[package]]
|
| 1117 |
+
name = "mdbook-renderer"
|
| 1118 |
+
version = "0.5.3"
|
| 1119 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1120 |
+
checksum = "e607259410d53aa5cdaf5b6c1c6b3fd61f2e0f0523ebf457d34cd4f0b71e2a88"
|
| 1121 |
+
dependencies = [
|
| 1122 |
+
"anyhow",
|
| 1123 |
+
"mdbook-core",
|
| 1124 |
+
"serde",
|
| 1125 |
+
"serde_json",
|
| 1126 |
+
]
|
| 1127 |
+
|
| 1128 |
+
[[package]]
|
| 1129 |
+
name = "mdbook-summary"
|
| 1130 |
+
version = "0.5.2"
|
| 1131 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1132 |
+
checksum = "c00d85b291d67a69c92e939450390fe34d6ea418a868c8f7b42f0b300af35a7b"
|
| 1133 |
+
dependencies = [
|
| 1134 |
+
"anyhow",
|
| 1135 |
+
"mdbook-core",
|
| 1136 |
+
"memchr",
|
| 1137 |
+
"pulldown-cmark",
|
| 1138 |
+
"serde",
|
| 1139 |
+
"tracing",
|
| 1140 |
+
]
|
| 1141 |
+
|
| 1142 |
+
[[package]]
|
| 1143 |
+
name = "mdbook-tera-backend"
|
| 1144 |
+
version = "0.0.2"
|
| 1145 |
+
dependencies = [
|
| 1146 |
+
"anyhow",
|
| 1147 |
+
"mdbook-driver",
|
| 1148 |
+
"mdbook-renderer",
|
| 1149 |
+
"serde",
|
| 1150 |
+
"tempfile",
|
| 1151 |
+
"tera",
|
| 1152 |
+
]
|
| 1153 |
+
|
| 1154 |
+
[[package]]
|
| 1155 |
+
name = "memchr"
|
| 1156 |
+
version = "2.7.6"
|
| 1157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1158 |
+
checksum = "f52b00d39961fc5b2736ea853c9cc86238e165017a493d1d5c8eac6bdc4cc273"
|
| 1159 |
+
|
| 1160 |
+
[[package]]
|
| 1161 |
+
name = "miniz_oxide"
|
| 1162 |
+
version = "0.7.3"
|
| 1163 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1164 |
+
checksum = "87dfd01fe195c66b572b37921ad8803d010623c0aca821bea2302239d155cdae"
|
| 1165 |
+
dependencies = [
|
| 1166 |
+
"adler",
|
| 1167 |
+
]
|
| 1168 |
+
|
| 1169 |
+
[[package]]
|
| 1170 |
+
name = "new_debug_unreachable"
|
| 1171 |
+
version = "1.0.6"
|
| 1172 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1173 |
+
checksum = "650eef8c711430f1a879fdd01d4745a7deea475becfb90269c06775983bbf086"
|
| 1174 |
+
|
| 1175 |
+
[[package]]
|
| 1176 |
+
name = "num-modular"
|
| 1177 |
+
version = "0.6.1"
|
| 1178 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1179 |
+
checksum = "17bb261bf36fa7d83f4c294f834e91256769097b3cb505d44831e0a179ac647f"
|
| 1180 |
+
|
| 1181 |
+
[[package]]
|
| 1182 |
+
name = "num-order"
|
| 1183 |
+
version = "1.2.0"
|
| 1184 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1185 |
+
checksum = "537b596b97c40fcf8056d153049eb22f481c17ebce72a513ec9286e4986d1bb6"
|
| 1186 |
+
dependencies = [
|
| 1187 |
+
"num-modular",
|
| 1188 |
+
]
|
| 1189 |
+
|
| 1190 |
+
[[package]]
|
| 1191 |
+
name = "num-traits"
|
| 1192 |
+
version = "0.2.19"
|
| 1193 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1194 |
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
| 1195 |
+
dependencies = [
|
| 1196 |
+
"autocfg",
|
| 1197 |
+
]
|
| 1198 |
+
|
| 1199 |
+
[[package]]
|
| 1200 |
+
name = "once_cell"
|
| 1201 |
+
version = "1.19.0"
|
| 1202 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1203 |
+
checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92"
|
| 1204 |
+
|
| 1205 |
+
[[package]]
|
| 1206 |
+
name = "once_cell_polyfill"
|
| 1207 |
+
version = "1.70.2"
|
| 1208 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1209 |
+
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
| 1210 |
+
|
| 1211 |
+
[[package]]
|
| 1212 |
+
name = "parking_lot"
|
| 1213 |
+
version = "0.12.5"
|
| 1214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1215 |
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
| 1216 |
+
dependencies = [
|
| 1217 |
+
"lock_api",
|
| 1218 |
+
"parking_lot_core",
|
| 1219 |
+
]
|
| 1220 |
+
|
| 1221 |
+
[[package]]
|
| 1222 |
+
name = "parking_lot_core"
|
| 1223 |
+
version = "0.9.12"
|
| 1224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1225 |
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
| 1226 |
+
dependencies = [
|
| 1227 |
+
"cfg-if",
|
| 1228 |
+
"libc",
|
| 1229 |
+
"redox_syscall",
|
| 1230 |
+
"smallvec",
|
| 1231 |
+
"windows-link",
|
| 1232 |
+
]
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "parse-zoneinfo"
|
| 1236 |
+
version = "0.3.1"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "1f2a05b18d44e2957b88f96ba460715e295bc1d7510468a2f3d3b44535d26c24"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"regex",
|
| 1241 |
+
]
|
| 1242 |
+
|
| 1243 |
+
[[package]]
|
| 1244 |
+
name = "percent-encoding"
|
| 1245 |
+
version = "2.3.1"
|
| 1246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1247 |
+
checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
|
| 1248 |
+
|
| 1249 |
+
[[package]]
|
| 1250 |
+
name = "pest"
|
| 1251 |
+
version = "2.7.10"
|
| 1252 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1253 |
+
checksum = "560131c633294438da9f7c4b08189194b20946c8274c6b9e38881a7874dc8ee8"
|
| 1254 |
+
dependencies = [
|
| 1255 |
+
"memchr",
|
| 1256 |
+
"thiserror 1.0.61",
|
| 1257 |
+
"ucd-trie",
|
| 1258 |
+
]
|
| 1259 |
+
|
| 1260 |
+
[[package]]
|
| 1261 |
+
name = "pest_derive"
|
| 1262 |
+
version = "2.7.10"
|
| 1263 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1264 |
+
checksum = "26293c9193fbca7b1a3bf9b79dc1e388e927e6cacaa78b4a3ab705a1d3d41459"
|
| 1265 |
+
dependencies = [
|
| 1266 |
+
"pest",
|
| 1267 |
+
"pest_generator",
|
| 1268 |
+
]
|
| 1269 |
+
|
| 1270 |
+
[[package]]
|
| 1271 |
+
name = "pest_generator"
|
| 1272 |
+
version = "2.7.10"
|
| 1273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1274 |
+
checksum = "3ec22af7d3fb470a85dd2ca96b7c577a1eb4ef6f1683a9fe9a8c16e136c04687"
|
| 1275 |
+
dependencies = [
|
| 1276 |
+
"pest",
|
| 1277 |
+
"pest_meta",
|
| 1278 |
+
"proc-macro2",
|
| 1279 |
+
"quote",
|
| 1280 |
+
"syn",
|
| 1281 |
+
]
|
| 1282 |
+
|
| 1283 |
+
[[package]]
|
| 1284 |
+
name = "pest_meta"
|
| 1285 |
+
version = "2.7.10"
|
| 1286 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1287 |
+
checksum = "d7a240022f37c361ec1878d646fc5b7d7c4d28d5946e1a80ad5a7a4f4ca0bdcd"
|
| 1288 |
+
dependencies = [
|
| 1289 |
+
"once_cell",
|
| 1290 |
+
"pest",
|
| 1291 |
+
"sha2",
|
| 1292 |
+
]
|
| 1293 |
+
|
| 1294 |
+
[[package]]
|
| 1295 |
+
name = "phf"
|
| 1296 |
+
version = "0.11.2"
|
| 1297 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1298 |
+
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
|
| 1299 |
+
dependencies = [
|
| 1300 |
+
"phf_shared 0.11.2",
|
| 1301 |
+
]
|
| 1302 |
+
|
| 1303 |
+
[[package]]
|
| 1304 |
+
name = "phf"
|
| 1305 |
+
version = "0.13.1"
|
| 1306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1307 |
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
| 1308 |
+
dependencies = [
|
| 1309 |
+
"phf_shared 0.13.1",
|
| 1310 |
+
"serde",
|
| 1311 |
+
]
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "phf_codegen"
|
| 1315 |
+
version = "0.11.2"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"phf_generator 0.11.2",
|
| 1320 |
+
"phf_shared 0.11.2",
|
| 1321 |
+
]
|
| 1322 |
+
|
| 1323 |
+
[[package]]
|
| 1324 |
+
name = "phf_codegen"
|
| 1325 |
+
version = "0.13.1"
|
| 1326 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1327 |
+
checksum = "49aa7f9d80421bca176ca8dbfebe668cc7a2684708594ec9f3c0db0805d5d6e1"
|
| 1328 |
+
dependencies = [
|
| 1329 |
+
"phf_generator 0.13.1",
|
| 1330 |
+
"phf_shared 0.13.1",
|
| 1331 |
+
]
|
| 1332 |
+
|
| 1333 |
+
[[package]]
|
| 1334 |
+
name = "phf_generator"
|
| 1335 |
+
version = "0.11.2"
|
| 1336 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1337 |
+
checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
|
| 1338 |
+
dependencies = [
|
| 1339 |
+
"phf_shared 0.11.2",
|
| 1340 |
+
"rand",
|
| 1341 |
+
]
|
| 1342 |
+
|
| 1343 |
+
[[package]]
|
| 1344 |
+
name = "phf_generator"
|
| 1345 |
+
version = "0.13.1"
|
| 1346 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1347 |
+
checksum = "135ace3a761e564ec88c03a77317a7c6b80bb7f7135ef2544dbe054243b89737"
|
| 1348 |
+
dependencies = [
|
| 1349 |
+
"fastrand",
|
| 1350 |
+
"phf_shared 0.13.1",
|
| 1351 |
+
]
|
| 1352 |
+
|
| 1353 |
+
[[package]]
|
| 1354 |
+
name = "phf_shared"
|
| 1355 |
+
version = "0.11.2"
|
| 1356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1357 |
+
checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
|
| 1358 |
+
dependencies = [
|
| 1359 |
+
"siphasher 0.3.11",
|
| 1360 |
+
]
|
| 1361 |
+
|
| 1362 |
+
[[package]]
|
| 1363 |
+
name = "phf_shared"
|
| 1364 |
+
version = "0.13.1"
|
| 1365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1366 |
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
| 1367 |
+
dependencies = [
|
| 1368 |
+
"siphasher 1.0.2",
|
| 1369 |
+
]
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "pin-project-lite"
|
| 1373 |
+
version = "0.2.16"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
|
| 1376 |
+
|
| 1377 |
+
[[package]]
|
| 1378 |
+
name = "polib"
|
| 1379 |
+
version = "0.3.0"
|
| 1380 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1381 |
+
checksum = "ee83e5a284d919e51b071969bbf2d12d6943857aab02d84c5cc449373c9f3b7b"
|
| 1382 |
+
dependencies = [
|
| 1383 |
+
"concat-string",
|
| 1384 |
+
"linereader",
|
| 1385 |
+
]
|
| 1386 |
+
|
| 1387 |
+
[[package]]
|
| 1388 |
+
name = "ppv-lite86"
|
| 1389 |
+
version = "0.2.17"
|
| 1390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1391 |
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
| 1392 |
+
|
| 1393 |
+
[[package]]
|
| 1394 |
+
name = "precomputed-hash"
|
| 1395 |
+
version = "0.1.1"
|
| 1396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1397 |
+
checksum = "925383efa346730478fb4838dbe9137d2a47675ad789c546d150a6e1dd4ab31c"
|
| 1398 |
+
|
| 1399 |
+
[[package]]
|
| 1400 |
+
name = "pretty_assertions"
|
| 1401 |
+
version = "1.4.1"
|
| 1402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1403 |
+
checksum = "3ae130e2f271fbc2ac3a40fb1d07180839cdbbe443c7a27e1e3c13c5cac0116d"
|
| 1404 |
+
dependencies = [
|
| 1405 |
+
"diff",
|
| 1406 |
+
"yansi",
|
| 1407 |
+
]
|
| 1408 |
+
|
| 1409 |
+
[[package]]
|
| 1410 |
+
name = "proc-macro2"
|
| 1411 |
+
version = "1.0.106"
|
| 1412 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1413 |
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
| 1414 |
+
dependencies = [
|
| 1415 |
+
"unicode-ident",
|
| 1416 |
+
]
|
| 1417 |
+
|
| 1418 |
+
[[package]]
|
| 1419 |
+
name = "pulldown-cmark"
|
| 1420 |
+
version = "0.13.4"
|
| 1421 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1422 |
+
checksum = "e9f068eba8e7071c5f9511831b44f32c740d5adf574e990f946ddb53db2f314e"
|
| 1423 |
+
dependencies = [
|
| 1424 |
+
"bitflags",
|
| 1425 |
+
"memchr",
|
| 1426 |
+
"pulldown-cmark-escape",
|
| 1427 |
+
"unicase",
|
| 1428 |
+
]
|
| 1429 |
+
|
| 1430 |
+
[[package]]
|
| 1431 |
+
name = "pulldown-cmark-escape"
|
| 1432 |
+
version = "0.11.0"
|
| 1433 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1434 |
+
checksum = "007d8adb5ddab6f8e3f491ac63566a7d5002cc7ed73901f72057943fa71ae1ae"
|
| 1435 |
+
|
| 1436 |
+
[[package]]
|
| 1437 |
+
name = "pulldown-cmark-to-cmark"
|
| 1438 |
+
version = "22.0.0"
|
| 1439 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1440 |
+
checksum = "50793def1b900256624a709439404384204a5dc3a6ec580281bfaac35e882e90"
|
| 1441 |
+
dependencies = [
|
| 1442 |
+
"pulldown-cmark",
|
| 1443 |
+
]
|
| 1444 |
+
|
| 1445 |
+
[[package]]
|
| 1446 |
+
name = "quote"
|
| 1447 |
+
version = "1.0.45"
|
| 1448 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1449 |
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
| 1450 |
+
dependencies = [
|
| 1451 |
+
"proc-macro2",
|
| 1452 |
+
]
|
| 1453 |
+
|
| 1454 |
+
[[package]]
|
| 1455 |
+
name = "rand"
|
| 1456 |
+
version = "0.8.6"
|
| 1457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1458 |
+
checksum = "5ca0ecfa931c29007047d1bc58e623ab12e5590e8c7cc53200d5202b69266d8a"
|
| 1459 |
+
dependencies = [
|
| 1460 |
+
"libc",
|
| 1461 |
+
"rand_chacha",
|
| 1462 |
+
"rand_core",
|
| 1463 |
+
]
|
| 1464 |
+
|
| 1465 |
+
[[package]]
|
| 1466 |
+
name = "rand_chacha"
|
| 1467 |
+
version = "0.3.1"
|
| 1468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1469 |
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
| 1470 |
+
dependencies = [
|
| 1471 |
+
"ppv-lite86",
|
| 1472 |
+
"rand_core",
|
| 1473 |
+
]
|
| 1474 |
+
|
| 1475 |
+
[[package]]
|
| 1476 |
+
name = "rand_core"
|
| 1477 |
+
version = "0.6.4"
|
| 1478 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1479 |
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
| 1480 |
+
dependencies = [
|
| 1481 |
+
"getrandom 0.2.15",
|
| 1482 |
+
]
|
| 1483 |
+
|
| 1484 |
+
[[package]]
|
| 1485 |
+
name = "redox_syscall"
|
| 1486 |
+
version = "0.5.18"
|
| 1487 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1488 |
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
| 1489 |
+
dependencies = [
|
| 1490 |
+
"bitflags",
|
| 1491 |
+
]
|
| 1492 |
+
|
| 1493 |
+
[[package]]
|
| 1494 |
+
name = "regex"
|
| 1495 |
+
version = "1.12.3"
|
| 1496 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1497 |
+
checksum = "e10754a14b9137dd7b1e3e5b0493cc9171fdd105e0ab477f51b72e7f3ac0e276"
|
| 1498 |
+
dependencies = [
|
| 1499 |
+
"aho-corasick",
|
| 1500 |
+
"memchr",
|
| 1501 |
+
"regex-automata",
|
| 1502 |
+
"regex-syntax",
|
| 1503 |
+
]
|
| 1504 |
+
|
| 1505 |
+
[[package]]
|
| 1506 |
+
name = "regex-automata"
|
| 1507 |
+
version = "0.4.13"
|
| 1508 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1509 |
+
checksum = "5276caf25ac86c8d810222b3dbb938e512c55c6831a10f3e6ed1c93b84041f1c"
|
| 1510 |
+
dependencies = [
|
| 1511 |
+
"aho-corasick",
|
| 1512 |
+
"memchr",
|
| 1513 |
+
"regex-syntax",
|
| 1514 |
+
]
|
| 1515 |
+
|
| 1516 |
+
[[package]]
|
| 1517 |
+
name = "regex-syntax"
|
| 1518 |
+
version = "0.8.5"
|
| 1519 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1520 |
+
checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
|
| 1521 |
+
|
| 1522 |
+
[[package]]
|
| 1523 |
+
name = "rustix"
|
| 1524 |
+
version = "1.1.4"
|
| 1525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1526 |
+
checksum = "b6fe4565b9518b83ef4f91bb47ce29620ca828bd32cb7e408f0062e9930ba190"
|
| 1527 |
+
dependencies = [
|
| 1528 |
+
"bitflags",
|
| 1529 |
+
"errno",
|
| 1530 |
+
"libc",
|
| 1531 |
+
"linux-raw-sys",
|
| 1532 |
+
"windows-sys 0.61.1",
|
| 1533 |
+
]
|
| 1534 |
+
|
| 1535 |
+
[[package]]
|
| 1536 |
+
name = "same-file"
|
| 1537 |
+
version = "1.0.6"
|
| 1538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1539 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 1540 |
+
dependencies = [
|
| 1541 |
+
"winapi-util",
|
| 1542 |
+
]
|
| 1543 |
+
|
| 1544 |
+
[[package]]
|
| 1545 |
+
name = "scopeguard"
|
| 1546 |
+
version = "1.2.0"
|
| 1547 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1548 |
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
| 1549 |
+
|
| 1550 |
+
[[package]]
|
| 1551 |
+
name = "semver"
|
| 1552 |
+
version = "1.0.28"
|
| 1553 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1554 |
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
| 1555 |
+
|
| 1556 |
+
[[package]]
|
| 1557 |
+
name = "serde"
|
| 1558 |
+
version = "1.0.228"
|
| 1559 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1560 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 1561 |
+
dependencies = [
|
| 1562 |
+
"serde_core",
|
| 1563 |
+
"serde_derive",
|
| 1564 |
+
]
|
| 1565 |
+
|
| 1566 |
+
[[package]]
|
| 1567 |
+
name = "serde_core"
|
| 1568 |
+
version = "1.0.228"
|
| 1569 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1570 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 1571 |
+
dependencies = [
|
| 1572 |
+
"serde_derive",
|
| 1573 |
+
]
|
| 1574 |
+
|
| 1575 |
+
[[package]]
|
| 1576 |
+
name = "serde_derive"
|
| 1577 |
+
version = "1.0.228"
|
| 1578 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1579 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 1580 |
+
dependencies = [
|
| 1581 |
+
"proc-macro2",
|
| 1582 |
+
"quote",
|
| 1583 |
+
"syn",
|
| 1584 |
+
]
|
| 1585 |
+
|
| 1586 |
+
[[package]]
|
| 1587 |
+
name = "serde_json"
|
| 1588 |
+
version = "1.0.150"
|
| 1589 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1590 |
+
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
| 1591 |
+
dependencies = [
|
| 1592 |
+
"itoa",
|
| 1593 |
+
"memchr",
|
| 1594 |
+
"serde",
|
| 1595 |
+
"serde_core",
|
| 1596 |
+
"zmij",
|
| 1597 |
+
]
|
| 1598 |
+
|
| 1599 |
+
[[package]]
|
| 1600 |
+
name = "serde_spanned"
|
| 1601 |
+
version = "1.1.1"
|
| 1602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1603 |
+
checksum = "6662b5879511e06e8999a8a235d848113e942c9124f211511b16466ee2995f26"
|
| 1604 |
+
dependencies = [
|
| 1605 |
+
"serde_core",
|
| 1606 |
+
]
|
| 1607 |
+
|
| 1608 |
+
[[package]]
|
| 1609 |
+
name = "sha2"
|
| 1610 |
+
version = "0.10.9"
|
| 1611 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1612 |
+
checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
|
| 1613 |
+
dependencies = [
|
| 1614 |
+
"cfg-if",
|
| 1615 |
+
"cpufeatures",
|
| 1616 |
+
"digest",
|
| 1617 |
+
]
|
| 1618 |
+
|
| 1619 |
+
[[package]]
|
| 1620 |
+
name = "shlex"
|
| 1621 |
+
version = "1.3.0"
|
| 1622 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1623 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 1624 |
+
|
| 1625 |
+
[[package]]
|
| 1626 |
+
name = "siphasher"
|
| 1627 |
+
version = "0.3.11"
|
| 1628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1629 |
+
checksum = "38b58827f4464d87d377d175e90bf58eb00fd8716ff0a62f80356b5e61555d0d"
|
| 1630 |
+
|
| 1631 |
+
[[package]]
|
| 1632 |
+
name = "siphasher"
|
| 1633 |
+
version = "1.0.2"
|
| 1634 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1635 |
+
checksum = "b2aa850e253778c88a04c3d7323b043aeda9d3e30d5971937c1855769763678e"
|
| 1636 |
+
|
| 1637 |
+
[[package]]
|
| 1638 |
+
name = "slug"
|
| 1639 |
+
version = "0.1.5"
|
| 1640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1641 |
+
checksum = "3bd94acec9c8da640005f8e135a39fc0372e74535e6b368b7a04b875f784c8c4"
|
| 1642 |
+
dependencies = [
|
| 1643 |
+
"deunicode",
|
| 1644 |
+
"wasm-bindgen",
|
| 1645 |
+
]
|
| 1646 |
+
|
| 1647 |
+
[[package]]
|
| 1648 |
+
name = "smallvec"
|
| 1649 |
+
version = "1.15.1"
|
| 1650 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1651 |
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
| 1652 |
+
|
| 1653 |
+
[[package]]
|
| 1654 |
+
name = "string_cache"
|
| 1655 |
+
version = "0.9.0"
|
| 1656 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1657 |
+
checksum = "a18596f8c785a729f2819c0f6a7eae6ebeebdfffbfe4214ae6b087f690e31901"
|
| 1658 |
+
dependencies = [
|
| 1659 |
+
"new_debug_unreachable",
|
| 1660 |
+
"parking_lot",
|
| 1661 |
+
"phf_shared 0.13.1",
|
| 1662 |
+
"precomputed-hash",
|
| 1663 |
+
]
|
| 1664 |
+
|
| 1665 |
+
[[package]]
|
| 1666 |
+
name = "string_cache_codegen"
|
| 1667 |
+
version = "0.6.1"
|
| 1668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1669 |
+
checksum = "585635e46db231059f76c5849798146164652513eb9e8ab2685939dd90f29b69"
|
| 1670 |
+
dependencies = [
|
| 1671 |
+
"phf_generator 0.13.1",
|
| 1672 |
+
"phf_shared 0.13.1",
|
| 1673 |
+
"proc-macro2",
|
| 1674 |
+
"quote",
|
| 1675 |
+
]
|
| 1676 |
+
|
| 1677 |
+
[[package]]
|
| 1678 |
+
name = "strsim"
|
| 1679 |
+
version = "0.11.1"
|
| 1680 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1681 |
+
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
| 1682 |
+
|
| 1683 |
+
[[package]]
|
| 1684 |
+
name = "syn"
|
| 1685 |
+
version = "2.0.117"
|
| 1686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1687 |
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
| 1688 |
+
dependencies = [
|
| 1689 |
+
"proc-macro2",
|
| 1690 |
+
"quote",
|
| 1691 |
+
"unicode-ident",
|
| 1692 |
+
]
|
| 1693 |
+
|
| 1694 |
+
[[package]]
|
| 1695 |
+
name = "syntect"
|
| 1696 |
+
version = "5.3.0"
|
| 1697 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1698 |
+
checksum = "656b45c05d95a5704399aeef6bd0ddec7b2b3531b7c9e900abbf7c4d2190c925"
|
| 1699 |
+
dependencies = [
|
| 1700 |
+
"bincode",
|
| 1701 |
+
"fancy-regex",
|
| 1702 |
+
"flate2",
|
| 1703 |
+
"fnv",
|
| 1704 |
+
"once_cell",
|
| 1705 |
+
"regex-syntax",
|
| 1706 |
+
"serde",
|
| 1707 |
+
"serde_derive",
|
| 1708 |
+
"thiserror 2.0.17",
|
| 1709 |
+
"walkdir",
|
| 1710 |
+
]
|
| 1711 |
+
|
| 1712 |
+
[[package]]
|
| 1713 |
+
name = "tempfile"
|
| 1714 |
+
version = "3.27.0"
|
| 1715 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1716 |
+
checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
|
| 1717 |
+
dependencies = [
|
| 1718 |
+
"fastrand",
|
| 1719 |
+
"getrandom 0.3.1",
|
| 1720 |
+
"once_cell",
|
| 1721 |
+
"rustix",
|
| 1722 |
+
"windows-sys 0.61.1",
|
| 1723 |
+
]
|
| 1724 |
+
|
| 1725 |
+
[[package]]
|
| 1726 |
+
name = "tendril"
|
| 1727 |
+
version = "0.4.3"
|
| 1728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1729 |
+
checksum = "d24a120c5fc464a3458240ee02c299ebcb9d67b5249c8848b09d639dca8d7bb0"
|
| 1730 |
+
dependencies = [
|
| 1731 |
+
"futf",
|
| 1732 |
+
"mac",
|
| 1733 |
+
"utf-8",
|
| 1734 |
+
]
|
| 1735 |
+
|
| 1736 |
+
[[package]]
|
| 1737 |
+
name = "tera"
|
| 1738 |
+
version = "1.20.1"
|
| 1739 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1740 |
+
checksum = "e8004bca281f2d32df3bacd59bc67b312cb4c70cea46cbd79dbe8ac5ed206722"
|
| 1741 |
+
dependencies = [
|
| 1742 |
+
"chrono",
|
| 1743 |
+
"chrono-tz",
|
| 1744 |
+
"globwalk",
|
| 1745 |
+
"humansize",
|
| 1746 |
+
"lazy_static",
|
| 1747 |
+
"percent-encoding",
|
| 1748 |
+
"pest",
|
| 1749 |
+
"pest_derive",
|
| 1750 |
+
"rand",
|
| 1751 |
+
"regex",
|
| 1752 |
+
"serde",
|
| 1753 |
+
"serde_json",
|
| 1754 |
+
"slug",
|
| 1755 |
+
"unicode-segmentation",
|
| 1756 |
+
]
|
| 1757 |
+
|
| 1758 |
+
[[package]]
|
| 1759 |
+
name = "textwrap"
|
| 1760 |
+
version = "0.16.2"
|
| 1761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1762 |
+
checksum = "c13547615a44dc9c452a8a534638acdf07120d4b6847c8178705da06306a3057"
|
| 1763 |
+
|
| 1764 |
+
[[package]]
|
| 1765 |
+
name = "thiserror"
|
| 1766 |
+
version = "1.0.61"
|
| 1767 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1768 |
+
checksum = "c546c80d6be4bc6a00c0f01730c08df82eaa7a7a61f11d656526506112cc1709"
|
| 1769 |
+
dependencies = [
|
| 1770 |
+
"thiserror-impl 1.0.61",
|
| 1771 |
+
]
|
| 1772 |
+
|
| 1773 |
+
[[package]]
|
| 1774 |
+
name = "thiserror"
|
| 1775 |
+
version = "2.0.17"
|
| 1776 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1777 |
+
checksum = "f63587ca0f12b72a0600bcba1d40081f830876000bb46dd2337a3051618f4fc8"
|
| 1778 |
+
dependencies = [
|
| 1779 |
+
"thiserror-impl 2.0.17",
|
| 1780 |
+
]
|
| 1781 |
+
|
| 1782 |
+
[[package]]
|
| 1783 |
+
name = "thiserror-impl"
|
| 1784 |
+
version = "1.0.61"
|
| 1785 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1786 |
+
checksum = "46c3384250002a6d5af4d114f2845d37b57521033f30d5c3f46c4d70e1197533"
|
| 1787 |
+
dependencies = [
|
| 1788 |
+
"proc-macro2",
|
| 1789 |
+
"quote",
|
| 1790 |
+
"syn",
|
| 1791 |
+
]
|
| 1792 |
+
|
| 1793 |
+
[[package]]
|
| 1794 |
+
name = "thiserror-impl"
|
| 1795 |
+
version = "2.0.17"
|
| 1796 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1797 |
+
checksum = "3ff15c8ecd7de3849db632e14d18d2571fa09dfc5ed93479bc4485c7a517c913"
|
| 1798 |
+
dependencies = [
|
| 1799 |
+
"proc-macro2",
|
| 1800 |
+
"quote",
|
| 1801 |
+
"syn",
|
| 1802 |
+
]
|
| 1803 |
+
|
| 1804 |
+
[[package]]
|
| 1805 |
+
name = "toml"
|
| 1806 |
+
version = "0.9.8"
|
| 1807 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1808 |
+
checksum = "f0dc8b1fb61449e27716ec0e1bdf0f6b8f3e8f6b05391e8497b8b6d7804ea6d8"
|
| 1809 |
+
dependencies = [
|
| 1810 |
+
"indexmap",
|
| 1811 |
+
"serde_core",
|
| 1812 |
+
"serde_spanned",
|
| 1813 |
+
"toml_datetime 0.7.3",
|
| 1814 |
+
"toml_parser",
|
| 1815 |
+
"toml_writer",
|
| 1816 |
+
"winnow 0.7.13",
|
| 1817 |
+
]
|
| 1818 |
+
|
| 1819 |
+
[[package]]
|
| 1820 |
+
name = "toml"
|
| 1821 |
+
version = "1.1.2+spec-1.1.0"
|
| 1822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1823 |
+
checksum = "81f3d15e84cbcd896376e6730314d59fb5a87f31e4b038454184435cd57defee"
|
| 1824 |
+
dependencies = [
|
| 1825 |
+
"indexmap",
|
| 1826 |
+
"serde_core",
|
| 1827 |
+
"serde_spanned",
|
| 1828 |
+
"toml_datetime 1.1.1+spec-1.1.0",
|
| 1829 |
+
"toml_parser",
|
| 1830 |
+
"toml_writer",
|
| 1831 |
+
"winnow 1.0.3",
|
| 1832 |
+
]
|
| 1833 |
+
|
| 1834 |
+
[[package]]
|
| 1835 |
+
name = "toml_datetime"
|
| 1836 |
+
version = "0.7.3"
|
| 1837 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1838 |
+
checksum = "f2cdb639ebbc97961c51720f858597f7f24c4fc295327923af55b74c3c724533"
|
| 1839 |
+
dependencies = [
|
| 1840 |
+
"serde_core",
|
| 1841 |
+
]
|
| 1842 |
+
|
| 1843 |
+
[[package]]
|
| 1844 |
+
name = "toml_datetime"
|
| 1845 |
+
version = "1.1.1+spec-1.1.0"
|
| 1846 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1847 |
+
checksum = "3165f65f62e28e0115a00b2ebdd37eb6f3b641855f9d636d3cd4103767159ad7"
|
| 1848 |
+
dependencies = [
|
| 1849 |
+
"serde_core",
|
| 1850 |
+
]
|
| 1851 |
+
|
| 1852 |
+
[[package]]
|
| 1853 |
+
name = "toml_parser"
|
| 1854 |
+
version = "1.1.2+spec-1.1.0"
|
| 1855 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1856 |
+
checksum = "a2abe9b86193656635d2411dc43050282ca48aa31c2451210f4202550afb7526"
|
| 1857 |
+
dependencies = [
|
| 1858 |
+
"winnow 1.0.3",
|
| 1859 |
+
]
|
| 1860 |
+
|
| 1861 |
+
[[package]]
|
| 1862 |
+
name = "toml_writer"
|
| 1863 |
+
version = "1.1.1+spec-1.1.0"
|
| 1864 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1865 |
+
checksum = "756daf9b1013ebe47a8776667b466417e2d4c5679d441c26230efd9ef78692db"
|
| 1866 |
+
|
| 1867 |
+
[[package]]
|
| 1868 |
+
name = "topological-sort"
|
| 1869 |
+
version = "0.2.2"
|
| 1870 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1871 |
+
checksum = "ea68304e134ecd095ac6c3574494fc62b909f416c4fca77e440530221e549d3d"
|
| 1872 |
+
|
| 1873 |
+
[[package]]
|
| 1874 |
+
name = "tracing"
|
| 1875 |
+
version = "0.1.44"
|
| 1876 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1877 |
+
checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
|
| 1878 |
+
dependencies = [
|
| 1879 |
+
"pin-project-lite",
|
| 1880 |
+
"tracing-attributes",
|
| 1881 |
+
"tracing-core",
|
| 1882 |
+
]
|
| 1883 |
+
|
| 1884 |
+
[[package]]
|
| 1885 |
+
name = "tracing-attributes"
|
| 1886 |
+
version = "0.1.31"
|
| 1887 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1888 |
+
checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
|
| 1889 |
+
dependencies = [
|
| 1890 |
+
"proc-macro2",
|
| 1891 |
+
"quote",
|
| 1892 |
+
"syn",
|
| 1893 |
+
]
|
| 1894 |
+
|
| 1895 |
+
[[package]]
|
| 1896 |
+
name = "tracing-core"
|
| 1897 |
+
version = "0.1.36"
|
| 1898 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1899 |
+
checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
|
| 1900 |
+
dependencies = [
|
| 1901 |
+
"once_cell",
|
| 1902 |
+
]
|
| 1903 |
+
|
| 1904 |
+
[[package]]
|
| 1905 |
+
name = "typenum"
|
| 1906 |
+
version = "1.17.0"
|
| 1907 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1908 |
+
checksum = "42ff0bf0c66b8238c6f3b578df37d0b7848e55df8577b3f74f92a69acceeb825"
|
| 1909 |
+
|
| 1910 |
+
[[package]]
|
| 1911 |
+
name = "ucd-trie"
|
| 1912 |
+
version = "0.1.6"
|
| 1913 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1914 |
+
checksum = "ed646292ffc8188ef8ea4d1e0e0150fb15a5c2e12ad9b8fc191ae7a8a7f3c4b9"
|
| 1915 |
+
|
| 1916 |
+
[[package]]
|
| 1917 |
+
name = "unicase"
|
| 1918 |
+
version = "2.7.0"
|
| 1919 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1920 |
+
checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89"
|
| 1921 |
+
dependencies = [
|
| 1922 |
+
"version_check",
|
| 1923 |
+
]
|
| 1924 |
+
|
| 1925 |
+
[[package]]
|
| 1926 |
+
name = "unicode-ident"
|
| 1927 |
+
version = "1.0.12"
|
| 1928 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1929 |
+
checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b"
|
| 1930 |
+
|
| 1931 |
+
[[package]]
|
| 1932 |
+
name = "unicode-segmentation"
|
| 1933 |
+
version = "1.12.0"
|
| 1934 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1935 |
+
checksum = "f6ccf251212114b54433ec949fd6a7841275f9ada20dddd2f29e9ceea4501493"
|
| 1936 |
+
|
| 1937 |
+
[[package]]
|
| 1938 |
+
name = "utf-8"
|
| 1939 |
+
version = "0.7.6"
|
| 1940 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1941 |
+
checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
|
| 1942 |
+
|
| 1943 |
+
[[package]]
|
| 1944 |
+
name = "utf8parse"
|
| 1945 |
+
version = "0.2.2"
|
| 1946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1947 |
+
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
| 1948 |
+
|
| 1949 |
+
[[package]]
|
| 1950 |
+
name = "version_check"
|
| 1951 |
+
version = "0.9.4"
|
| 1952 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1953 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 1954 |
+
|
| 1955 |
+
[[package]]
|
| 1956 |
+
name = "walkdir"
|
| 1957 |
+
version = "2.5.0"
|
| 1958 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1959 |
+
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
|
| 1960 |
+
dependencies = [
|
| 1961 |
+
"same-file",
|
| 1962 |
+
"winapi-util",
|
| 1963 |
+
]
|
| 1964 |
+
|
| 1965 |
+
[[package]]
|
| 1966 |
+
name = "wasi"
|
| 1967 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 1968 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1969 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 1970 |
+
|
| 1971 |
+
[[package]]
|
| 1972 |
+
name = "wasi"
|
| 1973 |
+
version = "0.13.3+wasi-0.2.2"
|
| 1974 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1975 |
+
checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
|
| 1976 |
+
dependencies = [
|
| 1977 |
+
"wit-bindgen-rt",
|
| 1978 |
+
]
|
| 1979 |
+
|
| 1980 |
+
[[package]]
|
| 1981 |
+
name = "wasm-bindgen"
|
| 1982 |
+
version = "0.2.92"
|
| 1983 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1984 |
+
checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8"
|
| 1985 |
+
dependencies = [
|
| 1986 |
+
"cfg-if",
|
| 1987 |
+
"wasm-bindgen-macro",
|
| 1988 |
+
]
|
| 1989 |
+
|
| 1990 |
+
[[package]]
|
| 1991 |
+
name = "wasm-bindgen-backend"
|
| 1992 |
+
version = "0.2.92"
|
| 1993 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1994 |
+
checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da"
|
| 1995 |
+
dependencies = [
|
| 1996 |
+
"bumpalo",
|
| 1997 |
+
"log",
|
| 1998 |
+
"once_cell",
|
| 1999 |
+
"proc-macro2",
|
| 2000 |
+
"quote",
|
| 2001 |
+
"syn",
|
| 2002 |
+
"wasm-bindgen-shared",
|
| 2003 |
+
]
|
| 2004 |
+
|
| 2005 |
+
[[package]]
|
| 2006 |
+
name = "wasm-bindgen-macro"
|
| 2007 |
+
version = "0.2.92"
|
| 2008 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2009 |
+
checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726"
|
| 2010 |
+
dependencies = [
|
| 2011 |
+
"quote",
|
| 2012 |
+
"wasm-bindgen-macro-support",
|
| 2013 |
+
]
|
| 2014 |
+
|
| 2015 |
+
[[package]]
|
| 2016 |
+
name = "wasm-bindgen-macro-support"
|
| 2017 |
+
version = "0.2.92"
|
| 2018 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2019 |
+
checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7"
|
| 2020 |
+
dependencies = [
|
| 2021 |
+
"proc-macro2",
|
| 2022 |
+
"quote",
|
| 2023 |
+
"syn",
|
| 2024 |
+
"wasm-bindgen-backend",
|
| 2025 |
+
"wasm-bindgen-shared",
|
| 2026 |
+
]
|
| 2027 |
+
|
| 2028 |
+
[[package]]
|
| 2029 |
+
name = "wasm-bindgen-shared"
|
| 2030 |
+
version = "0.2.92"
|
| 2031 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2032 |
+
checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96"
|
| 2033 |
+
|
| 2034 |
+
[[package]]
|
| 2035 |
+
name = "web_atoms"
|
| 2036 |
+
version = "0.2.3"
|
| 2037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2038 |
+
checksum = "57a9779e9f04d2ac1ce317aee707aa2f6b773afba7b931222bff6983843b1576"
|
| 2039 |
+
dependencies = [
|
| 2040 |
+
"phf 0.13.1",
|
| 2041 |
+
"phf_codegen 0.13.1",
|
| 2042 |
+
"string_cache",
|
| 2043 |
+
"string_cache_codegen",
|
| 2044 |
+
]
|
| 2045 |
+
|
| 2046 |
+
[[package]]
|
| 2047 |
+
name = "winapi-util"
|
| 2048 |
+
version = "0.1.8"
|
| 2049 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2050 |
+
checksum = "4d4cc384e1e73b93bafa6fb4f1df8c41695c8a91cf9c4c64358067d15a7b6c6b"
|
| 2051 |
+
dependencies = [
|
| 2052 |
+
"windows-sys 0.52.0",
|
| 2053 |
+
]
|
| 2054 |
+
|
| 2055 |
+
[[package]]
|
| 2056 |
+
name = "windows-core"
|
| 2057 |
+
version = "0.52.0"
|
| 2058 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2059 |
+
checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9"
|
| 2060 |
+
dependencies = [
|
| 2061 |
+
"windows-targets",
|
| 2062 |
+
]
|
| 2063 |
+
|
| 2064 |
+
[[package]]
|
| 2065 |
+
name = "windows-link"
|
| 2066 |
+
version = "0.2.0"
|
| 2067 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2068 |
+
checksum = "45e46c0661abb7180e7b9c281db115305d49ca1709ab8242adf09666d2173c65"
|
| 2069 |
+
|
| 2070 |
+
[[package]]
|
| 2071 |
+
name = "windows-sys"
|
| 2072 |
+
version = "0.52.0"
|
| 2073 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2074 |
+
checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
|
| 2075 |
+
dependencies = [
|
| 2076 |
+
"windows-targets",
|
| 2077 |
+
]
|
| 2078 |
+
|
| 2079 |
+
[[package]]
|
| 2080 |
+
name = "windows-sys"
|
| 2081 |
+
version = "0.59.0"
|
| 2082 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2083 |
+
checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
|
| 2084 |
+
dependencies = [
|
| 2085 |
+
"windows-targets",
|
| 2086 |
+
]
|
| 2087 |
+
|
| 2088 |
+
[[package]]
|
| 2089 |
+
name = "windows-sys"
|
| 2090 |
+
version = "0.61.1"
|
| 2091 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2092 |
+
checksum = "6f109e41dd4a3c848907eb83d5a42ea98b3769495597450cf6d153507b166f0f"
|
| 2093 |
+
dependencies = [
|
| 2094 |
+
"windows-link",
|
| 2095 |
+
]
|
| 2096 |
+
|
| 2097 |
+
[[package]]
|
| 2098 |
+
name = "windows-targets"
|
| 2099 |
+
version = "0.52.6"
|
| 2100 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2101 |
+
checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
|
| 2102 |
+
dependencies = [
|
| 2103 |
+
"windows_aarch64_gnullvm",
|
| 2104 |
+
"windows_aarch64_msvc",
|
| 2105 |
+
"windows_i686_gnu",
|
| 2106 |
+
"windows_i686_gnullvm",
|
| 2107 |
+
"windows_i686_msvc",
|
| 2108 |
+
"windows_x86_64_gnu",
|
| 2109 |
+
"windows_x86_64_gnullvm",
|
| 2110 |
+
"windows_x86_64_msvc",
|
| 2111 |
+
]
|
| 2112 |
+
|
| 2113 |
+
[[package]]
|
| 2114 |
+
name = "windows_aarch64_gnullvm"
|
| 2115 |
+
version = "0.52.6"
|
| 2116 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2117 |
+
checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
|
| 2118 |
+
|
| 2119 |
+
[[package]]
|
| 2120 |
+
name = "windows_aarch64_msvc"
|
| 2121 |
+
version = "0.52.6"
|
| 2122 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2123 |
+
checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
|
| 2124 |
+
|
| 2125 |
+
[[package]]
|
| 2126 |
+
name = "windows_i686_gnu"
|
| 2127 |
+
version = "0.52.6"
|
| 2128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2129 |
+
checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
|
| 2130 |
+
|
| 2131 |
+
[[package]]
|
| 2132 |
+
name = "windows_i686_gnullvm"
|
| 2133 |
+
version = "0.52.6"
|
| 2134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2135 |
+
checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
|
| 2136 |
+
|
| 2137 |
+
[[package]]
|
| 2138 |
+
name = "windows_i686_msvc"
|
| 2139 |
+
version = "0.52.6"
|
| 2140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2141 |
+
checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
|
| 2142 |
+
|
| 2143 |
+
[[package]]
|
| 2144 |
+
name = "windows_x86_64_gnu"
|
| 2145 |
+
version = "0.52.6"
|
| 2146 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2147 |
+
checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
|
| 2148 |
+
|
| 2149 |
+
[[package]]
|
| 2150 |
+
name = "windows_x86_64_gnullvm"
|
| 2151 |
+
version = "0.52.6"
|
| 2152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2153 |
+
checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
|
| 2154 |
+
|
| 2155 |
+
[[package]]
|
| 2156 |
+
name = "windows_x86_64_msvc"
|
| 2157 |
+
version = "0.52.6"
|
| 2158 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2159 |
+
checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
|
| 2160 |
+
|
| 2161 |
+
[[package]]
|
| 2162 |
+
name = "winnow"
|
| 2163 |
+
version = "0.7.13"
|
| 2164 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2165 |
+
checksum = "21a0236b59786fed61e2a80582dd500fe61f18b5dca67a4a067d0bc9039339cf"
|
| 2166 |
+
|
| 2167 |
+
[[package]]
|
| 2168 |
+
name = "winnow"
|
| 2169 |
+
version = "1.0.3"
|
| 2170 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2171 |
+
checksum = "0592e1c9d151f854e6fd382574c3a0855250e1d9b2f99d9281c6e6391af352f1"
|
| 2172 |
+
|
| 2173 |
+
[[package]]
|
| 2174 |
+
name = "wit-bindgen-rt"
|
| 2175 |
+
version = "0.33.0"
|
| 2176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2177 |
+
checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
|
| 2178 |
+
dependencies = [
|
| 2179 |
+
"bitflags",
|
| 2180 |
+
]
|
| 2181 |
+
|
| 2182 |
+
[[package]]
|
| 2183 |
+
name = "yansi"
|
| 2184 |
+
version = "1.0.1"
|
| 2185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2186 |
+
checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
|
| 2187 |
+
|
| 2188 |
+
[[package]]
|
| 2189 |
+
name = "zmij"
|
| 2190 |
+
version = "1.0.7"
|
| 2191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2192 |
+
checksum = "de9211a9f64b825911bdf0240f58b7a8dac217fe260fc61f080a07f61372fbd5"
|
| 2193 |
+
LOCKEOF
|
| 2194 |
+
|
| 2195 |
+
# --------------------------------------------------------------------- fetch
|
| 2196 |
+
# Prefetch every dependency (exactly the locked versions) into the shared
|
| 2197 |
+
# CARGO_HOME registry cache. This is a network read; nothing is compiled or
|
| 2198 |
+
# linked here. --locked keeps the cache consistent with the embedded lockfile.
|
| 2199 |
+
cargo fetch --locked --manifest-path "$_download_dir/Cargo.toml"
|
| 2200 |
+
_fr=$?
|
| 2201 |
+
if [ "$_fr" -ne 0 ]; then
|
| 2202 |
+
echo "cargo fetch failed" >&2
|
| 2203 |
+
if [ "${BASH_SOURCE[0]}" = "$0" ]; then
|
| 2204 |
+
exit 1
|
| 2205 |
+
else
|
| 2206 |
+
return 1
|
| 2207 |
+
fi
|
| 2208 |
+
fi
|
| 2209 |
+
|
| 2210 |
+
echo "download.sh: prefetched mdbook-i18n-helpers dependencies into the Cargo cache."
|
google--mdbook-i18n-helpers.da4106d/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5569e1c96b55a982e697eab8dbd662b75dc09eef283f89ee14da86d921e66703
|
| 3 |
+
size 4981520
|
google--mdbook-i18n-helpers.da4106d/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
|
google--mdbook-i18n-helpers.da4106d/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()
|
google--mdbook-i18n-helpers.da4106d/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,854 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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_cli.TestStdinParsing.test_non_array_json_reports_error",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"id": "generic_keyword_oracle",
|
| 12 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 13 |
+
"path": "eval/tests/test_cli.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_directives.TestSkipNextGroup.test_inline_skip_rest_of_line",
|
| 22 |
+
"reasons": [
|
| 23 |
+
{
|
| 24 |
+
"detail": "AssertionError: assert 'FOO<!-- i18n... **bold** bar' == 'foo <!-- i18... **bold** bar' - foo <!-- i18n:skip --> **bold** bar ? ^^^^ + FOO<!-- i18n:skip --> **bold** bar ? ^^^",
|
| 25 |
+
"id": "gold_fail",
|
| 26 |
+
"message": "test failed against the reference executable",
|
| 27 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 28 |
+
"severity": "error",
|
| 29 |
+
"stage": "gold_execution"
|
| 30 |
+
}
|
| 31 |
+
]
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"name": "eval.tests.test_directives.TestSkipStartEnd.test_back_to_back_ranges",
|
| 35 |
+
"reasons": [
|
| 36 |
+
{
|
| 37 |
+
"id": "short_substring",
|
| 38 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 39 |
+
"path": "eval/tests/test_directives.py",
|
| 40 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 41 |
+
"severity": "error",
|
| 42 |
+
"stage": "static_lint"
|
| 43 |
+
}
|
| 44 |
+
]
|
| 45 |
+
},
|
| 46 |
+
{
|
| 47 |
+
"name": "eval.tests.test_directives.TestSkipStartEnd.test_range_multiple_paragraphs_all_skipped",
|
| 48 |
+
"reasons": [
|
| 49 |
+
{
|
| 50 |
+
"id": "short_substring",
|
| 51 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 52 |
+
"path": "eval/tests/test_directives.py",
|
| 53 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 54 |
+
"severity": "error",
|
| 55 |
+
"stage": "static_lint"
|
| 56 |
+
}
|
| 57 |
+
]
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"name": "eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_heading_translated",
|
| 61 |
+
"reasons": [
|
| 62 |
+
{
|
| 63 |
+
"detail": "AssertionError: assert '## [Guide](/guide)' == '## \uac00\uc774\ub4dc' - ## \uac00\uc774\ub4dc + ## [Guide](/guide)",
|
| 64 |
+
"id": "gold_fail",
|
| 65 |
+
"message": "test failed against the reference executable",
|
| 66 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 67 |
+
"severity": "error",
|
| 68 |
+
"stage": "gold_execution"
|
| 69 |
+
}
|
| 70 |
+
]
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"name": "eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_list_item",
|
| 74 |
+
"reasons": [
|
| 75 |
+
{
|
| 76 |
+
"detail": "AssertionError: assert '- [docs](/docs)' == '- \ubb38\uc11c' - - \ubb38\uc11c + - [docs](/docs)",
|
| 77 |
+
"id": "gold_fail",
|
| 78 |
+
"message": "test failed against the reference executable",
|
| 79 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 80 |
+
"severity": "error",
|
| 81 |
+
"stage": "gold_execution"
|
| 82 |
+
}
|
| 83 |
+
]
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"name": "eval.tests.test_tables.TestTableCellTranslation.test_single_header_cell_translates[Literals-\\ub9ac\\ud130\\ub7f4]",
|
| 87 |
+
"reasons": [
|
| 88 |
+
{
|
| 89 |
+
"detail": "AssertionError: assert '|\ub9ac\ud130\ub7f4|\\n|---|' == '|\ub9ac\ud130\ub7f4|\\n|--|' |\ub9ac\ud130\ub7f4| - |--| + |---| ? +",
|
| 90 |
+
"id": "gold_fail",
|
| 91 |
+
"message": "test failed against the reference executable",
|
| 92 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 93 |
+
"severity": "error",
|
| 94 |
+
"stage": "gold_execution"
|
| 95 |
+
}
|
| 96 |
+
]
|
| 97 |
+
}
|
| 98 |
+
],
|
| 99 |
+
"tests": [
|
| 100 |
+
"eval.tests.test_cli.TestStdinParsing.test_broken_json_literal_structure",
|
| 101 |
+
"eval.tests.test_cli.TestStdinParsing.test_empty_stdin_reports_parse_error",
|
| 102 |
+
"eval.tests.test_cli.TestStdinParsing.test_malformed_json_reports_error",
|
| 103 |
+
"eval.tests.test_cli.TestStdinParsing.test_non_array_json_reports_error",
|
| 104 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_missing_renderer_falls_to_preprocess",
|
| 105 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_renderer[anything-unknown-0]",
|
| 106 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_renderer[html-0]",
|
| 107 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_renderer[link-check-0]",
|
| 108 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_renderer[mdbook-0]",
|
| 109 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_renderer[xgettext-1]",
|
| 110 |
+
"eval.tests.test_cli.TestSupportsArg.test_supports_three_unknown_positionals_panics",
|
| 111 |
+
"eval.tests.test_cli.TestVersionWarning.test_matching_version_no_warning",
|
| 112 |
+
"eval.tests.test_cli.TestVersionWarning.test_mismatched_version_emits_warning",
|
| 113 |
+
"eval.tests.test_cli.TestVersionWarning.test_newer_version_emits_warning",
|
| 114 |
+
"eval.tests.test_codeblocks.TestAdmonishCodeBlock.test_with_title",
|
| 115 |
+
"eval.tests.test_codeblocks.TestBackquoteCodeBlock.test_inner_fence_preserved",
|
| 116 |
+
"eval.tests.test_codeblocks.TestCommentInCodeBlock.test_block_comment",
|
| 117 |
+
"eval.tests.test_codeblocks.TestCommentInCodeBlock.test_inline_block_comment",
|
| 118 |
+
"eval.tests.test_codeblocks.TestCommentInCodeBlock.test_single_line_comment",
|
| 119 |
+
"eval.tests.test_codeblocks.TestHeuristicCodeBlock.test_plain_no_string_skipped",
|
| 120 |
+
"eval.tests.test_codeblocks.TestHeuristicCodeBlock.test_with_string_not_split_into_inner_string",
|
| 121 |
+
"eval.tests.test_codeblocks.TestIndentedCodeBlock.test_indented_preserved_when_no_match",
|
| 122 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_multiple_strings_in_one_block",
|
| 123 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_string_in_function_body",
|
| 124 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_translate_string_literal[c-char *x = \"raw\";-\"raw\"-\"RAW\"]",
|
| 125 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_translate_string_literal[python-s = \"value\"-\"value\"-\"VAL\"]",
|
| 126 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_translate_string_literal[rust-let s = \"hello\";-\"hello\"-\"guten tag\"]",
|
| 127 |
+
"eval.tests.test_codeblocks.TestStringLiteralInCodeBlock.test_untouched_when_no_translation_for_lang_code",
|
| 128 |
+
"eval.tests.test_directives.TestCommentDirective.test_comment_between_paragraphs_only_marks_next",
|
| 129 |
+
"eval.tests.test_directives.TestCommentDirective.test_comment_preserved_and_group_translates",
|
| 130 |
+
"eval.tests.test_directives.TestCommentDirective.test_mdbook_xgettext_comment_prefix",
|
| 131 |
+
"eval.tests.test_directives.TestNonDirectiveComments.test_html_block_wraps_paragraph",
|
| 132 |
+
"eval.tests.test_directives.TestNonDirectiveComments.test_plain_html_comment_is_kept",
|
| 133 |
+
"eval.tests.test_directives.TestSkipNextGroup.test_back_to_back_skip",
|
| 134 |
+
"eval.tests.test_directives.TestSkipNextGroup.test_inline_skip_rest_of_line",
|
| 135 |
+
"eval.tests.test_directives.TestSkipNextGroup.test_skips_next_codeblock_but_not_after",
|
| 136 |
+
"eval.tests.test_directives.TestSkipNextGroup.test_skips_paragraph_not_following",
|
| 137 |
+
"eval.tests.test_directives.TestSkipStartEnd.test_back_to_back_ranges",
|
| 138 |
+
"eval.tests.test_directives.TestSkipStartEnd.test_range_multiple_paragraphs_all_skipped",
|
| 139 |
+
"eval.tests.test_directives.TestSkipStartEnd.test_range_skips_and_resumes",
|
| 140 |
+
"eval.tests.test_directives.TestSkipStartEnd.test_skip_end_without_start_is_harmless",
|
| 141 |
+
"eval.tests.test_directives.TestSkipStartEnd.test_skip_start_no_end_skips_rest",
|
| 142 |
+
"eval.tests.test_links.TestCollapsedLinkExpansion.test_collapsed_link_expands",
|
| 143 |
+
"eval.tests.test_links.TestCollapsedLinkExpansion.test_collapsed_link_with_definition_line_inline",
|
| 144 |
+
"eval.tests.test_links.TestImageExpansion.test_image_link_with_formatting_alt",
|
| 145 |
+
"eval.tests.test_links.TestImageExpansion.test_image_links_expand[![alt][1]\\n\\n[1]: http://x.com/i.png\\n-]",
|
| 146 |
+
"eval.tests.test_links.TestImageExpansion.test_image_links_expand[![alt][]\\n\\n[alt]: http://x.com/i.png\\n-]",
|
| 147 |
+
"eval.tests.test_links.TestImageExpansion.test_image_links_expand[![alt][img]\\n\\n[img]: http://x.com/i.png\\n-]",
|
| 148 |
+
"eval.tests.test_links.TestInlineLinkPassthrough.test_inline_link_no_match_kept",
|
| 149 |
+
"eval.tests.test_links.TestInlineLinkPassthrough.test_inline_link_unchanged[A [link](mailto:a@b.c) here.-A [link](mailto:a@b.c) here.]",
|
| 150 |
+
"eval.tests.test_links.TestInlineLinkPassthrough.test_inline_link_unchanged[See [this page](https://example.com) for more info.-See [this page](https://example.com) for more info.]",
|
| 151 |
+
"eval.tests.test_links.TestInlineLinkPassthrough.test_inline_link_unchanged[[docs](/guide)-[docs](/guide)]",
|
| 152 |
+
"eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_heading",
|
| 153 |
+
"eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_heading_translated",
|
| 154 |
+
"eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_list_item",
|
| 155 |
+
"eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_in_list_item_untranslated",
|
| 156 |
+
"eval.tests.test_links.TestLinksInStyledAndStructuralText.test_link_inside_emphasis",
|
| 157 |
+
"eval.tests.test_links.TestReferenceLinkExpansion.test_reference_link_expands",
|
| 158 |
+
"eval.tests.test_links.TestReferenceLinkExpansion.test_reference_link_translated_atomically",
|
| 159 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_expanded_output[Click [here]!\\n\\n[here]: http://example.net/\\n-Click [here](http://example.net/)!]",
|
| 160 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_expanded_output[See [a] and [b].\\n\\n[a]: /a\\n[b]: /b\\n-See [a](/a) and [b](/b).]",
|
| 161 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_expanded_output[[home]\\n\\n[home]: /\\n-[home](/)]",
|
| 162 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_shortcut_link_expands[/relative/path-rel]",
|
| 163 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_shortcut_link_expands[http://example.net/-here]",
|
| 164 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_shortcut_link_expands[https://example.org/guide-docs]",
|
| 165 |
+
"eval.tests.test_links.TestShortcutLinkExpansion.test_shortcut_link_untranslated_keeps_expanded",
|
| 166 |
+
"eval.tests.test_tables.TestTableAlignmentAndStructure.test_alignment_normalized",
|
| 167 |
+
"eval.tests.test_tables.TestTableAlignmentAndStructure.test_table_in_paragraph_translates",
|
| 168 |
+
"eval.tests.test_tables.TestTableCellEdgeCases.test_empty_cell_preserved",
|
| 169 |
+
"eval.tests.test_tables.TestTableCellEdgeCases.test_escaped_pipe_in_cell",
|
| 170 |
+
"eval.tests.test_tables.TestTableCellEdgeCases.test_inline_html_in_cell",
|
| 171 |
+
"eval.tests.test_tables.TestTableCellTranslation.test_code_in_cell",
|
| 172 |
+
"eval.tests.test_tables.TestTableCellTranslation.test_multiple_columns_all_translate",
|
| 173 |
+
"eval.tests.test_tables.TestTableCellTranslation.test_single_header_cell_translates[Description-\\uc124\\uba85]",
|
| 174 |
+
"eval.tests.test_tables.TestTableCellTranslation.test_single_header_cell_translates[Literals-\\ub9ac\\ud130\\ub7f4]",
|
| 175 |
+
"eval.tests.test_tables.TestTableCellTranslation.test_single_header_cell_translates[Types-\\ud0c0\\uc785]",
|
| 176 |
+
"eval.tests.test_translation.TestBasicParagraphTranslation.test_single_paragraph_variants[ hello world -HOLA MUNDO]",
|
| 177 |
+
"eval.tests.test_translation.TestBasicParagraphTranslation.test_single_paragraph_variants[hello world-HOLA MUNDO]",
|
| 178 |
+
"eval.tests.test_translation.TestBasicParagraphTranslation.test_single_paragraph_variants[hello world\\n-HOLA MUNDO]",
|
| 179 |
+
"eval.tests.test_translation.TestBasicParagraphTranslation.test_single_paragraph_variants[hello\\nworld-HOLA MUNDO]",
|
| 180 |
+
"eval.tests.test_translation.TestInlineFormatting.test_inline_tokenization[**hello** world-**hello** world-**HOLA**-**HOLA**]",
|
| 181 |
+
"eval.tests.test_translation.TestInlineFormatting.test_inline_tokenization[*hello* world-_hello_ world-_HOLA_-_HOLA_]",
|
| 182 |
+
"eval.tests.test_translation.TestInlineFormatting.test_inline_tokenization[_hello_ world-_hello_ world-_HOLA_-_HOLA_]",
|
| 183 |
+
"eval.tests.test_translation.TestInlineFormatting.test_inline_tokenization[`hello` world-`hello` world-`HOLA`-`HOLA`]",
|
| 184 |
+
"eval.tests.test_translation.TestInlineFormatting.test_inline_tokenization[~~hello~~ world-~~hello~~ world-~~HOLA~~-~~HOLA~~]",
|
| 185 |
+
"eval.tests.test_translation.TestInlineFormatting.test_styled_text_combined",
|
| 186 |
+
"eval.tests.test_translation.TestInlineFormatting.test_unmatched_style_emitted_normalized[**hello** world-**hello** world]",
|
| 187 |
+
"eval.tests.test_translation.TestInlineFormatting.test_unmatched_style_emitted_normalized[*hello* world-_hello_ world]",
|
| 188 |
+
"eval.tests.test_translation.TestInlineFormatting.test_unmatched_style_emitted_normalized[_hello_ world-_hello_ world]",
|
| 189 |
+
"eval.tests.test_translation.TestInlineFormatting.test_unmatched_style_emitted_normalized[`hello` world-`hello` world]",
|
| 190 |
+
"eval.tests.test_translation.TestMultipleParagraphs.test_extra_newlines_are_normalized_between_paragraphs",
|
| 191 |
+
"eval.tests.test_translation.TestMultipleParagraphs.test_two_paragraphs_both_translated",
|
| 192 |
+
"eval.tests.test_translation.TestMultipleParagraphs.test_untranslated_paragraph_left_unchanged"
|
| 193 |
+
]
|
| 194 |
+
},
|
| 195 |
+
"generated_module_02": {
|
| 196 |
+
"ignore_reason": "",
|
| 197 |
+
"ignored": false,
|
| 198 |
+
"ignored_tests": [
|
| 199 |
+
{
|
| 200 |
+
"name": "eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[chapter-hyphen]",
|
| 201 |
+
"reasons": [
|
| 202 |
+
{
|
| 203 |
+
"detail": "AssertionError: assert 'Error: Faile...n 12: _start' == 'Error: Faile...ting Markdown' Skipping 195 identical leading characters in diff, use -v to show - ng Markdown + ng Markdown ? + + + Stack backt",
|
| 204 |
+
"id": "gold_fail",
|
| 205 |
+
"message": "test failed against the reference executable",
|
| 206 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 207 |
+
"severity": "error",
|
| 208 |
+
"stage": "gold_execution"
|
| 209 |
+
}
|
| 210 |
+
]
|
| 211 |
+
},
|
| 212 |
+
{
|
| 213 |
+
"name": "eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[parttitle-equals]",
|
| 214 |
+
"reasons": [
|
| 215 |
+
{
|
| 216 |
+
"detail": "AssertionError: assert 'Error: Faile...n 12: _start' == 'Error: Faile...ting Markdown' Skipping 195 identical leading characters in diff, use -v to show - ng Markdown + ng Markdown ? + + + Stack backt",
|
| 217 |
+
"id": "gold_fail",
|
| 218 |
+
"message": "test failed against the reference executable",
|
| 219 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 220 |
+
"severity": "error",
|
| 221 |
+
"stage": "gold_execution"
|
| 222 |
+
}
|
| 223 |
+
]
|
| 224 |
+
},
|
| 225 |
+
{
|
| 226 |
+
"name": "eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[parttitle-hyphen]",
|
| 227 |
+
"reasons": [
|
| 228 |
+
{
|
| 229 |
+
"detail": "AssertionError: assert 'Error: Faile...n 12: _start' == 'Error: Faile...ting Markdown' Skipping 195 identical leading characters in diff, use -v to show - ng Markdown + ng Markdown ? + + + Stack backt",
|
| 230 |
+
"id": "gold_fail",
|
| 231 |
+
"message": "test failed against the reference executable",
|
| 232 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 233 |
+
"severity": "error",
|
| 234 |
+
"stage": "gold_execution"
|
| 235 |
+
}
|
| 236 |
+
]
|
| 237 |
+
},
|
| 238 |
+
{
|
| 239 |
+
"name": "eval.tests.test_preprocess_coverage_round5.test_full_book_mixed_items_all_translated",
|
| 240 |
+
"reasons": [
|
| 241 |
+
{
|
| 242 |
+
"id": "short_substring",
|
| 243 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 244 |
+
"path": "eval/tests/test_preprocess_coverage_round5.py",
|
| 245 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 246 |
+
"severity": "error",
|
| 247 |
+
"stage": "static_lint"
|
| 248 |
+
}
|
| 249 |
+
]
|
| 250 |
+
},
|
| 251 |
+
{
|
| 252 |
+
"name": "eval.tests.test_preprocess_markdown.test_code_block_content_not_translated",
|
| 253 |
+
"reasons": [
|
| 254 |
+
{
|
| 255 |
+
"id": "short_substring",
|
| 256 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 257 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 258 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 259 |
+
"severity": "error",
|
| 260 |
+
"stage": "static_lint"
|
| 261 |
+
}
|
| 262 |
+
]
|
| 263 |
+
},
|
| 264 |
+
{
|
| 265 |
+
"name": "eval.tests.test_preprocess_markdown.test_inline_code_not_translated",
|
| 266 |
+
"reasons": [
|
| 267 |
+
{
|
| 268 |
+
"id": "short_substring",
|
| 269 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 270 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 271 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 272 |
+
"severity": "error",
|
| 273 |
+
"stage": "static_lint"
|
| 274 |
+
}
|
| 275 |
+
]
|
| 276 |
+
},
|
| 277 |
+
{
|
| 278 |
+
"name": "eval.tests.test_preprocess_markdown.test_translate_footnote_definition_text",
|
| 279 |
+
"reasons": [
|
| 280 |
+
{
|
| 281 |
+
"id": "short_substring",
|
| 282 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 283 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 284 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 285 |
+
"severity": "error",
|
| 286 |
+
"stage": "static_lint"
|
| 287 |
+
}
|
| 288 |
+
]
|
| 289 |
+
},
|
| 290 |
+
{
|
| 291 |
+
"name": "eval.tests.test_preprocess_markdown.test_translate_gfm_alert_block",
|
| 292 |
+
"reasons": [
|
| 293 |
+
{
|
| 294 |
+
"id": "short_substring",
|
| 295 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 296 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 297 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 298 |
+
"severity": "error",
|
| 299 |
+
"stage": "static_lint"
|
| 300 |
+
}
|
| 301 |
+
]
|
| 302 |
+
},
|
| 303 |
+
{
|
| 304 |
+
"name": "eval.tests.test_preprocess_markdown.test_translate_table_header_cells",
|
| 305 |
+
"reasons": [
|
| 306 |
+
{
|
| 307 |
+
"id": "short_substring",
|
| 308 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 309 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 310 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 311 |
+
"severity": "error",
|
| 312 |
+
"stage": "static_lint"
|
| 313 |
+
}
|
| 314 |
+
]
|
| 315 |
+
},
|
| 316 |
+
{
|
| 317 |
+
"name": "eval.tests.test_preprocess_markdown.test_translate_tasklist_items",
|
| 318 |
+
"reasons": [
|
| 319 |
+
{
|
| 320 |
+
"id": "short_substring",
|
| 321 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 322 |
+
"path": "eval/tests/test_preprocess_markdown.py",
|
| 323 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 324 |
+
"severity": "error",
|
| 325 |
+
"stage": "static_lint"
|
| 326 |
+
}
|
| 327 |
+
]
|
| 328 |
+
},
|
| 329 |
+
{
|
| 330 |
+
"name": "eval.tests.test_preprocess_passthrough.test_passthrough_separator_and_parttitle_with_no_language",
|
| 331 |
+
"reasons": [
|
| 332 |
+
{
|
| 333 |
+
"id": "short_substring",
|
| 334 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 335 |
+
"path": "eval/tests/test_preprocess_passthrough.py",
|
| 336 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 337 |
+
"severity": "error",
|
| 338 |
+
"stage": "static_lint"
|
| 339 |
+
}
|
| 340 |
+
]
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"name": "eval.tests.test_preprocess_translate.test_translate_preserves_separator_between_chapters",
|
| 344 |
+
"reasons": [
|
| 345 |
+
{
|
| 346 |
+
"id": "short_substring",
|
| 347 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 348 |
+
"path": "eval/tests/test_preprocess_translate.py",
|
| 349 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 350 |
+
"severity": "error",
|
| 351 |
+
"stage": "static_lint"
|
| 352 |
+
}
|
| 353 |
+
]
|
| 354 |
+
},
|
| 355 |
+
{
|
| 356 |
+
"name": "eval.tests.test_supports.test_supports_missing_renderer_falls_back_to_preprocess",
|
| 357 |
+
"reasons": [
|
| 358 |
+
{
|
| 359 |
+
"id": "assertion_disjunction",
|
| 360 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 361 |
+
"path": "eval/tests/test_supports.py",
|
| 362 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 363 |
+
"severity": "error",
|
| 364 |
+
"stage": "static_lint"
|
| 365 |
+
}
|
| 366 |
+
]
|
| 367 |
+
}
|
| 368 |
+
],
|
| 369 |
+
"tests": [
|
| 370 |
+
"eval.tests.test_gettext_core_missing_lines.test_reconstruction_error_leaves_stdout_empty",
|
| 371 |
+
"eval.tests.test_gettext_core_missing_lines.test_strip_formatting_collapses_summary_linewrap[id-and-str-wrap]",
|
| 372 |
+
"eval.tests.test_gettext_core_missing_lines.test_strip_formatting_collapses_summary_linewrap[id-wraps]",
|
| 373 |
+
"eval.tests.test_gettext_core_missing_lines.test_strip_formatting_collapses_summary_linewrap[single-line]",
|
| 374 |
+
"eval.tests.test_gettext_core_missing_lines.test_stripped_summary_applies_to_chapter_name[three-lines]",
|
| 375 |
+
"eval.tests.test_gettext_core_missing_lines.test_stripped_summary_applies_to_chapter_name[two-lines]",
|
| 376 |
+
"eval.tests.test_gettext_core_missing_lines.test_stripped_token_in_code_span_collapses_to_plain_word",
|
| 377 |
+
"eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[chapter-hyphen]",
|
| 378 |
+
"eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[parttitle-equals]",
|
| 379 |
+
"eval.tests.test_gettext_core_missing_lines.test_untranslatable_reconstruction_emits_exact_stderr[parttitle-hyphen]",
|
| 380 |
+
"eval.tests.test_preprocess_coverage_round5.test_atx_heading_text_translated[h1]",
|
| 381 |
+
"eval.tests.test_preprocess_coverage_round5.test_atx_heading_text_translated[h2]",
|
| 382 |
+
"eval.tests.test_preprocess_coverage_round5.test_atx_heading_text_translated[h3]",
|
| 383 |
+
"eval.tests.test_preprocess_coverage_round5.test_backslash_escaped_markdown_passthrough[escaped-bracket]",
|
| 384 |
+
"eval.tests.test_preprocess_coverage_round5.test_backslash_escaped_markdown_passthrough[escaped-star]",
|
| 385 |
+
"eval.tests.test_preprocess_coverage_round5.test_backslash_escaped_markdown_passthrough[star-inline]",
|
| 386 |
+
"eval.tests.test_preprocess_coverage_round5.test_chapter_name_and_content_translated_independently",
|
| 387 |
+
"eval.tests.test_preprocess_coverage_round5.test_empty_book_items_still_emits_book",
|
| 388 |
+
"eval.tests.test_preprocess_coverage_round5.test_empty_msgstr_entry_treated_as_untranslated",
|
| 389 |
+
"eval.tests.test_preprocess_coverage_round5.test_full_book_mixed_items_all_translated",
|
| 390 |
+
"eval.tests.test_preprocess_coverage_round5.test_image_blocks_pass_through_untranslated[inline-with-text]",
|
| 391 |
+
"eval.tests.test_preprocess_coverage_round5.test_image_blocks_pass_through_untranslated[simple]",
|
| 392 |
+
"eval.tests.test_preprocess_coverage_round5.test_image_blocks_pass_through_untranslated[with-title]",
|
| 393 |
+
"eval.tests.test_preprocess_coverage_round5.test_inline_code_with_surrounding_prose_translated[single-span]",
|
| 394 |
+
"eval.tests.test_preprocess_coverage_round5.test_inline_code_with_surrounding_prose_translated[two-spans]",
|
| 395 |
+
"eval.tests.test_preprocess_coverage_round5.test_language_and_catalog_present_but_no_matching_text_passthrough",
|
| 396 |
+
"eval.tests.test_preprocess_coverage_round5.test_link_text_translated_destination_preserved[http-url]",
|
| 397 |
+
"eval.tests.test_preprocess_coverage_round5.test_link_text_translated_destination_preserved[relative]",
|
| 398 |
+
"eval.tests.test_preprocess_coverage_round5.test_link_text_translated_destination_preserved[with-title]",
|
| 399 |
+
"eval.tests.test_preprocess_coverage_round5.test_ordered_list_items_translated_and_normalized[incrementing]",
|
| 400 |
+
"eval.tests.test_preprocess_coverage_round5.test_ordered_list_items_translated_and_normalized[wide-numbers]",
|
| 401 |
+
"eval.tests.test_preprocess_coverage_round5.test_po_dir_wrong_type_config_causes_passthrough[bool]",
|
| 402 |
+
"eval.tests.test_preprocess_coverage_round5.test_po_dir_wrong_type_config_causes_passthrough[int]",
|
| 403 |
+
"eval.tests.test_preprocess_coverage_round5.test_po_dir_wrong_type_config_causes_passthrough[object]",
|
| 404 |
+
"eval.tests.test_preprocess_coverage_round5.test_preprocessor_gettext_table_without_podir_uses_default_po",
|
| 405 |
+
"eval.tests.test_preprocess_coverage_round5.test_preprocessor_table_without_gettext_key_uses_default_po",
|
| 406 |
+
"eval.tests.test_preprocess_coverage_round5.test_setext_heading_normalized_and_translated[setext-body]",
|
| 407 |
+
"eval.tests.test_preprocess_coverage_round5.test_setext_heading_normalized_and_translated[setext-caption]",
|
| 408 |
+
"eval.tests.test_preprocess_coverage_round5.test_strong_embedded_in_prose_group_translated[strong-then-text]",
|
| 409 |
+
"eval.tests.test_preprocess_coverage_round5.test_strong_embedded_in_prose_group_translated[text-then-strong]",
|
| 410 |
+
"eval.tests.test_preprocess_coverage_round5.test_strong_emphasis_paragraph_translated[asterisk-strong]",
|
| 411 |
+
"eval.tests.test_preprocess_coverage_round5.test_strong_emphasis_paragraph_translated[underscore-normalized-to-asterisk]",
|
| 412 |
+
"eval.tests.test_preprocess_coverage_round5.test_unordered_list_items_translated[flat]",
|
| 413 |
+
"eval.tests.test_preprocess_coverage_round5.test_unordered_list_items_translated[nested]",
|
| 414 |
+
"eval.tests.test_preprocess_errors.test_empty_stdin_is_parse_error",
|
| 415 |
+
"eval.tests.test_preprocess_errors.test_invalid_preprocessor_input_payloads_fail[empty-array]",
|
| 416 |
+
"eval.tests.test_preprocess_errors.test_invalid_preprocessor_input_payloads_fail[empty-object]",
|
| 417 |
+
"eval.tests.test_preprocess_errors.test_invalid_preprocessor_input_payloads_fail[obj-no-pair]",
|
| 418 |
+
"eval.tests.test_preprocess_errors.test_invalid_preprocessor_input_payloads_fail[one-elem-array]",
|
| 419 |
+
"eval.tests.test_preprocess_errors.test_invalid_preprocessor_input_payloads_fail[scalar]",
|
| 420 |
+
"eval.tests.test_preprocess_errors.test_malformed_po_missing_header_reports_error",
|
| 421 |
+
"eval.tests.test_preprocess_errors.test_malformed_po_reports_parse_error_and_nonzero",
|
| 422 |
+
"eval.tests.test_preprocess_errors.test_version_mismatch_prints_warning_but_translates",
|
| 423 |
+
"eval.tests.test_preprocess_errors.test_version_mismatch_warning_on_any_unmatched_version[garbage]",
|
| 424 |
+
"eval.tests.test_preprocess_errors.test_version_mismatch_warning_on_any_unmatched_version[major]",
|
| 425 |
+
"eval.tests.test_preprocess_errors.test_version_mismatch_warning_on_any_unmatched_version[newer-patch]",
|
| 426 |
+
"eval.tests.test_preprocess_errors.test_version_mismatch_warning_on_any_unmatched_version[older]",
|
| 427 |
+
"eval.tests.test_preprocess_markdown.test_code_block_content_not_translated",
|
| 428 |
+
"eval.tests.test_preprocess_markdown.test_inline_code_breaks_paragraph_translation",
|
| 429 |
+
"eval.tests.test_preprocess_markdown.test_inline_code_not_translated",
|
| 430 |
+
"eval.tests.test_preprocess_markdown.test_no_translation_for_absent_msgid",
|
| 431 |
+
"eval.tests.test_preprocess_markdown.test_translate_footnote_definition_text",
|
| 432 |
+
"eval.tests.test_preprocess_markdown.test_translate_gfm_alert_block",
|
| 433 |
+
"eval.tests.test_preprocess_markdown.test_translate_heading_keeps_anchor_attributes",
|
| 434 |
+
"eval.tests.test_preprocess_markdown.test_translate_multi_paragraph_normalizes_separation",
|
| 435 |
+
"eval.tests.test_preprocess_markdown.test_translate_plain_single_paragraph",
|
| 436 |
+
"eval.tests.test_preprocess_markdown.test_translate_strikethrough",
|
| 437 |
+
"eval.tests.test_preprocess_markdown.test_translate_table_header_cells",
|
| 438 |
+
"eval.tests.test_preprocess_markdown.test_translate_tasklist_items",
|
| 439 |
+
"eval.tests.test_preprocess_passthrough.test_language_set_but_po_dir_has_no_language",
|
| 440 |
+
"eval.tests.test_preprocess_passthrough.test_language_set_but_po_missing_leaves_book",
|
| 441 |
+
"eval.tests.test_preprocess_passthrough.test_no_language_returns_book_unchanged",
|
| 442 |
+
"eval.tests.test_preprocess_passthrough.test_no_language_variants_leave_content[lang-absent]",
|
| 443 |
+
"eval.tests.test_preprocess_passthrough.test_no_language_variants_leave_content[lang-null]",
|
| 444 |
+
"eval.tests.test_preprocess_passthrough.test_passthrough_separator_and_parttitle_with_no_language",
|
| 445 |
+
"eval.tests.test_preprocess_passthrough.test_passthrough_when_po_has_zero_translate_entries",
|
| 446 |
+
"eval.tests.test_preprocess_translate.test_default_po_dir_resolves_to_po",
|
| 447 |
+
"eval.tests.test_preprocess_translate.test_summary_md_body_translation_uses_stripped_match",
|
| 448 |
+
"eval.tests.test_preprocess_translate.test_summary_md_stripped_translation_is_applied",
|
| 449 |
+
"eval.tests.test_preprocess_translate.test_translate_chapter_name_and_content",
|
| 450 |
+
"eval.tests.test_preprocess_translate.test_translate_multiple_chapters_each_independently",
|
| 451 |
+
"eval.tests.test_preprocess_translate.test_translate_nested_sub_items",
|
| 452 |
+
"eval.tests.test_preprocess_translate.test_translate_part_title",
|
| 453 |
+
"eval.tests.test_preprocess_translate.test_translate_preserves_separator_between_chapters",
|
| 454 |
+
"eval.tests.test_preprocess_translate.test_translate_with_custom_po_dir",
|
| 455 |
+
"eval.tests.test_preprocess_translate.test_untranslated_msgid_keeps_original_text",
|
| 456 |
+
"eval.tests.test_supports.test_four_args_falls_through_to_preprocess",
|
| 457 |
+
"eval.tests.test_supports.test_supports_case_sensitive_lowercase_only",
|
| 458 |
+
"eval.tests.test_supports.test_supports_missing_renderer_falls_back_to_preprocess",
|
| 459 |
+
"eval.tests.test_supports.test_supports_missing_renderer_rejects_bad_stdin[object-empty]",
|
| 460 |
+
"eval.tests.test_supports.test_supports_missing_renderer_rejects_bad_stdin[object-nonempty]",
|
| 461 |
+
"eval.tests.test_supports.test_supports_missing_renderer_rejects_bad_stdin[scalar]",
|
| 462 |
+
"eval.tests.test_supports.test_supports_renderer_exact_match_only_xgettext[gettext]",
|
| 463 |
+
"eval.tests.test_supports.test_supports_renderer_exact_match_only_xgettext[x-gettext]",
|
| 464 |
+
"eval.tests.test_supports.test_supports_renderer_exact_match_only_xgettext[xXgettext]",
|
| 465 |
+
"eval.tests.test_supports.test_supports_renderer_exact_match_only_xgettext[xgettext2]",
|
| 466 |
+
"eval.tests.test_supports.test_supports_supported_renderer[epub]",
|
| 467 |
+
"eval.tests.test_supports.test_supports_supported_renderer[html]",
|
| 468 |
+
"eval.tests.test_supports.test_supports_supported_renderer[latex]",
|
| 469 |
+
"eval.tests.test_supports.test_supports_supported_renderer[linkcheck]",
|
| 470 |
+
"eval.tests.test_supports.test_supports_supported_renderer[markdown]",
|
| 471 |
+
"eval.tests.test_supports.test_supports_supported_renderer[none]",
|
| 472 |
+
"eval.tests.test_supports.test_supports_supported_renderer[pdf]",
|
| 473 |
+
"eval.tests.test_supports.test_supports_supported_renderer[typst]",
|
| 474 |
+
"eval.tests.test_supports.test_supports_supported_renderer[xhtml]",
|
| 475 |
+
"eval.tests.test_supports.test_supports_with_empty_renderer_argument",
|
| 476 |
+
"eval.tests.test_supports.test_supports_xgettext_renderer_unsupported",
|
| 477 |
+
"eval.tests.test_supports.test_three_args_supports_is_not_preprocess"
|
| 478 |
+
]
|
| 479 |
+
},
|
| 480 |
+
"generated_module_03": {
|
| 481 |
+
"ignore_reason": "",
|
| 482 |
+
"ignored": false,
|
| 483 |
+
"ignored_tests": [
|
| 484 |
+
{
|
| 485 |
+
"name": "eval.tests.test_gettext_protocol.test_supports_three_arg_form_with_wrong_keyword_panics",
|
| 486 |
+
"reasons": [
|
| 487 |
+
{
|
| 488 |
+
"id": "short_substring",
|
| 489 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 490 |
+
"path": "eval/tests/test_gettext_protocol.py",
|
| 491 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 492 |
+
"severity": "error",
|
| 493 |
+
"stage": "static_lint"
|
| 494 |
+
},
|
| 495 |
+
{
|
| 496 |
+
"id": "generic_keyword_oracle",
|
| 497 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 498 |
+
"path": "eval/tests/test_gettext_protocol.py",
|
| 499 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 500 |
+
"severity": "error",
|
| 501 |
+
"stage": "static_lint"
|
| 502 |
+
}
|
| 503 |
+
]
|
| 504 |
+
},
|
| 505 |
+
{
|
| 506 |
+
"name": "eval.tests.test_gettext_rendering.test_mismatched_mdbook_version_warns_but_succeeds",
|
| 507 |
+
"reasons": [
|
| 508 |
+
{
|
| 509 |
+
"id": "generic_keyword_oracle",
|
| 510 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 511 |
+
"path": "eval/tests/test_gettext_rendering.py",
|
| 512 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 513 |
+
"severity": "error",
|
| 514 |
+
"stage": "static_lint"
|
| 515 |
+
}
|
| 516 |
+
]
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"name": "eval.tests.test_gettext_rendering.test_translation_replaces_heading_text",
|
| 520 |
+
"reasons": [
|
| 521 |
+
{
|
| 522 |
+
"id": "short_substring",
|
| 523 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 524 |
+
"path": "eval/tests/test_gettext_rendering.py",
|
| 525 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 526 |
+
"severity": "error",
|
| 527 |
+
"stage": "static_lint"
|
| 528 |
+
}
|
| 529 |
+
]
|
| 530 |
+
},
|
| 531 |
+
{
|
| 532 |
+
"name": "eval.tests.test_xgettext_reachability.test_preprocessor_payload_targeting_xgettext_renderer_translates_not_extracts",
|
| 533 |
+
"reasons": [
|
| 534 |
+
{
|
| 535 |
+
"id": "short_substring",
|
| 536 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 537 |
+
"path": "eval/tests/test_xgettext_reachability.py",
|
| 538 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 539 |
+
"severity": "error",
|
| 540 |
+
"stage": "static_lint"
|
| 541 |
+
}
|
| 542 |
+
]
|
| 543 |
+
}
|
| 544 |
+
],
|
| 545 |
+
"tests": [
|
| 546 |
+
"eval.tests.test_gettext_protocol.test_empty_stdin_yields_parse_error",
|
| 547 |
+
"eval.tests.test_gettext_protocol.test_non_tuple_json_array_rejected_length_mismatch",
|
| 548 |
+
"eval.tests.test_gettext_protocol.test_single_scalar_input_rejected",
|
| 549 |
+
"eval.tests.test_gettext_protocol.test_supports_html_is_silent_and_success",
|
| 550 |
+
"eval.tests.test_gettext_protocol.test_supports_three_arg_form_with_wrong_keyword_panics",
|
| 551 |
+
"eval.tests.test_gettext_protocol.test_supports_with_missing_renderer_arg_falls_through_to_preprocess",
|
| 552 |
+
"eval.tests.test_gettext_rendering.test_matching_mdbook_version_no_warning",
|
| 553 |
+
"eval.tests.test_gettext_rendering.test_mismatched_mdbook_version_warns_but_succeeds",
|
| 554 |
+
"eval.tests.test_gettext_rendering.test_passthrough_when_po_missing",
|
| 555 |
+
"eval.tests.test_gettext_rendering.test_passthrough_without_language",
|
| 556 |
+
"eval.tests.test_gettext_rendering.test_translation_is_whole_book_round_trip",
|
| 557 |
+
"eval.tests.test_gettext_rendering.test_translation_replaces_heading_text",
|
| 558 |
+
"eval.tests.test_gettext_rendering.test_wrong_po_dir_yields_passthrough",
|
| 559 |
+
"eval.tests.test_supports_dispatch.test_supports_all_renderers_value_distinct_from_xgettext",
|
| 560 |
+
"eval.tests.test_supports_dispatch.test_supports_renderer_dispatch_full_matrix",
|
| 561 |
+
"eval.tests.test_supports_dispatch.test_supports_supported_renderers_exit_zero",
|
| 562 |
+
"eval.tests.test_supports_dispatch.test_supports_xgettext_is_unsupported",
|
| 563 |
+
"eval.tests.test_xgettext_reachability.test_output_has_no_xgettext_artifacts",
|
| 564 |
+
"eval.tests.test_xgettext_reachability.test_preprocessor_payload_targeting_xgettext_renderer_translates_not_extracts",
|
| 565 |
+
"eval.tests.test_xgettext_reachability.test_render_context_json_does_not_create_pot_file",
|
| 566 |
+
"eval.tests.test_xgettext_reachability.test_supports_xgettext_is_unsupported",
|
| 567 |
+
"eval.tests.test_xgettext_reachability.test_xgettext_render_context_json_is_rejected"
|
| 568 |
+
]
|
| 569 |
+
},
|
| 570 |
+
"generated_module_04": {
|
| 571 |
+
"ignore_reason": "",
|
| 572 |
+
"ignored": false,
|
| 573 |
+
"ignored_tests": [
|
| 574 |
+
{
|
| 575 |
+
"name": "eval.tests.test_preprocess_errors.test_empty_stdin_is_a_parse_error",
|
| 576 |
+
"reasons": [
|
| 577 |
+
{
|
| 578 |
+
"id": "short_substring",
|
| 579 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 580 |
+
"path": "eval/tests/test_preprocess_errors.py",
|
| 581 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 582 |
+
"severity": "error",
|
| 583 |
+
"stage": "static_lint"
|
| 584 |
+
}
|
| 585 |
+
]
|
| 586 |
+
},
|
| 587 |
+
{
|
| 588 |
+
"name": "eval.tests.test_preprocess_errors.test_normalize_cli_is_not_the_shipped_program",
|
| 589 |
+
"reasons": [
|
| 590 |
+
{
|
| 591 |
+
"id": "assertion_disjunction",
|
| 592 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 593 |
+
"path": "eval/tests/test_preprocess_errors.py",
|
| 594 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 595 |
+
"severity": "error",
|
| 596 |
+
"stage": "static_lint"
|
| 597 |
+
},
|
| 598 |
+
{
|
| 599 |
+
"id": "short_substring",
|
| 600 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 601 |
+
"path": "eval/tests/test_preprocess_errors.py",
|
| 602 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 603 |
+
"severity": "error",
|
| 604 |
+
"stage": "static_lint"
|
| 605 |
+
}
|
| 606 |
+
]
|
| 607 |
+
},
|
| 608 |
+
{
|
| 609 |
+
"name": "eval.tests.test_preprocess_errors.test_output_is_well_formed_json_for_pass_through",
|
| 610 |
+
"reasons": [
|
| 611 |
+
{
|
| 612 |
+
"id": "short_substring",
|
| 613 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 614 |
+
"path": "eval/tests/test_preprocess_errors.py",
|
| 615 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 616 |
+
"severity": "error",
|
| 617 |
+
"stage": "static_lint"
|
| 618 |
+
}
|
| 619 |
+
]
|
| 620 |
+
},
|
| 621 |
+
{
|
| 622 |
+
"name": "eval.tests.test_preprocess_errors.test_unsupported_mdbook_version_warns_but_succeeds",
|
| 623 |
+
"reasons": [
|
| 624 |
+
{
|
| 625 |
+
"id": "generic_keyword_oracle",
|
| 626 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 627 |
+
"path": "eval/tests/test_preprocess_errors.py",
|
| 628 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 629 |
+
"severity": "error",
|
| 630 |
+
"stage": "static_lint"
|
| 631 |
+
}
|
| 632 |
+
]
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"name": "eval.tests.test_preprocess_passthrough.test_language_with_nonmatching_po_file_passes_through",
|
| 636 |
+
"reasons": [
|
| 637 |
+
{
|
| 638 |
+
"id": "test_network_dependency",
|
| 639 |
+
"message": "test appears to depend on networking",
|
| 640 |
+
"path": "eval/tests/test_preprocess_passthrough.py",
|
| 641 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 642 |
+
"severity": "error",
|
| 643 |
+
"stage": "static_lint"
|
| 644 |
+
}
|
| 645 |
+
]
|
| 646 |
+
},
|
| 647 |
+
{
|
| 648 |
+
"name": "eval.tests.test_translate_markdown_structures.test_table_code_in_cell_is_kept",
|
| 649 |
+
"reasons": [
|
| 650 |
+
{
|
| 651 |
+
"id": "short_substring",
|
| 652 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 653 |
+
"path": "eval/tests/test_translate_markdown_structures.py",
|
| 654 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 655 |
+
"severity": "error",
|
| 656 |
+
"stage": "static_lint"
|
| 657 |
+
}
|
| 658 |
+
]
|
| 659 |
+
}
|
| 660 |
+
],
|
| 661 |
+
"tests": [
|
| 662 |
+
"eval.tests.test_preprocess_errors.test_empty_stdin_is_a_parse_error",
|
| 663 |
+
"eval.tests.test_preprocess_errors.test_garbage_stdin_is_a_parse_error",
|
| 664 |
+
"eval.tests.test_preprocess_errors.test_language_is_set_but_po_is_invalid_is_passthrough",
|
| 665 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[\"just a string\"]",
|
| 666 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[[ {}, {\"items\": \"wrong-type\"} ]]",
|
| 667 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[[]]",
|
| 668 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[[{\"root\":1}]]",
|
| 669 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[[{}]]",
|
| 670 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[]",
|
| 671 |
+
"eval.tests.test_preprocess_errors.test_malformed_input_documents_fail[null]",
|
| 672 |
+
"eval.tests.test_preprocess_errors.test_normalize_cli_is_not_the_shipped_program",
|
| 673 |
+
"eval.tests.test_preprocess_errors.test_output_is_well_formed_json_for_pass_through",
|
| 674 |
+
"eval.tests.test_preprocess_errors.test_output_json_matches_input_book_shape",
|
| 675 |
+
"eval.tests.test_preprocess_errors.test_single_json_object_is_rejected",
|
| 676 |
+
"eval.tests.test_preprocess_errors.test_supported_mdbook_version_has_no_warning",
|
| 677 |
+
"eval.tests.test_preprocess_errors.test_unsupported_mdbook_version_warns_but_succeeds",
|
| 678 |
+
"eval.tests.test_preprocess_passthrough.test_chapter_number_field_is_preserved",
|
| 679 |
+
"eval.tests.test_preprocess_passthrough.test_empty_book_is_passed_through",
|
| 680 |
+
"eval.tests.test_preprocess_passthrough.test_empty_po_dir_is_passthrough",
|
| 681 |
+
"eval.tests.test_preprocess_passthrough.test_language_with_missing_po_keeps_newline",
|
| 682 |
+
"eval.tests.test_preprocess_passthrough.test_language_with_nonmatching_po_file_passes_through",
|
| 683 |
+
"eval.tests.test_preprocess_passthrough.test_language_without_po_file_preserves_content",
|
| 684 |
+
"eval.tests.test_preprocess_passthrough.test_multi_item_book_round_trips_in_order",
|
| 685 |
+
"eval.tests.test_preprocess_passthrough.test_nested_sub_items_preserved",
|
| 686 |
+
"eval.tests.test_preprocess_passthrough.test_no_language_preserves_content_byte_exact",
|
| 687 |
+
"eval.tests.test_preprocess_passthrough.test_po_dir_missing_dir_is_passthrough",
|
| 688 |
+
"eval.tests.test_preprocess_translation.test_custom_po_dir_is_resolved",
|
| 689 |
+
"eval.tests.test_preprocess_translation.test_exact_msgid_block_is_replaced",
|
| 690 |
+
"eval.tests.test_preprocess_translation.test_language_code_selects_its_own_po",
|
| 691 |
+
"eval.tests.test_preprocess_translation.test_markdown_syntax_marker_is_not_part_of_msgid",
|
| 692 |
+
"eval.tests.test_preprocess_translation.test_msgid_inside_code_spans_preserved",
|
| 693 |
+
"eval.tests.test_preprocess_translation.test_msgid_is_not_a_substring_matcher",
|
| 694 |
+
"eval.tests.test_preprocess_translation.test_msgid_with_no_msgstr_is_untranslated",
|
| 695 |
+
"eval.tests.test_preprocess_translation.test_msgstr_with_special_utf8_preserved",
|
| 696 |
+
"eval.tests.test_preprocess_translation.test_multiline_msgid_does_not_match_softbreak_content",
|
| 697 |
+
"eval.tests.test_preprocess_translation.test_multiple_chapters_translated_independently",
|
| 698 |
+
"eval.tests.test_preprocess_translation.test_nested_chapter_is_translated",
|
| 699 |
+
"eval.tests.test_preprocess_translation.test_nonmatching_block_is_kept_but_newline_stripped",
|
| 700 |
+
"eval.tests.test_preprocess_translation.test_two_matching_paragraphs_both_translate",
|
| 701 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[abc123]",
|
| 702 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[custom-renderer]",
|
| 703 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[epub]",
|
| 704 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[html]",
|
| 705 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[markdown]",
|
| 706 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[notebook]",
|
| 707 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[pandoc]",
|
| 708 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[pdf]",
|
| 709 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[text]",
|
| 710 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[toc]",
|
| 711 |
+
"eval.tests.test_supports_protocol.test_supports_accepts_common_renderers[xgettext-2]",
|
| 712 |
+
"eval.tests.test_supports_protocol.test_supports_does_not_consume_stdin_when_renderer_accepted",
|
| 713 |
+
"eval.tests.test_supports_protocol.test_supports_first_arg_must_be_literal_supports",
|
| 714 |
+
"eval.tests.test_supports_protocol.test_supports_ignores_stdin_payload_for_renderer_decision",
|
| 715 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[ ]",
|
| 716 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[ xgettext]",
|
| 717 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[XGET ]",
|
| 718 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[XGETTEXT]",
|
| 719 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[Xgettext]",
|
| 720 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[\\txgettext]",
|
| 721 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[]",
|
| 722 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[xgettext ]",
|
| 723 |
+
"eval.tests.test_supports_protocol.test_supports_is_byte_exact_except_xgettext[xgettextt]",
|
| 724 |
+
"eval.tests.test_supports_protocol.test_supports_one_renderer_single_arg_is_accepted",
|
| 725 |
+
"eval.tests.test_supports_protocol.test_supports_rejects_exact_xgettext",
|
| 726 |
+
"eval.tests.test_supports_protocol.test_supports_with_more_than_three_args_falls_through_to_stdin[extras0]",
|
| 727 |
+
"eval.tests.test_supports_protocol.test_supports_with_more_than_three_args_falls_through_to_stdin[extras1]",
|
| 728 |
+
"eval.tests.test_translate_book_items.test_chapter_name_is_translated",
|
| 729 |
+
"eval.tests.test_translate_book_items.test_chapter_name_translated_independently_from_content",
|
| 730 |
+
"eval.tests.test_translate_book_items.test_leading_blank_lines_removed_on_translation",
|
| 731 |
+
"eval.tests.test_translate_book_items.test_nested_subitems_translated",
|
| 732 |
+
"eval.tests.test_translate_book_items.test_parttitle_is_translated",
|
| 733 |
+
"eval.tests.test_translate_book_items.test_separator_item_preserved_under_translation",
|
| 734 |
+
"eval.tests.test_translate_book_items.test_summary_source_entry_matches_stripped_name",
|
| 735 |
+
"eval.tests.test_translate_book_items.test_summary_source_entry_matches_stripped_parttitle",
|
| 736 |
+
"eval.tests.test_translate_book_items.test_summary_stripped_entry_does_not_apply_without_summary_reference",
|
| 737 |
+
"eval.tests.test_translate_book_items.test_trailing_newline_stripped_when_translated",
|
| 738 |
+
"eval.tests.test_translate_book_items.test_two_paragraphs_each_translated",
|
| 739 |
+
"eval.tests.test_translate_markdown_structures.test_admonish_body_only_msgid_does_not_translate_fence",
|
| 740 |
+
"eval.tests.test_translate_markdown_structures.test_block_html_wraps_translated_paragraphs",
|
| 741 |
+
"eval.tests.test_translate_markdown_structures.test_code_block_block_comment_translated",
|
| 742 |
+
"eval.tests.test_translate_markdown_structures.test_code_block_line_comment_translated",
|
| 743 |
+
"eval.tests.test_translate_markdown_structures.test_code_block_without_language_is_preserved",
|
| 744 |
+
"eval.tests.test_translate_markdown_structures.test_concat_inline_text_not_substring",
|
| 745 |
+
"eval.tests.test_translate_markdown_structures.test_escaped_pipe_in_table_survives",
|
| 746 |
+
"eval.tests.test_translate_markdown_structures.test_footnote_body_and_reference_translated",
|
| 747 |
+
"eval.tests.test_translate_markdown_structures.test_footnote_only_csv_with_unmatched_definition_preserved",
|
| 748 |
+
"eval.tests.test_translate_markdown_structures.test_gfm_alert_no_translation_preserved",
|
| 749 |
+
"eval.tests.test_translate_markdown_structures.test_gfm_alert_title_and_body_translated",
|
| 750 |
+
"eval.tests.test_translate_markdown_structures.test_hardbreak_line_not_split_for_match",
|
| 751 |
+
"eval.tests.test_translate_markdown_structures.test_heading_attributes_preserved_during_translation",
|
| 752 |
+
"eval.tests.test_translate_markdown_structures.test_html_in_table",
|
| 753 |
+
"eval.tests.test_translate_markdown_structures.test_inline_html_is_translated_around_tags",
|
| 754 |
+
"eval.tests.test_translate_markdown_structures.test_msgid_not_matched_inside_code_span",
|
| 755 |
+
"eval.tests.test_translate_markdown_structures.test_msgid_not_matched_inside_emphasis",
|
| 756 |
+
"eval.tests.test_translate_markdown_structures.test_msgid_not_matched_inside_strikethrough",
|
| 757 |
+
"eval.tests.test_translate_markdown_structures.test_msgid_not_matched_inside_strong",
|
| 758 |
+
"eval.tests.test_translate_markdown_structures.test_table_code_in_cell_is_kept",
|
| 759 |
+
"eval.tests.test_translate_markdown_structures.test_table_columns_and_rows_are_translated",
|
| 760 |
+
"eval.tests.test_translate_markdown_structures.test_tasklist_items_translated_and_boxes_kept"
|
| 761 |
+
]
|
| 762 |
+
}
|
| 763 |
+
},
|
| 764 |
+
"commit": "da4106dead1b0bb684eeda65d5490510af90657e",
|
| 765 |
+
"data_source": "synthetic_programgym",
|
| 766 |
+
"difficulty": "easy",
|
| 767 |
+
"difficulty_score": 1.7655195430979527,
|
| 768 |
+
"eval_clean_hashes": [
|
| 769 |
+
"5569e1c96b55a982e697eab8dbd662b75dc09eef283f89ee14da86d921e66703"
|
| 770 |
+
],
|
| 771 |
+
"input_record": {
|
| 772 |
+
"codeql_db_mb": 84.69,
|
| 773 |
+
"codeql_status": true,
|
| 774 |
+
"codeql_time": 58.807315804995596,
|
| 775 |
+
"commit": "da4106dead1b0bb684eeda65d5490510af90657e",
|
| 776 |
+
"commits": 407,
|
| 777 |
+
"contributors": 24,
|
| 778 |
+
"difficulty": "easy",
|
| 779 |
+
"difficulty_code_lines": 5828,
|
| 780 |
+
"difficulty_has_tests": false,
|
| 781 |
+
"difficulty_product_code_lines": 5828,
|
| 782 |
+
"difficulty_runtime_deps": 0,
|
| 783 |
+
"difficulty_score": 1.7655195430979527,
|
| 784 |
+
"difficulty_test_code_lines": 0,
|
| 785 |
+
"full_name": "google/mdbook-i18n-helpers",
|
| 786 |
+
"github_stars": 222,
|
| 787 |
+
"input_codeql_db": "rust_codeql/google__mdbook-i18n-helpers",
|
| 788 |
+
"language": "rs",
|
| 789 |
+
"pb_match": [
|
| 790 |
+
{
|
| 791 |
+
"pb_fullname": "rust-lang/mdBook",
|
| 792 |
+
"rank": 102,
|
| 793 |
+
"similarity": 0.5368180871009827
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"pb_fullname": "crowdagger/crowbook",
|
| 797 |
+
"rank": 27,
|
| 798 |
+
"similarity": 0.5811554193496704
|
| 799 |
+
},
|
| 800 |
+
{
|
| 801 |
+
"pb_fullname": "typst/typst",
|
| 802 |
+
"rank": 956,
|
| 803 |
+
"similarity": 0.4418737292289734
|
| 804 |
+
}
|
| 805 |
+
],
|
| 806 |
+
"repo_age": 3.37,
|
| 807 |
+
"repo_path": "rust/google__mdbook-i18n-helpers",
|
| 808 |
+
"rust_channel": "stable",
|
| 809 |
+
"rust_edition": "2021",
|
| 810 |
+
"rust_release_date": "2021-10-21",
|
| 811 |
+
"rust_version": "1.56.0",
|
| 812 |
+
"rust_version_source": "edition",
|
| 813 |
+
"source": "commit:da4106dead1b0bb684eeda65d5490510af90657e",
|
| 814 |
+
"status": "done",
|
| 815 |
+
"url": "https://github.com/google/mdbook-i18n-helpers"
|
| 816 |
+
},
|
| 817 |
+
"instance_id": "google__mdbook-i18n-helpers.da4106d",
|
| 818 |
+
"language": "rust",
|
| 819 |
+
"module_iterations": [
|
| 820 |
+
{
|
| 821 |
+
"actual_iterations": 5,
|
| 822 |
+
"branch_name": "generated_module_01",
|
| 823 |
+
"iteration_limit": 5,
|
| 824 |
+
"module_index": 1,
|
| 825 |
+
"module_kind": "source",
|
| 826 |
+
"termination_reason": "max_iterations"
|
| 827 |
+
},
|
| 828 |
+
{
|
| 829 |
+
"actual_iterations": 5,
|
| 830 |
+
"branch_name": "generated_module_02",
|
| 831 |
+
"iteration_limit": 5,
|
| 832 |
+
"module_index": 2,
|
| 833 |
+
"module_kind": "source",
|
| 834 |
+
"termination_reason": "max_iterations"
|
| 835 |
+
},
|
| 836 |
+
{
|
| 837 |
+
"actual_iterations": 5,
|
| 838 |
+
"branch_name": "generated_module_03",
|
| 839 |
+
"iteration_limit": 5,
|
| 840 |
+
"module_index": 3,
|
| 841 |
+
"module_kind": "source",
|
| 842 |
+
"termination_reason": "max_iterations"
|
| 843 |
+
},
|
| 844 |
+
{
|
| 845 |
+
"actual_iterations": 5,
|
| 846 |
+
"branch_name": "generated_module_04",
|
| 847 |
+
"iteration_limit": 5,
|
| 848 |
+
"module_index": 4,
|
| 849 |
+
"module_kind": "source",
|
| 850 |
+
"termination_reason": "max_iterations"
|
| 851 |
+
}
|
| 852 |
+
],
|
| 853 |
+
"repository": "google/mdbook-i18n-helpers"
|
| 854 |
+
}
|
google--mdbook-i18n-helpers.da4106d/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
|