Datasets:
commit (part 31)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +4 -0
- digitalinblue--celero.02239ea/tests/Dockerfile +1 -0
- dim13--otpauth.821b3c1/environment/Dockerfile +1 -0
- dim13--otpauth.821b3c1/tests/Dockerfile +1 -0
- dingoblog--dingo.6a7966f/environment/Dockerfile +1 -0
- dingoblog--dingo.6a7966f/tests/Dockerfile +1 -0
- disneystreaming--ssm-helpers.1e43224/environment/Dockerfile +98 -0
- disneystreaming--ssm-helpers.1e43224/environment/docker-compose.yaml +22 -0
- disneystreaming--ssm-helpers.1e43224/environment/download.sh +265 -0
- disneystreaming--ssm-helpers.1e43224/environment/executable +3 -0
- disneystreaming--ssm-helpers.1e43224/environment/harbor_configure_apt_mirror.sh +37 -0
- disneystreaming--ssm-helpers.1e43224/environment/harbor_configure_java_mirrors.sh +50 -0
- disneystreaming--ssm-helpers.1e43224/environment/harbor_prepare_download_env.sh +44 -0
- disneystreaming--ssm-helpers.1e43224/environment/programgym-go.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/environment/workspace.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/instruction.md +98 -0
- disneystreaming--ssm-helpers.1e43224/solution/solve.sh +33 -0
- disneystreaming--ssm-helpers.1e43224/task.toml +69 -0
- disneystreaming--ssm-helpers.1e43224/tests/Dockerfile +112 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_05.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_06.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/docker-compose.yaml +22 -0
- disneystreaming--ssm-helpers.1e43224/tests/download.sh +265 -0
- disneystreaming--ssm-helpers.1e43224/tests/executable +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/harbor_configure_apt_mirror.sh +37 -0
- disneystreaming--ssm-helpers.1e43224/tests/harbor_configure_java_mirrors.sh +50 -0
- disneystreaming--ssm-helpers.1e43224/tests/harbor_prepare_download_env.sh +44 -0
- disneystreaming--ssm-helpers.1e43224/tests/programgym-go.tar.gz +3 -0
- disneystreaming--ssm-helpers.1e43224/tests/programgym_evaluator.py +1201 -0
- disneystreaming--ssm-helpers.1e43224/tests/programgym_task.json +822 -0
- disneystreaming--ssm-helpers.1e43224/tests/test.sh +82 -0
- disneystreaming--ssm-helpers.1e43224/tests/workspace.tar.gz +3 -0
- divan--expvarmon.8e0b3d2/environment/Dockerfile +1 -0
- divan--expvarmon.8e0b3d2/tests/Dockerfile +1 -0
- dixonwille--wmenu.09d89f6/environment/Dockerfile +1 -0
- dixonwille--wmenu.09d89f6/tests/Dockerfile +1 -0
- djc--bb8.ba51260/environment/Dockerfile +101 -0
- djc--bb8.ba51260/environment/docker-compose.yaml +22 -0
- djc--bb8.ba51260/environment/download.sh +1969 -0
- djc--bb8.ba51260/environment/executable +3 -0
- djc--bb8.ba51260/environment/harbor_configure_apt_mirror.sh +37 -0
- djc--bb8.ba51260/environment/harbor_configure_java_mirrors.sh +50 -0
- djc--bb8.ba51260/environment/harbor_prepare_download_env.sh +44 -0
- djc--bb8.ba51260/environment/harbor_prepare_rust_env.sh +54 -0
- djc--bb8.ba51260/environment/workspace.tar.gz +3 -0
- djc--bb8.ba51260/instruction.md +98 -0
.gitattributes
CHANGED
|
@@ -3156,3 +3156,7 @@ devoncrawford--video-editing-automation.2098b01/environment/executable filter=lf
|
|
| 3156 |
devoncrawford--video-editing-automation.2098b01/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3157 |
diemus--azure-openai-proxy.95fadc4/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3158 |
diemus--azure-openai-proxy.95fadc4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3156 |
devoncrawford--video-editing-automation.2098b01/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3157 |
diemus--azure-openai-proxy.95fadc4/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3158 |
diemus--azure-openai-proxy.95fadc4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3159 |
+
disneystreaming--ssm-helpers.1e43224/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3160 |
+
disneystreaming--ssm-helpers.1e43224/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 3161 |
+
djc--bb8.ba51260/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 3162 |
+
djc--bb8.ba51260/tests/executable filter=lfs diff=lfs merge=lfs -text
|
digitalinblue--celero.02239ea/tests/Dockerfile
CHANGED
|
@@ -61,3 +61,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 61 |
COPY programgym_task.json /tests/programgym_task.json
|
| 62 |
COPY blobs/ /tests/blobs/
|
| 63 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 61 |
COPY programgym_task.json /tests/programgym_task.json
|
| 62 |
COPY blobs/ /tests/blobs/
|
| 63 |
RUN chmod +x /tests/test.sh
|
| 64 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
dim13--otpauth.821b3c1/environment/Dockerfile
CHANGED
|
@@ -62,3 +62,4 @@ RUN mkdir -p /home/agent \
|
|
| 62 |
&& chmod 111 /workspace/executable
|
| 63 |
ENV HOME=/home/agent
|
| 64 |
WORKDIR /workspace
|
|
|
|
|
|
| 62 |
&& chmod 111 /workspace/executable
|
| 63 |
ENV HOME=/home/agent
|
| 64 |
WORKDIR /workspace
|
| 65 |
+
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"]
|
dim13--otpauth.821b3c1/tests/Dockerfile
CHANGED
|
@@ -71,3 +71,4 @@ COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
|
| 71 |
COPY programgym_task.json /tests/programgym_task.json
|
| 72 |
COPY blobs/ /tests/blobs/
|
| 73 |
RUN chmod +x /tests/test.sh
|
|
|
|
|
|
| 71 |
COPY programgym_task.json /tests/programgym_task.json
|
| 72 |
COPY blobs/ /tests/blobs/
|
| 73 |
RUN chmod +x /tests/test.sh
|
| 74 |
+
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"]
|
dingoblog--dingo.6a7966f/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"]
|
dingoblog--dingo.6a7966f/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"]
|
disneystreaming--ssm-helpers.1e43224/environment/Dockerfile
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 51 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 52 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 53 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 54 |
+
ENV HOME=/workspace
|
| 55 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 56 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 57 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 58 |
+
ENV GOROOT=/usr/local/go
|
| 59 |
+
ENV GOPATH=/workspace/.go
|
| 60 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 61 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 62 |
+
ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 63 |
+
ENV PAGER=cat
|
| 64 |
+
ENV MANPAGER=cat
|
| 65 |
+
ENV LESS=-R
|
| 66 |
+
ENV TQDM_DISABLE=1
|
| 67 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 68 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
|
| 69 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 70 |
+
RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
|
| 71 |
+
RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
|
| 72 |
+
WORKDIR /workspace
|
| 73 |
+
ADD workspace.tar.gz /workspace/
|
| 74 |
+
COPY executable /workspace/executable
|
| 75 |
+
COPY download.sh /workspace/download.sh
|
| 76 |
+
RUN chmod 755 /workspace/download.sh
|
| 77 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 78 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 79 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 80 |
+
&& rm -f /workspace/download.sh \
|
| 81 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 82 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 83 |
+
RUN chmod 111 /workspace/executable
|
| 84 |
+
WORKDIR /workspace
|
| 85 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 86 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 87 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 88 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 89 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 90 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 91 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 92 |
+
RUN mkdir -p /home/agent \
|
| 93 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 94 |
+
&& chown agent:agent /workspace/executable \
|
| 95 |
+
&& chmod 111 /workspace/executable
|
| 96 |
+
ENV HOME=/home/agent
|
| 97 |
+
WORKDIR /workspace
|
| 98 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /tmp/programgym-download.sh /tmp/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
disneystreaming--ssm-helpers.1e43224/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}
|
disneystreaming--ssm-helpers.1e43224/environment/download.sh
ADDED
|
@@ -0,0 +1,265 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module github.com/disneystreaming/ssm-helpers
|
| 9 |
+
|
| 10 |
+
go 1.18
|
| 11 |
+
|
| 12 |
+
require (
|
| 13 |
+
github.com/AlecAivazis/survey/v2 v2.3.4
|
| 14 |
+
github.com/aws/aws-sdk-go v1.44.19
|
| 15 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124
|
| 16 |
+
github.com/mitchellh/go-homedir v1.1.0
|
| 17 |
+
github.com/sirupsen/logrus v1.8.1
|
| 18 |
+
github.com/spf13/cobra v1.4.0
|
| 19 |
+
github.com/stretchr/testify v1.7.1
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
require (
|
| 23 |
+
github.com/davecgh/go-spew v1.1.1 // indirect
|
| 24 |
+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
| 25 |
+
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
| 26 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
| 27 |
+
github.com/kr/pretty v0.1.0 // indirect
|
| 28 |
+
github.com/mattn/go-colorable v0.1.12 // indirect
|
| 29 |
+
github.com/mattn/go-isatty v0.0.14 // indirect
|
| 30 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
|
| 31 |
+
github.com/pmezard/go-difflib v1.0.0 // indirect
|
| 32 |
+
github.com/spf13/pflag v1.0.5 // indirect
|
| 33 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
|
| 34 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
|
| 35 |
+
golang.org/x/text v0.3.7 // indirect
|
| 36 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
| 37 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 // indirect
|
| 38 |
+
)
|
| 39 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 40 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
|
| 41 |
+
github.com/AlecAivazis/survey/v2 v2.3.4 h1:pchTU9rsLUSvWEl2Aq9Pv3k0IE2fkqtGxazskAMd9Ng=
|
| 42 |
+
github.com/AlecAivazis/survey/v2 v2.3.4/go.mod h1:hrV6Y/kQCLhIZXGcriDCUBtB3wnN7156gMXJ3+b23xM=
|
| 43 |
+
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
|
| 44 |
+
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
|
| 45 |
+
github.com/aws/aws-sdk-go v1.44.19 h1:dhI6p4l6kisnA7gBAM8sP5YIk0bZ9HNAj7yrK7kcfdU=
|
| 46 |
+
github.com/aws/aws-sdk-go v1.44.19/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
|
| 47 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
| 48 |
+
github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI=
|
| 49 |
+
github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
| 50 |
+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
| 51 |
+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
| 52 |
+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
| 53 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124 h1:6ZyMGA6nvZAb/wb6t6CN5US1JFxBEgsCtiV706LIGFE=
|
| 54 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124/go.mod h1:sJ15RPrsx6cwRFtuCekC/Ja1UfhGUzsR3BYG1Xs1EnQ=
|
| 55 |
+
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
|
| 56 |
+
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
|
| 57 |
+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
| 58 |
+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
| 59 |
+
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
|
| 60 |
+
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
| 61 |
+
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
|
| 62 |
+
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
|
| 63 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
| 64 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
| 65 |
+
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
| 66 |
+
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
| 67 |
+
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
| 68 |
+
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
| 69 |
+
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
| 70 |
+
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
| 71 |
+
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
| 72 |
+
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
| 73 |
+
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
| 74 |
+
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
|
| 75 |
+
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
| 76 |
+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
| 77 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
|
| 78 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
| 79 |
+
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
| 80 |
+
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
| 81 |
+
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
| 82 |
+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
| 83 |
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
| 84 |
+
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
| 85 |
+
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
| 86 |
+
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
| 87 |
+
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
|
| 88 |
+
github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g=
|
| 89 |
+
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
| 90 |
+
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
| 91 |
+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
| 92 |
+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
| 93 |
+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
| 94 |
+
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
|
| 95 |
+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
| 96 |
+
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
| 97 |
+
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
| 98 |
+
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 99 |
+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 100 |
+
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 101 |
+
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 102 |
+
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 103 |
+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 104 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=
|
| 105 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 106 |
+
golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
|
| 107 |
+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
| 108 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 h1:EH1Deb8WZJ0xc0WK//leUHXcX9aLE5SymusoTmMZye8=
|
| 109 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
| 110 |
+
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
| 111 |
+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
| 112 |
+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
| 113 |
+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
| 114 |
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 115 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
| 116 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 117 |
+
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
| 118 |
+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
| 119 |
+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
| 120 |
+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
| 121 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 h1:dbuHpmKjkDzSOMKAWl10QNlgaZUd3V1q99xc81tt2Kc=
|
| 122 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
| 123 |
+
PROGRAMGYM_GO_SUM_EOF
|
| 124 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 125 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 126 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 127 |
+
*"|"*|*","*)
|
| 128 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 129 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 130 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 131 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 132 |
+
fi
|
| 133 |
+
;;
|
| 134 |
+
esac
|
| 135 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 136 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 137 |
+
fi
|
| 138 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 139 |
+
import os
|
| 140 |
+
import signal
|
| 141 |
+
import subprocess
|
| 142 |
+
import sys
|
| 143 |
+
import time
|
| 144 |
+
|
| 145 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 146 |
+
if not command:
|
| 147 |
+
raise SystemExit(125)
|
| 148 |
+
environment = os.environ.copy()
|
| 149 |
+
environment["GOPROXY"] = proxy
|
| 150 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 151 |
+
try:
|
| 152 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 153 |
+
except subprocess.TimeoutExpired:
|
| 154 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 155 |
+
sentinel.write("expired\n")
|
| 156 |
+
try:
|
| 157 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 158 |
+
except ProcessLookupError:
|
| 159 |
+
pass
|
| 160 |
+
deadline = time.monotonic() + float(grace_text)
|
| 161 |
+
group_alive = True
|
| 162 |
+
while time.monotonic() < deadline:
|
| 163 |
+
process.poll()
|
| 164 |
+
try:
|
| 165 |
+
os.killpg(process.pid, 0)
|
| 166 |
+
except ProcessLookupError:
|
| 167 |
+
group_alive = False
|
| 168 |
+
break
|
| 169 |
+
time.sleep(0.05)
|
| 170 |
+
if group_alive:
|
| 171 |
+
try:
|
| 172 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 173 |
+
except ProcessLookupError:
|
| 174 |
+
pass
|
| 175 |
+
process.wait()
|
| 176 |
+
raise SystemExit(124)
|
| 177 |
+
if returncode < 0:
|
| 178 |
+
returncode = 128 - returncode
|
| 179 |
+
raise SystemExit(returncode)
|
| 180 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 181 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 182 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 183 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 184 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 185 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 186 |
+
return 1
|
| 187 |
+
else
|
| 188 |
+
exit 1
|
| 189 |
+
fi
|
| 190 |
+
fi
|
| 191 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 192 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 193 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 194 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 195 |
+
return 1
|
| 196 |
+
else
|
| 197 |
+
exit 1
|
| 198 |
+
fi
|
| 199 |
+
fi
|
| 200 |
+
_programgym_go_with_nexus_timeout() {
|
| 201 |
+
local programgym_go_rc
|
| 202 |
+
local programgym_go_timeout_sentinel
|
| 203 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 204 |
+
return 1
|
| 205 |
+
fi
|
| 206 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 207 |
+
programgym_go_rc=0
|
| 208 |
+
else
|
| 209 |
+
programgym_go_rc=$?
|
| 210 |
+
fi
|
| 211 |
+
programgym_go_timed_out=0
|
| 212 |
+
if [ -s "$programgym_go_timeout_sentinel" ]; then
|
| 213 |
+
programgym_go_timed_out=1
|
| 214 |
+
fi
|
| 215 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 216 |
+
if [ "$programgym_go_rc" -eq 0 ]; then
|
| 217 |
+
return 0
|
| 218 |
+
fi
|
| 219 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 220 |
+
printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 221 |
+
return "$programgym_go_rc"
|
| 222 |
+
fi
|
| 223 |
+
if [ "$programgym_go_timed_out" -eq 1 ]; then
|
| 224 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 225 |
+
else
|
| 226 |
+
printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 227 |
+
fi
|
| 228 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 229 |
+
}
|
| 230 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 231 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 232 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 233 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 234 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 235 |
+
return 1
|
| 236 |
+
else
|
| 237 |
+
exit 1
|
| 238 |
+
fi
|
| 239 |
+
fi
|
| 240 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 241 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 242 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 243 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 244 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 245 |
+
else
|
| 246 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 247 |
+
fi
|
| 248 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 249 |
+
export GOTOOLCHAIN=local
|
| 250 |
+
if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
|
| 251 |
+
printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
|
| 252 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 253 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 254 |
+
return 1
|
| 255 |
+
else
|
| 256 |
+
exit 1
|
| 257 |
+
fi
|
| 258 |
+
fi
|
| 259 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 260 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 261 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 262 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 263 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 264 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 265 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
disneystreaming--ssm-helpers.1e43224/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9a455f2ab27db7bb83af9d46a36f945653cd81f3735d73c909ef64a072dc896
|
| 3 |
+
size 34078598
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/environment/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
|
| 3 |
+
size 59908810
|
disneystreaming--ssm-helpers.1e43224/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99b4eb9bbf504459a0c2df76ddb34036ca2c2ae4130e930788ab7a784d73eaed
|
| 3 |
+
size 1262
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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/disneystreaming--ssm-helpers.1e43224"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for disneystreaming/ssm-helpers"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "disneystreaming__ssm-helpers.1e43224"
|
| 32 |
+
repository = "disneystreaming/ssm-helpers"
|
| 33 |
+
commit = "1e432245585a4d032950673b7cb8b57b19797459"
|
| 34 |
+
language = "go"
|
| 35 |
+
difficulty = "medium"
|
| 36 |
+
difficulty_score = 2.7500066994772316
|
| 37 |
+
test_branches = 6
|
| 38 |
+
test_count = 676
|
| 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"
|
disneystreaming--ssm-helpers.1e43224/tests/Dockerfile
ADDED
|
@@ -0,0 +1,112 @@
|
|
|
|
|
|
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_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 51 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 52 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 53 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 54 |
+
ENV HOME=/workspace
|
| 55 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 56 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 57 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 58 |
+
ENV GOROOT=/usr/local/go
|
| 59 |
+
ENV GOPATH=/workspace/.go
|
| 60 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 61 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 62 |
+
ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 63 |
+
ENV PAGER=cat
|
| 64 |
+
ENV MANPAGER=cat
|
| 65 |
+
ENV LESS=-R
|
| 66 |
+
ENV TQDM_DISABLE=1
|
| 67 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 68 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
|
| 69 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 70 |
+
RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
|
| 71 |
+
RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
|
| 72 |
+
WORKDIR /workspace
|
| 73 |
+
ADD workspace.tar.gz /workspace/
|
| 74 |
+
COPY executable /workspace/executable
|
| 75 |
+
COPY download.sh /workspace/download.sh
|
| 76 |
+
RUN chmod 755 /workspace/download.sh
|
| 77 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 78 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 79 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 80 |
+
&& rm -f /workspace/download.sh \
|
| 81 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 82 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 83 |
+
RUN chmod 111 /workspace/executable
|
| 84 |
+
WORKDIR /workspace
|
| 85 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 86 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 87 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 88 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 89 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 90 |
+
&& mkdir -p /workspace /tests
|
| 91 |
+
|
| 92 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 93 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 94 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 95 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 96 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 97 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 98 |
+
RUN set -eu; \
|
| 99 |
+
pip_break_system_packages=""; \
|
| 100 |
+
if python3 -m pip install --help | grep -q -- '--break-system-packages'; then \
|
| 101 |
+
pip_break_system_packages="--break-system-packages"; \
|
| 102 |
+
fi; \
|
| 103 |
+
python3 -m pip install ${pip_break_system_packages} \
|
| 104 |
+
--no-cache-dir --disable-pip-version-check --retries 10 --timeout 120 \
|
| 105 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 106 |
+
|
| 107 |
+
COPY test.sh /tests/test.sh
|
| 108 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 109 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 110 |
+
COPY blobs/ /tests/blobs/
|
| 111 |
+
RUN chmod +x /tests/test.sh
|
| 112 |
+
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"]
|
disneystreaming--ssm-helpers.1e43224/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:83cabe29fb88c4ebec010348bcb84a101f545e7def90dbf83577bebb535f977d
|
| 3 |
+
size 17861
|
disneystreaming--ssm-helpers.1e43224/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:75aff3b1aa32aa39a141c3b7a09b2767e3c61bc89d0b09786225f984e9ca3276
|
| 3 |
+
size 11653
|
disneystreaming--ssm-helpers.1e43224/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:cd1739e17c0f18383aa50512b7bbf7ed987eab10fc952878d25d964ff9194189
|
| 3 |
+
size 9257
|
disneystreaming--ssm-helpers.1e43224/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:1c03e0a5365f46b80d260b13adffb7ce2f1bd109c4412fe87aa6342245e6bf16
|
| 3 |
+
size 11353
|
disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_05.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c8977a91bf50e0f17795299ab9bb772e8cd15dff73b470c4cb340977f2004879
|
| 3 |
+
size 17951
|
disneystreaming--ssm-helpers.1e43224/tests/blobs/tests/generated_module_06.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b568c71de4e78c8d5825035232c3038384536f200b5ea27a3f93e7529fc34b02
|
| 3 |
+
size 12080
|
disneystreaming--ssm-helpers.1e43224/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: ${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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module github.com/disneystreaming/ssm-helpers
|
| 9 |
+
|
| 10 |
+
go 1.18
|
| 11 |
+
|
| 12 |
+
require (
|
| 13 |
+
github.com/AlecAivazis/survey/v2 v2.3.4
|
| 14 |
+
github.com/aws/aws-sdk-go v1.44.19
|
| 15 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124
|
| 16 |
+
github.com/mitchellh/go-homedir v1.1.0
|
| 17 |
+
github.com/sirupsen/logrus v1.8.1
|
| 18 |
+
github.com/spf13/cobra v1.4.0
|
| 19 |
+
github.com/stretchr/testify v1.7.1
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
require (
|
| 23 |
+
github.com/davecgh/go-spew v1.1.1 // indirect
|
| 24 |
+
github.com/inconshreveable/mousetrap v1.0.0 // indirect
|
| 25 |
+
github.com/jmespath/go-jmespath v0.4.0 // indirect
|
| 26 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 // indirect
|
| 27 |
+
github.com/kr/pretty v0.1.0 // indirect
|
| 28 |
+
github.com/mattn/go-colorable v0.1.12 // indirect
|
| 29 |
+
github.com/mattn/go-isatty v0.0.14 // indirect
|
| 30 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d // indirect
|
| 31 |
+
github.com/pmezard/go-difflib v1.0.0 // indirect
|
| 32 |
+
github.com/spf13/pflag v1.0.5 // indirect
|
| 33 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a // indirect
|
| 34 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 // indirect
|
| 35 |
+
golang.org/x/text v0.3.7 // indirect
|
| 36 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
|
| 37 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 // indirect
|
| 38 |
+
)
|
| 39 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 40 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
|
| 41 |
+
github.com/AlecAivazis/survey/v2 v2.3.4 h1:pchTU9rsLUSvWEl2Aq9Pv3k0IE2fkqtGxazskAMd9Ng=
|
| 42 |
+
github.com/AlecAivazis/survey/v2 v2.3.4/go.mod h1:hrV6Y/kQCLhIZXGcriDCUBtB3wnN7156gMXJ3+b23xM=
|
| 43 |
+
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2 h1:+vx7roKuyA63nhn5WAunQHLTznkw5W8b1Xc0dNjp83s=
|
| 44 |
+
github.com/Netflix/go-expect v0.0.0-20220104043353-73e0943537d2/go.mod h1:HBCaDeC1lPdgDeDbhX8XFpy1jqjK0IBG8W5K+xYqA0w=
|
| 45 |
+
github.com/aws/aws-sdk-go v1.44.19 h1:dhI6p4l6kisnA7gBAM8sP5YIk0bZ9HNAj7yrK7kcfdU=
|
| 46 |
+
github.com/aws/aws-sdk-go v1.44.19/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
|
| 47 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.1/go.mod h1:tgQtvFlXSQOSOSIRvRPT7W67SCa46tRHOmNcaadrF8o=
|
| 48 |
+
github.com/creack/pty v1.1.17 h1:QeVUsEDNrLBW4tMgZHvxy18sKtr6VI492kBhUfhDJNI=
|
| 49 |
+
github.com/creack/pty v1.1.17/go.mod h1:MOBLtS5ELjhRRrroQr9kyvTxUAFNvYEK993ew/Vr4O4=
|
| 50 |
+
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
| 51 |
+
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
|
| 52 |
+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
|
| 53 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124 h1:6ZyMGA6nvZAb/wb6t6CN5US1JFxBEgsCtiV706LIGFE=
|
| 54 |
+
github.com/disneystreaming/gomux v0.0.0-20200305000114-de122d6df124/go.mod h1:sJ15RPrsx6cwRFtuCekC/Ja1UfhGUzsR3BYG1Xs1EnQ=
|
| 55 |
+
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec h1:qv2VnGeEQHchGaZ/u7lxST/RaJw+cv273q79D81Xbog=
|
| 56 |
+
github.com/hinshun/vt10x v0.0.0-20220119200601-820417d04eec/go.mod h1:Q48J4R4DvxnHolD5P8pOtXigYlRuPLGl6moFx3ulM68=
|
| 57 |
+
github.com/inconshreveable/mousetrap v1.0.0 h1:Z8tu5sraLXCXIcARxBp/8cbvlwVa7Z1NHg9XEKhtSvM=
|
| 58 |
+
github.com/inconshreveable/mousetrap v1.0.0/go.mod h1:PxqpIevigyE2G7u3NXJIT2ANytuPF1OarO4DADm73n8=
|
| 59 |
+
github.com/jmespath/go-jmespath v0.4.0 h1:BEgLn5cpjn8UN1mAw4NjwDrS35OdebyEtFe+9YPoQUg=
|
| 60 |
+
github.com/jmespath/go-jmespath v0.4.0/go.mod h1:T8mJZnbsbmF+m6zOOFylbeCJqk5+pHWvzYPziyZiYoo=
|
| 61 |
+
github.com/jmespath/go-jmespath/internal/testify v1.5.1 h1:shLQSRRSCCPj3f2gpwzGwWFoC7ycTf1rcQZHOlsJ6N8=
|
| 62 |
+
github.com/jmespath/go-jmespath/internal/testify v1.5.1/go.mod h1:L3OGu8Wl2/fWfCI6z80xFu9LTZmf1ZRjMHUOPmWr69U=
|
| 63 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51 h1:Z9n2FFNUXsshfwJMBgNA0RU6/i7WVaAegv3PtuIHPMs=
|
| 64 |
+
github.com/kballard/go-shellquote v0.0.0-20180428030007-95032a82bc51/go.mod h1:CzGEWj7cYgsdH8dAjBGEr58BoE7ScuLd+fwFZ44+/x8=
|
| 65 |
+
github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
|
| 66 |
+
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
|
| 67 |
+
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
|
| 68 |
+
github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
|
| 69 |
+
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
|
| 70 |
+
github.com/mattn/go-colorable v0.1.2/go.mod h1:U0ppj6V5qS13XJ6of8GYAs25YV2eR4EVcfRqFIhoBtE=
|
| 71 |
+
github.com/mattn/go-colorable v0.1.12 h1:jF+Du6AlPIjs2BiUiQlKOX0rt3SujHxPnksPKZbaA40=
|
| 72 |
+
github.com/mattn/go-colorable v0.1.12/go.mod h1:u5H1YNBxpqRaxsYJYSkiCWKzEfiAb1Gb520KVy5xxl4=
|
| 73 |
+
github.com/mattn/go-isatty v0.0.8/go.mod h1:Iq45c/XA43vh69/j3iqttzPXn0bhXyGjM0Hdxcsrc5s=
|
| 74 |
+
github.com/mattn/go-isatty v0.0.14 h1:yVuAays6BHfxijgZPzw+3Zlu5yQgKGP2/hcQbHb7S9Y=
|
| 75 |
+
github.com/mattn/go-isatty v0.0.14/go.mod h1:7GGIvUiUoEMVVmxf/4nioHXj79iQHKdU27kJ6hsGG94=
|
| 76 |
+
github.com/mgutz/ansi v0.0.0-20170206155736-9520e82c474b/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
| 77 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d h1:5PJl274Y63IEHC+7izoQE9x6ikvDFZS2mDVS3drnohI=
|
| 78 |
+
github.com/mgutz/ansi v0.0.0-20200706080929-d51e80ef957d/go.mod h1:01TrycV0kFyexm33Z7vhZRXopbI8J3TDReVlkTgMUxE=
|
| 79 |
+
github.com/mitchellh/go-homedir v1.1.0 h1:lukF9ziXFxDFPkA1vsr5zpc1XuPDn/wFntq5mG+4E0Y=
|
| 80 |
+
github.com/mitchellh/go-homedir v1.1.0/go.mod h1:SfyaCUpYCn1Vlf4IUYiD9fPX4A5wJrkLzIz1N1q0pr0=
|
| 81 |
+
github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0=
|
| 82 |
+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
| 83 |
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
| 84 |
+
github.com/russross/blackfriday/v2 v2.1.0/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
| 85 |
+
github.com/sirupsen/logrus v1.8.1 h1:dJKuHgqk1NNQlqoA6BTlM1Wf9DOH3NBjQyu0h9+AZZE=
|
| 86 |
+
github.com/sirupsen/logrus v1.8.1/go.mod h1:yWOB1SBYBC5VeMP7gHvWumXLIWorT60ONWic61uBYv0=
|
| 87 |
+
github.com/spf13/cobra v1.4.0 h1:y+wJpx64xcgO1V+RcnwW0LEHxTKRi2ZDPSBjWnrg88Q=
|
| 88 |
+
github.com/spf13/cobra v1.4.0/go.mod h1:Wo4iy3BUC+X2Fybo0PDqwJIv3dNRiZLHQymsfxlB84g=
|
| 89 |
+
github.com/spf13/pflag v1.0.5 h1:iy+VFUOCP1a+8yFto/drg2CJ5u0yRoB7fZw3DKv/JXA=
|
| 90 |
+
github.com/spf13/pflag v1.0.5/go.mod h1:McXfInJRrz4CZXVZOBLb0bTZqETkiAhM9Iw0y3An2Bg=
|
| 91 |
+
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
|
| 92 |
+
github.com/stretchr/testify v1.2.2/go.mod h1:a8OnRcib4nhh0OaRAV+Yts87kKdq0PP7pXfy6kDkUVs=
|
| 93 |
+
github.com/stretchr/testify v1.6.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
| 94 |
+
github.com/stretchr/testify v1.7.1 h1:5TQK59W5E3v0r2duFAb7P95B6hEeOyEnHRa8MjYSMTY=
|
| 95 |
+
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
|
| 96 |
+
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
|
| 97 |
+
golang.org/x/sys v0.0.0-20190222072716-a9d3bda3a223/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
| 98 |
+
golang.org/x/sys v0.0.0-20191026070338-33540a1f6037/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 99 |
+
golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 100 |
+
golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 101 |
+
golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 102 |
+
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 103 |
+
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 104 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a h1:dGzPydgVsqGcTRVwiLJ1jVbufYwmzD3LfVPLKsKg+0k=
|
| 105 |
+
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 106 |
+
golang.org/x/term v0.0.0-20210503060354-a79de5458b56/go.mod h1:tfny5GFUkzUvx4ps4ajbZsCe5lw1metzhBm9T3x7oIY=
|
| 107 |
+
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
| 108 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171 h1:EH1Deb8WZJ0xc0WK//leUHXcX9aLE5SymusoTmMZye8=
|
| 109 |
+
golang.org/x/term v0.0.0-20220411215600-e5f449aeb171/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
|
| 110 |
+
golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
|
| 111 |
+
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
|
| 112 |
+
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
|
| 113 |
+
golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
|
| 114 |
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 115 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
|
| 116 |
+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 117 |
+
gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
| 118 |
+
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
|
| 119 |
+
gopkg.in/yaml.v2 v2.4.0/go.mod h1:RDklbk79AGWmwhnvt/jBztapEOGDOx6ZbXqjP6csGnQ=
|
| 120 |
+
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
| 121 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99 h1:dbuHpmKjkDzSOMKAWl10QNlgaZUd3V1q99xc81tt2Kc=
|
| 122 |
+
gopkg.in/yaml.v3 v3.0.0-20220512140231-539c8e751b99/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
|
| 123 |
+
PROGRAMGYM_GO_SUM_EOF
|
| 124 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 125 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 126 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 127 |
+
*"|"*|*","*)
|
| 128 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 129 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 130 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 131 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 132 |
+
fi
|
| 133 |
+
;;
|
| 134 |
+
esac
|
| 135 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 136 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 137 |
+
fi
|
| 138 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 139 |
+
import os
|
| 140 |
+
import signal
|
| 141 |
+
import subprocess
|
| 142 |
+
import sys
|
| 143 |
+
import time
|
| 144 |
+
|
| 145 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 146 |
+
if not command:
|
| 147 |
+
raise SystemExit(125)
|
| 148 |
+
environment = os.environ.copy()
|
| 149 |
+
environment["GOPROXY"] = proxy
|
| 150 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 151 |
+
try:
|
| 152 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 153 |
+
except subprocess.TimeoutExpired:
|
| 154 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 155 |
+
sentinel.write("expired\n")
|
| 156 |
+
try:
|
| 157 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 158 |
+
except ProcessLookupError:
|
| 159 |
+
pass
|
| 160 |
+
deadline = time.monotonic() + float(grace_text)
|
| 161 |
+
group_alive = True
|
| 162 |
+
while time.monotonic() < deadline:
|
| 163 |
+
process.poll()
|
| 164 |
+
try:
|
| 165 |
+
os.killpg(process.pid, 0)
|
| 166 |
+
except ProcessLookupError:
|
| 167 |
+
group_alive = False
|
| 168 |
+
break
|
| 169 |
+
time.sleep(0.05)
|
| 170 |
+
if group_alive:
|
| 171 |
+
try:
|
| 172 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 173 |
+
except ProcessLookupError:
|
| 174 |
+
pass
|
| 175 |
+
process.wait()
|
| 176 |
+
raise SystemExit(124)
|
| 177 |
+
if returncode < 0:
|
| 178 |
+
returncode = 128 - returncode
|
| 179 |
+
raise SystemExit(returncode)
|
| 180 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 181 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 182 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 183 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 184 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 185 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 186 |
+
return 1
|
| 187 |
+
else
|
| 188 |
+
exit 1
|
| 189 |
+
fi
|
| 190 |
+
fi
|
| 191 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 192 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 193 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 194 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 195 |
+
return 1
|
| 196 |
+
else
|
| 197 |
+
exit 1
|
| 198 |
+
fi
|
| 199 |
+
fi
|
| 200 |
+
_programgym_go_with_nexus_timeout() {
|
| 201 |
+
local programgym_go_rc
|
| 202 |
+
local programgym_go_timeout_sentinel
|
| 203 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 204 |
+
return 1
|
| 205 |
+
fi
|
| 206 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 207 |
+
programgym_go_rc=0
|
| 208 |
+
else
|
| 209 |
+
programgym_go_rc=$?
|
| 210 |
+
fi
|
| 211 |
+
programgym_go_timed_out=0
|
| 212 |
+
if [ -s "$programgym_go_timeout_sentinel" ]; then
|
| 213 |
+
programgym_go_timed_out=1
|
| 214 |
+
fi
|
| 215 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 216 |
+
if [ "$programgym_go_rc" -eq 0 ]; then
|
| 217 |
+
return 0
|
| 218 |
+
fi
|
| 219 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 220 |
+
printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 221 |
+
return "$programgym_go_rc"
|
| 222 |
+
fi
|
| 223 |
+
if [ "$programgym_go_timed_out" -eq 1 ]; then
|
| 224 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 225 |
+
else
|
| 226 |
+
printf '%s\n' "download.sh: primary Go request failed with rc=${programgym_go_rc}; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 227 |
+
fi
|
| 228 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 229 |
+
}
|
| 230 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 231 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 232 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 233 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 234 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 235 |
+
return 1
|
| 236 |
+
else
|
| 237 |
+
exit 1
|
| 238 |
+
fi
|
| 239 |
+
fi
|
| 240 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 241 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 242 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 243 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 244 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 245 |
+
else
|
| 246 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 247 |
+
fi
|
| 248 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 249 |
+
export GOTOOLCHAIN=local
|
| 250 |
+
if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
|
| 251 |
+
printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
|
| 252 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 253 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 254 |
+
return 1
|
| 255 |
+
else
|
| 256 |
+
exit 1
|
| 257 |
+
fi
|
| 258 |
+
fi
|
| 259 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 260 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 261 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 262 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 263 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 264 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 265 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
disneystreaming--ssm-helpers.1e43224/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e9a455f2ab27db7bb83af9d46a36f945653cd81f3735d73c909ef64a072dc896
|
| 3 |
+
size 34078598
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/tests/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/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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()
|
disneystreaming--ssm-helpers.1e43224/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,822 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [],
|
| 7 |
+
"tests": [
|
| 8 |
+
"eval.tests.test_address_targeting.test_run_address_and_filter_do_not_conflict",
|
| 9 |
+
"eval.tests.test_address_targeting.test_run_address_only_target_reaches_orchestration",
|
| 10 |
+
"eval.tests.test_address_targeting.test_run_empty_address_is_not_a_target",
|
| 11 |
+
"eval.tests.test_address_targeting.test_run_instance_and_address_compose",
|
| 12 |
+
"eval.tests.test_address_targeting.test_run_multi_address_list_threads_orchestration",
|
| 13 |
+
"eval.tests.test_address_targeting.test_session_address_dry_run_still_fetches_instances",
|
| 14 |
+
"eval.tests.test_address_targeting.test_session_address_only_reaches_credential_chain",
|
| 15 |
+
"eval.tests.test_address_targeting.test_session_address_without_region_reaches_missing_region",
|
| 16 |
+
"eval.tests.test_address_targeting.test_session_instance_and_address_compose",
|
| 17 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_command_then_file_combined_order",
|
| 18 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_file_commands_appended_after_command",
|
| 19 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_interior_semicolon_emits_blank_middle_command",
|
| 20 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_leading_semicolon_emits_blank_first_command",
|
| 21 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_missing_file_fatals_with_open_error",
|
| 22 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_semicolon_split_multiple_commands",
|
| 23 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_single_command_listed",
|
| 24 |
+
"eval.tests.test_cli.TestRunCommandConstruction.test_whitespace_only_command_passes_guard",
|
| 25 |
+
"eval.tests.test_cli.test_completion_bash_generates_script",
|
| 26 |
+
"eval.tests.test_cli.test_completion_help_lists_shells",
|
| 27 |
+
"eval.tests.test_cli.test_help_subcommand_prints_root_help",
|
| 28 |
+
"eval.tests.test_cli.test_root_help_reveals_key_elements[root lists completion subcommand-Generate the autocompletion script]",
|
| 29 |
+
"eval.tests.test_cli.test_root_help_reveals_key_elements[root lists run subcommand-execute commands using the AWS-RunShellScript document]",
|
| 30 |
+
"eval.tests.test_cli.test_root_help_reveals_key_elements[root lists session subcommand-open a terminal session to an instance using SSM]",
|
| 31 |
+
"eval.tests.test_cli.test_root_help_reveals_key_elements[root shows user-friendly long description-user-friendly wrapper for the AWS CLI SSM commands]",
|
| 32 |
+
"eval.tests.test_cli.test_root_help_reveals_key_elements[root shows verbose flag-Sets verbosity of output]",
|
| 33 |
+
"eval.tests.test_cli.test_root_help_via_short_flag",
|
| 34 |
+
"eval.tests.test_cli.test_run_accepts_exactly_50_instances",
|
| 35 |
+
"eval.tests.test_cli.test_run_accepts_exactly_5_filters",
|
| 36 |
+
"eval.tests.test_cli.test_run_all_profiles_without_config_reports_load_failure",
|
| 37 |
+
"eval.tests.test_cli.test_run_aws_region_env_used_when_flag_absent",
|
| 38 |
+
"eval.tests.test_cli.test_run_aws_region_takes_precedence_over_default",
|
| 39 |
+
"eval.tests.test_cli.test_run_default_region_env_used_as_fallback",
|
| 40 |
+
"eval.tests.test_cli.test_run_dry_run_is_noop_still_executes",
|
| 41 |
+
"eval.tests.test_cli.test_run_flag_region_appears_in_result_row",
|
| 42 |
+
"eval.tests.test_cli.test_run_help_lists_all_flags",
|
| 43 |
+
"eval.tests.test_cli.test_run_help_via_cobra_help_command",
|
| 44 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_%]",
|
| 45 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_0%]",
|
| 46 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_01]",
|
| 47 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_0]",
|
| 48 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_12345678]",
|
| 49 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_50 x]",
|
| 50 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_500%]",
|
| 51 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_99999999]",
|
| 52 |
+
"eval.tests.test_cli.test_run_invalid_max_concurrency_rejected[maxc_invalid_abc]",
|
| 53 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_01]",
|
| 54 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_05]",
|
| 55 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_12345678]",
|
| 56 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_200%]",
|
| 57 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_abc]",
|
| 58 |
+
"eval.tests.test_cli.test_run_invalid_max_errors_rejected[maxe_invalid_x]",
|
| 59 |
+
"eval.tests.test_cli.test_run_pathological_filter_crashes_with_index_panic",
|
| 60 |
+
"eval.tests.test_cli.test_run_profile_and_all_profiles_conflict",
|
| 61 |
+
"eval.tests.test_cli.test_run_quiet_verbose_suppresses_info_and_error",
|
| 62 |
+
"eval.tests.test_cli.test_run_rejects_51_instances",
|
| 63 |
+
"eval.tests.test_cli.test_run_rejects_6_filters",
|
| 64 |
+
"eval.tests.test_cli.test_run_target_or_command_validation[both_-i_and_-f_supplied]",
|
| 65 |
+
"eval.tests.test_cli.test_run_target_or_command_validation[filter_given_but_no_command]",
|
| 66 |
+
"eval.tests.test_cli.test_run_target_or_command_validation[instance_given_but_empty_-c_value_splits_to_zero_commands]",
|
| 67 |
+
"eval.tests.test_cli.test_run_target_or_command_validation[instance_given_but_no_command]",
|
| 68 |
+
"eval.tests.test_cli.test_run_target_or_command_validation[run_with_no_target_flags_and_no_command]",
|
| 69 |
+
"eval.tests.test_cli.test_run_unexpected_positional_arg_rejected",
|
| 70 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_1%]",
|
| 71 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_100%]",
|
| 72 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_1000]",
|
| 73 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_100]",
|
| 74 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_1234567]",
|
| 75 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_1]",
|
| 76 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_50%]",
|
| 77 |
+
"eval.tests.test_cli.test_run_valid_max_concurrency_reaches_orchestration[maxc_valid_50]",
|
| 78 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_0]",
|
| 79 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_100%]",
|
| 80 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_100]",
|
| 81 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_1]",
|
| 82 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_5]",
|
| 83 |
+
"eval.tests.test_cli.test_run_valid_max_errors_reaches_orchestration[maxe_valid_99%]",
|
| 84 |
+
"eval.tests.test_cli.test_session_accepts_five_filters_then_reaches_aws",
|
| 85 |
+
"eval.tests.test_cli.test_session_all_profiles_without_config_reports_load_failure",
|
| 86 |
+
"eval.tests.test_cli.test_session_dry_run_still_reaches_instance_fetch",
|
| 87 |
+
"eval.tests.test_cli.test_session_empty_value_filter_reaches_aws",
|
| 88 |
+
"eval.tests.test_cli.test_session_help_lists_flags",
|
| 89 |
+
"eval.tests.test_cli.test_session_instance_filter_conflict_rejected",
|
| 90 |
+
"eval.tests.test_cli.test_session_limit_negative_accepted_reaches_aws",
|
| 91 |
+
"eval.tests.test_cli.test_session_limit_zero_accepted_reaches_aws",
|
| 92 |
+
"eval.tests.test_cli.test_session_malformed_filter_no_equals_rejected",
|
| 93 |
+
"eval.tests.test_cli.test_session_noninteger_limit_is_flag_parse_error",
|
| 94 |
+
"eval.tests.test_cli.test_session_rejects_six_filters",
|
| 95 |
+
"eval.tests.test_cli.test_session_unexpected_positional_arg_rejected",
|
| 96 |
+
"eval.tests.test_cli.test_session_valid_instance_reaches_credential_chain",
|
| 97 |
+
"eval.tests.test_cli.test_session_without_region_reaches_missing_region_error",
|
| 98 |
+
"eval.tests.test_cli.test_unknown_subcommand_rejected",
|
| 99 |
+
"eval.tests.test_cli.test_version_flag_reports_devel_and_commit_hash",
|
| 100 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_debug_cartesian_account_region_permutations",
|
| 101 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_debug_emits_starting_invocation_line",
|
| 102 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_debug_single_explicit_profile_in_account_column",
|
| 103 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_debug_two_profiles_two_account_lines",
|
| 104 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_empty_region_blank_column_client_error",
|
| 105 |
+
"eval.tests.test_orchestration_verbose_lines.test_run_info_level_suppresses_debug_line",
|
| 106 |
+
"eval.tests.test_orchestration_verbose_lines.test_session_empty_region_reaches_missing_region_fetch",
|
| 107 |
+
"eval.tests.test_orchestration_verbose_lines.test_session_trace_debug_level_suppresses_trace_line",
|
| 108 |
+
"eval.tests.test_orchestration_verbose_lines.test_session_trace_emits_aws_session_parameters_line",
|
| 109 |
+
"eval.tests.test_orchestration_verbose_lines.test_session_trace_explicit_profile_in_parameters",
|
| 110 |
+
"eval.tests.test_orchestration_verbose_lines.test_session_trace_filter_knows_parameters",
|
| 111 |
+
"eval.tests.test_session_env_resolution.test_session_authregion_env_beats_default_region_env",
|
| 112 |
+
"eval.tests.test_session_env_resolution.test_session_aws_region_env_reaches_fetch",
|
| 113 |
+
"eval.tests.test_session_env_resolution.test_session_default_region_env_reaches_fetch",
|
| 114 |
+
"eval.tests.test_session_env_resolution.test_session_filter_region_env_reaches_fetch",
|
| 115 |
+
"eval.tests.test_session_env_resolution.test_session_flag_region_takes_precedence_over_env",
|
| 116 |
+
"eval.tests.test_session_env_resolution.test_session_multi_region_flag_yields_full_trace_set",
|
| 117 |
+
"eval.tests.test_session_env_resolution.test_session_profile_env_beats_default_profile",
|
| 118 |
+
"eval.tests.test_session_env_resolution.test_session_profile_env_surfaces_in_trace",
|
| 119 |
+
"eval.tests.test_session_env_resolution.test_session_profile_env_with_no_region_reaches_missing_region",
|
| 120 |
+
"eval.tests.test_session_env_resolution.test_session_profile_x_region_cartesian_trace_set",
|
| 121 |
+
"eval.tests.test_session_target_expansion.test_run_cartesian_profile_x_region_count",
|
| 122 |
+
"eval.tests.test_session_target_expansion.test_run_combined_valid_max_concurrency_and_max_errors",
|
| 123 |
+
"eval.tests.test_session_target_expansion.test_run_file_with_explicit_profile_target_reaches_orchestration",
|
| 124 |
+
"eval.tests.test_session_target_expansion.test_run_filter_target_with_file_command_reaches_orchestration",
|
| 125 |
+
"eval.tests.test_session_target_expansion.test_run_profile_env_var_used_when_flag_absent",
|
| 126 |
+
"eval.tests.test_session_target_expansion.test_run_single_explicit_profile_appears_in_row",
|
| 127 |
+
"eval.tests.test_session_target_expansion.test_run_three_regions_yield_three_result_rows",
|
| 128 |
+
"eval.tests.test_session_target_expansion.test_run_two_profiles_yield_two_result_rows",
|
| 129 |
+
"eval.tests.test_session_target_expansion.test_run_two_regions_yield_two_result_rows",
|
| 130 |
+
"eval.tests.test_session_target_expansion.test_session_all_session_flags_together_reaches_fetch",
|
| 131 |
+
"eval.tests.test_session_target_expansion.test_session_custom_session_name_reaches_fetch",
|
| 132 |
+
"eval.tests.test_session_target_expansion.test_session_filter_with_tag_attribute_reaches_fetch",
|
| 133 |
+
"eval.tests.test_session_target_expansion.test_session_instance_with_tag_attribute_session_name_reaches_fetch",
|
| 134 |
+
"eval.tests.test_session_target_expansion.test_session_positive_limit_reaches_fetch"
|
| 135 |
+
]
|
| 136 |
+
},
|
| 137 |
+
"generated_module_02": {
|
| 138 |
+
"ignore_reason": "",
|
| 139 |
+
"ignored": false,
|
| 140 |
+
"ignored_tests": [],
|
| 141 |
+
"tests": [
|
| 142 |
+
"eval.tests.test_filter_map.test_filter_bare_value_squashed_onto_previous",
|
| 143 |
+
"eval.tests.test_filter_map.test_filter_empty_value_key_is_accepted",
|
| 144 |
+
"eval.tests.test_filter_map.test_filter_first_value_bare_invalid[bare-justtext]",
|
| 145 |
+
"eval.tests.test_filter_map.test_filter_first_value_bare_invalid[bare-only]",
|
| 146 |
+
"eval.tests.test_filter_map.test_filter_first_value_bare_invalid[bare-text-no-eq]",
|
| 147 |
+
"eval.tests.test_filter_map.test_filter_key_equals_value_with_equals",
|
| 148 |
+
"eval.tests.test_filter_map.test_filter_multiple_bare_squashed_on_comma",
|
| 149 |
+
"eval.tests.test_filter_map.test_filter_valid_reaches_aws[dashed-value]",
|
| 150 |
+
"eval.tests.test_filter_map.test_filter_valid_reaches_aws[single-key]",
|
| 151 |
+
"eval.tests.test_filter_map.test_filter_valid_reaches_aws[two-pairs-dashed]",
|
| 152 |
+
"eval.tests.test_filter_map.test_filter_valid_reaches_aws[two-pairs]",
|
| 153 |
+
"eval.tests.test_filter_map.test_run_all_profiles_profile_conflict",
|
| 154 |
+
"eval.tests.test_filter_map.test_run_filter_instance_conflict",
|
| 155 |
+
"eval.tests.test_filter_map.test_session_all_profiles_profile_conflict",
|
| 156 |
+
"eval.tests.test_filter_map.test_session_filter_instance_conflict",
|
| 157 |
+
"eval.tests.test_filter_map.test_session_max_five_filters_allowed",
|
| 158 |
+
"eval.tests.test_filter_map.test_session_six_filters_rejected",
|
| 159 |
+
"eval.tests.test_flag_registration.test_help_run_subcommand_surface",
|
| 160 |
+
"eval.tests.test_flag_registration.test_help_session_subcommand_surface",
|
| 161 |
+
"eval.tests.test_flag_registration.test_root_help_exposes_verbose_global",
|
| 162 |
+
"eval.tests.test_flag_registration.test_run_help_base_short_aliases",
|
| 163 |
+
"eval.tests.test_flag_registration.test_run_help_command_and_file_default",
|
| 164 |
+
"eval.tests.test_flag_registration.test_run_help_dry_run_all_profiles_are_bool",
|
| 165 |
+
"eval.tests.test_flag_registration.test_run_help_file_flag_description",
|
| 166 |
+
"eval.tests.test_flag_registration.test_run_help_lists_all_added_flags",
|
| 167 |
+
"eval.tests.test_flag_registration.test_run_help_max_concurrency_default",
|
| 168 |
+
"eval.tests.test_flag_registration.test_run_help_max_errors_default",
|
| 169 |
+
"eval.tests.test_flag_registration.test_run_help_verbose_persistent_default",
|
| 170 |
+
"eval.tests.test_flag_registration.test_run_short_h_help",
|
| 171 |
+
"eval.tests.test_flag_registration.test_session_help_limit_default",
|
| 172 |
+
"eval.tests.test_flag_registration.test_session_help_lists_all_added_flags",
|
| 173 |
+
"eval.tests.test_flag_registration.test_session_help_session_name_default",
|
| 174 |
+
"eval.tests.test_flag_registration.test_session_help_tag_attribute_shorts",
|
| 175 |
+
"eval.tests.test_flag_registration.test_session_short_h_help",
|
| 176 |
+
"eval.tests.test_log_level_mapping.test_verbose_default_is_two",
|
| 177 |
+
"eval.tests.test_log_level_mapping.test_verbose_four_trace_keeps_both",
|
| 178 |
+
"eval.tests.test_log_level_mapping.test_verbose_help_documents_range",
|
| 179 |
+
"eval.tests.test_log_level_mapping.test_verbose_non_integer_is_cobra_parse_error",
|
| 180 |
+
"eval.tests.test_log_level_mapping.test_verbose_one_error_keeps_error_drops_info",
|
| 181 |
+
"eval.tests.test_log_level_mapping.test_verbose_out_of_range_defaults_to_info[five]",
|
| 182 |
+
"eval.tests.test_log_level_mapping.test_verbose_out_of_range_defaults_to_info[negative-one]",
|
| 183 |
+
"eval.tests.test_log_level_mapping.test_verbose_out_of_range_defaults_to_info[negative-two]",
|
| 184 |
+
"eval.tests.test_log_level_mapping.test_verbose_out_of_range_defaults_to_info[ninety-nine]",
|
| 185 |
+
"eval.tests.test_log_level_mapping.test_verbose_three_debug_keeps_both",
|
| 186 |
+
"eval.tests.test_log_level_mapping.test_verbose_two_info_keeps_both",
|
| 187 |
+
"eval.tests.test_log_level_mapping.test_verbose_zero_fatal_suppresses_all",
|
| 188 |
+
"eval.tests.test_log_split_output.test_error_client_row_routed_to_stderr",
|
| 189 |
+
"eval.tests.test_log_split_output.test_error_routed_to_stderr_not_stdout",
|
| 190 |
+
"eval.tests.test_log_split_output.test_fatal_validation_routed_to_stderr",
|
| 191 |
+
"eval.tests.test_log_split_output.test_info_result_header_routed_to_stdout",
|
| 192 |
+
"eval.tests.test_log_split_output.test_info_routed_to_stdout_not_stderr",
|
| 193 |
+
"eval.tests.test_log_split_output.test_session_fatal_describe_routed_to_stderr",
|
| 194 |
+
"eval.tests.test_log_split_output.test_stdout_and_stderr_are_disjoint_streams",
|
| 195 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[1000-percent]",
|
| 196 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[alpha]",
|
| 197 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[bare-percent]",
|
| 198 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[decimal]",
|
| 199 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[double-percent]",
|
| 200 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[leading-zero]",
|
| 201 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[negative]",
|
| 202 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[percent-suffix-alpha]",
|
| 203 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[space-in-value]",
|
| 204 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[space-padded]",
|
| 205 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[space-prefix]",
|
| 206 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[too-long-len8]",
|
| 207 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[zero-percent]",
|
| 208 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[zero-prefixed]",
|
| 209 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_invalid_value[zero]",
|
| 210 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_regex_message_mentions_pattern",
|
| 211 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_upper_lower_bound[len7-upper-bound]",
|
| 212 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_echoes_command",
|
| 213 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[fifty]",
|
| 214 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[hundred]",
|
| 215 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[hundreds]",
|
| 216 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[nine]",
|
| 217 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[one]",
|
| 218 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-fifty]",
|
| 219 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-five]",
|
| 220 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-hundred]",
|
| 221 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-nine]",
|
| 222 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-ninety-nine]",
|
| 223 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-one]",
|
| 224 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[pct-ten]",
|
| 225 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[seven-digit]",
|
| 226 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[six-digit]",
|
| 227 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[ten]",
|
| 228 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[thousands]",
|
| 229 |
+
"eval.tests.test_max_concurrency.test_max_concurrency_valid_reaches_aws[two]",
|
| 230 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[1000-percent]",
|
| 231 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[alpha]",
|
| 232 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[bare-percent]",
|
| 233 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[decimal]",
|
| 234 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[double-percent]",
|
| 235 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[negative]",
|
| 236 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[percent-suffix-alpha]",
|
| 237 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[space-prefix]",
|
| 238 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[space-zero]",
|
| 239 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[too-long-len8]",
|
| 240 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[zero-prefixed]",
|
| 241 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[zero-space]",
|
| 242 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[zero-x]",
|
| 243 |
+
"eval.tests.test_max_errors.test_max_errors_invalid_value[zero-zero]",
|
| 244 |
+
"eval.tests.test_max_errors.test_max_errors_regex_message_mentions_pattern",
|
| 245 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[fifty]",
|
| 246 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[hundred]",
|
| 247 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[hundreds]",
|
| 248 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[nine]",
|
| 249 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[one]",
|
| 250 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-five]",
|
| 251 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-hundred]",
|
| 252 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-nine]",
|
| 253 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-ninety-nine]",
|
| 254 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-one]",
|
| 255 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[pct-ten]",
|
| 256 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[seven-digit]",
|
| 257 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[ten]",
|
| 258 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[thousands]",
|
| 259 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[two]",
|
| 260 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[zero-percent]",
|
| 261 |
+
"eval.tests.test_max_errors.test_max_errors_valid_reaches_aws[zero]",
|
| 262 |
+
"eval.tests.test_max_errors.test_max_errors_zero_and_zero_percent_valid",
|
| 263 |
+
"eval.tests.test_read_helpers.test_address_comma_list_reads_and_proceeds",
|
| 264 |
+
"eval.tests.test_read_helpers.test_attribute_flag_reads_on_session",
|
| 265 |
+
"eval.tests.test_read_helpers.test_command_list_echoed_under_expected_header",
|
| 266 |
+
"eval.tests.test_read_helpers.test_empty_command_flag_is_rejected",
|
| 267 |
+
"eval.tests.test_read_helpers.test_limit_noninteger_is_cobra_parse_error",
|
| 268 |
+
"eval.tests.test_read_helpers.test_limit_zero_parses_and_proceeds",
|
| 269 |
+
"eval.tests.test_read_helpers.test_profile_comma_list_accepted",
|
| 270 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_preserves_interior_empty_segment",
|
| 271 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[five]",
|
| 272 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[mixed-len]",
|
| 273 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[padded]",
|
| 274 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[single]",
|
| 275 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[three-echo]",
|
| 276 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[two-with-space]",
|
| 277 |
+
"eval.tests.test_read_helpers.test_read_as_ssv_splits_on_semicolon[uptime]",
|
| 278 |
+
"eval.tests.test_read_helpers.test_remove_address_requires_command",
|
| 279 |
+
"eval.tests.test_read_helpers.test_tag_flag_reads_on_session",
|
| 280 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[run-many]",
|
| 281 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[run-one]",
|
| 282 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[run-two]",
|
| 283 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[session-one]",
|
| 284 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[session-three]",
|
| 285 |
+
"eval.tests.test_validate_args.test_positional_args_rejected[session-two]",
|
| 286 |
+
"eval.tests.test_validate_args.test_positional_error_is_fatal_on_stderr[run-single]",
|
| 287 |
+
"eval.tests.test_validate_args.test_positional_error_is_fatal_on_stderr[run-spaced]",
|
| 288 |
+
"eval.tests.test_validate_args.test_positional_error_is_fatal_on_stderr[session-single]",
|
| 289 |
+
"eval.tests.test_validate_args.test_usage_error_suffix_format",
|
| 290 |
+
"eval.tests.test_validate_args.test_validate_args_accepts_empty_run",
|
| 291 |
+
"eval.tests.test_validate_args.test_validate_args_accepts_empty_session"
|
| 292 |
+
]
|
| 293 |
+
},
|
| 294 |
+
"generated_module_03": {
|
| 295 |
+
"ignore_reason": "",
|
| 296 |
+
"ignored": false,
|
| 297 |
+
"ignored_tests": [],
|
| 298 |
+
"tests": [
|
| 299 |
+
"eval.tests.test_module_03_aws.test_all_profiles_basic_three_profiles",
|
| 300 |
+
"eval.tests.test_module_03_aws.test_all_profiles_crlf_line_endings",
|
| 301 |
+
"eval.tests.test_module_03_aws.test_all_profiles_empty_config_errors",
|
| 302 |
+
"eval.tests.test_module_03_aws.test_all_profiles_ignores_comments_and_blank_lines",
|
| 303 |
+
"eval.tests.test_module_03_aws.test_all_profiles_ignores_non_anchored_headers",
|
| 304 |
+
"eval.tests.test_module_03_aws.test_all_profiles_large_config_many_profiles",
|
| 305 |
+
"eval.tests.test_module_03_aws.test_all_profiles_missing_config_file_errors",
|
| 306 |
+
"eval.tests.test_module_03_aws.test_all_profiles_profile_flag_conflict",
|
| 307 |
+
"eval.tests.test_module_03_aws.test_all_profiles_special_character_names",
|
| 308 |
+
"eval.tests.test_module_03_aws.test_all_profiles_with_default_section_ignored",
|
| 309 |
+
"eval.tests.test_module_03_aws.test_command_empty_with_file_only",
|
| 310 |
+
"eval.tests.test_module_03_aws.test_command_file_appends_to_commands",
|
| 311 |
+
"eval.tests.test_module_03_aws.test_command_file_cannot_be_read",
|
| 312 |
+
"eval.tests.test_module_03_aws.test_command_semicolon_split",
|
| 313 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[%]",
|
| 314 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[0%]",
|
| 315 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[00]",
|
| 316 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[0]",
|
| 317 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[]",
|
| 318 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_invalid_rejected[abc]",
|
| 319 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[1%]",
|
| 320 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[10%]",
|
| 321 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[100%]",
|
| 322 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[100]",
|
| 323 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[1234567]",
|
| 324 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[1]",
|
| 325 |
+
"eval.tests.test_module_03_aws.test_max_concurrency_valid_reaches_pool[50]",
|
| 326 |
+
"eval.tests.test_module_03_aws.test_max_errors_invalid_rejected[%]",
|
| 327 |
+
"eval.tests.test_module_03_aws.test_max_errors_invalid_rejected[-1]",
|
| 328 |
+
"eval.tests.test_module_03_aws.test_max_errors_invalid_rejected[00]",
|
| 329 |
+
"eval.tests.test_module_03_aws.test_max_errors_invalid_rejected[]",
|
| 330 |
+
"eval.tests.test_module_03_aws.test_max_errors_invalid_rejected[abc]",
|
| 331 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[0%]",
|
| 332 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[0]",
|
| 333 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[100%]",
|
| 334 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[100]",
|
| 335 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[1234567]",
|
| 336 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[1]",
|
| 337 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[5%]",
|
| 338 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[50%]",
|
| 339 |
+
"eval.tests.test_module_03_aws.test_max_errors_valid_reaches_pool[50]",
|
| 340 |
+
"eval.tests.test_module_03_aws.test_pool_all_profiles_duplicate_profile_dedups",
|
| 341 |
+
"eval.tests.test_module_03_aws.test_pool_aws_profile_env_sole_source",
|
| 342 |
+
"eval.tests.test_module_03_aws.test_pool_duplicate_profile_and_duplicate_region_collapse",
|
| 343 |
+
"eval.tests.test_module_03_aws.test_pool_duplicate_profile_values_collapse",
|
| 344 |
+
"eval.tests.test_module_03_aws.test_pool_duplicate_region_values_collapse",
|
| 345 |
+
"eval.tests.test_module_03_aws.test_pool_flag_profile_overrides_env",
|
| 346 |
+
"eval.tests.test_module_03_aws.test_pool_multiple_profiles_not_deduped",
|
| 347 |
+
"eval.tests.test_module_03_aws.test_pool_no_profile_flag_defaults_to_default",
|
| 348 |
+
"eval.tests.test_module_03_aws.test_pool_profile_region_cross_product",
|
| 349 |
+
"eval.tests.test_module_03_aws.test_pool_single_profile_single_region",
|
| 350 |
+
"eval.tests.test_module_03_aws.test_pool_sts_duplicate_region_collapse",
|
| 351 |
+
"eval.tests.test_module_03_aws.test_pool_sts_empty_token_is_false",
|
| 352 |
+
"eval.tests.test_module_03_aws.test_pool_sts_fast_path_blank_profile",
|
| 353 |
+
"eval.tests.test_module_03_aws.test_pool_sts_fast_path_single_region",
|
| 354 |
+
"eval.tests.test_module_03_aws.test_pool_sts_ignores_duplicated_profiles_across_distinct_regions",
|
| 355 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env0-expected_profiles0]",
|
| 356 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env1-expected_profiles1]",
|
| 357 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env2-expected_profiles2]",
|
| 358 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env3-expected_profiles3]",
|
| 359 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env4-expected_profiles4]",
|
| 360 |
+
"eval.tests.test_module_03_aws.test_pool_sts_partial_credential_sets_fall_back[extra_env5-expected_profiles5]",
|
| 361 |
+
"eval.tests.test_module_03_aws.test_region_aws_default_region_env_used",
|
| 362 |
+
"eval.tests.test_module_03_aws.test_region_aws_region_beats_default_region",
|
| 363 |
+
"eval.tests.test_module_03_aws.test_region_aws_region_env_used",
|
| 364 |
+
"eval.tests.test_module_03_aws.test_region_cross_product_with_regions_only",
|
| 365 |
+
"eval.tests.test_module_03_aws.test_region_flag_beats_both_envs",
|
| 366 |
+
"eval.tests.test_module_03_aws.test_region_list_not_deduped_across_pool",
|
| 367 |
+
"eval.tests.test_module_03_aws.test_region_no_region_blank_region_column",
|
| 368 |
+
"eval.tests.test_module_03_aws.test_resolver_empty_address_creates_session",
|
| 369 |
+
"eval.tests.test_module_03_aws.test_resolver_mixed_address_list",
|
| 370 |
+
"eval.tests.test_module_03_aws.test_resolver_unresolvable_hostname_bounded",
|
| 371 |
+
"eval.tests.test_module_03_aws.test_resolver_valid_ipv4_address",
|
| 372 |
+
"eval.tests.test_module_03_aws.test_resolver_valid_ipv6_address",
|
| 373 |
+
"eval.tests.test_module_03_aws.test_run_validation_filter_above_5",
|
| 374 |
+
"eval.tests.test_module_03_aws.test_run_validation_filter_instance_conflict",
|
| 375 |
+
"eval.tests.test_module_03_aws.test_run_validation_instance_above_50",
|
| 376 |
+
"eval.tests.test_module_03_aws.test_run_validation_missing_command",
|
| 377 |
+
"eval.tests.test_module_03_aws.test_run_validation_missing_targets",
|
| 378 |
+
"eval.tests.test_module_03_aws.test_run_validation_stray_positional_arg",
|
| 379 |
+
"eval.tests.test_module_03_aws.test_session_log_level_sdk_debug_http_body_boundary[2-False-InfoLevel never sets session.Config.LogLevel]",
|
| 380 |
+
"eval.tests.test_module_03_aws.test_session_log_level_sdk_debug_http_body_boundary[3-False-DebugLevel is logrus-level only; session.go only upgrades LogLevel at TraceLevel]",
|
| 381 |
+
"eval.tests.test_module_03_aws.test_session_log_level_sdk_debug_http_body_boundary[4-True-TraceLevel sets *session.Config.LogLevel = aws.LogDebugWithHTTPBody -> SDK DEBUG: Request dump]",
|
| 382 |
+
"eval.tests.test_module_03_aws.test_session_unknown_shorthand_flag",
|
| 383 |
+
"eval.tests.test_module_03_aws.test_session_validation_filter_above_5",
|
| 384 |
+
"eval.tests.test_module_03_aws.test_session_validation_filter_bad_parameter_format",
|
| 385 |
+
"eval.tests.test_module_03_aws.test_session_validation_filter_instance_conflict",
|
| 386 |
+
"eval.tests.test_module_03_aws.test_session_validation_stray_positional_arg",
|
| 387 |
+
"eval.tests.test_module_03_aws.test_verbose_0_suppresses_all_output",
|
| 388 |
+
"eval.tests.test_module_03_aws.test_verbose_1_error_only",
|
| 389 |
+
"eval.tests.test_module_03_aws.test_verbose_2_info_default",
|
| 390 |
+
"eval.tests.test_module_03_aws.test_verbose_3_debug_shows_invocation",
|
| 391 |
+
"eval.tests.test_module_03_aws.test_verbose_4_trace_shows_invocation",
|
| 392 |
+
"eval.tests.test_module_03_aws.test_verbose_invalid_falls_back_to_info[-1]",
|
| 393 |
+
"eval.tests.test_module_03_aws.test_verbose_invalid_falls_back_to_info[5]",
|
| 394 |
+
"eval.tests.test_module_03_aws.test_verbose_invalid_falls_back_to_info[99]",
|
| 395 |
+
"eval.tests.test_module_03_aws.test_verbose_invalid_falls_back_to_info[9]"
|
| 396 |
+
]
|
| 397 |
+
},
|
| 398 |
+
"generated_module_04": {
|
| 399 |
+
"ignore_reason": "",
|
| 400 |
+
"ignored": false,
|
| 401 |
+
"ignored_tests": [],
|
| 402 |
+
"tests": [
|
| 403 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_completion_help",
|
| 404 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_help_lists_module_flags",
|
| 405 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_help_outputs[root-help]",
|
| 406 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_help_outputs[run-help]",
|
| 407 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_help_outputs[session-help]",
|
| 408 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_unknown_subcommand_error",
|
| 409 |
+
"eval.tests.test_ssm_helpers.TestHelpAndVersion.test_version_output",
|
| 410 |
+
"eval.tests.test_ssm_helpers.TestRunAddressCombinations.test_run_address_with_filter_reaches_send",
|
| 411 |
+
"eval.tests.test_ssm_helpers.TestRunAddressCombinations.test_run_address_with_instance_reaches_send",
|
| 412 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[all-empty-collapsed]",
|
| 413 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[inner-empty]",
|
| 414 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[leading-empty]",
|
| 415 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[single]",
|
| 416 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[three]",
|
| 417 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_command_block_preserves_splits[trailing-dangling-trimmed]",
|
| 418 |
+
"eval.tests.test_ssm_helpers.TestRunCommandList.test_run_empty_command_rejected",
|
| 419 |
+
"eval.tests.test_ssm_helpers.TestRunCrossProductFanout.test_result_table_cross_product_p1_r3",
|
| 420 |
+
"eval.tests.test_ssm_helpers.TestRunCrossProductFanout.test_result_table_cross_product_p2_r2",
|
| 421 |
+
"eval.tests.test_ssm_helpers.TestRunCrossProductFanout.test_result_table_cross_product_p3_r1",
|
| 422 |
+
"eval.tests.test_ssm_helpers.TestRunCrossProductPercentComposition.test_result_table_p2_r1_maxerrors_percent",
|
| 423 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_blank_interior_line_preserved",
|
| 424 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_combines_with_command_flag",
|
| 425 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_crlf_stripped",
|
| 426 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_last_line_without_newline_captured",
|
| 427 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_missing_reports_path",
|
| 428 |
+
"eval.tests.test_ssm_helpers.TestRunFileScript.test_file_three_lines",
|
| 429 |
+
"eval.tests.test_ssm_helpers.TestRunMaxErrorsPercentValid.test_run_max_errors_percent_reaches_send[hundred-percent]",
|
| 430 |
+
"eval.tests.test_ssm_helpers.TestRunMaxErrorsPercentValid.test_run_max_errors_percent_reaches_send[ninety-nine-percent]",
|
| 431 |
+
"eval.tests.test_ssm_helpers.TestRunMaxErrorsPercentValid.test_run_max_errors_percent_reaches_send[ten-percent]",
|
| 432 |
+
"eval.tests.test_ssm_helpers.TestRunMaxErrorsPercentValid.test_run_max_errors_percent_reaches_send[zero-percent]",
|
| 433 |
+
"eval.tests.test_ssm_helpers.TestRunMoreThan50Instances.test_run_exactly_50_instances_accepted",
|
| 434 |
+
"eval.tests.test_ssm_helpers.TestRunMoreThan50Instances.test_run_more_than_50_instances_rejected",
|
| 435 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_empty_region_profile_cells",
|
| 436 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_profile_echo",
|
| 437 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_profile_region_pair",
|
| 438 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_region_echo",
|
| 439 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_two_profiles",
|
| 440 |
+
"eval.tests.test_ssm_helpers.TestRunResultTable.test_result_table_two_regions",
|
| 441 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_addressing_network_gated_sendcommand",
|
| 442 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_filter_instance_conflict",
|
| 443 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[fifty-percent]",
|
| 444 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[hundred-percent]",
|
| 445 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[max-length]",
|
| 446 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[one-percent]",
|
| 447 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[plain-number]",
|
| 448 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[single-digit]",
|
| 449 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_accepts_valid[two-digit]",
|
| 450 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_concurrency_invalid",
|
| 451 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_errors_invalid[alpha]",
|
| 452 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_errors_invalid[decimal]",
|
| 453 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_errors_invalid[negative]",
|
| 454 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_errors_invalid[suffix-x]",
|
| 455 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_max_errors_zero_allowed",
|
| 456 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_more_than_five_filters_rejected[six-distinct-keys]",
|
| 457 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_more_than_five_filters_rejected[six-numeric-keys]",
|
| 458 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_no_target",
|
| 459 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_profile_all_profiles_conflict",
|
| 460 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_valid_target_selections_reach_send[single-filter]",
|
| 461 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_valid_target_selections_reach_send[single-instance]",
|
| 462 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_valid_target_selections_reach_send[three-filters]",
|
| 463 |
+
"eval.tests.test_ssm_helpers.TestRunValidation.test_run_valid_target_selections_reach_send[two-instances-comma]",
|
| 464 |
+
"eval.tests.test_ssm_helpers.TestSessionCrossProductFanout.test_session_fanout_describe_count_p1_r3",
|
| 465 |
+
"eval.tests.test_ssm_helpers.TestSessionCrossProductFanout.test_session_fanout_describe_count_p2_r2",
|
| 466 |
+
"eval.tests.test_ssm_helpers.TestSessionCrossProductFanout.test_session_multi_instance_comma_desc",
|
| 467 |
+
"eval.tests.test_ssm_helpers.TestSessionCrossProductFanout.test_session_multi_instance_multiflag_desc",
|
| 468 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_embedded_equals_value_accepted",
|
| 469 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_filter_instance_conflict",
|
| 470 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_filter_squash_over_cap_rejected[eight-flat-eight-keys]",
|
| 471 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_filter_squash_under_cap_reaches_describe[seven-flat-five-keys]",
|
| 472 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_filter_squash_under_cap_reaches_describe[six-flat-four-keys]",
|
| 473 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_instance_only_calls_describe",
|
| 474 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_missing_region_message",
|
| 475 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_no_credentials_message",
|
| 476 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_region_from_environment[aws-default-region-env]",
|
| 477 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_region_from_environment[aws-region-env]",
|
| 478 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_region_variants_reach_describe[ap-southeast-2]",
|
| 479 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_region_variants_reach_describe[eu-west-1]",
|
| 480 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_region_variants_reach_describe[us-east-1]",
|
| 481 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_six_distinct_keys_rejected",
|
| 482 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_valueless_element_squashed",
|
| 483 |
+
"eval.tests.test_ssm_helpers.TestSessionDescribeInput.test_session_valueless_first_invalid",
|
| 484 |
+
"eval.tests.test_ssm_helpers.TestSessionDuplicateKeySquash.test_session_dupkey_five_plus_bonus_sixth",
|
| 485 |
+
"eval.tests.test_ssm_helpers.TestSessionDuplicateKeySquash.test_session_dupkey_sixflat_one_key",
|
| 486 |
+
"eval.tests.test_ssm_helpers.TestSessionDuplicateKeySquash.test_session_dupkey_sixflat_two_distinct",
|
| 487 |
+
"eval.tests.test_ssm_helpers.TestSessionFilterMapEdges.test_session_filter_duplicate_key_last_wins",
|
| 488 |
+
"eval.tests.test_ssm_helpers.TestSessionFilterMapEdges.test_session_filter_empty_key_value",
|
| 489 |
+
"eval.tests.test_ssm_helpers.TestSessionFilterValueBoundaries.test_session_filter_empty_value",
|
| 490 |
+
"eval.tests.test_ssm_helpers.TestSessionFilterValueBoundaries.test_session_filter_whitespace_padded_value",
|
| 491 |
+
"eval.tests.test_ssm_helpers.TestSessionTagAttributeAccepted.test_session_tag_attribute_parses_reaches_describe",
|
| 492 |
+
"eval.tests.test_ssm_helpers.TestSliceFlagTypes.test_verbose_non_integer_rejected",
|
| 493 |
+
"eval.tests.test_ssm_helpers.TestSliceFlagTypes.test_verbose_valid_values"
|
| 494 |
+
]
|
| 495 |
+
},
|
| 496 |
+
"generated_module_05": {
|
| 497 |
+
"ignore_reason": "",
|
| 498 |
+
"ignored": false,
|
| 499 |
+
"ignored_tests": [],
|
| 500 |
+
"tests": [
|
| 501 |
+
"eval.tests.test_cli_dispatch.test_bad_flag_errors_with_help_hint",
|
| 502 |
+
"eval.tests.test_cli_dispatch.test_help_alias_equals_help_flag",
|
| 503 |
+
"eval.tests.test_cli_dispatch.test_help_short_flag_h_runs_help",
|
| 504 |
+
"eval.tests.test_cli_dispatch.test_root_help_lists_all_subcommands",
|
| 505 |
+
"eval.tests.test_cli_dispatch.test_root_help_short_description",
|
| 506 |
+
"eval.tests.test_cli_dispatch.test_root_no_args_shows_help_usage",
|
| 507 |
+
"eval.tests.test_cli_dispatch.test_run_help_includes_command_semicolon_usage",
|
| 508 |
+
"eval.tests.test_cli_dispatch.test_run_help_lists_all_run_flags",
|
| 509 |
+
"eval.tests.test_cli_dispatch.test_run_help_max_concurrency_default_50",
|
| 510 |
+
"eval.tests.test_cli_dispatch.test_run_help_max_errors_default_0",
|
| 511 |
+
"eval.tests.test_cli_dispatch.test_run_subcommand_registered_exact_short",
|
| 512 |
+
"eval.tests.test_cli_dispatch.test_session_help_limit_default_10",
|
| 513 |
+
"eval.tests.test_cli_dispatch.test_session_help_lists_session_flags",
|
| 514 |
+
"eval.tests.test_cli_dispatch.test_session_help_session_name_default",
|
| 515 |
+
"eval.tests.test_cli_dispatch.test_session_subcommand_registered",
|
| 516 |
+
"eval.tests.test_cli_dispatch.test_unknown_subcommand_errors",
|
| 517 |
+
"eval.tests.test_cli_dispatch.test_verbose_global_flag_default_in_help",
|
| 518 |
+
"eval.tests.test_cli_dispatch.test_verbose_short_flag_parsed",
|
| 519 |
+
"eval.tests.test_cli_dispatch.test_version_flag_default_exit_zero",
|
| 520 |
+
"eval.tests.test_cli_dispatch.test_version_reports_devel_and_commit",
|
| 521 |
+
"eval.tests.test_run_aggregation.test_run_address_multiregion_two_rows",
|
| 522 |
+
"eval.tests.test_run_aggregation.test_run_all_profiles_missing_config_fatal",
|
| 523 |
+
"eval.tests.test_run_aggregation.test_run_command_and_file_across_two_regions",
|
| 524 |
+
"eval.tests.test_run_aggregation.test_run_empty_region_row_empty_label",
|
| 525 |
+
"eval.tests.test_run_aggregation.test_run_max_concurrency_eight_digit_invalid",
|
| 526 |
+
"eval.tests.test_run_aggregation.test_run_max_concurrency_seven_digit_valid",
|
| 527 |
+
"eval.tests.test_run_aggregation.test_run_max_concurrency_two_digit_percent_valid",
|
| 528 |
+
"eval.tests.test_run_aggregation.test_run_max_errors_seven_digit_valid",
|
| 529 |
+
"eval.tests.test_run_aggregation.test_run_max_errors_two_digit_percent_valid",
|
| 530 |
+
"eval.tests.test_run_aggregation.test_run_max_errors_zero_padded_invalid",
|
| 531 |
+
"eval.tests.test_run_aggregation.test_run_multi_instance_two_regions_two_rows",
|
| 532 |
+
"eval.tests.test_run_aggregation.test_run_profile_env_multiregion_two_rows",
|
| 533 |
+
"eval.tests.test_run_aggregation.test_run_profile_env_single_named_row",
|
| 534 |
+
"eval.tests.test_run_aggregation.test_run_three_profiles_three_rows",
|
| 535 |
+
"eval.tests.test_run_aggregation.test_run_two_regions_three_profiles_six_rows",
|
| 536 |
+
"eval.tests.test_run_aggregation.test_run_two_regions_two_profiles_four_rows",
|
| 537 |
+
"eval.tests.test_run_engine_rows.test_run_dry_run_multi_region_one_row_per_region",
|
| 538 |
+
"eval.tests.test_run_engine_rows.test_run_dry_run_no_targets_still_fatal",
|
| 539 |
+
"eval.tests.test_run_engine_rows.test_run_dry_run_routes_through_engine_single_row",
|
| 540 |
+
"eval.tests.test_run_engine_rows.test_run_dry_run_with_validators_still_validate",
|
| 541 |
+
"eval.tests.test_run_engine_rows.test_run_emits_result_table_header",
|
| 542 |
+
"eval.tests.test_run_engine_rows.test_run_empty_instance_value_no_targets",
|
| 543 |
+
"eval.tests.test_run_engine_rows.test_run_long_region_and_default_profile_distinct_row",
|
| 544 |
+
"eval.tests.test_run_engine_rows.test_run_long_region_profile_not_truncated",
|
| 545 |
+
"eval.tests.test_run_engine_rows.test_run_multi_region_header_single_line",
|
| 546 |
+
"eval.tests.test_run_engine_rows.test_run_result_header_before_tally_and_row",
|
| 547 |
+
"eval.tests.test_run_engine_rows.test_run_two_long_regions_rows_distinct",
|
| 548 |
+
"eval.tests.test_run_engine_rows.test_run_v1_hides_header_and_tally_keeps_error_row",
|
| 549 |
+
"eval.tests.test_run_invocation.test_missing_region_defaults_session_region",
|
| 550 |
+
"eval.tests.test_run_invocation.test_run_address_and_instance_single_send_batch",
|
| 551 |
+
"eval.tests.test_run_invocation.test_run_address_target_single_row",
|
| 552 |
+
"eval.tests.test_run_invocation.test_run_comma_empty_instance_elements_dropped",
|
| 553 |
+
"eval.tests.test_run_invocation.test_run_comma_instance_list_single_row",
|
| 554 |
+
"eval.tests.test_run_invocation.test_run_command_double_semicolon_empty_middle",
|
| 555 |
+
"eval.tests.test_run_invocation.test_run_command_leading_semicolon_empty_entry",
|
| 556 |
+
"eval.tests.test_run_invocation.test_run_command_semicolon_only_single_empty",
|
| 557 |
+
"eval.tests.test_run_invocation.test_run_empty_address_contributes_no_target",
|
| 558 |
+
"eval.tests.test_run_invocation.test_run_empty_command_is_no_command",
|
| 559 |
+
"eval.tests.test_run_invocation.test_run_empty_filter_contributes_no_target",
|
| 560 |
+
"eval.tests.test_run_invocation.test_run_empty_region_element_becomes_default_session",
|
| 561 |
+
"eval.tests.test_run_invocation.test_run_fatal_goes_stderr_only",
|
| 562 |
+
"eval.tests.test_run_invocation.test_run_fifty_instances_valid_passes",
|
| 563 |
+
"eval.tests.test_run_invocation.test_run_fifty_one_instances_validation_error",
|
| 564 |
+
"eval.tests.test_run_invocation.test_run_file_appended_after_commands",
|
| 565 |
+
"eval.tests.test_run_invocation.test_run_file_reads_lines_verbatim[#!/bin/bash\\nuptime\\n-expected2]",
|
| 566 |
+
"eval.tests.test_run_invocation.test_run_file_reads_lines_verbatim[a\\n b \\nc-expected3]",
|
| 567 |
+
"eval.tests.test_run_invocation.test_run_file_reads_lines_verbatim[first\\nsecond-expected0]",
|
| 568 |
+
"eval.tests.test_run_invocation.test_run_file_reads_lines_verbatim[line1\\n\\nline3-expected1]",
|
| 569 |
+
"eval.tests.test_run_invocation.test_run_filter_and_instance_conflict_fatal",
|
| 570 |
+
"eval.tests.test_run_invocation.test_run_filter_without_equals_panics",
|
| 571 |
+
"eval.tests.test_run_invocation.test_run_five_filters_valid_passes",
|
| 572 |
+
"eval.tests.test_run_invocation.test_run_info_goes_stdout_error_goes_stderr",
|
| 573 |
+
"eval.tests.test_run_invocation.test_run_invalid_verbose_defaults_to_info",
|
| 574 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_and_errors_both_valid",
|
| 575 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[-1]",
|
| 576 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[000]",
|
| 577 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[01]",
|
| 578 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[0]",
|
| 579 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[1000%]",
|
| 580 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[101%]",
|
| 581 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_invalid[abc]",
|
| 582 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[100%]",
|
| 583 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[1000]",
|
| 584 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[100]",
|
| 585 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[101]",
|
| 586 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[1]",
|
| 587 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[5%]",
|
| 588 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[50%]",
|
| 589 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[50]",
|
| 590 |
+
"eval.tests.test_run_invocation.test_run_max_concurrency_valid[99]",
|
| 591 |
+
"eval.tests.test_run_invocation.test_run_max_errors_invalid[-1]",
|
| 592 |
+
"eval.tests.test_run_invocation.test_run_max_errors_invalid[05]",
|
| 593 |
+
"eval.tests.test_run_invocation.test_run_max_errors_invalid[12345678]",
|
| 594 |
+
"eval.tests.test_run_invocation.test_run_max_errors_invalid[abc]",
|
| 595 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[0%]",
|
| 596 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[0]",
|
| 597 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[10%]",
|
| 598 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[100%]",
|
| 599 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[100]",
|
| 600 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[101]",
|
| 601 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[10]",
|
| 602 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[11]",
|
| 603 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[1]",
|
| 604 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[7]",
|
| 605 |
+
"eval.tests.test_run_invocation.test_run_max_errors_valid[99]",
|
| 606 |
+
"eval.tests.test_run_invocation.test_run_multiple_instances_51_boundary_message",
|
| 607 |
+
"eval.tests.test_run_invocation.test_run_multiple_profiles_one_row_per_profile",
|
| 608 |
+
"eval.tests.test_run_invocation.test_run_multiple_regions_one_row_per_region",
|
| 609 |
+
"eval.tests.test_run_invocation.test_run_no_command_fatal",
|
| 610 |
+
"eval.tests.test_run_invocation.test_run_no_targets_fatal",
|
| 611 |
+
"eval.tests.test_run_invocation.test_run_nonexistent_file_fatal",
|
| 612 |
+
"eval.tests.test_run_invocation.test_run_profile_and_all_profiles_conflict",
|
| 613 |
+
"eval.tests.test_run_invocation.test_run_region_respects_aws_region_env",
|
| 614 |
+
"eval.tests.test_run_invocation.test_run_repeated_instance_flags_append",
|
| 615 |
+
"eval.tests.test_run_invocation.test_run_semicolon_commands_split",
|
| 616 |
+
"eval.tests.test_run_invocation.test_run_single_command_listed",
|
| 617 |
+
"eval.tests.test_run_invocation.test_run_single_instance_one_error_row",
|
| 618 |
+
"eval.tests.test_run_invocation.test_run_six_filters_validation_error",
|
| 619 |
+
"eval.tests.test_run_invocation.test_run_tally_counts_all_failed",
|
| 620 |
+
"eval.tests.test_run_invocation.test_run_unexpected_positional_arg_fatal",
|
| 621 |
+
"eval.tests.test_run_invocation.test_run_v0_quiet_hides_all_info",
|
| 622 |
+
"eval.tests.test_run_invocation.test_run_v1_error_only",
|
| 623 |
+
"eval.tests.test_run_invocation.test_run_v2_default_info_plus_error",
|
| 624 |
+
"eval.tests.test_run_invocation.test_run_v3_debug_shows_startup_line",
|
| 625 |
+
"eval.tests.test_run_pool_dedup.test_run_dedup_debug_pairs_match_aggregated_rows",
|
| 626 |
+
"eval.tests.test_run_pool_dedup.test_run_dry_run_duplicate_region_still_single_session",
|
| 627 |
+
"eval.tests.test_run_pool_dedup.test_run_duplicate_profile_multiregion_dedup_per_pair",
|
| 628 |
+
"eval.tests.test_run_pool_dedup.test_run_duplicate_profile_single_session",
|
| 629 |
+
"eval.tests.test_run_pool_dedup.test_run_duplicate_region_distinct_profiles_keeps_both",
|
| 630 |
+
"eval.tests.test_run_pool_dedup.test_run_duplicate_region_single_session",
|
| 631 |
+
"eval.tests.test_run_pool_dedup.test_run_empty_profile_element_blank_profile_session",
|
| 632 |
+
"eval.tests.test_run_pool_dedup.test_run_empty_region_element_resolves_to_env_default",
|
| 633 |
+
"eval.tests.test_run_pool_dedup.test_run_three_by_three_cartesian_nine_sessions",
|
| 634 |
+
"eval.tests.test_run_pool_dedup.test_run_triple_duplicate_region_single_session",
|
| 635 |
+
"eval.tests.test_session_surface.test_session_filter_instance_conflict_fatal",
|
| 636 |
+
"eval.tests.test_session_surface.test_session_five_filters_reaches_aws",
|
| 637 |
+
"eval.tests.test_session_surface.test_session_instance_flag_repeated_ok",
|
| 638 |
+
"eval.tests.test_session_surface.test_session_no_targets_reaches_aws_fail",
|
| 639 |
+
"eval.tests.test_session_surface.test_session_profile_regions_flags_parsed",
|
| 640 |
+
"eval.tests.test_session_surface.test_session_six_filters_fatal",
|
| 641 |
+
"eval.tests.test_session_surface.test_session_unexpected_args_fatal",
|
| 642 |
+
"eval.tests.test_session_surface.test_session_valid_instance_reaches_aws_fail",
|
| 643 |
+
"eval.tests.test_session_surface.test_session_verbose_routing"
|
| 644 |
+
]
|
| 645 |
+
},
|
| 646 |
+
"generated_module_06": {
|
| 647 |
+
"ignore_reason": "",
|
| 648 |
+
"ignored": false,
|
| 649 |
+
"ignored_tests": [],
|
| 650 |
+
"tests": [
|
| 651 |
+
"eval.tests.test_cli_surface.TestRootHelp.test_h_flag_shortcut_prints_help",
|
| 652 |
+
"eval.tests.test_cli_surface.TestRootHelp.test_no_args_prints_help",
|
| 653 |
+
"eval.tests.test_cli_surface.TestRootHelp.test_root_help_lists_subcommands",
|
| 654 |
+
"eval.tests.test_cli_surface.TestSubcommandHelp.test_run_help_lists_file_and_filter_flags",
|
| 655 |
+
"eval.tests.test_cli_surface.TestSubcommandHelp.test_run_help_lists_instance_and_max_concurrency",
|
| 656 |
+
"eval.tests.test_cli_surface.TestSubcommandHelp.test_session_help_lists_limit",
|
| 657 |
+
"eval.tests.test_cli_surface.TestSubcommandHelp.test_session_help_lists_selection_flags",
|
| 658 |
+
"eval.tests.test_cli_surface.TestUnsupportedCommands.test_help_subcommand",
|
| 659 |
+
"eval.tests.test_cli_surface.TestUnsupportedCommands.test_unknown_subcommand_rejected",
|
| 660 |
+
"eval.tests.test_config_region_env.TestRegionResolution.test_aws_default_region_env_used_when_available",
|
| 661 |
+
"eval.tests.test_config_region_env.TestRegionResolution.test_aws_region_env_used_when_no_flag",
|
| 662 |
+
"eval.tests.test_config_region_env.TestRegionResolution.test_region_flag_beats_env",
|
| 663 |
+
"eval.tests.test_config_region_env.TestRegionResolution.test_region_flag_used_in_result_table",
|
| 664 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsCount.test_empty_filter_string_yields_no_targets",
|
| 665 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsCount.test_five_filters_are_valid",
|
| 666 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsCount.test_single_filter_is_valid_target",
|
| 667 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsCount.test_six_filters_exceed_maximum",
|
| 668 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_bare_key_mixed_with_valid_panics",
|
| 669 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_empty_key_with_value_is_valid_target",
|
| 670 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_filter_value_with_embedded_equals",
|
| 671 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_filter_with_instance_is_rejected",
|
| 672 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_key_with_empty_value_is_valid_target",
|
| 673 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_malformed_bare_key_filter_panics",
|
| 674 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_multiple_filters_in_one_flag_and_separate_flags",
|
| 675 |
+
"eval.tests.test_filter_targets.TestSliceToTargetsFlagMatrix.test_whitespace_around_equals_is_not_trimmed",
|
| 676 |
+
"eval.tests.test_module_boundary_expansion.TestCommandShortFlag.test_short_flag_produces_same_command_tokens",
|
| 677 |
+
"eval.tests.test_module_boundary_expansion.TestCommandShortFlag.test_short_flag_value_reaches_empty_command_rejection",
|
| 678 |
+
"eval.tests.test_module_boundary_expansion.TestReadScriptFileLineContinuation.test_trailing_backslash_retained",
|
| 679 |
+
"eval.tests.test_module_boundary_expansion.TestSessionInstancesOtherInputClasses.test_session_explicit_region_reaches_credential_lookup",
|
| 680 |
+
"eval.tests.test_module_boundary_expansion.TestSessionInstancesOtherInputClasses.test_session_filter_with_embedded_equals",
|
| 681 |
+
"eval.tests.test_module_boundary_expansion.TestSessionInstancesOtherInputClasses.test_session_valid_name_and_limit_flags",
|
| 682 |
+
"eval.tests.test_module_boundary_expansion.TestSliceToTargetsEmptyKeyBoundary.test_five_empty_key_filters_accepted",
|
| 683 |
+
"eval.tests.test_module_boundary_expansion.TestSliceToTargetsEmptyKeyBoundary.test_six_empty_key_filters_rejected",
|
| 684 |
+
"eval.tests.test_run_command_validation.TestCommandFlagParsing.test_empty_command_parses_to_zero_tokens",
|
| 685 |
+
"eval.tests.test_run_command_validation.TestCommandFlagParsing.test_multiple_semicolons_in_turn_produce_empty_tokens",
|
| 686 |
+
"eval.tests.test_run_command_validation.TestCommandFlagParsing.test_semicolon_preserves_adjacent_whitespace",
|
| 687 |
+
"eval.tests.test_run_command_validation.TestCommandFlagParsing.test_semicolon_separated_commands",
|
| 688 |
+
"eval.tests.test_run_command_validation.TestRunValidationBoundaries.test_extra_positional_args_rejected",
|
| 689 |
+
"eval.tests.test_run_command_validation.TestRunValidationBoundaries.test_fifty_instances_accepted",
|
| 690 |
+
"eval.tests.test_run_command_validation.TestRunValidationBoundaries.test_fifty_one_instances_rejected",
|
| 691 |
+
"eval.tests.test_run_command_validation.TestRunValidationBoundaries.test_no_command_rejected",
|
| 692 |
+
"eval.tests.test_run_command_validation.TestRunValidationBoundaries.test_no_target_argument_rejected",
|
| 693 |
+
"eval.tests.test_script_file.TestReadScriptFileAppend.test_empty_command_flag_with_file_uses_file_only",
|
| 694 |
+
"eval.tests.test_script_file.TestReadScriptFileAppend.test_empty_file_with_command_keeps_command_only",
|
| 695 |
+
"eval.tests.test_script_file.TestReadScriptFileAppend.test_file_lines_appended_after_command_flag",
|
| 696 |
+
"eval.tests.test_script_file.TestReadScriptFileAppend.test_file_only_supplies_command_list",
|
| 697 |
+
"eval.tests.test_script_file.TestReadScriptFileAppend.test_many_lines_preserved_in_order",
|
| 698 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_blank_interior_line_preserved",
|
| 699 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_internal_double_spaces_preserved",
|
| 700 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_leading_whitespace_preserved",
|
| 701 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_relative_file_path_resolved_from_cwd",
|
| 702 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_shell_constructs_preserved",
|
| 703 |
+
"eval.tests.test_script_file.TestReadScriptFileLineContent.test_whitespace_only_line_preserved",
|
| 704 |
+
"eval.tests.test_script_file.TestReadScriptFileLineEndings.test_bare_cr_is_not_a_separator",
|
| 705 |
+
"eval.tests.test_script_file.TestReadScriptFileLineEndings.test_crlf_strips_carriage_return",
|
| 706 |
+
"eval.tests.test_script_file.TestReadScriptFileLineEndings.test_mixed_crlf_and_lf",
|
| 707 |
+
"eval.tests.test_script_file.TestReadScriptFileLineEndings.test_no_trailing_newline_still_reads",
|
| 708 |
+
"eval.tests.test_script_file.TestReadScriptFileOpenErrors.test_directory_path_reports_read_error",
|
| 709 |
+
"eval.tests.test_script_file.TestReadScriptFileOpenErrors.test_file_flag_with_empty_path_is_ignored",
|
| 710 |
+
"eval.tests.test_script_file.TestReadScriptFileOpenErrors.test_nonexistent_file_reports_expected_error",
|
| 711 |
+
"eval.tests.test_script_file.TestReadScriptFileScannerLimit.test_line_over_scanner_buffer_reports_token_too_long",
|
| 712 |
+
"eval.tests.test_session_instances.TestSessionInstancesErrorBranch.test_session_error_plainly_names_missing_region",
|
| 713 |
+
"eval.tests.test_session_instances.TestSessionInstancesErrorBranch.test_session_with_filter_no_region_reaches_describe_error",
|
| 714 |
+
"eval.tests.test_session_instances.TestSessionInstancesErrorBranch.test_session_with_instance_no_region_reaches_describe_error",
|
| 715 |
+
"eval.tests.test_session_instances.TestSessionInstancesErrorBranch.test_session_with_no_args_reaches_describe_error",
|
| 716 |
+
"eval.tests.test_session_instances.TestSessionInstancesTargetingClasses.test_multiple_instance_ids_reach_describe",
|
| 717 |
+
"eval.tests.test_session_instances.TestSessionInstancesTargetingClasses.test_numeric_style_instance_id_reaches_describe",
|
| 718 |
+
"eval.tests.test_session_instances.TestSessionInstancesTargetingClasses.test_single_filter_value_with_space_reaches_describe"
|
| 719 |
+
]
|
| 720 |
+
}
|
| 721 |
+
},
|
| 722 |
+
"commit": "1e432245585a4d032950673b7cb8b57b19797459",
|
| 723 |
+
"data_source": "synthetic_programgym",
|
| 724 |
+
"difficulty": "medium",
|
| 725 |
+
"difficulty_score": 2.7500066994772316,
|
| 726 |
+
"eval_clean_hashes": [
|
| 727 |
+
"e9a455f2ab27db7bb83af9d46a36f945653cd81f3735d73c909ef64a072dc896"
|
| 728 |
+
],
|
| 729 |
+
"input_record": {
|
| 730 |
+
"commit": "1e432245585a4d032950673b7cb8b57b19797459",
|
| 731 |
+
"commits": 53,
|
| 732 |
+
"contributors": 7,
|
| 733 |
+
"difficulty": "medium",
|
| 734 |
+
"difficulty_code_lines": 2445,
|
| 735 |
+
"difficulty_has_tests": false,
|
| 736 |
+
"difficulty_product_code_lines": 2445,
|
| 737 |
+
"difficulty_runtime_deps": 22,
|
| 738 |
+
"difficulty_score": 2.7500066994772316,
|
| 739 |
+
"difficulty_test_code_lines": 1624,
|
| 740 |
+
"full_name": "disneystreaming/ssm-helpers",
|
| 741 |
+
"github_stars": 387,
|
| 742 |
+
"input_joern_zip": "go_joern/disneystreaming__ssm-helpers.zip",
|
| 743 |
+
"joern_status": true,
|
| 744 |
+
"joern_time": 21.189015879062936,
|
| 745 |
+
"language": "go",
|
| 746 |
+
"pb_match": [
|
| 747 |
+
{
|
| 748 |
+
"pb_fullname": "segmentio/chamber",
|
| 749 |
+
"rank": 70,
|
| 750 |
+
"similarity": 0.60116046667099
|
| 751 |
+
},
|
| 752 |
+
{
|
| 753 |
+
"pb_fullname": "guumaster/hostctl",
|
| 754 |
+
"rank": 275,
|
| 755 |
+
"similarity": 0.48054614663124084
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"pb_fullname": "cheat/cheat",
|
| 759 |
+
"rank": 681,
|
| 760 |
+
"similarity": 0.4973945617675781
|
| 761 |
+
}
|
| 762 |
+
],
|
| 763 |
+
"repo_age": 6.71,
|
| 764 |
+
"repo_path": "go/disneystreaming__ssm-helpers",
|
| 765 |
+
"source": "commit:1e432245585a4d032950673b7cb8b57b19797459",
|
| 766 |
+
"status": "done",
|
| 767 |
+
"url": "https://github.com/disneystreaming/ssm-helpers"
|
| 768 |
+
},
|
| 769 |
+
"instance_id": "disneystreaming__ssm-helpers.1e43224",
|
| 770 |
+
"language": "go",
|
| 771 |
+
"module_iterations": [
|
| 772 |
+
{
|
| 773 |
+
"actual_iterations": 7,
|
| 774 |
+
"branch_name": "generated_module_01",
|
| 775 |
+
"iteration_limit": 10,
|
| 776 |
+
"module_index": 1,
|
| 777 |
+
"module_kind": "source",
|
| 778 |
+
"termination_reason": "early_stopping"
|
| 779 |
+
},
|
| 780 |
+
{
|
| 781 |
+
"actual_iterations": 3,
|
| 782 |
+
"branch_name": "generated_module_02",
|
| 783 |
+
"iteration_limit": 10,
|
| 784 |
+
"module_index": 2,
|
| 785 |
+
"module_kind": "source",
|
| 786 |
+
"termination_reason": "module_coverage_threshold_reached"
|
| 787 |
+
},
|
| 788 |
+
{
|
| 789 |
+
"actual_iterations": 5,
|
| 790 |
+
"branch_name": "generated_module_03",
|
| 791 |
+
"iteration_limit": 10,
|
| 792 |
+
"module_index": 3,
|
| 793 |
+
"module_kind": "source",
|
| 794 |
+
"termination_reason": "early_stopping"
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"actual_iterations": 5,
|
| 798 |
+
"branch_name": "generated_module_04",
|
| 799 |
+
"iteration_limit": 10,
|
| 800 |
+
"module_index": 4,
|
| 801 |
+
"module_kind": "source",
|
| 802 |
+
"termination_reason": "early_stopping"
|
| 803 |
+
},
|
| 804 |
+
{
|
| 805 |
+
"actual_iterations": 5,
|
| 806 |
+
"branch_name": "generated_module_05",
|
| 807 |
+
"iteration_limit": 10,
|
| 808 |
+
"module_index": 5,
|
| 809 |
+
"module_kind": "source",
|
| 810 |
+
"termination_reason": "early_stopping"
|
| 811 |
+
},
|
| 812 |
+
{
|
| 813 |
+
"actual_iterations": 5,
|
| 814 |
+
"branch_name": "generated_module_06",
|
| 815 |
+
"iteration_limit": 10,
|
| 816 |
+
"module_index": 6,
|
| 817 |
+
"module_kind": "source",
|
| 818 |
+
"termination_reason": "early_stopping"
|
| 819 |
+
}
|
| 820 |
+
],
|
| 821 |
+
"repository": "disneystreaming/ssm-helpers"
|
| 822 |
+
}
|
disneystreaming--ssm-helpers.1e43224/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
|
disneystreaming--ssm-helpers.1e43224/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:99b4eb9bbf504459a0c2df76ddb34036ca2c2ae4130e930788ab7a784d73eaed
|
| 3 |
+
size 1262
|
divan--expvarmon.8e0b3d2/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"]
|
divan--expvarmon.8e0b3d2/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"]
|
dixonwille--wmenu.09d89f6/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"]
|
dixonwille--wmenu.09d89f6/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"]
|
djc--bb8.ba51260/environment/Dockerfile
ADDED
|
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
|
| 3 |
+
ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
|
| 4 |
+
ARG PROGRAMGYM_GOSUMDB="sum.golang.org"
|
| 5 |
+
ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
|
| 6 |
+
ARG PROGRAMGYM_NPM_STRICT_SSL="true"
|
| 7 |
+
ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
|
| 8 |
+
ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
|
| 9 |
+
ARG PROGRAMGYM_UV_INSECURE_HOST=""
|
| 10 |
+
ARG PROGRAMGYM_RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 11 |
+
ARG PROGRAMGYM_RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 12 |
+
ARG PROGRAMGYM_CARGO_INDEX="sparse+https://index.crates.io/"
|
| 13 |
+
ARG PROGRAMGYM_CARGO_NET_RETRY="10"
|
| 14 |
+
ARG PROGRAMGYM_CARGO_HTTP_TIMEOUT="600"
|
| 15 |
+
ARG PROGRAMGYM_CARGO_HTTP_MULTIPLEXING="false"
|
| 16 |
+
ARG PROGRAMGYM_MAVEN_MIRROR_URL=""
|
| 17 |
+
ARG PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=""
|
| 18 |
+
ARG PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL="https://services.gradle.org/distributions"
|
| 19 |
+
ARG PROGRAMGYM_JITPACK_REPOSITORY_URL="https://jitpack.io"
|
| 20 |
+
ENV GOPROXY=${PROGRAMGYM_GOPROXY}
|
| 21 |
+
ENV GOSUMDB=${PROGRAMGYM_GOSUMDB}
|
| 22 |
+
ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 23 |
+
ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
|
| 24 |
+
ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
|
| 25 |
+
ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
|
| 26 |
+
ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
|
| 27 |
+
ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
|
| 28 |
+
ENV RUSTUP_DIST_SERVER=${PROGRAMGYM_RUSTUP_DIST_SERVER}
|
| 29 |
+
ENV RUSTUP_UPDATE_ROOT=${PROGRAMGYM_RUSTUP_UPDATE_ROOT}
|
| 30 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX=${PROGRAMGYM_CARGO_INDEX}
|
| 31 |
+
ENV CARGO_NET_RETRY=${PROGRAMGYM_CARGO_NET_RETRY}
|
| 32 |
+
ENV CARGO_HTTP_TIMEOUT=${PROGRAMGYM_CARGO_HTTP_TIMEOUT}
|
| 33 |
+
ENV CARGO_HTTP_MULTIPLEXING=${PROGRAMGYM_CARGO_HTTP_MULTIPLEXING}
|
| 34 |
+
ENV PROGRAMGYM_MAVEN_MIRROR_URL=${PROGRAMGYM_MAVEN_MIRROR_URL}
|
| 35 |
+
ENV PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL=${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}
|
| 36 |
+
ENV PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL=${PROGRAMGYM_GRADLE_DISTRIBUTION_BASE_URL}
|
| 37 |
+
ENV PROGRAMGYM_JITPACK_REPOSITORY_URL=${PROGRAMGYM_JITPACK_REPOSITORY_URL}
|
| 38 |
+
COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
|
| 39 |
+
RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
|
| 40 |
+
&& /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
|
| 41 |
+
&& rm -f /tmp/harbor_configure_apt_mirror.sh
|
| 42 |
+
COPY harbor_configure_java_mirrors.sh /tmp/harbor_configure_java_mirrors.sh
|
| 43 |
+
RUN chmod 0755 /tmp/harbor_configure_java_mirrors.sh \
|
| 44 |
+
&& /bin/bash /tmp/harbor_configure_java_mirrors.sh "${PROGRAMGYM_MAVEN_MIRROR_URL}" "${PROGRAMGYM_GRADLE_PLUGIN_REPOSITORY_URL}" "${PROGRAMGYM_JITPACK_REPOSITORY_URL}" \
|
| 45 |
+
&& rm -f /tmp/harbor_configure_java_mirrors.sh
|
| 46 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 47 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 48 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 49 |
+
ENV GOTOOLCHAIN=auto
|
| 50 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 51 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 52 |
+
ENV HOME=/workspace
|
| 53 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 54 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 55 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 56 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 57 |
+
ENV PAGER=cat
|
| 58 |
+
ENV MANPAGER=cat
|
| 59 |
+
ENV LESS=-R
|
| 60 |
+
ENV TQDM_DISABLE=1
|
| 61 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 62 |
+
# programgym_quota_aware_nproc=1
|
| 63 |
+
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
|
| 64 |
+
WORKDIR /workspace
|
| 65 |
+
ADD workspace.tar.gz /workspace/
|
| 66 |
+
COPY executable /workspace/executable
|
| 67 |
+
COPY download.sh /workspace/download.sh
|
| 68 |
+
RUN chmod 755 /workspace/download.sh
|
| 69 |
+
ENV HOME=/rust_env
|
| 70 |
+
ENV CARGO_HOME=/rust_env/.cargo
|
| 71 |
+
ENV RUSTUP_HOME=/rust_env/.rustup
|
| 72 |
+
ENV XDG_CACHE_HOME=/rust_env/.cache
|
| 73 |
+
ENV CARGO_TARGET_DIR=/workspace/target
|
| 74 |
+
ENV PROGRAMGYM_RUST_ENV_ROOT=/rust_env
|
| 75 |
+
ENV PROGRAMGYM_RUST_BOOTSTRAP=1
|
| 76 |
+
ENV PROGRAMGYM_RUST_INSTANCE_ID=djc__bb8.ba51260
|
| 77 |
+
ENV PATH=/rust_env/.cargo/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 78 |
+
RUN mkdir -p /rust_env/.cargo /rust_env/.rustup /rust_env/.cache
|
| 79 |
+
COPY harbor_prepare_rust_env.sh /tmp/harbor_prepare_rust_env.sh
|
| 80 |
+
RUN /bin/bash /tmp/harbor_prepare_rust_env.sh \
|
| 81 |
+
&& rm -f /tmp/harbor_prepare_rust_env.sh
|
| 82 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 83 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 84 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 85 |
+
&& rm -f /workspace/download.sh \
|
| 86 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 87 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 88 |
+
RUN chmod 111 /workspace/executable
|
| 89 |
+
WORKDIR /workspace
|
| 90 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 91 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 92 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 93 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 94 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 95 |
+
RUN mkdir -p /home/agent \
|
| 96 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 97 |
+
&& chown agent:agent /workspace/executable \
|
| 98 |
+
&& chmod 111 /workspace/executable
|
| 99 |
+
ENV HOME=/home/agent
|
| 100 |
+
WORKDIR /workspace
|
| 101 |
+
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"]
|
djc--bb8.ba51260/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}
|
djc--bb8.ba51260/environment/download.sh
ADDED
|
@@ -0,0 +1,1969 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
# Standalone, source-safe download stub for the bb8 Rust workspace (ProgramGym).
|
| 3 |
+
# Sourced via: source /source_ro/download.sh
|
| 4 |
+
# Only prefetches Cargo dependencies into the cargo registry cache; it builds nothing.
|
| 5 |
+
# The generated metadata lives under the literal temp path /tmp/pb_bb8_fetch so the
|
| 6 |
+
# static linter can verify that the manifest passed to cargo fetch is the inline
|
| 7 |
+
# generated one below. download.sh reads no repository source file.
|
| 8 |
+
set -u
|
| 9 |
+
|
| 10 |
+
# Fixed temp workspace for the generated manifests + embedded lockfile. No source
|
| 11 |
+
# tree is required; this is the only directory we write to.
|
| 12 |
+
PB_FETCH_DIR="/tmp/pb_bb8_fetch"
|
| 13 |
+
|
| 14 |
+
mkdir -p "$PB_FETCH_DIR/bb8/src" "$PB_FETCH_DIR/postgres/src" "$PB_FETCH_DIR/postgres/examples" "$PB_FETCH_DIR/redis/src"
|
| 15 |
+
|
| 16 |
+
# Root workspace manifest (generated from inline data; never read from the source tree).
|
| 17 |
+
cat > "$PB_FETCH_DIR/Cargo.toml" <<'EOF_WORKSPACE'
|
| 18 |
+
[workspace]
|
| 19 |
+
members = ["bb8", "postgres", "redis"]
|
| 20 |
+
resolver = "2"
|
| 21 |
+
EOF_WORKSPACE
|
| 22 |
+
|
| 23 |
+
cat > "$PB_FETCH_DIR/bb8/Cargo.toml" <<'EOF_BB8'
|
| 24 |
+
[package]
|
| 25 |
+
name = "bb8"
|
| 26 |
+
version = "0.9.1"
|
| 27 |
+
edition = "2021"
|
| 28 |
+
rust-version = "1.75"
|
| 29 |
+
|
| 30 |
+
[dependencies]
|
| 31 |
+
futures-util = { version = "0.3.2", default-features = false, features = ["alloc"] }
|
| 32 |
+
parking_lot = { version = "0.12", optional = true }
|
| 33 |
+
tokio = { version = "1.0", features = ["rt", "sync", "time"] }
|
| 34 |
+
|
| 35 |
+
[target.'cfg(not(target_has_atomic = "64"))'.dependencies]
|
| 36 |
+
portable-atomic = "1"
|
| 37 |
+
|
| 38 |
+
[dev-dependencies]
|
| 39 |
+
tokio = { version = "1.0", features = ["macros"] }
|
| 40 |
+
|
| 41 |
+
[features]
|
| 42 |
+
parking_lot = ["dep:parking_lot", "tokio/parking_lot"]
|
| 43 |
+
default = ["parking_lot"]
|
| 44 |
+
EOF_BB8
|
| 45 |
+
|
| 46 |
+
cat > "$PB_FETCH_DIR/postgres/Cargo.toml" <<'EOF_POSTGRES'
|
| 47 |
+
[package]
|
| 48 |
+
name = "bb8-postgres"
|
| 49 |
+
version = "0.9.0"
|
| 50 |
+
edition = "2021"
|
| 51 |
+
rust-version = "1.75"
|
| 52 |
+
|
| 53 |
+
[features]
|
| 54 |
+
"with-bit-vec-0_6" = ["tokio-postgres/with-bit-vec-0_6"]
|
| 55 |
+
"with-chrono-0_4" = ["tokio-postgres/with-chrono-0_4"]
|
| 56 |
+
"with-eui48-0_4" = ["tokio-postgres/with-eui48-0_4"]
|
| 57 |
+
"with-geo-types-0_6" = ["tokio-postgres/with-geo-types-0_6"]
|
| 58 |
+
"with-serde_json-1" = ["tokio-postgres/with-serde_json-1"]
|
| 59 |
+
"with-uuid-0_8" = ["tokio-postgres/with-uuid-0_8"]
|
| 60 |
+
"with-uuid-1" = ["tokio-postgres/with-uuid-1"]
|
| 61 |
+
"with-time-0_2" = ["tokio-postgres/with-time-0_2"]
|
| 62 |
+
"with-time-0_3" = ["tokio-postgres/with-time-0_3"]
|
| 63 |
+
|
| 64 |
+
[dependencies]
|
| 65 |
+
bb8 = { version = "0.9", path = "../bb8" }
|
| 66 |
+
tokio = { version = "1.0.0", features = ["rt"] }
|
| 67 |
+
tokio-postgres = "0.7"
|
| 68 |
+
|
| 69 |
+
[dev-dependencies]
|
| 70 |
+
futures-util = "0.3.2"
|
| 71 |
+
tokio = { version = "1.0.0", features = ["macros", "rt-multi-thread"] }
|
| 72 |
+
EOF_POSTGRES
|
| 73 |
+
|
| 74 |
+
cat > "$PB_FETCH_DIR/redis/Cargo.toml" <<'EOF_REDIS'
|
| 75 |
+
[package]
|
| 76 |
+
name = "bb8-redis"
|
| 77 |
+
version = "0.26.0"
|
| 78 |
+
edition = "2021"
|
| 79 |
+
rust-version = "1.75"
|
| 80 |
+
|
| 81 |
+
[dependencies]
|
| 82 |
+
bb8 = { version = "0.9", path = "../bb8" }
|
| 83 |
+
redis = { version = "1.0.0", default-features = false, features = ["tokio-comp"] }
|
| 84 |
+
|
| 85 |
+
[dev-dependencies]
|
| 86 |
+
futures-util = "0.3.15"
|
| 87 |
+
tokio = { version = "1.0.0", features = ["macros", "rt-multi-thread"] }
|
| 88 |
+
EOF_REDIS
|
| 89 |
+
|
| 90 |
+
# Minimal stubs so the generated manifests have valid targets for cargo fetch.
|
| 91 |
+
printf '%s\n' '#[allow(dead_code)]' 'pub fn bb8_stub(){}' > "$PB_FETCH_DIR/bb8/src/lib.rs"
|
| 92 |
+
printf '%s\n' '#[allow(dead_code)]' 'pub fn bb8_postgres_stub(){}' > "$PB_FETCH_DIR/postgres/src/lib.rs"
|
| 93 |
+
printf '%s\n' 'fn main(){}' > "$PB_FETCH_DIR/postgres/examples/custom_state.rs"
|
| 94 |
+
printf '%s\n' '#[allow(dead_code)]' 'pub fn bb8_redis_stub(){}' > "$PB_FETCH_DIR/redis/src/lib.rs"
|
| 95 |
+
|
| 96 |
+
# Verbatim copy of the committed Cargo.lock, embedded inline so that
|
| 97 |
+
# cargo fetch --locked pulls exactly the crate versions required by the offline
|
| 98 |
+
# build (build.sh runs cargo build --offline against the same committed lock).
|
| 99 |
+
cat > "$PB_FETCH_DIR/Cargo.lock" <<'EOF_LOCK'
|
| 100 |
+
# This file is automatically @generated by Cargo.
|
| 101 |
+
# It is not intended for manual editing.
|
| 102 |
+
version = 3
|
| 103 |
+
|
| 104 |
+
[[package]]
|
| 105 |
+
name = "android_system_properties"
|
| 106 |
+
version = "0.1.5"
|
| 107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 108 |
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
| 109 |
+
dependencies = [
|
| 110 |
+
"libc",
|
| 111 |
+
]
|
| 112 |
+
|
| 113 |
+
[[package]]
|
| 114 |
+
name = "anyhow"
|
| 115 |
+
version = "1.0.102"
|
| 116 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 117 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 118 |
+
|
| 119 |
+
[[package]]
|
| 120 |
+
name = "approx"
|
| 121 |
+
version = "0.3.2"
|
| 122 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 123 |
+
checksum = "f0e60b75072ecd4168020818c0107f2857bb6c4e64252d8d3983f6263b40a5c3"
|
| 124 |
+
dependencies = [
|
| 125 |
+
"num-traits",
|
| 126 |
+
]
|
| 127 |
+
|
| 128 |
+
[[package]]
|
| 129 |
+
name = "arcstr"
|
| 130 |
+
version = "1.2.0"
|
| 131 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 132 |
+
checksum = "03918c3dbd7701a85c6b9887732e2921175f26c350b4563841d0958c21d57e6d"
|
| 133 |
+
|
| 134 |
+
[[package]]
|
| 135 |
+
name = "async-lock"
|
| 136 |
+
version = "3.4.2"
|
| 137 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 138 |
+
checksum = "290f7f2596bd5b78a9fec8088ccd89180d7f9f55b94b0576823bbbdc72ee8311"
|
| 139 |
+
dependencies = [
|
| 140 |
+
"event-listener",
|
| 141 |
+
"event-listener-strategy",
|
| 142 |
+
"pin-project-lite",
|
| 143 |
+
]
|
| 144 |
+
|
| 145 |
+
[[package]]
|
| 146 |
+
name = "async-trait"
|
| 147 |
+
version = "0.1.89"
|
| 148 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 149 |
+
checksum = "9035ad2d096bed7955a320ee7e2230574d28fd3c3a0f186cbea1ff3c7eed5dbb"
|
| 150 |
+
dependencies = [
|
| 151 |
+
"proc-macro2",
|
| 152 |
+
"quote",
|
| 153 |
+
"syn 2.0.117",
|
| 154 |
+
]
|
| 155 |
+
|
| 156 |
+
[[package]]
|
| 157 |
+
name = "autocfg"
|
| 158 |
+
version = "1.5.1"
|
| 159 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 160 |
+
checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
|
| 161 |
+
|
| 162 |
+
[[package]]
|
| 163 |
+
name = "base-x"
|
| 164 |
+
version = "0.2.11"
|
| 165 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 166 |
+
checksum = "4cbbc9d0964165b47557570cce6c952866c2678457aca742aafc9fb771d30270"
|
| 167 |
+
|
| 168 |
+
[[package]]
|
| 169 |
+
name = "base64"
|
| 170 |
+
version = "0.22.1"
|
| 171 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 172 |
+
checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
|
| 173 |
+
|
| 174 |
+
[[package]]
|
| 175 |
+
name = "bb8"
|
| 176 |
+
version = "0.9.1"
|
| 177 |
+
dependencies = [
|
| 178 |
+
"futures-util",
|
| 179 |
+
"parking_lot",
|
| 180 |
+
"portable-atomic",
|
| 181 |
+
"tokio",
|
| 182 |
+
]
|
| 183 |
+
|
| 184 |
+
[[package]]
|
| 185 |
+
name = "bb8-postgres"
|
| 186 |
+
version = "0.9.0"
|
| 187 |
+
dependencies = [
|
| 188 |
+
"bb8",
|
| 189 |
+
"futures-util",
|
| 190 |
+
"tokio",
|
| 191 |
+
"tokio-postgres",
|
| 192 |
+
]
|
| 193 |
+
|
| 194 |
+
[[package]]
|
| 195 |
+
name = "bb8-redis"
|
| 196 |
+
version = "0.26.0"
|
| 197 |
+
dependencies = [
|
| 198 |
+
"bb8",
|
| 199 |
+
"futures-util",
|
| 200 |
+
"redis",
|
| 201 |
+
"tokio",
|
| 202 |
+
]
|
| 203 |
+
|
| 204 |
+
[[package]]
|
| 205 |
+
name = "bit-vec"
|
| 206 |
+
version = "0.6.3"
|
| 207 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 208 |
+
checksum = "349f9b6a179ed607305526ca489b34ad0a41aed5f7980fa90eb03160b69598fb"
|
| 209 |
+
|
| 210 |
+
[[package]]
|
| 211 |
+
name = "bitflags"
|
| 212 |
+
version = "2.13.0"
|
| 213 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 214 |
+
checksum = "b4388bee8683e3d04af747c73422af53102d2bd24d9eadb6cbc100baef4b43f8"
|
| 215 |
+
|
| 216 |
+
[[package]]
|
| 217 |
+
name = "block-buffer"
|
| 218 |
+
version = "0.12.1"
|
| 219 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 220 |
+
checksum = "d2f6c7dbe95a6ed67ad9f18e57daf93a2f034c524b99fd2b76d18fdfeb6660aa"
|
| 221 |
+
dependencies = [
|
| 222 |
+
"hybrid-array",
|
| 223 |
+
]
|
| 224 |
+
|
| 225 |
+
[[package]]
|
| 226 |
+
name = "bumpalo"
|
| 227 |
+
version = "3.20.3"
|
| 228 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 229 |
+
checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
|
| 230 |
+
|
| 231 |
+
[[package]]
|
| 232 |
+
name = "byteorder"
|
| 233 |
+
version = "1.5.0"
|
| 234 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 235 |
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
| 236 |
+
|
| 237 |
+
[[package]]
|
| 238 |
+
name = "bytes"
|
| 239 |
+
version = "1.11.1"
|
| 240 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 241 |
+
checksum = "1e748733b7cbc798e1434b6ac524f0c1ff2ab456fe201501e6497c8417a4fc33"
|
| 242 |
+
|
| 243 |
+
[[package]]
|
| 244 |
+
name = "cc"
|
| 245 |
+
version = "1.2.64"
|
| 246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 247 |
+
checksum = "dad887fd958be91b5098c0248def011f4523ab786cd411be668777e55063501f"
|
| 248 |
+
dependencies = [
|
| 249 |
+
"find-msvc-tools",
|
| 250 |
+
"shlex",
|
| 251 |
+
]
|
| 252 |
+
|
| 253 |
+
[[package]]
|
| 254 |
+
name = "cfg-if"
|
| 255 |
+
version = "1.0.4"
|
| 256 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 257 |
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
| 258 |
+
|
| 259 |
+
[[package]]
|
| 260 |
+
name = "chacha20"
|
| 261 |
+
version = "0.10.0"
|
| 262 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 263 |
+
checksum = "6f8d983286843e49675a4b7a2d174efe136dc93a18d69130dd18198a6c167601"
|
| 264 |
+
dependencies = [
|
| 265 |
+
"cfg-if",
|
| 266 |
+
"cpufeatures",
|
| 267 |
+
"rand_core",
|
| 268 |
+
]
|
| 269 |
+
|
| 270 |
+
[[package]]
|
| 271 |
+
name = "chrono"
|
| 272 |
+
version = "0.4.45"
|
| 273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 274 |
+
checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
|
| 275 |
+
dependencies = [
|
| 276 |
+
"iana-time-zone",
|
| 277 |
+
"num-traits",
|
| 278 |
+
"windows-link",
|
| 279 |
+
]
|
| 280 |
+
|
| 281 |
+
[[package]]
|
| 282 |
+
name = "cmov"
|
| 283 |
+
version = "0.5.4"
|
| 284 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 285 |
+
checksum = "0c9ea0ac24bc397ab3c98583a3c9ba74fa56b09a4449bbe172b9b1ddb016027a"
|
| 286 |
+
|
| 287 |
+
[[package]]
|
| 288 |
+
name = "combine"
|
| 289 |
+
version = "4.6.7"
|
| 290 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 291 |
+
checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
|
| 292 |
+
dependencies = [
|
| 293 |
+
"bytes",
|
| 294 |
+
"futures-core",
|
| 295 |
+
"memchr",
|
| 296 |
+
"pin-project-lite",
|
| 297 |
+
"tokio",
|
| 298 |
+
"tokio-util",
|
| 299 |
+
]
|
| 300 |
+
|
| 301 |
+
[[package]]
|
| 302 |
+
name = "concurrent-queue"
|
| 303 |
+
version = "2.5.0"
|
| 304 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 305 |
+
checksum = "4ca0197aee26d1ae37445ee532fefce43251d24cc7c166799f4d46817f1d3973"
|
| 306 |
+
dependencies = [
|
| 307 |
+
"crossbeam-utils",
|
| 308 |
+
]
|
| 309 |
+
|
| 310 |
+
[[package]]
|
| 311 |
+
name = "const-oid"
|
| 312 |
+
version = "0.10.2"
|
| 313 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 314 |
+
checksum = "a6ef517f0926dd24a1582492c791b6a4818a4d94e789a334894aa15b0d12f55c"
|
| 315 |
+
|
| 316 |
+
[[package]]
|
| 317 |
+
name = "const_fn"
|
| 318 |
+
version = "0.4.12"
|
| 319 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 320 |
+
checksum = "413d67b29ef1021b4d60f4aa1e925ca031751e213832b4b1d588fae623c05c60"
|
| 321 |
+
|
| 322 |
+
[[package]]
|
| 323 |
+
name = "core-foundation-sys"
|
| 324 |
+
version = "0.8.7"
|
| 325 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 326 |
+
checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
|
| 327 |
+
|
| 328 |
+
[[package]]
|
| 329 |
+
name = "cpufeatures"
|
| 330 |
+
version = "0.3.0"
|
| 331 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 332 |
+
checksum = "8b2a41393f66f16b0823bb79094d54ac5fbd34ab292ddafb9a0456ac9f87d201"
|
| 333 |
+
dependencies = [
|
| 334 |
+
"libc",
|
| 335 |
+
]
|
| 336 |
+
|
| 337 |
+
[[package]]
|
| 338 |
+
name = "crossbeam-utils"
|
| 339 |
+
version = "0.8.21"
|
| 340 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 341 |
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
| 342 |
+
|
| 343 |
+
[[package]]
|
| 344 |
+
name = "crypto-common"
|
| 345 |
+
version = "0.2.2"
|
| 346 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 347 |
+
checksum = "ce6e4c961d6cd6c9a86db418387425e8bdeaf05b3c8bc1411e6dca4c252f1453"
|
| 348 |
+
dependencies = [
|
| 349 |
+
"hybrid-array",
|
| 350 |
+
]
|
| 351 |
+
|
| 352 |
+
[[package]]
|
| 353 |
+
name = "ctutils"
|
| 354 |
+
version = "0.4.2"
|
| 355 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 356 |
+
checksum = "7d5515a3834141de9eafb9717ad39eea8247b5674e6066c404e8c4b365d2a29e"
|
| 357 |
+
dependencies = [
|
| 358 |
+
"cmov",
|
| 359 |
+
]
|
| 360 |
+
|
| 361 |
+
[[package]]
|
| 362 |
+
name = "deranged"
|
| 363 |
+
version = "0.5.8"
|
| 364 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 365 |
+
checksum = "7cd812cc2bc1d69d4764bd80df88b4317eaef9e773c75226407d9bc0876b211c"
|
| 366 |
+
|
| 367 |
+
[[package]]
|
| 368 |
+
name = "digest"
|
| 369 |
+
version = "0.11.3"
|
| 370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 371 |
+
checksum = "f1dd6dbb5841937940781866fa1281a1ff7bd3bf827091440879f9994983d5c2"
|
| 372 |
+
dependencies = [
|
| 373 |
+
"block-buffer",
|
| 374 |
+
"const-oid",
|
| 375 |
+
"crypto-common",
|
| 376 |
+
"ctutils",
|
| 377 |
+
]
|
| 378 |
+
|
| 379 |
+
[[package]]
|
| 380 |
+
name = "discard"
|
| 381 |
+
version = "1.0.4"
|
| 382 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 383 |
+
checksum = "212d0f5754cb6769937f4501cc0e67f4f4483c8d2c3e1e922ee9edbe4ab4c7c0"
|
| 384 |
+
|
| 385 |
+
[[package]]
|
| 386 |
+
name = "displaydoc"
|
| 387 |
+
version = "0.2.6"
|
| 388 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 389 |
+
checksum = "1ac70aa55017e108007fbaf5aa0f54b021c98f92ff8af59d42eda9da96e3dd4f"
|
| 390 |
+
dependencies = [
|
| 391 |
+
"proc-macro2",
|
| 392 |
+
"quote",
|
| 393 |
+
"syn 2.0.117",
|
| 394 |
+
]
|
| 395 |
+
|
| 396 |
+
[[package]]
|
| 397 |
+
name = "equivalent"
|
| 398 |
+
version = "1.0.2"
|
| 399 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 400 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 401 |
+
|
| 402 |
+
[[package]]
|
| 403 |
+
name = "eui48"
|
| 404 |
+
version = "0.4.6"
|
| 405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 406 |
+
checksum = "8c4cf866e4d3e5e773691f5f61615a224a7b0b72b7daf994fc56d1b82dab0b6b"
|
| 407 |
+
dependencies = [
|
| 408 |
+
"rustc-serialize",
|
| 409 |
+
]
|
| 410 |
+
|
| 411 |
+
[[package]]
|
| 412 |
+
name = "event-listener"
|
| 413 |
+
version = "5.4.1"
|
| 414 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 415 |
+
checksum = "e13b66accf52311f30a0db42147dadea9850cb48cd070028831ae5f5d4b856ab"
|
| 416 |
+
dependencies = [
|
| 417 |
+
"concurrent-queue",
|
| 418 |
+
"parking",
|
| 419 |
+
"pin-project-lite",
|
| 420 |
+
]
|
| 421 |
+
|
| 422 |
+
[[package]]
|
| 423 |
+
name = "event-listener-strategy"
|
| 424 |
+
version = "0.5.4"
|
| 425 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 426 |
+
checksum = "8be9f3dfaaffdae2972880079a491a1a8bb7cbed0b8dd7a347f668b4150a3b93"
|
| 427 |
+
dependencies = [
|
| 428 |
+
"event-listener",
|
| 429 |
+
"pin-project-lite",
|
| 430 |
+
]
|
| 431 |
+
|
| 432 |
+
[[package]]
|
| 433 |
+
name = "fallible-iterator"
|
| 434 |
+
version = "0.2.0"
|
| 435 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 436 |
+
checksum = "4443176a9f2c162692bd3d352d745ef9413eec5782a80d8fd6f8a1ac692a07f7"
|
| 437 |
+
|
| 438 |
+
[[package]]
|
| 439 |
+
name = "find-msvc-tools"
|
| 440 |
+
version = "0.1.9"
|
| 441 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 442 |
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
| 443 |
+
|
| 444 |
+
[[package]]
|
| 445 |
+
name = "foldhash"
|
| 446 |
+
version = "0.1.5"
|
| 447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 448 |
+
checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
|
| 449 |
+
|
| 450 |
+
[[package]]
|
| 451 |
+
name = "form_urlencoded"
|
| 452 |
+
version = "1.2.2"
|
| 453 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 454 |
+
checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
|
| 455 |
+
dependencies = [
|
| 456 |
+
"percent-encoding",
|
| 457 |
+
]
|
| 458 |
+
|
| 459 |
+
[[package]]
|
| 460 |
+
name = "futures-channel"
|
| 461 |
+
version = "0.3.32"
|
| 462 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 463 |
+
checksum = "07bbe89c50d7a535e539b8c17bc0b49bdb77747034daa8087407d655f3f7cc1d"
|
| 464 |
+
dependencies = [
|
| 465 |
+
"futures-core",
|
| 466 |
+
"futures-sink",
|
| 467 |
+
]
|
| 468 |
+
|
| 469 |
+
[[package]]
|
| 470 |
+
name = "futures-core"
|
| 471 |
+
version = "0.3.32"
|
| 472 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 473 |
+
checksum = "7e3450815272ef58cec6d564423f6e755e25379b217b0bc688e295ba24df6b1d"
|
| 474 |
+
|
| 475 |
+
[[package]]
|
| 476 |
+
name = "futures-macro"
|
| 477 |
+
version = "0.3.32"
|
| 478 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 479 |
+
checksum = "e835b70203e41293343137df5c0664546da5745f82ec9b84d40be8336958447b"
|
| 480 |
+
dependencies = [
|
| 481 |
+
"proc-macro2",
|
| 482 |
+
"quote",
|
| 483 |
+
"syn 2.0.117",
|
| 484 |
+
]
|
| 485 |
+
|
| 486 |
+
[[package]]
|
| 487 |
+
name = "futures-sink"
|
| 488 |
+
version = "0.3.32"
|
| 489 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 490 |
+
checksum = "c39754e157331b013978ec91992bde1ac089843443c49cbc7f46150b0fad0893"
|
| 491 |
+
|
| 492 |
+
[[package]]
|
| 493 |
+
name = "futures-task"
|
| 494 |
+
version = "0.3.32"
|
| 495 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 496 |
+
checksum = "037711b3d59c33004d3856fbdc83b99d4ff37a24768fa1be9ce3538a1cde4393"
|
| 497 |
+
|
| 498 |
+
[[package]]
|
| 499 |
+
name = "futures-util"
|
| 500 |
+
version = "0.3.32"
|
| 501 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 502 |
+
checksum = "389ca41296e6190b48053de0321d02a77f32f8a5d2461dd38762c0593805c6d6"
|
| 503 |
+
dependencies = [
|
| 504 |
+
"futures-core",
|
| 505 |
+
"futures-macro",
|
| 506 |
+
"futures-sink",
|
| 507 |
+
"futures-task",
|
| 508 |
+
"pin-project-lite",
|
| 509 |
+
"slab",
|
| 510 |
+
]
|
| 511 |
+
|
| 512 |
+
[[package]]
|
| 513 |
+
name = "geo-types"
|
| 514 |
+
version = "0.6.2"
|
| 515 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 516 |
+
checksum = "7583925a1fdb2b450c461fe0878ba6e99a8f1332b2bc72fb1383fd25b2f13bf2"
|
| 517 |
+
dependencies = [
|
| 518 |
+
"approx",
|
| 519 |
+
"num-traits",
|
| 520 |
+
]
|
| 521 |
+
|
| 522 |
+
[[package]]
|
| 523 |
+
name = "getrandom"
|
| 524 |
+
version = "0.4.2"
|
| 525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 526 |
+
checksum = "0de51e6874e94e7bf76d726fc5d13ba782deca734ff60d5bb2fb2607c7406555"
|
| 527 |
+
dependencies = [
|
| 528 |
+
"cfg-if",
|
| 529 |
+
"libc",
|
| 530 |
+
"r-efi",
|
| 531 |
+
"rand_core",
|
| 532 |
+
"wasip2",
|
| 533 |
+
"wasip3",
|
| 534 |
+
]
|
| 535 |
+
|
| 536 |
+
[[package]]
|
| 537 |
+
name = "hashbrown"
|
| 538 |
+
version = "0.15.5"
|
| 539 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 540 |
+
checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
|
| 541 |
+
dependencies = [
|
| 542 |
+
"foldhash",
|
| 543 |
+
]
|
| 544 |
+
|
| 545 |
+
[[package]]
|
| 546 |
+
name = "hashbrown"
|
| 547 |
+
version = "0.17.1"
|
| 548 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 549 |
+
checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
|
| 550 |
+
|
| 551 |
+
[[package]]
|
| 552 |
+
name = "heck"
|
| 553 |
+
version = "0.5.0"
|
| 554 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 555 |
+
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
| 556 |
+
|
| 557 |
+
[[package]]
|
| 558 |
+
name = "hmac"
|
| 559 |
+
version = "0.13.0"
|
| 560 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 561 |
+
checksum = "6303bc9732ae41b04cb554b844a762b4115a61bfaa81e3e83050991eeb56863f"
|
| 562 |
+
dependencies = [
|
| 563 |
+
"digest",
|
| 564 |
+
]
|
| 565 |
+
|
| 566 |
+
[[package]]
|
| 567 |
+
name = "hybrid-array"
|
| 568 |
+
version = "0.4.12"
|
| 569 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 570 |
+
checksum = "9155a582abd142abc056962c29e3ce5ff2ad5469f4246b537ed42c5deba857da"
|
| 571 |
+
dependencies = [
|
| 572 |
+
"typenum",
|
| 573 |
+
]
|
| 574 |
+
|
| 575 |
+
[[package]]
|
| 576 |
+
name = "iana-time-zone"
|
| 577 |
+
version = "0.1.65"
|
| 578 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 579 |
+
checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
|
| 580 |
+
dependencies = [
|
| 581 |
+
"android_system_properties",
|
| 582 |
+
"core-foundation-sys",
|
| 583 |
+
"iana-time-zone-haiku",
|
| 584 |
+
"js-sys",
|
| 585 |
+
"log",
|
| 586 |
+
"wasm-bindgen",
|
| 587 |
+
"windows-core",
|
| 588 |
+
]
|
| 589 |
+
|
| 590 |
+
[[package]]
|
| 591 |
+
name = "iana-time-zone-haiku"
|
| 592 |
+
version = "0.1.2"
|
| 593 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 594 |
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
| 595 |
+
dependencies = [
|
| 596 |
+
"cc",
|
| 597 |
+
]
|
| 598 |
+
|
| 599 |
+
[[package]]
|
| 600 |
+
name = "icu_collections"
|
| 601 |
+
version = "2.2.0"
|
| 602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 603 |
+
checksum = "2984d1cd16c883d7935b9e07e44071dca8d917fd52ecc02c04d5fa0b5a3f191c"
|
| 604 |
+
dependencies = [
|
| 605 |
+
"displaydoc",
|
| 606 |
+
"potential_utf",
|
| 607 |
+
"utf8_iter",
|
| 608 |
+
"yoke",
|
| 609 |
+
"zerofrom",
|
| 610 |
+
"zerovec",
|
| 611 |
+
]
|
| 612 |
+
|
| 613 |
+
[[package]]
|
| 614 |
+
name = "icu_locale_core"
|
| 615 |
+
version = "2.2.0"
|
| 616 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 617 |
+
checksum = "92219b62b3e2b4d88ac5119f8904c10f8f61bf7e95b640d25ba3075e6cac2c29"
|
| 618 |
+
dependencies = [
|
| 619 |
+
"displaydoc",
|
| 620 |
+
"litemap",
|
| 621 |
+
"tinystr",
|
| 622 |
+
"writeable",
|
| 623 |
+
"zerovec",
|
| 624 |
+
]
|
| 625 |
+
|
| 626 |
+
[[package]]
|
| 627 |
+
name = "icu_normalizer"
|
| 628 |
+
version = "2.2.0"
|
| 629 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 630 |
+
checksum = "c56e5ee99d6e3d33bd91c5d85458b6005a22140021cc324cea84dd0e72cff3b4"
|
| 631 |
+
dependencies = [
|
| 632 |
+
"icu_collections",
|
| 633 |
+
"icu_normalizer_data",
|
| 634 |
+
"icu_properties",
|
| 635 |
+
"icu_provider",
|
| 636 |
+
"smallvec",
|
| 637 |
+
"zerovec",
|
| 638 |
+
]
|
| 639 |
+
|
| 640 |
+
[[package]]
|
| 641 |
+
name = "icu_normalizer_data"
|
| 642 |
+
version = "2.2.0"
|
| 643 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 644 |
+
checksum = "da3be0ae77ea334f4da67c12f149704f19f81d1adf7c51cf482943e84a2bad38"
|
| 645 |
+
|
| 646 |
+
[[package]]
|
| 647 |
+
name = "icu_properties"
|
| 648 |
+
version = "2.2.0"
|
| 649 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 650 |
+
checksum = "bee3b67d0ea5c2cca5003417989af8996f8604e34fb9ddf96208a033901e70de"
|
| 651 |
+
dependencies = [
|
| 652 |
+
"icu_collections",
|
| 653 |
+
"icu_locale_core",
|
| 654 |
+
"icu_properties_data",
|
| 655 |
+
"icu_provider",
|
| 656 |
+
"zerotrie",
|
| 657 |
+
"zerovec",
|
| 658 |
+
]
|
| 659 |
+
|
| 660 |
+
[[package]]
|
| 661 |
+
name = "icu_properties_data"
|
| 662 |
+
version = "2.2.0"
|
| 663 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 664 |
+
checksum = "8e2bbb201e0c04f7b4b3e14382af113e17ba4f63e2c9d2ee626b720cbce54a14"
|
| 665 |
+
|
| 666 |
+
[[package]]
|
| 667 |
+
name = "icu_provider"
|
| 668 |
+
version = "2.2.0"
|
| 669 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 670 |
+
checksum = "139c4cf31c8b5f33d7e199446eff9c1e02decfc2f0eec2c8d71f65befa45b421"
|
| 671 |
+
dependencies = [
|
| 672 |
+
"displaydoc",
|
| 673 |
+
"icu_locale_core",
|
| 674 |
+
"writeable",
|
| 675 |
+
"yoke",
|
| 676 |
+
"zerofrom",
|
| 677 |
+
"zerotrie",
|
| 678 |
+
"zerovec",
|
| 679 |
+
]
|
| 680 |
+
|
| 681 |
+
[[package]]
|
| 682 |
+
name = "id-arena"
|
| 683 |
+
version = "2.3.0"
|
| 684 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 685 |
+
checksum = "3d3067d79b975e8844ca9eb072e16b31c3c1c36928edf9c6789548c524d0d954"
|
| 686 |
+
|
| 687 |
+
[[package]]
|
| 688 |
+
name = "idna"
|
| 689 |
+
version = "1.1.0"
|
| 690 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 691 |
+
checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
|
| 692 |
+
dependencies = [
|
| 693 |
+
"idna_adapter",
|
| 694 |
+
"smallvec",
|
| 695 |
+
"utf8_iter",
|
| 696 |
+
]
|
| 697 |
+
|
| 698 |
+
[[package]]
|
| 699 |
+
name = "idna_adapter"
|
| 700 |
+
version = "1.2.2"
|
| 701 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 702 |
+
checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
|
| 703 |
+
dependencies = [
|
| 704 |
+
"icu_normalizer",
|
| 705 |
+
"icu_properties",
|
| 706 |
+
]
|
| 707 |
+
|
| 708 |
+
[[package]]
|
| 709 |
+
name = "indexmap"
|
| 710 |
+
version = "2.14.0"
|
| 711 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 712 |
+
checksum = "d466e9454f08e4a911e14806c24e16fba1b4c121d1ea474396f396069cf949d9"
|
| 713 |
+
dependencies = [
|
| 714 |
+
"equivalent",
|
| 715 |
+
"hashbrown 0.17.1",
|
| 716 |
+
"serde",
|
| 717 |
+
"serde_core",
|
| 718 |
+
]
|
| 719 |
+
|
| 720 |
+
[[package]]
|
| 721 |
+
name = "itoa"
|
| 722 |
+
version = "1.0.18"
|
| 723 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 724 |
+
checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
|
| 725 |
+
|
| 726 |
+
[[package]]
|
| 727 |
+
name = "js-sys"
|
| 728 |
+
version = "0.3.102"
|
| 729 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 730 |
+
checksum = "03d04c30968dffe80775bd4d7fb676131cd04a1fb46d2686dbffbaec2d9dfd31"
|
| 731 |
+
dependencies = [
|
| 732 |
+
"cfg-if",
|
| 733 |
+
"futures-util",
|
| 734 |
+
"wasm-bindgen",
|
| 735 |
+
]
|
| 736 |
+
|
| 737 |
+
[[package]]
|
| 738 |
+
name = "leb128fmt"
|
| 739 |
+
version = "0.1.0"
|
| 740 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 741 |
+
checksum = "09edd9e8b54e49e587e4f6295a7d29c3ea94d469cb40ab8ca70b288248a81db2"
|
| 742 |
+
|
| 743 |
+
[[package]]
|
| 744 |
+
name = "libc"
|
| 745 |
+
version = "0.2.186"
|
| 746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 747 |
+
checksum = "68ab91017fe16c622486840e4c83c9a37afeff978bd239b5293d61ece587de66"
|
| 748 |
+
|
| 749 |
+
[[package]]
|
| 750 |
+
name = "libredox"
|
| 751 |
+
version = "0.1.17"
|
| 752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 753 |
+
checksum = "f02ab6bace2054fb888a3c16f990117b579d14a3088e472d63c6011fa185c9d3"
|
| 754 |
+
dependencies = [
|
| 755 |
+
"libc",
|
| 756 |
+
]
|
| 757 |
+
|
| 758 |
+
[[package]]
|
| 759 |
+
name = "litemap"
|
| 760 |
+
version = "0.8.2"
|
| 761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 762 |
+
checksum = "92daf443525c4cce67b150400bc2316076100ce0b3686209eb8cf3c31612e6f0"
|
| 763 |
+
|
| 764 |
+
[[package]]
|
| 765 |
+
name = "lock_api"
|
| 766 |
+
version = "0.4.14"
|
| 767 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 768 |
+
checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
|
| 769 |
+
dependencies = [
|
| 770 |
+
"scopeguard",
|
| 771 |
+
]
|
| 772 |
+
|
| 773 |
+
[[package]]
|
| 774 |
+
name = "log"
|
| 775 |
+
version = "0.4.32"
|
| 776 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 777 |
+
checksum = "953f07c43838f8e6f9758cab68bf5bed85465e7587ebe0b823f1bcd81978ad3a"
|
| 778 |
+
|
| 779 |
+
[[package]]
|
| 780 |
+
name = "md-5"
|
| 781 |
+
version = "0.11.0"
|
| 782 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 783 |
+
checksum = "69b6441f590336821bb897fb28fc622898ccceb1d6cea3fde5ea86b090c4de98"
|
| 784 |
+
dependencies = [
|
| 785 |
+
"cfg-if",
|
| 786 |
+
"digest",
|
| 787 |
+
]
|
| 788 |
+
|
| 789 |
+
[[package]]
|
| 790 |
+
name = "memchr"
|
| 791 |
+
version = "2.8.2"
|
| 792 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 793 |
+
checksum = "88904434abc2901f197fe8cc55f0445e7ded921dba5911dad2e2b39b48e663c4"
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "mio"
|
| 797 |
+
version = "1.2.1"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "02bd0af71c67b473010cbbc60715ee815645a4dc942899111f494b4b737d6fda"
|
| 800 |
+
dependencies = [
|
| 801 |
+
"libc",
|
| 802 |
+
"wasi 0.11.1+wasi-snapshot-preview1",
|
| 803 |
+
"windows-sys",
|
| 804 |
+
]
|
| 805 |
+
|
| 806 |
+
[[package]]
|
| 807 |
+
name = "num-conv"
|
| 808 |
+
version = "0.2.2"
|
| 809 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 810 |
+
checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
|
| 811 |
+
|
| 812 |
+
[[package]]
|
| 813 |
+
name = "num-traits"
|
| 814 |
+
version = "0.2.19"
|
| 815 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 816 |
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
| 817 |
+
dependencies = [
|
| 818 |
+
"autocfg",
|
| 819 |
+
]
|
| 820 |
+
|
| 821 |
+
[[package]]
|
| 822 |
+
name = "objc2-core-foundation"
|
| 823 |
+
version = "0.3.2"
|
| 824 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 825 |
+
checksum = "2a180dd8642fa45cdb7dd721cd4c11b1cadd4929ce112ebd8b9f5803cc79d536"
|
| 826 |
+
dependencies = [
|
| 827 |
+
"bitflags",
|
| 828 |
+
]
|
| 829 |
+
|
| 830 |
+
[[package]]
|
| 831 |
+
name = "objc2-system-configuration"
|
| 832 |
+
version = "0.3.2"
|
| 833 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 834 |
+
checksum = "7216bd11cbda54ccabcab84d523dc93b858ec75ecfb3a7d89513fa22464da396"
|
| 835 |
+
dependencies = [
|
| 836 |
+
"objc2-core-foundation",
|
| 837 |
+
]
|
| 838 |
+
|
| 839 |
+
[[package]]
|
| 840 |
+
name = "once_cell"
|
| 841 |
+
version = "1.21.4"
|
| 842 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 843 |
+
checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
|
| 844 |
+
|
| 845 |
+
[[package]]
|
| 846 |
+
name = "parking"
|
| 847 |
+
version = "2.2.1"
|
| 848 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 849 |
+
checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
|
| 850 |
+
|
| 851 |
+
[[package]]
|
| 852 |
+
name = "parking_lot"
|
| 853 |
+
version = "0.12.5"
|
| 854 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 855 |
+
checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
|
| 856 |
+
dependencies = [
|
| 857 |
+
"lock_api",
|
| 858 |
+
"parking_lot_core",
|
| 859 |
+
]
|
| 860 |
+
|
| 861 |
+
[[package]]
|
| 862 |
+
name = "parking_lot_core"
|
| 863 |
+
version = "0.9.12"
|
| 864 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 865 |
+
checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
|
| 866 |
+
dependencies = [
|
| 867 |
+
"cfg-if",
|
| 868 |
+
"libc",
|
| 869 |
+
"redox_syscall",
|
| 870 |
+
"smallvec",
|
| 871 |
+
"windows-link",
|
| 872 |
+
]
|
| 873 |
+
|
| 874 |
+
[[package]]
|
| 875 |
+
name = "percent-encoding"
|
| 876 |
+
version = "2.3.2"
|
| 877 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 878 |
+
checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
|
| 879 |
+
|
| 880 |
+
[[package]]
|
| 881 |
+
name = "phf"
|
| 882 |
+
version = "0.13.1"
|
| 883 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 884 |
+
checksum = "c1562dc717473dbaa4c1f85a36410e03c047b2e7df7f45ee938fbef64ae7fadf"
|
| 885 |
+
dependencies = [
|
| 886 |
+
"phf_shared",
|
| 887 |
+
"serde",
|
| 888 |
+
]
|
| 889 |
+
|
| 890 |
+
[[package]]
|
| 891 |
+
name = "phf_shared"
|
| 892 |
+
version = "0.13.1"
|
| 893 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 894 |
+
checksum = "e57fef6bc5981e38c2ce2d63bfa546861309f875b8a75f092d1d54ae2d64f266"
|
| 895 |
+
dependencies = [
|
| 896 |
+
"siphasher",
|
| 897 |
+
]
|
| 898 |
+
|
| 899 |
+
[[package]]
|
| 900 |
+
name = "pin-project-lite"
|
| 901 |
+
version = "0.2.17"
|
| 902 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 903 |
+
checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
|
| 904 |
+
|
| 905 |
+
[[package]]
|
| 906 |
+
name = "portable-atomic"
|
| 907 |
+
version = "1.13.1"
|
| 908 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 909 |
+
checksum = "c33a9471896f1c69cecef8d20cbe2f7accd12527ce60845ff44c153bb2a21b49"
|
| 910 |
+
|
| 911 |
+
[[package]]
|
| 912 |
+
name = "postgres-protocol"
|
| 913 |
+
version = "0.6.12"
|
| 914 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 915 |
+
checksum = "08808e3c483c46e999108051c78334f473d5adb59d78bb80a1268c7e6aa6c514"
|
| 916 |
+
dependencies = [
|
| 917 |
+
"base64",
|
| 918 |
+
"byteorder",
|
| 919 |
+
"bytes",
|
| 920 |
+
"fallible-iterator",
|
| 921 |
+
"hmac",
|
| 922 |
+
"md-5",
|
| 923 |
+
"memchr",
|
| 924 |
+
"rand",
|
| 925 |
+
"sha2",
|
| 926 |
+
"stringprep",
|
| 927 |
+
]
|
| 928 |
+
|
| 929 |
+
[[package]]
|
| 930 |
+
name = "postgres-types"
|
| 931 |
+
version = "0.2.14"
|
| 932 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 933 |
+
checksum = "851ca9db4932932d69f3ea811b1abe63087a0f740a47692619dd40d4899b68be"
|
| 934 |
+
dependencies = [
|
| 935 |
+
"bit-vec",
|
| 936 |
+
"bytes",
|
| 937 |
+
"chrono",
|
| 938 |
+
"eui48",
|
| 939 |
+
"fallible-iterator",
|
| 940 |
+
"geo-types",
|
| 941 |
+
"postgres-protocol",
|
| 942 |
+
"serde_core",
|
| 943 |
+
"serde_json",
|
| 944 |
+
"time 0.2.27",
|
| 945 |
+
"time 0.3.49",
|
| 946 |
+
"uuid 0.8.2",
|
| 947 |
+
"uuid 1.23.3",
|
| 948 |
+
]
|
| 949 |
+
|
| 950 |
+
[[package]]
|
| 951 |
+
name = "potential_utf"
|
| 952 |
+
version = "0.1.5"
|
| 953 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 954 |
+
checksum = "0103b1cef7ec0cf76490e969665504990193874ea05c85ff9bab8b911d0a0564"
|
| 955 |
+
dependencies = [
|
| 956 |
+
"zerovec",
|
| 957 |
+
]
|
| 958 |
+
|
| 959 |
+
[[package]]
|
| 960 |
+
name = "powerfmt"
|
| 961 |
+
version = "0.2.0"
|
| 962 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 963 |
+
checksum = "439ee305def115ba05938db6eb1644ff94165c5ab5e9420d1c1bcedbba909391"
|
| 964 |
+
|
| 965 |
+
[[package]]
|
| 966 |
+
name = "prettyplease"
|
| 967 |
+
version = "0.2.37"
|
| 968 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 969 |
+
checksum = "479ca8adacdd7ce8f1fb39ce9ecccbfe93a3f1344b3d0d97f20bc0196208f62b"
|
| 970 |
+
dependencies = [
|
| 971 |
+
"proc-macro2",
|
| 972 |
+
"syn 2.0.117",
|
| 973 |
+
]
|
| 974 |
+
|
| 975 |
+
[[package]]
|
| 976 |
+
name = "proc-macro-hack"
|
| 977 |
+
version = "0.5.20+deprecated"
|
| 978 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 979 |
+
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
|
| 980 |
+
|
| 981 |
+
[[package]]
|
| 982 |
+
name = "proc-macro2"
|
| 983 |
+
version = "1.0.106"
|
| 984 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 985 |
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
| 986 |
+
dependencies = [
|
| 987 |
+
"unicode-ident",
|
| 988 |
+
]
|
| 989 |
+
|
| 990 |
+
[[package]]
|
| 991 |
+
name = "quote"
|
| 992 |
+
version = "1.0.45"
|
| 993 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 994 |
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
| 995 |
+
dependencies = [
|
| 996 |
+
"proc-macro2",
|
| 997 |
+
]
|
| 998 |
+
|
| 999 |
+
[[package]]
|
| 1000 |
+
name = "r-efi"
|
| 1001 |
+
version = "6.0.0"
|
| 1002 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1003 |
+
checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
|
| 1004 |
+
|
| 1005 |
+
[[package]]
|
| 1006 |
+
name = "rand"
|
| 1007 |
+
version = "0.10.1"
|
| 1008 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1009 |
+
checksum = "d2e8e8bcc7961af1fdac401278c6a831614941f6164ee3bf4ce61b7edb162207"
|
| 1010 |
+
dependencies = [
|
| 1011 |
+
"chacha20",
|
| 1012 |
+
"getrandom",
|
| 1013 |
+
"rand_core",
|
| 1014 |
+
]
|
| 1015 |
+
|
| 1016 |
+
[[package]]
|
| 1017 |
+
name = "rand_core"
|
| 1018 |
+
version = "0.10.1"
|
| 1019 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1020 |
+
checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
|
| 1021 |
+
|
| 1022 |
+
[[package]]
|
| 1023 |
+
name = "redis"
|
| 1024 |
+
version = "1.2.4"
|
| 1025 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1026 |
+
checksum = "bae41a63fd0b8a5372f82b21e810e09a316f5dd7efd96bf08e678fb240fc1918"
|
| 1027 |
+
dependencies = [
|
| 1028 |
+
"arcstr",
|
| 1029 |
+
"async-lock",
|
| 1030 |
+
"bytes",
|
| 1031 |
+
"cfg-if",
|
| 1032 |
+
"combine",
|
| 1033 |
+
"futures-util",
|
| 1034 |
+
"itoa",
|
| 1035 |
+
"percent-encoding",
|
| 1036 |
+
"pin-project-lite",
|
| 1037 |
+
"ryu",
|
| 1038 |
+
"socket2",
|
| 1039 |
+
"tokio",
|
| 1040 |
+
"tokio-util",
|
| 1041 |
+
"url",
|
| 1042 |
+
"xxhash-rust",
|
| 1043 |
+
]
|
| 1044 |
+
|
| 1045 |
+
[[package]]
|
| 1046 |
+
name = "redox_syscall"
|
| 1047 |
+
version = "0.5.18"
|
| 1048 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1049 |
+
checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
|
| 1050 |
+
dependencies = [
|
| 1051 |
+
"bitflags",
|
| 1052 |
+
]
|
| 1053 |
+
|
| 1054 |
+
[[package]]
|
| 1055 |
+
name = "rustc-serialize"
|
| 1056 |
+
version = "0.3.25"
|
| 1057 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1058 |
+
checksum = "fe834bc780604f4674073badbad26d7219cadfb4a2275802db12cbae17498401"
|
| 1059 |
+
|
| 1060 |
+
[[package]]
|
| 1061 |
+
name = "rustc_version"
|
| 1062 |
+
version = "0.2.3"
|
| 1063 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1064 |
+
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
|
| 1065 |
+
dependencies = [
|
| 1066 |
+
"semver 0.9.0",
|
| 1067 |
+
]
|
| 1068 |
+
|
| 1069 |
+
[[package]]
|
| 1070 |
+
name = "rustversion"
|
| 1071 |
+
version = "1.0.22"
|
| 1072 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1073 |
+
checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
| 1074 |
+
|
| 1075 |
+
[[package]]
|
| 1076 |
+
name = "ryu"
|
| 1077 |
+
version = "1.0.23"
|
| 1078 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1079 |
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
| 1080 |
+
|
| 1081 |
+
[[package]]
|
| 1082 |
+
name = "scopeguard"
|
| 1083 |
+
version = "1.2.0"
|
| 1084 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1085 |
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
| 1086 |
+
|
| 1087 |
+
[[package]]
|
| 1088 |
+
name = "semver"
|
| 1089 |
+
version = "0.9.0"
|
| 1090 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1091 |
+
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
|
| 1092 |
+
dependencies = [
|
| 1093 |
+
"semver-parser",
|
| 1094 |
+
]
|
| 1095 |
+
|
| 1096 |
+
[[package]]
|
| 1097 |
+
name = "semver"
|
| 1098 |
+
version = "1.0.28"
|
| 1099 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1100 |
+
checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
|
| 1101 |
+
|
| 1102 |
+
[[package]]
|
| 1103 |
+
name = "semver-parser"
|
| 1104 |
+
version = "0.7.0"
|
| 1105 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1106 |
+
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
| 1107 |
+
|
| 1108 |
+
[[package]]
|
| 1109 |
+
name = "serde"
|
| 1110 |
+
version = "1.0.228"
|
| 1111 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1112 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 1113 |
+
dependencies = [
|
| 1114 |
+
"serde_core",
|
| 1115 |
+
]
|
| 1116 |
+
|
| 1117 |
+
[[package]]
|
| 1118 |
+
name = "serde_core"
|
| 1119 |
+
version = "1.0.228"
|
| 1120 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1121 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 1122 |
+
dependencies = [
|
| 1123 |
+
"serde_derive",
|
| 1124 |
+
]
|
| 1125 |
+
|
| 1126 |
+
[[package]]
|
| 1127 |
+
name = "serde_derive"
|
| 1128 |
+
version = "1.0.228"
|
| 1129 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1130 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 1131 |
+
dependencies = [
|
| 1132 |
+
"proc-macro2",
|
| 1133 |
+
"quote",
|
| 1134 |
+
"syn 2.0.117",
|
| 1135 |
+
]
|
| 1136 |
+
|
| 1137 |
+
[[package]]
|
| 1138 |
+
name = "serde_json"
|
| 1139 |
+
version = "1.0.150"
|
| 1140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1141 |
+
checksum = "e8014e44b4736ed0538adeecded0fce2a272f22dc9578a7eb6b2d9993c74cfb9"
|
| 1142 |
+
dependencies = [
|
| 1143 |
+
"itoa",
|
| 1144 |
+
"memchr",
|
| 1145 |
+
"serde",
|
| 1146 |
+
"serde_core",
|
| 1147 |
+
"zmij",
|
| 1148 |
+
]
|
| 1149 |
+
|
| 1150 |
+
[[package]]
|
| 1151 |
+
name = "sha1"
|
| 1152 |
+
version = "0.6.1"
|
| 1153 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1154 |
+
checksum = "c1da05c97445caa12d05e848c4a4fcbbea29e748ac28f7e80e9b010392063770"
|
| 1155 |
+
dependencies = [
|
| 1156 |
+
"sha1_smol",
|
| 1157 |
+
]
|
| 1158 |
+
|
| 1159 |
+
[[package]]
|
| 1160 |
+
name = "sha1_smol"
|
| 1161 |
+
version = "1.0.1"
|
| 1162 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1163 |
+
checksum = "bbfa15b3dddfee50a0fff136974b3e1bde555604ba463834a7eb7deb6417705d"
|
| 1164 |
+
|
| 1165 |
+
[[package]]
|
| 1166 |
+
name = "sha2"
|
| 1167 |
+
version = "0.11.0"
|
| 1168 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1169 |
+
checksum = "446ba717509524cb3f22f17ecc096f10f4822d76ab5c0b9822c5f9c284e825f4"
|
| 1170 |
+
dependencies = [
|
| 1171 |
+
"cfg-if",
|
| 1172 |
+
"cpufeatures",
|
| 1173 |
+
"digest",
|
| 1174 |
+
]
|
| 1175 |
+
|
| 1176 |
+
[[package]]
|
| 1177 |
+
name = "shlex"
|
| 1178 |
+
version = "2.0.1"
|
| 1179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1180 |
+
checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
|
| 1181 |
+
|
| 1182 |
+
[[package]]
|
| 1183 |
+
name = "siphasher"
|
| 1184 |
+
version = "1.0.3"
|
| 1185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1186 |
+
checksum = "8ee5873ec9cce0195efcb7a4e9507a04cd49aec9c83d0389df45b1ef7ba2e649"
|
| 1187 |
+
|
| 1188 |
+
[[package]]
|
| 1189 |
+
name = "slab"
|
| 1190 |
+
version = "0.4.12"
|
| 1191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1192 |
+
checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
|
| 1193 |
+
|
| 1194 |
+
[[package]]
|
| 1195 |
+
name = "smallvec"
|
| 1196 |
+
version = "1.15.2"
|
| 1197 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1198 |
+
checksum = "8ed6a63f02c8539c91a8685a86f4099661ba3da017932f6ebbea6de3f0fa7c90"
|
| 1199 |
+
|
| 1200 |
+
[[package]]
|
| 1201 |
+
name = "socket2"
|
| 1202 |
+
version = "0.6.4"
|
| 1203 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1204 |
+
checksum = "52d1cfed4120b4d927bf7c0f86d2087a4a7d6027c906d9f9d525a80573b9be51"
|
| 1205 |
+
dependencies = [
|
| 1206 |
+
"libc",
|
| 1207 |
+
"windows-sys",
|
| 1208 |
+
]
|
| 1209 |
+
|
| 1210 |
+
[[package]]
|
| 1211 |
+
name = "stable_deref_trait"
|
| 1212 |
+
version = "1.2.1"
|
| 1213 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1214 |
+
checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
|
| 1215 |
+
|
| 1216 |
+
[[package]]
|
| 1217 |
+
name = "standback"
|
| 1218 |
+
version = "0.2.17"
|
| 1219 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1220 |
+
checksum = "e113fb6f3de07a243d434a56ec6f186dfd51cb08448239fe7bcae73f87ff28ff"
|
| 1221 |
+
dependencies = [
|
| 1222 |
+
"version_check",
|
| 1223 |
+
]
|
| 1224 |
+
|
| 1225 |
+
[[package]]
|
| 1226 |
+
name = "stdweb"
|
| 1227 |
+
version = "0.4.20"
|
| 1228 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1229 |
+
checksum = "d022496b16281348b52d0e30ae99e01a73d737b2f45d38fed4edf79f9325a1d5"
|
| 1230 |
+
dependencies = [
|
| 1231 |
+
"discard",
|
| 1232 |
+
"rustc_version",
|
| 1233 |
+
"stdweb-derive",
|
| 1234 |
+
"stdweb-internal-macros",
|
| 1235 |
+
"stdweb-internal-runtime",
|
| 1236 |
+
"wasm-bindgen",
|
| 1237 |
+
]
|
| 1238 |
+
|
| 1239 |
+
[[package]]
|
| 1240 |
+
name = "stdweb-derive"
|
| 1241 |
+
version = "0.5.3"
|
| 1242 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1243 |
+
checksum = "c87a60a40fccc84bef0652345bbbbbe20a605bf5d0ce81719fc476f5c03b50ef"
|
| 1244 |
+
dependencies = [
|
| 1245 |
+
"proc-macro2",
|
| 1246 |
+
"quote",
|
| 1247 |
+
"serde",
|
| 1248 |
+
"serde_derive",
|
| 1249 |
+
"syn 1.0.109",
|
| 1250 |
+
]
|
| 1251 |
+
|
| 1252 |
+
[[package]]
|
| 1253 |
+
name = "stdweb-internal-macros"
|
| 1254 |
+
version = "0.2.9"
|
| 1255 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1256 |
+
checksum = "58fa5ff6ad0d98d1ffa8cb115892b6e69d67799f6763e162a1c9db421dc22e11"
|
| 1257 |
+
dependencies = [
|
| 1258 |
+
"base-x",
|
| 1259 |
+
"proc-macro2",
|
| 1260 |
+
"quote",
|
| 1261 |
+
"serde",
|
| 1262 |
+
"serde_derive",
|
| 1263 |
+
"serde_json",
|
| 1264 |
+
"sha1",
|
| 1265 |
+
"syn 1.0.109",
|
| 1266 |
+
]
|
| 1267 |
+
|
| 1268 |
+
[[package]]
|
| 1269 |
+
name = "stdweb-internal-runtime"
|
| 1270 |
+
version = "0.1.5"
|
| 1271 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1272 |
+
checksum = "213701ba3370744dcd1a12960caa4843b3d68b4d1c0a5d575e0d65b2ee9d16c0"
|
| 1273 |
+
|
| 1274 |
+
[[package]]
|
| 1275 |
+
name = "stringprep"
|
| 1276 |
+
version = "0.1.5"
|
| 1277 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1278 |
+
checksum = "7b4df3d392d81bd458a8a621b8bffbd2302a12ffe288a9d931670948749463b1"
|
| 1279 |
+
dependencies = [
|
| 1280 |
+
"unicode-bidi",
|
| 1281 |
+
"unicode-normalization",
|
| 1282 |
+
"unicode-properties",
|
| 1283 |
+
]
|
| 1284 |
+
|
| 1285 |
+
[[package]]
|
| 1286 |
+
name = "syn"
|
| 1287 |
+
version = "1.0.109"
|
| 1288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1289 |
+
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
| 1290 |
+
dependencies = [
|
| 1291 |
+
"proc-macro2",
|
| 1292 |
+
"quote",
|
| 1293 |
+
"unicode-ident",
|
| 1294 |
+
]
|
| 1295 |
+
|
| 1296 |
+
[[package]]
|
| 1297 |
+
name = "syn"
|
| 1298 |
+
version = "2.0.117"
|
| 1299 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1300 |
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
| 1301 |
+
dependencies = [
|
| 1302 |
+
"proc-macro2",
|
| 1303 |
+
"quote",
|
| 1304 |
+
"unicode-ident",
|
| 1305 |
+
]
|
| 1306 |
+
|
| 1307 |
+
[[package]]
|
| 1308 |
+
name = "synstructure"
|
| 1309 |
+
version = "0.13.2"
|
| 1310 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1311 |
+
checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
|
| 1312 |
+
dependencies = [
|
| 1313 |
+
"proc-macro2",
|
| 1314 |
+
"quote",
|
| 1315 |
+
"syn 2.0.117",
|
| 1316 |
+
]
|
| 1317 |
+
|
| 1318 |
+
[[package]]
|
| 1319 |
+
name = "time"
|
| 1320 |
+
version = "0.2.27"
|
| 1321 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1322 |
+
checksum = "4752a97f8eebd6854ff91f1c1824cd6160626ac4bd44287f7f4ea2035a02a242"
|
| 1323 |
+
dependencies = [
|
| 1324 |
+
"const_fn",
|
| 1325 |
+
"libc",
|
| 1326 |
+
"standback",
|
| 1327 |
+
"stdweb",
|
| 1328 |
+
"time-macros",
|
| 1329 |
+
"version_check",
|
| 1330 |
+
"winapi",
|
| 1331 |
+
]
|
| 1332 |
+
|
| 1333 |
+
[[package]]
|
| 1334 |
+
name = "time"
|
| 1335 |
+
version = "0.3.49"
|
| 1336 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1337 |
+
checksum = "711a53c2d47bbd818258c498c8dbfe186a2526c631495cfe7e078567f86b8469"
|
| 1338 |
+
dependencies = [
|
| 1339 |
+
"deranged",
|
| 1340 |
+
"num-conv",
|
| 1341 |
+
"powerfmt",
|
| 1342 |
+
"time-core",
|
| 1343 |
+
]
|
| 1344 |
+
|
| 1345 |
+
[[package]]
|
| 1346 |
+
name = "time-core"
|
| 1347 |
+
version = "0.1.9"
|
| 1348 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1349 |
+
checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
|
| 1350 |
+
|
| 1351 |
+
[[package]]
|
| 1352 |
+
name = "time-macros"
|
| 1353 |
+
version = "0.1.1"
|
| 1354 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1355 |
+
checksum = "957e9c6e26f12cb6d0dd7fc776bb67a706312e7299aed74c8dd5b17ebb27e2f1"
|
| 1356 |
+
dependencies = [
|
| 1357 |
+
"proc-macro-hack",
|
| 1358 |
+
"time-macros-impl",
|
| 1359 |
+
]
|
| 1360 |
+
|
| 1361 |
+
[[package]]
|
| 1362 |
+
name = "time-macros-impl"
|
| 1363 |
+
version = "0.1.2"
|
| 1364 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1365 |
+
checksum = "fd3c141a1b43194f3f56a1411225df8646c55781d5f26db825b3d98507eb482f"
|
| 1366 |
+
dependencies = [
|
| 1367 |
+
"proc-macro-hack",
|
| 1368 |
+
"proc-macro2",
|
| 1369 |
+
"quote",
|
| 1370 |
+
"standback",
|
| 1371 |
+
"syn 1.0.109",
|
| 1372 |
+
]
|
| 1373 |
+
|
| 1374 |
+
[[package]]
|
| 1375 |
+
name = "tinystr"
|
| 1376 |
+
version = "0.8.3"
|
| 1377 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1378 |
+
checksum = "c8323304221c2a851516f22236c5722a72eaa19749016521d6dff0824447d96d"
|
| 1379 |
+
dependencies = [
|
| 1380 |
+
"displaydoc",
|
| 1381 |
+
"zerovec",
|
| 1382 |
+
]
|
| 1383 |
+
|
| 1384 |
+
[[package]]
|
| 1385 |
+
name = "tinyvec"
|
| 1386 |
+
version = "1.11.0"
|
| 1387 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1388 |
+
checksum = "3e61e67053d25a4e82c844e8424039d9745781b3fc4f32b8d55ed50f5f667ef3"
|
| 1389 |
+
dependencies = [
|
| 1390 |
+
"tinyvec_macros",
|
| 1391 |
+
]
|
| 1392 |
+
|
| 1393 |
+
[[package]]
|
| 1394 |
+
name = "tinyvec_macros"
|
| 1395 |
+
version = "0.1.1"
|
| 1396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1397 |
+
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
| 1398 |
+
|
| 1399 |
+
[[package]]
|
| 1400 |
+
name = "tokio"
|
| 1401 |
+
version = "1.52.3"
|
| 1402 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1403 |
+
checksum = "8fc7f01b389ac15039e4dc9531aa973a135d7a4135281b12d7c1bc79fd57fffe"
|
| 1404 |
+
dependencies = [
|
| 1405 |
+
"bytes",
|
| 1406 |
+
"libc",
|
| 1407 |
+
"mio",
|
| 1408 |
+
"parking_lot",
|
| 1409 |
+
"pin-project-lite",
|
| 1410 |
+
"socket2",
|
| 1411 |
+
"tokio-macros",
|
| 1412 |
+
"windows-sys",
|
| 1413 |
+
]
|
| 1414 |
+
|
| 1415 |
+
[[package]]
|
| 1416 |
+
name = "tokio-macros"
|
| 1417 |
+
version = "2.7.0"
|
| 1418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1419 |
+
checksum = "385a6cb71ab9ab790c5fe8d67f1645e6c450a7ce006a33de03daa956cf70a496"
|
| 1420 |
+
dependencies = [
|
| 1421 |
+
"proc-macro2",
|
| 1422 |
+
"quote",
|
| 1423 |
+
"syn 2.0.117",
|
| 1424 |
+
]
|
| 1425 |
+
|
| 1426 |
+
[[package]]
|
| 1427 |
+
name = "tokio-postgres"
|
| 1428 |
+
version = "0.7.18"
|
| 1429 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1430 |
+
checksum = "a528f7d280f6d5b9cd149635c8705b0dd049754bc67d81d31fa25169a93809d3"
|
| 1431 |
+
dependencies = [
|
| 1432 |
+
"async-trait",
|
| 1433 |
+
"byteorder",
|
| 1434 |
+
"bytes",
|
| 1435 |
+
"fallible-iterator",
|
| 1436 |
+
"futures-channel",
|
| 1437 |
+
"futures-util",
|
| 1438 |
+
"log",
|
| 1439 |
+
"parking_lot",
|
| 1440 |
+
"percent-encoding",
|
| 1441 |
+
"phf",
|
| 1442 |
+
"pin-project-lite",
|
| 1443 |
+
"postgres-protocol",
|
| 1444 |
+
"postgres-types",
|
| 1445 |
+
"rand",
|
| 1446 |
+
"socket2",
|
| 1447 |
+
"tokio",
|
| 1448 |
+
"tokio-util",
|
| 1449 |
+
"whoami",
|
| 1450 |
+
]
|
| 1451 |
+
|
| 1452 |
+
[[package]]
|
| 1453 |
+
name = "tokio-util"
|
| 1454 |
+
version = "0.7.18"
|
| 1455 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1456 |
+
checksum = "9ae9cec805b01e8fc3fd2fe289f89149a9b66dd16786abd8b19cfa7b48cb0098"
|
| 1457 |
+
dependencies = [
|
| 1458 |
+
"bytes",
|
| 1459 |
+
"futures-core",
|
| 1460 |
+
"futures-sink",
|
| 1461 |
+
"pin-project-lite",
|
| 1462 |
+
"tokio",
|
| 1463 |
+
]
|
| 1464 |
+
|
| 1465 |
+
[[package]]
|
| 1466 |
+
name = "typenum"
|
| 1467 |
+
version = "1.20.1"
|
| 1468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1469 |
+
checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
|
| 1470 |
+
|
| 1471 |
+
[[package]]
|
| 1472 |
+
name = "unicode-bidi"
|
| 1473 |
+
version = "0.3.18"
|
| 1474 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1475 |
+
checksum = "5c1cb5db39152898a79168971543b1cb5020dff7fe43c8dc468b0885f5e29df5"
|
| 1476 |
+
|
| 1477 |
+
[[package]]
|
| 1478 |
+
name = "unicode-ident"
|
| 1479 |
+
version = "1.0.24"
|
| 1480 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1481 |
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
| 1482 |
+
|
| 1483 |
+
[[package]]
|
| 1484 |
+
name = "unicode-normalization"
|
| 1485 |
+
version = "0.1.25"
|
| 1486 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1487 |
+
checksum = "5fd4f6878c9cb28d874b009da9e8d183b5abc80117c40bbd187a1fde336be6e8"
|
| 1488 |
+
dependencies = [
|
| 1489 |
+
"tinyvec",
|
| 1490 |
+
]
|
| 1491 |
+
|
| 1492 |
+
[[package]]
|
| 1493 |
+
name = "unicode-properties"
|
| 1494 |
+
version = "0.1.4"
|
| 1495 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1496 |
+
checksum = "7df058c713841ad818f1dc5d3fd88063241cc61f49f5fbea4b951e8cf5a8d71d"
|
| 1497 |
+
|
| 1498 |
+
[[package]]
|
| 1499 |
+
name = "unicode-xid"
|
| 1500 |
+
version = "0.2.6"
|
| 1501 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1502 |
+
checksum = "ebc1c04c71510c7f702b52b7c350734c9ff1295c464a03335b00bb84fc54f853"
|
| 1503 |
+
|
| 1504 |
+
[[package]]
|
| 1505 |
+
name = "url"
|
| 1506 |
+
version = "2.5.8"
|
| 1507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1508 |
+
checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
|
| 1509 |
+
dependencies = [
|
| 1510 |
+
"form_urlencoded",
|
| 1511 |
+
"idna",
|
| 1512 |
+
"percent-encoding",
|
| 1513 |
+
"serde",
|
| 1514 |
+
]
|
| 1515 |
+
|
| 1516 |
+
[[package]]
|
| 1517 |
+
name = "utf8_iter"
|
| 1518 |
+
version = "1.0.4"
|
| 1519 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1520 |
+
checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
|
| 1521 |
+
|
| 1522 |
+
[[package]]
|
| 1523 |
+
name = "uuid"
|
| 1524 |
+
version = "0.8.2"
|
| 1525 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1526 |
+
checksum = "bc5cf98d8186244414c848017f0e2676b3fcb46807f6668a97dfe67359a3c4b7"
|
| 1527 |
+
|
| 1528 |
+
[[package]]
|
| 1529 |
+
name = "uuid"
|
| 1530 |
+
version = "1.23.3"
|
| 1531 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1532 |
+
checksum = "144d6b123cef80b301b8f72a9e2ca4370ddec21950d0a103dd22c437006d2db7"
|
| 1533 |
+
dependencies = [
|
| 1534 |
+
"js-sys",
|
| 1535 |
+
"wasm-bindgen",
|
| 1536 |
+
]
|
| 1537 |
+
|
| 1538 |
+
[[package]]
|
| 1539 |
+
name = "version_check"
|
| 1540 |
+
version = "0.9.5"
|
| 1541 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1542 |
+
checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
|
| 1543 |
+
|
| 1544 |
+
[[package]]
|
| 1545 |
+
name = "wasi"
|
| 1546 |
+
version = "0.11.1+wasi-snapshot-preview1"
|
| 1547 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1548 |
+
checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
|
| 1549 |
+
|
| 1550 |
+
[[package]]
|
| 1551 |
+
name = "wasi"
|
| 1552 |
+
version = "0.14.7+wasi-0.2.4"
|
| 1553 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1554 |
+
checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c"
|
| 1555 |
+
dependencies = [
|
| 1556 |
+
"wasip2",
|
| 1557 |
+
]
|
| 1558 |
+
|
| 1559 |
+
[[package]]
|
| 1560 |
+
name = "wasip2"
|
| 1561 |
+
version = "1.0.4+wasi-0.2.12"
|
| 1562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1563 |
+
checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
|
| 1564 |
+
dependencies = [
|
| 1565 |
+
"wit-bindgen 0.57.1",
|
| 1566 |
+
]
|
| 1567 |
+
|
| 1568 |
+
[[package]]
|
| 1569 |
+
name = "wasip3"
|
| 1570 |
+
version = "0.4.0+wasi-0.3.0-rc-2026-01-06"
|
| 1571 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1572 |
+
checksum = "5428f8bf88ea5ddc08faddef2ac4a67e390b88186c703ce6dbd955e1c145aca5"
|
| 1573 |
+
dependencies = [
|
| 1574 |
+
"wit-bindgen 0.51.0",
|
| 1575 |
+
]
|
| 1576 |
+
|
| 1577 |
+
[[package]]
|
| 1578 |
+
name = "wasite"
|
| 1579 |
+
version = "1.0.2"
|
| 1580 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1581 |
+
checksum = "66fe902b4a6b8028a753d5424909b764ccf79b7a209eac9bf97e59cda9f71a42"
|
| 1582 |
+
dependencies = [
|
| 1583 |
+
"wasi 0.14.7+wasi-0.2.4",
|
| 1584 |
+
]
|
| 1585 |
+
|
| 1586 |
+
[[package]]
|
| 1587 |
+
name = "wasm-bindgen"
|
| 1588 |
+
version = "0.2.125"
|
| 1589 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1590 |
+
checksum = "8ddb3f79143bced6de84270411622a2699cee572fc0875aeaf1e7867cf9fca1a"
|
| 1591 |
+
dependencies = [
|
| 1592 |
+
"cfg-if",
|
| 1593 |
+
"once_cell",
|
| 1594 |
+
"rustversion",
|
| 1595 |
+
"wasm-bindgen-macro",
|
| 1596 |
+
"wasm-bindgen-shared",
|
| 1597 |
+
]
|
| 1598 |
+
|
| 1599 |
+
[[package]]
|
| 1600 |
+
name = "wasm-bindgen-macro"
|
| 1601 |
+
version = "0.2.125"
|
| 1602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1603 |
+
checksum = "4e21a184b13fb19e157296e2c46056aec9092264fab83e4ba59e68c61b323c3d"
|
| 1604 |
+
dependencies = [
|
| 1605 |
+
"quote",
|
| 1606 |
+
"wasm-bindgen-macro-support",
|
| 1607 |
+
]
|
| 1608 |
+
|
| 1609 |
+
[[package]]
|
| 1610 |
+
name = "wasm-bindgen-macro-support"
|
| 1611 |
+
version = "0.2.125"
|
| 1612 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1613 |
+
checksum = "fecefd9c35bd935a20fc3fc344b5f29138961e4f47fb03297d88f2587afb5ebd"
|
| 1614 |
+
dependencies = [
|
| 1615 |
+
"bumpalo",
|
| 1616 |
+
"proc-macro2",
|
| 1617 |
+
"quote",
|
| 1618 |
+
"syn 2.0.117",
|
| 1619 |
+
"wasm-bindgen-shared",
|
| 1620 |
+
]
|
| 1621 |
+
|
| 1622 |
+
[[package]]
|
| 1623 |
+
name = "wasm-bindgen-shared"
|
| 1624 |
+
version = "0.2.125"
|
| 1625 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1626 |
+
checksum = "23939e44bb9a5d7576fa2b563dc2e136628f1224e88a8deed09e04858b77871f"
|
| 1627 |
+
dependencies = [
|
| 1628 |
+
"unicode-ident",
|
| 1629 |
+
]
|
| 1630 |
+
|
| 1631 |
+
[[package]]
|
| 1632 |
+
name = "wasm-encoder"
|
| 1633 |
+
version = "0.244.0"
|
| 1634 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1635 |
+
checksum = "990065f2fe63003fe337b932cfb5e3b80e0b4d0f5ff650e6985b1048f62c8319"
|
| 1636 |
+
dependencies = [
|
| 1637 |
+
"leb128fmt",
|
| 1638 |
+
"wasmparser",
|
| 1639 |
+
]
|
| 1640 |
+
|
| 1641 |
+
[[package]]
|
| 1642 |
+
name = "wasm-metadata"
|
| 1643 |
+
version = "0.244.0"
|
| 1644 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1645 |
+
checksum = "bb0e353e6a2fbdc176932bbaab493762eb1255a7900fe0fea1a2f96c296cc909"
|
| 1646 |
+
dependencies = [
|
| 1647 |
+
"anyhow",
|
| 1648 |
+
"indexmap",
|
| 1649 |
+
"wasm-encoder",
|
| 1650 |
+
"wasmparser",
|
| 1651 |
+
]
|
| 1652 |
+
|
| 1653 |
+
[[package]]
|
| 1654 |
+
name = "wasmparser"
|
| 1655 |
+
version = "0.244.0"
|
| 1656 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1657 |
+
checksum = "47b807c72e1bac69382b3a6fb3dbe8ea4c0ed87ff5629b8685ae6b9a611028fe"
|
| 1658 |
+
dependencies = [
|
| 1659 |
+
"bitflags",
|
| 1660 |
+
"hashbrown 0.15.5",
|
| 1661 |
+
"indexmap",
|
| 1662 |
+
"semver 1.0.28",
|
| 1663 |
+
]
|
| 1664 |
+
|
| 1665 |
+
[[package]]
|
| 1666 |
+
name = "web-sys"
|
| 1667 |
+
version = "0.3.102"
|
| 1668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1669 |
+
checksum = "a6430a72df5eb332242960fe84b3002a241163998241eb596d4f739b9757061d"
|
| 1670 |
+
dependencies = [
|
| 1671 |
+
"js-sys",
|
| 1672 |
+
"wasm-bindgen",
|
| 1673 |
+
]
|
| 1674 |
+
|
| 1675 |
+
[[package]]
|
| 1676 |
+
name = "whoami"
|
| 1677 |
+
version = "2.1.2"
|
| 1678 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1679 |
+
checksum = "998767ef88740d1f5b0682a9c53c24431453923962269c2db68ee43788c5a40d"
|
| 1680 |
+
dependencies = [
|
| 1681 |
+
"libc",
|
| 1682 |
+
"libredox",
|
| 1683 |
+
"objc2-system-configuration",
|
| 1684 |
+
"wasite",
|
| 1685 |
+
"web-sys",
|
| 1686 |
+
]
|
| 1687 |
+
|
| 1688 |
+
[[package]]
|
| 1689 |
+
name = "winapi"
|
| 1690 |
+
version = "0.3.9"
|
| 1691 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1692 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 1693 |
+
dependencies = [
|
| 1694 |
+
"winapi-i686-pc-windows-gnu",
|
| 1695 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 1696 |
+
]
|
| 1697 |
+
|
| 1698 |
+
[[package]]
|
| 1699 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 1700 |
+
version = "0.4.0"
|
| 1701 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1702 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 1703 |
+
|
| 1704 |
+
[[package]]
|
| 1705 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 1706 |
+
version = "0.4.0"
|
| 1707 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1708 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 1709 |
+
|
| 1710 |
+
[[package]]
|
| 1711 |
+
name = "windows-core"
|
| 1712 |
+
version = "0.62.2"
|
| 1713 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1714 |
+
checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
|
| 1715 |
+
dependencies = [
|
| 1716 |
+
"windows-implement",
|
| 1717 |
+
"windows-interface",
|
| 1718 |
+
"windows-link",
|
| 1719 |
+
"windows-result",
|
| 1720 |
+
"windows-strings",
|
| 1721 |
+
]
|
| 1722 |
+
|
| 1723 |
+
[[package]]
|
| 1724 |
+
name = "windows-implement"
|
| 1725 |
+
version = "0.60.2"
|
| 1726 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1727 |
+
checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
|
| 1728 |
+
dependencies = [
|
| 1729 |
+
"proc-macro2",
|
| 1730 |
+
"quote",
|
| 1731 |
+
"syn 2.0.117",
|
| 1732 |
+
]
|
| 1733 |
+
|
| 1734 |
+
[[package]]
|
| 1735 |
+
name = "windows-interface"
|
| 1736 |
+
version = "0.59.3"
|
| 1737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1738 |
+
checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
|
| 1739 |
+
dependencies = [
|
| 1740 |
+
"proc-macro2",
|
| 1741 |
+
"quote",
|
| 1742 |
+
"syn 2.0.117",
|
| 1743 |
+
]
|
| 1744 |
+
|
| 1745 |
+
[[package]]
|
| 1746 |
+
name = "windows-link"
|
| 1747 |
+
version = "0.2.1"
|
| 1748 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1749 |
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
| 1750 |
+
|
| 1751 |
+
[[package]]
|
| 1752 |
+
name = "windows-result"
|
| 1753 |
+
version = "0.4.1"
|
| 1754 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1755 |
+
checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
|
| 1756 |
+
dependencies = [
|
| 1757 |
+
"windows-link",
|
| 1758 |
+
]
|
| 1759 |
+
|
| 1760 |
+
[[package]]
|
| 1761 |
+
name = "windows-strings"
|
| 1762 |
+
version = "0.5.1"
|
| 1763 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1764 |
+
checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
|
| 1765 |
+
dependencies = [
|
| 1766 |
+
"windows-link",
|
| 1767 |
+
]
|
| 1768 |
+
|
| 1769 |
+
[[package]]
|
| 1770 |
+
name = "windows-sys"
|
| 1771 |
+
version = "0.61.2"
|
| 1772 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1773 |
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
| 1774 |
+
dependencies = [
|
| 1775 |
+
"windows-link",
|
| 1776 |
+
]
|
| 1777 |
+
|
| 1778 |
+
[[package]]
|
| 1779 |
+
name = "wit-bindgen"
|
| 1780 |
+
version = "0.51.0"
|
| 1781 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1782 |
+
checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
|
| 1783 |
+
dependencies = [
|
| 1784 |
+
"wit-bindgen-rust-macro",
|
| 1785 |
+
]
|
| 1786 |
+
|
| 1787 |
+
[[package]]
|
| 1788 |
+
name = "wit-bindgen"
|
| 1789 |
+
version = "0.57.1"
|
| 1790 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1791 |
+
checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
|
| 1792 |
+
|
| 1793 |
+
[[package]]
|
| 1794 |
+
name = "wit-bindgen-core"
|
| 1795 |
+
version = "0.51.0"
|
| 1796 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1797 |
+
checksum = "ea61de684c3ea68cb082b7a88508a8b27fcc8b797d738bfc99a82facf1d752dc"
|
| 1798 |
+
dependencies = [
|
| 1799 |
+
"anyhow",
|
| 1800 |
+
"heck",
|
| 1801 |
+
"wit-parser",
|
| 1802 |
+
]
|
| 1803 |
+
|
| 1804 |
+
[[package]]
|
| 1805 |
+
name = "wit-bindgen-rust"
|
| 1806 |
+
version = "0.51.0"
|
| 1807 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1808 |
+
checksum = "b7c566e0f4b284dd6561c786d9cb0142da491f46a9fbed79ea69cdad5db17f21"
|
| 1809 |
+
dependencies = [
|
| 1810 |
+
"anyhow",
|
| 1811 |
+
"heck",
|
| 1812 |
+
"indexmap",
|
| 1813 |
+
"prettyplease",
|
| 1814 |
+
"syn 2.0.117",
|
| 1815 |
+
"wasm-metadata",
|
| 1816 |
+
"wit-bindgen-core",
|
| 1817 |
+
"wit-component",
|
| 1818 |
+
]
|
| 1819 |
+
|
| 1820 |
+
[[package]]
|
| 1821 |
+
name = "wit-bindgen-rust-macro"
|
| 1822 |
+
version = "0.51.0"
|
| 1823 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1824 |
+
checksum = "0c0f9bfd77e6a48eccf51359e3ae77140a7f50b1e2ebfe62422d8afdaffab17a"
|
| 1825 |
+
dependencies = [
|
| 1826 |
+
"anyhow",
|
| 1827 |
+
"prettyplease",
|
| 1828 |
+
"proc-macro2",
|
| 1829 |
+
"quote",
|
| 1830 |
+
"syn 2.0.117",
|
| 1831 |
+
"wit-bindgen-core",
|
| 1832 |
+
"wit-bindgen-rust",
|
| 1833 |
+
]
|
| 1834 |
+
|
| 1835 |
+
[[package]]
|
| 1836 |
+
name = "wit-component"
|
| 1837 |
+
version = "0.244.0"
|
| 1838 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1839 |
+
checksum = "9d66ea20e9553b30172b5e831994e35fbde2d165325bec84fc43dbf6f4eb9cb2"
|
| 1840 |
+
dependencies = [
|
| 1841 |
+
"anyhow",
|
| 1842 |
+
"bitflags",
|
| 1843 |
+
"indexmap",
|
| 1844 |
+
"log",
|
| 1845 |
+
"serde",
|
| 1846 |
+
"serde_derive",
|
| 1847 |
+
"serde_json",
|
| 1848 |
+
"wasm-encoder",
|
| 1849 |
+
"wasm-metadata",
|
| 1850 |
+
"wasmparser",
|
| 1851 |
+
"wit-parser",
|
| 1852 |
+
]
|
| 1853 |
+
|
| 1854 |
+
[[package]]
|
| 1855 |
+
name = "wit-parser"
|
| 1856 |
+
version = "0.244.0"
|
| 1857 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1858 |
+
checksum = "ecc8ac4bc1dc3381b7f59c34f00b67e18f910c2c0f50015669dde7def656a736"
|
| 1859 |
+
dependencies = [
|
| 1860 |
+
"anyhow",
|
| 1861 |
+
"id-arena",
|
| 1862 |
+
"indexmap",
|
| 1863 |
+
"log",
|
| 1864 |
+
"semver 1.0.28",
|
| 1865 |
+
"serde",
|
| 1866 |
+
"serde_derive",
|
| 1867 |
+
"serde_json",
|
| 1868 |
+
"unicode-xid",
|
| 1869 |
+
"wasmparser",
|
| 1870 |
+
]
|
| 1871 |
+
|
| 1872 |
+
[[package]]
|
| 1873 |
+
name = "writeable"
|
| 1874 |
+
version = "0.6.3"
|
| 1875 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1876 |
+
checksum = "1ffae5123b2d3fc086436f8834ae3ab053a283cfac8fe0a0b8eaae044768a4c4"
|
| 1877 |
+
|
| 1878 |
+
[[package]]
|
| 1879 |
+
name = "xxhash-rust"
|
| 1880 |
+
version = "0.8.15"
|
| 1881 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1882 |
+
checksum = "fdd20c5420375476fbd4394763288da7eb0cc0b8c11deed431a91562af7335d3"
|
| 1883 |
+
|
| 1884 |
+
[[package]]
|
| 1885 |
+
name = "yoke"
|
| 1886 |
+
version = "0.8.3"
|
| 1887 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1888 |
+
checksum = "709fe23a0424b6a435d82152b1bd3fdfb0833487d5fa90d05d42762a9891fef5"
|
| 1889 |
+
dependencies = [
|
| 1890 |
+
"stable_deref_trait",
|
| 1891 |
+
"yoke-derive",
|
| 1892 |
+
"zerofrom",
|
| 1893 |
+
]
|
| 1894 |
+
|
| 1895 |
+
[[package]]
|
| 1896 |
+
name = "yoke-derive"
|
| 1897 |
+
version = "0.8.2"
|
| 1898 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1899 |
+
checksum = "de844c262c8848816172cef550288e7dc6c7b7814b4ee56b3e1553f275f1858e"
|
| 1900 |
+
dependencies = [
|
| 1901 |
+
"proc-macro2",
|
| 1902 |
+
"quote",
|
| 1903 |
+
"syn 2.0.117",
|
| 1904 |
+
"synstructure",
|
| 1905 |
+
]
|
| 1906 |
+
|
| 1907 |
+
[[package]]
|
| 1908 |
+
name = "zerofrom"
|
| 1909 |
+
version = "0.1.8"
|
| 1910 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1911 |
+
checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
|
| 1912 |
+
dependencies = [
|
| 1913 |
+
"zerofrom-derive",
|
| 1914 |
+
]
|
| 1915 |
+
|
| 1916 |
+
[[package]]
|
| 1917 |
+
name = "zerofrom-derive"
|
| 1918 |
+
version = "0.1.7"
|
| 1919 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1920 |
+
checksum = "11532158c46691caf0f2593ea8358fed6bbf68a0315e80aae9bd41fbade684a1"
|
| 1921 |
+
dependencies = [
|
| 1922 |
+
"proc-macro2",
|
| 1923 |
+
"quote",
|
| 1924 |
+
"syn 2.0.117",
|
| 1925 |
+
"synstructure",
|
| 1926 |
+
]
|
| 1927 |
+
|
| 1928 |
+
[[package]]
|
| 1929 |
+
name = "zerotrie"
|
| 1930 |
+
version = "0.2.4"
|
| 1931 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1932 |
+
checksum = "0f9152d31db0792fa83f70fb2f83148effb5c1f5b8c7686c3459e361d9bc20bf"
|
| 1933 |
+
dependencies = [
|
| 1934 |
+
"displaydoc",
|
| 1935 |
+
"yoke",
|
| 1936 |
+
"zerofrom",
|
| 1937 |
+
]
|
| 1938 |
+
|
| 1939 |
+
[[package]]
|
| 1940 |
+
name = "zerovec"
|
| 1941 |
+
version = "0.11.6"
|
| 1942 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1943 |
+
checksum = "90f911cbc359ab6af17377d242225f4d75119aec87ea711a880987b18cd7b239"
|
| 1944 |
+
dependencies = [
|
| 1945 |
+
"yoke",
|
| 1946 |
+
"zerofrom",
|
| 1947 |
+
"zerovec-derive",
|
| 1948 |
+
]
|
| 1949 |
+
|
| 1950 |
+
[[package]]
|
| 1951 |
+
name = "zerovec-derive"
|
| 1952 |
+
version = "0.11.3"
|
| 1953 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1954 |
+
checksum = "625dc425cab0dca6dc3c3319506e6593dcb08a9f387ea3b284dbd52a92c40555"
|
| 1955 |
+
dependencies = [
|
| 1956 |
+
"proc-macro2",
|
| 1957 |
+
"quote",
|
| 1958 |
+
"syn 2.0.117",
|
| 1959 |
+
]
|
| 1960 |
+
|
| 1961 |
+
[[package]]
|
| 1962 |
+
name = "zmij"
|
| 1963 |
+
version = "1.0.21"
|
| 1964 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1965 |
+
checksum = "b8848ee67ecc8aedbaf3e4122217aff892639231befc6a1b58d29fff4c2cabaa"
|
| 1966 |
+
EOF_LOCK
|
| 1967 |
+
|
| 1968 |
+
# Prefetch every dependency on the resolved (locked) graph. Does not compile.
|
| 1969 |
+
cargo fetch --locked --manifest-path /tmp/pb_bb8_fetch/Cargo.toml
|
djc--bb8.ba51260/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7c1f1053304fadc9445dcf4aec7e82ebdd5c18474074e64589b1d1ad3b2ecbaf
|
| 3 |
+
size 2189128
|
djc--bb8.ba51260/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
|
djc--bb8.ba51260/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
|
djc--bb8.ba51260/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
|
djc--bb8.ba51260/environment/harbor_prepare_rust_env.sh
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
if [ "${PROGRAMGYM_RUST_BOOTSTRAP:-0}" = "1" ]; then
|
| 4 |
+
programgym_rust_log() {
|
| 5 |
+
printf "%s\n" "$1"
|
| 6 |
+
}
|
| 7 |
+
programgym_rust_log "bootstrap requested for instance=${PROGRAMGYM_RUST_INSTANCE_ID:-unknown}"
|
| 8 |
+
programgym_rust_log "using HOME=${HOME:?} CARGO_HOME=${CARGO_HOME:?} RUSTUP_HOME=${RUSTUP_HOME:?} XDG_CACHE_HOME=${XDG_CACHE_HOME:?}"
|
| 9 |
+
mkdir -p "${HOME:?}" "${CARGO_HOME:?}" "${CARGO_HOME:?}/bin" "${RUSTUP_HOME:?}" "${XDG_CACHE_HOME:?}"
|
| 10 |
+
programgym_rust_log "ensured Rust cache directories exist"
|
| 11 |
+
PROGRAMGYM_RUSTUP_BIN="${CARGO_HOME}/bin/rustup"
|
| 12 |
+
if [ ! -x "${PROGRAMGYM_RUSTUP_BIN}" ]; then
|
| 13 |
+
programgym_rust_log "rustup binary is missing from ${CARGO_HOME}/bin; searching fallback locations"
|
| 14 |
+
PROGRAMGYM_RUSTUP_SOURCE=""
|
| 15 |
+
for PROGRAMGYM_CANDIDATE in "$(command -v rustup 2>/dev/null || true)" /usr/local/cargo/bin/rustup /root/.cargo/bin/rustup; do
|
| 16 |
+
if [ -n "${PROGRAMGYM_CANDIDATE}" ] && [ -x "${PROGRAMGYM_CANDIDATE}" ]; then
|
| 17 |
+
PROGRAMGYM_RUSTUP_SOURCE="${PROGRAMGYM_CANDIDATE}"
|
| 18 |
+
programgym_rust_log "selected rustup source: ${PROGRAMGYM_RUSTUP_SOURCE}"
|
| 19 |
+
break
|
| 20 |
+
fi
|
| 21 |
+
done
|
| 22 |
+
if [ -n "${PROGRAMGYM_RUSTUP_SOURCE}" ]; then
|
| 23 |
+
cp -fL "${PROGRAMGYM_RUSTUP_SOURCE}" "${PROGRAMGYM_RUSTUP_BIN}"
|
| 24 |
+
chmod +x "${PROGRAMGYM_RUSTUP_BIN}"
|
| 25 |
+
programgym_rust_log "copied rustup into ${PROGRAMGYM_RUSTUP_BIN}"
|
| 26 |
+
else
|
| 27 |
+
echo "rustup binary is not available for bootstrap into ${CARGO_HOME}/bin" >&2
|
| 28 |
+
exit 1
|
| 29 |
+
fi
|
| 30 |
+
else
|
| 31 |
+
programgym_rust_log "reusing existing rustup binary at ${PROGRAMGYM_RUSTUP_BIN}"
|
| 32 |
+
fi
|
| 33 |
+
for PROGRAMGYM_PROXY in cargo rustc rustdoc; do
|
| 34 |
+
ln -sf rustup "${CARGO_HOME}/bin/${PROGRAMGYM_PROXY}"
|
| 35 |
+
done
|
| 36 |
+
programgym_rust_log "linked cargo/rustc/rustdoc proxies to rustup"
|
| 37 |
+
PROGRAMGYM_RUST_TOOLCHAIN="${PROGRAMGYM_RUST_TOOLCHAIN:?}"
|
| 38 |
+
PROGRAMGYM_CARGO_BIN="${CARGO_HOME}/bin/cargo"
|
| 39 |
+
PROGRAMGYM_RUSTC_BIN="${CARGO_HOME}/bin/rustc"
|
| 40 |
+
if ! "${PROGRAMGYM_RUSTUP_BIN}" run "${PROGRAMGYM_RUST_TOOLCHAIN}" cargo --version >/dev/null 2>&1 || ! "${PROGRAMGYM_RUSTUP_BIN}" run "${PROGRAMGYM_RUST_TOOLCHAIN}" rustc --version >/dev/null 2>&1; then
|
| 41 |
+
programgym_rust_log "installing Rust ${PROGRAMGYM_RUST_TOOLCHAIN} with minimal profile"
|
| 42 |
+
if ! "${PROGRAMGYM_RUSTUP_BIN}" set profile minimal >/dev/null 2>&1; then
|
| 43 |
+
programgym_rust_log "rustup set profile minimal reported a non-fatal error; continuing"
|
| 44 |
+
fi
|
| 45 |
+
"${PROGRAMGYM_RUSTUP_BIN}" toolchain install "${PROGRAMGYM_RUST_TOOLCHAIN}" --profile minimal
|
| 46 |
+
else
|
| 47 |
+
programgym_rust_log "Rust ${PROGRAMGYM_RUST_TOOLCHAIN} is already available; skipping toolchain installation"
|
| 48 |
+
fi
|
| 49 |
+
"${PROGRAMGYM_RUSTUP_BIN}" default "${PROGRAMGYM_RUST_TOOLCHAIN}"
|
| 50 |
+
programgym_rust_log "cargo version: $("${PROGRAMGYM_CARGO_BIN}" --version)"
|
| 51 |
+
programgym_rust_log "rustc version: $("${PROGRAMGYM_RUSTC_BIN}" --version)"
|
| 52 |
+
programgym_rust_log "active toolchain: $("${PROGRAMGYM_RUSTUP_BIN}" show active-toolchain)"
|
| 53 |
+
programgym_rust_log "Rust bootstrap completed successfully"
|
| 54 |
+
fi
|
djc--bb8.ba51260/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:cd05981ab03463d19a979c7b3bc0e82eb57514ae2a8fc88f1aa3e2066ed1d729
|
| 3 |
+
size 4390
|
djc--bb8.ba51260/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
|