Marquis03 commited on
Commit
b620e70
·
verified ·
1 Parent(s): 3be56c1

Upload folder using huggingface_hub (part 20)

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +81 -0
  2. graphql-rust--graphql-client.91f/environment/Dockerfile +70 -0
  3. graphql-rust--graphql-client.91f/environment/docker-compose.yaml +11 -0
  4. graphql-rust--graphql-client.91f/environment/download.sh +2512 -0
  5. graphql-rust--graphql-client.91f/environment/executable +3 -0
  6. graphql-rust--graphql-client.91f/environment/harbor_configure_apt_mirror.sh +37 -0
  7. graphql-rust--graphql-client.91f/environment/harbor_prepare_download_env.sh +37 -0
  8. graphql-rust--graphql-client.91f/environment/workspace.tar.gz +3 -0
  9. graphql-rust--graphql-client.91f/instruction.md +98 -0
  10. graphql-rust--graphql-client.91f/solution/solve.sh +33 -0
  11. graphql-rust--graphql-client.91f/task.toml +69 -0
  12. graphql-rust--graphql-client.91f/tests/Dockerfile +79 -0
  13. graphql-rust--graphql-client.91f/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  14. graphql-rust--graphql-client.91f/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  15. graphql-rust--graphql-client.91f/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  16. graphql-rust--graphql-client.91f/tests/blobs/tests/generated_module_04.tar.gz +3 -0
  17. graphql-rust--graphql-client.91f/tests/docker-compose.yaml +11 -0
  18. graphql-rust--graphql-client.91f/tests/download.sh +2512 -0
  19. graphql-rust--graphql-client.91f/tests/executable +3 -0
  20. graphql-rust--graphql-client.91f/tests/harbor_configure_apt_mirror.sh +37 -0
  21. graphql-rust--graphql-client.91f/tests/harbor_prepare_download_env.sh +37 -0
  22. graphql-rust--graphql-client.91f/tests/programgym_evaluator.py +1201 -0
  23. graphql-rust--graphql-client.91f/tests/programgym_task.json +916 -0
  24. graphql-rust--graphql-client.91f/tests/test.sh +82 -0
  25. graphql-rust--graphql-client.91f/tests/workspace.tar.gz +3 -0
  26. green7ea--blog.19c92dd/environment/Dockerfile +57 -0
  27. green7ea--blog.19c92dd/environment/download.sh +21 -0
  28. green7ea--blog.19c92dd/environment/executable +0 -0
  29. green7ea--blog.19c92dd/environment/harbor_prepare_download_env.sh +34 -0
  30. green7ea--blog.19c92dd/environment/programgym-gcc13.tar.gz +3 -0
  31. green7ea--blog.19c92dd/environment/workspace.tar.gz +3 -0
  32. green7ea--blog.19c92dd/instruction.md +98 -0
  33. green7ea--blog.19c92dd/solution/solve.sh +33 -0
  34. green7ea--blog.19c92dd/task.toml +69 -0
  35. green7ea--blog.19c92dd/tests/Dockerfile +65 -0
  36. green7ea--blog.19c92dd/tests/blobs/tests/generated_module_01.tar.gz +3 -0
  37. green7ea--blog.19c92dd/tests/blobs/tests/generated_module_02.tar.gz +3 -0
  38. green7ea--blog.19c92dd/tests/blobs/tests/generated_module_03.tar.gz +3 -0
  39. green7ea--blog.19c92dd/tests/download.sh +21 -0
  40. green7ea--blog.19c92dd/tests/executable +0 -0
  41. green7ea--blog.19c92dd/tests/harbor_prepare_download_env.sh +34 -0
  42. green7ea--blog.19c92dd/tests/programgym-gcc13.tar.gz +3 -0
  43. green7ea--blog.19c92dd/tests/programgym_evaluator.py +1201 -0
  44. green7ea--blog.19c92dd/tests/programgym_task.json +562 -0
  45. green7ea--blog.19c92dd/tests/test.sh +82 -0
  46. green7ea--blog.19c92dd/tests/workspace.tar.gz +3 -0
  47. gregoryfaust--samblaster.b642639/environment/Dockerfile +66 -0
  48. gregoryfaust--samblaster.b642639/environment/docker-compose.yaml +11 -0
  49. gregoryfaust--samblaster.b642639/environment/download.sh +38 -0
  50. gregoryfaust--samblaster.b642639/environment/executable +0 -0
.gitattributes CHANGED
@@ -1086,3 +1086,84 @@ grandcat--zeroconf.e4f60f8/environment/executable filter=lfs diff=lfs merge=lfs
1086
  grandcat--zeroconf.e4f60f8/tests/executable filter=lfs diff=lfs merge=lfs -text
1087
  graphit-dsl--graphit.2e01497/environment/executable filter=lfs diff=lfs merge=lfs -text
1088
  graphit-dsl--graphit.2e01497/tests/executable filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1086
  grandcat--zeroconf.e4f60f8/tests/executable filter=lfs diff=lfs merge=lfs -text
1087
  graphit-dsl--graphit.2e01497/environment/executable filter=lfs diff=lfs merge=lfs -text
1088
  graphit-dsl--graphit.2e01497/tests/executable filter=lfs diff=lfs merge=lfs -text
1089
+ graphql-rust--graphql-client.91f/environment/executable filter=lfs diff=lfs merge=lfs -text
1090
+ graphql-rust--graphql-client.91f/tests/executable filter=lfs diff=lfs merge=lfs -text
1091
+ grpc-ecosystem--grpc-health-prob/environment/executable filter=lfs diff=lfs merge=lfs -text
1092
+ grpc-ecosystem--grpc-health-prob/tests/executable filter=lfs diff=lfs merge=lfs -text
1093
+ gsamokovarov--jump.47cda2b/environment/executable filter=lfs diff=lfs merge=lfs -text
1094
+ gsamokovarov--jump.47cda2b/tests/executable filter=lfs diff=lfs merge=lfs -text
1095
+ guillaumebreton--gone.ea1f8f4/environment/executable filter=lfs diff=lfs merge=lfs -text
1096
+ guillaumebreton--gone.ea1f8f4/tests/executable filter=lfs diff=lfs merge=lfs -text
1097
+ guillaumechereau--goxel.c84ad6d/environment/executable filter=lfs diff=lfs merge=lfs -text
1098
+ guillaumechereau--goxel.c84ad6d/tests/executable filter=lfs diff=lfs merge=lfs -text
1099
+ guitmz--ezuri.6dbd276/environment/executable filter=lfs diff=lfs merge=lfs -text
1100
+ guitmz--ezuri.6dbd276/tests/executable filter=lfs diff=lfs merge=lfs -text
1101
+ guptarohit--asciigraph.3934c9c/environment/executable filter=lfs diff=lfs merge=lfs -text
1102
+ guptarohit--asciigraph.3934c9c/tests/executable filter=lfs diff=lfs merge=lfs -text
1103
+ gusabary--flowchar.12ed73f/environment/executable filter=lfs diff=lfs merge=lfs -text
1104
+ gusabary--flowchar.12ed73f/tests/executable filter=lfs diff=lfs merge=lfs -text
1105
+ gusaul--grpcox.6feae41/environment/executable filter=lfs diff=lfs merge=lfs -text
1106
+ gusaul--grpcox.6feae41/tests/executable filter=lfs diff=lfs merge=lfs -text
1107
+ gutenye--ocr.5d8607f/environment/executable filter=lfs diff=lfs merge=lfs -text
1108
+ gutenye--ocr.5d8607f/tests/executable filter=lfs diff=lfs merge=lfs -text
1109
+ guybrush77--rapidobj.fe4c779/environment/executable filter=lfs diff=lfs merge=lfs -text
1110
+ guybrush77--rapidobj.fe4c779/tests/executable filter=lfs diff=lfs merge=lfs -text
1111
+ hackerpoet--marblemarcher.478afb/environment/executable filter=lfs diff=lfs merge=lfs -text
1112
+ hackerpoet--marblemarcher.478afb/tests/executable filter=lfs diff=lfs merge=lfs -text
1113
+ hakluke--hakrawler.7615255/environment/executable filter=lfs diff=lfs merge=lfs -text
1114
+ hakluke--hakrawler.7615255/tests/executable filter=lfs diff=lfs merge=lfs -text
1115
+ hakluke--haktrails.37dd56e/environment/executable filter=lfs diff=lfs merge=lfs -text
1116
+ hakluke--haktrails.37dd56e/tests/executable filter=lfs diff=lfs merge=lfs -text
1117
+ halverneus--static-file-server.1/environment/executable filter=lfs diff=lfs merge=lfs -text
1118
+ halverneus--static-file-server.1/tests/executable filter=lfs diff=lfs merge=lfs -text
1119
+ hanmekim--scenelib2.39991c6/environment/executable filter=lfs diff=lfs merge=lfs -text
1120
+ hanmekim--scenelib2.39991c6/tests/executable filter=lfs diff=lfs merge=lfs -text
1121
+ haraldng--omnipaxos.bd234be/environment/executable filter=lfs diff=lfs merge=lfs -text
1122
+ haraldng--omnipaxos.bd234be/tests/executable filter=lfs diff=lfs merge=lfs -text
1123
+ harfang3d--harfang3d.abc8fc5/environment/executable filter=lfs diff=lfs merge=lfs -text
1124
+ harfang3d--harfang3d.abc8fc5/tests/executable filter=lfs diff=lfs merge=lfs -text
1125
+ hashicorp--http-echo.767bbd9/environment/executable filter=lfs diff=lfs merge=lfs -text
1126
+ hashicorp--http-echo.767bbd9/tests/executable filter=lfs diff=lfs merge=lfs -text
1127
+ hashicorp--terraform-provider-tl/environment/executable filter=lfs diff=lfs merge=lfs -text
1128
+ hashicorp--terraform-provider-tl/tests/executable filter=lfs diff=lfs merge=lfs -text
1129
+ hasit--bolter.68d80ba/environment/executable filter=lfs diff=lfs merge=lfs -text
1130
+ hasit--bolter.68d80ba/tests/executable filter=lfs diff=lfs merge=lfs -text
1131
+ hazbo--httpu.01c0eb4/environment/executable filter=lfs diff=lfs merge=lfs -text
1132
+ hazbo--httpu.01c0eb4/tests/executable filter=lfs diff=lfs merge=lfs -text
1133
+ hazcod--ransomwhere.3a763ee/environment/executable filter=lfs diff=lfs merge=lfs -text
1134
+ hazcod--ransomwhere.3a763ee/tests/executable filter=lfs diff=lfs merge=lfs -text
1135
+ hdm--nextnet.2c66df3/environment/executable filter=lfs diff=lfs merge=lfs -text
1136
+ hdm--nextnet.2c66df3/tests/executable filter=lfs diff=lfs merge=lfs -text
1137
+ hdoc--hdoc.387456d/environment/executable filter=lfs diff=lfs merge=lfs -text
1138
+ hdoc--hdoc.387456d/tests/executable filter=lfs diff=lfs merge=lfs -text
1139
+ heapwolf--ldb.f289a71/environment/executable filter=lfs diff=lfs merge=lfs -text
1140
+ heapwolf--ldb.f289a71/tests/executable filter=lfs diff=lfs merge=lfs -text
1141
+ heitzmann--gdstk.29c86f9/environment/executable filter=lfs diff=lfs merge=lfs -text
1142
+ heitzmann--gdstk.29c86f9/tests/executable filter=lfs diff=lfs merge=lfs -text
1143
+ henvic--httpretty.3b8d127/environment/executable filter=lfs diff=lfs merge=lfs -text
1144
+ henvic--httpretty.3b8d127/tests/executable filter=lfs diff=lfs merge=lfs -text
1145
+ heppu--gkill.4e8ea22/environment/executable filter=lfs diff=lfs merge=lfs -text
1146
+ heppu--gkill.4e8ea22/tests/executable filter=lfs diff=lfs merge=lfs -text
1147
+ heroku--terrier.ed59392/environment/executable filter=lfs diff=lfs merge=lfs -text
1148
+ heroku--terrier.ed59392/tests/executable filter=lfs diff=lfs merge=lfs -text
1149
+ hexilee--async-io-demo.5b82514/environment/executable filter=lfs diff=lfs merge=lfs -text
1150
+ hexilee--async-io-demo.5b82514/tests/executable filter=lfs diff=lfs merge=lfs -text
1151
+ hherman1--gq.71a8797/environment/executable filter=lfs diff=lfs merge=lfs -text
1152
+ hherman1--gq.71a8797/tests/executable filter=lfs diff=lfs merge=lfs -text
1153
+ hickford--git-credential-oauth.0/environment/executable filter=lfs diff=lfs merge=lfs -text
1154
+ hickford--git-credential-oauth.0/tests/executable filter=lfs diff=lfs merge=lfs -text
1155
+ hidu--mysql-schema-sync.730df92/environment/executable filter=lfs diff=lfs merge=lfs -text
1156
+ hidu--mysql-schema-sync.730df92/tests/executable filter=lfs diff=lfs merge=lfs -text
1157
+ highperformancecoder--minsky.762/environment/executable filter=lfs diff=lfs merge=lfs -text
1158
+ highperformancecoder--minsky.762/tests/executable filter=lfs diff=lfs merge=lfs -text
1159
+ hisbaan--didyoumean.4d19bab/environment/executable filter=lfs diff=lfs merge=lfs -text
1160
+ hisbaan--didyoumean.4d19bab/tests/executable filter=lfs diff=lfs merge=lfs -text
1161
+ hjson--hjson-go.23908b1/environment/executable filter=lfs diff=lfs merge=lfs -text
1162
+ hjson--hjson-go.23908b1/tests/executable filter=lfs diff=lfs merge=lfs -text
1163
+ hkalbasi--zngur.1d07ff0/environment/executable filter=lfs diff=lfs merge=lfs -text
1164
+ hkalbasi--zngur.1d07ff0/tests/executable filter=lfs diff=lfs merge=lfs -text
1165
+ hmarr--codeowners.b0f609d/environment/executable filter=lfs diff=lfs merge=lfs -text
1166
+ hmarr--codeowners.b0f609d/tests/executable filter=lfs diff=lfs merge=lfs -text
1167
+ hoangnb24--repository-harness.f0/environment/executable filter=lfs diff=lfs merge=lfs -text
1168
+ hoangnb24--repository-harness.f0/tests/executable filter=lfs diff=lfs merge=lfs -text
1169
+ hoanhan101--algo.46d524f/environment/executable filter=lfs diff=lfs merge=lfs -text
graphql-rust--graphql-client.91f/environment/Dockerfile ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_NPM_REGISTRY="https://registry.npmjs.org/"
5
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
6
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
7
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
8
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
9
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
10
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
11
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
12
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
13
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
14
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
15
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
16
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
17
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
18
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
19
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
20
+ ENV DEBIAN_FRONTEND=noninteractive
21
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
22
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
23
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
24
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
25
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
26
+ ENV GOSUMDB=sum.golang.google.cn
27
+ ENV GOTOOLCHAIN=auto
28
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
29
+ ENV npm_config_cache=/workspace/.cache/npm
30
+ ENV HOME=/workspace
31
+ ENV XDG_CACHE_HOME=/workspace/.cache
32
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
33
+ ENV PYTHONUSERBASE=/workspace/.local
34
+ ENV CARGO_HOME=/usr/local/cargo
35
+ ENV RUSTUP_HOME=/usr/local/rustup
36
+ ENV RUSTUP_TOOLCHAIN=1.97.1
37
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
38
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
39
+ ENV PAGER=cat
40
+ ENV MANPAGER=cat
41
+ ENV LESS=-R
42
+ ENV TQDM_DISABLE=1
43
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
44
+ RUN rustup component add llvm-tools-preview --toolchain 1.97.1
45
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
46
+ RUN rustc --version && cargo --version && rustup show active-toolchain
47
+ WORKDIR /workspace
48
+ ADD workspace.tar.gz /workspace/
49
+ COPY executable /workspace/executable
50
+ COPY download.sh /tmp/programgym-download.sh
51
+ RUN chmod 755 /tmp/programgym-download.sh
52
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
53
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
54
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
55
+ && rm -f /tmp/programgym-download.sh \
56
+ && rm -f /tmp/harbor_prepare_download_env.sh
57
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
58
+ RUN chmod 111 /workspace/executable
59
+ WORKDIR /workspace
60
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
61
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
62
+ # submission handed to the separate verifier. Keep the reference executable
63
+ # execute-only; the oracle temporarily restores owner read permission.
64
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
65
+ RUN mkdir -p /home/agent \
66
+ && chown -R agent:agent /home/agent /workspace \
67
+ && chown agent:agent /workspace/executable \
68
+ && chmod 111 /workspace/executable
69
+ ENV HOME=/home/agent
70
+ WORKDIR /workspace
graphql-rust--graphql-client.91f/environment/docker-compose.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
8
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
9
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
10
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
11
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
graphql-rust--graphql-client.91f/environment/download.sh ADDED
@@ -0,0 +1,2512 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # download.sh - ProgramGym network-stage dependency prefetch for graphql-client.
4
+ #
5
+ # Sources via `source /source_ro/download.sh` from the repo root, but is a
6
+ # standalone single file: it reads NO repository file and performs NO compile,
7
+ # link, test, package, or install step. It only populates the cargo registry
8
+ # cache (CARGO_HOME) with the exact crate versions pinned by the repository's
9
+ # Cargo.lock so the offline build stage can compile with no network.
10
+ #
11
+ # Why a replica workspace with a generated lock? Cargo.lock pins `spin` at
12
+ # 0.9.8, a version that is yanked on crates.io. A fresh dependency resolution
13
+ # refuses to select a yanked version unless it is already present in the
14
+ # provided lockfile, so we reproduce the exact workspace (member manifests and
15
+ # the full Cargo.lock, both embedded verbatim below) in a throw-away directory
16
+ # and run one dependency-prefetch command against that generated workspace with
17
+ # --locked. --locked accepts the yanked pin and pulls every pinned version into
18
+ # CARGO_HOME deterministically.
19
+
20
+ set -u
21
+
22
+ fail() {
23
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
24
+ return 1
25
+ else
26
+ exit 1
27
+ fi
28
+ }
29
+
30
+ # The registry cache must live at $HOME/.cargo so the offline build stage
31
+ # (run later as the same user with the same HOME) can resolve every dependency
32
+ # from the populated cache.
33
+ export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
34
+
35
+ # A writable scratch area outside the (read-only /source_ro) repository tree.
36
+ PB_DIR="${PB_DIR:-$HOME/.pb-fetch-graphql-client}"
37
+ rm -rf "$PB_DIR"
38
+ mkdir -p "$PB_DIR"/ws/graphql_client/src
39
+ mkdir -p "$PB_DIR"/ws/graphql_client_cli/src
40
+ mkdir -p "$PB_DIR"/ws/graphql_client_codegen/src
41
+ mkdir -p "$PB_DIR"/ws/graphql-introspection-query/src
42
+ mkdir -p "$PB_DIR"/ws/graphql_query_derive/src
43
+ mkdir -p "$PB_DIR"/ws/examples/github
44
+ mkdir -p "$PB_DIR"/ws/examples/hasura
45
+ mkdir -p "$PB_DIR"/ws/examples/web/src
46
+ cat > "$PB_DIR/ws/Cargo.toml" <<'PB_WS_ROOT'
47
+ [workspace]
48
+ resolver = "2"
49
+ members = [
50
+ "graphql_client",
51
+ "graphql_client_cli",
52
+ "graphql_client_codegen",
53
+ "graphql-introspection-query",
54
+ "graphql_query_derive",
55
+
56
+ # Example crates.
57
+ "examples/*",
58
+ ]
59
+
60
+ [workspace.package]
61
+ version = "0.16.0"
62
+ rust-version = "1.66.0"
63
+ PB_WS_ROOT
64
+
65
+ cat > "$PB_DIR/ws/graphql_client/Cargo.toml" <<'PB_MANIFEST'
66
+ [package]
67
+ name = "graphql_client"
68
+ version.workspace = true
69
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
70
+ description = "Typed GraphQL requests and responses"
71
+ repository = "https://github.com/graphql-rust/graphql-client"
72
+ license = "Apache-2.0 OR MIT"
73
+ keywords = ["graphql", "api", "web", "webassembly", "wasm"]
74
+ categories = ["network-programming", "web-programming", "wasm"]
75
+ edition = "2018"
76
+ homepage = "https://github.com/graphql-rust/graphql-client"
77
+ readme = "../README.md"
78
+ rust-version.workspace = true
79
+
80
+ [package.metadata.docs.rs]
81
+ features = ["reqwest"]
82
+
83
+ [dependencies]
84
+ serde = { version = "1.0.78", features = ["derive"] }
85
+ serde_json = "1.0.50"
86
+
87
+ # Optional dependencies
88
+ graphql_query_derive = { path = "../graphql_query_derive", version = "0.16.0", optional = true }
89
+ reqwest-crate = { package = "reqwest", version = ">=0.11, <=0.12", features = ["json"], default-features = false, optional = true }
90
+
91
+ [features]
92
+ default = ["graphql_query_derive"]
93
+ reqwest = ["reqwest-crate", "reqwest-crate/default-tls"]
94
+ reqwest-rustls = ["reqwest-crate", "reqwest-crate/rustls-tls"]
95
+ reqwest-blocking = ["reqwest-crate/blocking"]
96
+ PB_MANIFEST
97
+
98
+ cat > "$PB_DIR/ws/graphql_client_cli/Cargo.toml" <<'PB_MANIFEST'
99
+ [package]
100
+ name = "graphql_client_cli"
101
+ description = "The CLI for graphql-client"
102
+ version.workspace = true
103
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
104
+ license = "Apache-2.0 OR MIT"
105
+ repository = "https://github.com/graphql-rust/graphql-client"
106
+ edition = "2018"
107
+
108
+ [[bin]]
109
+ name = "graphql-client"
110
+ path = "src/main.rs"
111
+
112
+ [dependencies]
113
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
114
+ graphql_client = { version = "0.16.0", path = "../graphql_client", default-features = false, features = ["graphql_query_derive", "reqwest-blocking"] }
115
+ graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.16.0" }
116
+ clap = { version = "^4.0", features = ["derive"] }
117
+ serde = { version = "^1.0", features = ["derive"] }
118
+ serde_json = "^1.0"
119
+ log = "^0.4"
120
+ env_logger = { version = "0.10.2", features = ["color"] }
121
+ syn = { version = "^2.0", features = ["full"] }
122
+ anstyle = "1.0.10"
123
+
124
+ [features]
125
+ default = []
126
+ PB_MANIFEST
127
+
128
+ cat > "$PB_DIR/ws/graphql_client_codegen/Cargo.toml" <<'PB_MANIFEST'
129
+ [package]
130
+ name = "graphql_client_codegen"
131
+ version.workspace = true
132
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
133
+ description = "Utility crate for graphql_client"
134
+ license = "Apache-2.0 OR MIT"
135
+ repository = "https://github.com/graphql-rust/graphql-client"
136
+ edition = "2018"
137
+
138
+ [dependencies]
139
+ graphql-introspection-query = { version = "0.3.0", path = "../graphql-introspection-query" }
140
+ graphql-parser = "0.4"
141
+ heck = ">=0.4, <=0.5"
142
+ proc-macro2 = { version = "^1.0", features = [] }
143
+ quote = "^1.0"
144
+ serde_json = "1.0"
145
+ serde = { version = "^1.0", features = ["derive"] }
146
+ syn = { version = "^2.0", features = [ "full" ] }
147
+ PB_MANIFEST
148
+
149
+ cat > "$PB_DIR/ws/graphql-introspection-query/Cargo.toml" <<'PB_MANIFEST'
150
+ [package]
151
+ name = "graphql-introspection-query"
152
+ version = "0.3.0"
153
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
154
+ edition = "2018"
155
+ keywords = ["graphql", "api", "web"]
156
+ categories = ["web-programming"]
157
+ license = "Apache-2.0 OR MIT"
158
+ repository = "https://github.com/graphql-rust/graphql-client"
159
+ description = "GraphQL introspection query and response types."
160
+
161
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
162
+
163
+ [dependencies]
164
+ serde = { version = "1.0", features = ["derive"] }
165
+ PB_MANIFEST
166
+
167
+ cat > "$PB_DIR/ws/graphql_query_derive/Cargo.toml" <<'PB_MANIFEST'
168
+ [package]
169
+ name = "graphql_query_derive"
170
+ version.workspace = true
171
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
172
+ description = "Utility crate for graphql_client"
173
+ license = "Apache-2.0 OR MIT"
174
+ repository = "https://github.com/graphql-rust/graphql-client"
175
+ edition = "2018"
176
+
177
+ [lib]
178
+ proc-macro = true
179
+
180
+ [dependencies]
181
+ syn = { version = "^2.0", features = ["extra-traits"] }
182
+ proc-macro2 = { version = "^1.0", features = [] }
183
+ graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.16.0" }
184
+ PB_MANIFEST
185
+
186
+ cat > "$PB_DIR/ws/examples/github/Cargo.toml" <<'PB_MANIFEST'
187
+ [package]
188
+ name = "graphql_query_github_example"
189
+ version = "0.1.0"
190
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
191
+ edition = "2018"
192
+ publish = false
193
+
194
+ [dev-dependencies]
195
+ anyhow = "1.0"
196
+ graphql_client = { path = "../../graphql_client", features = ["reqwest-blocking"] }
197
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
198
+ prettytable-rs = "^0.10.0"
199
+ clap = { version = "^4.0", features = ["derive"] }
200
+ log = "^0.4"
201
+ env_logger = "0.10.2"
202
+ PB_MANIFEST
203
+
204
+ cat > "$PB_DIR/ws/examples/hasura/Cargo.toml" <<'PB_MANIFEST'
205
+ [package]
206
+ name = "graphql_query_hasura_example"
207
+ version = "0.1.0"
208
+ authors = ["Mark Catley <mark@catley.net.nz>"]
209
+ edition = "2018"
210
+ publish = false
211
+
212
+ [dev-dependencies]
213
+ anyhow = "1.0"
214
+ graphql_client = { path = "../../graphql_client", features = ["reqwest-blocking"] }
215
+ serde_json = "1.0"
216
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
217
+ prettytable-rs = "0.10.0"
218
+ log = "0.4.3"
219
+ env_logger = "0.10.2"
220
+ PB_MANIFEST
221
+
222
+ cat > "$PB_DIR/ws/examples/web/Cargo.toml" <<'PB_MANIFEST'
223
+ [package]
224
+ name = "web"
225
+ version = "0.1.0"
226
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
227
+ edition = "2018"
228
+ publish = false
229
+
230
+ [lib]
231
+ crate-type = ["cdylib", "rlib"]
232
+
233
+ [dependencies]
234
+ graphql_client = { path = "../../graphql_client", features = ["reqwest"] }
235
+ wasm-bindgen = "^0.2"
236
+ js-sys = "0.3.6"
237
+ wasm-bindgen-futures = "0.4.18"
238
+ reqwest = "0.12"
239
+
240
+ [dependencies.web-sys]
241
+ version = "0.3.6"
242
+ features = [
243
+ "console",
244
+ "Document",
245
+ "Element",
246
+ "EventTarget",
247
+ "Node",
248
+ "HtmlBodyElement",
249
+ "HtmlDocument",
250
+ "HtmlElement",
251
+ "Window",
252
+ ]
253
+ PB_MANIFEST
254
+
255
+ # Empty stub source files so that each generated workspace member has a target
256
+ # and the workspace resolves. None of these stubs are ever compiled; the
257
+ # dependency-prefetch stage only downloads dependency sources.
258
+
259
+ cat > "$PB_DIR/ws/graphql_client/src/lib.rs" <<'PB_STUB'
260
+ #[allow(dead_code)]
261
+ pub fn _pb_stub_gc() {}
262
+ PB_STUB
263
+
264
+ cat > "$PB_DIR/ws/graphql_client_cli/src/main.rs" <<'PB_STUB'
265
+ fn main() {}
266
+ PB_STUB
267
+
268
+ cat > "$PB_DIR/ws/graphql_client_codegen/src/lib.rs" <<'PB_STUB'
269
+ #[allow(dead_code)]
270
+ pub fn _pb_stub_gcc() {}
271
+ PB_STUB
272
+
273
+ cat > "$PB_DIR/ws/graphql-introspection-query/src/lib.rs" <<'PB_STUB'
274
+ #[allow(dead_code)]
275
+ pub fn _pb_stub_gqi() {}
276
+ PB_STUB
277
+
278
+ cat > "$PB_DIR/ws/graphql_query_derive/src/lib.rs" <<'PB_STUB'
279
+ #[allow(dead_code)]
280
+ pub fn _pb_stub_gqd() {}
281
+ PB_STUB
282
+
283
+ # The example crates reference example files inside their source trees; generate
284
+ # minimal stubs so the workspaces resolve. They are never compiled.
285
+
286
+ mkdir -p "$PB_DIR/ws/examples/github/examples"
287
+ cat > "$PB_DIR/ws/examples/github/examples/github.rs" <<'PB_STUB'
288
+ fn main() {}
289
+ PB_STUB
290
+
291
+ mkdir -p "$PB_DIR/ws/examples/hasura/examples"
292
+ cat > "$PB_DIR/ws/examples/hasura/examples/hasura.rs" <<'PB_STUB'
293
+ fn main() {}
294
+ PB_STUB
295
+
296
+ cat > "$PB_DIR/ws/examples/web/src/lib.rs" <<'PB_STUB'
297
+ pub fn _pb_stub_web() {}
298
+ PB_STUB
299
+
300
+ # The full repository-generated Cargo.lock, embedded verbatim, so that
301
+ # --locked dependency resolution pulls the exact pinned versions
302
+ # (including the yanked spin 0.9.8) into the registry cache.
303
+
304
+ cat > "$PB_DIR/ws/Cargo.lock" <<'PB_LOCK'
305
+ # This file is automatically @generated by Cargo.
306
+ # It is not intended for manual editing.
307
+ version = 3
308
+
309
+ [[package]]
310
+ name = "addr2line"
311
+ version = "0.24.2"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
314
+ dependencies = [
315
+ "gimli",
316
+ ]
317
+
318
+ [[package]]
319
+ name = "adler2"
320
+ version = "2.0.0"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
323
+
324
+ [[package]]
325
+ name = "aho-corasick"
326
+ version = "1.1.3"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
329
+ dependencies = [
330
+ "memchr",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "anstream"
335
+ version = "0.6.18"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
338
+ dependencies = [
339
+ "anstyle",
340
+ "anstyle-parse",
341
+ "anstyle-query",
342
+ "anstyle-wincon",
343
+ "colorchoice",
344
+ "is_terminal_polyfill",
345
+ "utf8parse",
346
+ ]
347
+
348
+ [[package]]
349
+ name = "anstyle"
350
+ version = "1.0.10"
351
+ source = "registry+https://github.com/rust-lang/crates.io-index"
352
+ checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
353
+
354
+ [[package]]
355
+ name = "anstyle-parse"
356
+ version = "0.2.6"
357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
358
+ checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
359
+ dependencies = [
360
+ "utf8parse",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "anstyle-query"
365
+ version = "1.1.2"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
368
+ dependencies = [
369
+ "windows-sys 0.59.0",
370
+ ]
371
+
372
+ [[package]]
373
+ name = "anstyle-wincon"
374
+ version = "3.0.7"
375
+ source = "registry+https://github.com/rust-lang/crates.io-index"
376
+ checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
377
+ dependencies = [
378
+ "anstyle",
379
+ "once_cell",
380
+ "windows-sys 0.59.0",
381
+ ]
382
+
383
+ [[package]]
384
+ name = "anyhow"
385
+ version = "1.0.95"
386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
387
+ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
388
+
389
+ [[package]]
390
+ name = "atomic-waker"
391
+ version = "1.1.2"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
394
+
395
+ [[package]]
396
+ name = "autocfg"
397
+ version = "1.4.0"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
400
+
401
+ [[package]]
402
+ name = "backtrace"
403
+ version = "0.3.74"
404
+ source = "registry+https://github.com/rust-lang/crates.io-index"
405
+ checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
406
+ dependencies = [
407
+ "addr2line",
408
+ "cfg-if",
409
+ "libc",
410
+ "miniz_oxide",
411
+ "object",
412
+ "rustc-demangle",
413
+ "windows-targets",
414
+ ]
415
+
416
+ [[package]]
417
+ name = "base64"
418
+ version = "0.22.1"
419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
420
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
421
+
422
+ [[package]]
423
+ name = "bitflags"
424
+ version = "2.8.0"
425
+ source = "registry+https://github.com/rust-lang/crates.io-index"
426
+ checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
427
+
428
+ [[package]]
429
+ name = "bumpalo"
430
+ version = "3.17.0"
431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
432
+ checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
433
+
434
+ [[package]]
435
+ name = "byteorder"
436
+ version = "1.5.0"
437
+ source = "registry+https://github.com/rust-lang/crates.io-index"
438
+ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
439
+
440
+ [[package]]
441
+ name = "bytes"
442
+ version = "1.9.0"
443
+ source = "registry+https://github.com/rust-lang/crates.io-index"
444
+ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b"
445
+
446
+ [[package]]
447
+ name = "cc"
448
+ version = "1.2.11"
449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
450
+ checksum = "e4730490333d58093109dc02c23174c3f4d490998c3fed3cc8e82d57afedb9cf"
451
+ dependencies = [
452
+ "shlex",
453
+ ]
454
+
455
+ [[package]]
456
+ name = "cfg-if"
457
+ version = "1.0.0"
458
+ source = "registry+https://github.com/rust-lang/crates.io-index"
459
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
460
+
461
+ [[package]]
462
+ name = "cfg_aliases"
463
+ version = "0.2.1"
464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
465
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
466
+
467
+ [[package]]
468
+ name = "clap"
469
+ version = "4.5.27"
470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
471
+ checksum = "769b0145982b4b48713e01ec42d61614425f27b7058bda7180a3a41f30104796"
472
+ dependencies = [
473
+ "clap_builder",
474
+ "clap_derive",
475
+ ]
476
+
477
+ [[package]]
478
+ name = "clap_builder"
479
+ version = "4.5.27"
480
+ source = "registry+https://github.com/rust-lang/crates.io-index"
481
+ checksum = "1b26884eb4b57140e4d2d93652abfa49498b938b3c9179f9fc487b0acc3edad7"
482
+ dependencies = [
483
+ "anstream",
484
+ "anstyle",
485
+ "clap_lex",
486
+ "strsim",
487
+ ]
488
+
489
+ [[package]]
490
+ name = "clap_derive"
491
+ version = "4.5.24"
492
+ source = "registry+https://github.com/rust-lang/crates.io-index"
493
+ checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c"
494
+ dependencies = [
495
+ "heck",
496
+ "proc-macro2",
497
+ "quote",
498
+ "syn",
499
+ ]
500
+
501
+ [[package]]
502
+ name = "clap_lex"
503
+ version = "0.7.4"
504
+ source = "registry+https://github.com/rust-lang/crates.io-index"
505
+ checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
506
+
507
+ [[package]]
508
+ name = "colorchoice"
509
+ version = "1.0.3"
510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
511
+ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
512
+
513
+ [[package]]
514
+ name = "combine"
515
+ version = "4.6.7"
516
+ source = "registry+https://github.com/rust-lang/crates.io-index"
517
+ checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
518
+ dependencies = [
519
+ "bytes",
520
+ "memchr",
521
+ ]
522
+
523
+ [[package]]
524
+ name = "core-foundation"
525
+ version = "0.9.4"
526
+ source = "registry+https://github.com/rust-lang/crates.io-index"
527
+ checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
528
+ dependencies = [
529
+ "core-foundation-sys",
530
+ "libc",
531
+ ]
532
+
533
+ [[package]]
534
+ name = "core-foundation-sys"
535
+ version = "0.8.7"
536
+ source = "registry+https://github.com/rust-lang/crates.io-index"
537
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
538
+
539
+ [[package]]
540
+ name = "csv"
541
+ version = "1.3.1"
542
+ source = "registry+https://github.com/rust-lang/crates.io-index"
543
+ checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf"
544
+ dependencies = [
545
+ "csv-core",
546
+ "itoa",
547
+ "ryu",
548
+ "serde",
549
+ ]
550
+
551
+ [[package]]
552
+ name = "csv-core"
553
+ version = "0.1.11"
554
+ source = "registry+https://github.com/rust-lang/crates.io-index"
555
+ checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70"
556
+ dependencies = [
557
+ "memchr",
558
+ ]
559
+
560
+ [[package]]
561
+ name = "dirs-next"
562
+ version = "2.0.0"
563
+ source = "registry+https://github.com/rust-lang/crates.io-index"
564
+ checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
565
+ dependencies = [
566
+ "cfg-if",
567
+ "dirs-sys-next",
568
+ ]
569
+
570
+ [[package]]
571
+ name = "dirs-sys-next"
572
+ version = "0.1.2"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
575
+ dependencies = [
576
+ "libc",
577
+ "redox_users",
578
+ "winapi",
579
+ ]
580
+
581
+ [[package]]
582
+ name = "displaydoc"
583
+ version = "0.2.5"
584
+ source = "registry+https://github.com/rust-lang/crates.io-index"
585
+ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
586
+ dependencies = [
587
+ "proc-macro2",
588
+ "quote",
589
+ "syn",
590
+ ]
591
+
592
+ [[package]]
593
+ name = "encode_unicode"
594
+ version = "1.0.0"
595
+ source = "registry+https://github.com/rust-lang/crates.io-index"
596
+ checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
597
+
598
+ [[package]]
599
+ name = "encoding_rs"
600
+ version = "0.8.35"
601
+ source = "registry+https://github.com/rust-lang/crates.io-index"
602
+ checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
603
+ dependencies = [
604
+ "cfg-if",
605
+ ]
606
+
607
+ [[package]]
608
+ name = "env_logger"
609
+ version = "0.10.2"
610
+ source = "registry+https://github.com/rust-lang/crates.io-index"
611
+ checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
612
+ dependencies = [
613
+ "humantime",
614
+ "is-terminal",
615
+ "log",
616
+ "regex",
617
+ "termcolor",
618
+ ]
619
+
620
+ [[package]]
621
+ name = "equivalent"
622
+ version = "1.0.1"
623
+ source = "registry+https://github.com/rust-lang/crates.io-index"
624
+ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
625
+
626
+ [[package]]
627
+ name = "errno"
628
+ version = "0.3.10"
629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
630
+ checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
631
+ dependencies = [
632
+ "libc",
633
+ "windows-sys 0.59.0",
634
+ ]
635
+
636
+ [[package]]
637
+ name = "fastrand"
638
+ version = "2.3.0"
639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
640
+ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
641
+
642
+ [[package]]
643
+ name = "fnv"
644
+ version = "1.0.7"
645
+ source = "registry+https://github.com/rust-lang/crates.io-index"
646
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
647
+
648
+ [[package]]
649
+ name = "foreign-types"
650
+ version = "0.3.2"
651
+ source = "registry+https://github.com/rust-lang/crates.io-index"
652
+ checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
653
+ dependencies = [
654
+ "foreign-types-shared",
655
+ ]
656
+
657
+ [[package]]
658
+ name = "foreign-types-shared"
659
+ version = "0.1.1"
660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
661
+ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
662
+
663
+ [[package]]
664
+ name = "form_urlencoded"
665
+ version = "1.2.1"
666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
667
+ checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
668
+ dependencies = [
669
+ "percent-encoding",
670
+ ]
671
+
672
+ [[package]]
673
+ name = "futures-channel"
674
+ version = "0.3.31"
675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
676
+ checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
677
+ dependencies = [
678
+ "futures-core",
679
+ "futures-sink",
680
+ ]
681
+
682
+ [[package]]
683
+ name = "futures-core"
684
+ version = "0.3.31"
685
+ source = "registry+https://github.com/rust-lang/crates.io-index"
686
+ checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
687
+
688
+ [[package]]
689
+ name = "futures-io"
690
+ version = "0.3.31"
691
+ source = "registry+https://github.com/rust-lang/crates.io-index"
692
+ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
693
+
694
+ [[package]]
695
+ name = "futures-sink"
696
+ version = "0.3.31"
697
+ source = "registry+https://github.com/rust-lang/crates.io-index"
698
+ checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
699
+
700
+ [[package]]
701
+ name = "futures-task"
702
+ version = "0.3.31"
703
+ source = "registry+https://github.com/rust-lang/crates.io-index"
704
+ checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
705
+
706
+ [[package]]
707
+ name = "futures-util"
708
+ version = "0.3.31"
709
+ source = "registry+https://github.com/rust-lang/crates.io-index"
710
+ checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
711
+ dependencies = [
712
+ "futures-core",
713
+ "futures-io",
714
+ "futures-sink",
715
+ "futures-task",
716
+ "memchr",
717
+ "pin-project-lite",
718
+ "pin-utils",
719
+ "slab",
720
+ ]
721
+
722
+ [[package]]
723
+ name = "getrandom"
724
+ version = "0.2.15"
725
+ source = "registry+https://github.com/rust-lang/crates.io-index"
726
+ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
727
+ dependencies = [
728
+ "cfg-if",
729
+ "js-sys",
730
+ "libc",
731
+ "wasi 0.11.0+wasi-snapshot-preview1",
732
+ "wasm-bindgen",
733
+ ]
734
+
735
+ [[package]]
736
+ name = "getrandom"
737
+ version = "0.3.1"
738
+ source = "registry+https://github.com/rust-lang/crates.io-index"
739
+ checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
740
+ dependencies = [
741
+ "cfg-if",
742
+ "libc",
743
+ "wasi 0.13.3+wasi-0.2.2",
744
+ "windows-targets",
745
+ ]
746
+
747
+ [[package]]
748
+ name = "gimli"
749
+ version = "0.31.1"
750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
751
+ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
752
+
753
+ [[package]]
754
+ name = "graphql-introspection-query"
755
+ version = "0.3.0"
756
+ dependencies = [
757
+ "serde",
758
+ ]
759
+
760
+ [[package]]
761
+ name = "graphql-parser"
762
+ version = "0.4.1"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "7a818c0d883d7c0801df27be910917750932be279c7bc82dc541b8769425f409"
765
+ dependencies = [
766
+ "combine",
767
+ "thiserror 1.0.69",
768
+ ]
769
+
770
+ [[package]]
771
+ name = "graphql_client"
772
+ version = "0.16.0"
773
+ dependencies = [
774
+ "graphql_query_derive",
775
+ "reqwest",
776
+ "serde",
777
+ "serde_json",
778
+ ]
779
+
780
+ [[package]]
781
+ name = "graphql_client_cli"
782
+ version = "0.16.0"
783
+ dependencies = [
784
+ "anstyle",
785
+ "clap",
786
+ "env_logger",
787
+ "graphql_client",
788
+ "graphql_client_codegen",
789
+ "log",
790
+ "reqwest",
791
+ "serde",
792
+ "serde_json",
793
+ "syn",
794
+ ]
795
+
796
+ [[package]]
797
+ name = "graphql_client_codegen"
798
+ version = "0.16.0"
799
+ dependencies = [
800
+ "graphql-introspection-query",
801
+ "graphql-parser",
802
+ "heck",
803
+ "proc-macro2",
804
+ "quote",
805
+ "serde",
806
+ "serde_json",
807
+ "syn",
808
+ ]
809
+
810
+ [[package]]
811
+ name = "graphql_query_derive"
812
+ version = "0.16.0"
813
+ dependencies = [
814
+ "graphql_client_codegen",
815
+ "proc-macro2",
816
+ "syn",
817
+ ]
818
+
819
+ [[package]]
820
+ name = "graphql_query_github_example"
821
+ version = "0.1.0"
822
+ dependencies = [
823
+ "anyhow",
824
+ "clap",
825
+ "env_logger",
826
+ "graphql_client",
827
+ "log",
828
+ "prettytable-rs",
829
+ "reqwest",
830
+ ]
831
+
832
+ [[package]]
833
+ name = "graphql_query_hasura_example"
834
+ version = "0.1.0"
835
+ dependencies = [
836
+ "anyhow",
837
+ "env_logger",
838
+ "graphql_client",
839
+ "log",
840
+ "prettytable-rs",
841
+ "reqwest",
842
+ "serde_json",
843
+ ]
844
+
845
+ [[package]]
846
+ name = "h2"
847
+ version = "0.4.7"
848
+ source = "registry+https://github.com/rust-lang/crates.io-index"
849
+ checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e"
850
+ dependencies = [
851
+ "atomic-waker",
852
+ "bytes",
853
+ "fnv",
854
+ "futures-core",
855
+ "futures-sink",
856
+ "http",
857
+ "indexmap",
858
+ "slab",
859
+ "tokio",
860
+ "tokio-util",
861
+ "tracing",
862
+ ]
863
+
864
+ [[package]]
865
+ name = "hashbrown"
866
+ version = "0.15.2"
867
+ source = "registry+https://github.com/rust-lang/crates.io-index"
868
+ checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
869
+
870
+ [[package]]
871
+ name = "heck"
872
+ version = "0.5.0"
873
+ source = "registry+https://github.com/rust-lang/crates.io-index"
874
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
875
+
876
+ [[package]]
877
+ name = "hermit-abi"
878
+ version = "0.4.0"
879
+ source = "registry+https://github.com/rust-lang/crates.io-index"
880
+ checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
881
+
882
+ [[package]]
883
+ name = "http"
884
+ version = "1.2.0"
885
+ source = "registry+https://github.com/rust-lang/crates.io-index"
886
+ checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea"
887
+ dependencies = [
888
+ "bytes",
889
+ "fnv",
890
+ "itoa",
891
+ ]
892
+
893
+ [[package]]
894
+ name = "http-body"
895
+ version = "1.0.1"
896
+ source = "registry+https://github.com/rust-lang/crates.io-index"
897
+ checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
898
+ dependencies = [
899
+ "bytes",
900
+ "http",
901
+ ]
902
+
903
+ [[package]]
904
+ name = "http-body-util"
905
+ version = "0.1.2"
906
+ source = "registry+https://github.com/rust-lang/crates.io-index"
907
+ checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f"
908
+ dependencies = [
909
+ "bytes",
910
+ "futures-util",
911
+ "http",
912
+ "http-body",
913
+ "pin-project-lite",
914
+ ]
915
+
916
+ [[package]]
917
+ name = "httparse"
918
+ version = "1.10.0"
919
+ source = "registry+https://github.com/rust-lang/crates.io-index"
920
+ checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a"
921
+
922
+ [[package]]
923
+ name = "humantime"
924
+ version = "2.1.0"
925
+ source = "registry+https://github.com/rust-lang/crates.io-index"
926
+ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
927
+
928
+ [[package]]
929
+ name = "hyper"
930
+ version = "1.6.0"
931
+ source = "registry+https://github.com/rust-lang/crates.io-index"
932
+ checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
933
+ dependencies = [
934
+ "bytes",
935
+ "futures-channel",
936
+ "futures-util",
937
+ "h2",
938
+ "http",
939
+ "http-body",
940
+ "httparse",
941
+ "itoa",
942
+ "pin-project-lite",
943
+ "smallvec",
944
+ "tokio",
945
+ "want",
946
+ ]
947
+
948
+ [[package]]
949
+ name = "hyper-rustls"
950
+ version = "0.27.5"
951
+ source = "registry+https://github.com/rust-lang/crates.io-index"
952
+ checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2"
953
+ dependencies = [
954
+ "futures-util",
955
+ "http",
956
+ "hyper",
957
+ "hyper-util",
958
+ "rustls",
959
+ "rustls-pki-types",
960
+ "tokio",
961
+ "tokio-rustls",
962
+ "tower-service",
963
+ "webpki-roots",
964
+ ]
965
+
966
+ [[package]]
967
+ name = "hyper-tls"
968
+ version = "0.6.0"
969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
970
+ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
971
+ dependencies = [
972
+ "bytes",
973
+ "http-body-util",
974
+ "hyper",
975
+ "hyper-util",
976
+ "native-tls",
977
+ "tokio",
978
+ "tokio-native-tls",
979
+ "tower-service",
980
+ ]
981
+
982
+ [[package]]
983
+ name = "hyper-util"
984
+ version = "0.1.10"
985
+ source = "registry+https://github.com/rust-lang/crates.io-index"
986
+ checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"
987
+ dependencies = [
988
+ "bytes",
989
+ "futures-channel",
990
+ "futures-util",
991
+ "http",
992
+ "http-body",
993
+ "hyper",
994
+ "pin-project-lite",
995
+ "socket2",
996
+ "tokio",
997
+ "tower-service",
998
+ "tracing",
999
+ ]
1000
+
1001
+ [[package]]
1002
+ name = "icu_collections"
1003
+ version = "1.5.0"
1004
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1005
+ checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"
1006
+ dependencies = [
1007
+ "displaydoc",
1008
+ "yoke",
1009
+ "zerofrom",
1010
+ "zerovec",
1011
+ ]
1012
+
1013
+ [[package]]
1014
+ name = "icu_locid"
1015
+ version = "1.5.0"
1016
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1017
+ checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"
1018
+ dependencies = [
1019
+ "displaydoc",
1020
+ "litemap",
1021
+ "tinystr",
1022
+ "writeable",
1023
+ "zerovec",
1024
+ ]
1025
+
1026
+ [[package]]
1027
+ name = "icu_locid_transform"
1028
+ version = "1.5.0"
1029
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1030
+ checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"
1031
+ dependencies = [
1032
+ "displaydoc",
1033
+ "icu_locid",
1034
+ "icu_locid_transform_data",
1035
+ "icu_provider",
1036
+ "tinystr",
1037
+ "zerovec",
1038
+ ]
1039
+
1040
+ [[package]]
1041
+ name = "icu_locid_transform_data"
1042
+ version = "1.5.0"
1043
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1044
+ checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"
1045
+
1046
+ [[package]]
1047
+ name = "icu_normalizer"
1048
+ version = "1.5.0"
1049
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1050
+ checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f"
1051
+ dependencies = [
1052
+ "displaydoc",
1053
+ "icu_collections",
1054
+ "icu_normalizer_data",
1055
+ "icu_properties",
1056
+ "icu_provider",
1057
+ "smallvec",
1058
+ "utf16_iter",
1059
+ "utf8_iter",
1060
+ "write16",
1061
+ "zerovec",
1062
+ ]
1063
+
1064
+ [[package]]
1065
+ name = "icu_normalizer_data"
1066
+ version = "1.5.0"
1067
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1068
+ checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"
1069
+
1070
+ [[package]]
1071
+ name = "icu_properties"
1072
+ version = "1.5.1"
1073
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1074
+ checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"
1075
+ dependencies = [
1076
+ "displaydoc",
1077
+ "icu_collections",
1078
+ "icu_locid_transform",
1079
+ "icu_properties_data",
1080
+ "icu_provider",
1081
+ "tinystr",
1082
+ "zerovec",
1083
+ ]
1084
+
1085
+ [[package]]
1086
+ name = "icu_properties_data"
1087
+ version = "1.5.0"
1088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1089
+ checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"
1090
+
1091
+ [[package]]
1092
+ name = "icu_provider"
1093
+ version = "1.5.0"
1094
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1095
+ checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"
1096
+ dependencies = [
1097
+ "displaydoc",
1098
+ "icu_locid",
1099
+ "icu_provider_macros",
1100
+ "stable_deref_trait",
1101
+ "tinystr",
1102
+ "writeable",
1103
+ "yoke",
1104
+ "zerofrom",
1105
+ "zerovec",
1106
+ ]
1107
+
1108
+ [[package]]
1109
+ name = "icu_provider_macros"
1110
+ version = "1.5.0"
1111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1112
+ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
1113
+ dependencies = [
1114
+ "proc-macro2",
1115
+ "quote",
1116
+ "syn",
1117
+ ]
1118
+
1119
+ [[package]]
1120
+ name = "idna"
1121
+ version = "1.0.3"
1122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1123
+ checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
1124
+ dependencies = [
1125
+ "idna_adapter",
1126
+ "smallvec",
1127
+ "utf8_iter",
1128
+ ]
1129
+
1130
+ [[package]]
1131
+ name = "idna_adapter"
1132
+ version = "1.2.0"
1133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1134
+ checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"
1135
+ dependencies = [
1136
+ "icu_normalizer",
1137
+ "icu_properties",
1138
+ ]
1139
+
1140
+ [[package]]
1141
+ name = "indexmap"
1142
+ version = "2.7.1"
1143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1144
+ checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652"
1145
+ dependencies = [
1146
+ "equivalent",
1147
+ "hashbrown",
1148
+ ]
1149
+
1150
+ [[package]]
1151
+ name = "ipnet"
1152
+ version = "2.11.0"
1153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1154
+ checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
1155
+
1156
+ [[package]]
1157
+ name = "is-terminal"
1158
+ version = "0.4.15"
1159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1160
+ checksum = "e19b23d53f35ce9f56aebc7d1bb4e6ac1e9c0db7ac85c8d1760c04379edced37"
1161
+ dependencies = [
1162
+ "hermit-abi",
1163
+ "libc",
1164
+ "windows-sys 0.59.0",
1165
+ ]
1166
+
1167
+ [[package]]
1168
+ name = "is_terminal_polyfill"
1169
+ version = "1.70.1"
1170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1171
+ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
1172
+
1173
+ [[package]]
1174
+ name = "itoa"
1175
+ version = "1.0.14"
1176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1177
+ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
1178
+
1179
+ [[package]]
1180
+ name = "js-sys"
1181
+ version = "0.3.77"
1182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1183
+ checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
1184
+ dependencies = [
1185
+ "once_cell",
1186
+ "wasm-bindgen",
1187
+ ]
1188
+
1189
+ [[package]]
1190
+ name = "lazy_static"
1191
+ version = "1.5.0"
1192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1193
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1194
+
1195
+ [[package]]
1196
+ name = "libc"
1197
+ version = "0.2.169"
1198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1199
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
1200
+
1201
+ [[package]]
1202
+ name = "libredox"
1203
+ version = "0.1.3"
1204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1205
+ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
1206
+ dependencies = [
1207
+ "bitflags",
1208
+ "libc",
1209
+ ]
1210
+
1211
+ [[package]]
1212
+ name = "linux-raw-sys"
1213
+ version = "0.4.15"
1214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1215
+ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
1216
+
1217
+ [[package]]
1218
+ name = "litemap"
1219
+ version = "0.7.4"
1220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1221
+ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
1222
+
1223
+ [[package]]
1224
+ name = "log"
1225
+ version = "0.4.25"
1226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1227
+ checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
1228
+
1229
+ [[package]]
1230
+ name = "memchr"
1231
+ version = "2.7.4"
1232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1233
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
1234
+
1235
+ [[package]]
1236
+ name = "mime"
1237
+ version = "0.3.17"
1238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1239
+ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1240
+
1241
+ [[package]]
1242
+ name = "miniz_oxide"
1243
+ version = "0.8.3"
1244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1245
+ checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924"
1246
+ dependencies = [
1247
+ "adler2",
1248
+ ]
1249
+
1250
+ [[package]]
1251
+ name = "mio"
1252
+ version = "1.0.3"
1253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1254
+ checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd"
1255
+ dependencies = [
1256
+ "libc",
1257
+ "wasi 0.11.0+wasi-snapshot-preview1",
1258
+ "windows-sys 0.52.0",
1259
+ ]
1260
+
1261
+ [[package]]
1262
+ name = "native-tls"
1263
+ version = "0.2.13"
1264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1265
+ checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c"
1266
+ dependencies = [
1267
+ "libc",
1268
+ "log",
1269
+ "openssl",
1270
+ "openssl-probe",
1271
+ "openssl-sys",
1272
+ "schannel",
1273
+ "security-framework",
1274
+ "security-framework-sys",
1275
+ "tempfile",
1276
+ ]
1277
+
1278
+ [[package]]
1279
+ name = "object"
1280
+ version = "0.36.7"
1281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1282
+ checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
1283
+ dependencies = [
1284
+ "memchr",
1285
+ ]
1286
+
1287
+ [[package]]
1288
+ name = "once_cell"
1289
+ version = "1.20.2"
1290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1291
+ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
1292
+
1293
+ [[package]]
1294
+ name = "openssl"
1295
+ version = "0.10.72"
1296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1297
+ checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da"
1298
+ dependencies = [
1299
+ "bitflags",
1300
+ "cfg-if",
1301
+ "foreign-types",
1302
+ "libc",
1303
+ "once_cell",
1304
+ "openssl-macros",
1305
+ "openssl-sys",
1306
+ ]
1307
+
1308
+ [[package]]
1309
+ name = "openssl-macros"
1310
+ version = "0.1.1"
1311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1312
+ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1313
+ dependencies = [
1314
+ "proc-macro2",
1315
+ "quote",
1316
+ "syn",
1317
+ ]
1318
+
1319
+ [[package]]
1320
+ name = "openssl-probe"
1321
+ version = "0.1.6"
1322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1323
+ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
1324
+
1325
+ [[package]]
1326
+ name = "openssl-sys"
1327
+ version = "0.9.107"
1328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1329
+ checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07"
1330
+ dependencies = [
1331
+ "cc",
1332
+ "libc",
1333
+ "pkg-config",
1334
+ "vcpkg",
1335
+ ]
1336
+
1337
+ [[package]]
1338
+ name = "percent-encoding"
1339
+ version = "2.3.1"
1340
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1341
+ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
1342
+
1343
+ [[package]]
1344
+ name = "pin-project-lite"
1345
+ version = "0.2.16"
1346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1347
+ checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
1348
+
1349
+ [[package]]
1350
+ name = "pin-utils"
1351
+ version = "0.1.0"
1352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1353
+ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
1354
+
1355
+ [[package]]
1356
+ name = "pkg-config"
1357
+ version = "0.3.31"
1358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1359
+ checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
1360
+
1361
+ [[package]]
1362
+ name = "ppv-lite86"
1363
+ version = "0.2.20"
1364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1365
+ checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
1366
+ dependencies = [
1367
+ "zerocopy",
1368
+ ]
1369
+
1370
+ [[package]]
1371
+ name = "prettytable-rs"
1372
+ version = "0.10.0"
1373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1374
+ checksum = "eea25e07510aa6ab6547308ebe3c036016d162b8da920dbb079e3ba8acf3d95a"
1375
+ dependencies = [
1376
+ "csv",
1377
+ "encode_unicode",
1378
+ "is-terminal",
1379
+ "lazy_static",
1380
+ "term",
1381
+ "unicode-width",
1382
+ ]
1383
+
1384
+ [[package]]
1385
+ name = "proc-macro2"
1386
+ version = "1.0.93"
1387
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1388
+ checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
1389
+ dependencies = [
1390
+ "unicode-ident",
1391
+ ]
1392
+
1393
+ [[package]]
1394
+ name = "quinn"
1395
+ version = "0.11.6"
1396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1397
+ checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef"
1398
+ dependencies = [
1399
+ "bytes",
1400
+ "pin-project-lite",
1401
+ "quinn-proto",
1402
+ "quinn-udp",
1403
+ "rustc-hash",
1404
+ "rustls",
1405
+ "socket2",
1406
+ "thiserror 2.0.11",
1407
+ "tokio",
1408
+ "tracing",
1409
+ ]
1410
+
1411
+ [[package]]
1412
+ name = "quinn-proto"
1413
+ version = "0.11.9"
1414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1415
+ checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d"
1416
+ dependencies = [
1417
+ "bytes",
1418
+ "getrandom 0.2.15",
1419
+ "rand",
1420
+ "ring",
1421
+ "rustc-hash",
1422
+ "rustls",
1423
+ "rustls-pki-types",
1424
+ "slab",
1425
+ "thiserror 2.0.11",
1426
+ "tinyvec",
1427
+ "tracing",
1428
+ "web-time",
1429
+ ]
1430
+
1431
+ [[package]]
1432
+ name = "quinn-udp"
1433
+ version = "0.5.9"
1434
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1435
+ checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904"
1436
+ dependencies = [
1437
+ "cfg_aliases",
1438
+ "libc",
1439
+ "once_cell",
1440
+ "socket2",
1441
+ "tracing",
1442
+ "windows-sys 0.59.0",
1443
+ ]
1444
+
1445
+ [[package]]
1446
+ name = "quote"
1447
+ version = "1.0.38"
1448
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1449
+ checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
1450
+ dependencies = [
1451
+ "proc-macro2",
1452
+ ]
1453
+
1454
+ [[package]]
1455
+ name = "rand"
1456
+ version = "0.8.5"
1457
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1458
+ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
1459
+ dependencies = [
1460
+ "libc",
1461
+ "rand_chacha",
1462
+ "rand_core",
1463
+ ]
1464
+
1465
+ [[package]]
1466
+ name = "rand_chacha"
1467
+ version = "0.3.1"
1468
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1469
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1470
+ dependencies = [
1471
+ "ppv-lite86",
1472
+ "rand_core",
1473
+ ]
1474
+
1475
+ [[package]]
1476
+ name = "rand_core"
1477
+ version = "0.6.4"
1478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1479
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1480
+ dependencies = [
1481
+ "getrandom 0.2.15",
1482
+ ]
1483
+
1484
+ [[package]]
1485
+ name = "redox_users"
1486
+ version = "0.4.6"
1487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1488
+ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
1489
+ dependencies = [
1490
+ "getrandom 0.2.15",
1491
+ "libredox",
1492
+ "thiserror 1.0.69",
1493
+ ]
1494
+
1495
+ [[package]]
1496
+ name = "regex"
1497
+ version = "1.11.1"
1498
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1499
+ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
1500
+ dependencies = [
1501
+ "aho-corasick",
1502
+ "memchr",
1503
+ "regex-automata",
1504
+ "regex-syntax",
1505
+ ]
1506
+
1507
+ [[package]]
1508
+ name = "regex-automata"
1509
+ version = "0.4.9"
1510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1511
+ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
1512
+ dependencies = [
1513
+ "aho-corasick",
1514
+ "memchr",
1515
+ "regex-syntax",
1516
+ ]
1517
+
1518
+ [[package]]
1519
+ name = "regex-syntax"
1520
+ version = "0.8.5"
1521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1522
+ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
1523
+
1524
+ [[package]]
1525
+ name = "reqwest"
1526
+ version = "0.12.12"
1527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1528
+ checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da"
1529
+ dependencies = [
1530
+ "base64",
1531
+ "bytes",
1532
+ "encoding_rs",
1533
+ "futures-channel",
1534
+ "futures-core",
1535
+ "futures-util",
1536
+ "h2",
1537
+ "http",
1538
+ "http-body",
1539
+ "http-body-util",
1540
+ "hyper",
1541
+ "hyper-rustls",
1542
+ "hyper-tls",
1543
+ "hyper-util",
1544
+ "ipnet",
1545
+ "js-sys",
1546
+ "log",
1547
+ "mime",
1548
+ "native-tls",
1549
+ "once_cell",
1550
+ "percent-encoding",
1551
+ "pin-project-lite",
1552
+ "quinn",
1553
+ "rustls",
1554
+ "rustls-pemfile",
1555
+ "rustls-pki-types",
1556
+ "serde",
1557
+ "serde_json",
1558
+ "serde_urlencoded",
1559
+ "sync_wrapper",
1560
+ "system-configuration",
1561
+ "tokio",
1562
+ "tokio-native-tls",
1563
+ "tokio-rustls",
1564
+ "tower",
1565
+ "tower-service",
1566
+ "url",
1567
+ "wasm-bindgen",
1568
+ "wasm-bindgen-futures",
1569
+ "web-sys",
1570
+ "webpki-roots",
1571
+ "windows-registry",
1572
+ ]
1573
+
1574
+ [[package]]
1575
+ name = "ring"
1576
+ version = "0.17.8"
1577
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1578
+ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"
1579
+ dependencies = [
1580
+ "cc",
1581
+ "cfg-if",
1582
+ "getrandom 0.2.15",
1583
+ "libc",
1584
+ "spin",
1585
+ "untrusted",
1586
+ "windows-sys 0.52.0",
1587
+ ]
1588
+
1589
+ [[package]]
1590
+ name = "rustc-demangle"
1591
+ version = "0.1.24"
1592
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1593
+ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
1594
+
1595
+ [[package]]
1596
+ name = "rustc-hash"
1597
+ version = "2.1.0"
1598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1599
+ checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497"
1600
+
1601
+ [[package]]
1602
+ name = "rustix"
1603
+ version = "0.38.44"
1604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1605
+ checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
1606
+ dependencies = [
1607
+ "bitflags",
1608
+ "errno",
1609
+ "libc",
1610
+ "linux-raw-sys",
1611
+ "windows-sys 0.59.0",
1612
+ ]
1613
+
1614
+ [[package]]
1615
+ name = "rustls"
1616
+ version = "0.23.22"
1617
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1618
+ checksum = "9fb9263ab4eb695e42321db096e3b8fbd715a59b154d5c88d82db2175b681ba7"
1619
+ dependencies = [
1620
+ "once_cell",
1621
+ "ring",
1622
+ "rustls-pki-types",
1623
+ "rustls-webpki",
1624
+ "subtle",
1625
+ "zeroize",
1626
+ ]
1627
+
1628
+ [[package]]
1629
+ name = "rustls-pemfile"
1630
+ version = "2.2.0"
1631
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1632
+ checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
1633
+ dependencies = [
1634
+ "rustls-pki-types",
1635
+ ]
1636
+
1637
+ [[package]]
1638
+ name = "rustls-pki-types"
1639
+ version = "1.11.0"
1640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1641
+ checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c"
1642
+ dependencies = [
1643
+ "web-time",
1644
+ ]
1645
+
1646
+ [[package]]
1647
+ name = "rustls-webpki"
1648
+ version = "0.102.8"
1649
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1650
+ checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
1651
+ dependencies = [
1652
+ "ring",
1653
+ "rustls-pki-types",
1654
+ "untrusted",
1655
+ ]
1656
+
1657
+ [[package]]
1658
+ name = "rustversion"
1659
+ version = "1.0.19"
1660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1661
+ checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
1662
+
1663
+ [[package]]
1664
+ name = "ryu"
1665
+ version = "1.0.19"
1666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1667
+ checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd"
1668
+
1669
+ [[package]]
1670
+ name = "schannel"
1671
+ version = "0.1.27"
1672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1673
+ checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
1674
+ dependencies = [
1675
+ "windows-sys 0.59.0",
1676
+ ]
1677
+
1678
+ [[package]]
1679
+ name = "security-framework"
1680
+ version = "2.11.1"
1681
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1682
+ checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
1683
+ dependencies = [
1684
+ "bitflags",
1685
+ "core-foundation",
1686
+ "core-foundation-sys",
1687
+ "libc",
1688
+ "security-framework-sys",
1689
+ ]
1690
+
1691
+ [[package]]
1692
+ name = "security-framework-sys"
1693
+ version = "2.14.0"
1694
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1695
+ checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
1696
+ dependencies = [
1697
+ "core-foundation-sys",
1698
+ "libc",
1699
+ ]
1700
+
1701
+ [[package]]
1702
+ name = "serde"
1703
+ version = "1.0.217"
1704
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1705
+ checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
1706
+ dependencies = [
1707
+ "serde_derive",
1708
+ ]
1709
+
1710
+ [[package]]
1711
+ name = "serde_derive"
1712
+ version = "1.0.217"
1713
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1714
+ checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
1715
+ dependencies = [
1716
+ "proc-macro2",
1717
+ "quote",
1718
+ "syn",
1719
+ ]
1720
+
1721
+ [[package]]
1722
+ name = "serde_json"
1723
+ version = "1.0.138"
1724
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1725
+ checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949"
1726
+ dependencies = [
1727
+ "itoa",
1728
+ "memchr",
1729
+ "ryu",
1730
+ "serde",
1731
+ ]
1732
+
1733
+ [[package]]
1734
+ name = "serde_urlencoded"
1735
+ version = "0.7.1"
1736
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1737
+ checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1738
+ dependencies = [
1739
+ "form_urlencoded",
1740
+ "itoa",
1741
+ "ryu",
1742
+ "serde",
1743
+ ]
1744
+
1745
+ [[package]]
1746
+ name = "shlex"
1747
+ version = "1.3.0"
1748
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1749
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1750
+
1751
+ [[package]]
1752
+ name = "slab"
1753
+ version = "0.4.9"
1754
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1755
+ checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1756
+ dependencies = [
1757
+ "autocfg",
1758
+ ]
1759
+
1760
+ [[package]]
1761
+ name = "smallvec"
1762
+ version = "1.13.2"
1763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1764
+ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
1765
+
1766
+ [[package]]
1767
+ name = "socket2"
1768
+ version = "0.5.8"
1769
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1770
+ checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8"
1771
+ dependencies = [
1772
+ "libc",
1773
+ "windows-sys 0.52.0",
1774
+ ]
1775
+
1776
+ [[package]]
1777
+ name = "spin"
1778
+ version = "0.9.8"
1779
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1780
+ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
1781
+
1782
+ [[package]]
1783
+ name = "stable_deref_trait"
1784
+ version = "1.2.0"
1785
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1786
+ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
1787
+
1788
+ [[package]]
1789
+ name = "strsim"
1790
+ version = "0.11.1"
1791
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1792
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1793
+
1794
+ [[package]]
1795
+ name = "subtle"
1796
+ version = "2.6.1"
1797
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1798
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
1799
+
1800
+ [[package]]
1801
+ name = "syn"
1802
+ version = "2.0.98"
1803
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1804
+ checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
1805
+ dependencies = [
1806
+ "proc-macro2",
1807
+ "quote",
1808
+ "unicode-ident",
1809
+ ]
1810
+
1811
+ [[package]]
1812
+ name = "sync_wrapper"
1813
+ version = "1.0.2"
1814
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1815
+ checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1816
+ dependencies = [
1817
+ "futures-core",
1818
+ ]
1819
+
1820
+ [[package]]
1821
+ name = "synstructure"
1822
+ version = "0.13.1"
1823
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1824
+ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
1825
+ dependencies = [
1826
+ "proc-macro2",
1827
+ "quote",
1828
+ "syn",
1829
+ ]
1830
+
1831
+ [[package]]
1832
+ name = "system-configuration"
1833
+ version = "0.6.1"
1834
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1835
+ checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
1836
+ dependencies = [
1837
+ "bitflags",
1838
+ "core-foundation",
1839
+ "system-configuration-sys",
1840
+ ]
1841
+
1842
+ [[package]]
1843
+ name = "system-configuration-sys"
1844
+ version = "0.6.0"
1845
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1846
+ checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1847
+ dependencies = [
1848
+ "core-foundation-sys",
1849
+ "libc",
1850
+ ]
1851
+
1852
+ [[package]]
1853
+ name = "tempfile"
1854
+ version = "3.16.0"
1855
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1856
+ checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91"
1857
+ dependencies = [
1858
+ "cfg-if",
1859
+ "fastrand",
1860
+ "getrandom 0.3.1",
1861
+ "once_cell",
1862
+ "rustix",
1863
+ "windows-sys 0.59.0",
1864
+ ]
1865
+
1866
+ [[package]]
1867
+ name = "term"
1868
+ version = "0.7.0"
1869
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1870
+ checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f"
1871
+ dependencies = [
1872
+ "dirs-next",
1873
+ "rustversion",
1874
+ "winapi",
1875
+ ]
1876
+
1877
+ [[package]]
1878
+ name = "termcolor"
1879
+ version = "1.4.1"
1880
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1881
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
1882
+ dependencies = [
1883
+ "winapi-util",
1884
+ ]
1885
+
1886
+ [[package]]
1887
+ name = "thiserror"
1888
+ version = "1.0.69"
1889
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1890
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
1891
+ dependencies = [
1892
+ "thiserror-impl 1.0.69",
1893
+ ]
1894
+
1895
+ [[package]]
1896
+ name = "thiserror"
1897
+ version = "2.0.11"
1898
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1899
+ checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc"
1900
+ dependencies = [
1901
+ "thiserror-impl 2.0.11",
1902
+ ]
1903
+
1904
+ [[package]]
1905
+ name = "thiserror-impl"
1906
+ version = "1.0.69"
1907
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1908
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
1909
+ dependencies = [
1910
+ "proc-macro2",
1911
+ "quote",
1912
+ "syn",
1913
+ ]
1914
+
1915
+ [[package]]
1916
+ name = "thiserror-impl"
1917
+ version = "2.0.11"
1918
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1919
+ checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2"
1920
+ dependencies = [
1921
+ "proc-macro2",
1922
+ "quote",
1923
+ "syn",
1924
+ ]
1925
+
1926
+ [[package]]
1927
+ name = "tinystr"
1928
+ version = "0.7.6"
1929
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1930
+ checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
1931
+ dependencies = [
1932
+ "displaydoc",
1933
+ "zerovec",
1934
+ ]
1935
+
1936
+ [[package]]
1937
+ name = "tinyvec"
1938
+ version = "1.8.1"
1939
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1940
+ checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8"
1941
+ dependencies = [
1942
+ "tinyvec_macros",
1943
+ ]
1944
+
1945
+ [[package]]
1946
+ name = "tinyvec_macros"
1947
+ version = "0.1.1"
1948
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1949
+ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
1950
+
1951
+ [[package]]
1952
+ name = "tokio"
1953
+ version = "1.44.2"
1954
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1955
+ checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48"
1956
+ dependencies = [
1957
+ "backtrace",
1958
+ "bytes",
1959
+ "libc",
1960
+ "mio",
1961
+ "pin-project-lite",
1962
+ "socket2",
1963
+ "windows-sys 0.52.0",
1964
+ ]
1965
+
1966
+ [[package]]
1967
+ name = "tokio-native-tls"
1968
+ version = "0.3.1"
1969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1970
+ checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
1971
+ dependencies = [
1972
+ "native-tls",
1973
+ "tokio",
1974
+ ]
1975
+
1976
+ [[package]]
1977
+ name = "tokio-rustls"
1978
+ version = "0.26.1"
1979
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1980
+ checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37"
1981
+ dependencies = [
1982
+ "rustls",
1983
+ "tokio",
1984
+ ]
1985
+
1986
+ [[package]]
1987
+ name = "tokio-util"
1988
+ version = "0.7.13"
1989
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1990
+ checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078"
1991
+ dependencies = [
1992
+ "bytes",
1993
+ "futures-core",
1994
+ "futures-sink",
1995
+ "pin-project-lite",
1996
+ "tokio",
1997
+ ]
1998
+
1999
+ [[package]]
2000
+ name = "tower"
2001
+ version = "0.5.2"
2002
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2003
+ checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
2004
+ dependencies = [
2005
+ "futures-core",
2006
+ "futures-util",
2007
+ "pin-project-lite",
2008
+ "sync_wrapper",
2009
+ "tokio",
2010
+ "tower-layer",
2011
+ "tower-service",
2012
+ ]
2013
+
2014
+ [[package]]
2015
+ name = "tower-layer"
2016
+ version = "0.3.3"
2017
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2018
+ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2019
+
2020
+ [[package]]
2021
+ name = "tower-service"
2022
+ version = "0.3.3"
2023
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2024
+ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2025
+
2026
+ [[package]]
2027
+ name = "tracing"
2028
+ version = "0.1.41"
2029
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2030
+ checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
2031
+ dependencies = [
2032
+ "pin-project-lite",
2033
+ "tracing-core",
2034
+ ]
2035
+
2036
+ [[package]]
2037
+ name = "tracing-core"
2038
+ version = "0.1.33"
2039
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2040
+ checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
2041
+ dependencies = [
2042
+ "once_cell",
2043
+ ]
2044
+
2045
+ [[package]]
2046
+ name = "try-lock"
2047
+ version = "0.2.5"
2048
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2049
+ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2050
+
2051
+ [[package]]
2052
+ name = "unicode-ident"
2053
+ version = "1.0.16"
2054
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2055
+ checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034"
2056
+
2057
+ [[package]]
2058
+ name = "unicode-width"
2059
+ version = "0.1.14"
2060
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2061
+ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
2062
+
2063
+ [[package]]
2064
+ name = "untrusted"
2065
+ version = "0.9.0"
2066
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2067
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2068
+
2069
+ [[package]]
2070
+ name = "url"
2071
+ version = "2.5.4"
2072
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2073
+ checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
2074
+ dependencies = [
2075
+ "form_urlencoded",
2076
+ "idna",
2077
+ "percent-encoding",
2078
+ ]
2079
+
2080
+ [[package]]
2081
+ name = "utf16_iter"
2082
+ version = "1.0.5"
2083
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2084
+ checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"
2085
+
2086
+ [[package]]
2087
+ name = "utf8_iter"
2088
+ version = "1.0.4"
2089
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2090
+ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2091
+
2092
+ [[package]]
2093
+ name = "utf8parse"
2094
+ version = "0.2.2"
2095
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2096
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2097
+
2098
+ [[package]]
2099
+ name = "vcpkg"
2100
+ version = "0.2.15"
2101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2102
+ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
2103
+
2104
+ [[package]]
2105
+ name = "want"
2106
+ version = "0.3.1"
2107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2108
+ checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2109
+ dependencies = [
2110
+ "try-lock",
2111
+ ]
2112
+
2113
+ [[package]]
2114
+ name = "wasi"
2115
+ version = "0.11.0+wasi-snapshot-preview1"
2116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2117
+ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
2118
+
2119
+ [[package]]
2120
+ name = "wasi"
2121
+ version = "0.13.3+wasi-0.2.2"
2122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2123
+ checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
2124
+ dependencies = [
2125
+ "wit-bindgen-rt",
2126
+ ]
2127
+
2128
+ [[package]]
2129
+ name = "wasm-bindgen"
2130
+ version = "0.2.100"
2131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2132
+ checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
2133
+ dependencies = [
2134
+ "cfg-if",
2135
+ "once_cell",
2136
+ "rustversion",
2137
+ "wasm-bindgen-macro",
2138
+ ]
2139
+
2140
+ [[package]]
2141
+ name = "wasm-bindgen-backend"
2142
+ version = "0.2.100"
2143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2144
+ checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
2145
+ dependencies = [
2146
+ "bumpalo",
2147
+ "log",
2148
+ "proc-macro2",
2149
+ "quote",
2150
+ "syn",
2151
+ "wasm-bindgen-shared",
2152
+ ]
2153
+
2154
+ [[package]]
2155
+ name = "wasm-bindgen-futures"
2156
+ version = "0.4.50"
2157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2158
+ checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
2159
+ dependencies = [
2160
+ "cfg-if",
2161
+ "js-sys",
2162
+ "once_cell",
2163
+ "wasm-bindgen",
2164
+ "web-sys",
2165
+ ]
2166
+
2167
+ [[package]]
2168
+ name = "wasm-bindgen-macro"
2169
+ version = "0.2.100"
2170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2171
+ checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
2172
+ dependencies = [
2173
+ "quote",
2174
+ "wasm-bindgen-macro-support",
2175
+ ]
2176
+
2177
+ [[package]]
2178
+ name = "wasm-bindgen-macro-support"
2179
+ version = "0.2.100"
2180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2181
+ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
2182
+ dependencies = [
2183
+ "proc-macro2",
2184
+ "quote",
2185
+ "syn",
2186
+ "wasm-bindgen-backend",
2187
+ "wasm-bindgen-shared",
2188
+ ]
2189
+
2190
+ [[package]]
2191
+ name = "wasm-bindgen-shared"
2192
+ version = "0.2.100"
2193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2194
+ checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
2195
+ dependencies = [
2196
+ "unicode-ident",
2197
+ ]
2198
+
2199
+ [[package]]
2200
+ name = "web"
2201
+ version = "0.1.0"
2202
+ dependencies = [
2203
+ "graphql_client",
2204
+ "js-sys",
2205
+ "reqwest",
2206
+ "wasm-bindgen",
2207
+ "wasm-bindgen-futures",
2208
+ "web-sys",
2209
+ ]
2210
+
2211
+ [[package]]
2212
+ name = "web-sys"
2213
+ version = "0.3.77"
2214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2215
+ checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
2216
+ dependencies = [
2217
+ "js-sys",
2218
+ "wasm-bindgen",
2219
+ ]
2220
+
2221
+ [[package]]
2222
+ name = "web-time"
2223
+ version = "1.1.0"
2224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2225
+ checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
2226
+ dependencies = [
2227
+ "js-sys",
2228
+ "wasm-bindgen",
2229
+ ]
2230
+
2231
+ [[package]]
2232
+ name = "webpki-roots"
2233
+ version = "0.26.8"
2234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2235
+ checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9"
2236
+ dependencies = [
2237
+ "rustls-pki-types",
2238
+ ]
2239
+
2240
+ [[package]]
2241
+ name = "winapi"
2242
+ version = "0.3.9"
2243
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2244
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
2245
+ dependencies = [
2246
+ "winapi-i686-pc-windows-gnu",
2247
+ "winapi-x86_64-pc-windows-gnu",
2248
+ ]
2249
+
2250
+ [[package]]
2251
+ name = "winapi-i686-pc-windows-gnu"
2252
+ version = "0.4.0"
2253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2254
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2255
+
2256
+ [[package]]
2257
+ name = "winapi-util"
2258
+ version = "0.1.9"
2259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2260
+ checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
2261
+ dependencies = [
2262
+ "windows-sys 0.59.0",
2263
+ ]
2264
+
2265
+ [[package]]
2266
+ name = "winapi-x86_64-pc-windows-gnu"
2267
+ version = "0.4.0"
2268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2269
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2270
+
2271
+ [[package]]
2272
+ name = "windows-registry"
2273
+ version = "0.2.0"
2274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2275
+ checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
2276
+ dependencies = [
2277
+ "windows-result",
2278
+ "windows-strings",
2279
+ "windows-targets",
2280
+ ]
2281
+
2282
+ [[package]]
2283
+ name = "windows-result"
2284
+ version = "0.2.0"
2285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2286
+ checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
2287
+ dependencies = [
2288
+ "windows-targets",
2289
+ ]
2290
+
2291
+ [[package]]
2292
+ name = "windows-strings"
2293
+ version = "0.1.0"
2294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2295
+ checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
2296
+ dependencies = [
2297
+ "windows-result",
2298
+ "windows-targets",
2299
+ ]
2300
+
2301
+ [[package]]
2302
+ name = "windows-sys"
2303
+ version = "0.52.0"
2304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2305
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2306
+ dependencies = [
2307
+ "windows-targets",
2308
+ ]
2309
+
2310
+ [[package]]
2311
+ name = "windows-sys"
2312
+ version = "0.59.0"
2313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2314
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
2315
+ dependencies = [
2316
+ "windows-targets",
2317
+ ]
2318
+
2319
+ [[package]]
2320
+ name = "windows-targets"
2321
+ version = "0.52.6"
2322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2323
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
2324
+ dependencies = [
2325
+ "windows_aarch64_gnullvm",
2326
+ "windows_aarch64_msvc",
2327
+ "windows_i686_gnu",
2328
+ "windows_i686_gnullvm",
2329
+ "windows_i686_msvc",
2330
+ "windows_x86_64_gnu",
2331
+ "windows_x86_64_gnullvm",
2332
+ "windows_x86_64_msvc",
2333
+ ]
2334
+
2335
+ [[package]]
2336
+ name = "windows_aarch64_gnullvm"
2337
+ version = "0.52.6"
2338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2339
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
2340
+
2341
+ [[package]]
2342
+ name = "windows_aarch64_msvc"
2343
+ version = "0.52.6"
2344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2345
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
2346
+
2347
+ [[package]]
2348
+ name = "windows_i686_gnu"
2349
+ version = "0.52.6"
2350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2351
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
2352
+
2353
+ [[package]]
2354
+ name = "windows_i686_gnullvm"
2355
+ version = "0.52.6"
2356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2357
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
2358
+
2359
+ [[package]]
2360
+ name = "windows_i686_msvc"
2361
+ version = "0.52.6"
2362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2363
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
2364
+
2365
+ [[package]]
2366
+ name = "windows_x86_64_gnu"
2367
+ version = "0.52.6"
2368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2369
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
2370
+
2371
+ [[package]]
2372
+ name = "windows_x86_64_gnullvm"
2373
+ version = "0.52.6"
2374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2375
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
2376
+
2377
+ [[package]]
2378
+ name = "windows_x86_64_msvc"
2379
+ version = "0.52.6"
2380
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2381
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
2382
+
2383
+ [[package]]
2384
+ name = "wit-bindgen-rt"
2385
+ version = "0.33.0"
2386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2387
+ checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
2388
+ dependencies = [
2389
+ "bitflags",
2390
+ ]
2391
+
2392
+ [[package]]
2393
+ name = "write16"
2394
+ version = "1.0.0"
2395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2396
+ checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
2397
+
2398
+ [[package]]
2399
+ name = "writeable"
2400
+ version = "0.5.5"
2401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2402
+ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
2403
+
2404
+ [[package]]
2405
+ name = "yoke"
2406
+ version = "0.7.5"
2407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2408
+ checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40"
2409
+ dependencies = [
2410
+ "serde",
2411
+ "stable_deref_trait",
2412
+ "yoke-derive",
2413
+ "zerofrom",
2414
+ ]
2415
+
2416
+ [[package]]
2417
+ name = "yoke-derive"
2418
+ version = "0.7.5"
2419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2420
+ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
2421
+ dependencies = [
2422
+ "proc-macro2",
2423
+ "quote",
2424
+ "syn",
2425
+ "synstructure",
2426
+ ]
2427
+
2428
+ [[package]]
2429
+ name = "zerocopy"
2430
+ version = "0.7.35"
2431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2432
+ checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
2433
+ dependencies = [
2434
+ "byteorder",
2435
+ "zerocopy-derive",
2436
+ ]
2437
+
2438
+ [[package]]
2439
+ name = "zerocopy-derive"
2440
+ version = "0.7.35"
2441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2442
+ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
2443
+ dependencies = [
2444
+ "proc-macro2",
2445
+ "quote",
2446
+ "syn",
2447
+ ]
2448
+
2449
+ [[package]]
2450
+ name = "zerofrom"
2451
+ version = "0.1.5"
2452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2453
+ checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e"
2454
+ dependencies = [
2455
+ "zerofrom-derive",
2456
+ ]
2457
+
2458
+ [[package]]
2459
+ name = "zerofrom-derive"
2460
+ version = "0.1.5"
2461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2462
+ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
2463
+ dependencies = [
2464
+ "proc-macro2",
2465
+ "quote",
2466
+ "syn",
2467
+ "synstructure",
2468
+ ]
2469
+
2470
+ [[package]]
2471
+ name = "zeroize"
2472
+ version = "1.8.1"
2473
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2474
+ checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
2475
+
2476
+ [[package]]
2477
+ name = "zerovec"
2478
+ version = "0.10.4"
2479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2480
+ checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"
2481
+ dependencies = [
2482
+ "yoke",
2483
+ "zerofrom",
2484
+ "zerovec-derive",
2485
+ ]
2486
+
2487
+ [[package]]
2488
+ name = "zerovec-derive"
2489
+ version = "0.10.3"
2490
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2491
+ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
2492
+ dependencies = [
2493
+ "proc-macro2",
2494
+ "quote",
2495
+ "syn",
2496
+ ]
2497
+ PB_LOCK
2498
+
2499
+ # Sanity check: the generated workspace root manifest must exist.
2500
+ if [ ! -f "$PB_DIR/ws/Cargo.toml" ]; then
2501
+ fail
2502
+ fi
2503
+
2504
+ # Populate the registry cache with the exact locked versions. This only
2505
+ # resolves and downloads dependency sources; it compiles nothing. --locked
2506
+ # keeps the pinned (including yanked) versions selected by the embedded lock.
2507
+ if ! cargo fetch --manifest-path "$PB_DIR/ws/Cargo.toml" --locked; then
2508
+ fail
2509
+ fi
2510
+
2511
+ # The registry cache is now populated with the exact locked versions, so the
2512
+ # offline build stage can run fully offline without touching the network.
graphql-rust--graphql-client.91f/environment/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77b737bd86dde2a5efea8fe47c61833caf238245c364525ea688bd11abdc9448
3
+ size 9950336
graphql-rust--graphql-client.91f/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
graphql-rust--graphql-client.91f/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ source /tmp/programgym-download.sh
9
+ set +a
10
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
11
+ import os
12
+ import shlex
13
+
14
+ ignored = {
15
+ "ALL_PROXY",
16
+ "HTTP_PROXY",
17
+ "HTTPS_PROXY",
18
+ "NO_PROXY",
19
+ "OLDPWD",
20
+ "PIP_PROXY",
21
+ "PWD",
22
+ "SHLVL",
23
+ "_",
24
+ "all_proxy",
25
+ "http_proxy",
26
+ "https_proxy",
27
+ "no_proxy",
28
+ "pip_proxy",
29
+ }
30
+ for key in sorted(os.environ):
31
+ if key in ignored or key.startswith("BASH_FUNC_"):
32
+ continue
33
+ value = os.environ[key]
34
+ if "\n" in value:
35
+ continue
36
+ print(f"export {key}={shlex.quote(value)}")
37
+ PY
graphql-rust--graphql-client.91f/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5b599a70d2cceff11653b9407356d85c243b59ccb6d709345ebba87cd2cbac
3
+ size 10087
graphql-rust--graphql-client.91f/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
graphql-rust--graphql-client.91f/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
graphql-rust--graphql-client.91f/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/graphql-rust--graphql-client.91f"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for graphql-rust/graphql-client"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "graphql-rust__graphql-client.91fda06"
32
+ repository = "graphql-rust/graphql-client"
33
+ commit = "91fda064bda675d17dd6eb2919fcfbb2a8315036"
34
+ language = "rust"
35
+ difficulty = "easy"
36
+ difficulty_score = 1.808953299155911
37
+ test_branches = 4
38
+ test_count = 376
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"
graphql-rust--graphql-client.91f/tests/Dockerfile ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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_NPM_REGISTRY="https://registry.npmjs.org/"
5
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
6
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
7
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
8
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
9
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
10
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
11
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
12
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
13
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
14
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
15
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
16
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
17
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
18
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
19
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
20
+ ENV DEBIAN_FRONTEND=noninteractive
21
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
22
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
23
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
24
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
25
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
26
+ ENV GOSUMDB=sum.golang.google.cn
27
+ ENV GOTOOLCHAIN=auto
28
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
29
+ ENV npm_config_cache=/workspace/.cache/npm
30
+ ENV HOME=/workspace
31
+ ENV XDG_CACHE_HOME=/workspace/.cache
32
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
33
+ ENV PYTHONUSERBASE=/workspace/.local
34
+ ENV CARGO_HOME=/usr/local/cargo
35
+ ENV RUSTUP_HOME=/usr/local/rustup
36
+ ENV RUSTUP_TOOLCHAIN=1.97.1
37
+ ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
38
+ ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
39
+ ENV PAGER=cat
40
+ ENV MANPAGER=cat
41
+ ENV LESS=-R
42
+ ENV TQDM_DISABLE=1
43
+ RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
44
+ RUN rustup component add llvm-tools-preview --toolchain 1.97.1
45
+ RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
46
+ RUN rustc --version && cargo --version && rustup show active-toolchain
47
+ WORKDIR /workspace
48
+ ADD workspace.tar.gz /workspace/
49
+ COPY executable /workspace/executable
50
+ COPY download.sh /tmp/programgym-download.sh
51
+ RUN chmod 755 /tmp/programgym-download.sh
52
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
53
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
54
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
55
+ && rm -f /tmp/programgym-download.sh \
56
+ && rm -f /tmp/harbor_prepare_download_env.sh
57
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
58
+ RUN chmod 111 /workspace/executable
59
+ WORKDIR /workspace
60
+ # Harbor uses tests/ as the separate verifier build context. Start with the
61
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
62
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
63
+ && mkdir -p /workspace /tests
64
+
65
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
66
+ # Installing a newer pytest alone leaves that apt package importable and creates
67
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
68
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
69
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
70
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
71
+ RUN python3 -m pip install --break-system-packages \
72
+ --no-cache-dir --disable-pip-version-check \
73
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
74
+
75
+ COPY test.sh /tests/test.sh
76
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
77
+ COPY programgym_task.json /tests/programgym_task.json
78
+ COPY blobs/ /tests/blobs/
79
+ RUN chmod +x /tests/test.sh
graphql-rust--graphql-client.91f/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:4b22475dbdf86cdbce6ac5dacf7873e4837f7a3259736d340db6a2a5b2337e23
3
+ size 19053
graphql-rust--graphql-client.91f/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:01501c324309a8459621fe2291bd8c1597113563763789c997aa16b1c09298fa
3
+ size 27757
graphql-rust--graphql-client.91f/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:e33ad67d8671c98700659cf9d4b3b57565a904e7002831c964677df36300fcbc
3
+ size 20710
graphql-rust--graphql-client.91f/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:ff0aefa11fbf07a874c2f6b5e88b6aed6b7edeb59ae125fec7b010377c144f27
3
+ size 58533
graphql-rust--graphql-client.91f/tests/docker-compose.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
8
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
9
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
10
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
11
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
graphql-rust--graphql-client.91f/tests/download.sh ADDED
@@ -0,0 +1,2512 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # download.sh - ProgramGym network-stage dependency prefetch for graphql-client.
4
+ #
5
+ # Sources via `source /source_ro/download.sh` from the repo root, but is a
6
+ # standalone single file: it reads NO repository file and performs NO compile,
7
+ # link, test, package, or install step. It only populates the cargo registry
8
+ # cache (CARGO_HOME) with the exact crate versions pinned by the repository's
9
+ # Cargo.lock so the offline build stage can compile with no network.
10
+ #
11
+ # Why a replica workspace with a generated lock? Cargo.lock pins `spin` at
12
+ # 0.9.8, a version that is yanked on crates.io. A fresh dependency resolution
13
+ # refuses to select a yanked version unless it is already present in the
14
+ # provided lockfile, so we reproduce the exact workspace (member manifests and
15
+ # the full Cargo.lock, both embedded verbatim below) in a throw-away directory
16
+ # and run one dependency-prefetch command against that generated workspace with
17
+ # --locked. --locked accepts the yanked pin and pulls every pinned version into
18
+ # CARGO_HOME deterministically.
19
+
20
+ set -u
21
+
22
+ fail() {
23
+ if [ "${BASH_SOURCE[0]}" != "$0" ]; then
24
+ return 1
25
+ else
26
+ exit 1
27
+ fi
28
+ }
29
+
30
+ # The registry cache must live at $HOME/.cargo so the offline build stage
31
+ # (run later as the same user with the same HOME) can resolve every dependency
32
+ # from the populated cache.
33
+ export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
34
+
35
+ # A writable scratch area outside the (read-only /source_ro) repository tree.
36
+ PB_DIR="${PB_DIR:-$HOME/.pb-fetch-graphql-client}"
37
+ rm -rf "$PB_DIR"
38
+ mkdir -p "$PB_DIR"/ws/graphql_client/src
39
+ mkdir -p "$PB_DIR"/ws/graphql_client_cli/src
40
+ mkdir -p "$PB_DIR"/ws/graphql_client_codegen/src
41
+ mkdir -p "$PB_DIR"/ws/graphql-introspection-query/src
42
+ mkdir -p "$PB_DIR"/ws/graphql_query_derive/src
43
+ mkdir -p "$PB_DIR"/ws/examples/github
44
+ mkdir -p "$PB_DIR"/ws/examples/hasura
45
+ mkdir -p "$PB_DIR"/ws/examples/web/src
46
+ cat > "$PB_DIR/ws/Cargo.toml" <<'PB_WS_ROOT'
47
+ [workspace]
48
+ resolver = "2"
49
+ members = [
50
+ "graphql_client",
51
+ "graphql_client_cli",
52
+ "graphql_client_codegen",
53
+ "graphql-introspection-query",
54
+ "graphql_query_derive",
55
+
56
+ # Example crates.
57
+ "examples/*",
58
+ ]
59
+
60
+ [workspace.package]
61
+ version = "0.16.0"
62
+ rust-version = "1.66.0"
63
+ PB_WS_ROOT
64
+
65
+ cat > "$PB_DIR/ws/graphql_client/Cargo.toml" <<'PB_MANIFEST'
66
+ [package]
67
+ name = "graphql_client"
68
+ version.workspace = true
69
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
70
+ description = "Typed GraphQL requests and responses"
71
+ repository = "https://github.com/graphql-rust/graphql-client"
72
+ license = "Apache-2.0 OR MIT"
73
+ keywords = ["graphql", "api", "web", "webassembly", "wasm"]
74
+ categories = ["network-programming", "web-programming", "wasm"]
75
+ edition = "2018"
76
+ homepage = "https://github.com/graphql-rust/graphql-client"
77
+ readme = "../README.md"
78
+ rust-version.workspace = true
79
+
80
+ [package.metadata.docs.rs]
81
+ features = ["reqwest"]
82
+
83
+ [dependencies]
84
+ serde = { version = "1.0.78", features = ["derive"] }
85
+ serde_json = "1.0.50"
86
+
87
+ # Optional dependencies
88
+ graphql_query_derive = { path = "../graphql_query_derive", version = "0.16.0", optional = true }
89
+ reqwest-crate = { package = "reqwest", version = ">=0.11, <=0.12", features = ["json"], default-features = false, optional = true }
90
+
91
+ [features]
92
+ default = ["graphql_query_derive"]
93
+ reqwest = ["reqwest-crate", "reqwest-crate/default-tls"]
94
+ reqwest-rustls = ["reqwest-crate", "reqwest-crate/rustls-tls"]
95
+ reqwest-blocking = ["reqwest-crate/blocking"]
96
+ PB_MANIFEST
97
+
98
+ cat > "$PB_DIR/ws/graphql_client_cli/Cargo.toml" <<'PB_MANIFEST'
99
+ [package]
100
+ name = "graphql_client_cli"
101
+ description = "The CLI for graphql-client"
102
+ version.workspace = true
103
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
104
+ license = "Apache-2.0 OR MIT"
105
+ repository = "https://github.com/graphql-rust/graphql-client"
106
+ edition = "2018"
107
+
108
+ [[bin]]
109
+ name = "graphql-client"
110
+ path = "src/main.rs"
111
+
112
+ [dependencies]
113
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
114
+ graphql_client = { version = "0.16.0", path = "../graphql_client", default-features = false, features = ["graphql_query_derive", "reqwest-blocking"] }
115
+ graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.16.0" }
116
+ clap = { version = "^4.0", features = ["derive"] }
117
+ serde = { version = "^1.0", features = ["derive"] }
118
+ serde_json = "^1.0"
119
+ log = "^0.4"
120
+ env_logger = { version = "0.10.2", features = ["color"] }
121
+ syn = { version = "^2.0", features = ["full"] }
122
+ anstyle = "1.0.10"
123
+
124
+ [features]
125
+ default = []
126
+ PB_MANIFEST
127
+
128
+ cat > "$PB_DIR/ws/graphql_client_codegen/Cargo.toml" <<'PB_MANIFEST'
129
+ [package]
130
+ name = "graphql_client_codegen"
131
+ version.workspace = true
132
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
133
+ description = "Utility crate for graphql_client"
134
+ license = "Apache-2.0 OR MIT"
135
+ repository = "https://github.com/graphql-rust/graphql-client"
136
+ edition = "2018"
137
+
138
+ [dependencies]
139
+ graphql-introspection-query = { version = "0.3.0", path = "../graphql-introspection-query" }
140
+ graphql-parser = "0.4"
141
+ heck = ">=0.4, <=0.5"
142
+ proc-macro2 = { version = "^1.0", features = [] }
143
+ quote = "^1.0"
144
+ serde_json = "1.0"
145
+ serde = { version = "^1.0", features = ["derive"] }
146
+ syn = { version = "^2.0", features = [ "full" ] }
147
+ PB_MANIFEST
148
+
149
+ cat > "$PB_DIR/ws/graphql-introspection-query/Cargo.toml" <<'PB_MANIFEST'
150
+ [package]
151
+ name = "graphql-introspection-query"
152
+ version = "0.3.0"
153
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
154
+ edition = "2018"
155
+ keywords = ["graphql", "api", "web"]
156
+ categories = ["web-programming"]
157
+ license = "Apache-2.0 OR MIT"
158
+ repository = "https://github.com/graphql-rust/graphql-client"
159
+ description = "GraphQL introspection query and response types."
160
+
161
+ # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
162
+
163
+ [dependencies]
164
+ serde = { version = "1.0", features = ["derive"] }
165
+ PB_MANIFEST
166
+
167
+ cat > "$PB_DIR/ws/graphql_query_derive/Cargo.toml" <<'PB_MANIFEST'
168
+ [package]
169
+ name = "graphql_query_derive"
170
+ version.workspace = true
171
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
172
+ description = "Utility crate for graphql_client"
173
+ license = "Apache-2.0 OR MIT"
174
+ repository = "https://github.com/graphql-rust/graphql-client"
175
+ edition = "2018"
176
+
177
+ [lib]
178
+ proc-macro = true
179
+
180
+ [dependencies]
181
+ syn = { version = "^2.0", features = ["extra-traits"] }
182
+ proc-macro2 = { version = "^1.0", features = [] }
183
+ graphql_client_codegen = { path = "../graphql_client_codegen/", version = "0.16.0" }
184
+ PB_MANIFEST
185
+
186
+ cat > "$PB_DIR/ws/examples/github/Cargo.toml" <<'PB_MANIFEST'
187
+ [package]
188
+ name = "graphql_query_github_example"
189
+ version = "0.1.0"
190
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
191
+ edition = "2018"
192
+ publish = false
193
+
194
+ [dev-dependencies]
195
+ anyhow = "1.0"
196
+ graphql_client = { path = "../../graphql_client", features = ["reqwest-blocking"] }
197
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
198
+ prettytable-rs = "^0.10.0"
199
+ clap = { version = "^4.0", features = ["derive"] }
200
+ log = "^0.4"
201
+ env_logger = "0.10.2"
202
+ PB_MANIFEST
203
+
204
+ cat > "$PB_DIR/ws/examples/hasura/Cargo.toml" <<'PB_MANIFEST'
205
+ [package]
206
+ name = "graphql_query_hasura_example"
207
+ version = "0.1.0"
208
+ authors = ["Mark Catley <mark@catley.net.nz>"]
209
+ edition = "2018"
210
+ publish = false
211
+
212
+ [dev-dependencies]
213
+ anyhow = "1.0"
214
+ graphql_client = { path = "../../graphql_client", features = ["reqwest-blocking"] }
215
+ serde_json = "1.0"
216
+ reqwest = { version = "0.12", features = ["json", "blocking"] }
217
+ prettytable-rs = "0.10.0"
218
+ log = "0.4.3"
219
+ env_logger = "0.10.2"
220
+ PB_MANIFEST
221
+
222
+ cat > "$PB_DIR/ws/examples/web/Cargo.toml" <<'PB_MANIFEST'
223
+ [package]
224
+ name = "web"
225
+ version = "0.1.0"
226
+ authors = ["Tom Houlé <tom@tomhoule.com>"]
227
+ edition = "2018"
228
+ publish = false
229
+
230
+ [lib]
231
+ crate-type = ["cdylib", "rlib"]
232
+
233
+ [dependencies]
234
+ graphql_client = { path = "../../graphql_client", features = ["reqwest"] }
235
+ wasm-bindgen = "^0.2"
236
+ js-sys = "0.3.6"
237
+ wasm-bindgen-futures = "0.4.18"
238
+ reqwest = "0.12"
239
+
240
+ [dependencies.web-sys]
241
+ version = "0.3.6"
242
+ features = [
243
+ "console",
244
+ "Document",
245
+ "Element",
246
+ "EventTarget",
247
+ "Node",
248
+ "HtmlBodyElement",
249
+ "HtmlDocument",
250
+ "HtmlElement",
251
+ "Window",
252
+ ]
253
+ PB_MANIFEST
254
+
255
+ # Empty stub source files so that each generated workspace member has a target
256
+ # and the workspace resolves. None of these stubs are ever compiled; the
257
+ # dependency-prefetch stage only downloads dependency sources.
258
+
259
+ cat > "$PB_DIR/ws/graphql_client/src/lib.rs" <<'PB_STUB'
260
+ #[allow(dead_code)]
261
+ pub fn _pb_stub_gc() {}
262
+ PB_STUB
263
+
264
+ cat > "$PB_DIR/ws/graphql_client_cli/src/main.rs" <<'PB_STUB'
265
+ fn main() {}
266
+ PB_STUB
267
+
268
+ cat > "$PB_DIR/ws/graphql_client_codegen/src/lib.rs" <<'PB_STUB'
269
+ #[allow(dead_code)]
270
+ pub fn _pb_stub_gcc() {}
271
+ PB_STUB
272
+
273
+ cat > "$PB_DIR/ws/graphql-introspection-query/src/lib.rs" <<'PB_STUB'
274
+ #[allow(dead_code)]
275
+ pub fn _pb_stub_gqi() {}
276
+ PB_STUB
277
+
278
+ cat > "$PB_DIR/ws/graphql_query_derive/src/lib.rs" <<'PB_STUB'
279
+ #[allow(dead_code)]
280
+ pub fn _pb_stub_gqd() {}
281
+ PB_STUB
282
+
283
+ # The example crates reference example files inside their source trees; generate
284
+ # minimal stubs so the workspaces resolve. They are never compiled.
285
+
286
+ mkdir -p "$PB_DIR/ws/examples/github/examples"
287
+ cat > "$PB_DIR/ws/examples/github/examples/github.rs" <<'PB_STUB'
288
+ fn main() {}
289
+ PB_STUB
290
+
291
+ mkdir -p "$PB_DIR/ws/examples/hasura/examples"
292
+ cat > "$PB_DIR/ws/examples/hasura/examples/hasura.rs" <<'PB_STUB'
293
+ fn main() {}
294
+ PB_STUB
295
+
296
+ cat > "$PB_DIR/ws/examples/web/src/lib.rs" <<'PB_STUB'
297
+ pub fn _pb_stub_web() {}
298
+ PB_STUB
299
+
300
+ # The full repository-generated Cargo.lock, embedded verbatim, so that
301
+ # --locked dependency resolution pulls the exact pinned versions
302
+ # (including the yanked spin 0.9.8) into the registry cache.
303
+
304
+ cat > "$PB_DIR/ws/Cargo.lock" <<'PB_LOCK'
305
+ # This file is automatically @generated by Cargo.
306
+ # It is not intended for manual editing.
307
+ version = 3
308
+
309
+ [[package]]
310
+ name = "addr2line"
311
+ version = "0.24.2"
312
+ source = "registry+https://github.com/rust-lang/crates.io-index"
313
+ checksum = "dfbe277e56a376000877090da837660b4427aad530e3028d44e0bffe4f89a1c1"
314
+ dependencies = [
315
+ "gimli",
316
+ ]
317
+
318
+ [[package]]
319
+ name = "adler2"
320
+ version = "2.0.0"
321
+ source = "registry+https://github.com/rust-lang/crates.io-index"
322
+ checksum = "512761e0bb2578dd7380c6baaa0f4ce03e84f95e960231d1dec8bf4d7d6e2627"
323
+
324
+ [[package]]
325
+ name = "aho-corasick"
326
+ version = "1.1.3"
327
+ source = "registry+https://github.com/rust-lang/crates.io-index"
328
+ checksum = "8e60d3430d3a69478ad0993f19238d2df97c507009a52b3c10addcd7f6bcb916"
329
+ dependencies = [
330
+ "memchr",
331
+ ]
332
+
333
+ [[package]]
334
+ name = "anstream"
335
+ version = "0.6.18"
336
+ source = "registry+https://github.com/rust-lang/crates.io-index"
337
+ checksum = "8acc5369981196006228e28809f761875c0327210a891e941f4c683b3a99529b"
338
+ dependencies = [
339
+ "anstyle",
340
+ "anstyle-parse",
341
+ "anstyle-query",
342
+ "anstyle-wincon",
343
+ "colorchoice",
344
+ "is_terminal_polyfill",
345
+ "utf8parse",
346
+ ]
347
+
348
+ [[package]]
349
+ name = "anstyle"
350
+ version = "1.0.10"
351
+ source = "registry+https://github.com/rust-lang/crates.io-index"
352
+ checksum = "55cc3b69f167a1ef2e161439aa98aed94e6028e5f9a59be9a6ffb47aef1651f9"
353
+
354
+ [[package]]
355
+ name = "anstyle-parse"
356
+ version = "0.2.6"
357
+ source = "registry+https://github.com/rust-lang/crates.io-index"
358
+ checksum = "3b2d16507662817a6a20a9ea92df6652ee4f94f914589377d69f3b21bc5798a9"
359
+ dependencies = [
360
+ "utf8parse",
361
+ ]
362
+
363
+ [[package]]
364
+ name = "anstyle-query"
365
+ version = "1.1.2"
366
+ source = "registry+https://github.com/rust-lang/crates.io-index"
367
+ checksum = "79947af37f4177cfead1110013d678905c37501914fba0efea834c3fe9a8d60c"
368
+ dependencies = [
369
+ "windows-sys 0.59.0",
370
+ ]
371
+
372
+ [[package]]
373
+ name = "anstyle-wincon"
374
+ version = "3.0.7"
375
+ source = "registry+https://github.com/rust-lang/crates.io-index"
376
+ checksum = "ca3534e77181a9cc07539ad51f2141fe32f6c3ffd4df76db8ad92346b003ae4e"
377
+ dependencies = [
378
+ "anstyle",
379
+ "once_cell",
380
+ "windows-sys 0.59.0",
381
+ ]
382
+
383
+ [[package]]
384
+ name = "anyhow"
385
+ version = "1.0.95"
386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
387
+ checksum = "34ac096ce696dc2fcabef30516bb13c0a68a11d30131d3df6f04711467681b04"
388
+
389
+ [[package]]
390
+ name = "atomic-waker"
391
+ version = "1.1.2"
392
+ source = "registry+https://github.com/rust-lang/crates.io-index"
393
+ checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
394
+
395
+ [[package]]
396
+ name = "autocfg"
397
+ version = "1.4.0"
398
+ source = "registry+https://github.com/rust-lang/crates.io-index"
399
+ checksum = "ace50bade8e6234aa140d9a2f552bbee1db4d353f69b8217bc503490fc1a9f26"
400
+
401
+ [[package]]
402
+ name = "backtrace"
403
+ version = "0.3.74"
404
+ source = "registry+https://github.com/rust-lang/crates.io-index"
405
+ checksum = "8d82cb332cdfaed17ae235a638438ac4d4839913cc2af585c3c6746e8f8bee1a"
406
+ dependencies = [
407
+ "addr2line",
408
+ "cfg-if",
409
+ "libc",
410
+ "miniz_oxide",
411
+ "object",
412
+ "rustc-demangle",
413
+ "windows-targets",
414
+ ]
415
+
416
+ [[package]]
417
+ name = "base64"
418
+ version = "0.22.1"
419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
420
+ checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
421
+
422
+ [[package]]
423
+ name = "bitflags"
424
+ version = "2.8.0"
425
+ source = "registry+https://github.com/rust-lang/crates.io-index"
426
+ checksum = "8f68f53c83ab957f72c32642f3868eec03eb974d1fb82e453128456482613d36"
427
+
428
+ [[package]]
429
+ name = "bumpalo"
430
+ version = "3.17.0"
431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
432
+ checksum = "1628fb46dfa0b37568d12e5edd512553eccf6a22a78e8bde00bb4aed84d5bdbf"
433
+
434
+ [[package]]
435
+ name = "byteorder"
436
+ version = "1.5.0"
437
+ source = "registry+https://github.com/rust-lang/crates.io-index"
438
+ checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
439
+
440
+ [[package]]
441
+ name = "bytes"
442
+ version = "1.9.0"
443
+ source = "registry+https://github.com/rust-lang/crates.io-index"
444
+ checksum = "325918d6fe32f23b19878fe4b34794ae41fc19ddbe53b10571a4874d44ffd39b"
445
+
446
+ [[package]]
447
+ name = "cc"
448
+ version = "1.2.11"
449
+ source = "registry+https://github.com/rust-lang/crates.io-index"
450
+ checksum = "e4730490333d58093109dc02c23174c3f4d490998c3fed3cc8e82d57afedb9cf"
451
+ dependencies = [
452
+ "shlex",
453
+ ]
454
+
455
+ [[package]]
456
+ name = "cfg-if"
457
+ version = "1.0.0"
458
+ source = "registry+https://github.com/rust-lang/crates.io-index"
459
+ checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
460
+
461
+ [[package]]
462
+ name = "cfg_aliases"
463
+ version = "0.2.1"
464
+ source = "registry+https://github.com/rust-lang/crates.io-index"
465
+ checksum = "613afe47fcd5fac7ccf1db93babcb082c5994d996f20b8b159f2ad1658eb5724"
466
+
467
+ [[package]]
468
+ name = "clap"
469
+ version = "4.5.27"
470
+ source = "registry+https://github.com/rust-lang/crates.io-index"
471
+ checksum = "769b0145982b4b48713e01ec42d61614425f27b7058bda7180a3a41f30104796"
472
+ dependencies = [
473
+ "clap_builder",
474
+ "clap_derive",
475
+ ]
476
+
477
+ [[package]]
478
+ name = "clap_builder"
479
+ version = "4.5.27"
480
+ source = "registry+https://github.com/rust-lang/crates.io-index"
481
+ checksum = "1b26884eb4b57140e4d2d93652abfa49498b938b3c9179f9fc487b0acc3edad7"
482
+ dependencies = [
483
+ "anstream",
484
+ "anstyle",
485
+ "clap_lex",
486
+ "strsim",
487
+ ]
488
+
489
+ [[package]]
490
+ name = "clap_derive"
491
+ version = "4.5.24"
492
+ source = "registry+https://github.com/rust-lang/crates.io-index"
493
+ checksum = "54b755194d6389280185988721fffba69495eed5ee9feeee9a599b53db80318c"
494
+ dependencies = [
495
+ "heck",
496
+ "proc-macro2",
497
+ "quote",
498
+ "syn",
499
+ ]
500
+
501
+ [[package]]
502
+ name = "clap_lex"
503
+ version = "0.7.4"
504
+ source = "registry+https://github.com/rust-lang/crates.io-index"
505
+ checksum = "f46ad14479a25103f283c0f10005961cf086d8dc42205bb44c46ac563475dca6"
506
+
507
+ [[package]]
508
+ name = "colorchoice"
509
+ version = "1.0.3"
510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
511
+ checksum = "5b63caa9aa9397e2d9480a9b13673856c78d8ac123288526c37d7839f2a86990"
512
+
513
+ [[package]]
514
+ name = "combine"
515
+ version = "4.6.7"
516
+ source = "registry+https://github.com/rust-lang/crates.io-index"
517
+ checksum = "ba5a308b75df32fe02788e748662718f03fde005016435c444eea572398219fd"
518
+ dependencies = [
519
+ "bytes",
520
+ "memchr",
521
+ ]
522
+
523
+ [[package]]
524
+ name = "core-foundation"
525
+ version = "0.9.4"
526
+ source = "registry+https://github.com/rust-lang/crates.io-index"
527
+ checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
528
+ dependencies = [
529
+ "core-foundation-sys",
530
+ "libc",
531
+ ]
532
+
533
+ [[package]]
534
+ name = "core-foundation-sys"
535
+ version = "0.8.7"
536
+ source = "registry+https://github.com/rust-lang/crates.io-index"
537
+ checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
538
+
539
+ [[package]]
540
+ name = "csv"
541
+ version = "1.3.1"
542
+ source = "registry+https://github.com/rust-lang/crates.io-index"
543
+ checksum = "acdc4883a9c96732e4733212c01447ebd805833b7275a73ca3ee080fd77afdaf"
544
+ dependencies = [
545
+ "csv-core",
546
+ "itoa",
547
+ "ryu",
548
+ "serde",
549
+ ]
550
+
551
+ [[package]]
552
+ name = "csv-core"
553
+ version = "0.1.11"
554
+ source = "registry+https://github.com/rust-lang/crates.io-index"
555
+ checksum = "5efa2b3d7902f4b634a20cae3c9c4e6209dc4779feb6863329607560143efa70"
556
+ dependencies = [
557
+ "memchr",
558
+ ]
559
+
560
+ [[package]]
561
+ name = "dirs-next"
562
+ version = "2.0.0"
563
+ source = "registry+https://github.com/rust-lang/crates.io-index"
564
+ checksum = "b98cf8ebf19c3d1b223e151f99a4f9f0690dca41414773390fc824184ac833e1"
565
+ dependencies = [
566
+ "cfg-if",
567
+ "dirs-sys-next",
568
+ ]
569
+
570
+ [[package]]
571
+ name = "dirs-sys-next"
572
+ version = "0.1.2"
573
+ source = "registry+https://github.com/rust-lang/crates.io-index"
574
+ checksum = "4ebda144c4fe02d1f7ea1a7d9641b6fc6b580adcfa024ae48797ecdeb6825b4d"
575
+ dependencies = [
576
+ "libc",
577
+ "redox_users",
578
+ "winapi",
579
+ ]
580
+
581
+ [[package]]
582
+ name = "displaydoc"
583
+ version = "0.2.5"
584
+ source = "registry+https://github.com/rust-lang/crates.io-index"
585
+ checksum = "97369cbbc041bc366949bc74d34658d6cda5621039731c6310521892a3a20ae0"
586
+ dependencies = [
587
+ "proc-macro2",
588
+ "quote",
589
+ "syn",
590
+ ]
591
+
592
+ [[package]]
593
+ name = "encode_unicode"
594
+ version = "1.0.0"
595
+ source = "registry+https://github.com/rust-lang/crates.io-index"
596
+ checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
597
+
598
+ [[package]]
599
+ name = "encoding_rs"
600
+ version = "0.8.35"
601
+ source = "registry+https://github.com/rust-lang/crates.io-index"
602
+ checksum = "75030f3c4f45dafd7586dd6780965a8c7e8e285a5ecb86713e63a79c5b2766f3"
603
+ dependencies = [
604
+ "cfg-if",
605
+ ]
606
+
607
+ [[package]]
608
+ name = "env_logger"
609
+ version = "0.10.2"
610
+ source = "registry+https://github.com/rust-lang/crates.io-index"
611
+ checksum = "4cd405aab171cb85d6735e5c8d9db038c17d3ca007a4d2c25f337935c3d90580"
612
+ dependencies = [
613
+ "humantime",
614
+ "is-terminal",
615
+ "log",
616
+ "regex",
617
+ "termcolor",
618
+ ]
619
+
620
+ [[package]]
621
+ name = "equivalent"
622
+ version = "1.0.1"
623
+ source = "registry+https://github.com/rust-lang/crates.io-index"
624
+ checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
625
+
626
+ [[package]]
627
+ name = "errno"
628
+ version = "0.3.10"
629
+ source = "registry+https://github.com/rust-lang/crates.io-index"
630
+ checksum = "33d852cb9b869c2a9b3df2f71a3074817f01e1844f839a144f5fcef059a4eb5d"
631
+ dependencies = [
632
+ "libc",
633
+ "windows-sys 0.59.0",
634
+ ]
635
+
636
+ [[package]]
637
+ name = "fastrand"
638
+ version = "2.3.0"
639
+ source = "registry+https://github.com/rust-lang/crates.io-index"
640
+ checksum = "37909eebbb50d72f9059c3b6d82c0463f2ff062c9e95845c43a6c9c0355411be"
641
+
642
+ [[package]]
643
+ name = "fnv"
644
+ version = "1.0.7"
645
+ source = "registry+https://github.com/rust-lang/crates.io-index"
646
+ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
647
+
648
+ [[package]]
649
+ name = "foreign-types"
650
+ version = "0.3.2"
651
+ source = "registry+https://github.com/rust-lang/crates.io-index"
652
+ checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
653
+ dependencies = [
654
+ "foreign-types-shared",
655
+ ]
656
+
657
+ [[package]]
658
+ name = "foreign-types-shared"
659
+ version = "0.1.1"
660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
661
+ checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
662
+
663
+ [[package]]
664
+ name = "form_urlencoded"
665
+ version = "1.2.1"
666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
667
+ checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456"
668
+ dependencies = [
669
+ "percent-encoding",
670
+ ]
671
+
672
+ [[package]]
673
+ name = "futures-channel"
674
+ version = "0.3.31"
675
+ source = "registry+https://github.com/rust-lang/crates.io-index"
676
+ checksum = "2dff15bf788c671c1934e366d07e30c1814a8ef514e1af724a602e8a2fbe1b10"
677
+ dependencies = [
678
+ "futures-core",
679
+ "futures-sink",
680
+ ]
681
+
682
+ [[package]]
683
+ name = "futures-core"
684
+ version = "0.3.31"
685
+ source = "registry+https://github.com/rust-lang/crates.io-index"
686
+ checksum = "05f29059c0c2090612e8d742178b0580d2dc940c837851ad723096f87af6663e"
687
+
688
+ [[package]]
689
+ name = "futures-io"
690
+ version = "0.3.31"
691
+ source = "registry+https://github.com/rust-lang/crates.io-index"
692
+ checksum = "9e5c1b78ca4aae1ac06c48a526a655760685149f0d465d21f37abfe57ce075c6"
693
+
694
+ [[package]]
695
+ name = "futures-sink"
696
+ version = "0.3.31"
697
+ source = "registry+https://github.com/rust-lang/crates.io-index"
698
+ checksum = "e575fab7d1e0dcb8d0c7bcf9a63ee213816ab51902e6d244a95819acacf1d4f7"
699
+
700
+ [[package]]
701
+ name = "futures-task"
702
+ version = "0.3.31"
703
+ source = "registry+https://github.com/rust-lang/crates.io-index"
704
+ checksum = "f90f7dce0722e95104fcb095585910c0977252f286e354b5e3bd38902cd99988"
705
+
706
+ [[package]]
707
+ name = "futures-util"
708
+ version = "0.3.31"
709
+ source = "registry+https://github.com/rust-lang/crates.io-index"
710
+ checksum = "9fa08315bb612088cc391249efdc3bc77536f16c91f6cf495e6fbe85b20a4a81"
711
+ dependencies = [
712
+ "futures-core",
713
+ "futures-io",
714
+ "futures-sink",
715
+ "futures-task",
716
+ "memchr",
717
+ "pin-project-lite",
718
+ "pin-utils",
719
+ "slab",
720
+ ]
721
+
722
+ [[package]]
723
+ name = "getrandom"
724
+ version = "0.2.15"
725
+ source = "registry+https://github.com/rust-lang/crates.io-index"
726
+ checksum = "c4567c8db10ae91089c99af84c68c38da3ec2f087c3f82960bcdbf3656b6f4d7"
727
+ dependencies = [
728
+ "cfg-if",
729
+ "js-sys",
730
+ "libc",
731
+ "wasi 0.11.0+wasi-snapshot-preview1",
732
+ "wasm-bindgen",
733
+ ]
734
+
735
+ [[package]]
736
+ name = "getrandom"
737
+ version = "0.3.1"
738
+ source = "registry+https://github.com/rust-lang/crates.io-index"
739
+ checksum = "43a49c392881ce6d5c3b8cb70f98717b7c07aabbdff06687b9030dbfbe2725f8"
740
+ dependencies = [
741
+ "cfg-if",
742
+ "libc",
743
+ "wasi 0.13.3+wasi-0.2.2",
744
+ "windows-targets",
745
+ ]
746
+
747
+ [[package]]
748
+ name = "gimli"
749
+ version = "0.31.1"
750
+ source = "registry+https://github.com/rust-lang/crates.io-index"
751
+ checksum = "07e28edb80900c19c28f1072f2e8aeca7fa06b23cd4169cefe1af5aa3260783f"
752
+
753
+ [[package]]
754
+ name = "graphql-introspection-query"
755
+ version = "0.3.0"
756
+ dependencies = [
757
+ "serde",
758
+ ]
759
+
760
+ [[package]]
761
+ name = "graphql-parser"
762
+ version = "0.4.1"
763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
764
+ checksum = "7a818c0d883d7c0801df27be910917750932be279c7bc82dc541b8769425f409"
765
+ dependencies = [
766
+ "combine",
767
+ "thiserror 1.0.69",
768
+ ]
769
+
770
+ [[package]]
771
+ name = "graphql_client"
772
+ version = "0.16.0"
773
+ dependencies = [
774
+ "graphql_query_derive",
775
+ "reqwest",
776
+ "serde",
777
+ "serde_json",
778
+ ]
779
+
780
+ [[package]]
781
+ name = "graphql_client_cli"
782
+ version = "0.16.0"
783
+ dependencies = [
784
+ "anstyle",
785
+ "clap",
786
+ "env_logger",
787
+ "graphql_client",
788
+ "graphql_client_codegen",
789
+ "log",
790
+ "reqwest",
791
+ "serde",
792
+ "serde_json",
793
+ "syn",
794
+ ]
795
+
796
+ [[package]]
797
+ name = "graphql_client_codegen"
798
+ version = "0.16.0"
799
+ dependencies = [
800
+ "graphql-introspection-query",
801
+ "graphql-parser",
802
+ "heck",
803
+ "proc-macro2",
804
+ "quote",
805
+ "serde",
806
+ "serde_json",
807
+ "syn",
808
+ ]
809
+
810
+ [[package]]
811
+ name = "graphql_query_derive"
812
+ version = "0.16.0"
813
+ dependencies = [
814
+ "graphql_client_codegen",
815
+ "proc-macro2",
816
+ "syn",
817
+ ]
818
+
819
+ [[package]]
820
+ name = "graphql_query_github_example"
821
+ version = "0.1.0"
822
+ dependencies = [
823
+ "anyhow",
824
+ "clap",
825
+ "env_logger",
826
+ "graphql_client",
827
+ "log",
828
+ "prettytable-rs",
829
+ "reqwest",
830
+ ]
831
+
832
+ [[package]]
833
+ name = "graphql_query_hasura_example"
834
+ version = "0.1.0"
835
+ dependencies = [
836
+ "anyhow",
837
+ "env_logger",
838
+ "graphql_client",
839
+ "log",
840
+ "prettytable-rs",
841
+ "reqwest",
842
+ "serde_json",
843
+ ]
844
+
845
+ [[package]]
846
+ name = "h2"
847
+ version = "0.4.7"
848
+ source = "registry+https://github.com/rust-lang/crates.io-index"
849
+ checksum = "ccae279728d634d083c00f6099cb58f01cc99c145b84b8be2f6c74618d79922e"
850
+ dependencies = [
851
+ "atomic-waker",
852
+ "bytes",
853
+ "fnv",
854
+ "futures-core",
855
+ "futures-sink",
856
+ "http",
857
+ "indexmap",
858
+ "slab",
859
+ "tokio",
860
+ "tokio-util",
861
+ "tracing",
862
+ ]
863
+
864
+ [[package]]
865
+ name = "hashbrown"
866
+ version = "0.15.2"
867
+ source = "registry+https://github.com/rust-lang/crates.io-index"
868
+ checksum = "bf151400ff0baff5465007dd2f3e717f3fe502074ca563069ce3a6629d07b289"
869
+
870
+ [[package]]
871
+ name = "heck"
872
+ version = "0.5.0"
873
+ source = "registry+https://github.com/rust-lang/crates.io-index"
874
+ checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
875
+
876
+ [[package]]
877
+ name = "hermit-abi"
878
+ version = "0.4.0"
879
+ source = "registry+https://github.com/rust-lang/crates.io-index"
880
+ checksum = "fbf6a919d6cf397374f7dfeeea91d974c7c0a7221d0d0f4f20d859d329e53fcc"
881
+
882
+ [[package]]
883
+ name = "http"
884
+ version = "1.2.0"
885
+ source = "registry+https://github.com/rust-lang/crates.io-index"
886
+ checksum = "f16ca2af56261c99fba8bac40a10251ce8188205a4c448fbb745a2e4daa76fea"
887
+ dependencies = [
888
+ "bytes",
889
+ "fnv",
890
+ "itoa",
891
+ ]
892
+
893
+ [[package]]
894
+ name = "http-body"
895
+ version = "1.0.1"
896
+ source = "registry+https://github.com/rust-lang/crates.io-index"
897
+ checksum = "1efedce1fb8e6913f23e0c92de8e62cd5b772a67e7b3946df930a62566c93184"
898
+ dependencies = [
899
+ "bytes",
900
+ "http",
901
+ ]
902
+
903
+ [[package]]
904
+ name = "http-body-util"
905
+ version = "0.1.2"
906
+ source = "registry+https://github.com/rust-lang/crates.io-index"
907
+ checksum = "793429d76616a256bcb62c2a2ec2bed781c8307e797e2598c50010f2bee2544f"
908
+ dependencies = [
909
+ "bytes",
910
+ "futures-util",
911
+ "http",
912
+ "http-body",
913
+ "pin-project-lite",
914
+ ]
915
+
916
+ [[package]]
917
+ name = "httparse"
918
+ version = "1.10.0"
919
+ source = "registry+https://github.com/rust-lang/crates.io-index"
920
+ checksum = "f2d708df4e7140240a16cd6ab0ab65c972d7433ab77819ea693fde9c43811e2a"
921
+
922
+ [[package]]
923
+ name = "humantime"
924
+ version = "2.1.0"
925
+ source = "registry+https://github.com/rust-lang/crates.io-index"
926
+ checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
927
+
928
+ [[package]]
929
+ name = "hyper"
930
+ version = "1.6.0"
931
+ source = "registry+https://github.com/rust-lang/crates.io-index"
932
+ checksum = "cc2b571658e38e0c01b1fdca3bbbe93c00d3d71693ff2770043f8c29bc7d6f80"
933
+ dependencies = [
934
+ "bytes",
935
+ "futures-channel",
936
+ "futures-util",
937
+ "h2",
938
+ "http",
939
+ "http-body",
940
+ "httparse",
941
+ "itoa",
942
+ "pin-project-lite",
943
+ "smallvec",
944
+ "tokio",
945
+ "want",
946
+ ]
947
+
948
+ [[package]]
949
+ name = "hyper-rustls"
950
+ version = "0.27.5"
951
+ source = "registry+https://github.com/rust-lang/crates.io-index"
952
+ checksum = "2d191583f3da1305256f22463b9bb0471acad48a4e534a5218b9963e9c1f59b2"
953
+ dependencies = [
954
+ "futures-util",
955
+ "http",
956
+ "hyper",
957
+ "hyper-util",
958
+ "rustls",
959
+ "rustls-pki-types",
960
+ "tokio",
961
+ "tokio-rustls",
962
+ "tower-service",
963
+ "webpki-roots",
964
+ ]
965
+
966
+ [[package]]
967
+ name = "hyper-tls"
968
+ version = "0.6.0"
969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
970
+ checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0"
971
+ dependencies = [
972
+ "bytes",
973
+ "http-body-util",
974
+ "hyper",
975
+ "hyper-util",
976
+ "native-tls",
977
+ "tokio",
978
+ "tokio-native-tls",
979
+ "tower-service",
980
+ ]
981
+
982
+ [[package]]
983
+ name = "hyper-util"
984
+ version = "0.1.10"
985
+ source = "registry+https://github.com/rust-lang/crates.io-index"
986
+ checksum = "df2dcfbe0677734ab2f3ffa7fa7bfd4706bfdc1ef393f2ee30184aed67e631b4"
987
+ dependencies = [
988
+ "bytes",
989
+ "futures-channel",
990
+ "futures-util",
991
+ "http",
992
+ "http-body",
993
+ "hyper",
994
+ "pin-project-lite",
995
+ "socket2",
996
+ "tokio",
997
+ "tower-service",
998
+ "tracing",
999
+ ]
1000
+
1001
+ [[package]]
1002
+ name = "icu_collections"
1003
+ version = "1.5.0"
1004
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1005
+ checksum = "db2fa452206ebee18c4b5c2274dbf1de17008e874b4dc4f0aea9d01ca79e4526"
1006
+ dependencies = [
1007
+ "displaydoc",
1008
+ "yoke",
1009
+ "zerofrom",
1010
+ "zerovec",
1011
+ ]
1012
+
1013
+ [[package]]
1014
+ name = "icu_locid"
1015
+ version = "1.5.0"
1016
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1017
+ checksum = "13acbb8371917fc971be86fc8057c41a64b521c184808a698c02acc242dbf637"
1018
+ dependencies = [
1019
+ "displaydoc",
1020
+ "litemap",
1021
+ "tinystr",
1022
+ "writeable",
1023
+ "zerovec",
1024
+ ]
1025
+
1026
+ [[package]]
1027
+ name = "icu_locid_transform"
1028
+ version = "1.5.0"
1029
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1030
+ checksum = "01d11ac35de8e40fdeda00d9e1e9d92525f3f9d887cdd7aa81d727596788b54e"
1031
+ dependencies = [
1032
+ "displaydoc",
1033
+ "icu_locid",
1034
+ "icu_locid_transform_data",
1035
+ "icu_provider",
1036
+ "tinystr",
1037
+ "zerovec",
1038
+ ]
1039
+
1040
+ [[package]]
1041
+ name = "icu_locid_transform_data"
1042
+ version = "1.5.0"
1043
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1044
+ checksum = "fdc8ff3388f852bede6b579ad4e978ab004f139284d7b28715f773507b946f6e"
1045
+
1046
+ [[package]]
1047
+ name = "icu_normalizer"
1048
+ version = "1.5.0"
1049
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1050
+ checksum = "19ce3e0da2ec68599d193c93d088142efd7f9c5d6fc9b803774855747dc6a84f"
1051
+ dependencies = [
1052
+ "displaydoc",
1053
+ "icu_collections",
1054
+ "icu_normalizer_data",
1055
+ "icu_properties",
1056
+ "icu_provider",
1057
+ "smallvec",
1058
+ "utf16_iter",
1059
+ "utf8_iter",
1060
+ "write16",
1061
+ "zerovec",
1062
+ ]
1063
+
1064
+ [[package]]
1065
+ name = "icu_normalizer_data"
1066
+ version = "1.5.0"
1067
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1068
+ checksum = "f8cafbf7aa791e9b22bec55a167906f9e1215fd475cd22adfcf660e03e989516"
1069
+
1070
+ [[package]]
1071
+ name = "icu_properties"
1072
+ version = "1.5.1"
1073
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1074
+ checksum = "93d6020766cfc6302c15dbbc9c8778c37e62c14427cb7f6e601d849e092aeef5"
1075
+ dependencies = [
1076
+ "displaydoc",
1077
+ "icu_collections",
1078
+ "icu_locid_transform",
1079
+ "icu_properties_data",
1080
+ "icu_provider",
1081
+ "tinystr",
1082
+ "zerovec",
1083
+ ]
1084
+
1085
+ [[package]]
1086
+ name = "icu_properties_data"
1087
+ version = "1.5.0"
1088
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1089
+ checksum = "67a8effbc3dd3e4ba1afa8ad918d5684b8868b3b26500753effea8d2eed19569"
1090
+
1091
+ [[package]]
1092
+ name = "icu_provider"
1093
+ version = "1.5.0"
1094
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1095
+ checksum = "6ed421c8a8ef78d3e2dbc98a973be2f3770cb42b606e3ab18d6237c4dfde68d9"
1096
+ dependencies = [
1097
+ "displaydoc",
1098
+ "icu_locid",
1099
+ "icu_provider_macros",
1100
+ "stable_deref_trait",
1101
+ "tinystr",
1102
+ "writeable",
1103
+ "yoke",
1104
+ "zerofrom",
1105
+ "zerovec",
1106
+ ]
1107
+
1108
+ [[package]]
1109
+ name = "icu_provider_macros"
1110
+ version = "1.5.0"
1111
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1112
+ checksum = "1ec89e9337638ecdc08744df490b221a7399bf8d164eb52a665454e60e075ad6"
1113
+ dependencies = [
1114
+ "proc-macro2",
1115
+ "quote",
1116
+ "syn",
1117
+ ]
1118
+
1119
+ [[package]]
1120
+ name = "idna"
1121
+ version = "1.0.3"
1122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1123
+ checksum = "686f825264d630750a544639377bae737628043f20d38bbc029e8f29ea968a7e"
1124
+ dependencies = [
1125
+ "idna_adapter",
1126
+ "smallvec",
1127
+ "utf8_iter",
1128
+ ]
1129
+
1130
+ [[package]]
1131
+ name = "idna_adapter"
1132
+ version = "1.2.0"
1133
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1134
+ checksum = "daca1df1c957320b2cf139ac61e7bd64fed304c5040df000a745aa1de3b4ef71"
1135
+ dependencies = [
1136
+ "icu_normalizer",
1137
+ "icu_properties",
1138
+ ]
1139
+
1140
+ [[package]]
1141
+ name = "indexmap"
1142
+ version = "2.7.1"
1143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1144
+ checksum = "8c9c992b02b5b4c94ea26e32fe5bccb7aa7d9f390ab5c1221ff895bc7ea8b652"
1145
+ dependencies = [
1146
+ "equivalent",
1147
+ "hashbrown",
1148
+ ]
1149
+
1150
+ [[package]]
1151
+ name = "ipnet"
1152
+ version = "2.11.0"
1153
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1154
+ checksum = "469fb0b9cefa57e3ef31275ee7cacb78f2fdca44e4765491884a2b119d4eb130"
1155
+
1156
+ [[package]]
1157
+ name = "is-terminal"
1158
+ version = "0.4.15"
1159
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1160
+ checksum = "e19b23d53f35ce9f56aebc7d1bb4e6ac1e9c0db7ac85c8d1760c04379edced37"
1161
+ dependencies = [
1162
+ "hermit-abi",
1163
+ "libc",
1164
+ "windows-sys 0.59.0",
1165
+ ]
1166
+
1167
+ [[package]]
1168
+ name = "is_terminal_polyfill"
1169
+ version = "1.70.1"
1170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1171
+ checksum = "7943c866cc5cd64cbc25b2e01621d07fa8eb2a1a23160ee81ce38704e97b8ecf"
1172
+
1173
+ [[package]]
1174
+ name = "itoa"
1175
+ version = "1.0.14"
1176
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1177
+ checksum = "d75a2a4b1b190afb6f5425f10f6a8f959d2ea0b9c2b1d79553551850539e4674"
1178
+
1179
+ [[package]]
1180
+ name = "js-sys"
1181
+ version = "0.3.77"
1182
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1183
+ checksum = "1cfaf33c695fc6e08064efbc1f72ec937429614f25eef83af942d0e227c3a28f"
1184
+ dependencies = [
1185
+ "once_cell",
1186
+ "wasm-bindgen",
1187
+ ]
1188
+
1189
+ [[package]]
1190
+ name = "lazy_static"
1191
+ version = "1.5.0"
1192
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1193
+ checksum = "bbd2bcb4c963f2ddae06a2efc7e9f3591312473c50c6685e1f298068316e66fe"
1194
+
1195
+ [[package]]
1196
+ name = "libc"
1197
+ version = "0.2.169"
1198
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1199
+ checksum = "b5aba8db14291edd000dfcc4d620c7ebfb122c613afb886ca8803fa4e128a20a"
1200
+
1201
+ [[package]]
1202
+ name = "libredox"
1203
+ version = "0.1.3"
1204
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1205
+ checksum = "c0ff37bd590ca25063e35af745c343cb7a0271906fb7b37e4813e8f79f00268d"
1206
+ dependencies = [
1207
+ "bitflags",
1208
+ "libc",
1209
+ ]
1210
+
1211
+ [[package]]
1212
+ name = "linux-raw-sys"
1213
+ version = "0.4.15"
1214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1215
+ checksum = "d26c52dbd32dccf2d10cac7725f8eae5296885fb5703b261f7d0a0739ec807ab"
1216
+
1217
+ [[package]]
1218
+ name = "litemap"
1219
+ version = "0.7.4"
1220
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1221
+ checksum = "4ee93343901ab17bd981295f2cf0026d4ad018c7c31ba84549a4ddbb47a45104"
1222
+
1223
+ [[package]]
1224
+ name = "log"
1225
+ version = "0.4.25"
1226
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1227
+ checksum = "04cbf5b083de1c7e0222a7a51dbfdba1cbe1c6ab0b15e29fff3f6c077fd9cd9f"
1228
+
1229
+ [[package]]
1230
+ name = "memchr"
1231
+ version = "2.7.4"
1232
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1233
+ checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3"
1234
+
1235
+ [[package]]
1236
+ name = "mime"
1237
+ version = "0.3.17"
1238
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1239
+ checksum = "6877bb514081ee2a7ff5ef9de3281f14a4dd4bceac4c09388074a6b5df8a139a"
1240
+
1241
+ [[package]]
1242
+ name = "miniz_oxide"
1243
+ version = "0.8.3"
1244
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1245
+ checksum = "b8402cab7aefae129c6977bb0ff1b8fd9a04eb5b51efc50a70bea51cda0c7924"
1246
+ dependencies = [
1247
+ "adler2",
1248
+ ]
1249
+
1250
+ [[package]]
1251
+ name = "mio"
1252
+ version = "1.0.3"
1253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1254
+ checksum = "2886843bf800fba2e3377cff24abf6379b4c4d5c6681eaf9ea5b0d15090450bd"
1255
+ dependencies = [
1256
+ "libc",
1257
+ "wasi 0.11.0+wasi-snapshot-preview1",
1258
+ "windows-sys 0.52.0",
1259
+ ]
1260
+
1261
+ [[package]]
1262
+ name = "native-tls"
1263
+ version = "0.2.13"
1264
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1265
+ checksum = "0dab59f8e050d5df8e4dd87d9206fb6f65a483e20ac9fda365ade4fab353196c"
1266
+ dependencies = [
1267
+ "libc",
1268
+ "log",
1269
+ "openssl",
1270
+ "openssl-probe",
1271
+ "openssl-sys",
1272
+ "schannel",
1273
+ "security-framework",
1274
+ "security-framework-sys",
1275
+ "tempfile",
1276
+ ]
1277
+
1278
+ [[package]]
1279
+ name = "object"
1280
+ version = "0.36.7"
1281
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1282
+ checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
1283
+ dependencies = [
1284
+ "memchr",
1285
+ ]
1286
+
1287
+ [[package]]
1288
+ name = "once_cell"
1289
+ version = "1.20.2"
1290
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1291
+ checksum = "1261fe7e33c73b354eab43b1273a57c8f967d0391e80353e51f764ac02cf6775"
1292
+
1293
+ [[package]]
1294
+ name = "openssl"
1295
+ version = "0.10.72"
1296
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1297
+ checksum = "fedfea7d58a1f73118430a55da6a286e7b044961736ce96a16a17068ea25e5da"
1298
+ dependencies = [
1299
+ "bitflags",
1300
+ "cfg-if",
1301
+ "foreign-types",
1302
+ "libc",
1303
+ "once_cell",
1304
+ "openssl-macros",
1305
+ "openssl-sys",
1306
+ ]
1307
+
1308
+ [[package]]
1309
+ name = "openssl-macros"
1310
+ version = "0.1.1"
1311
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1312
+ checksum = "a948666b637a0f465e8564c73e89d4dde00d72d4d473cc972f390fc3dcee7d9c"
1313
+ dependencies = [
1314
+ "proc-macro2",
1315
+ "quote",
1316
+ "syn",
1317
+ ]
1318
+
1319
+ [[package]]
1320
+ name = "openssl-probe"
1321
+ version = "0.1.6"
1322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1323
+ checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
1324
+
1325
+ [[package]]
1326
+ name = "openssl-sys"
1327
+ version = "0.9.107"
1328
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1329
+ checksum = "8288979acd84749c744a9014b4382d42b8f7b2592847b5afb2ed29e5d16ede07"
1330
+ dependencies = [
1331
+ "cc",
1332
+ "libc",
1333
+ "pkg-config",
1334
+ "vcpkg",
1335
+ ]
1336
+
1337
+ [[package]]
1338
+ name = "percent-encoding"
1339
+ version = "2.3.1"
1340
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1341
+ checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e"
1342
+
1343
+ [[package]]
1344
+ name = "pin-project-lite"
1345
+ version = "0.2.16"
1346
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1347
+ checksum = "3b3cff922bd51709b605d9ead9aa71031d81447142d828eb4a6eba76fe619f9b"
1348
+
1349
+ [[package]]
1350
+ name = "pin-utils"
1351
+ version = "0.1.0"
1352
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1353
+ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
1354
+
1355
+ [[package]]
1356
+ name = "pkg-config"
1357
+ version = "0.3.31"
1358
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1359
+ checksum = "953ec861398dccce10c670dfeaf3ec4911ca479e9c02154b3a215178c5f566f2"
1360
+
1361
+ [[package]]
1362
+ name = "ppv-lite86"
1363
+ version = "0.2.20"
1364
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1365
+ checksum = "77957b295656769bb8ad2b6a6b09d897d94f05c41b069aede1fcdaa675eaea04"
1366
+ dependencies = [
1367
+ "zerocopy",
1368
+ ]
1369
+
1370
+ [[package]]
1371
+ name = "prettytable-rs"
1372
+ version = "0.10.0"
1373
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1374
+ checksum = "eea25e07510aa6ab6547308ebe3c036016d162b8da920dbb079e3ba8acf3d95a"
1375
+ dependencies = [
1376
+ "csv",
1377
+ "encode_unicode",
1378
+ "is-terminal",
1379
+ "lazy_static",
1380
+ "term",
1381
+ "unicode-width",
1382
+ ]
1383
+
1384
+ [[package]]
1385
+ name = "proc-macro2"
1386
+ version = "1.0.93"
1387
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1388
+ checksum = "60946a68e5f9d28b0dc1c21bb8a97ee7d018a8b322fa57838ba31cc878e22d99"
1389
+ dependencies = [
1390
+ "unicode-ident",
1391
+ ]
1392
+
1393
+ [[package]]
1394
+ name = "quinn"
1395
+ version = "0.11.6"
1396
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1397
+ checksum = "62e96808277ec6f97351a2380e6c25114bc9e67037775464979f3037c92d05ef"
1398
+ dependencies = [
1399
+ "bytes",
1400
+ "pin-project-lite",
1401
+ "quinn-proto",
1402
+ "quinn-udp",
1403
+ "rustc-hash",
1404
+ "rustls",
1405
+ "socket2",
1406
+ "thiserror 2.0.11",
1407
+ "tokio",
1408
+ "tracing",
1409
+ ]
1410
+
1411
+ [[package]]
1412
+ name = "quinn-proto"
1413
+ version = "0.11.9"
1414
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1415
+ checksum = "a2fe5ef3495d7d2e377ff17b1a8ce2ee2ec2a18cde8b6ad6619d65d0701c135d"
1416
+ dependencies = [
1417
+ "bytes",
1418
+ "getrandom 0.2.15",
1419
+ "rand",
1420
+ "ring",
1421
+ "rustc-hash",
1422
+ "rustls",
1423
+ "rustls-pki-types",
1424
+ "slab",
1425
+ "thiserror 2.0.11",
1426
+ "tinyvec",
1427
+ "tracing",
1428
+ "web-time",
1429
+ ]
1430
+
1431
+ [[package]]
1432
+ name = "quinn-udp"
1433
+ version = "0.5.9"
1434
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1435
+ checksum = "1c40286217b4ba3a71d644d752e6a0b71f13f1b6a2c5311acfcbe0c2418ed904"
1436
+ dependencies = [
1437
+ "cfg_aliases",
1438
+ "libc",
1439
+ "once_cell",
1440
+ "socket2",
1441
+ "tracing",
1442
+ "windows-sys 0.59.0",
1443
+ ]
1444
+
1445
+ [[package]]
1446
+ name = "quote"
1447
+ version = "1.0.38"
1448
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1449
+ checksum = "0e4dccaaaf89514f546c693ddc140f729f958c247918a13380cccc6078391acc"
1450
+ dependencies = [
1451
+ "proc-macro2",
1452
+ ]
1453
+
1454
+ [[package]]
1455
+ name = "rand"
1456
+ version = "0.8.5"
1457
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1458
+ checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
1459
+ dependencies = [
1460
+ "libc",
1461
+ "rand_chacha",
1462
+ "rand_core",
1463
+ ]
1464
+
1465
+ [[package]]
1466
+ name = "rand_chacha"
1467
+ version = "0.3.1"
1468
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1469
+ checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
1470
+ dependencies = [
1471
+ "ppv-lite86",
1472
+ "rand_core",
1473
+ ]
1474
+
1475
+ [[package]]
1476
+ name = "rand_core"
1477
+ version = "0.6.4"
1478
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1479
+ checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
1480
+ dependencies = [
1481
+ "getrandom 0.2.15",
1482
+ ]
1483
+
1484
+ [[package]]
1485
+ name = "redox_users"
1486
+ version = "0.4.6"
1487
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1488
+ checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
1489
+ dependencies = [
1490
+ "getrandom 0.2.15",
1491
+ "libredox",
1492
+ "thiserror 1.0.69",
1493
+ ]
1494
+
1495
+ [[package]]
1496
+ name = "regex"
1497
+ version = "1.11.1"
1498
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1499
+ checksum = "b544ef1b4eac5dc2db33ea63606ae9ffcfac26c1416a2806ae0bf5f56b201191"
1500
+ dependencies = [
1501
+ "aho-corasick",
1502
+ "memchr",
1503
+ "regex-automata",
1504
+ "regex-syntax",
1505
+ ]
1506
+
1507
+ [[package]]
1508
+ name = "regex-automata"
1509
+ version = "0.4.9"
1510
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1511
+ checksum = "809e8dc61f6de73b46c85f4c96486310fe304c434cfa43669d7b40f711150908"
1512
+ dependencies = [
1513
+ "aho-corasick",
1514
+ "memchr",
1515
+ "regex-syntax",
1516
+ ]
1517
+
1518
+ [[package]]
1519
+ name = "regex-syntax"
1520
+ version = "0.8.5"
1521
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1522
+ checksum = "2b15c43186be67a4fd63bee50d0303afffcef381492ebe2c5d87f324e1b8815c"
1523
+
1524
+ [[package]]
1525
+ name = "reqwest"
1526
+ version = "0.12.12"
1527
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1528
+ checksum = "43e734407157c3c2034e0258f5e4473ddb361b1e85f95a66690d67264d7cd1da"
1529
+ dependencies = [
1530
+ "base64",
1531
+ "bytes",
1532
+ "encoding_rs",
1533
+ "futures-channel",
1534
+ "futures-core",
1535
+ "futures-util",
1536
+ "h2",
1537
+ "http",
1538
+ "http-body",
1539
+ "http-body-util",
1540
+ "hyper",
1541
+ "hyper-rustls",
1542
+ "hyper-tls",
1543
+ "hyper-util",
1544
+ "ipnet",
1545
+ "js-sys",
1546
+ "log",
1547
+ "mime",
1548
+ "native-tls",
1549
+ "once_cell",
1550
+ "percent-encoding",
1551
+ "pin-project-lite",
1552
+ "quinn",
1553
+ "rustls",
1554
+ "rustls-pemfile",
1555
+ "rustls-pki-types",
1556
+ "serde",
1557
+ "serde_json",
1558
+ "serde_urlencoded",
1559
+ "sync_wrapper",
1560
+ "system-configuration",
1561
+ "tokio",
1562
+ "tokio-native-tls",
1563
+ "tokio-rustls",
1564
+ "tower",
1565
+ "tower-service",
1566
+ "url",
1567
+ "wasm-bindgen",
1568
+ "wasm-bindgen-futures",
1569
+ "web-sys",
1570
+ "webpki-roots",
1571
+ "windows-registry",
1572
+ ]
1573
+
1574
+ [[package]]
1575
+ name = "ring"
1576
+ version = "0.17.8"
1577
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1578
+ checksum = "c17fa4cb658e3583423e915b9f3acc01cceaee1860e33d59ebae66adc3a2dc0d"
1579
+ dependencies = [
1580
+ "cc",
1581
+ "cfg-if",
1582
+ "getrandom 0.2.15",
1583
+ "libc",
1584
+ "spin",
1585
+ "untrusted",
1586
+ "windows-sys 0.52.0",
1587
+ ]
1588
+
1589
+ [[package]]
1590
+ name = "rustc-demangle"
1591
+ version = "0.1.24"
1592
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1593
+ checksum = "719b953e2095829ee67db738b3bfa9fa368c94900df327b3f07fe6e794d2fe1f"
1594
+
1595
+ [[package]]
1596
+ name = "rustc-hash"
1597
+ version = "2.1.0"
1598
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1599
+ checksum = "c7fb8039b3032c191086b10f11f319a6e99e1e82889c5cc6046f515c9db1d497"
1600
+
1601
+ [[package]]
1602
+ name = "rustix"
1603
+ version = "0.38.44"
1604
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1605
+ checksum = "fdb5bc1ae2baa591800df16c9ca78619bf65c0488b41b96ccec5d11220d8c154"
1606
+ dependencies = [
1607
+ "bitflags",
1608
+ "errno",
1609
+ "libc",
1610
+ "linux-raw-sys",
1611
+ "windows-sys 0.59.0",
1612
+ ]
1613
+
1614
+ [[package]]
1615
+ name = "rustls"
1616
+ version = "0.23.22"
1617
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1618
+ checksum = "9fb9263ab4eb695e42321db096e3b8fbd715a59b154d5c88d82db2175b681ba7"
1619
+ dependencies = [
1620
+ "once_cell",
1621
+ "ring",
1622
+ "rustls-pki-types",
1623
+ "rustls-webpki",
1624
+ "subtle",
1625
+ "zeroize",
1626
+ ]
1627
+
1628
+ [[package]]
1629
+ name = "rustls-pemfile"
1630
+ version = "2.2.0"
1631
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1632
+ checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
1633
+ dependencies = [
1634
+ "rustls-pki-types",
1635
+ ]
1636
+
1637
+ [[package]]
1638
+ name = "rustls-pki-types"
1639
+ version = "1.11.0"
1640
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1641
+ checksum = "917ce264624a4b4db1c364dcc35bfca9ded014d0a958cd47ad3e960e988ea51c"
1642
+ dependencies = [
1643
+ "web-time",
1644
+ ]
1645
+
1646
+ [[package]]
1647
+ name = "rustls-webpki"
1648
+ version = "0.102.8"
1649
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1650
+ checksum = "64ca1bc8749bd4cf37b5ce386cc146580777b4e8572c7b97baf22c83f444bee9"
1651
+ dependencies = [
1652
+ "ring",
1653
+ "rustls-pki-types",
1654
+ "untrusted",
1655
+ ]
1656
+
1657
+ [[package]]
1658
+ name = "rustversion"
1659
+ version = "1.0.19"
1660
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1661
+ checksum = "f7c45b9784283f1b2e7fb61b42047c2fd678ef0960d4f6f1eba131594cc369d4"
1662
+
1663
+ [[package]]
1664
+ name = "ryu"
1665
+ version = "1.0.19"
1666
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1667
+ checksum = "6ea1a2d0a644769cc99faa24c3ad26b379b786fe7c36fd3c546254801650e6dd"
1668
+
1669
+ [[package]]
1670
+ name = "schannel"
1671
+ version = "0.1.27"
1672
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1673
+ checksum = "1f29ebaa345f945cec9fbbc532eb307f0fdad8161f281b6369539c8d84876b3d"
1674
+ dependencies = [
1675
+ "windows-sys 0.59.0",
1676
+ ]
1677
+
1678
+ [[package]]
1679
+ name = "security-framework"
1680
+ version = "2.11.1"
1681
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1682
+ checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
1683
+ dependencies = [
1684
+ "bitflags",
1685
+ "core-foundation",
1686
+ "core-foundation-sys",
1687
+ "libc",
1688
+ "security-framework-sys",
1689
+ ]
1690
+
1691
+ [[package]]
1692
+ name = "security-framework-sys"
1693
+ version = "2.14.0"
1694
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1695
+ checksum = "49db231d56a190491cb4aeda9527f1ad45345af50b0851622a7adb8c03b01c32"
1696
+ dependencies = [
1697
+ "core-foundation-sys",
1698
+ "libc",
1699
+ ]
1700
+
1701
+ [[package]]
1702
+ name = "serde"
1703
+ version = "1.0.217"
1704
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1705
+ checksum = "02fc4265df13d6fa1d00ecff087228cc0a2b5f3c0e87e258d8b94a156e984c70"
1706
+ dependencies = [
1707
+ "serde_derive",
1708
+ ]
1709
+
1710
+ [[package]]
1711
+ name = "serde_derive"
1712
+ version = "1.0.217"
1713
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1714
+ checksum = "5a9bf7cf98d04a2b28aead066b7496853d4779c9cc183c440dbac457641e19a0"
1715
+ dependencies = [
1716
+ "proc-macro2",
1717
+ "quote",
1718
+ "syn",
1719
+ ]
1720
+
1721
+ [[package]]
1722
+ name = "serde_json"
1723
+ version = "1.0.138"
1724
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1725
+ checksum = "d434192e7da787e94a6ea7e9670b26a036d0ca41e0b7efb2676dd32bae872949"
1726
+ dependencies = [
1727
+ "itoa",
1728
+ "memchr",
1729
+ "ryu",
1730
+ "serde",
1731
+ ]
1732
+
1733
+ [[package]]
1734
+ name = "serde_urlencoded"
1735
+ version = "0.7.1"
1736
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1737
+ checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
1738
+ dependencies = [
1739
+ "form_urlencoded",
1740
+ "itoa",
1741
+ "ryu",
1742
+ "serde",
1743
+ ]
1744
+
1745
+ [[package]]
1746
+ name = "shlex"
1747
+ version = "1.3.0"
1748
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1749
+ checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
1750
+
1751
+ [[package]]
1752
+ name = "slab"
1753
+ version = "0.4.9"
1754
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1755
+ checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67"
1756
+ dependencies = [
1757
+ "autocfg",
1758
+ ]
1759
+
1760
+ [[package]]
1761
+ name = "smallvec"
1762
+ version = "1.13.2"
1763
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1764
+ checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67"
1765
+
1766
+ [[package]]
1767
+ name = "socket2"
1768
+ version = "0.5.8"
1769
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1770
+ checksum = "c970269d99b64e60ec3bd6ad27270092a5394c4e309314b18ae3fe575695fbe8"
1771
+ dependencies = [
1772
+ "libc",
1773
+ "windows-sys 0.52.0",
1774
+ ]
1775
+
1776
+ [[package]]
1777
+ name = "spin"
1778
+ version = "0.9.8"
1779
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1780
+ checksum = "6980e8d7511241f8acf4aebddbb1ff938df5eebe98691418c4468d0b72a96a67"
1781
+
1782
+ [[package]]
1783
+ name = "stable_deref_trait"
1784
+ version = "1.2.0"
1785
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1786
+ checksum = "a8f112729512f8e442d81f95a8a7ddf2b7c6b8a1a6f509a95864142b30cab2d3"
1787
+
1788
+ [[package]]
1789
+ name = "strsim"
1790
+ version = "0.11.1"
1791
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1792
+ checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
1793
+
1794
+ [[package]]
1795
+ name = "subtle"
1796
+ version = "2.6.1"
1797
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1798
+ checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
1799
+
1800
+ [[package]]
1801
+ name = "syn"
1802
+ version = "2.0.98"
1803
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1804
+ checksum = "36147f1a48ae0ec2b5b3bc5b537d267457555a10dc06f3dbc8cb11ba3006d3b1"
1805
+ dependencies = [
1806
+ "proc-macro2",
1807
+ "quote",
1808
+ "unicode-ident",
1809
+ ]
1810
+
1811
+ [[package]]
1812
+ name = "sync_wrapper"
1813
+ version = "1.0.2"
1814
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1815
+ checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
1816
+ dependencies = [
1817
+ "futures-core",
1818
+ ]
1819
+
1820
+ [[package]]
1821
+ name = "synstructure"
1822
+ version = "0.13.1"
1823
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1824
+ checksum = "c8af7666ab7b6390ab78131fb5b0fce11d6b7a6951602017c35fa82800708971"
1825
+ dependencies = [
1826
+ "proc-macro2",
1827
+ "quote",
1828
+ "syn",
1829
+ ]
1830
+
1831
+ [[package]]
1832
+ name = "system-configuration"
1833
+ version = "0.6.1"
1834
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1835
+ checksum = "3c879d448e9d986b661742763247d3693ed13609438cf3d006f51f5368a5ba6b"
1836
+ dependencies = [
1837
+ "bitflags",
1838
+ "core-foundation",
1839
+ "system-configuration-sys",
1840
+ ]
1841
+
1842
+ [[package]]
1843
+ name = "system-configuration-sys"
1844
+ version = "0.6.0"
1845
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1846
+ checksum = "8e1d1b10ced5ca923a1fcb8d03e96b8d3268065d724548c0211415ff6ac6bac4"
1847
+ dependencies = [
1848
+ "core-foundation-sys",
1849
+ "libc",
1850
+ ]
1851
+
1852
+ [[package]]
1853
+ name = "tempfile"
1854
+ version = "3.16.0"
1855
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1856
+ checksum = "38c246215d7d24f48ae091a2902398798e05d978b24315d6efbc00ede9a8bb91"
1857
+ dependencies = [
1858
+ "cfg-if",
1859
+ "fastrand",
1860
+ "getrandom 0.3.1",
1861
+ "once_cell",
1862
+ "rustix",
1863
+ "windows-sys 0.59.0",
1864
+ ]
1865
+
1866
+ [[package]]
1867
+ name = "term"
1868
+ version = "0.7.0"
1869
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1870
+ checksum = "c59df8ac95d96ff9bede18eb7300b0fda5e5d8d90960e76f8e14ae765eedbf1f"
1871
+ dependencies = [
1872
+ "dirs-next",
1873
+ "rustversion",
1874
+ "winapi",
1875
+ ]
1876
+
1877
+ [[package]]
1878
+ name = "termcolor"
1879
+ version = "1.4.1"
1880
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1881
+ checksum = "06794f8f6c5c898b3275aebefa6b8a1cb24cd2c6c79397ab15774837a0bc5755"
1882
+ dependencies = [
1883
+ "winapi-util",
1884
+ ]
1885
+
1886
+ [[package]]
1887
+ name = "thiserror"
1888
+ version = "1.0.69"
1889
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1890
+ checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
1891
+ dependencies = [
1892
+ "thiserror-impl 1.0.69",
1893
+ ]
1894
+
1895
+ [[package]]
1896
+ name = "thiserror"
1897
+ version = "2.0.11"
1898
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1899
+ checksum = "d452f284b73e6d76dd36758a0c8684b1d5be31f92b89d07fd5822175732206fc"
1900
+ dependencies = [
1901
+ "thiserror-impl 2.0.11",
1902
+ ]
1903
+
1904
+ [[package]]
1905
+ name = "thiserror-impl"
1906
+ version = "1.0.69"
1907
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1908
+ checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
1909
+ dependencies = [
1910
+ "proc-macro2",
1911
+ "quote",
1912
+ "syn",
1913
+ ]
1914
+
1915
+ [[package]]
1916
+ name = "thiserror-impl"
1917
+ version = "2.0.11"
1918
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1919
+ checksum = "26afc1baea8a989337eeb52b6e72a039780ce45c3edfcc9c5b9d112feeb173c2"
1920
+ dependencies = [
1921
+ "proc-macro2",
1922
+ "quote",
1923
+ "syn",
1924
+ ]
1925
+
1926
+ [[package]]
1927
+ name = "tinystr"
1928
+ version = "0.7.6"
1929
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1930
+ checksum = "9117f5d4db391c1cf6927e7bea3db74b9a1c1add8f7eda9ffd5364f40f57b82f"
1931
+ dependencies = [
1932
+ "displaydoc",
1933
+ "zerovec",
1934
+ ]
1935
+
1936
+ [[package]]
1937
+ name = "tinyvec"
1938
+ version = "1.8.1"
1939
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1940
+ checksum = "022db8904dfa342efe721985167e9fcd16c29b226db4397ed752a761cfce81e8"
1941
+ dependencies = [
1942
+ "tinyvec_macros",
1943
+ ]
1944
+
1945
+ [[package]]
1946
+ name = "tinyvec_macros"
1947
+ version = "0.1.1"
1948
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1949
+ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
1950
+
1951
+ [[package]]
1952
+ name = "tokio"
1953
+ version = "1.44.2"
1954
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1955
+ checksum = "e6b88822cbe49de4185e3a4cbf8321dd487cf5fe0c5c65695fef6346371e9c48"
1956
+ dependencies = [
1957
+ "backtrace",
1958
+ "bytes",
1959
+ "libc",
1960
+ "mio",
1961
+ "pin-project-lite",
1962
+ "socket2",
1963
+ "windows-sys 0.52.0",
1964
+ ]
1965
+
1966
+ [[package]]
1967
+ name = "tokio-native-tls"
1968
+ version = "0.3.1"
1969
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1970
+ checksum = "bbae76ab933c85776efabc971569dd6119c580d8f5d448769dec1764bf796ef2"
1971
+ dependencies = [
1972
+ "native-tls",
1973
+ "tokio",
1974
+ ]
1975
+
1976
+ [[package]]
1977
+ name = "tokio-rustls"
1978
+ version = "0.26.1"
1979
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1980
+ checksum = "5f6d0975eaace0cf0fcadee4e4aaa5da15b5c079146f2cffb67c113be122bf37"
1981
+ dependencies = [
1982
+ "rustls",
1983
+ "tokio",
1984
+ ]
1985
+
1986
+ [[package]]
1987
+ name = "tokio-util"
1988
+ version = "0.7.13"
1989
+ source = "registry+https://github.com/rust-lang/crates.io-index"
1990
+ checksum = "d7fcaa8d55a2bdd6b83ace262b016eca0d79ee02818c5c1bcdf0305114081078"
1991
+ dependencies = [
1992
+ "bytes",
1993
+ "futures-core",
1994
+ "futures-sink",
1995
+ "pin-project-lite",
1996
+ "tokio",
1997
+ ]
1998
+
1999
+ [[package]]
2000
+ name = "tower"
2001
+ version = "0.5.2"
2002
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2003
+ checksum = "d039ad9159c98b70ecfd540b2573b97f7f52c3e8d9f8ad57a24b916a536975f9"
2004
+ dependencies = [
2005
+ "futures-core",
2006
+ "futures-util",
2007
+ "pin-project-lite",
2008
+ "sync_wrapper",
2009
+ "tokio",
2010
+ "tower-layer",
2011
+ "tower-service",
2012
+ ]
2013
+
2014
+ [[package]]
2015
+ name = "tower-layer"
2016
+ version = "0.3.3"
2017
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2018
+ checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
2019
+
2020
+ [[package]]
2021
+ name = "tower-service"
2022
+ version = "0.3.3"
2023
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2024
+ checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
2025
+
2026
+ [[package]]
2027
+ name = "tracing"
2028
+ version = "0.1.41"
2029
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2030
+ checksum = "784e0ac535deb450455cbfa28a6f0df145ea1bb7ae51b821cf5e7927fdcfbdd0"
2031
+ dependencies = [
2032
+ "pin-project-lite",
2033
+ "tracing-core",
2034
+ ]
2035
+
2036
+ [[package]]
2037
+ name = "tracing-core"
2038
+ version = "0.1.33"
2039
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2040
+ checksum = "e672c95779cf947c5311f83787af4fa8fffd12fb27e4993211a84bdfd9610f9c"
2041
+ dependencies = [
2042
+ "once_cell",
2043
+ ]
2044
+
2045
+ [[package]]
2046
+ name = "try-lock"
2047
+ version = "0.2.5"
2048
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2049
+ checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
2050
+
2051
+ [[package]]
2052
+ name = "unicode-ident"
2053
+ version = "1.0.16"
2054
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2055
+ checksum = "a210d160f08b701c8721ba1c726c11662f877ea6b7094007e1ca9a1041945034"
2056
+
2057
+ [[package]]
2058
+ name = "unicode-width"
2059
+ version = "0.1.14"
2060
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2061
+ checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"
2062
+
2063
+ [[package]]
2064
+ name = "untrusted"
2065
+ version = "0.9.0"
2066
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2067
+ checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
2068
+
2069
+ [[package]]
2070
+ name = "url"
2071
+ version = "2.5.4"
2072
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2073
+ checksum = "32f8b686cadd1473f4bd0117a5d28d36b1ade384ea9b5069a1c40aefed7fda60"
2074
+ dependencies = [
2075
+ "form_urlencoded",
2076
+ "idna",
2077
+ "percent-encoding",
2078
+ ]
2079
+
2080
+ [[package]]
2081
+ name = "utf16_iter"
2082
+ version = "1.0.5"
2083
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2084
+ checksum = "c8232dd3cdaed5356e0f716d285e4b40b932ac434100fe9b7e0e8e935b9e6246"
2085
+
2086
+ [[package]]
2087
+ name = "utf8_iter"
2088
+ version = "1.0.4"
2089
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2090
+ checksum = "b6c140620e7ffbb22c2dee59cafe6084a59b5ffc27a8859a5f0d494b5d52b6be"
2091
+
2092
+ [[package]]
2093
+ name = "utf8parse"
2094
+ version = "0.2.2"
2095
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2096
+ checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
2097
+
2098
+ [[package]]
2099
+ name = "vcpkg"
2100
+ version = "0.2.15"
2101
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2102
+ checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
2103
+
2104
+ [[package]]
2105
+ name = "want"
2106
+ version = "0.3.1"
2107
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2108
+ checksum = "bfa7760aed19e106de2c7c0b581b509f2f25d3dacaf737cb82ac61bc6d760b0e"
2109
+ dependencies = [
2110
+ "try-lock",
2111
+ ]
2112
+
2113
+ [[package]]
2114
+ name = "wasi"
2115
+ version = "0.11.0+wasi-snapshot-preview1"
2116
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2117
+ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
2118
+
2119
+ [[package]]
2120
+ name = "wasi"
2121
+ version = "0.13.3+wasi-0.2.2"
2122
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2123
+ checksum = "26816d2e1a4a36a2940b96c5296ce403917633dff8f3440e9b236ed6f6bacad2"
2124
+ dependencies = [
2125
+ "wit-bindgen-rt",
2126
+ ]
2127
+
2128
+ [[package]]
2129
+ name = "wasm-bindgen"
2130
+ version = "0.2.100"
2131
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2132
+ checksum = "1edc8929d7499fc4e8f0be2262a241556cfc54a0bea223790e71446f2aab1ef5"
2133
+ dependencies = [
2134
+ "cfg-if",
2135
+ "once_cell",
2136
+ "rustversion",
2137
+ "wasm-bindgen-macro",
2138
+ ]
2139
+
2140
+ [[package]]
2141
+ name = "wasm-bindgen-backend"
2142
+ version = "0.2.100"
2143
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2144
+ checksum = "2f0a0651a5c2bc21487bde11ee802ccaf4c51935d0d3d42a6101f98161700bc6"
2145
+ dependencies = [
2146
+ "bumpalo",
2147
+ "log",
2148
+ "proc-macro2",
2149
+ "quote",
2150
+ "syn",
2151
+ "wasm-bindgen-shared",
2152
+ ]
2153
+
2154
+ [[package]]
2155
+ name = "wasm-bindgen-futures"
2156
+ version = "0.4.50"
2157
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2158
+ checksum = "555d470ec0bc3bb57890405e5d4322cc9ea83cebb085523ced7be4144dac1e61"
2159
+ dependencies = [
2160
+ "cfg-if",
2161
+ "js-sys",
2162
+ "once_cell",
2163
+ "wasm-bindgen",
2164
+ "web-sys",
2165
+ ]
2166
+
2167
+ [[package]]
2168
+ name = "wasm-bindgen-macro"
2169
+ version = "0.2.100"
2170
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2171
+ checksum = "7fe63fc6d09ed3792bd0897b314f53de8e16568c2b3f7982f468c0bf9bd0b407"
2172
+ dependencies = [
2173
+ "quote",
2174
+ "wasm-bindgen-macro-support",
2175
+ ]
2176
+
2177
+ [[package]]
2178
+ name = "wasm-bindgen-macro-support"
2179
+ version = "0.2.100"
2180
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2181
+ checksum = "8ae87ea40c9f689fc23f209965b6fb8a99ad69aeeb0231408be24920604395de"
2182
+ dependencies = [
2183
+ "proc-macro2",
2184
+ "quote",
2185
+ "syn",
2186
+ "wasm-bindgen-backend",
2187
+ "wasm-bindgen-shared",
2188
+ ]
2189
+
2190
+ [[package]]
2191
+ name = "wasm-bindgen-shared"
2192
+ version = "0.2.100"
2193
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2194
+ checksum = "1a05d73b933a847d6cccdda8f838a22ff101ad9bf93e33684f39c1f5f0eece3d"
2195
+ dependencies = [
2196
+ "unicode-ident",
2197
+ ]
2198
+
2199
+ [[package]]
2200
+ name = "web"
2201
+ version = "0.1.0"
2202
+ dependencies = [
2203
+ "graphql_client",
2204
+ "js-sys",
2205
+ "reqwest",
2206
+ "wasm-bindgen",
2207
+ "wasm-bindgen-futures",
2208
+ "web-sys",
2209
+ ]
2210
+
2211
+ [[package]]
2212
+ name = "web-sys"
2213
+ version = "0.3.77"
2214
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2215
+ checksum = "33b6dd2ef9186f1f2072e409e99cd22a975331a6b3591b12c764e0e55c60d5d2"
2216
+ dependencies = [
2217
+ "js-sys",
2218
+ "wasm-bindgen",
2219
+ ]
2220
+
2221
+ [[package]]
2222
+ name = "web-time"
2223
+ version = "1.1.0"
2224
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2225
+ checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
2226
+ dependencies = [
2227
+ "js-sys",
2228
+ "wasm-bindgen",
2229
+ ]
2230
+
2231
+ [[package]]
2232
+ name = "webpki-roots"
2233
+ version = "0.26.8"
2234
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2235
+ checksum = "2210b291f7ea53617fbafcc4939f10914214ec15aace5ba62293a668f322c5c9"
2236
+ dependencies = [
2237
+ "rustls-pki-types",
2238
+ ]
2239
+
2240
+ [[package]]
2241
+ name = "winapi"
2242
+ version = "0.3.9"
2243
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2244
+ checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
2245
+ dependencies = [
2246
+ "winapi-i686-pc-windows-gnu",
2247
+ "winapi-x86_64-pc-windows-gnu",
2248
+ ]
2249
+
2250
+ [[package]]
2251
+ name = "winapi-i686-pc-windows-gnu"
2252
+ version = "0.4.0"
2253
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2254
+ checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
2255
+
2256
+ [[package]]
2257
+ name = "winapi-util"
2258
+ version = "0.1.9"
2259
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2260
+ checksum = "cf221c93e13a30d793f7645a0e7762c55d169dbb0a49671918a2319d289b10bb"
2261
+ dependencies = [
2262
+ "windows-sys 0.59.0",
2263
+ ]
2264
+
2265
+ [[package]]
2266
+ name = "winapi-x86_64-pc-windows-gnu"
2267
+ version = "0.4.0"
2268
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2269
+ checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
2270
+
2271
+ [[package]]
2272
+ name = "windows-registry"
2273
+ version = "0.2.0"
2274
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2275
+ checksum = "e400001bb720a623c1c69032f8e3e4cf09984deec740f007dd2b03ec864804b0"
2276
+ dependencies = [
2277
+ "windows-result",
2278
+ "windows-strings",
2279
+ "windows-targets",
2280
+ ]
2281
+
2282
+ [[package]]
2283
+ name = "windows-result"
2284
+ version = "0.2.0"
2285
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2286
+ checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"
2287
+ dependencies = [
2288
+ "windows-targets",
2289
+ ]
2290
+
2291
+ [[package]]
2292
+ name = "windows-strings"
2293
+ version = "0.1.0"
2294
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2295
+ checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"
2296
+ dependencies = [
2297
+ "windows-result",
2298
+ "windows-targets",
2299
+ ]
2300
+
2301
+ [[package]]
2302
+ name = "windows-sys"
2303
+ version = "0.52.0"
2304
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2305
+ checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
2306
+ dependencies = [
2307
+ "windows-targets",
2308
+ ]
2309
+
2310
+ [[package]]
2311
+ name = "windows-sys"
2312
+ version = "0.59.0"
2313
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2314
+ checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
2315
+ dependencies = [
2316
+ "windows-targets",
2317
+ ]
2318
+
2319
+ [[package]]
2320
+ name = "windows-targets"
2321
+ version = "0.52.6"
2322
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2323
+ checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
2324
+ dependencies = [
2325
+ "windows_aarch64_gnullvm",
2326
+ "windows_aarch64_msvc",
2327
+ "windows_i686_gnu",
2328
+ "windows_i686_gnullvm",
2329
+ "windows_i686_msvc",
2330
+ "windows_x86_64_gnu",
2331
+ "windows_x86_64_gnullvm",
2332
+ "windows_x86_64_msvc",
2333
+ ]
2334
+
2335
+ [[package]]
2336
+ name = "windows_aarch64_gnullvm"
2337
+ version = "0.52.6"
2338
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2339
+ checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
2340
+
2341
+ [[package]]
2342
+ name = "windows_aarch64_msvc"
2343
+ version = "0.52.6"
2344
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2345
+ checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
2346
+
2347
+ [[package]]
2348
+ name = "windows_i686_gnu"
2349
+ version = "0.52.6"
2350
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2351
+ checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
2352
+
2353
+ [[package]]
2354
+ name = "windows_i686_gnullvm"
2355
+ version = "0.52.6"
2356
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2357
+ checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
2358
+
2359
+ [[package]]
2360
+ name = "windows_i686_msvc"
2361
+ version = "0.52.6"
2362
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2363
+ checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
2364
+
2365
+ [[package]]
2366
+ name = "windows_x86_64_gnu"
2367
+ version = "0.52.6"
2368
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2369
+ checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
2370
+
2371
+ [[package]]
2372
+ name = "windows_x86_64_gnullvm"
2373
+ version = "0.52.6"
2374
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2375
+ checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
2376
+
2377
+ [[package]]
2378
+ name = "windows_x86_64_msvc"
2379
+ version = "0.52.6"
2380
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2381
+ checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
2382
+
2383
+ [[package]]
2384
+ name = "wit-bindgen-rt"
2385
+ version = "0.33.0"
2386
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2387
+ checksum = "3268f3d866458b787f390cf61f4bbb563b922d091359f9608842999eaee3943c"
2388
+ dependencies = [
2389
+ "bitflags",
2390
+ ]
2391
+
2392
+ [[package]]
2393
+ name = "write16"
2394
+ version = "1.0.0"
2395
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2396
+ checksum = "d1890f4022759daae28ed4fe62859b1236caebfc61ede2f63ed4e695f3f6d936"
2397
+
2398
+ [[package]]
2399
+ name = "writeable"
2400
+ version = "0.5.5"
2401
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2402
+ checksum = "1e9df38ee2d2c3c5948ea468a8406ff0db0b29ae1ffde1bcf20ef305bcc95c51"
2403
+
2404
+ [[package]]
2405
+ name = "yoke"
2406
+ version = "0.7.5"
2407
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2408
+ checksum = "120e6aef9aa629e3d4f52dc8cc43a015c7724194c97dfaf45180d2daf2b77f40"
2409
+ dependencies = [
2410
+ "serde",
2411
+ "stable_deref_trait",
2412
+ "yoke-derive",
2413
+ "zerofrom",
2414
+ ]
2415
+
2416
+ [[package]]
2417
+ name = "yoke-derive"
2418
+ version = "0.7.5"
2419
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2420
+ checksum = "2380878cad4ac9aac1e2435f3eb4020e8374b5f13c296cb75b4620ff8e229154"
2421
+ dependencies = [
2422
+ "proc-macro2",
2423
+ "quote",
2424
+ "syn",
2425
+ "synstructure",
2426
+ ]
2427
+
2428
+ [[package]]
2429
+ name = "zerocopy"
2430
+ version = "0.7.35"
2431
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2432
+ checksum = "1b9b4fd18abc82b8136838da5d50bae7bdea537c574d8dc1a34ed098d6c166f0"
2433
+ dependencies = [
2434
+ "byteorder",
2435
+ "zerocopy-derive",
2436
+ ]
2437
+
2438
+ [[package]]
2439
+ name = "zerocopy-derive"
2440
+ version = "0.7.35"
2441
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2442
+ checksum = "fa4f8080344d4671fb4e831a13ad1e68092748387dfc4f55e356242fae12ce3e"
2443
+ dependencies = [
2444
+ "proc-macro2",
2445
+ "quote",
2446
+ "syn",
2447
+ ]
2448
+
2449
+ [[package]]
2450
+ name = "zerofrom"
2451
+ version = "0.1.5"
2452
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2453
+ checksum = "cff3ee08c995dee1859d998dea82f7374f2826091dd9cd47def953cae446cd2e"
2454
+ dependencies = [
2455
+ "zerofrom-derive",
2456
+ ]
2457
+
2458
+ [[package]]
2459
+ name = "zerofrom-derive"
2460
+ version = "0.1.5"
2461
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2462
+ checksum = "595eed982f7d355beb85837f651fa22e90b3c044842dc7f2c2842c086f295808"
2463
+ dependencies = [
2464
+ "proc-macro2",
2465
+ "quote",
2466
+ "syn",
2467
+ "synstructure",
2468
+ ]
2469
+
2470
+ [[package]]
2471
+ name = "zeroize"
2472
+ version = "1.8.1"
2473
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2474
+ checksum = "ced3678a2879b30306d323f4542626697a464a97c0a07c9aebf7ebca65cd4dde"
2475
+
2476
+ [[package]]
2477
+ name = "zerovec"
2478
+ version = "0.10.4"
2479
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2480
+ checksum = "aa2b893d79df23bfb12d5461018d408ea19dfafe76c2c7ef6d4eba614f8ff079"
2481
+ dependencies = [
2482
+ "yoke",
2483
+ "zerofrom",
2484
+ "zerovec-derive",
2485
+ ]
2486
+
2487
+ [[package]]
2488
+ name = "zerovec-derive"
2489
+ version = "0.10.3"
2490
+ source = "registry+https://github.com/rust-lang/crates.io-index"
2491
+ checksum = "6eafa6dfb17584ea3e2bd6e76e0cc15ad7af12b09abdd1ca55961bed9b1063c6"
2492
+ dependencies = [
2493
+ "proc-macro2",
2494
+ "quote",
2495
+ "syn",
2496
+ ]
2497
+ PB_LOCK
2498
+
2499
+ # Sanity check: the generated workspace root manifest must exist.
2500
+ if [ ! -f "$PB_DIR/ws/Cargo.toml" ]; then
2501
+ fail
2502
+ fi
2503
+
2504
+ # Populate the registry cache with the exact locked versions. This only
2505
+ # resolves and downloads dependency sources; it compiles nothing. --locked
2506
+ # keeps the pinned (including yanked) versions selected by the embedded lock.
2507
+ if ! cargo fetch --manifest-path "$PB_DIR/ws/Cargo.toml" --locked; then
2508
+ fail
2509
+ fi
2510
+
2511
+ # The registry cache is now populated with the exact locked versions, so the
2512
+ # offline build stage can run fully offline without touching the network.
graphql-rust--graphql-client.91f/tests/executable ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:77b737bd86dde2a5efea8fe47c61833caf238245c364525ea688bd11abdc9448
3
+ size 9950336
graphql-rust--graphql-client.91f/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
graphql-rust--graphql-client.91f/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,37 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ command -v cargo
4
+ command -v rustc
5
+ command -v rustup
6
+ cd /workspace
7
+ set -a
8
+ source /tmp/programgym-download.sh
9
+ set +a
10
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
11
+ import os
12
+ import shlex
13
+
14
+ ignored = {
15
+ "ALL_PROXY",
16
+ "HTTP_PROXY",
17
+ "HTTPS_PROXY",
18
+ "NO_PROXY",
19
+ "OLDPWD",
20
+ "PIP_PROXY",
21
+ "PWD",
22
+ "SHLVL",
23
+ "_",
24
+ "all_proxy",
25
+ "http_proxy",
26
+ "https_proxy",
27
+ "no_proxy",
28
+ "pip_proxy",
29
+ }
30
+ for key in sorted(os.environ):
31
+ if key in ignored or key.startswith("BASH_FUNC_"):
32
+ continue
33
+ value = os.environ[key]
34
+ if "\n" in value:
35
+ continue
36
+ print(f"export {key}={shlex.quote(value)}")
37
+ PY
graphql-rust--graphql-client.91f/tests/programgym_evaluator.py ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()
graphql-rust--graphql-client.91f/tests/programgym_task.json ADDED
@@ -0,0 +1,916 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [],
7
+ "tests": [
8
+ "eval.tests.test_arg_parsing.test_generate_rejects_unknown_flag",
9
+ "eval.tests.test_arg_parsing.test_generate_requires_query_path",
10
+ "eval.tests.test_arg_parsing.test_generate_requires_schema_path_flag",
11
+ "eval.tests.test_arg_parsing.test_header_accepts_colon_inside_value",
12
+ "eval.tests.test_arg_parsing.test_header_accepts_leading_space_in_field_name",
13
+ "eval.tests.test_arg_parsing.test_header_accepts_no_whitespace_around_colon",
14
+ "eval.tests.test_arg_parsing.test_header_accepts_plain_pair_and_echoes_it",
15
+ "eval.tests.test_arg_parsing.test_header_rejects_empty_field_name",
16
+ "eval.tests.test_arg_parsing.test_header_rejects_missing_colon",
17
+ "eval.tests.test_arg_parsing.test_header_rejects_space_in_field_name",
18
+ "eval.tests.test_arg_parsing.test_header_rejects_tab_in_field_name",
19
+ "eval.tests.test_arg_parsing.test_introspect_schema_rejects_unknown_flag",
20
+ "eval.tests.test_arg_parsing.test_introspect_schema_requires_schema_location",
21
+ "eval.tests.test_arg_parsing.test_multiple_headers_all_echoed",
22
+ "eval.tests.test_arg_parsing.test_no_ssl_flag_is_accepted_introspect",
23
+ "eval.tests.test_cli_entry.test_generate_help_matches_golden",
24
+ "eval.tests.test_cli_entry.test_generate_help_subcommand_matches_golden",
25
+ "eval.tests.test_cli_entry.test_help_for_unknown_command_reports_error",
26
+ "eval.tests.test_cli_entry.test_help_subcommand_matches_golden",
27
+ "eval.tests.test_cli_entry.test_introspect_schema_help_matches_golden",
28
+ "eval.tests.test_cli_entry.test_introspect_schema_help_subcommand_matches_golden",
29
+ "eval.tests.test_cli_entry.test_no_arguments_prints_usage_on_stderr",
30
+ "eval.tests.test_cli_entry.test_top_level_help_long_flag_matches_golden",
31
+ "eval.tests.test_cli_entry.test_top_level_help_short_flag_matches_golden",
32
+ "eval.tests.test_cli_entry.test_unknown_subcommand_exact_diagnostic",
33
+ "eval.tests.test_cli_entry.test_version_long_flag_exact",
34
+ "eval.tests.test_cli_entry.test_version_short_flag_exact",
35
+ "eval.tests.test_generate.test_generate_accepts_json_introspection_schema",
36
+ "eval.tests.test_generate.test_generate_all_operations_when_no_selection",
37
+ "eval.tests.test_generate.test_generate_codegen_error_missing_field_reported_exactly",
38
+ "eval.tests.test_generate.test_generate_custom_response_type_injects_alias",
39
+ "eval.tests.test_generate.test_generate_custom_scalars_module_invalid_errors_exactly",
40
+ "eval.tests.test_generate.test_generate_custom_scalars_module_valid",
41
+ "eval.tests.test_generate.test_generate_custom_variable_types_keeps_output_stable",
42
+ "eval.tests.test_generate.test_generate_default_emits_local_enum_with_serde",
43
+ "eval.tests.test_generate.test_generate_default_rustfmt_path_formats_output",
44
+ "eval.tests.test_generate.test_generate_deprecation_strategies_accepted",
45
+ "eval.tests.test_generate.test_generate_deprecation_strategy_allow_omits_deprecated_attribute",
46
+ "eval.tests.test_generate.test_generate_deprecation_strategy_deny_drops_deprecated_field",
47
+ "eval.tests.test_generate.test_generate_deprecation_strategy_warn_emits_deprecated_attribute",
48
+ "eval.tests.test_generate.test_generate_emits_exact_info_log",
49
+ "eval.tests.test_generate.test_generate_emits_no_log_without_rust_log",
50
+ "eval.tests.test_generate.test_generate_emits_operation_constant_and_variables",
51
+ "eval.tests.test_generate.test_generate_external_enums_accepted",
52
+ "eval.tests.test_generate.test_generate_external_enums_omits_local_enum_block",
53
+ "eval.tests.test_generate.test_generate_file_create_error_reported",
54
+ "eval.tests.test_generate.test_generate_fragments_other_variant_accepted",
55
+ "eval.tests.test_generate.test_generate_info_log_off_env_var_silences_generate",
56
+ "eval.tests.test_generate.test_generate_info_log_reflects_output_directory",
57
+ "eval.tests.test_generate.test_generate_missing_query_file_fails_with_path",
58
+ "eval.tests.test_generate.test_generate_missing_schema_file_fails_with_path",
59
+ "eval.tests.test_generate.test_generate_module_visibility_inherited",
60
+ "eval.tests.test_generate.test_generate_module_visibility_pub",
61
+ "eval.tests.test_generate.test_generate_module_visibility_restricted",
62
+ "eval.tests.test_generate.test_generate_output_dir_nonexistent_parent_reported_exactly",
63
+ "eval.tests.test_generate.test_generate_output_directory_long_flag_placement",
64
+ "eval.tests.test_generate.test_generate_output_directory_placement",
65
+ "eval.tests.test_generate.test_generate_response_derives_added",
66
+ "eval.tests.test_generate.test_generate_rustfmt_failure_panics_with_stderr",
67
+ "eval.tests.test_generate.test_generate_selected_operation_filters_output",
68
+ "eval.tests.test_generate.test_generate_variables_and_response_max_derives",
69
+ "eval.tests.test_generate.test_generate_variables_derives_added",
70
+ "eval.tests.test_generate.test_generate_variables_serialize_and_response_deserialize",
71
+ "eval.tests.test_generate.test_generate_writes_rs_next_to_query",
72
+ "eval.tests.test_introspection.test_authorization_sent_as_bearer_token",
73
+ "eval.tests.test_introspection.test_both_variants_combined_operation_name",
74
+ "eval.tests.test_introspection.test_client_error_reports_http_status_and_pretty_json",
75
+ "eval.tests.test_introspection.test_client_error_with_plain_text_body",
76
+ "eval.tests.test_introspection.test_connection_refused_is_reported_exactly",
77
+ "eval.tests.test_introspection.test_custom_header_sent_exactly",
78
+ "eval.tests.test_introspection.test_introspect_trace_logging_with_output_file",
79
+ "eval.tests.test_introspection.test_introspect_with_debug_logging_still_succeeds",
80
+ "eval.tests.test_introspection.test_introspect_with_trace_logging_still_succeeds",
81
+ "eval.tests.test_introspection.test_is_one_of_variant_operation_name",
82
+ "eval.tests.test_introspection.test_multiple_custom_headers_sent",
83
+ "eval.tests.test_introspection.test_output_file_create_failure_reports_exact_error",
84
+ "eval.tests.test_introspection.test_plain_text_200_body_reports_decode_error",
85
+ "eval.tests.test_introspection.test_plain_variant_uses_default_operation_name",
86
+ "eval.tests.test_introspection.test_request_content_type_is_application_json",
87
+ "eval.tests.test_introspection.test_server_error_reports_exact_message",
88
+ "eval.tests.test_introspection.test_specify_by_url_variant_operation_name_and_directive",
89
+ "eval.tests.test_introspection.test_success_prints_valid_introspection_json",
90
+ "eval.tests.test_introspection.test_success_with_output_writes_file_and_silences_stdout",
91
+ "eval.tests.test_introspection.test_truncated_json_200_body_reports_decode_error"
92
+ ]
93
+ },
94
+ "generated_module_02": {
95
+ "ignore_reason": "",
96
+ "ignored": false,
97
+ "ignored_tests": [
98
+ {
99
+ "name": "eval.tests.test_schema_graphql.test_root_level_typename_only_produces_empty_tagged_enum",
100
+ "reasons": [
101
+ {
102
+ "id": "test_network_dependency",
103
+ "message": "test appears to depend on networking",
104
+ "path": "eval/tests/test_schema_graphql.py",
105
+ "repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
106
+ "severity": "error",
107
+ "stage": "static_lint"
108
+ }
109
+ ]
110
+ }
111
+ ],
112
+ "tests": [
113
+ "eval.tests.test_constants.test_catchtypename_injected_into_generated_module",
114
+ "eval.tests.test_constants.test_multi_field_subscription_reports_error",
115
+ "eval.tests.test_constants.test_unnamed_root_selection_set_reports_naming_error",
116
+ "eval.tests.test_schema_cli_behavior.test_custom_response_type_overrides_projected_object",
117
+ "eval.tests.test_schema_cli_behavior.test_default_output_written_next_to_query",
118
+ "eval.tests.test_schema_cli_behavior.test_external_enums_removes_enum_definition",
119
+ "eval.tests.test_schema_cli_behavior.test_fragments_other_variant_adds_unknown_to_union",
120
+ "eval.tests.test_schema_cli_behavior.test_generate_help_exact_golden",
121
+ "eval.tests.test_schema_cli_behavior.test_generate_missing_all_required_golden",
122
+ "eval.tests.test_schema_cli_behavior.test_generate_missing_schema_path_golden",
123
+ "eval.tests.test_schema_cli_behavior.test_gql_extension_accepted",
124
+ "eval.tests.test_schema_cli_behavior.test_introspect_schema_help_exact_golden",
125
+ "eval.tests.test_schema_cli_behavior.test_module_visibility_inherited",
126
+ "eval.tests.test_schema_cli_behavior.test_module_visibility_private_marks_structs_private",
127
+ "eval.tests.test_schema_cli_behavior.test_output_directory_places_file_in_dir",
128
+ "eval.tests.test_schema_cli_behavior.test_output_directory_uses_query_base_name",
129
+ "eval.tests.test_schema_cli_behavior.test_response_derives_option_accepted",
130
+ "eval.tests.test_schema_cli_behavior.test_selected_operation_names_generated_module",
131
+ "eval.tests.test_schema_cli_behavior.test_top_level_help_exact_golden",
132
+ "eval.tests.test_schema_cli_behavior.test_variables_derives_option_accepted",
133
+ "eval.tests.test_schema_cli_behavior.test_version_exact_golden",
134
+ "eval.tests.test_schema_errors.test_empty_query_file_panics",
135
+ "eval.tests.test_schema_errors.test_empty_schema_file_panics",
136
+ "eval.tests.test_schema_errors.test_empty_schema_json_panics",
137
+ "eval.tests.test_schema_errors.test_fragment_on_undefined_type_fails",
138
+ "eval.tests.test_schema_errors.test_gibberish_graphql_schema_panics",
139
+ "eval.tests.test_schema_errors.test_graphqls_extension_parses_without_parser_panic",
140
+ "eval.tests.test_schema_errors.test_json_non_convertible_type_panics",
141
+ "eval.tests.test_schema_errors.test_json_schema_missing_schema_panics",
142
+ "eval.tests.test_schema_errors.test_malformed_graphql_schema_panics_with_parser_error",
143
+ "eval.tests.test_schema_errors.test_malformed_json_schema_panics",
144
+ "eval.tests.test_schema_errors.test_missing_output_directory_is_an_error",
145
+ "eval.tests.test_schema_errors.test_missing_query_file",
146
+ "eval.tests.test_schema_errors.test_missing_schema_file",
147
+ "eval.tests.test_schema_errors.test_mutation_missing_mutation_root_reports_error",
148
+ "eval.tests.test_schema_errors.test_query_selecting_unknown_field_fails",
149
+ "eval.tests.test_schema_errors.test_unsupported_extension_panics",
150
+ "eval.tests.test_schema_graphql.test_basic_query_schema_generates_module",
151
+ "eval.tests.test_schema_graphql.test_basic_schema_emits_operation_and_query_strings",
152
+ "eval.tests.test_schema_graphql.test_custom_scalars_module_redirects_alias_path",
153
+ "eval.tests.test_schema_graphql.test_default_scalars_never_aliased",
154
+ "eval.tests.test_schema_graphql.test_deprecated_directive_parsed_with_reason",
155
+ "eval.tests.test_schema_graphql.test_deprecation_deny_removes_annotations_from_module",
156
+ "eval.tests.test_schema_graphql.test_deprecation_strategy_controls_annotation[allow-ResponseData { pub old : Option < String > , pub current : Option < String > , }]",
157
+ "eval.tests.test_schema_graphql.test_deprecation_strategy_controls_annotation[deny-ResponseData { pub current : Option < String > , }]",
158
+ "eval.tests.test_schema_graphql.test_deprecation_strategy_controls_annotation[warn-ResponseData { # [deprecated (note = \"use fresh\")] pub old : Option < String > , pub current : Option < String > , }]",
159
+ "eval.tests.test_schema_graphql.test_enum_field_and_list_variants",
160
+ "eval.tests.test_schema_graphql.test_field_alias_renames_projected_member",
161
+ "eval.tests.test_schema_graphql.test_field_argument_default_value_omitted_still_generates",
162
+ "eval.tests.test_schema_graphql.test_field_arguments_resolve_selected_list_value",
163
+ "eval.tests.test_schema_graphql.test_fragment_on_interface_generates_member_struct",
164
+ "eval.tests.test_schema_graphql.test_graphql_camel_case_field_rename",
165
+ "eval.tests.test_schema_graphql.test_graphql_custom_scalar_alias_emitted",
166
+ "eval.tests.test_schema_graphql.test_graphql_custom_scalar_becomes_type_alias",
167
+ "eval.tests.test_schema_graphql.test_graphql_enum_ingested_with_all_variants",
168
+ "eval.tests.test_schema_graphql.test_graphql_enum_serialize_and_deserialize_impls",
169
+ "eval.tests.test_schema_graphql.test_graphql_input_object_ingested",
170
+ "eval.tests.test_schema_graphql.test_graphql_interface_ingested_and_object_implements",
171
+ "eval.tests.test_schema_graphql.test_graphql_mutation_schema_operation",
172
+ "eval.tests.test_schema_graphql.test_graphql_required_vs_optional_field",
173
+ "eval.tests.test_schema_graphql.test_graphql_subscription_schema_operation",
174
+ "eval.tests.test_schema_graphql.test_graphql_union_ingested",
175
+ "eval.tests.test_schema_graphql.test_graphql_union_without_typename_reports_error",
176
+ "eval.tests.test_schema_graphql.test_interface_field_projects_flattened_fragment_union",
177
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[a-pub a : Option < String >]",
178
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[b-pub b : Option < Vec < Option < Int >> >]",
179
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[c-pub c : Option < Vec < Int > >]",
180
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[d-pub d : Vec < Option < Int >>]",
181
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[e-pub e : Vec < Int >]",
182
+ "eval.tests.test_schema_graphql.test_list_nullability_qualifiers_graphql[f-pub f : Option < Vec < Option < Vec < Option < String >> >> >]",
183
+ "eval.tests.test_schema_graphql.test_list_schema_emits_all_selected_fields",
184
+ "eval.tests.test_schema_graphql.test_no_schema_definition_defaults_to_query_root",
185
+ "eval.tests.test_schema_graphql.test_non_null_list_of_string_field",
186
+ "eval.tests.test_schema_graphql.test_object_type_extension_field_merged",
187
+ "eval.tests.test_schema_graphql.test_oneof_input_directive_parses",
188
+ "eval.tests.test_schema_graphql.test_override_query_without_schema_definition_only_query",
189
+ "eval.tests.test_schema_graphql.test_recursive_input_indirection_boxes_type",
190
+ "eval.tests.test_schema_graphql.test_root_level_typename_only_produces_empty_tagged_enum",
191
+ "eval.tests.test_schema_graphql_edge.test_enum_reserved_keyword_variants_get_suffix",
192
+ "eval.tests.test_schema_graphql_edge.test_explicit_schema_query_root_uses_non_default_name",
193
+ "eval.tests.test_schema_graphql_edge.test_explicit_schema_root_not_found_error_names_root",
194
+ "eval.tests.test_schema_graphql_edge.test_field_argument_inline_values_preserved_in_query_text[arg_field.graphql-hello_arg.graphql-QUERY : & str = \"query Hello { hello(arg: 5) }\\\\n\"]",
195
+ "eval.tests.test_schema_graphql_edge.test_field_argument_inline_values_preserved_in_query_text[enum_arg.graphql-paint.graphql-QUERY : & str = \"query Paint { paint(c: GREEN) }\\\\n\"]",
196
+ "eval.tests.test_schema_graphql_edge.test_nested_input_object_list_field_drives_variables_and_structs",
197
+ "eval.tests.test_schema_graphql_edge.test_object_type_extension_merging_implements_and_fields",
198
+ "eval.tests.test_schema_json.test_json_bare_schema_envelope_generates",
199
+ "eval.tests.test_schema_json.test_json_custom_scalar_when_field_selected_surfaces_alias",
200
+ "eval.tests.test_schema_json.test_json_default_scalars_excluded_from_custom",
201
+ "eval.tests.test_schema_json.test_json_directive_locations_serde",
202
+ "eval.tests.test_schema_json.test_json_enum_ingested",
203
+ "eval.tests.test_schema_json.test_json_enum_serialize_impl",
204
+ "eval.tests.test_schema_json.test_json_full_response_envelope_generates",
205
+ "eval.tests.test_schema_json.test_json_input_object_field_drives_variables",
206
+ "eval.tests.test_schema_json.test_json_interface_and_object_implements",
207
+ "eval.tests.test_schema_json.test_json_mutation_and_subscription_root_types_present",
208
+ "eval.tests.test_schema_json.test_json_mutation_root_type_selected",
209
+ "eval.tests.test_schema_json.test_json_object_and_required_field",
210
+ "eval.tests.test_schema_json.test_json_subscription_root_type_selected",
211
+ "eval.tests.test_schema_json.test_json_union_and_input_object_ingested",
212
+ "eval.tests.test_schema_json.test_json_unknown_enum_kind_renders_as_named",
213
+ "eval.tests.test_schema_json_types.test_json_date_time_required_field_not_alias_selected",
214
+ "eval.tests.test_schema_json_types.test_json_list_of_object_resolves_nested_struct",
215
+ "eval.tests.test_schema_json_types.test_json_selected_field_missing_on_object_errors",
216
+ "eval.tests.test_schema_operations.test_fragment_spread_generates_fragment_struct_and_alias",
217
+ "eval.tests.test_schema_operations.test_multiple_operations_all_emitted",
218
+ "eval.tests.test_schema_operations.test_selected_operation_emits_only_that_module",
219
+ "eval.tests.test_schema_operations.test_selected_operation_no_match_generates_all_operations"
220
+ ]
221
+ },
222
+ "generated_module_03": {
223
+ "ignore_reason": "",
224
+ "ignored": false,
225
+ "ignored_tests": [
226
+ {
227
+ "name": "eval.tests.test_selection.test_interface_inline_fragment_non_implementer_rejected",
228
+ "reasons": [
229
+ {
230
+ "id": "golden_written_in_test",
231
+ "message": "pytest test writes to its own golden file",
232
+ "path": "eval/tests/test_selection.py",
233
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
234
+ "severity": "error",
235
+ "stage": "static_lint"
236
+ }
237
+ ]
238
+ },
239
+ {
240
+ "name": "eval.tests.test_selection.test_union_field_only_allows_typename_inline_and_spreads",
241
+ "reasons": [
242
+ {
243
+ "id": "golden_written_in_test",
244
+ "message": "pytest test writes to its own golden file",
245
+ "path": "eval/tests/test_selection.py",
246
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
247
+ "severity": "error",
248
+ "stage": "static_lint"
249
+ }
250
+ ]
251
+ },
252
+ {
253
+ "name": "eval.tests.test_selection.test_union_field_with_typename_and_inline_fragments_ok",
254
+ "reasons": [
255
+ {
256
+ "id": "golden_written_in_test",
257
+ "message": "pytest test writes to its own golden file",
258
+ "path": "eval/tests/test_selection.py",
259
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
260
+ "severity": "error",
261
+ "stage": "static_lint"
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "name": "eval.tests.test_selection.test_union_inline_fragment_non_member_rejected",
267
+ "reasons": [
268
+ {
269
+ "id": "golden_written_in_test",
270
+ "message": "pytest test writes to its own golden file",
271
+ "path": "eval/tests/test_selection.py",
272
+ "repair_hint": "Read committed golden data instead of writing expected output inside the test.",
273
+ "severity": "error",
274
+ "stage": "static_lint"
275
+ }
276
+ ]
277
+ }
278
+ ],
279
+ "tests": [
280
+ "eval.tests.test_additional_scenarios.test_alias_on_interface_member_field",
281
+ "eval.tests.test_additional_scenarios.test_custom_scalar_as_variable_type",
282
+ "eval.tests.test_additional_scenarios.test_deep_interface_chain_implements_naming",
283
+ "eval.tests.test_additional_scenarios.test_enum_nested_in_input_object_used_types",
284
+ "eval.tests.test_additional_scenarios.test_external_enums_absent_emits_default_enum",
285
+ "eval.tests.test_additional_scenarios.test_external_enums_omits_enum_definition",
286
+ "eval.tests.test_additional_scenarios.test_fragment_used_only_in_nonselected_operation_not_emitted",
287
+ "eval.tests.test_additional_scenarios.test_fragments_other_variant_adds_serde_other_unknown",
288
+ "eval.tests.test_additional_scenarios.test_interface_fragment_spread_without_typename_in_field_rejected",
289
+ "eval.tests.test_additional_scenarios.test_list_of_input_objects_variable",
290
+ "eval.tests.test_additional_scenarios.test_multiple_fragment_spreads_in_one_interface_field_merge",
291
+ "eval.tests.test_additional_scenarios.test_mutation_reaching_union_field_resolves_enum",
292
+ "eval.tests.test_additional_scenarios.test_nested_input_object_recursive_used_types",
293
+ "eval.tests.test_additional_scenarios.test_object_fragment_spread_conflicting_typename_not_required",
294
+ "eval.tests.test_additional_scenarios.test_selected_operation_with_fragment_only_generates_that_operation",
295
+ "eval.tests.test_additional_scenarios.test_subscription_selecting_interface_field",
296
+ "eval.tests.test_additional_scenarios.test_triple_member_union_resolves_all_variants",
297
+ "eval.tests.test_cli_options.test_custom_scalars_module_absent_defaults_to_crate_name",
298
+ "eval.tests.test_cli_options.test_custom_scalars_module_aliases_scalar",
299
+ "eval.tests.test_cli_options.test_module_visibility_private",
300
+ "eval.tests.test_cli_options.test_response_derives_merge_extra",
301
+ "eval.tests.test_cli_options.test_variables_derives_merge_extra",
302
+ "eval.tests.test_fragments.test_enum_used_only_via_fragment_spread_emitted",
303
+ "eval.tests.test_fragments.test_fragment_chain_across_two_fragments",
304
+ "eval.tests.test_fragments.test_fragment_referencing_unknown_type_rejected",
305
+ "eval.tests.test_fragments.test_fragment_spread_at_operation_root",
306
+ "eval.tests.test_fragments.test_fragment_spread_inlines_selected_fields",
307
+ "eval.tests.test_fragments.test_fragment_spread_missing_fragment_rejected",
308
+ "eval.tests.test_fragments.test_fragment_spread_on_object_field_without_typename_ok",
309
+ "eval.tests.test_fragments.test_fragment_union_without_typename_rejected",
310
+ "eval.tests.test_fragments.test_fragment_with_typename_resolves",
311
+ "eval.tests.test_fragments.test_mutually_recursive_fragment_chain_resolves",
312
+ "eval.tests.test_operations.test_anonymous_query_rejected",
313
+ "eval.tests.test_operations.test_mixed_operation_document_generates_each",
314
+ "eval.tests.test_operations.test_multiple_query_operations_in_one_document",
315
+ "eval.tests.test_operations.test_multiple_subscription_fields_rejected",
316
+ "eval.tests.test_operations.test_mutation_operation_generated",
317
+ "eval.tests.test_operations.test_mutation_resolving_union_field",
318
+ "eval.tests.test_operations.test_mutation_without_mutation_type_is_rejected",
319
+ "eval.tests.test_operations.test_named_query_operation_generates_module",
320
+ "eval.tests.test_operations.test_query_operation_name_matches_definition",
321
+ "eval.tests.test_operations.test_selected_operation_filters_generated_operations",
322
+ "eval.tests.test_operations.test_subscription_operation_generated",
323
+ "eval.tests.test_operations.test_subscription_without_subscription_type_is_rejected",
324
+ "eval.tests.test_path_segments.test_inline_fragment_exact_object_type_match_ok",
325
+ "eval.tests.test_path_segments.test_inline_fragment_on_union_member_type_ok",
326
+ "eval.tests.test_path_segments.test_interface_type_condition_on_own_type_ok",
327
+ "eval.tests.test_path_segments.test_nested_field_path_struct_names",
328
+ "eval.tests.test_path_segments.test_nested_union_struct_names",
329
+ "eval.tests.test_path_segments.test_object_field_nested_under_inline_fragment_named",
330
+ "eval.tests.test_path_segments.test_opaque_scalar_leaf_naming",
331
+ "eval.tests.test_path_segments.test_typename_inside_inline_fragment_does_not_satisfy_union_requirement",
332
+ "eval.tests.test_path_segments.test_union_type_condition_on_own_type_ok",
333
+ "eval.tests.test_query_coverage_scenarios.test_deep_three_level_object_nesting_names",
334
+ "eval.tests.test_query_coverage_scenarios.test_duplicate_field_selection_not_deduped",
335
+ "eval.tests.test_query_coverage_scenarios.test_enum_field_at_response_root",
336
+ "eval.tests.test_query_coverage_scenarios.test_interface_inline_fragment_on_own_type_empty_variant_union",
337
+ "eval.tests.test_query_coverage_scenarios.test_list_of_interfaces_non_null_elements",
338
+ "eval.tests.test_query_coverage_scenarios.test_list_of_non_null_objects_nesting",
339
+ "eval.tests.test_query_coverage_scenarios.test_list_of_objects_nesting",
340
+ "eval.tests.test_query_coverage_scenarios.test_mixed_nullable_and_non_null_variables",
341
+ "eval.tests.test_query_coverage_scenarios.test_nested_alias_deep_composite_naming",
342
+ "eval.tests.test_query_coverage_scenarios.test_non_null_enum_variable_binds_plain",
343
+ "eval.tests.test_query_coverage_scenarios.test_non_null_input_object_variable_binds_non_option_members",
344
+ "eval.tests.test_query_coverage_scenarios.test_non_null_root_scalar_is_not_option",
345
+ "eval.tests.test_query_coverage_scenarios.test_nonexistent_selected_operation_falls_back_all",
346
+ "eval.tests.test_query_coverage_scenarios.test_selected_operation_mutation_filters",
347
+ "eval.tests.test_query_coverage_scenarios.test_two_implementer_interface_enum_payloads",
348
+ "eval.tests.test_query_coverage_scenarios.test_unknown_field_on_list_object_nested_rejected",
349
+ "eval.tests.test_schema_formats.test_default_output_written_next_to_query",
350
+ "eval.tests.test_schema_formats.test_mutually_recursive_fragments_resolve",
351
+ "eval.tests.test_schema_formats.test_recursive_fragment_resolves",
352
+ "eval.tests.test_schema_formats.test_schema_accepts_json_source",
353
+ "eval.tests.test_selection.test_alias_and_real_field_both_present",
354
+ "eval.tests.test_selection.test_alias_field_generates_from_alias",
355
+ "eval.tests.test_selection.test_inline_fragment_unknown_type_rejected",
356
+ "eval.tests.test_selection.test_interface_inline_fragment_implementer_ok",
357
+ "eval.tests.test_selection.test_interface_inline_fragment_non_implementer_rejected",
358
+ "eval.tests.test_selection.test_object_field_resolved",
359
+ "eval.tests.test_selection.test_selection_set_on_scalar_rejected",
360
+ "eval.tests.test_selection.test_union_field_only_allows_typename_inline_and_spreads",
361
+ "eval.tests.test_selection.test_union_field_typename_only_ok",
362
+ "eval.tests.test_selection.test_union_field_with_typename_and_inline_fragments_ok",
363
+ "eval.tests.test_selection.test_union_inline_fragment_member_ok",
364
+ "eval.tests.test_selection.test_union_inline_fragment_non_member_rejected",
365
+ "eval.tests.test_selection.test_unknown_field_on_inline_fragment_object_rejected",
366
+ "eval.tests.test_selection.test_unknown_field_on_nested_object_rejected",
367
+ "eval.tests.test_selection.test_unknown_field_on_object_rejected",
368
+ "eval.tests.test_type_condition_depth.test_custom_response_type_fragment_spread_root_rejected",
369
+ "eval.tests.test_type_condition_depth.test_custom_response_type_inline_fragment_root_rejected",
370
+ "eval.tests.test_type_condition_depth.test_custom_response_type_multi_field_root_rejected",
371
+ "eval.tests.test_type_condition_depth.test_custom_response_type_single_field_aliases_type",
372
+ "eval.tests.test_type_condition_depth.test_fragment_spread_nested_inside_inline_fragment_resolves",
373
+ "eval.tests.test_type_condition_depth.test_object_field_nested_inside_inline_fragment_path_naming",
374
+ "eval.tests.test_type_condition_depth.test_object_parent_inline_fragment_on_unrelated_object_ok",
375
+ "eval.tests.test_typename_spread_depth.test_enum_default_variable_helper_uses_scalar",
376
+ "eval.tests.test_typename_spread_depth.test_interface_field_concrete_implementer_spread_with_typename_ok",
377
+ "eval.tests.test_typename_spread_depth.test_interface_field_typename_via_fragment_spread_passes",
378
+ "eval.tests.test_typename_spread_depth.test_interface_fragment_without_typename_used_in_field_error",
379
+ "eval.tests.test_typename_spread_depth.test_nullable_input_object_variable_used_type",
380
+ "eval.tests.test_typename_spread_depth.test_two_level_interface_fragment_spread_supplies_typename",
381
+ "eval.tests.test_typename_spread_depth.test_union_field_different_object_spread_without_typename_error",
382
+ "eval.tests.test_typename_spread_depth.test_union_field_member_object_spread_with_later_typename_ok",
383
+ "eval.tests.test_typename_spread_depth.test_union_field_same_type_fragment_without_typename_error",
384
+ "eval.tests.test_typename_spread_depth.test_union_fragment_spread_with_typename_same_type_ok",
385
+ "eval.tests.test_validation.test_interface_field_needs_typename",
386
+ "eval.tests.test_validation.test_interface_field_with_typename_ok",
387
+ "eval.tests.test_validation.test_object_field_does_not_need_typename",
388
+ "eval.tests.test_validation.test_union_field_needs_typename",
389
+ "eval.tests.test_validation.test_union_field_typename_via_fragment_spread_passes",
390
+ "eval.tests.test_validation.test_union_field_with_typename_ok",
391
+ "eval.tests.test_validation.test_union_fragment_needs_typename",
392
+ "eval.tests.test_validation.test_union_fragment_with_typename_ok",
393
+ "eval.tests.test_variables.test_enum_used_type_emitted",
394
+ "eval.tests.test_variables.test_enum_variable_used_type_emitted",
395
+ "eval.tests.test_variables.test_input_object_used_type_emitted",
396
+ "eval.tests.test_variables.test_no_variables_emits_empty_variables",
397
+ "eval.tests.test_variables.test_variable_default_becomes_option_with_helper",
398
+ "eval.tests.test_variables.test_variables_struct_describes_input_fields"
399
+ ]
400
+ },
401
+ "generated_module_04": {
402
+ "ignore_reason": "",
403
+ "ignored": false,
404
+ "ignored_tests": [
405
+ {
406
+ "name": "eval.tests.test_cli.test_generate_help_subcommand_reachable",
407
+ "reasons": [
408
+ {
409
+ "id": "missing_fixture_assets",
410
+ "message": "pytest test references fixture assets that are not packaged",
411
+ "path": "eval/tests/test_cli.py",
412
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
413
+ "severity": "error",
414
+ "stage": "static_lint"
415
+ }
416
+ ]
417
+ },
418
+ {
419
+ "name": "eval.tests.test_cli.test_generate_missing_required_args",
420
+ "reasons": [
421
+ {
422
+ "id": "missing_fixture_assets",
423
+ "message": "pytest test references fixture assets that are not packaged",
424
+ "path": "eval/tests/test_cli.py",
425
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
426
+ "severity": "error",
427
+ "stage": "static_lint"
428
+ }
429
+ ]
430
+ },
431
+ {
432
+ "name": "eval.tests.test_cli.test_generate_missing_schema_path_only",
433
+ "reasons": [
434
+ {
435
+ "id": "missing_fixture_assets",
436
+ "message": "pytest test references fixture assets that are not packaged",
437
+ "path": "eval/tests/test_cli.py",
438
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
439
+ "severity": "error",
440
+ "stage": "static_lint"
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "name": "eval.tests.test_cli.test_help_subcommand_reachable",
446
+ "reasons": [
447
+ {
448
+ "id": "missing_fixture_assets",
449
+ "message": "pytest test references fixture assets that are not packaged",
450
+ "path": "eval/tests/test_cli.py",
451
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
452
+ "severity": "error",
453
+ "stage": "static_lint"
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "name": "eval.tests.test_cli.test_introspect_schema_help_reachable",
459
+ "reasons": [
460
+ {
461
+ "id": "missing_fixture_assets",
462
+ "message": "pytest test references fixture assets that are not packaged",
463
+ "path": "eval/tests/test_cli.py",
464
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
465
+ "severity": "error",
466
+ "stage": "static_lint"
467
+ }
468
+ ]
469
+ },
470
+ {
471
+ "name": "eval.tests.test_cli.test_no_subcommand_prints_usage_and_exits_2",
472
+ "reasons": [
473
+ {
474
+ "id": "missing_fixture_assets",
475
+ "message": "pytest test references fixture assets that are not packaged",
476
+ "path": "eval/tests/test_cli.py",
477
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
478
+ "severity": "error",
479
+ "stage": "static_lint"
480
+ }
481
+ ]
482
+ },
483
+ {
484
+ "name": "eval.tests.test_cli.test_top_level_help_exact",
485
+ "reasons": [
486
+ {
487
+ "id": "missing_fixture_assets",
488
+ "message": "pytest test references fixture assets that are not packaged",
489
+ "path": "eval/tests/test_cli.py",
490
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
491
+ "severity": "error",
492
+ "stage": "static_lint"
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "name": "eval.tests.test_cli.test_top_level_help_short_flag",
498
+ "reasons": [
499
+ {
500
+ "id": "missing_fixture_assets",
501
+ "message": "pytest test references fixture assets that are not packaged",
502
+ "path": "eval/tests/test_cli.py",
503
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
504
+ "severity": "error",
505
+ "stage": "static_lint"
506
+ }
507
+ ]
508
+ },
509
+ {
510
+ "name": "eval.tests.test_cli.test_unknown_introspect_option_rejected",
511
+ "reasons": [
512
+ {
513
+ "id": "missing_fixture_assets",
514
+ "message": "pytest test references fixture assets that are not packaged",
515
+ "path": "eval/tests/test_cli.py",
516
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
517
+ "severity": "error",
518
+ "stage": "static_lint"
519
+ }
520
+ ]
521
+ },
522
+ {
523
+ "name": "eval.tests.test_cli.test_unknown_subcommand_rejected",
524
+ "reasons": [
525
+ {
526
+ "id": "missing_fixture_assets",
527
+ "message": "pytest test references fixture assets that are not packaged",
528
+ "path": "eval/tests/test_cli.py",
529
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
530
+ "severity": "error",
531
+ "stage": "static_lint"
532
+ }
533
+ ]
534
+ },
535
+ {
536
+ "name": "eval.tests.test_codegen_external_features.test_external_enums_partial_keeps_unlisted",
537
+ "reasons": [
538
+ {
539
+ "id": "short_substring",
540
+ "message": "pytest test uses a too-short substring oracle",
541
+ "path": "eval/tests/test_codegen_external_features.py",
542
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
543
+ "severity": "error",
544
+ "stage": "static_lint"
545
+ }
546
+ ]
547
+ },
548
+ {
549
+ "name": "eval.tests.test_codegen_external_features.test_subscription_generates_target_struct_and_module",
550
+ "reasons": [
551
+ {
552
+ "id": "short_substring",
553
+ "message": "pytest test uses a too-short substring oracle",
554
+ "path": "eval/tests/test_codegen_external_features.py",
555
+ "repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
556
+ "severity": "error",
557
+ "stage": "static_lint"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "name": "eval.tests.test_generate_basic.test_enum_field_generated_with_other_variant",
563
+ "reasons": [
564
+ {
565
+ "id": "missing_fixture_assets",
566
+ "message": "pytest test references fixture assets that are not packaged",
567
+ "path": "eval/tests/test_generate_basic.py",
568
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
569
+ "severity": "error",
570
+ "stage": "static_lint"
571
+ }
572
+ ]
573
+ },
574
+ {
575
+ "name": "eval.tests.test_generate_errors.test_custom_scalar_module_invalid_path_mapped_error",
576
+ "reasons": [
577
+ {
578
+ "id": "missing_fixture_assets",
579
+ "message": "pytest test references fixture assets that are not packaged",
580
+ "path": "eval/tests/test_generate_errors.py",
581
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
582
+ "severity": "error",
583
+ "stage": "static_lint"
584
+ }
585
+ ]
586
+ },
587
+ {
588
+ "name": "eval.tests.test_generate_errors.test_document_with_only_a_fragment_mapped_error",
589
+ "reasons": [
590
+ {
591
+ "id": "missing_fixture_assets",
592
+ "message": "pytest test references fixture assets that are not packaged",
593
+ "path": "eval/tests/test_generate_errors.py",
594
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
595
+ "severity": "error",
596
+ "stage": "static_lint"
597
+ }
598
+ ]
599
+ },
600
+ {
601
+ "name": "eval.tests.test_generate_errors.test_empty_query_file_panics",
602
+ "reasons": [
603
+ {
604
+ "id": "missing_fixture_assets",
605
+ "message": "pytest test references fixture assets that are not packaged",
606
+ "path": "eval/tests/test_generate_errors.py",
607
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
608
+ "severity": "error",
609
+ "stage": "static_lint"
610
+ }
611
+ ]
612
+ },
613
+ {
614
+ "name": "eval.tests.test_generate_errors.test_fragment_without_typename_mapped_error",
615
+ "reasons": [
616
+ {
617
+ "id": "missing_fixture_assets",
618
+ "message": "pytest test references fixture assets that are not packaged",
619
+ "path": "eval/tests/test_generate_errors.py",
620
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
621
+ "severity": "error",
622
+ "stage": "static_lint"
623
+ }
624
+ ]
625
+ },
626
+ {
627
+ "name": "eval.tests.test_generate_errors.test_invalid_graphql_query_syntax_panics",
628
+ "reasons": [
629
+ {
630
+ "id": "missing_fixture_assets",
631
+ "message": "pytest test references fixture assets that are not packaged",
632
+ "path": "eval/tests/test_generate_errors.py",
633
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
634
+ "severity": "error",
635
+ "stage": "static_lint"
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "name": "eval.tests.test_generate_errors.test_invalid_graphql_schema_content_panics",
641
+ "reasons": [
642
+ {
643
+ "id": "missing_fixture_assets",
644
+ "message": "pytest test references fixture assets that are not packaged",
645
+ "path": "eval/tests/test_generate_errors.py",
646
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
647
+ "severity": "error",
648
+ "stage": "static_lint"
649
+ }
650
+ ]
651
+ },
652
+ {
653
+ "name": "eval.tests.test_generate_errors.test_invalid_json_schema_panics",
654
+ "reasons": [
655
+ {
656
+ "id": "missing_fixture_assets",
657
+ "message": "pytest test references fixture assets that are not packaged",
658
+ "path": "eval/tests/test_generate_errors.py",
659
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
660
+ "severity": "error",
661
+ "stage": "static_lint"
662
+ }
663
+ ]
664
+ },
665
+ {
666
+ "name": "eval.tests.test_generate_errors.test_missing_query_file_panics",
667
+ "reasons": [
668
+ {
669
+ "id": "missing_fixture_assets",
670
+ "message": "pytest test references fixture assets that are not packaged",
671
+ "path": "eval/tests/test_generate_errors.py",
672
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
673
+ "severity": "error",
674
+ "stage": "static_lint"
675
+ }
676
+ ]
677
+ },
678
+ {
679
+ "name": "eval.tests.test_generate_errors.test_missing_schema_file_panics",
680
+ "reasons": [
681
+ {
682
+ "id": "missing_fixture_assets",
683
+ "message": "pytest test references fixture assets that are not packaged",
684
+ "path": "eval/tests/test_generate_errors.py",
685
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
686
+ "severity": "error",
687
+ "stage": "static_lint"
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "name": "eval.tests.test_generate_errors.test_query_path_is_directory_panics_read_error",
693
+ "reasons": [
694
+ {
695
+ "id": "missing_fixture_assets",
696
+ "message": "pytest test references fixture assets that are not packaged",
697
+ "path": "eval/tests/test_generate_errors.py",
698
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
699
+ "severity": "error",
700
+ "stage": "static_lint"
701
+ }
702
+ ]
703
+ },
704
+ {
705
+ "name": "eval.tests.test_generate_errors.test_schema_path_is_directory_panics_read_error",
706
+ "reasons": [
707
+ {
708
+ "id": "missing_fixture_assets",
709
+ "message": "pytest test references fixture assets that are not packaged",
710
+ "path": "eval/tests/test_generate_errors.py",
711
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
712
+ "severity": "error",
713
+ "stage": "static_lint"
714
+ }
715
+ ]
716
+ },
717
+ {
718
+ "name": "eval.tests.test_generate_errors.test_unknown_selected_field_validation_error",
719
+ "reasons": [
720
+ {
721
+ "id": "missing_fixture_assets",
722
+ "message": "pytest test references fixture assets that are not packaged",
723
+ "path": "eval/tests/test_generate_errors.py",
724
+ "repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
725
+ "severity": "error",
726
+ "stage": "static_lint"
727
+ }
728
+ ]
729
+ }
730
+ ],
731
+ "tests": [
732
+ "eval.tests.test_cli.test_generate_help_subcommand_reachable",
733
+ "eval.tests.test_cli.test_generate_missing_required_args",
734
+ "eval.tests.test_cli.test_generate_missing_schema_path_only",
735
+ "eval.tests.test_cli.test_generate_subcommand_help_lists_options",
736
+ "eval.tests.test_cli.test_help_subcommand_reachable",
737
+ "eval.tests.test_cli.test_introspect_schema_help_reachable",
738
+ "eval.tests.test_cli.test_no_subcommand_prints_usage_and_exits_2",
739
+ "eval.tests.test_cli.test_top_level_help_exact",
740
+ "eval.tests.test_cli.test_top_level_help_short_flag",
741
+ "eval.tests.test_cli.test_unknown_introspect_option_rejected",
742
+ "eval.tests.test_cli.test_unknown_subcommand_rejected",
743
+ "eval.tests.test_cli.test_version_long_flag",
744
+ "eval.tests.test_cli.test_version_short_flag",
745
+ "eval.tests.test_codegen_external_features.test_external_enum_variable_drops_enum_def_keeps_default_factory",
746
+ "eval.tests.test_codegen_external_features.test_external_enums_multiple_suppress_all_listed",
747
+ "eval.tests.test_codegen_external_features.test_external_enums_partial_keeps_unlisted",
748
+ "eval.tests.test_codegen_external_features.test_external_enums_removed_from_response_typing",
749
+ "eval.tests.test_codegen_external_features.test_interface_inline_spreads_generate_flattened_on_union",
750
+ "eval.tests.test_codegen_external_features.test_interface_selection_requires_typename_mapped_error",
751
+ "eval.tests.test_codegen_external_features.test_subscription_embeds_subscription_query_verbatim",
752
+ "eval.tests.test_codegen_external_features.test_subscription_generates_target_struct_and_module",
753
+ "eval.tests.test_codegen_external_features.test_subscription_response_nested_struct",
754
+ "eval.tests.test_codegen_features.test_enum_with_deprecated_value_still_generated",
755
+ "eval.tests.test_codegen_features.test_multi_interface_concrete_object_resolves_to_struct",
756
+ "eval.tests.test_codegen_features.test_mutation_draws_boolean_scalar_from_schema",
757
+ "eval.tests.test_codegen_features.test_mutation_operation_generates_target_struct",
758
+ "eval.tests.test_codegen_features.test_non_null_list_of_objects_is_non_optional_vec",
759
+ "eval.tests.test_codegen_features.test_non_null_list_variable_and_custom_scalar",
760
+ "eval.tests.test_generate_basic.test_alt_schema_extensions_generate[.gql]",
761
+ "eval.tests.test_generate_basic.test_alt_schema_extensions_generate[.graphqls]",
762
+ "eval.tests.test_generate_basic.test_default_output_directory_is_next_to_query",
763
+ "eval.tests.test_generate_basic.test_enum_field_generated_with_other_variant",
764
+ "eval.tests.test_generate_basic.test_fragment_generates_struct_and_type_alias",
765
+ "eval.tests.test_generate_basic.test_generate_all_operations_by_default",
766
+ "eval.tests.test_generate_basic.test_generate_succeeds_and_creates_file_next_to_query",
767
+ "eval.tests.test_generate_basic.test_generated_module_contains_operation_name_constant",
768
+ "eval.tests.test_generate_basic.test_generated_module_embeds_query_text_verbatim",
769
+ "eval.tests.test_generate_basic.test_generated_module_is_a_pub_mod_when_public_visibility",
770
+ "eval.tests.test_generate_basic.test_graphql_query_trait_impl_emitted",
771
+ "eval.tests.test_generate_basic.test_interface_mean_produces_on_enum",
772
+ "eval.tests.test_generate_basic.test_response_data_struct_composed_of_field_structs",
773
+ "eval.tests.test_generate_basic.test_scalar_type_aliases_emitted",
774
+ "eval.tests.test_generate_basic.test_selected_operation_generates_only_one",
775
+ "eval.tests.test_generate_basic.test_union_generates_payload_structs_per_variant",
776
+ "eval.tests.test_generate_basic.test_variables_struct_with_variable_field_and_rename",
777
+ "eval.tests.test_generate_errors.test_custom_scalar_module_invalid_path_mapped_error",
778
+ "eval.tests.test_generate_errors.test_document_with_only_a_fragment_mapped_error",
779
+ "eval.tests.test_generate_errors.test_empty_query_file_panics",
780
+ "eval.tests.test_generate_errors.test_fragment_without_typename_mapped_error",
781
+ "eval.tests.test_generate_errors.test_invalid_graphql_query_syntax_panics",
782
+ "eval.tests.test_generate_errors.test_invalid_graphql_schema_content_panics",
783
+ "eval.tests.test_generate_errors.test_invalid_json_schema_panics",
784
+ "eval.tests.test_generate_errors.test_missing_query_file_panics",
785
+ "eval.tests.test_generate_errors.test_missing_schema_file_panics",
786
+ "eval.tests.test_generate_errors.test_query_path_is_directory_panics_read_error",
787
+ "eval.tests.test_generate_errors.test_schema_path_is_directory_panics_read_error",
788
+ "eval.tests.test_generate_errors.test_unknown_selected_field_validation_error",
789
+ "eval.tests.test_generate_errors.test_unsupported_schema_extension_panics",
790
+ "eval.tests.test_generate_more.test_deep_nested_object_structs_generated",
791
+ "eval.tests.test_generate_more.test_enum_default_value_constructor_emitted",
792
+ "eval.tests.test_generate_more.test_field_alias_surfaces_as_snake_case_field",
793
+ "eval.tests.test_generate_more.test_int_default_value_constructor_emitted",
794
+ "eval.tests.test_generate_more.test_json_introspection_schema_generation",
795
+ "eval.tests.test_generate_more.test_no_variables_unit_struct",
796
+ "eval.tests.test_generate_options.test_custom_response_type_alias_single_field",
797
+ "eval.tests.test_generate_options.test_custom_response_type_requires_single_selection",
798
+ "eval.tests.test_generate_options.test_custom_scalar_defaults_to_super",
799
+ "eval.tests.test_generate_options.test_custom_scalars_module_overrides_to_default",
800
+ "eval.tests.test_generate_options.test_custom_variable_type_for_input_object",
801
+ "eval.tests.test_generate_options.test_deprecation_allow_emits_no_attribute",
802
+ "eval.tests.test_generate_options.test_deprecation_default_warn_emits_note",
803
+ "eval.tests.test_generate_options.test_deprecation_deny_omits_deprecated_fields",
804
+ "eval.tests.test_generate_options.test_deprecation_strategy_mismatch_ignored",
805
+ "eval.tests.test_generate_options.test_external_enum_not_regenerated",
806
+ "eval.tests.test_generate_options.test_fragments_other_variant_adds_catch_all",
807
+ "eval.tests.test_generate_options.test_internal_enum_regenerated_by_default",
808
+ "eval.tests.test_generate_options.test_module_visibility_default_is_pub",
809
+ "eval.tests.test_generate_options.test_module_visibility_inherited_removes_pub",
810
+ "eval.tests.test_generate_options.test_module_visibility_pubinpath_rendered",
811
+ "eval.tests.test_generate_options.test_output_directory_relocates_file",
812
+ "eval.tests.test_generate_options.test_response_derives_added_after_deserialize",
813
+ "eval.tests.test_generate_options.test_variables_derives_added_before_serialize",
814
+ "eval.tests.test_inputs_coverage.test_input_keyword_field_is_renamed",
815
+ "eval.tests.test_inputs_coverage.test_input_nested_list_of_optional_wrapping",
816
+ "eval.tests.test_inputs_coverage.test_multiple_inputs_generated_in_same_module",
817
+ "eval.tests.test_inputs_coverage.test_oneof_enum_uses_upper_camel_case_variants",
818
+ "eval.tests.test_inputs_coverage.test_oneof_input_generates_enum_not_struct",
819
+ "eval.tests.test_inputs_coverage.test_oneof_mutation_round_trip_through_struct",
820
+ "eval.tests.test_inputs_coverage.test_oneof_recursive_fields_are_boxed",
821
+ "eval.tests.test_inputs_coverage.test_oneof_required_qualifier_list_wrapping",
822
+ "eval.tests.test_inputs_coverage.test_oneof_variables_refer_to_enum_directly",
823
+ "eval.tests.test_inputs_coverage.test_plain_input_becomes_struct_with_optional_fields",
824
+ "eval.tests.test_inputs_coverage.test_recursive_input_field_is_boxed",
825
+ "eval.tests.test_inputs_coverage.test_rich_oneof_enumerates_scalar_and_object_variants",
826
+ "eval.tests.test_interface_lists.test_interface_list_on_union_with_bare_variant",
827
+ "eval.tests.test_interface_lists.test_list_of_interface_becomes_vec_of_wrapper"
828
+ ]
829
+ }
830
+ },
831
+ "commit": "91fda064bda675d17dd6eb2919fcfbb2a8315036",
832
+ "data_source": "synthetic_programgym",
833
+ "difficulty": "easy",
834
+ "difficulty_score": 1.808953299155911,
835
+ "eval_clean_hashes": [
836
+ "77b737bd86dde2a5efea8fe47c61833caf238245c364525ea688bd11abdc9448"
837
+ ],
838
+ "input_record": {
839
+ "codeql_db_mb": 84.63,
840
+ "codeql_status": true,
841
+ "codeql_time": 38.34311752486974,
842
+ "commit": "91fda064bda675d17dd6eb2919fcfbb2a8315036",
843
+ "commits": 850,
844
+ "contributors": 67,
845
+ "difficulty": "easy",
846
+ "difficulty_code_lines": 6441,
847
+ "difficulty_has_tests": false,
848
+ "difficulty_product_code_lines": 6441,
849
+ "difficulty_runtime_deps": 0,
850
+ "difficulty_score": 1.808953299155911,
851
+ "difficulty_test_code_lines": 1891,
852
+ "full_name": "graphql-rust/graphql-client",
853
+ "github_stars": 1261,
854
+ "input_codeql_db": "rust_codeql/graphql-rust__graphql-client",
855
+ "language": "rs",
856
+ "pb_match": [
857
+ {
858
+ "pb_fullname": "ducaale/xh",
859
+ "rank": 682,
860
+ "similarity": 0.48076480627059937
861
+ },
862
+ {
863
+ "pb_fullname": "Stranger6667/jsonschema",
864
+ "rank": 67,
865
+ "similarity": 0.4656788110733032
866
+ }
867
+ ],
868
+ "repo_age": 8.17,
869
+ "repo_path": "rust/graphql-rust__graphql-client",
870
+ "rust_channel": "stable",
871
+ "rust_edition": "no-sure",
872
+ "rust_release_date": "2022-12-15",
873
+ "rust_version": "1.66.0",
874
+ "rust_version_source": "rust-version",
875
+ "source": "commit:91fda064bda675d17dd6eb2919fcfbb2a8315036",
876
+ "status": "done",
877
+ "url": "https://github.com/graphql-rust/graphql-client"
878
+ },
879
+ "instance_id": "graphql-rust__graphql-client.91fda06",
880
+ "language": "rust",
881
+ "module_iterations": [
882
+ {
883
+ "actual_iterations": 4,
884
+ "branch_name": "generated_module_01",
885
+ "iteration_limit": 5,
886
+ "module_index": 1,
887
+ "module_kind": "source",
888
+ "termination_reason": "module_coverage_threshold_reached"
889
+ },
890
+ {
891
+ "actual_iterations": 5,
892
+ "branch_name": "generated_module_02",
893
+ "iteration_limit": 5,
894
+ "module_index": 2,
895
+ "module_kind": "source",
896
+ "termination_reason": "early_stopping"
897
+ },
898
+ {
899
+ "actual_iterations": 5,
900
+ "branch_name": "generated_module_03",
901
+ "iteration_limit": 5,
902
+ "module_index": 3,
903
+ "module_kind": "source",
904
+ "termination_reason": "max_iterations"
905
+ },
906
+ {
907
+ "actual_iterations": 5,
908
+ "branch_name": "generated_module_04",
909
+ "iteration_limit": 5,
910
+ "module_index": 4,
911
+ "module_kind": "source",
912
+ "termination_reason": "max_iterations"
913
+ }
914
+ ],
915
+ "repository": "graphql-rust/graphql-client"
916
+ }
graphql-rust--graphql-client.91f/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
graphql-rust--graphql-client.91f/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9c5b599a70d2cceff11653b9407356d85c243b59ccb6d709345ebba87cd2cbac
3
+ size 10087
green7ea--blog.19c92dd/environment/Dockerfile ADDED
@@ -0,0 +1,57 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
14
+ ENV npm_config_registry="https://registry.npmjs.org/"
15
+ ENV npm_config_strict_ssl=false
16
+ ENV npm_config_cache=/workspace/.cache/npm
17
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
18
+ ENV PIP_TRUSTED_HOST=""
19
+ ENV HOME=/workspace
20
+ ENV XDG_CACHE_HOME=/workspace/.cache
21
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
22
+ ENV PYTHONUSERBASE=/workspace/.local
23
+ ENV PAGER=cat
24
+ ENV MANPAGER=cat
25
+ ENV LESS=-R
26
+ ENV TQDM_DISABLE=1
27
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
28
+ ARG CMAKE_VERSION=3.31.10
29
+ ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
30
+ RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
31
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
32
+ ARG GCC_VERSION=13.3.0
33
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
34
+ WORKDIR /workspace
35
+ ADD workspace.tar.gz /workspace/
36
+ COPY executable /workspace/executable
37
+ COPY download.sh /workspace/download.sh
38
+ RUN chmod 755 /workspace/download.sh
39
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
40
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
41
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
42
+ && rm -f /workspace/download.sh \
43
+ && rm -f /tmp/harbor_prepare_download_env.sh
44
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
45
+ RUN chmod 111 /workspace/executable
46
+ WORKDIR /workspace
47
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
48
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
49
+ # submission handed to the separate verifier. Keep the reference executable
50
+ # execute-only; the oracle temporarily restores owner read permission.
51
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
52
+ RUN mkdir -p /home/agent \
53
+ && chown -R agent:agent /home/agent /workspace \
54
+ && chown agent:agent /workspace/executable \
55
+ && chmod 111 /workspace/executable
56
+ ENV HOME=/home/agent
57
+ WORKDIR /workspace
green7ea--blog.19c92dd/environment/download.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # ProgramGym download stage for the green7ea/blog "smart_ptr" C++ demo.
4
+ #
5
+ # Executed as: source /source_ro/download.sh
6
+ #
7
+ # The base image already provides everything the C++23 build needs, so this
8
+ # stage downloads and sets up nothing:
9
+ # * C/C++ compiler toolchain (xPack GCC 13.3.0), already the default g++/gcc
10
+ # on PATH,
11
+ # * make 4.3,
12
+ # * the C standard library and C++ standard library (libstdc++),
13
+ # * the AddressSanitizer runtime (libasan.so.8) bundled with the toolchain.
14
+ #
15
+ # Accordingly this stage is a documented no-op. It must be safe to source
16
+ # from the repository root, idempotent, and must not compile, link, test, or
17
+ # place any built artifact. It reads no repository files and needs no
18
+ # network access. All build and runtime environment preparation that depends
19
+ # on the toolchain location is performed by build.sh in the offline build
20
+ # workspace, where that on-disk toolchain is present.
21
+ :
green7ea--blog.19c92dd/environment/executable ADDED
Binary file (78.8 kB). View file
 
green7ea--blog.19c92dd/environment/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ source /workspace/download.sh
6
+ set +a
7
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
8
+ import os
9
+ import shlex
10
+
11
+ ignored = {
12
+ "ALL_PROXY",
13
+ "HTTP_PROXY",
14
+ "HTTPS_PROXY",
15
+ "NO_PROXY",
16
+ "OLDPWD",
17
+ "PIP_PROXY",
18
+ "PWD",
19
+ "SHLVL",
20
+ "_",
21
+ "all_proxy",
22
+ "http_proxy",
23
+ "https_proxy",
24
+ "no_proxy",
25
+ "pip_proxy",
26
+ }
27
+ for key in sorted(os.environ):
28
+ if key in ignored or key.startswith("BASH_FUNC_"):
29
+ continue
30
+ value = os.environ[key]
31
+ if "\n" in value:
32
+ continue
33
+ print(f"export {key}={shlex.quote(value)}")
34
+ PY
green7ea--blog.19c92dd/environment/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
green7ea--blog.19c92dd/environment/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15c48e66934876d39e681e15e8676c4f4ce585d4f1fce6852f2e75181a785c85
3
+ size 4760
green7ea--blog.19c92dd/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
green7ea--blog.19c92dd/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
green7ea--blog.19c92dd/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/green7ea--blog.19c92dd"
25
+ description = "Synthetic ProgramGym cleanroom reconstruction task for green7ea/blog"
26
+ authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
27
+ keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
28
+
29
+ [metadata]
30
+ source = "ProgramGym"
31
+ instance_id = "green7ea__blog.19c92dd"
32
+ repository = "green7ea/blog"
33
+ commit = "19c92dd48fbbc7a2fade5e2362b28e72e30aaa94"
34
+ language = "cpp"
35
+ difficulty = "easy"
36
+ difficulty_score = 0.5774917998372251
37
+ test_branches = 3
38
+ test_count = 416
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"
green7ea--blog.19c92dd/tests/Dockerfile ADDED
@@ -0,0 +1,65 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ENV DEBIAN_FRONTEND=noninteractive
3
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
4
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
5
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
6
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
7
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
8
+ ENV GOPROXY="https://proxy.golang.org,direct"
9
+ ENV GOSUMDB=sum.golang.google.cn
10
+ ENV GOTOOLCHAIN=auto
11
+ ENV UV_INSECURE_HOST=""
12
+ ENV UV_INDEX_URL="https://pypi.org/simple"
13
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
14
+ ENV npm_config_registry="https://registry.npmjs.org/"
15
+ ENV npm_config_strict_ssl=false
16
+ ENV npm_config_cache=/workspace/.cache/npm
17
+ ENV PIP_INDEX_URL="https://pypi.org/simple"
18
+ ENV PIP_TRUSTED_HOST=""
19
+ ENV HOME=/workspace
20
+ ENV XDG_CACHE_HOME=/workspace/.cache
21
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
22
+ ENV PYTHONUSERBASE=/workspace/.local
23
+ ENV PAGER=cat
24
+ ENV MANPAGER=cat
25
+ ENV LESS=-R
26
+ ENV TQDM_DISABLE=1
27
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
28
+ ARG CMAKE_VERSION=3.31.10
29
+ ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
30
+ RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
31
+ COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
32
+ ARG GCC_VERSION=13.3.0
33
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
34
+ WORKDIR /workspace
35
+ ADD workspace.tar.gz /workspace/
36
+ COPY executable /workspace/executable
37
+ COPY download.sh /workspace/download.sh
38
+ RUN chmod 755 /workspace/download.sh
39
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
40
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
41
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
42
+ && rm -f /workspace/download.sh \
43
+ && rm -f /tmp/harbor_prepare_download_env.sh
44
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
45
+ RUN chmod 111 /workspace/executable
46
+ WORKDIR /workspace
47
+ # Harbor uses tests/ as the separate verifier build context. Start with the
48
+ # same toolchain as the agent, then remove every cleanroom workspace artifact.
49
+ RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
50
+ && mkdir -p /workspace /tests
51
+
52
+ # Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
53
+ # Installing a newer pytest alone leaves that apt package importable and creates
54
+ # an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
55
+ # Install and constrain the verifier test runner as one coherent pip toolchain.
56
+ RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
57
+ ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
58
+ RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
59
+ 'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
60
+
61
+ COPY test.sh /tests/test.sh
62
+ COPY programgym_evaluator.py /tests/programgym_evaluator.py
63
+ COPY programgym_task.json /tests/programgym_task.json
64
+ COPY blobs/ /tests/blobs/
65
+ RUN chmod +x /tests/test.sh
green7ea--blog.19c92dd/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:ea649b2488da2faf9f322fd2f3fe03409c80d46ef3d93e9e1cd44ca4a21f0c10
3
+ size 24999
green7ea--blog.19c92dd/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:512856f0871ef992e8cfb67b37ed9ca31b716538e9f3cc8cdcc50b34442b8ff1
3
+ size 8058
green7ea--blog.19c92dd/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:e04c5528188c5deb163667601b1baa4786ebb3c748df47e690bae251ff452416
3
+ size 19265
green7ea--blog.19c92dd/tests/download.sh ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ #
3
+ # ProgramGym download stage for the green7ea/blog "smart_ptr" C++ demo.
4
+ #
5
+ # Executed as: source /source_ro/download.sh
6
+ #
7
+ # The base image already provides everything the C++23 build needs, so this
8
+ # stage downloads and sets up nothing:
9
+ # * C/C++ compiler toolchain (xPack GCC 13.3.0), already the default g++/gcc
10
+ # on PATH,
11
+ # * make 4.3,
12
+ # * the C standard library and C++ standard library (libstdc++),
13
+ # * the AddressSanitizer runtime (libasan.so.8) bundled with the toolchain.
14
+ #
15
+ # Accordingly this stage is a documented no-op. It must be safe to source
16
+ # from the repository root, idempotent, and must not compile, link, test, or
17
+ # place any built artifact. It reads no repository files and needs no
18
+ # network access. All build and runtime environment preparation that depends
19
+ # on the toolchain location is performed by build.sh in the offline build
20
+ # workspace, where that on-disk toolchain is present.
21
+ :
green7ea--blog.19c92dd/tests/executable ADDED
Binary file (78.8 kB). View file
 
green7ea--blog.19c92dd/tests/harbor_prepare_download_env.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ cd /workspace
4
+ set -a
5
+ source /workspace/download.sh
6
+ set +a
7
+ python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
8
+ import os
9
+ import shlex
10
+
11
+ ignored = {
12
+ "ALL_PROXY",
13
+ "HTTP_PROXY",
14
+ "HTTPS_PROXY",
15
+ "NO_PROXY",
16
+ "OLDPWD",
17
+ "PIP_PROXY",
18
+ "PWD",
19
+ "SHLVL",
20
+ "_",
21
+ "all_proxy",
22
+ "http_proxy",
23
+ "https_proxy",
24
+ "no_proxy",
25
+ "pip_proxy",
26
+ }
27
+ for key in sorted(os.environ):
28
+ if key in ignored or key.startswith("BASH_FUNC_"):
29
+ continue
30
+ value = os.environ[key]
31
+ if "\n" in value:
32
+ continue
33
+ print(f"export {key}={shlex.quote(value)}")
34
+ PY
green7ea--blog.19c92dd/tests/programgym-gcc13.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
3
+ size 146620404
green7ea--blog.19c92dd/tests/programgym_evaluator.py ADDED
@@ -0,0 +1,1201 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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()
green7ea--blog.19c92dd/tests/programgym_task.json ADDED
@@ -0,0 +1,562 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "branches": {
3
+ "generated_module_01": {
4
+ "ignore_reason": "",
5
+ "ignored": false,
6
+ "ignored_tests": [
7
+ {
8
+ "name": "eval.tests.test_byte_offset_oracle.test_anchor_offsets_strictly_increase",
9
+ "reasons": [
10
+ {
11
+ "detail": "empty executable run failed as expected with returncode=1",
12
+ "id": "dummy_pass",
13
+ "message": "test passed against the empty executable",
14
+ "repair_hint": "Assert concrete black-box executable behavior so an empty executable cannot satisfy the test.",
15
+ "severity": "error",
16
+ "stage": "dummy_execution"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "name": "eval.tests.test_byte_offset_oracle.test_asterisk_offsets_match_golden",
22
+ "reasons": [
23
+ {
24
+ "id": "golden_docstring",
25
+ "message": "pytest test docstring mentions golden data that is not used in the body",
26
+ "path": "eval/tests/test_byte_offset_oracle.py",
27
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
28
+ "severity": "error",
29
+ "stage": "static_lint"
30
+ },
31
+ {
32
+ "id": "golden_no_equality",
33
+ "message": "pytest test references golden data without equality comparison",
34
+ "path": "eval/tests/test_byte_offset_oracle.py",
35
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
36
+ "severity": "error",
37
+ "stage": "static_lint"
38
+ }
39
+ ]
40
+ },
41
+ {
42
+ "name": "eval.tests.test_byte_offset_oracle.test_port_tokens_are_separated_by_exact_gap",
43
+ "reasons": [
44
+ {
45
+ "id": "golden_docstring",
46
+ "message": "pytest test docstring mentions golden data that is not used in the body",
47
+ "path": "eval/tests/test_byte_offset_oracle.py",
48
+ "repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
49
+ "severity": "error",
50
+ "stage": "static_lint"
51
+ },
52
+ {
53
+ "id": "golden_no_equality",
54
+ "message": "pytest test references golden data without equality comparison",
55
+ "path": "eval/tests/test_byte_offset_oracle.py",
56
+ "repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
57
+ "severity": "error",
58
+ "stage": "static_lint"
59
+ }
60
+ ]
61
+ }
62
+ ],
63
+ "tests": [
64
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[bad_header_word]",
65
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[count_word_first]",
66
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[first_asterisk]",
67
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[first_digit_3]",
68
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[first_exclamation]",
69
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[good_header_word]",
70
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[hello_word]",
71
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[port_80_token]",
72
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[port_81_token]",
73
+ "eval.tests.test_byte_offset_oracle.test_anchor_byte_offset_matches_golden[port_word_first]",
74
+ "eval.tests.test_byte_offset_oracle.test_anchor_offsets_strictly_increase",
75
+ "eval.tests.test_byte_offset_oracle.test_asterisk_offsets_match_golden",
76
+ "eval.tests.test_byte_offset_oracle.test_bad_count_digit_three_occupies_offset_92",
77
+ "eval.tests.test_byte_offset_oracle.test_exclamation_offsets_pin_word_framing",
78
+ "eval.tests.test_byte_offset_oracle.test_first_digit_three_is_a_standalone_word",
79
+ "eval.tests.test_byte_offset_oracle.test_newline_grid_matches_golden",
80
+ "eval.tests.test_byte_offset_oracle.test_port_tokens_are_separated_by_exact_gap",
81
+ "eval.tests.test_config_format.test_port_line_full_format_matches_template",
82
+ "eval.tests.test_config_format.test_port_lines_are_two_and_only_in_tail",
83
+ "eval.tests.test_config_format.test_port_token_renders_as_pure_unsigned_digits",
84
+ "eval.tests.test_config_format.test_port_tokens_spell_exactly_80_then_81",
85
+ "eval.tests.test_config_output.test_config_example_follows_mutation_example",
86
+ "eval.tests.test_config_output.test_initial_port_line_present",
87
+ "eval.tests.test_config_output.test_only_two_port_lines_printed",
88
+ "eval.tests.test_config_output.test_port_incremented_by_one",
89
+ "eval.tests.test_config_output.test_port_is_integer_datum",
90
+ "eval.tests.test_config_output.test_post_update_port_line_present",
91
+ "eval.tests.test_config_semantics.test_config_block_follows_bad_count_block",
92
+ "eval.tests.test_config_semantics.test_config_block_is_last_two_lines",
93
+ "eval.tests.test_config_semantics.test_config_hostname_and_url_not_printed",
94
+ "eval.tests.test_config_semantics.test_config_initial_port_is_eighty",
95
+ "eval.tests.test_config_semantics.test_config_updated_port_increments_by_one",
96
+ "eval.tests.test_config_semantics.test_exactly_two_config_lines",
97
+ "eval.tests.test_config_semantics.test_ports_print_80_then_81",
98
+ "eval.tests.test_count_grammar.test_contains_word_spelled_exactly",
99
+ "eval.tests.test_count_grammar.test_correct_verb_plurality",
100
+ "eval.tests.test_count_grammar.test_count_line_ends_with_exact_suffix[bad_count_line]",
101
+ "eval.tests.test_count_grammar.test_count_line_ends_with_exact_suffix[good_count_line]",
102
+ "eval.tests.test_count_grammar.test_integer_glued_to_no_adjacent_word",
103
+ "eval.tests.test_count_grammar.test_letter_suffix_is_apostrophe_l_apostrophe_s_period",
104
+ "eval.tests.test_count_grammar.test_period_ends_both_count_lines",
105
+ "eval.tests.test_cross_line_structure.test_bad_word_differs_only_in_l_positions",
106
+ "eval.tests.test_cross_line_structure.test_bad_word_keeps_every_non_l_character",
107
+ "eval.tests.test_cross_line_structure.test_blocks_have_identical_two_plus_separator_geometry",
108
+ "eval.tests.test_cross_line_structure.test_good_and_bad_count_lines_equal_length",
109
+ "eval.tests.test_cross_line_structure.test_good_and_bad_share_constant_prefix",
110
+ "eval.tests.test_cross_line_structure.test_good_and_bad_share_constant_suffix",
111
+ "eval.tests.test_cross_line_structure.test_quoted_words_same_length",
112
+ "eval.tests.test_dead_path_negative_oracle.test_asterisk_marker_present_while_dead_strings_absent",
113
+ "eval.tests.test_dead_path_negative_oracle.test_driven_path_marker_is_present[bad_mutation_asterisks]",
114
+ "eval.tests.test_dead_path_negative_oracle.test_driven_path_marker_is_present[config_port_line]",
115
+ "eval.tests.test_dead_path_negative_oracle.test_driven_path_marker_is_present[config_updated_port_line]",
116
+ "eval.tests.test_dead_path_negative_oracle.test_driven_path_marker_is_present[good_string]",
117
+ "eval.tests.test_dead_path_negative_oracle.test_no_dead_helper_output_in_any_line",
118
+ "eval.tests.test_dead_path_negative_oracle.test_unreachable_helper_string_never_printed[mutate2_helper]",
119
+ "eval.tests.test_dead_path_negative_oracle.test_unreachable_helper_string_never_printed[mutate_helper]",
120
+ "eval.tests.test_dead_path_negative_oracle.test_unreachable_helper_string_never_printed[mutate_unique_helper]",
121
+ "eval.tests.test_format.test_all_lines_are_printable_ascii",
122
+ "eval.tests.test_format.test_block_separator_blank_lines_after_each_count",
123
+ "eval.tests.test_format.test_each_block_has_header_then_content",
124
+ "eval.tests.test_format.test_exact_single_trailing_newline",
125
+ "eval.tests.test_format.test_no_carriage_returns",
126
+ "eval.tests.test_format.test_no_line_has_trailing_whitespace",
127
+ "eval.tests.test_format.test_no_other_blank_lines",
128
+ "eval.tests.test_format.test_report_is_utf8_decodable",
129
+ "eval.tests.test_format.test_stderr_is_empty_on_success",
130
+ "eval.tests.test_leading_whitespace.test_no_double_space_anywhere",
131
+ "eval.tests.test_leading_whitespace.test_no_horizontal_whitespace_run_in_body",
132
+ "eval.tests.test_leading_whitespace.test_no_line_starts_with_space",
133
+ "eval.tests.test_leading_whitespace.test_no_line_starts_with_tab",
134
+ "eval.tests.test_leading_whitespace.test_no_tab_characters_anywhere",
135
+ "eval.tests.test_line_oracles.test_line_at_position[bad_block_count]",
136
+ "eval.tests.test_line_oracles.test_line_at_position[bad_block_header]",
137
+ "eval.tests.test_line_oracles.test_line_at_position[bad_block_separator]",
138
+ "eval.tests.test_line_oracles.test_line_at_position[good_block_count]",
139
+ "eval.tests.test_line_oracles.test_line_at_position[good_block_header]",
140
+ "eval.tests.test_line_oracles.test_line_at_position[good_block_separator]",
141
+ "eval.tests.test_line_oracles.test_line_at_position[initial_port_line]",
142
+ "eval.tests.test_line_oracles.test_line_at_position[updated_port_line]",
143
+ "eval.tests.test_line_oracles.test_line_order_matches_header_count_config",
144
+ "eval.tests.test_line_oracles.test_report_has_exactly_eight_body_lines",
145
+ "eval.tests.test_mutation_output.test_bad_count_reports_three_ls",
146
+ "eval.tests.test_mutation_output.test_count_printed_as_integer",
147
+ "eval.tests.test_mutation_output.test_good_count_reports_three_ls",
148
+ "eval.tests.test_mutation_output.test_good_count_section_printed",
149
+ "eval.tests.test_mutation_output.test_mutated_string_has_asterisks_in_l_positions",
150
+ "eval.tests.test_mutation_output.test_mutation_replacements_occur_in_bad_block_only",
151
+ "eval.tests.test_mutation_output.test_no_unmutated_l_survive_in_mutated_world",
152
+ "eval.tests.test_mutation_output.test_source_string_is_hello_shared_world",
153
+ "eval.tests.test_predictive_oracle.test_bad_line_does_not_contain_original_l_in_word_positions",
154
+ "eval.tests.test_predictive_oracle.test_bad_reports_same_computed_l_count",
155
+ "eval.tests.test_predictive_oracle.test_good_and_bad_lines_share_exact_string_prefix",
156
+ "eval.tests.test_predictive_oracle.test_good_line_keeps_original_string",
157
+ "eval.tests.test_predictive_oracle.test_good_reports_computed_l_count",
158
+ "eval.tests.test_predictive_oracle.test_l_position_becomes_asterisk[l_at_16]",
159
+ "eval.tests.test_predictive_oracle.test_l_position_becomes_asterisk[l_at_2]",
160
+ "eval.tests.test_predictive_oracle.test_l_position_becomes_asterisk[l_at_3]",
161
+ "eval.tests.test_predictive_oracle.test_mutation_preserves_length",
162
+ "eval.tests.test_predictive_oracle.test_predicted_mutation_matches_output",
163
+ "eval.tests.test_report_lengths.test_apostrophe_global_count_is_eight",
164
+ "eval.tests.test_report_lengths.test_asterisk_total_is_three",
165
+ "eval.tests.test_report_lengths.test_asterisks_replaced_ls_only_in_bad_line",
166
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[bad_count_line]",
167
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[bad_header]",
168
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[bad_separator]",
169
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[good_count_line]",
170
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[good_header]",
171
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[good_separator]",
172
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[initial_port]",
173
+ "eval.tests.test_report_lengths.test_body_line_length_at_position[updated_port]",
174
+ "eval.tests.test_report_lengths.test_single_quote_places_in_a_count_line[bad_count_line]",
175
+ "eval.tests.test_report_lengths.test_single_quote_places_in_a_count_line[good_count_line]",
176
+ "eval.tests.test_report_lengths.test_total_stdout_byte_length",
177
+ "eval.tests.test_smoke.test_exit_code_is_zero",
178
+ "eval.tests.test_smoke.test_runs_without_asan_shadow_abort",
179
+ "eval.tests.test_smoke.test_stdout_is_non_empty_report",
180
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_00]",
181
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_01]",
182
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_02]",
183
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_03]",
184
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_04]",
185
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_05]",
186
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_06]",
187
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_07]",
188
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_08]",
189
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_09]",
190
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_10]",
191
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_11]",
192
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_12]",
193
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_13]",
194
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_14]",
195
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_15]",
196
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_16]",
197
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_17]",
198
+ "eval.tests.test_source_transform.test_bad_line_transforms_source_char[pos_18]",
199
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_00]",
200
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_01]",
201
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_02]",
202
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_03]",
203
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_04]",
204
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_05]",
205
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_06]",
206
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_07]",
207
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_08]",
208
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_09]",
209
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_10]",
210
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_11]",
211
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_12]",
212
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_13]",
213
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_14]",
214
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_15]",
215
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_16]",
216
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_17]",
217
+ "eval.tests.test_source_transform.test_good_line_preserves_source_char[pos_18]",
218
+ "eval.tests.test_spacing_oracle.test_each_line_has_no_space_adjacent_to_line_edges",
219
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[bad_block_count]",
220
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[bad_block_header]",
221
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[bad_block_separator]",
222
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[good_block_count]",
223
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[good_block_header]",
224
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[good_block_separator]",
225
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[initial_port_line]",
226
+ "eval.tests.test_spacing_oracle.test_line_space_count_matches[updated_port_line]",
227
+ "eval.tests.test_spacing_oracle.test_report_contains_no_other_ascii_punctuation_beyond_inventory",
228
+ "eval.tests.test_spacing_oracle.test_total_space_count_equals_baseline",
229
+ "eval.tests.test_spacing_oracle.test_whole_report_has_exactly_three_asterisks",
230
+ "eval.tests.test_spacing_oracle.test_whole_report_period_count",
231
+ "eval.tests.test_stability.test_additional_stdin_shapes_do_not_change_output[expected_report_text_on_stdin]",
232
+ "eval.tests.test_stability.test_additional_stdin_shapes_do_not_change_output[flag_like_then_dashes]",
233
+ "eval.tests.test_stability.test_additional_stdin_shapes_do_not_change_output[invalid_utf8]",
234
+ "eval.tests.test_stability.test_additional_stdin_shapes_do_not_change_output[only_newlines]",
235
+ "eval.tests.test_stability.test_additional_stdin_shapes_do_not_change_output[very_long_stdin]",
236
+ "eval.tests.test_stability.test_additional_stray_argument_shapes_do_not_change_output[double_dash_then_empty]",
237
+ "eval.tests.test_stability.test_additional_stray_argument_shapes_do_not_change_output[empty_argument]",
238
+ "eval.tests.test_stability.test_additional_stray_argument_shapes_do_not_change_output[stacked_flags]",
239
+ "eval.tests.test_stability.test_additional_stray_argument_shapes_do_not_change_output[tab_only_argument]",
240
+ "eval.tests.test_stability.test_additional_stray_argument_shapes_do_not_change_output[very_long_argument]",
241
+ "eval.tests.test_stability.test_always_terminates_promptly",
242
+ "eval.tests.test_stability.test_ambient_env_does_not_change_output[default_env]",
243
+ "eval.tests.test_stability.test_ambient_env_does_not_change_output[lang_var]",
244
+ "eval.tests.test_stability.test_ambient_env_does_not_change_output[port_env_var]",
245
+ "eval.tests.test_stability.test_ambient_env_does_not_change_output[single_extra_var]",
246
+ "eval.tests.test_stability.test_ambient_env_does_not_change_output[term_var]",
247
+ "eval.tests.test_stability.test_no_arguments_identical_to_golden",
248
+ "eval.tests.test_stability.test_repeated_runs_are_identical",
249
+ "eval.tests.test_stability.test_stdin_is_ignored[binary]",
250
+ "eval.tests.test_stability.test_stdin_is_ignored[empty]",
251
+ "eval.tests.test_stability.test_stdin_is_ignored[flag_like]",
252
+ "eval.tests.test_stability.test_stdin_is_ignored[multi_line_ignored]",
253
+ "eval.tests.test_stability.test_stdin_is_ignored[plain_line]",
254
+ "eval.tests.test_stability.test_stdout_isolated_from_stderr",
255
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[double_dash]",
256
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[help_flag]",
257
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[short_h_flag]",
258
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[short_v_flag]",
259
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[single_positional]",
260
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[three_positionals]",
261
+ "eval.tests.test_stability.test_stray_arguments_do_not_change_output[version_flag]",
262
+ "eval.tests.test_stdout_exact.test_each_expected_line_appears_exactly_once",
263
+ "eval.tests.test_stdout_exact.test_golden_matches_inline_expected",
264
+ "eval.tests.test_stdout_exact.test_line_count_is_eight",
265
+ "eval.tests.test_stdout_exact.test_stdout_ends_with_single_trailing_newline",
266
+ "eval.tests.test_stdout_exact.test_stdout_has_no_carriage_returns",
267
+ "eval.tests.test_stdout_exact.test_stdout_matches_golden_file",
268
+ "eval.tests.test_stdout_exact.test_stdout_matches_inline_expected",
269
+ "eval.tests.test_token_oracle.test_every_nonempty_line_has_fewer_than_six_tokens",
270
+ "eval.tests.test_token_oracle.test_global_without_whitespace_equals_expected",
271
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[bad_block_count]",
272
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[bad_block_header]",
273
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[bad_block_separator]",
274
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[good_block_count]",
275
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[good_block_header]",
276
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[good_block_separator]",
277
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[initial_port_line]",
278
+ "eval.tests.test_token_oracle.test_line_token_stream_matches[updated_port_line]",
279
+ "eval.tests.test_token_oracle.test_only_the_expected_blank_lines_tokenize_to_empty"
280
+ ]
281
+ },
282
+ "generated_module_02": {
283
+ "ignore_reason": "",
284
+ "ignored": false,
285
+ "ignored_tests": [],
286
+ "tests": [
287
+ "eval.tests.test_smartptr_mutation.test_bad_body_print_is_exact",
288
+ "eval.tests.test_smartptr_mutation.test_bad_count_does_not_reprint_original",
289
+ "eval.tests.test_smartptr_mutation.test_bad_count_star_count_matches_l_count",
290
+ "eval.tests.test_smartptr_mutation.test_bad_mutation_keeps_length_equal",
291
+ "eval.tests.test_smartptr_mutation.test_bad_mutation_positions_match_l_positions",
292
+ "eval.tests.test_smartptr_mutation.test_bad_mutation_preserves_non_l_characters",
293
+ "eval.tests.test_smartptr_mutation.test_bad_mutation_removes_all_l",
294
+ "eval.tests.test_smartptr_mutation.test_bad_mutation_replaces_l_with_star",
295
+ "eval.tests.test_smartptr_mutation.test_bad_str_star_count_cross_checks_printed_count",
296
+ "eval.tests.test_smartptr_mutation.test_blank_line_separates_the_two_sections",
297
+ "eval.tests.test_smartptr_mutation.test_count_reflects_prime_letter_only",
298
+ "eval.tests.test_smartptr_mutation.test_documented_line_count_is_eight",
299
+ "eval.tests.test_smartptr_mutation.test_each_l_processed_exactly_once",
300
+ "eval.tests.test_smartptr_mutation.test_exclamation_stop_is_preserved_after_mutation",
301
+ "eval.tests.test_smartptr_mutation.test_first_line_is_good_count_header",
302
+ "eval.tests.test_smartptr_mutation.test_fresh_run_empty_stderr",
303
+ "eval.tests.test_smartptr_mutation.test_fresh_run_identical_to_prior_capture",
304
+ "eval.tests.test_smartptr_mutation.test_fresh_run_reproduces_exact_stdout",
305
+ "eval.tests.test_smartptr_mutation.test_golden_fixture_has_expected_nonempty_content",
306
+ "eval.tests.test_smartptr_mutation.test_golden_fixture_matches_live_output",
307
+ "eval.tests.test_smartptr_mutation.test_good_and_bad_counts_are_equal",
308
+ "eval.tests.test_smartptr_mutation.test_good_and_bad_share_one_pointee",
309
+ "eval.tests.test_smartptr_mutation.test_good_body_print_is_exact",
310
+ "eval.tests.test_smartptr_mutation.test_good_count_is_three_for_shared_word",
311
+ "eval.tests.test_smartptr_mutation.test_good_count_leaves_string_untouched",
312
+ "eval.tests.test_smartptr_mutation.test_good_lhs_quoted_and_rhs_quoted",
313
+ "eval.tests.test_smartptr_mutation.test_good_section_printed_before_bad_section",
314
+ "eval.tests.test_smartptr_mutation.test_good_str_count_cross_checks_printed_count",
315
+ "eval.tests.test_smartptr_mutation.test_good_string_character_multiset",
316
+ "eval.tests.test_smartptr_mutation.test_hyphenless_word_splits_preserved",
317
+ "eval.tests.test_smartptr_mutation.test_only_difference_is_l_to_star",
318
+ "eval.tests.test_smartptr_mutation.test_output_lines_match_expected_sequence",
319
+ "eval.tests.test_smartptr_mutation.test_parse_reconstructs_every_line",
320
+ "eval.tests.test_smartptr_mutation.test_port_lines_via_structured_parse",
321
+ "eval.tests.test_smartptr_mutation.test_program_exits_zero_and_stderr_empty",
322
+ "eval.tests.test_smartptr_mutation.test_programgym_executable_env_var_resolves",
323
+ "eval.tests.test_smartptr_mutation.test_stdout_contains_no_nul_bytes",
324
+ "eval.tests.test_smartptr_mutation.test_stdout_ends_with_final_newline",
325
+ "eval.tests.test_smartptr_mutation.test_stdout_is_exact_golden_fixture",
326
+ "eval.tests.test_smartptr_mutation.test_stdout_is_exact_literal",
327
+ "eval.tests.test_smartptr_mutation.test_stdout_is_utf8_clean",
328
+ "eval.tests.test_smartptr_mutation.test_word_bounds_are_preserved"
329
+ ]
330
+ },
331
+ "generated_module_03": {
332
+ "ignore_reason": "",
333
+ "ignored": false,
334
+ "ignored_tests": [],
335
+ "tests": [
336
+ "eval.tests.test_concurrency.TestConcurrentDeterminism.test_concurrent_runs_match_sequential_baseline",
337
+ "eval.tests.test_concurrency.TestConcurrentDeterminism.test_double_launch_through_python_shell_equal_golden",
338
+ "eval.tests.test_concurrency.TestConcurrentDeterminism.test_interleaved_fast_and_slow_runs_keep_golden",
339
+ "eval.tests.test_concurrency.TestConcurrentDeterminism.test_many_short_lived_processes_remain_stable",
340
+ "eval.tests.test_concurrency.TestConcurrentDeterminism.test_six_concurrent_runs_all_golden",
341
+ "eval.tests.test_config_watcher.TestConfigWatcherConstSemantics.test_ascii_port_number_boundaries",
342
+ "eval.tests.test_config_watcher.TestConfigWatcherConstSemantics.test_mutation_updates_follow_up_port",
343
+ "eval.tests.test_config_watcher.TestConfigWatcherConstSemantics.test_read_only_view_does_not_crash_on_access",
344
+ "eval.tests.test_config_watcher.TestConfigWatcherConstSemantics.test_shared_ptr_const_execution_is_clean",
345
+ "eval.tests.test_config_watcher.TestDefaultConfig.test_default_hostname_and_url_not_printed",
346
+ "eval.tests.test_config_watcher.TestDefaultConfig.test_exactly_one_initial_port_line",
347
+ "eval.tests.test_config_watcher.TestDefaultConfig.test_initial_config_line_is_first_port_line",
348
+ "eval.tests.test_config_watcher.TestDefaultConfig.test_initial_config_port_is_80",
349
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_config_is_shared_single_object",
350
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_exactly_two_config_snapshots",
351
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_final_port_line_is_81",
352
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_port_transition_is_exactly_plus_one",
353
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_update_config_increments_port_to_81",
354
+ "eval.tests.test_config_watcher.TestUpdateConfigTransition.test_update_config_line_is_last_output",
355
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[bare-help]",
356
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[config-flag]",
357
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[dash-h]",
358
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[dash-v]",
359
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[double-dash-help]",
360
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[double-dash-version]",
361
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[empty-string-arg]",
362
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[long-option-repeat]",
363
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[port-flag]",
364
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[server-mode]",
365
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[symbolic-args]",
366
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[three-args]",
367
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_does_not_change_output[unknown-option]",
368
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[help]",
369
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[no-args]",
370
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[separator]",
371
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[short-help]",
372
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[single-flag]",
373
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_argv_runs_identical_operations[version]",
374
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[long-config-path]",
375
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[long-dash-run]",
376
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[negative-port-flag]",
377
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[port-out-of-range]",
378
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[repeated-double-dash]",
379
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[ten-digit-args]",
380
+ "eval.tests.test_executable_interface.TestArgumentRobustness.test_exotic_argv_still_full_config[unicode-args]",
381
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[config-file-arg]",
382
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[config-lines-as-args]",
383
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[demo-string-arg]",
384
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[env-shaped-arg]",
385
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[equal-prefixed-arg]",
386
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[lone-dashes-mix]",
387
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[port-assignment-arg]",
388
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[quotes-and-space-args]",
389
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[separator-then-config]",
390
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_config_shaped_argv_is_inert[two-separators-only]",
391
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_newline_in_argv_is_inert",
392
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_single_space_argv_is_inert",
393
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[dash-n-numeric]",
394
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[dev-null]",
395
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[json-config-name]",
396
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[lone-dash-numbers]",
397
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[self-executable-name]",
398
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[short-c-flag]",
399
+ "eval.tests.test_executable_interface.TestConfigShapeArgv.test_tool_like_argv_is_inert[two-ports]",
400
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_config_like_env_inert[empty-path]",
401
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_config_like_env_inert[http-https-port-envs]",
402
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_config_like_env_inert[port-env]",
403
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_config_like_env_inert[smart-ptr-config-env]",
404
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_config_like_env_inert[smart-ptr-port-env]",
405
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[HOME-unset-elsewhere]",
406
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[LANG-C]",
407
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[LC_ALL-C]",
408
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[TMPDIR-tmp]",
409
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[config-file-env]",
410
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[dumb-terminal]",
411
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_environment_variables_inert[minimal-path]",
412
+ "eval.tests.test_executable_interface.TestEnvironmentRobustness.test_output_identical_with_different_working_dir",
413
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_branch_root_executable_produces_config_lifecycle",
414
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_executable_environment_variable_is_exported",
415
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_executable_is_runnable_and_executable_bit_set",
416
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_n_reinvocations_all_golden[quadruple]",
417
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_n_reinvocations_all_golden[triple]",
418
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_reinvocation_stability_with_semantic_oracle",
419
+ "eval.tests.test_executable_interface.TestExecutableDelivery.test_repeated_invocations_are_deterministic",
420
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[all-nul-block]",
421
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[config-line-injection]",
422
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[crlf-blank-lines]",
423
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[flag-injection]",
424
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[invalid-utf8-bytes]",
425
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_adversarial_stdin_does_not_perturb[unicode-stdin]",
426
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[binary-bytes]",
427
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[blank-lines]",
428
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[empty]",
429
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[long-y-run]",
430
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[multi-line]",
431
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[numeric-line]",
432
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[prompt-text]",
433
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[shell-looking]",
434
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_does_not_alter_output[single-line]",
435
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_is_fully_ignored[empty-stdin]",
436
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_is_fully_ignored[exit-quit-stdin]",
437
+ "eval.tests.test_executable_interface.TestStdinRobustness.test_stdin_is_fully_ignored[hello-stdin]",
438
+ "eval.tests.test_full_output.TestExactStdoutGolden.test_observed_output_equals_golden_config_section",
439
+ "eval.tests.test_full_output.TestExactStdoutGolden.test_real_output_config_lines_match_golden_lines",
440
+ "eval.tests.test_full_output.TestExactStdoutGolden.test_real_output_matches_golden_line_by_line",
441
+ "eval.tests.test_full_output.TestExactStdoutGolden.test_stdout_endswith_newline",
442
+ "eval.tests.test_full_output.TestExactStdoutGolden.test_stdout_matches_golden_exactly",
443
+ "eval.tests.test_full_output.TestExitContract.test_default_run_exit_zero_with_expected_output",
444
+ "eval.tests.test_full_output.TestExitContract.test_empty_stdin_run_exit_zero_with_output",
445
+ "eval.tests.test_full_output.TestExitContract.test_no_asan_errors_on_stderr",
446
+ "eval.tests.test_full_output.TestExitContract.test_no_stderr_produced",
447
+ "eval.tests.test_full_output.TestExitContract.test_success_emit_and_clean_stderr_together",
448
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_bad_count_mutates_string_in_place",
449
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_bad_count_reports_three_l",
450
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_good_before_bad_sections",
451
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_good_count_reports_three_l",
452
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_mutation_sections_precede_config",
453
+ "eval.tests.test_full_output.TestSmartPointerDemoContext.test_string_contains_twenty_characters",
454
+ "eval.tests.test_output_structure.TestOutputStructure.test_bad_section_precedes_config_section",
455
+ "eval.tests.test_output_structure.TestOutputStructure.test_blank_line_between_good_count_and_good_string",
456
+ "eval.tests.test_output_structure.TestOutputStructure.test_blank_lines_at_indices_two_and_five",
457
+ "eval.tests.test_output_structure.TestOutputStructure.test_every_line_ends_in_newline",
458
+ "eval.tests.test_output_structure.TestOutputStructure.test_every_nonblank_line_is_ascii",
459
+ "eval.tests.test_output_structure.TestOutputStructure.test_exact_byte_length_equals_golden",
460
+ "eval.tests.test_output_structure.TestOutputStructure.test_exactly_two_blank_separator_lines",
461
+ "eval.tests.test_output_structure.TestOutputStructure.test_first_line_is_good_count_heading",
462
+ "eval.tests.test_output_structure.TestOutputStructure.test_good_section_heading_precedes_bad_section",
463
+ "eval.tests.test_output_structure.TestOutputStructure.test_no_carriage_return_bytes",
464
+ "eval.tests.test_output_structure.TestOutputStructure.test_no_trailing_whitespace_on_content_lines",
465
+ "eval.tests.test_output_structure.TestOutputStructure.test_output_has_exactly_eight_lines",
466
+ "eval.tests.test_output_structure.TestOutputStructure.test_stdout_is_valid_utf8",
467
+ "eval.tests.test_stdio_and_invocation.TestLargeArgvTolerance.test_large_argv_chain_is_golden",
468
+ "eval.tests.test_stdio_and_invocation.TestLargeArgvTolerance.test_many_small_arguments_are_golden",
469
+ "eval.tests.test_stdio_and_invocation.TestLargeArgvTolerance.test_near_megabyte_argv_is_golden",
470
+ "eval.tests.test_stdio_and_invocation.TestProgramNameInvariance.test_custom_argv0_via_exec_a_is_golden",
471
+ "eval.tests.test_stdio_and_invocation.TestProgramNameInvariance.test_custom_argv0_with_arguments_is_golden",
472
+ "eval.tests.test_stdio_and_invocation.TestProgramNameInvariance.test_invoked_via_copied_program_name_is_golden",
473
+ "eval.tests.test_stdio_and_invocation.TestProgramNameInvariance.test_invoked_via_symlink_name_is_golden",
474
+ "eval.tests.test_stdio_and_invocation.TestProgramNameInvariance.test_relative_path_invocation_same_as_full_path",
475
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_both_streams_redirected_are_golden_and_empty",
476
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_cwd_relative_redirect_file_matches_golden",
477
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_pipe_capture_equals_redirected_file_equals_golden",
478
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_redirected_stdout_file_size_equals_golden",
479
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_stderr_redirected_file_is_empty",
480
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_stdout_redirect_append_matches_golden",
481
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_stdout_redirected_to_file_matches_golden",
482
+ "eval.tests.test_stdio_and_invocation.TestStdioRedirection.test_stdout_to_devnull_leaves_pipe_empty",
483
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_huge_null_terminated_block_stdin",
484
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_interleaved_lines_and_binary_stdin",
485
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_mixture_stdin_and_config_argv_ignored",
486
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_stdin_contains_many_port_lines",
487
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_stdin_is_exactly_the_golden_output",
488
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_stdin_pipe_closed_unexpectedly",
489
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_two_mib_of_ascii_stdin",
490
+ "eval.tests.test_volume_stdin.TestLargeStdinRobustness.test_two_mib_of_single_character_stdin",
491
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_environment_var_pointing_at_absent_path_is_inert_from_tmp",
492
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_run_from_absolute_bin_directory",
493
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_run_from_deep_nested_tmp_dir",
494
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_run_from_empty_tmp_isolated_from_branch_assets",
495
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_run_from_root_directory",
496
+ "eval.tests.test_working_dir.TestWorkingDirectoryIndependence.test_run_from_tmp_path"
497
+ ]
498
+ }
499
+ },
500
+ "commit": "19c92dd48fbbc7a2fade5e2362b28e72e30aaa94",
501
+ "data_source": "synthetic_programgym",
502
+ "difficulty": "easy",
503
+ "difficulty_score": 0.5774917998372251,
504
+ "eval_clean_hashes": [
505
+ "cd56a11276cd388e6e634b458bd276e3c2416b95b3647fa9373f90bf47675831"
506
+ ],
507
+ "input_record": {
508
+ "commit": "19c92dd48fbbc7a2fade5e2362b28e72e30aaa94",
509
+ "difficulty": "easy",
510
+ "difficulty_code_lines": 378,
511
+ "difficulty_has_tests": false,
512
+ "difficulty_product_code_lines": 378,
513
+ "difficulty_runtime_deps": 0,
514
+ "difficulty_score": 0.5774917998372251,
515
+ "difficulty_test_code_lines": 0,
516
+ "full_name": "green7ea/blog",
517
+ "input_joern_zip": "cpp_joern/green7ea__blog.zip",
518
+ "joern_status": true,
519
+ "joern_time": 7.506826150929555,
520
+ "language": "cpp",
521
+ "pb_match": [
522
+ {
523
+ "pb_fullname": "ninja-build/ninja",
524
+ "rank": 11,
525
+ "similarity": 0.5468649864196777
526
+ }
527
+ ],
528
+ "repo_path": "cpp/green7ea__blog",
529
+ "source": "commit:19c92dd48fbbc7a2fade5e2362b28e72e30aaa94",
530
+ "status": "done",
531
+ "url": "https://github.com/green7ea/blog"
532
+ },
533
+ "instance_id": "green7ea__blog.19c92dd",
534
+ "language": "cpp",
535
+ "module_iterations": [
536
+ {
537
+ "actual_iterations": 5,
538
+ "branch_name": "generated_module_01",
539
+ "iteration_limit": 5,
540
+ "module_index": 1,
541
+ "module_kind": "source",
542
+ "termination_reason": "early_stopping"
543
+ },
544
+ {
545
+ "actual_iterations": 3,
546
+ "branch_name": "generated_module_02",
547
+ "iteration_limit": 5,
548
+ "module_index": 2,
549
+ "module_kind": "source",
550
+ "termination_reason": "module_coverage_threshold_reached"
551
+ },
552
+ {
553
+ "actual_iterations": 5,
554
+ "branch_name": "generated_module_03",
555
+ "iteration_limit": 5,
556
+ "module_index": 3,
557
+ "module_kind": "source",
558
+ "termination_reason": "module_coverage_threshold_reached"
559
+ }
560
+ ],
561
+ "repository": "green7ea/blog"
562
+ }
green7ea--blog.19c92dd/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
green7ea--blog.19c92dd/tests/workspace.tar.gz ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:15c48e66934876d39e681e15e8676c4f4ce585d4f1fce6852f2e75181a785c85
3
+ size 4760
gregoryfaust--samblaster.b642639/environment/Dockerfile ADDED
@@ -0,0 +1,66 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:22.04
2
+ ARG PROGRAMGYM_APT_REPOSITORY_BASE_URL=""
3
+ ARG PROGRAMGYM_GOPROXY="https://proxy.golang.org,direct"
4
+ ARG PROGRAMGYM_NPM_REGISTRY="https://registry.npmjs.org/"
5
+ ARG PROGRAMGYM_NPM_STRICT_SSL="true"
6
+ ARG PROGRAMGYM_PYPI_INDEX_URL="https://pypi.org/simple"
7
+ ARG PROGRAMGYM_PYPI_TRUSTED_HOST=""
8
+ ARG PROGRAMGYM_UV_INSECURE_HOST=""
9
+ ENV GOPROXY=${PROGRAMGYM_GOPROXY}
10
+ ENV PIP_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
11
+ ENV PIP_TRUSTED_HOST=${PROGRAMGYM_PYPI_TRUSTED_HOST}
12
+ ENV UV_INDEX_URL=${PROGRAMGYM_PYPI_INDEX_URL}
13
+ ENV UV_INSECURE_HOST=${PROGRAMGYM_UV_INSECURE_HOST}
14
+ ENV npm_config_registry=${PROGRAMGYM_NPM_REGISTRY}
15
+ ENV npm_config_strict_ssl=${PROGRAMGYM_NPM_STRICT_SSL}
16
+ COPY harbor_configure_apt_mirror.sh /tmp/harbor_configure_apt_mirror.sh
17
+ RUN chmod 0755 /tmp/harbor_configure_apt_mirror.sh \
18
+ && /bin/bash /tmp/harbor_configure_apt_mirror.sh "${PROGRAMGYM_APT_REPOSITORY_BASE_URL}" \
19
+ && rm -f /tmp/harbor_configure_apt_mirror.sh
20
+ ENV DEBIAN_FRONTEND=noninteractive
21
+ ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
22
+ ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
23
+ ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
24
+ ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
25
+ ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
26
+ ENV GOSUMDB=sum.golang.google.cn
27
+ ENV GOTOOLCHAIN=auto
28
+ ENV UV_CACHE_DIR=/workspace/.cache/uv
29
+ ENV npm_config_cache=/workspace/.cache/npm
30
+ ENV HOME=/workspace
31
+ ENV XDG_CACHE_HOME=/workspace/.cache
32
+ ENV PIP_CACHE_DIR=/workspace/.cache/pip
33
+ ENV PYTHONUSERBASE=/workspace/.local
34
+ ENV PAGER=cat
35
+ ENV MANPAGER=cat
36
+ ENV LESS=-R
37
+ ENV TQDM_DISABLE=1
38
+ RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip python3-dev autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
39
+ ARG CMAKE_VERSION=3.31.12
40
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) CMAKE_ARCH="x86_64" ;; arm64) CMAKE_ARCH="aarch64" ;; *) echo "unsupported architecture for CMake: ${ARCH}" >&2; exit 1 ;; esac; curl -fsSL -o /tmp/cmake.tar.gz "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}-linux-${CMAKE_ARCH}.tar.gz"; rm -rf /opt/cmake; mkdir -p /opt/cmake; tar -xzf /tmp/cmake.tar.gz --strip-components=1 -C /opt/cmake; ln -sf /opt/cmake/bin/cmake /usr/local/bin/cmake; ln -sf /opt/cmake/bin/ctest /usr/local/bin/ctest; ln -sf /opt/cmake/bin/cpack /usr/local/bin/cpack; rm -f /tmp/cmake.tar.gz; cmake --version
41
+ ARG GCC_VERSION=13.3.0
42
+ RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; wget -O /tmp/gcc.tar.gz "https://github.com/xpack-dev-tools/gcc-xpack/releases/download/v13.3.0-2/xpack-gcc-13.3.0-2-linux-${GCC_ARCH}.tar.gz"; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
43
+ WORKDIR /workspace
44
+ ADD workspace.tar.gz /workspace/
45
+ COPY executable /workspace/executable
46
+ COPY download.sh /workspace/download.sh
47
+ RUN chmod 755 /workspace/download.sh
48
+ COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
49
+ RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
50
+ && /bin/bash /tmp/harbor_prepare_download_env.sh \
51
+ && rm -f /workspace/download.sh \
52
+ && rm -f /tmp/harbor_prepare_download_env.sh
53
+ ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
54
+ RUN chmod 111 /workspace/executable
55
+ WORKDIR /workspace
56
+ # Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
57
+ # Keep tool/runtime state under /home/agent and reserve /workspace for the
58
+ # submission handed to the separate verifier. Keep the reference executable
59
+ # execute-only; the oracle temporarily restores owner read permission.
60
+ RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
61
+ RUN mkdir -p /home/agent \
62
+ && chown -R agent:agent /home/agent /workspace \
63
+ && chown agent:agent /workspace/executable \
64
+ && chmod 111 /workspace/executable
65
+ ENV HOME=/home/agent
66
+ WORKDIR /workspace
gregoryfaust--samblaster.b642639/environment/docker-compose.yaml ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
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_NPM_REGISTRY: ${PROGRAMGYM_NPM_REGISTRY:-https://registry.npmjs.org/}
8
+ PROGRAMGYM_NPM_STRICT_SSL: ${PROGRAMGYM_NPM_STRICT_SSL:-true}
9
+ PROGRAMGYM_PYPI_INDEX_URL: ${PROGRAMGYM_PYPI_INDEX_URL:-https://pypi.org/simple}
10
+ PROGRAMGYM_PYPI_TRUSTED_HOST: ${PROGRAMGYM_PYPI_TRUSTED_HOST:-}
11
+ PROGRAMGYM_UV_INSECURE_HOST: ${PROGRAMGYM_UV_INSECURE_HOST:-}
gregoryfaust--samblaster.b642639/environment/download.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ # download.sh for samblaster (standalone dependency-prep stage).
3
+ #
4
+ # samblaster is self-contained: it links only against the C++ standard
5
+ # library and requires just a C++ compiler (g++) and GNU make. Both are already
6
+ # present in the base Ubuntu 22.04 image (g++ 13.3.0, make 4.3), so there are no
7
+ # third-party packages or source archives to prefetch here.
8
+ #
9
+ # This file must be SOURCED (source /source_ro/download.sh), not executed.
10
+ # It runs while the repository source tree is NOT mounted, so it must not read
11
+ # any repository file. It performs no compilation, linking, or testing.
12
+
13
+ # Guard: this script is only valid when sourced.
14
+ if [ "${BASH_SOURCE[0]}" = "$0" ]; then
15
+ echo "ERROR: download.sh must be sourced (source download.sh), not executed." >&2
16
+ return 1
17
+ fi
18
+
19
+ # Verify the C++ compiler is available. Fail loudly if it is missing.
20
+ GPP_PATH="$(command -v g++)"
21
+ if [ -z "$GPP_PATH" ]; then
22
+ echo "ERROR: g++ (C++ compiler) is required to build samblaster but was not found in PATH." >&2
23
+ return 1
24
+ fi
25
+
26
+ # Verify GNU make is available. Fail loudly if it is missing.
27
+ MAKE_PATH="$(command -v make)"
28
+ if [ -z "$MAKE_PATH" ]; then
29
+ echo "ERROR: make is required to build samblaster but was not found in PATH." >&2
30
+ return 1
31
+ fi
32
+
33
+ # Export environment variables that build.sh relies on. The Makefile hard-codes
34
+ # BUILDNUM=26, but exporting it here makes the intended version explicit and
35
+ # unconditional on any repository file.
36
+ export BUILDNUM=26
37
+
38
+ echo "download.sh: samblaster dependencies satisfied (g++ at $GPP_PATH, make at $MAKE_PATH)."
gregoryfaust--samblaster.b642639/environment/executable ADDED
Binary file (50.6 kB). View file