Datasets:
Upload folder using huggingface_hub (part 17)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +89 -0
- evilsocket--dirsearch.fe7fffa/environment/executable +3 -0
- evilsocket--dirsearch.fe7fffa/environment/programgym-go.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/environment/workspace.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/instruction.md +98 -0
- evilsocket--dirsearch.fe7fffa/solution/solve.sh +33 -0
- evilsocket--dirsearch.fe7fffa/task.toml +69 -0
- evilsocket--dirsearch.fe7fffa/tests/Dockerfile +68 -0
- evilsocket--dirsearch.fe7fffa/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/tests/download.sh +74 -0
- evilsocket--dirsearch.fe7fffa/tests/executable +3 -0
- evilsocket--dirsearch.fe7fffa/tests/programgym-go.tar.gz +3 -0
- evilsocket--dirsearch.fe7fffa/tests/programgym_evaluator.py +1201 -0
- evilsocket--dirsearch.fe7fffa/tests/programgym_task.json +218 -0
- evilsocket--dirsearch.fe7fffa/tests/test.sh +82 -0
- evilsocket--dirsearch.fe7fffa/tests/workspace.tar.gz +3 -0
- evilsocket--jscythe.6aeeeb5/environment/Dockerfile +59 -0
- evilsocket--jscythe.6aeeeb5/environment/download.sh +2107 -0
- evilsocket--jscythe.6aeeeb5/environment/executable +3 -0
- evilsocket--jscythe.6aeeeb5/environment/harbor_prepare_download_env.sh +37 -0
- evilsocket--jscythe.6aeeeb5/environment/workspace.tar.gz +3 -0
- evilsocket--jscythe.6aeeeb5/instruction.md +98 -0
- evilsocket--jscythe.6aeeeb5/solution/solve.sh +33 -0
- evilsocket--jscythe.6aeeeb5/task.toml +69 -0
- evilsocket--jscythe.6aeeeb5/tests/Dockerfile +68 -0
- evilsocket--jscythe.6aeeeb5/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- evilsocket--jscythe.6aeeeb5/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- evilsocket--jscythe.6aeeeb5/tests/download.sh +2107 -0
- evilsocket--jscythe.6aeeeb5/tests/executable +3 -0
- evilsocket--jscythe.6aeeeb5/tests/harbor_prepare_download_env.sh +37 -0
- evilsocket--jscythe.6aeeeb5/tests/programgym_evaluator.py +1201 -0
- evilsocket--jscythe.6aeeeb5/tests/programgym_task.json +1363 -0
- evilsocket--jscythe.6aeeeb5/tests/test.sh +82 -0
- evilsocket--jscythe.6aeeeb5/tests/workspace.tar.gz +3 -0
- evilsocket--sauron.1c9de0c/environment/Dockerfile +59 -0
- evilsocket--sauron.1c9de0c/environment/download.sh +1035 -0
- evilsocket--sauron.1c9de0c/environment/executable +3 -0
- evilsocket--sauron.1c9de0c/environment/harbor_prepare_download_env.sh +37 -0
- evilsocket--sauron.1c9de0c/environment/workspace.tar.gz +3 -0
- evilsocket--sauron.1c9de0c/instruction.md +98 -0
- evilsocket--sauron.1c9de0c/solution/solve.sh +33 -0
- evilsocket--sauron.1c9de0c/task.toml +69 -0
- evilsocket--sauron.1c9de0c/tests/Dockerfile +68 -0
- evilsocket--sauron.1c9de0c/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- evilsocket--sauron.1c9de0c/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- evilsocket--sauron.1c9de0c/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- evilsocket--sauron.1c9de0c/tests/blobs/tests/generated_module_04.tar.gz +3 -0
.gitattributes
CHANGED
|
@@ -850,3 +850,92 @@ evaleev--libint.f47820b/environment/executable filter=lfs diff=lfs merge=lfs -te
|
|
| 850 |
evaleev--libint.f47820b/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 851 |
evansmurithi--cloak.a4dac97/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 852 |
evansmurithi--cloak.a4dac97/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 850 |
evaleev--libint.f47820b/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 851 |
evansmurithi--cloak.a4dac97/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 852 |
evansmurithi--cloak.a4dac97/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 853 |
+
evilsocket--dirsearch.fe7fffa/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 854 |
+
evilsocket--dirsearch.fe7fffa/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 855 |
+
evilsocket--jscythe.6aeeeb5/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 856 |
+
evilsocket--jscythe.6aeeeb5/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 857 |
+
evilsocket--sauron.1c9de0c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 858 |
+
evilsocket--sauron.1c9de0c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 859 |
+
ewenquim--entropy.64a09c9/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 860 |
+
ewenquim--entropy.64a09c9/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 861 |
+
expl0it3r--bnkextr.5be1689/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 862 |
+
expl0it3r--bnkextr.5be1689/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 863 |
+
extremecoders-re--nuitka-extract/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 864 |
+
extremecoders-re--nuitka-extract/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 865 |
+
ezekg--git-hound.0d35d22/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 866 |
+
ezekg--git-hound.0d35d22/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 867 |
+
ezh0v--weather-mcp-server.e0f212/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 868 |
+
ezh0v--weather-mcp-server.e0f212/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 869 |
+
f1zm0--hades.afdc74a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 870 |
+
f1zm0--hades.afdc74a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 871 |
+
facebookresearch--projectaria_to/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 872 |
+
facebookresearch--projectaria_to/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 873 |
+
falconindy--auracle.7fae63f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 874 |
+
falconindy--auracle.7fae63f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 875 |
+
falltergeist--falltergeist.32cbe/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 876 |
+
falltergeist--falltergeist.32cbe/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 877 |
+
fardog--secureoperator.6ee86f0/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 878 |
+
fardog--secureoperator.6ee86f0/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 879 |
+
fast--fastrace.31bf616/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 880 |
+
fast--fastrace.31bf616/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 881 |
+
fatih--errwrap.4c89317/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 882 |
+
fatih--errwrap.4c89317/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 883 |
+
fatih--gomodifytags.f3939df/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 884 |
+
fatih--gomodifytags.f3939df/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 885 |
+
fattorino--imnodeflow.e4cb098/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 886 |
+
fattorino--imnodeflow.e4cb098/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 887 |
+
fcambus--rrda.258c83c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 888 |
+
fcambus--rrda.258c83c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 889 |
+
fd0--machma.9ab93d7/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 890 |
+
fd0--machma.9ab93d7/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 891 |
+
febiosoftware--febio.835fa88/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 892 |
+
febiosoftware--febio.835fa88/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 893 |
+
fedecarollo--jukebox-cli.0bb1d84/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 894 |
+
fedecarollo--jukebox-cli.0bb1d84/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 895 |
+
federicoponzi--horust.37e7535/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 896 |
+
federicoponzi--horust.37e7535/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 897 |
+
felixge--fgprof.88a8ff7/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 898 |
+
felixge--fgprof.88a8ff7/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 899 |
+
felixge--sqlbench.2409d76/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 900 |
+
felixge--sqlbench.2409d76/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 901 |
+
fengxxc--wechatmp2markdown.48803/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 902 |
+
fengxxc--wechatmp2markdown.48803/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 903 |
+
fflorent--nom_locate.965e7c0/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 904 |
+
fflorent--nom_locate.965e7c0/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 905 |
+
ffms--ffms2.3af2ef2/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 906 |
+
ffms--ffms2.3af2ef2/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 907 |
+
fgribreau--spinners.f4aa1ab/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 908 |
+
fgribreau--spinners.f4aa1ab/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 909 |
+
fiatjaf--jqview.a5641e2/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 910 |
+
fiatjaf--jqview.a5641e2/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 911 |
+
filosottile--mkcert.1c1dc4e/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 912 |
+
filosottile--mkcert.1c1dc4e/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 913 |
+
flashlight--flashlight.0d0d731/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 914 |
+
flashlight--flashlight.0d0d731/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 915 |
+
fortheusers--hb-appstore.25ede0e/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 916 |
+
fortheusers--hb-appstore.25ede0e/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 917 |
+
fph--bastet.1b3e692/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 918 |
+
fph--bastet.1b3e692/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 919 |
+
franckverrot--terraform-provider/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 920 |
+
franckverrot--terraform-provider/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 921 |
+
fraunhoferfokus--deckschrubber.c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 922 |
+
fraunhoferfokus--deckschrubber.c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 923 |
+
free--sql_exporter.6f96b0d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 924 |
+
free--sql_exporter.6f96b0d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 925 |
+
freetonik--textpod.3772d04/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 926 |
+
freetonik--textpod.3772d04/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 927 |
+
frida--cryptoshark.10d9f55/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 928 |
+
frida--cryptoshark.10d9f55/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 929 |
+
fritzone--obfy.371b952/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 930 |
+
fritzone--obfy.371b952/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 931 |
+
fsnotify--fsnotify.20b1e15/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 932 |
+
fsnotify--fsnotify.20b1e15/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 933 |
+
fstab--h2c.b4fb555/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 934 |
+
fstab--h2c.b4fb555/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 935 |
+
fswatcher--fswatcher.abd0437/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 936 |
+
fswatcher--fswatcher.abd0437/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 937 |
+
fumiyas--qrc.95a87f6/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 938 |
+
fumiyas--qrc.95a87f6/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 939 |
+
funktionio--funktion.81aeeb6/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 940 |
+
funktionio--funktion.81aeeb6/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 941 |
+
furkansenharputlu--f-license.b87/environment/executable filter=lfs diff=lfs merge=lfs -text
|
evilsocket--dirsearch.fe7fffa/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6f4f2c6345defd5de369e96cc1691480d1597383d764887d77724804e3b8519
|
| 3 |
+
size 8702316
|
evilsocket--dirsearch.fe7fffa/environment/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
|
| 3 |
+
size 59908810
|
evilsocket--dirsearch.fe7fffa/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abf58b6dcebc90002a962eb47a4ed6ac01fb4342fd7fca78fbbaccf4e8347352
|
| 3 |
+
size 40167
|
evilsocket--dirsearch.fe7fffa/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
|
evilsocket--dirsearch.fe7fffa/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
|
evilsocket--dirsearch.fe7fffa/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/evilsocket--dirsearch.fe7fffa"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for evilsocket/dirsearch"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "evilsocket__dirsearch.fe7fffa"
|
| 32 |
+
repository = "evilsocket/dirsearch"
|
| 33 |
+
commit = "fe7fffa3908416b5520f639d0d340cd402b62d03"
|
| 34 |
+
language = "go"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 0.41995574848975803
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 92
|
| 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"
|
evilsocket--dirsearch.fe7fffa/tests/Dockerfile
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 14 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 15 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 16 |
+
ENV npm_config_strict_ssl=false
|
| 17 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 18 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 19 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 20 |
+
ENV PIP_TRUSTED_HOST=""
|
| 21 |
+
ENV HOME=/workspace
|
| 22 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 23 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 24 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 25 |
+
ENV GOROOT=/usr/local/go
|
| 26 |
+
ENV GOPATH=/workspace/.go
|
| 27 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 28 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 29 |
+
ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 30 |
+
ENV PAGER=cat
|
| 31 |
+
ENV MANPAGER=cat
|
| 32 |
+
ENV LESS=-R
|
| 33 |
+
ENV TQDM_DISABLE=1
|
| 34 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 35 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
|
| 36 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 37 |
+
RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
|
| 38 |
+
RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
|
| 39 |
+
WORKDIR /workspace
|
| 40 |
+
ADD workspace.tar.gz /workspace/
|
| 41 |
+
COPY executable /workspace/executable
|
| 42 |
+
COPY download.sh /workspace/download.sh
|
| 43 |
+
RUN chmod 755 /workspace/download.sh
|
| 44 |
+
RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
|
| 45 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 46 |
+
RUN chmod 111 /workspace/executable
|
| 47 |
+
WORKDIR /workspace
|
| 48 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 49 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env /workspace/.pbgo-download"]
|
| 50 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 51 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 52 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 53 |
+
&& mkdir -p /workspace /tests
|
| 54 |
+
|
| 55 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 56 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 57 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 58 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 59 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 60 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 61 |
+
RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
|
| 62 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 63 |
+
|
| 64 |
+
COPY test.sh /tests/test.sh
|
| 65 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 66 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
+
COPY blobs/ /tests/blobs/
|
| 68 |
+
RUN chmod +x /tests/test.sh
|
evilsocket--dirsearch.fe7fffa/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:24a8167b1d276d3d9045c9eda6c655eb0ecfce6d501fa734296d3a938f44c7db
|
| 3 |
+
size 6373
|
evilsocket--dirsearch.fe7fffa/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:dcdc67e4981e74d08d59e39211a2d69a04e09e43dd1a47bd552f8de65d5158a7
|
| 3 |
+
size 4628
|
evilsocket--dirsearch.fe7fffa/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:ac5b8e583b918ff20b58b1183f0502fc351b409b46efac280852551e6833679b
|
| 3 |
+
size 5580
|
evilsocket--dirsearch.fe7fffa/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:2768ef3d562e3ec85e5163f66cc36fee4ea5ca9ba91e8d01669516dbfb6b7f0f
|
| 3 |
+
size 11144
|
evilsocket--dirsearch.fe7fffa/tests/download.sh
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# ProgramGym Go download stage for evilsocket/dirsearch.
|
| 3 |
+
# Source-safe: this script is meant to run as `source /source_ro/download.sh`.
|
| 4 |
+
# It only prefetches Go module dependencies into the shared module cache so the
|
| 5 |
+
# offline build.sh can build without network. It does NOT compile, link, test,
|
| 6 |
+
# or install anything.
|
| 7 |
+
|
| 8 |
+
set -u
|
| 9 |
+
|
| 10 |
+
# Fixed literal directory (not a variable) where this script stands up its own
|
| 11 |
+
# temporary module metadata <literal-path>/go.mod and <literal-path>/go.sum.
|
| 12 |
+
# These files are generated entirely from inline heredocs below -- they never
|
| 13 |
+
# read any repository file (glide.yaml / glide.lock / go.mod are all ignored
|
| 14 |
+
# per the ProgramGym Go contract).
|
| 15 |
+
PBGO_DIR_LITERAL="/workspace/.pbgo-download"
|
| 16 |
+
|
| 17 |
+
if [ ! -d "${PBGO_DIR_LITERAL}" ]; then
|
| 18 |
+
mkdir -p "${PBGO_DIR_LITERAL}"
|
| 19 |
+
fi
|
| 20 |
+
|
| 21 |
+
# go.mod -- inline module metadata. Version pins are taken from the repository's
|
| 22 |
+
# glide.yaml / glide.lock and converted to canonical Go module pseudo-versions:
|
| 23 |
+
# github.com/evilsocket/brutemachine @ 0331ad6a82ce...
|
| 24 |
+
# github.com/fatih/color @ ^1.4.1 -> v1.4.1
|
| 25 |
+
# github.com/mattn/go-colorable @ 5411d3eea597...
|
| 26 |
+
# github.com/mattn/go-isatty @ 57fdcb988a5c...
|
| 27 |
+
# golang.org/x/sys @ e24f485414ae...
|
| 28 |
+
cat > "/workspace/.pbgo-download/go.mod" <<'PBGO_EOF'
|
| 29 |
+
module github.com/evilsocket/dirsearch
|
| 30 |
+
|
| 31 |
+
go 1.20
|
| 32 |
+
|
| 33 |
+
require (
|
| 34 |
+
github.com/evilsocket/brutemachine v0.0.0-20170703145059-0331ad6a82ce
|
| 35 |
+
github.com/fatih/color v1.4.1
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
require (
|
| 39 |
+
github.com/mattn/go-colorable v0.0.8-0.20170210172801-5411d3eea597 // indirect
|
| 40 |
+
github.com/mattn/go-isatty v0.0.2-0.20170307163044-57fdcb988a5c // indirect
|
| 41 |
+
golang.org/x/sys v0.0.0-20170213225739-e24f485414ae // indirect
|
| 42 |
+
)
|
| 43 |
+
PBGO_EOF
|
| 44 |
+
|
| 45 |
+
# go.sum -- checksums for the exact pinned module versions above, so the offline
|
| 46 |
+
# build's go.sum matches precisely what was prefetched here.
|
| 47 |
+
cat > "/workspace/.pbgo-download/go.sum" <<'PBGO_EOF'
|
| 48 |
+
github.com/evilsocket/brutemachine v0.0.0-20170703145059-0331ad6a82ce h1:LUfHM3hh98OzurXk5CF4PTCHFFACsAcBRgZmGkap6Z0=
|
| 49 |
+
github.com/evilsocket/brutemachine v0.0.0-20170703145059-0331ad6a82ce/go.mod h1:WnG+R/UHyKYQnmXaJ+L3DdZPf0yt36rxHw9dn3IQQeg=
|
| 50 |
+
github.com/fatih/color v1.4.1 h1:YJhD/SoQqn7ev9zwhIm7lHTAqsOAF2AN4xlAVZzNZnU=
|
| 51 |
+
github.com/fatih/color v1.4.1/go.mod h1:Zm6kSWBoL9eyXnKyktHP6abPY2pDugNf5KwzbycvMj4=
|
| 52 |
+
github.com/mattn/go-colorable v0.0.8-0.20170210172801-5411d3eea597 h1:Zw9aNQ5CQ3SERpCiZrPh4vdWcBWogoEd5m8AFf2QWVs=
|
| 53 |
+
github.com/mattn/go-colorable v0.0.8-0.20170210172801-5411d3eea597/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
|
| 54 |
+
github.com/mattn/go-isatty v0.0.2-0.20170307163044-57fdcb988a5c h1:vNDTotKSxm/15mLGhBXjdU6q6Ncrx0HlVEd8ToAsGTw=
|
| 55 |
+
github.com/mattn/go-isatty v0.0.2-0.20170307163044-57fdcb988a5c/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
|
| 56 |
+
golang.org/x/sys v0.0.0-20170213225739-e24f485414ae h1:GTtEQDSA+M757ZEFcmC1Z5tEQXeyj0/vKmKeGqKRbP4=
|
| 57 |
+
golang.org/x/sys v0.0.0-20170213225739-e24f485414ae/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
| 58 |
+
PBGO_EOF
|
| 59 |
+
|
| 60 |
+
# Prefetch all module dependencies into the shared module cache so the offline
|
| 61 |
+
# build.sh finds them already cached. The cd is required because Go resolves the
|
| 62 |
+
# module root from the working directory; the -modfile below is a fully literal
|
| 63 |
+
# path pointing at the inline-generated go.mod just written above.
|
| 64 |
+
if [ "$(pwd)" != "/workspace/.pbgo-download" ]; then
|
| 65 |
+
cd "/workspace/.pbgo-download"
|
| 66 |
+
fi
|
| 67 |
+
|
| 68 |
+
if ! go mod download -modfile="/workspace/.pbgo-download/go.mod"; then
|
| 69 |
+
if [ "${BASH_SOURCE[0]}" != "/programgym-build-go" ]; then
|
| 70 |
+
return 1
|
| 71 |
+
else
|
| 72 |
+
exit 1
|
| 73 |
+
fi
|
| 74 |
+
fi
|
evilsocket--dirsearch.fe7fffa/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e6f4f2c6345defd5de369e96cc1691480d1597383d764887d77724804e3b8519
|
| 3 |
+
size 8702316
|
evilsocket--dirsearch.fe7fffa/tests/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
|
| 3 |
+
size 59908810
|
evilsocket--dirsearch.fe7fffa/tests/programgym_evaluator.py
ADDED
|
@@ -0,0 +1,1201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""In-place ProgramGym evaluator.
|
| 3 |
+
|
| 4 |
+
Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
|
| 5 |
+
no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
|
| 6 |
+
cleanroom container after Harbor flips the verifier-phase network policy.
|
| 7 |
+
|
| 8 |
+
Differences from ``programgym.eval.eval.Evaluator`` that are structural to
|
| 9 |
+
running in one container:
|
| 10 |
+
|
| 11 |
+
* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
|
| 12 |
+
copy a post-compile workspace snapshot to a temp directory and restore it
|
| 13 |
+
before each branch; ``cleanup_lingering_processes`` kills leftover branch
|
| 14 |
+
processes between attempts to approximate the fresh-container boundary.
|
| 15 |
+
* No ``docker commit``. The post-compile workspace snapshot serves the same
|
| 16 |
+
role as the committed image upstream.
|
| 17 |
+
* Hidden test blobs are fetched on demand from HuggingFace via
|
| 18 |
+
``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
|
| 19 |
+
rather than being pre-staged into ``/tests/blobs/``. Override with
|
| 20 |
+
``PROGRAMGYM_BLOB_DIR`` for offline reruns.
|
| 21 |
+
|
| 22 |
+
Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
|
| 23 |
+
``compile.sh`` then stash + hash the executable, best-effort
|
| 24 |
+
``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
|
| 25 |
+
``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
|
| 26 |
+
best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
|
| 27 |
+
preserved.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
from __future__ import annotations
|
| 31 |
+
|
| 32 |
+
import hashlib
|
| 33 |
+
import json
|
| 34 |
+
import os
|
| 35 |
+
import re
|
| 36 |
+
import shlex
|
| 37 |
+
import shutil
|
| 38 |
+
import signal
|
| 39 |
+
import subprocess
|
| 40 |
+
import tempfile
|
| 41 |
+
import time
|
| 42 |
+
import traceback
|
| 43 |
+
import xml.etree.ElementTree as ET
|
| 44 |
+
from pathlib import Path
|
| 45 |
+
from typing import Any
|
| 46 |
+
|
| 47 |
+
WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
|
| 48 |
+
STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
|
| 49 |
+
METADATA_PATH = Path(
|
| 50 |
+
os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
|
| 51 |
+
)
|
| 52 |
+
LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
|
| 53 |
+
WORKER_CRASH_PHRASE = "worker '"
|
| 54 |
+
XDIST_COLLAPSE_MARKERS = (
|
| 55 |
+
"maximum crashed workers reached",
|
| 56 |
+
"xdist: maximum crashed",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
|
| 60 |
+
DEFAULT_HF_REVISION = "main"
|
| 61 |
+
|
| 62 |
+
# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
|
| 63 |
+
# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
|
| 64 |
+
_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
|
| 65 |
+
|
| 66 |
+
_TOOLCHAIN_BIN_DIR_CANDIDATES = (
|
| 67 |
+
"/usr/local/go/bin",
|
| 68 |
+
"/go/bin",
|
| 69 |
+
"/usr/local/cargo/bin",
|
| 70 |
+
"/root/.cargo/bin",
|
| 71 |
+
"/root/.ghcup/bin",
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def toolchain_bin_dirs() -> list[str]:
|
| 76 |
+
"""Return toolchain bin directories that exist on this image."""
|
| 77 |
+
candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
|
| 78 |
+
candidates.extend(
|
| 79 |
+
str(path)
|
| 80 |
+
for path in sorted(Path("/usr/lib").glob("go-*/bin"))
|
| 81 |
+
if _is_accessible_dir(path)
|
| 82 |
+
)
|
| 83 |
+
seen: set[str] = set()
|
| 84 |
+
present: list[str] = []
|
| 85 |
+
for path in candidates:
|
| 86 |
+
if path in seen:
|
| 87 |
+
continue
|
| 88 |
+
seen.add(path)
|
| 89 |
+
if _is_accessible_dir(path):
|
| 90 |
+
present.append(path)
|
| 91 |
+
return present
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def _is_accessible_dir(path: str | Path) -> bool:
|
| 95 |
+
"""Return whether path is a directory without failing on protected homes."""
|
| 96 |
+
try:
|
| 97 |
+
return Path(path).is_dir()
|
| 98 |
+
except OSError:
|
| 99 |
+
return False
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def bootstrap_toolchain_path() -> str:
|
| 103 |
+
"""Prepend discovered toolchain dirs to PATH (idempotent)."""
|
| 104 |
+
prepend = toolchain_bin_dirs()
|
| 105 |
+
current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
|
| 106 |
+
merged: list[str] = []
|
| 107 |
+
for path in prepend + current_parts:
|
| 108 |
+
if path not in merged:
|
| 109 |
+
merged.append(path)
|
| 110 |
+
new_path = ":".join(merged)
|
| 111 |
+
os.environ["PATH"] = new_path
|
| 112 |
+
return new_path
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _bash_login_command(command: str) -> str:
|
| 116 |
+
"""Run ``command`` under bash -lc with an explicit PATH export."""
|
| 117 |
+
path = bootstrap_toolchain_path()
|
| 118 |
+
return f"export PATH={shlex.quote(path)}; {command}"
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def sha256(path: Path) -> str:
|
| 122 |
+
h = hashlib.sha256()
|
| 123 |
+
with path.open("rb") as f:
|
| 124 |
+
for chunk in iter(lambda: f.read(1024 * 1024), b""):
|
| 125 |
+
h.update(chunk)
|
| 126 |
+
return h.hexdigest()
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def write_json(path: Path, data: dict[str, Any]) -> None:
|
| 130 |
+
tmp = path.with_suffix(path.suffix + ".tmp")
|
| 131 |
+
tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
|
| 132 |
+
tmp.replace(path)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
|
| 136 |
+
if path is None or not path.exists():
|
| 137 |
+
return ""
|
| 138 |
+
data = path.read_bytes()
|
| 139 |
+
if len(data) <= max_bytes:
|
| 140 |
+
return data.decode(errors="replace")
|
| 141 |
+
return data[-max_bytes:].decode(errors="replace")
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def _close_pipes(proc: subprocess.Popen[Any]) -> None:
|
| 145 |
+
for stream in (proc.stdout, proc.stderr):
|
| 146 |
+
if stream is not None:
|
| 147 |
+
try:
|
| 148 |
+
stream.close()
|
| 149 |
+
except OSError:
|
| 150 |
+
pass
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
|
| 154 |
+
try:
|
| 155 |
+
os.killpg(proc.pid, signal.SIGKILL)
|
| 156 |
+
except ProcessLookupError:
|
| 157 |
+
pass
|
| 158 |
+
try:
|
| 159 |
+
proc.kill()
|
| 160 |
+
except ProcessLookupError:
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
_PKILL_PATTERNS = (
|
| 165 |
+
f"{WORKSPACE}/eval/",
|
| 166 |
+
f"{WORKSPACE}/tests/",
|
| 167 |
+
"tail -f",
|
| 168 |
+
"development.log",
|
| 169 |
+
" less ",
|
| 170 |
+
" less$",
|
| 171 |
+
"/less ",
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def _pkill_aggressive() -> str:
|
| 176 |
+
"""Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
|
| 177 |
+
notes: list[str] = []
|
| 178 |
+
workspace = str(WORKSPACE)
|
| 179 |
+
patterns = list(_PKILL_PATTERNS) + [
|
| 180 |
+
f"pytest.*{workspace}",
|
| 181 |
+
f"xdist.*{workspace}",
|
| 182 |
+
]
|
| 183 |
+
for pattern in patterns:
|
| 184 |
+
result = subprocess.run(
|
| 185 |
+
["pkill", "-9", "-f", pattern],
|
| 186 |
+
capture_output=True,
|
| 187 |
+
text=True,
|
| 188 |
+
)
|
| 189 |
+
notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
|
| 190 |
+
return "\n".join(notes)
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def run_step(
|
| 194 |
+
command: str,
|
| 195 |
+
cwd: Path,
|
| 196 |
+
*,
|
| 197 |
+
timeout: int,
|
| 198 |
+
env: dict[str, str] | None = None,
|
| 199 |
+
step: str,
|
| 200 |
+
accept_failure: bool = False,
|
| 201 |
+
log_output: bool | None = None,
|
| 202 |
+
max_output_bytes: int = 65536,
|
| 203 |
+
) -> dict[str, Any]:
|
| 204 |
+
if log_output is None:
|
| 205 |
+
log_output = step == "run_tests" or timeout >= 60
|
| 206 |
+
|
| 207 |
+
started = time.monotonic()
|
| 208 |
+
stdout_path: Path | None = None
|
| 209 |
+
stderr_path: Path | None = None
|
| 210 |
+
stdout_f = None
|
| 211 |
+
stderr_f = None
|
| 212 |
+
|
| 213 |
+
if log_output:
|
| 214 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 215 |
+
log_id = f"{step}-{int(started * 1000)}"
|
| 216 |
+
stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
|
| 217 |
+
stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
|
| 218 |
+
stdout_f = stdout_path.open("w", encoding="utf-8")
|
| 219 |
+
stderr_f = stderr_path.open("w", encoding="utf-8")
|
| 220 |
+
popen_stdout: Any = stdout_f
|
| 221 |
+
popen_stderr: Any = stderr_f
|
| 222 |
+
else:
|
| 223 |
+
popen_stdout = subprocess.PIPE
|
| 224 |
+
popen_stderr = subprocess.PIPE
|
| 225 |
+
|
| 226 |
+
proc = subprocess.Popen(
|
| 227 |
+
["bash", "-lc", _bash_login_command(command)],
|
| 228 |
+
cwd=cwd,
|
| 229 |
+
env={**os.environ, **(env or {})},
|
| 230 |
+
stdout=popen_stdout,
|
| 231 |
+
stderr=popen_stderr,
|
| 232 |
+
start_new_session=True,
|
| 233 |
+
text=True,
|
| 234 |
+
)
|
| 235 |
+
timed_out = False
|
| 236 |
+
stdout = ""
|
| 237 |
+
stderr = ""
|
| 238 |
+
try:
|
| 239 |
+
if log_output:
|
| 240 |
+
proc.wait(timeout=timeout)
|
| 241 |
+
else:
|
| 242 |
+
stdout, stderr = proc.communicate(timeout=timeout)
|
| 243 |
+
except subprocess.TimeoutExpired:
|
| 244 |
+
timed_out = True
|
| 245 |
+
_terminate_process_tree(proc)
|
| 246 |
+
cleanup_lingering_processes(aggressive=True)
|
| 247 |
+
try:
|
| 248 |
+
proc.wait(timeout=5)
|
| 249 |
+
except subprocess.TimeoutExpired:
|
| 250 |
+
proc.kill()
|
| 251 |
+
if not log_output:
|
| 252 |
+
_close_pipes(proc)
|
| 253 |
+
finally:
|
| 254 |
+
if stdout_f is not None:
|
| 255 |
+
stdout_f.close()
|
| 256 |
+
if stderr_f is not None:
|
| 257 |
+
stderr_f.close()
|
| 258 |
+
|
| 259 |
+
if timed_out:
|
| 260 |
+
if log_output:
|
| 261 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 262 |
+
stderr_path, max_output_bytes
|
| 263 |
+
)
|
| 264 |
+
else:
|
| 265 |
+
output = ""
|
| 266 |
+
entry = {
|
| 267 |
+
"step": step,
|
| 268 |
+
"command": command,
|
| 269 |
+
"wall_time": time.monotonic() - started,
|
| 270 |
+
"output": output,
|
| 271 |
+
"returncode": 124,
|
| 272 |
+
"exception_info": f"timed out after {timeout}s",
|
| 273 |
+
}
|
| 274 |
+
else:
|
| 275 |
+
if log_output:
|
| 276 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 277 |
+
stderr_path, max_output_bytes
|
| 278 |
+
)
|
| 279 |
+
else:
|
| 280 |
+
output = stdout + stderr
|
| 281 |
+
entry = {
|
| 282 |
+
"step": step,
|
| 283 |
+
"command": command,
|
| 284 |
+
"wall_time": time.monotonic() - started,
|
| 285 |
+
"output": output,
|
| 286 |
+
"returncode": proc.returncode,
|
| 287 |
+
"exception_info": "",
|
| 288 |
+
}
|
| 289 |
+
if entry["returncode"] and not accept_failure:
|
| 290 |
+
raise RuntimeError(
|
| 291 |
+
f"{step} failed: {entry['exception_info'] or entry['output']}"
|
| 292 |
+
)
|
| 293 |
+
return entry
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
|
| 297 |
+
started = time.monotonic()
|
| 298 |
+
patterns = [
|
| 299 |
+
str(WORKSPACE / "executable"),
|
| 300 |
+
f"{WORKSPACE}/eval/",
|
| 301 |
+
f"{WORKSPACE}/tests/",
|
| 302 |
+
# lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
|
| 303 |
+
"tail -f",
|
| 304 |
+
"development.log",
|
| 305 |
+
]
|
| 306 |
+
killed: list[int] = []
|
| 307 |
+
proc_root = Path("/proc")
|
| 308 |
+
proc_available = proc_root.exists()
|
| 309 |
+
if proc_available:
|
| 310 |
+
for proc_dir in proc_root.iterdir():
|
| 311 |
+
if not proc_dir.name.isdigit():
|
| 312 |
+
continue
|
| 313 |
+
pid = int(proc_dir.name)
|
| 314 |
+
if pid in {os.getpid(), os.getppid()}:
|
| 315 |
+
continue
|
| 316 |
+
try:
|
| 317 |
+
raw = (proc_dir / "cmdline").read_bytes()
|
| 318 |
+
except (FileNotFoundError, PermissionError, ProcessLookupError):
|
| 319 |
+
continue
|
| 320 |
+
cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
|
| 321 |
+
if not any(pattern in cmdline for pattern in patterns):
|
| 322 |
+
continue
|
| 323 |
+
try:
|
| 324 |
+
os.kill(pid, signal.SIGKILL)
|
| 325 |
+
except (PermissionError, ProcessLookupError):
|
| 326 |
+
continue
|
| 327 |
+
killed.append(pid)
|
| 328 |
+
pkill_output = ""
|
| 329 |
+
if aggressive or not proc_available:
|
| 330 |
+
pkill_output = _pkill_aggressive()
|
| 331 |
+
output_parts = []
|
| 332 |
+
if killed:
|
| 333 |
+
output_parts.append("\n".join(str(pid) for pid in killed))
|
| 334 |
+
if pkill_output:
|
| 335 |
+
output_parts.append(pkill_output)
|
| 336 |
+
return {
|
| 337 |
+
"step": "cleanup_lingering_processes",
|
| 338 |
+
"command": "kill leftover branch processes referencing the workspace",
|
| 339 |
+
"wall_time": time.monotonic() - started,
|
| 340 |
+
"output": "\n".join(output_parts),
|
| 341 |
+
"returncode": 0,
|
| 342 |
+
"exception_info": "",
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
|
| 347 |
+
import tarfile
|
| 348 |
+
|
| 349 |
+
with tarfile.open(tar_path, "r:gz") as tf:
|
| 350 |
+
try:
|
| 351 |
+
tf.extractall(dest, filter="fully_trusted")
|
| 352 |
+
except TypeError:
|
| 353 |
+
tf.extractall(dest)
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
def find_results_xml() -> Path | None:
|
| 357 |
+
"""Return the junit xml path if pytest wrote one."""
|
| 358 |
+
for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
|
| 359 |
+
if candidate.exists():
|
| 360 |
+
return candidate
|
| 361 |
+
return None
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
def remove_oracle_handoff_artifacts() -> list[str]:
|
| 365 |
+
"""Drop oracle-agent handoff files from /workspace before snapshot/restore."""
|
| 366 |
+
removed: list[str] = []
|
| 367 |
+
for name in _ORACLE_HANDOFF_NAMES:
|
| 368 |
+
path = WORKSPACE / name
|
| 369 |
+
if path.exists():
|
| 370 |
+
if path.is_dir():
|
| 371 |
+
shutil.rmtree(path)
|
| 372 |
+
else:
|
| 373 |
+
path.unlink()
|
| 374 |
+
removed.append(name)
|
| 375 |
+
return removed
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def _remove_tree(path: Path) -> None:
|
| 379 |
+
"""Remove a file or directory tree, with a shell fallback for overlay races."""
|
| 380 |
+
if path.is_symlink() or path.is_file():
|
| 381 |
+
path.unlink(missing_ok=True)
|
| 382 |
+
return
|
| 383 |
+
if not path.is_dir():
|
| 384 |
+
path.unlink(missing_ok=True)
|
| 385 |
+
return
|
| 386 |
+
for attempt in range(3):
|
| 387 |
+
try:
|
| 388 |
+
shutil.rmtree(path)
|
| 389 |
+
if not path.exists():
|
| 390 |
+
return
|
| 391 |
+
except OSError:
|
| 392 |
+
if attempt == 2:
|
| 393 |
+
run_step(
|
| 394 |
+
f"rm -rf {shlex.quote(str(path))}",
|
| 395 |
+
path.parent,
|
| 396 |
+
timeout=120,
|
| 397 |
+
step="clear_workspace_fallback",
|
| 398 |
+
accept_failure=True,
|
| 399 |
+
)
|
| 400 |
+
if not path.exists():
|
| 401 |
+
return
|
| 402 |
+
raise
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
def ensure_workspace_dir() -> None:
|
| 406 |
+
"""Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
|
| 407 |
+
if WORKSPACE.exists() and not WORKSPACE.is_dir():
|
| 408 |
+
if WORKSPACE.is_symlink() or WORKSPACE.is_file():
|
| 409 |
+
WORKSPACE.unlink()
|
| 410 |
+
else:
|
| 411 |
+
shutil.rmtree(WORKSPACE)
|
| 412 |
+
WORKSPACE.mkdir(parents=True, exist_ok=True)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def clear_workspace() -> None:
|
| 416 |
+
ensure_workspace_dir()
|
| 417 |
+
for path in list(WORKSPACE.iterdir()):
|
| 418 |
+
_remove_tree(path)
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
def restore_reference_executable() -> None:
|
| 422 |
+
"""Write the stashed reference binary into /workspace after a branch overlay.
|
| 423 |
+
|
| 424 |
+
Branch blobs may ship ``executable`` as a dangling symlink into
|
| 425 |
+
``target/release/...``; ``shutil.copy2`` would follow it and raise
|
| 426 |
+
``FileNotFoundError``. Drop whatever the blob left and copy the stashed
|
| 427 |
+
reference as a regular file.
|
| 428 |
+
"""
|
| 429 |
+
ensure_workspace_dir()
|
| 430 |
+
if not STASHED_EXECUTABLE.is_file():
|
| 431 |
+
raise FileNotFoundError(
|
| 432 |
+
f"missing stashed reference executable at {STASHED_EXECUTABLE}"
|
| 433 |
+
)
|
| 434 |
+
dest = WORKSPACE / "executable"
|
| 435 |
+
if dest.exists() or dest.is_symlink():
|
| 436 |
+
if dest.is_dir():
|
| 437 |
+
shutil.rmtree(dest)
|
| 438 |
+
else:
|
| 439 |
+
dest.unlink(missing_ok=True)
|
| 440 |
+
shutil.copy2(STASHED_EXECUTABLE, dest)
|
| 441 |
+
dest.chmod(0o755)
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
def snapshot_workspace(dest: Path) -> None:
|
| 445 |
+
if dest.exists():
|
| 446 |
+
shutil.rmtree(dest)
|
| 447 |
+
shutil.copytree(WORKSPACE, dest, symlinks=True)
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
def restore_workspace(source: Path) -> None:
|
| 451 |
+
clear_workspace()
|
| 452 |
+
shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
|
| 453 |
+
ensure_workspace_dir()
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
|
| 457 |
+
removed: list[str] = []
|
| 458 |
+
for path in root.rglob("*"):
|
| 459 |
+
if path.is_file() and not path.is_symlink():
|
| 460 |
+
try:
|
| 461 |
+
if sha256(path) in hashes:
|
| 462 |
+
path.unlink()
|
| 463 |
+
removed.append(str(path.relative_to(root)))
|
| 464 |
+
except OSError:
|
| 465 |
+
continue
|
| 466 |
+
return removed
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
def branch_tests(branch_info: dict[str, Any]) -> list[str]:
|
| 470 |
+
ignored = {
|
| 471 |
+
item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
|
| 472 |
+
}
|
| 473 |
+
return [name for name in branch_info.get("tests", []) if name not in ignored]
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
def ignored_tests(metadata: dict[str, Any]) -> set[str]:
|
| 477 |
+
result: set[str] = set()
|
| 478 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 479 |
+
result.update(
|
| 480 |
+
f"{branch}/{item['name']}"
|
| 481 |
+
for item in info.get("ignored_tests", [])
|
| 482 |
+
if "name" in item
|
| 483 |
+
)
|
| 484 |
+
return result
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def active_tests(metadata: dict[str, Any]) -> set[str]:
|
| 488 |
+
active: set[str] = set()
|
| 489 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 490 |
+
if info.get("ignored"):
|
| 491 |
+
continue
|
| 492 |
+
ignored = {
|
| 493 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 494 |
+
}
|
| 495 |
+
active.update(
|
| 496 |
+
f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
|
| 497 |
+
)
|
| 498 |
+
return active
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
def inject_not_run(
|
| 502 |
+
result: dict[str, Any], branch: str, tests: list[str], error_code: str
|
| 503 |
+
) -> None:
|
| 504 |
+
result["test_results"].extend(
|
| 505 |
+
{
|
| 506 |
+
"name": name,
|
| 507 |
+
"branch": branch,
|
| 508 |
+
"status": "not_run",
|
| 509 |
+
"extra": {"error_code": error_code},
|
| 510 |
+
}
|
| 511 |
+
for name in tests
|
| 512 |
+
)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def testcase_name(case: ET.Element) -> str:
|
| 516 |
+
classname = case.attrib.get("classname", "")
|
| 517 |
+
name = case.attrib.get("name", "")
|
| 518 |
+
return f"{classname}.{name}" if classname else name
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
# Only these tags under <testcase> represent a result. <system-out> /
|
| 522 |
+
# <system-err> are stdout/stderr captures and must not be treated as results
|
| 523 |
+
# (a leading <system-out> followed by <failure> would otherwise be classified
|
| 524 |
+
# as a stdout-only "passed").
|
| 525 |
+
JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
def parse_junit(
|
| 529 |
+
raw_xml: str, branch: str, expected: list[str], ignored: set[str]
|
| 530 |
+
) -> tuple[list[dict[str, Any]], list[str]]:
|
| 531 |
+
root = ET.fromstring(raw_xml)
|
| 532 |
+
got: set[str] = set()
|
| 533 |
+
results: list[dict[str, Any]] = []
|
| 534 |
+
for case in root.iter("testcase"):
|
| 535 |
+
name = testcase_name(case)
|
| 536 |
+
got.add(name)
|
| 537 |
+
extra: dict[str, Any] = {}
|
| 538 |
+
if "time" in case.attrib:
|
| 539 |
+
try:
|
| 540 |
+
extra["time"] = float(case.attrib["time"])
|
| 541 |
+
except ValueError:
|
| 542 |
+
extra["time"] = case.attrib["time"]
|
| 543 |
+
result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
|
| 544 |
+
# Collapse duplicate same-tag result children. Pytest's
|
| 545 |
+
# "pytest.internal" pseudo-test sometimes emits two identical <error>
|
| 546 |
+
# entries; treating that as a system_error would over-flag a real
|
| 547 |
+
# single failure. Mirrors upstream eval.py:816-820.
|
| 548 |
+
if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
|
| 549 |
+
result_children = [result_children[0]]
|
| 550 |
+
if not result_children:
|
| 551 |
+
status = "passed"
|
| 552 |
+
elif len(result_children) != 1:
|
| 553 |
+
status = "system_error"
|
| 554 |
+
extra["error_details"] = (
|
| 555 |
+
f"Expected 1 result for {name}, got {len(result_children)}: "
|
| 556 |
+
f"{[c.tag for c in result_children]}"
|
| 557 |
+
)
|
| 558 |
+
else:
|
| 559 |
+
first = result_children[0]
|
| 560 |
+
status = first.tag # "skipped" | "failure" | "error"
|
| 561 |
+
extra["message"] = first.attrib.get("message") or ""
|
| 562 |
+
if first.text:
|
| 563 |
+
extra["text"] = first.text
|
| 564 |
+
results.append(
|
| 565 |
+
{"name": name, "branch": branch, "status": status, "extra": extra}
|
| 566 |
+
)
|
| 567 |
+
|
| 568 |
+
active_expected = [name for name in expected if name not in ignored]
|
| 569 |
+
missing = [name for name in active_expected if name not in got]
|
| 570 |
+
results.extend(
|
| 571 |
+
{
|
| 572 |
+
"name": name,
|
| 573 |
+
"branch": branch,
|
| 574 |
+
"status": "not_run",
|
| 575 |
+
"extra": {"error_code": "missing_from_junit_xml"},
|
| 576 |
+
}
|
| 577 |
+
for name in missing
|
| 578 |
+
)
|
| 579 |
+
unexpected = got - set(expected) - ignored
|
| 580 |
+
warnings = (
|
| 581 |
+
[f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
|
| 582 |
+
if unexpected
|
| 583 |
+
else []
|
| 584 |
+
)
|
| 585 |
+
return results, warnings
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
def count_worker_crashes(raw_xml: str) -> int:
|
| 589 |
+
if WORKER_CRASH_PHRASE not in raw_xml:
|
| 590 |
+
return 0
|
| 591 |
+
try:
|
| 592 |
+
root = ET.fromstring(raw_xml)
|
| 593 |
+
except ET.ParseError:
|
| 594 |
+
return 0
|
| 595 |
+
crashes = 0
|
| 596 |
+
for case in root.iter("testcase"):
|
| 597 |
+
for child in case:
|
| 598 |
+
text = (child.get("message") or "") + " " + (child.text or "")
|
| 599 |
+
if (
|
| 600 |
+
child.tag in {"error", "failure"}
|
| 601 |
+
and WORKER_CRASH_PHRASE in text
|
| 602 |
+
and "crashed" in text
|
| 603 |
+
):
|
| 604 |
+
crashes += 1
|
| 605 |
+
break
|
| 606 |
+
return crashes
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
def run_output_indicates_xdist_collapse(output: str) -> bool:
|
| 610 |
+
lower = output.lower()
|
| 611 |
+
return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
def count_junit_failures(raw_xml: str) -> int:
|
| 615 |
+
try:
|
| 616 |
+
root = ET.fromstring(raw_xml)
|
| 617 |
+
except ET.ParseError:
|
| 618 |
+
return 0
|
| 619 |
+
failures = 0
|
| 620 |
+
for case in root.iter("testcase"):
|
| 621 |
+
for child in case:
|
| 622 |
+
if child.tag in {"failure", "error"}:
|
| 623 |
+
failures += 1
|
| 624 |
+
break
|
| 625 |
+
return failures
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def count_junit_passed(raw_xml: str) -> int:
|
| 629 |
+
try:
|
| 630 |
+
root = ET.fromstring(raw_xml)
|
| 631 |
+
except ET.ParseError:
|
| 632 |
+
return 0
|
| 633 |
+
passed = 0
|
| 634 |
+
for case in root.iter("testcase"):
|
| 635 |
+
if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
|
| 636 |
+
passed += 1
|
| 637 |
+
return passed
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
def branch_attempt_metrics(
|
| 641 |
+
raw_xml: str, *, run_output: str, expected_tests: int
|
| 642 |
+
) -> tuple[int, int, int, int]:
|
| 643 |
+
"""Return (crashes, n_testcases, failures, missing_from_xml)."""
|
| 644 |
+
crashes = count_worker_crashes(raw_xml)
|
| 645 |
+
if run_output_indicates_xdist_collapse(run_output):
|
| 646 |
+
crashes = max(crashes, 1)
|
| 647 |
+
n_tests = count_testcases(raw_xml)
|
| 648 |
+
failures = count_junit_failures(raw_xml)
|
| 649 |
+
missing = max(0, expected_tests - n_tests)
|
| 650 |
+
return crashes, n_tests, failures, missing
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
def needs_serial_retry(
|
| 654 |
+
*,
|
| 655 |
+
serial: bool,
|
| 656 |
+
crashes: int,
|
| 657 |
+
missing: int,
|
| 658 |
+
failures: int,
|
| 659 |
+
n_tests: int,
|
| 660 |
+
expected_tests: int,
|
| 661 |
+
run_output: str,
|
| 662 |
+
) -> bool:
|
| 663 |
+
if serial:
|
| 664 |
+
return False
|
| 665 |
+
high_failure_rate = (
|
| 666 |
+
expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
|
| 667 |
+
)
|
| 668 |
+
return (
|
| 669 |
+
crashes > 0
|
| 670 |
+
or missing > 0
|
| 671 |
+
or high_failure_rate
|
| 672 |
+
or run_output_indicates_xdist_collapse(run_output)
|
| 673 |
+
)
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
def count_testcases(raw_xml: str) -> int:
|
| 677 |
+
try:
|
| 678 |
+
return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
|
| 679 |
+
except ET.ParseError:
|
| 680 |
+
return 0
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def scored_results(
|
| 684 |
+
result: dict[str, Any], metadata: dict[str, Any]
|
| 685 |
+
) -> list[dict[str, Any]]:
|
| 686 |
+
active = active_tests(metadata)
|
| 687 |
+
by_key = {
|
| 688 |
+
f"{test['branch']}/{test['name']}": test
|
| 689 |
+
for test in result["test_results"]
|
| 690 |
+
if f"{test['branch']}/{test['name']}" in active
|
| 691 |
+
}
|
| 692 |
+
return [
|
| 693 |
+
by_key.get(
|
| 694 |
+
key,
|
| 695 |
+
{
|
| 696 |
+
"branch": key.split("/", 1)[0],
|
| 697 |
+
"name": key.split("/", 1)[1],
|
| 698 |
+
"status": "not_run",
|
| 699 |
+
"extra": {"error_code": "missing_from_results"},
|
| 700 |
+
},
|
| 701 |
+
)
|
| 702 |
+
for key in sorted(active)
|
| 703 |
+
]
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 707 |
+
scored = scored_results(result, metadata)
|
| 708 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 709 |
+
n_tests = len(scored)
|
| 710 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 711 |
+
# Multi-key reward: Harbor's default Mean aggregates each key independently
|
| 712 |
+
# (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
|
| 713 |
+
# the proportion of tasks scoring a perfect pass-rate and mean of
|
| 714 |
+
# "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
|
| 715 |
+
# per-task pass-rate whose mean is the overall mean reward.
|
| 716 |
+
return {
|
| 717 |
+
"reward": pass_rate,
|
| 718 |
+
"resolved": 1.0 if pass_rate >= 1.0 else 0.0,
|
| 719 |
+
"almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 724 |
+
scored = scored_results(result, metadata)
|
| 725 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 726 |
+
n_tests = len(scored)
|
| 727 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 728 |
+
return {
|
| 729 |
+
"pass_rate": pass_rate,
|
| 730 |
+
"resolved": int(
|
| 731 |
+
bool(
|
| 732 |
+
n_tests
|
| 733 |
+
and n_passed == n_tests
|
| 734 |
+
and not result["test_branch_errors"]
|
| 735 |
+
and not result["error_code"]
|
| 736 |
+
)
|
| 737 |
+
),
|
| 738 |
+
"n_passed": n_passed,
|
| 739 |
+
"n_tests": n_tests,
|
| 740 |
+
"n_branch_errors": len(result["test_branch_errors"]),
|
| 741 |
+
"infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
|
| 742 |
+
"executable_hash_present": int(bool(result.get("executable_hash"))),
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
def use_script_pty() -> bool:
|
| 747 |
+
return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
def script_pty_available() -> bool:
|
| 751 |
+
return shutil.which("script") is not None
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
def branch_env(
|
| 755 |
+
*,
|
| 756 |
+
serial: bool,
|
| 757 |
+
has_rerunfailures: bool,
|
| 758 |
+
extras: dict[str, str] | None = None,
|
| 759 |
+
) -> dict[str, str]:
|
| 760 |
+
addopts = ["--max-worker-restart=4"]
|
| 761 |
+
# A serial fallback is already a complete second execution. Re-running each
|
| 762 |
+
# failing test two more times makes large, failure-heavy suites prohibitively
|
| 763 |
+
# slow and adds little signal.
|
| 764 |
+
if has_rerunfailures and not serial:
|
| 765 |
+
addopts.extend(["--reruns=2", "--reruns-delay=1"])
|
| 766 |
+
env = {
|
| 767 |
+
"PYTEST_ADDOPTS": " ".join(addopts),
|
| 768 |
+
# Match upstream non-TTY regression environments (dirble log format, etc.).
|
| 769 |
+
"NO_COLOR": "1",
|
| 770 |
+
"TERM": "dumb",
|
| 771 |
+
"CLICOLOR": "0",
|
| 772 |
+
"CLICOLOR_FORCE": "0",
|
| 773 |
+
"COLORTERM": "",
|
| 774 |
+
}
|
| 775 |
+
if extras:
|
| 776 |
+
env.update(extras)
|
| 777 |
+
xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
|
| 778 |
+
if serial:
|
| 779 |
+
xdist_workers = "1"
|
| 780 |
+
if xdist_workers:
|
| 781 |
+
env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
|
| 782 |
+
return env
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
_SERIAL_RUN_SH = ".programgym_run_serial.sh"
|
| 786 |
+
# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
|
| 787 |
+
# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
|
| 788 |
+
_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
def prepare_serial_run_sh(run_sh: Path) -> Path:
|
| 792 |
+
"""Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
|
| 793 |
+
serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
|
| 794 |
+
patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
|
| 795 |
+
serial_sh.write_text(patched)
|
| 796 |
+
serial_sh.chmod(0o755)
|
| 797 |
+
return serial_sh
|
| 798 |
+
|
| 799 |
+
|
| 800 |
+
def run_tests_command(*, serial: bool) -> str:
|
| 801 |
+
if serial:
|
| 802 |
+
inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
|
| 803 |
+
else:
|
| 804 |
+
inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
|
| 805 |
+
if use_script_pty() and script_pty_available():
|
| 806 |
+
return f"script -q -c {shlex.quote(inner)} /dev/null"
|
| 807 |
+
return inner
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
|
| 811 |
+
|
| 812 |
+
|
| 813 |
+
def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
|
| 814 |
+
"""Locate the per-instance blob directory.
|
| 815 |
+
|
| 816 |
+
Resolution order:
|
| 817 |
+
|
| 818 |
+
1. ``/tests/blobs/`` if pre-fetched into the task at generation time
|
| 819 |
+
(``programgym-adapter --download-blobs``). Verifier-only mount, so
|
| 820 |
+
agent never sees these.
|
| 821 |
+
2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
|
| 822 |
+
tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
|
| 823 |
+
for offline reruns sharing a cache across many tasks.
|
| 824 |
+
3. ``huggingface_hub.snapshot_download`` from
|
| 825 |
+
``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
|
| 826 |
+
|
| 827 |
+
The returned directory contains ``tests/<branch>.tar.gz`` per active
|
| 828 |
+
branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
|
| 829 |
+
on HF.
|
| 830 |
+
"""
|
| 831 |
+
if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
|
| 832 |
+
return BAKED_BLOB_DIR
|
| 833 |
+
|
| 834 |
+
local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
|
| 835 |
+
if local:
|
| 836 |
+
candidate = Path(local) / instance_id
|
| 837 |
+
if candidate.exists():
|
| 838 |
+
return candidate
|
| 839 |
+
raise FileNotFoundError(
|
| 840 |
+
f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
|
| 841 |
+
)
|
| 842 |
+
|
| 843 |
+
repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
|
| 844 |
+
"hf_repo_id", DEFAULT_HF_REPO_ID
|
| 845 |
+
)
|
| 846 |
+
revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
|
| 847 |
+
"hf_revision", DEFAULT_HF_REVISION
|
| 848 |
+
)
|
| 849 |
+
|
| 850 |
+
from huggingface_hub import snapshot_download
|
| 851 |
+
|
| 852 |
+
cache_root = Path(
|
| 853 |
+
snapshot_download(
|
| 854 |
+
repo_id,
|
| 855 |
+
repo_type="dataset",
|
| 856 |
+
revision=revision,
|
| 857 |
+
allow_patterns=f"{instance_id}/**",
|
| 858 |
+
)
|
| 859 |
+
)
|
| 860 |
+
blob_dir = cache_root / instance_id
|
| 861 |
+
if not blob_dir.exists():
|
| 862 |
+
raise FileNotFoundError(
|
| 863 |
+
f"HF blob directory missing for {instance_id} at {blob_dir}"
|
| 864 |
+
)
|
| 865 |
+
return blob_dir
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
|
| 869 |
+
bootstrap_toolchain_path()
|
| 870 |
+
branches = metadata.get("branches", {})
|
| 871 |
+
active_branch_items = [
|
| 872 |
+
(name, info) for name, info in branches.items() if not info.get("ignored")
|
| 873 |
+
]
|
| 874 |
+
result: dict[str, Any] = {
|
| 875 |
+
"test_results": [],
|
| 876 |
+
"error_code": None,
|
| 877 |
+
"error_details": None,
|
| 878 |
+
"log": [],
|
| 879 |
+
"solution_branch": "submission",
|
| 880 |
+
"test_branches": [name for name, _ in active_branch_items],
|
| 881 |
+
"test_branch_errors": {},
|
| 882 |
+
"executable_hash": None,
|
| 883 |
+
"warnings": [],
|
| 884 |
+
}
|
| 885 |
+
|
| 886 |
+
instance_id = metadata["instance_id"]
|
| 887 |
+
|
| 888 |
+
compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
|
| 889 |
+
branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
|
| 890 |
+
|
| 891 |
+
def fail_all(error_code: str, details: str) -> dict[str, Any]:
|
| 892 |
+
result["error_code"] = error_code
|
| 893 |
+
result["error_details"] = details
|
| 894 |
+
for branch, info in active_branch_items:
|
| 895 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 896 |
+
return result
|
| 897 |
+
|
| 898 |
+
with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
|
| 899 |
+
compiled_snapshot = Path(tmp) / "compiled"
|
| 900 |
+
|
| 901 |
+
started = time.monotonic()
|
| 902 |
+
removed = remove_hashed_files(
|
| 903 |
+
WORKSPACE, set(metadata.get("eval_clean_hashes", []))
|
| 904 |
+
)
|
| 905 |
+
result["log"].append(
|
| 906 |
+
{
|
| 907 |
+
"step": "remove_hashed_files",
|
| 908 |
+
"command": "remove files matching eval_clean_hashes",
|
| 909 |
+
"wall_time": time.monotonic() - started,
|
| 910 |
+
"output": "".join(f"removed '{path}'\n" for path in removed),
|
| 911 |
+
"returncode": 0,
|
| 912 |
+
"exception_info": "",
|
| 913 |
+
}
|
| 914 |
+
)
|
| 915 |
+
|
| 916 |
+
compile_sh = WORKSPACE / "compile.sh"
|
| 917 |
+
if not compile_sh.exists():
|
| 918 |
+
return fail_all(
|
| 919 |
+
"missing_compile_sh", "submission did not contain compile.sh"
|
| 920 |
+
)
|
| 921 |
+
|
| 922 |
+
seed = (
|
| 923 |
+
"if [ ! -d .git ]; then "
|
| 924 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 925 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 926 |
+
"git -c init.defaultBranch=gold init -q && "
|
| 927 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
|
| 928 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 929 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 930 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
|
| 931 |
+
"fi"
|
| 932 |
+
)
|
| 933 |
+
try:
|
| 934 |
+
result["log"].append(
|
| 935 |
+
run_step(seed, WORKSPACE, timeout=300, step="seed_git")
|
| 936 |
+
)
|
| 937 |
+
compile_log = run_step(
|
| 938 |
+
"chmod +x ./compile.sh && ./compile.sh",
|
| 939 |
+
WORKSPACE,
|
| 940 |
+
timeout=compile_timeout,
|
| 941 |
+
step="compile",
|
| 942 |
+
accept_failure=True,
|
| 943 |
+
)
|
| 944 |
+
result["log"].append(compile_log)
|
| 945 |
+
if compile_log["returncode"]:
|
| 946 |
+
return fail_all("compile_failed", compile_log["output"])
|
| 947 |
+
executable = WORKSPACE / "executable"
|
| 948 |
+
if not executable.exists():
|
| 949 |
+
return fail_all(
|
| 950 |
+
"missing_executable",
|
| 951 |
+
"compile.sh completed but did not create ./executable",
|
| 952 |
+
)
|
| 953 |
+
STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
|
| 954 |
+
# `move` (not copy) so /workspace doesn't keep a parallel copy of
|
| 955 |
+
# the agent's executable during the stash→restore window. Mirrors
|
| 956 |
+
# upstream `mv ./executable {STASHED}` (eval.py:472).
|
| 957 |
+
shutil.move(str(executable), STASHED_EXECUTABLE)
|
| 958 |
+
result["executable_hash"] = sha256(STASHED_EXECUTABLE)
|
| 959 |
+
result["log"].append(
|
| 960 |
+
run_step(
|
| 961 |
+
"pip3 install -q --disable-pip-version-check pytest-rerunfailures",
|
| 962 |
+
WORKSPACE,
|
| 963 |
+
timeout=120,
|
| 964 |
+
step="install_rerunfailures",
|
| 965 |
+
accept_failure=True,
|
| 966 |
+
)
|
| 967 |
+
)
|
| 968 |
+
has_rerunfailures = result["log"][-1]["returncode"] == 0
|
| 969 |
+
handoff_removed = remove_oracle_handoff_artifacts()
|
| 970 |
+
if handoff_removed:
|
| 971 |
+
result["log"].append(
|
| 972 |
+
{
|
| 973 |
+
"step": "remove_oracle_handoff",
|
| 974 |
+
"command": "remove oracle handoff artifacts from workspace",
|
| 975 |
+
"wall_time": 0.0,
|
| 976 |
+
"output": "".join(
|
| 977 |
+
f"removed '{name}'\n" for name in handoff_removed
|
| 978 |
+
),
|
| 979 |
+
"returncode": 0,
|
| 980 |
+
"exception_info": "",
|
| 981 |
+
}
|
| 982 |
+
)
|
| 983 |
+
snapshot_workspace(compiled_snapshot)
|
| 984 |
+
except Exception as exc:
|
| 985 |
+
return fail_all(type(exc).__name__, str(exc))
|
| 986 |
+
|
| 987 |
+
try:
|
| 988 |
+
blob_dir = resolve_blob_dir(instance_id, metadata)
|
| 989 |
+
except Exception as exc:
|
| 990 |
+
details = f"{type(exc).__name__}: {exc}"
|
| 991 |
+
for branch, info in active_branch_items:
|
| 992 |
+
result["test_branch_errors"][branch] = [
|
| 993 |
+
{
|
| 994 |
+
"error_code": "blob_resolution_failed",
|
| 995 |
+
"error_details": details,
|
| 996 |
+
}
|
| 997 |
+
]
|
| 998 |
+
inject_not_run(
|
| 999 |
+
result, branch, branch_tests(info), "blob_resolution_failed"
|
| 1000 |
+
)
|
| 1001 |
+
return result
|
| 1002 |
+
|
| 1003 |
+
for branch, info in active_branch_items:
|
| 1004 |
+
tests = branch_tests(info)
|
| 1005 |
+
blob = blob_dir / "tests" / f"{branch}.tar.gz"
|
| 1006 |
+
if not blob.exists():
|
| 1007 |
+
result["test_branch_errors"][branch] = [
|
| 1008 |
+
{"error_code": "missing_test_blob", "error_details": blob.name}
|
| 1009 |
+
]
|
| 1010 |
+
inject_not_run(result, branch, tests, "missing_test_blob")
|
| 1011 |
+
continue
|
| 1012 |
+
|
| 1013 |
+
best_xml = ""
|
| 1014 |
+
# Prefer a complete, clean XML result, then the result covering the
|
| 1015 |
+
# most expected tests, and only then the one with the most passes.
|
| 1016 |
+
# Pass-count-only ranking can retain a partial xdist result over a
|
| 1017 |
+
# complete serial result.
|
| 1018 |
+
best_quality = (-1, -1, -1)
|
| 1019 |
+
serial = bool(metadata.get("force_serial_branches"))
|
| 1020 |
+
branch_log: list[dict[str, Any]] = []
|
| 1021 |
+
branch_ignored = {
|
| 1022 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 1023 |
+
}
|
| 1024 |
+
n_expected = len([name for name in tests if name not in branch_ignored])
|
| 1025 |
+
|
| 1026 |
+
def merge_best_xml(raw_xml: str) -> None:
|
| 1027 |
+
try:
|
| 1028 |
+
parsed, warnings = parse_junit(
|
| 1029 |
+
raw_xml, branch, list(info.get("tests", [])), branch_ignored
|
| 1030 |
+
)
|
| 1031 |
+
except Exception as exc:
|
| 1032 |
+
result["test_branch_errors"][branch] = [
|
| 1033 |
+
{"error_code": "xml_parse_error", "error_details": str(exc)}
|
| 1034 |
+
]
|
| 1035 |
+
inject_not_run(result, branch, tests, "xml_parse_error")
|
| 1036 |
+
else:
|
| 1037 |
+
result["test_results"].extend(parsed)
|
| 1038 |
+
result["warnings"].extend(warnings)
|
| 1039 |
+
|
| 1040 |
+
while True:
|
| 1041 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1042 |
+
restore_workspace(compiled_snapshot)
|
| 1043 |
+
extract_trusted_blob(blob, WORKSPACE)
|
| 1044 |
+
restore_reference_executable()
|
| 1045 |
+
actual_hash = sha256(WORKSPACE / "executable")
|
| 1046 |
+
if actual_hash != result["executable_hash"]:
|
| 1047 |
+
result["test_branch_errors"][branch] = [
|
| 1048 |
+
{
|
| 1049 |
+
"error_code": "executable_hash_mismatch",
|
| 1050 |
+
"error_details": (
|
| 1051 |
+
f"expected {result['executable_hash']}, got {actual_hash}"
|
| 1052 |
+
),
|
| 1053 |
+
}
|
| 1054 |
+
]
|
| 1055 |
+
inject_not_run(result, branch, tests, "executable_hash_mismatch")
|
| 1056 |
+
break
|
| 1057 |
+
run_sh = WORKSPACE / "eval" / "run.sh"
|
| 1058 |
+
if not run_sh.exists():
|
| 1059 |
+
result["test_branch_errors"][branch] = [
|
| 1060 |
+
{
|
| 1061 |
+
"error_code": "missing_run_sh",
|
| 1062 |
+
"error_details": "eval/run.sh missing",
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
inject_not_run(result, branch, tests, "missing_run_sh")
|
| 1066 |
+
break
|
| 1067 |
+
# Upstream rewrites thread→signal so xdist workers fail cleanly
|
| 1068 |
+
# instead of os._exit(1) on timeout. That works in fresh
|
| 1069 |
+
# containers per branch; here we reuse one container and
|
| 1070 |
+
# signal timeouts leave TUI/log-watcher subprocesses alive
|
| 1071 |
+
# (e.g. lazygit --logs + tail -f), wedging pytest for up to
|
| 1072 |
+
# branch_timeout. Keep the blob's thread method and rely on
|
| 1073 |
+
# cleanup_lingering_processes + serial fallback after crashes.
|
| 1074 |
+
env = branch_env(
|
| 1075 |
+
serial=serial,
|
| 1076 |
+
has_rerunfailures=has_rerunfailures,
|
| 1077 |
+
extras=metadata.get("branch_env"),
|
| 1078 |
+
)
|
| 1079 |
+
branch_log.append(
|
| 1080 |
+
run_step(
|
| 1081 |
+
"rm -f eval/results.xml results.xml",
|
| 1082 |
+
WORKSPACE,
|
| 1083 |
+
timeout=120,
|
| 1084 |
+
step="clean_stale_results",
|
| 1085 |
+
accept_failure=True,
|
| 1086 |
+
)
|
| 1087 |
+
)
|
| 1088 |
+
if serial:
|
| 1089 |
+
prepare_serial_run_sh(run_sh)
|
| 1090 |
+
run_entry = run_step(
|
| 1091 |
+
run_tests_command(serial=serial),
|
| 1092 |
+
WORKSPACE,
|
| 1093 |
+
timeout=branch_timeout,
|
| 1094 |
+
env=env,
|
| 1095 |
+
step="run_tests",
|
| 1096 |
+
accept_failure=True,
|
| 1097 |
+
)
|
| 1098 |
+
branch_log.append(run_entry)
|
| 1099 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1100 |
+
xml_path = find_results_xml()
|
| 1101 |
+
if xml_path is None:
|
| 1102 |
+
if best_xml:
|
| 1103 |
+
merge_best_xml(best_xml)
|
| 1104 |
+
break
|
| 1105 |
+
if serial:
|
| 1106 |
+
result["test_branch_errors"][branch] = [
|
| 1107 |
+
{
|
| 1108 |
+
"error_code": "missing_results_xml",
|
| 1109 |
+
"error_details": "eval/results.xml was not produced",
|
| 1110 |
+
}
|
| 1111 |
+
]
|
| 1112 |
+
inject_not_run(result, branch, tests, "missing_results_xml")
|
| 1113 |
+
break
|
| 1114 |
+
serial = True
|
| 1115 |
+
continue
|
| 1116 |
+
raw_xml = xml_path.read_text(errors="replace")
|
| 1117 |
+
crashes, n_tests, failures, missing = branch_attempt_metrics(
|
| 1118 |
+
raw_xml,
|
| 1119 |
+
run_output=run_entry.get("output", ""),
|
| 1120 |
+
expected_tests=n_expected,
|
| 1121 |
+
)
|
| 1122 |
+
useful = count_junit_passed(raw_xml)
|
| 1123 |
+
quality = (
|
| 1124 |
+
int(crashes == 0 and missing == 0),
|
| 1125 |
+
n_tests,
|
| 1126 |
+
useful,
|
| 1127 |
+
)
|
| 1128 |
+
if quality > best_quality:
|
| 1129 |
+
best_xml = raw_xml
|
| 1130 |
+
best_quality = quality
|
| 1131 |
+
retry = needs_serial_retry(
|
| 1132 |
+
serial=serial,
|
| 1133 |
+
crashes=crashes,
|
| 1134 |
+
missing=missing,
|
| 1135 |
+
failures=failures,
|
| 1136 |
+
n_tests=n_tests,
|
| 1137 |
+
expected_tests=n_expected,
|
| 1138 |
+
run_output=run_entry.get("output", ""),
|
| 1139 |
+
)
|
| 1140 |
+
if not retry:
|
| 1141 |
+
merge_best_xml(best_xml)
|
| 1142 |
+
break
|
| 1143 |
+
serial = True
|
| 1144 |
+
for entry in branch_log:
|
| 1145 |
+
entry["branch"] = branch
|
| 1146 |
+
result["log"].extend(branch_log)
|
| 1147 |
+
|
| 1148 |
+
return result
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
|
| 1152 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1153 |
+
write_json(LOG_DIR / "programgym_eval.json", result)
|
| 1154 |
+
write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
|
| 1155 |
+
rewards = summarize(result, metadata)
|
| 1156 |
+
write_json(LOG_DIR / "reward.json", rewards)
|
| 1157 |
+
(LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
def main() -> None:
|
| 1161 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1162 |
+
log_path = LOG_DIR / "programgym_eval.log"
|
| 1163 |
+
metadata = json.loads(METADATA_PATH.read_text())
|
| 1164 |
+
branches = metadata.get("branches", {})
|
| 1165 |
+
try:
|
| 1166 |
+
result = evaluate(metadata)
|
| 1167 |
+
except Exception as exc:
|
| 1168 |
+
error_code = type(exc).__name__
|
| 1169 |
+
result = {
|
| 1170 |
+
"test_results": [],
|
| 1171 |
+
"error_code": error_code,
|
| 1172 |
+
"error_details": str(exc),
|
| 1173 |
+
"log": [
|
| 1174 |
+
{
|
| 1175 |
+
"step": "evaluator_exception",
|
| 1176 |
+
"exception_info": traceback.format_exc(),
|
| 1177 |
+
"returncode": 1,
|
| 1178 |
+
}
|
| 1179 |
+
],
|
| 1180 |
+
"solution_branch": "submission",
|
| 1181 |
+
"test_branches": [
|
| 1182 |
+
name for name, info in branches.items() if not info.get("ignored")
|
| 1183 |
+
],
|
| 1184 |
+
"test_branch_errors": {
|
| 1185 |
+
"__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
|
| 1186 |
+
},
|
| 1187 |
+
"executable_hash": None,
|
| 1188 |
+
"warnings": [],
|
| 1189 |
+
}
|
| 1190 |
+
for branch, info in branches.items():
|
| 1191 |
+
if info.get("ignored"):
|
| 1192 |
+
continue
|
| 1193 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 1194 |
+
log_path.write_text(traceback.format_exc())
|
| 1195 |
+
else:
|
| 1196 |
+
log_path.write_text("")
|
| 1197 |
+
write_outputs(result, metadata)
|
| 1198 |
+
|
| 1199 |
+
|
| 1200 |
+
if __name__ == "__main__":
|
| 1201 |
+
main()
|
evilsocket--dirsearch.fe7fffa/tests/programgym_task.json
ADDED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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [],
|
| 7 |
+
"tests": [
|
| 8 |
+
"eval.tests.test_flags.test_consumers_missing_value_rejected",
|
| 9 |
+
"eval.tests.test_flags.test_consumers_non_integer_rejected",
|
| 10 |
+
"eval.tests.test_flags.test_explicit_empty_url_argument",
|
| 11 |
+
"eval.tests.test_flags.test_explicit_whitespace_url_passes_empty_minus_newline_cases",
|
| 12 |
+
"eval.tests.test_flags.test_ext_missing_value_rejected",
|
| 13 |
+
"eval.tests.test_flags.test_help_flag_lists_all_options",
|
| 14 |
+
"eval.tests.test_flags.test_help_flag_prints_usage_to_stderr_and_exits_zero",
|
| 15 |
+
"eval.tests.test_flags.test_maxerrors_missing_value_rejected",
|
| 16 |
+
"eval.tests.test_flags.test_maxerrors_negative_rejected",
|
| 17 |
+
"eval.tests.test_flags.test_no_url_argument_errors_and_exits_nonzero",
|
| 18 |
+
"eval.tests.test_flags.test_unknown_flag_rejected",
|
| 19 |
+
"eval.tests.test_flags.test_url_flag_without_value_rejected",
|
| 20 |
+
"eval.tests.test_scan_io.test_200only_filters_non_200",
|
| 21 |
+
"eval.tests.test_scan_io.test_dead_host_counts_conn_errors",
|
| 22 |
+
"eval.tests.test_scan_io.test_default_ext_is_php",
|
| 23 |
+
"eval.tests.test_scan_io.test_done_and_stats_header_present",
|
| 24 |
+
"eval.tests.test_scan_io.test_ext_substitution_in_wordlist",
|
| 25 |
+
"eval.tests.test_scan_io.test_multiple_consumers_requests_all_paths",
|
| 26 |
+
"eval.tests.test_scan_io.test_redirect_not_followed",
|
| 27 |
+
"eval.tests.test_scan_io.test_redirect_reports_location",
|
| 28 |
+
"eval.tests.test_scan_io.test_scan_reports_200_entries",
|
| 29 |
+
"eval.tests.test_scan_io.test_scan_reports_4xx_except_404",
|
| 30 |
+
"eval.tests.test_scan_io.test_scan_reports_5xx_entries",
|
| 31 |
+
"eval.tests.test_scan_io.test_scheme_less_url_is_normalized_to_http",
|
| 32 |
+
"eval.tests.test_scan_io.test_stats_requests_matches_wordlist_size",
|
| 33 |
+
"eval.tests.test_scan_io.test_stats_results_counts_all_responses",
|
| 34 |
+
"eval.tests.test_scan_io.test_url_with_existing_scheme_and_path",
|
| 35 |
+
"eval.tests.test_scan_io.test_url_with_scheme_but_no_path_gets_trailing_slash"
|
| 36 |
+
]
|
| 37 |
+
},
|
| 38 |
+
"generated_module_02": {
|
| 39 |
+
"ignore_reason": "",
|
| 40 |
+
"ignored": false,
|
| 41 |
+
"ignored_tests": [],
|
| 42 |
+
"tests": [
|
| 43 |
+
"eval.tests.test_normalizeurl.test_empty_url_prefixed_flag_value",
|
| 44 |
+
"eval.tests.test_normalizeurl.test_empty_url_reports_error_and_usage[-url '' (empty string)]",
|
| 45 |
+
"eval.tests.test_normalizeurl.test_every_wordlist_page_requested_against_normalized_base[2pages]",
|
| 46 |
+
"eval.tests.test_normalizeurl.test_every_wordlist_page_requested_against_normalized_base[3pages]",
|
| 47 |
+
"eval.tests.test_normalizeurl.test_every_wordlist_page_requested_against_normalized_base[5pages]",
|
| 48 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[empty_schema_nopath_adds_slash]",
|
| 49 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[no_schema_no_path_adds_schema_and_slash]",
|
| 50 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[no_schema_with_path_adds_schema_only]",
|
| 51 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[schema_with_multi_segment_path]",
|
| 52 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[schema_with_path_and_trailing_slash]",
|
| 53 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[schema_with_path_no_trailing_slash]",
|
| 54 |
+
"eval.tests.test_normalizeurl.test_normalized_base_reaches_expected_paths[schema_with_slash_already_normalized]",
|
| 55 |
+
"eval.tests.test_normalizeurl.test_trailing_slash_distinguishes_path_join_from_glued_authority"
|
| 56 |
+
]
|
| 57 |
+
},
|
| 58 |
+
"generated_module_03": {
|
| 59 |
+
"ignore_reason": "",
|
| 60 |
+
"ignored": false,
|
| 61 |
+
"ignored_tests": [],
|
| 62 |
+
"tests": [
|
| 63 |
+
"eval.tests.test_ua_rotation.test_every_request_ua_is_from_known_table",
|
| 64 |
+
"eval.tests.test_ua_rotation.test_known_table_is_wellformed_and_unique",
|
| 65 |
+
"eval.tests.test_ua_rotation.test_rotation_yields_multiple_distinct_uas",
|
| 66 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[-leading-dash]",
|
| 67 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[.hidden]",
|
| 68 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[UPPER/CASE.txt]",
|
| 69 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[a/%EXT%]",
|
| 70 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[admin/]",
|
| 71 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[deep/path/x.y.z]",
|
| 72 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[index.html]",
|
| 73 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[page?q=1&r=2]",
|
| 74 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[test.php]",
|
| 75 |
+
"eval.tests.test_ua_rotation.test_single_request_ua_is_known_and_wellformed[with space]",
|
| 76 |
+
"eval.tests.test_ua_rotation.test_ua_known_under_only200_flag[-200only=false]",
|
| 77 |
+
"eval.tests.test_ua_rotation.test_ua_known_under_only200_flag[-200only]",
|
| 78 |
+
"eval.tests.test_ua_rotation.test_ua_present_under_parallel_consumers",
|
| 79 |
+
"eval.tests.test_ua_rotation.test_ua_sent_despite_404_response",
|
| 80 |
+
"eval.tests.test_ua_rotation.test_ua_sent_on_redirect_response"
|
| 81 |
+
]
|
| 82 |
+
},
|
| 83 |
+
"generated_module_04": {
|
| 84 |
+
"ignore_reason": "",
|
| 85 |
+
"ignored": false,
|
| 86 |
+
"ignored_tests": [],
|
| 87 |
+
"tests": [
|
| 88 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLEmptyRejection.test_error_message_is_exact_and_single_line",
|
| 89 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLEmptyRejection.test_explicit_empty_url_rejected",
|
| 90 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLEmptyRejection.test_missing_url_flag_rejected",
|
| 91 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLOverTLS.test_https_no_slash_gets_trailing_slash",
|
| 92 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLOverTLS.test_https_ua_still_from_pool",
|
| 93 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLOverTLS.test_https_with_slash_untouched",
|
| 94 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[127.0.0.1_PORT]",
|
| 95 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[HTTP___127.0.0.1_PORT]",
|
| 96 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[Http___127.0.0.1_PORT]",
|
| 97 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[http___127.0.0.1_PORT]",
|
| 98 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[http___127.0.0.1_PORT_]",
|
| 99 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[http___127.0.0.1_PORT_base]",
|
| 100 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_normalized_request_path[http___127.0.0.1_PORT_base_path_]",
|
| 101 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[127.0.0.1_PORT]",
|
| 102 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[HTTP___127.0.0.1_PORT]",
|
| 103 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[Http___127.0.0.1_PORT]",
|
| 104 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[http___127.0.0.1_PORT]",
|
| 105 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[http___127.0.0.1_PORT_]",
|
| 106 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[http___127.0.0.1_PORT_base]",
|
| 107 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLTransformation.test_single_request_issued_per_word[http___127.0.0.1_PORT_base_path_]",
|
| 108 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLWithExtensionReplacement.test_custom_extension_respected",
|
| 109 |
+
"eval.tests.test_normalizeurl.TestNormalizeURLWithExtensionReplacement.test_ext_placeholder_replaced_after_normalization",
|
| 110 |
+
"eval.tests.test_uas.TestUserAgentEntropy.test_batch_produces_many_distinct_uas",
|
| 111 |
+
"eval.tests.test_uas.TestUserAgentEntropy.test_consecutive_requests_vary",
|
| 112 |
+
"eval.tests.test_uas.TestUserAgentEntropy.test_distinct_uas_pool_wide_enough_over_runs",
|
| 113 |
+
"eval.tests.test_uas.TestUserAgentMembership.test_all_batch_uas_in_pool",
|
| 114 |
+
"eval.tests.test_uas.TestUserAgentMembership.test_batch_has_no_empty_members",
|
| 115 |
+
"eval.tests.test_uas.TestUserAgentMembership.test_never_uses_go_default_ua",
|
| 116 |
+
"eval.tests.test_uas.TestUserAgentMembership.test_single_request_ua_in_pool",
|
| 117 |
+
"eval.tests.test_uas.TestUserAgentRequestShape.test_every_page_gets_own_ua",
|
| 118 |
+
"eval.tests.test_uas.TestUserAgentRequestShape.test_requests_are_HEAD_with_ua",
|
| 119 |
+
"eval.tests.test_uas.TestUserAgentUnderFlagVariants.test_ua_set_under_200only",
|
| 120 |
+
"eval.tests.test_uas.TestUserAgentUnderFlagVariants.test_ua_set_with_no_schema_base"
|
| 121 |
+
]
|
| 122 |
+
}
|
| 123 |
+
},
|
| 124 |
+
"commit": "fe7fffa3908416b5520f639d0d340cd402b62d03",
|
| 125 |
+
"data_source": "synthetic_programgym",
|
| 126 |
+
"difficulty": "easy",
|
| 127 |
+
"difficulty_score": 0.41995574848975803,
|
| 128 |
+
"eval_clean_hashes": [
|
| 129 |
+
"e6f4f2c6345defd5de369e96cc1691480d1597383d764887d77724804e3b8519"
|
| 130 |
+
],
|
| 131 |
+
"input_record": {
|
| 132 |
+
"commit": "fe7fffa3908416b5520f639d0d340cd402b62d03",
|
| 133 |
+
"commits": 32,
|
| 134 |
+
"contributors": 5,
|
| 135 |
+
"difficulty": "easy",
|
| 136 |
+
"difficulty_code_lines": 263,
|
| 137 |
+
"difficulty_has_tests": false,
|
| 138 |
+
"difficulty_product_code_lines": 263,
|
| 139 |
+
"difficulty_runtime_deps": 0,
|
| 140 |
+
"difficulty_score": 0.41995574848975803,
|
| 141 |
+
"difficulty_test_code_lines": 55,
|
| 142 |
+
"full_name": "evilsocket/dirsearch",
|
| 143 |
+
"github_stars": 279,
|
| 144 |
+
"input_joern_zip": "go_joern/evilsocket__dirsearch.zip",
|
| 145 |
+
"joern_status": true,
|
| 146 |
+
"joern_time": 9.164311181986704,
|
| 147 |
+
"language": "go",
|
| 148 |
+
"pb_match": [
|
| 149 |
+
{
|
| 150 |
+
"pb_fullname": "antonmedv/walk",
|
| 151 |
+
"rank": 221,
|
| 152 |
+
"similarity": 0.5255633592605591
|
| 153 |
+
},
|
| 154 |
+
{
|
| 155 |
+
"pb_fullname": "incu6us/goimports-reviser",
|
| 156 |
+
"rank": 916,
|
| 157 |
+
"similarity": 0.4800283908843994
|
| 158 |
+
},
|
| 159 |
+
{
|
| 160 |
+
"pb_fullname": "raviqqe/muffet",
|
| 161 |
+
"rank": 623,
|
| 162 |
+
"similarity": 0.47387582063674927
|
| 163 |
+
},
|
| 164 |
+
{
|
| 165 |
+
"pb_fullname": "dundee/gdu",
|
| 166 |
+
"rank": 275,
|
| 167 |
+
"similarity": 0.5279349088668823
|
| 168 |
+
},
|
| 169 |
+
{
|
| 170 |
+
"pb_fullname": "junegunn/fzf",
|
| 171 |
+
"rank": 796,
|
| 172 |
+
"similarity": 0.45652827620506287
|
| 173 |
+
}
|
| 174 |
+
],
|
| 175 |
+
"repo_age": 9.23,
|
| 176 |
+
"repo_path": "go/evilsocket__dirsearch",
|
| 177 |
+
"source": "commit:fe7fffa3908416b5520f639d0d340cd402b62d03",
|
| 178 |
+
"status": "done",
|
| 179 |
+
"url": "https://github.com/evilsocket/dirsearch"
|
| 180 |
+
},
|
| 181 |
+
"instance_id": "evilsocket__dirsearch.fe7fffa",
|
| 182 |
+
"language": "go",
|
| 183 |
+
"module_iterations": [
|
| 184 |
+
{
|
| 185 |
+
"actual_iterations": 5,
|
| 186 |
+
"branch_name": "generated_module_01",
|
| 187 |
+
"iteration_limit": 5,
|
| 188 |
+
"module_index": 1,
|
| 189 |
+
"module_kind": "source",
|
| 190 |
+
"termination_reason": "max_iterations"
|
| 191 |
+
},
|
| 192 |
+
{
|
| 193 |
+
"actual_iterations": 5,
|
| 194 |
+
"branch_name": "generated_module_02",
|
| 195 |
+
"iteration_limit": 5,
|
| 196 |
+
"module_index": 2,
|
| 197 |
+
"module_kind": "source",
|
| 198 |
+
"termination_reason": "max_iterations"
|
| 199 |
+
},
|
| 200 |
+
{
|
| 201 |
+
"actual_iterations": 5,
|
| 202 |
+
"branch_name": "generated_module_03",
|
| 203 |
+
"iteration_limit": 5,
|
| 204 |
+
"module_index": 3,
|
| 205 |
+
"module_kind": "source",
|
| 206 |
+
"termination_reason": "max_iterations"
|
| 207 |
+
},
|
| 208 |
+
{
|
| 209 |
+
"actual_iterations": 5,
|
| 210 |
+
"branch_name": "generated_module_04",
|
| 211 |
+
"iteration_limit": 5,
|
| 212 |
+
"module_index": 4,
|
| 213 |
+
"module_kind": "source",
|
| 214 |
+
"termination_reason": "max_iterations"
|
| 215 |
+
}
|
| 216 |
+
],
|
| 217 |
+
"repository": "evilsocket/dirsearch"
|
| 218 |
+
}
|
evilsocket--dirsearch.fe7fffa/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
|
evilsocket--dirsearch.fe7fffa/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abf58b6dcebc90002a962eb47a4ed6ac01fb4342fd7fca78fbbaccf4e8347352
|
| 3 |
+
size 40167
|
evilsocket--jscythe.6aeeeb5/environment/Dockerfile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 50 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 51 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 52 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 53 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 54 |
+
RUN mkdir -p /home/agent \
|
| 55 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 56 |
+
&& chown agent:agent /workspace/executable \
|
| 57 |
+
&& chmod 111 /workspace/executable
|
| 58 |
+
ENV HOME=/home/agent
|
| 59 |
+
WORKDIR /workspace
|
evilsocket--jscythe.6aeeeb5/environment/download.sh
ADDED
|
@@ -0,0 +1,2107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh - ProgramGym networked prefetch stage for the 'jscythe' Rust crate.
|
| 3 |
+
#
|
| 4 |
+
# This script is 'source'd (not executed) by the validator inside a read-only
|
| 5 |
+
# repository mount while network access is still available. It must be a
|
| 6 |
+
# completely standalone single file: it cannot read any repository file
|
| 7 |
+
# (Cargo.toml, Cargo.lock, ...) because the repo tree is not present here.
|
| 8 |
+
#
|
| 9 |
+
# It only prefetches dependencies (crates) into the shared cargo cache and
|
| 10 |
+
# prepares that cache for the offline build. It performs no compilation and no
|
| 11 |
+
# test/build step.
|
| 12 |
+
|
| 13 |
+
set -u
|
| 14 |
+
|
| 15 |
+
_download_fail() {
|
| 16 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 17 |
+
return 1
|
| 18 |
+
else
|
| 19 |
+
exit 1
|
| 20 |
+
fi
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
| 24 |
+
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
# Temporary Cargo workspace used only to resolve and prefetch dependencies.
|
| 27 |
+
# The package declaration and its EXACT Cargo.lock are embedded inline below
|
| 28 |
+
# (download.sh may not read the repository's Cargo.toml/Cargo.lock). Using the
|
| 29 |
+
# pinned lockfile with --locked guarantees the crate set prefetched here is
|
| 30 |
+
# byte-identical to what the offline build resolves against the repo lockfile.
|
| 31 |
+
# ---------------------------------------------------------------------------
|
| 32 |
+
CARGO_FETCH_DIR="${CARGO_FETCH_DIR:-$(mktemp -d)}"
|
| 33 |
+
export CARGO_FETCH_DIR
|
| 34 |
+
|
| 35 |
+
cat > "${CARGO_FETCH_DIR}/Cargo.toml" <<'EOF_TOML'
|
| 36 |
+
[package]
|
| 37 |
+
name = "jscythe"
|
| 38 |
+
version = "1.0.0"
|
| 39 |
+
edition = "2021"
|
| 40 |
+
|
| 41 |
+
[dependencies]
|
| 42 |
+
clap = { version = "3.2.18", features = ["derive"] }
|
| 43 |
+
lazy_static = "1.4.0"
|
| 44 |
+
netstat2 = "0.9.1"
|
| 45 |
+
nix = "0.25.0"
|
| 46 |
+
reqwest = { version = "0.11.11", features = ["blocking"] }
|
| 47 |
+
serde = { version = "1.0.144", features = ["derive"] }
|
| 48 |
+
serde_json = "1.0.85"
|
| 49 |
+
sysinfo = "0.25.3"
|
| 50 |
+
websocket = "0.26.5"
|
| 51 |
+
EOF_TOML
|
| 52 |
+
|
| 53 |
+
cat > "${CARGO_FETCH_DIR}/Cargo.lock" <<'EOF_LOCK'
|
| 54 |
+
# This file is automatically @generated by Cargo.
|
| 55 |
+
# It is not intended for manual editing.
|
| 56 |
+
version = 3
|
| 57 |
+
|
| 58 |
+
[[package]]
|
| 59 |
+
name = "atty"
|
| 60 |
+
version = "0.2.14"
|
| 61 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 62 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 63 |
+
dependencies = [
|
| 64 |
+
"hermit-abi",
|
| 65 |
+
"libc",
|
| 66 |
+
"winapi 0.3.9",
|
| 67 |
+
]
|
| 68 |
+
|
| 69 |
+
[[package]]
|
| 70 |
+
name = "autocfg"
|
| 71 |
+
version = "0.1.8"
|
| 72 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 73 |
+
checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78"
|
| 74 |
+
dependencies = [
|
| 75 |
+
"autocfg 1.1.0",
|
| 76 |
+
]
|
| 77 |
+
|
| 78 |
+
[[package]]
|
| 79 |
+
name = "autocfg"
|
| 80 |
+
version = "1.1.0"
|
| 81 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 82 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 83 |
+
|
| 84 |
+
[[package]]
|
| 85 |
+
name = "base64"
|
| 86 |
+
version = "0.9.3"
|
| 87 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 88 |
+
checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643"
|
| 89 |
+
dependencies = [
|
| 90 |
+
"byteorder",
|
| 91 |
+
"safemem",
|
| 92 |
+
]
|
| 93 |
+
|
| 94 |
+
[[package]]
|
| 95 |
+
name = "base64"
|
| 96 |
+
version = "0.10.1"
|
| 97 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 98 |
+
checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
|
| 99 |
+
dependencies = [
|
| 100 |
+
"byteorder",
|
| 101 |
+
]
|
| 102 |
+
|
| 103 |
+
[[package]]
|
| 104 |
+
name = "base64"
|
| 105 |
+
version = "0.13.0"
|
| 106 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 107 |
+
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
| 108 |
+
|
| 109 |
+
[[package]]
|
| 110 |
+
name = "bitflags"
|
| 111 |
+
version = "1.3.2"
|
| 112 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 113 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 114 |
+
|
| 115 |
+
[[package]]
|
| 116 |
+
name = "block-buffer"
|
| 117 |
+
version = "0.7.3"
|
| 118 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 119 |
+
checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
|
| 120 |
+
dependencies = [
|
| 121 |
+
"block-padding",
|
| 122 |
+
"byte-tools",
|
| 123 |
+
"byteorder",
|
| 124 |
+
"generic-array",
|
| 125 |
+
]
|
| 126 |
+
|
| 127 |
+
[[package]]
|
| 128 |
+
name = "block-padding"
|
| 129 |
+
version = "0.1.5"
|
| 130 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 131 |
+
checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5"
|
| 132 |
+
dependencies = [
|
| 133 |
+
"byte-tools",
|
| 134 |
+
]
|
| 135 |
+
|
| 136 |
+
[[package]]
|
| 137 |
+
name = "bumpalo"
|
| 138 |
+
version = "3.11.0"
|
| 139 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 140 |
+
checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d"
|
| 141 |
+
|
| 142 |
+
[[package]]
|
| 143 |
+
name = "byte-tools"
|
| 144 |
+
version = "0.3.1"
|
| 145 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 146 |
+
checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
|
| 147 |
+
|
| 148 |
+
[[package]]
|
| 149 |
+
name = "byteorder"
|
| 150 |
+
version = "1.4.3"
|
| 151 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 152 |
+
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
| 153 |
+
|
| 154 |
+
[[package]]
|
| 155 |
+
name = "bytes"
|
| 156 |
+
version = "0.4.12"
|
| 157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 158 |
+
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
|
| 159 |
+
dependencies = [
|
| 160 |
+
"byteorder",
|
| 161 |
+
"iovec",
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
+
[[package]]
|
| 165 |
+
name = "bytes"
|
| 166 |
+
version = "1.2.1"
|
| 167 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 168 |
+
checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
|
| 169 |
+
|
| 170 |
+
[[package]]
|
| 171 |
+
name = "cc"
|
| 172 |
+
version = "1.0.73"
|
| 173 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 174 |
+
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
|
| 175 |
+
|
| 176 |
+
[[package]]
|
| 177 |
+
name = "cfg-if"
|
| 178 |
+
version = "0.1.10"
|
| 179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 180 |
+
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "cfg-if"
|
| 184 |
+
version = "1.0.0"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 187 |
+
|
| 188 |
+
[[package]]
|
| 189 |
+
name = "clap"
|
| 190 |
+
version = "3.2.18"
|
| 191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 192 |
+
checksum = "b15f2ea93df33549dbe2e8eecd1ca55269d63ae0b3ba1f55db030817d1c2867f"
|
| 193 |
+
dependencies = [
|
| 194 |
+
"atty",
|
| 195 |
+
"bitflags",
|
| 196 |
+
"clap_derive",
|
| 197 |
+
"clap_lex",
|
| 198 |
+
"indexmap",
|
| 199 |
+
"once_cell",
|
| 200 |
+
"strsim",
|
| 201 |
+
"termcolor",
|
| 202 |
+
"textwrap",
|
| 203 |
+
]
|
| 204 |
+
|
| 205 |
+
[[package]]
|
| 206 |
+
name = "clap_derive"
|
| 207 |
+
version = "3.2.18"
|
| 208 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 209 |
+
checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65"
|
| 210 |
+
dependencies = [
|
| 211 |
+
"heck",
|
| 212 |
+
"proc-macro-error",
|
| 213 |
+
"proc-macro2",
|
| 214 |
+
"quote",
|
| 215 |
+
"syn",
|
| 216 |
+
]
|
| 217 |
+
|
| 218 |
+
[[package]]
|
| 219 |
+
name = "clap_lex"
|
| 220 |
+
version = "0.2.4"
|
| 221 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 222 |
+
checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"
|
| 223 |
+
dependencies = [
|
| 224 |
+
"os_str_bytes",
|
| 225 |
+
]
|
| 226 |
+
|
| 227 |
+
[[package]]
|
| 228 |
+
name = "cloudabi"
|
| 229 |
+
version = "0.0.3"
|
| 230 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 231 |
+
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
|
| 232 |
+
dependencies = [
|
| 233 |
+
"bitflags",
|
| 234 |
+
]
|
| 235 |
+
|
| 236 |
+
[[package]]
|
| 237 |
+
name = "core-foundation"
|
| 238 |
+
version = "0.9.3"
|
| 239 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 240 |
+
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
|
| 241 |
+
dependencies = [
|
| 242 |
+
"core-foundation-sys",
|
| 243 |
+
"libc",
|
| 244 |
+
]
|
| 245 |
+
|
| 246 |
+
[[package]]
|
| 247 |
+
name = "core-foundation-sys"
|
| 248 |
+
version = "0.8.3"
|
| 249 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 250 |
+
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
|
| 251 |
+
|
| 252 |
+
[[package]]
|
| 253 |
+
name = "crossbeam-channel"
|
| 254 |
+
version = "0.5.6"
|
| 255 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 256 |
+
checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521"
|
| 257 |
+
dependencies = [
|
| 258 |
+
"cfg-if 1.0.0",
|
| 259 |
+
"crossbeam-utils 0.8.11",
|
| 260 |
+
]
|
| 261 |
+
|
| 262 |
+
[[package]]
|
| 263 |
+
name = "crossbeam-deque"
|
| 264 |
+
version = "0.8.2"
|
| 265 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 266 |
+
checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc"
|
| 267 |
+
dependencies = [
|
| 268 |
+
"cfg-if 1.0.0",
|
| 269 |
+
"crossbeam-epoch",
|
| 270 |
+
"crossbeam-utils 0.8.11",
|
| 271 |
+
]
|
| 272 |
+
|
| 273 |
+
[[package]]
|
| 274 |
+
name = "crossbeam-epoch"
|
| 275 |
+
version = "0.9.10"
|
| 276 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 277 |
+
checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1"
|
| 278 |
+
dependencies = [
|
| 279 |
+
"autocfg 1.1.0",
|
| 280 |
+
"cfg-if 1.0.0",
|
| 281 |
+
"crossbeam-utils 0.8.11",
|
| 282 |
+
"memoffset",
|
| 283 |
+
"once_cell",
|
| 284 |
+
"scopeguard",
|
| 285 |
+
]
|
| 286 |
+
|
| 287 |
+
[[package]]
|
| 288 |
+
name = "crossbeam-utils"
|
| 289 |
+
version = "0.7.2"
|
| 290 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 291 |
+
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
| 292 |
+
dependencies = [
|
| 293 |
+
"autocfg 1.1.0",
|
| 294 |
+
"cfg-if 0.1.10",
|
| 295 |
+
"lazy_static",
|
| 296 |
+
]
|
| 297 |
+
|
| 298 |
+
[[package]]
|
| 299 |
+
name = "crossbeam-utils"
|
| 300 |
+
version = "0.8.11"
|
| 301 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 302 |
+
checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc"
|
| 303 |
+
dependencies = [
|
| 304 |
+
"cfg-if 1.0.0",
|
| 305 |
+
"once_cell",
|
| 306 |
+
]
|
| 307 |
+
|
| 308 |
+
[[package]]
|
| 309 |
+
name = "digest"
|
| 310 |
+
version = "0.8.1"
|
| 311 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 312 |
+
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
|
| 313 |
+
dependencies = [
|
| 314 |
+
"generic-array",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "either"
|
| 319 |
+
version = "1.8.0"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
|
| 322 |
+
|
| 323 |
+
[[package]]
|
| 324 |
+
name = "encoding_rs"
|
| 325 |
+
version = "0.8.31"
|
| 326 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 327 |
+
checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b"
|
| 328 |
+
dependencies = [
|
| 329 |
+
"cfg-if 1.0.0",
|
| 330 |
+
]
|
| 331 |
+
|
| 332 |
+
[[package]]
|
| 333 |
+
name = "fake-simd"
|
| 334 |
+
version = "0.1.2"
|
| 335 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 336 |
+
checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
|
| 337 |
+
|
| 338 |
+
[[package]]
|
| 339 |
+
name = "fastrand"
|
| 340 |
+
version = "1.8.0"
|
| 341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 342 |
+
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
|
| 343 |
+
dependencies = [
|
| 344 |
+
"instant",
|
| 345 |
+
]
|
| 346 |
+
|
| 347 |
+
[[package]]
|
| 348 |
+
name = "fnv"
|
| 349 |
+
version = "1.0.7"
|
| 350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 351 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 352 |
+
|
| 353 |
+
[[package]]
|
| 354 |
+
name = "foreign-types"
|
| 355 |
+
version = "0.3.2"
|
| 356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 357 |
+
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
| 358 |
+
dependencies = [
|
| 359 |
+
"foreign-types-shared",
|
| 360 |
+
]
|
| 361 |
+
|
| 362 |
+
[[package]]
|
| 363 |
+
name = "foreign-types-shared"
|
| 364 |
+
version = "0.1.1"
|
| 365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 366 |
+
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
| 367 |
+
|
| 368 |
+
[[package]]
|
| 369 |
+
name = "form_urlencoded"
|
| 370 |
+
version = "1.0.1"
|
| 371 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 372 |
+
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
|
| 373 |
+
dependencies = [
|
| 374 |
+
"matches",
|
| 375 |
+
"percent-encoding 2.1.0",
|
| 376 |
+
]
|
| 377 |
+
|
| 378 |
+
[[package]]
|
| 379 |
+
name = "fuchsia-cprng"
|
| 380 |
+
version = "0.1.1"
|
| 381 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 382 |
+
checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
|
| 383 |
+
|
| 384 |
+
[[package]]
|
| 385 |
+
name = "fuchsia-zircon"
|
| 386 |
+
version = "0.3.3"
|
| 387 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 388 |
+
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
| 389 |
+
dependencies = [
|
| 390 |
+
"bitflags",
|
| 391 |
+
"fuchsia-zircon-sys",
|
| 392 |
+
]
|
| 393 |
+
|
| 394 |
+
[[package]]
|
| 395 |
+
name = "fuchsia-zircon-sys"
|
| 396 |
+
version = "0.3.3"
|
| 397 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 398 |
+
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
| 399 |
+
|
| 400 |
+
[[package]]
|
| 401 |
+
name = "futures"
|
| 402 |
+
version = "0.1.31"
|
| 403 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 404 |
+
checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
|
| 405 |
+
|
| 406 |
+
[[package]]
|
| 407 |
+
name = "futures-channel"
|
| 408 |
+
version = "0.3.23"
|
| 409 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 410 |
+
checksum = "2bfc52cbddcfd745bf1740338492bb0bd83d76c67b445f91c5fb29fae29ecaa1"
|
| 411 |
+
dependencies = [
|
| 412 |
+
"futures-core",
|
| 413 |
+
]
|
| 414 |
+
|
| 415 |
+
[[package]]
|
| 416 |
+
name = "futures-core"
|
| 417 |
+
version = "0.3.23"
|
| 418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 419 |
+
checksum = "d2acedae88d38235936c3922476b10fced7b2b68136f5e3c03c2d5be348a1115"
|
| 420 |
+
|
| 421 |
+
[[package]]
|
| 422 |
+
name = "futures-io"
|
| 423 |
+
version = "0.3.23"
|
| 424 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 425 |
+
checksum = "93a66fc6d035a26a3ae255a6d2bca35eda63ae4c5512bef54449113f7a1228e5"
|
| 426 |
+
|
| 427 |
+
[[package]]
|
| 428 |
+
name = "futures-sink"
|
| 429 |
+
version = "0.3.23"
|
| 430 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 431 |
+
checksum = "ca0bae1fe9752cf7fd9b0064c674ae63f97b37bc714d745cbde0afb7ec4e6765"
|
| 432 |
+
|
| 433 |
+
[[package]]
|
| 434 |
+
name = "futures-task"
|
| 435 |
+
version = "0.3.23"
|
| 436 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 437 |
+
checksum = "842fc63b931f4056a24d59de13fb1272134ce261816e063e634ad0c15cdc5306"
|
| 438 |
+
|
| 439 |
+
[[package]]
|
| 440 |
+
name = "futures-util"
|
| 441 |
+
version = "0.3.23"
|
| 442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 443 |
+
checksum = "f0828a5471e340229c11c77ca80017937ce3c58cb788a17e5f1c2d5c485a9577"
|
| 444 |
+
dependencies = [
|
| 445 |
+
"futures-core",
|
| 446 |
+
"futures-io",
|
| 447 |
+
"futures-task",
|
| 448 |
+
"memchr",
|
| 449 |
+
"pin-project-lite",
|
| 450 |
+
"pin-utils",
|
| 451 |
+
"slab",
|
| 452 |
+
]
|
| 453 |
+
|
| 454 |
+
[[package]]
|
| 455 |
+
name = "generic-array"
|
| 456 |
+
version = "0.12.4"
|
| 457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 458 |
+
checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd"
|
| 459 |
+
dependencies = [
|
| 460 |
+
"typenum",
|
| 461 |
+
]
|
| 462 |
+
|
| 463 |
+
[[package]]
|
| 464 |
+
name = "h2"
|
| 465 |
+
version = "0.3.14"
|
| 466 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 467 |
+
checksum = "5ca32592cf21ac7ccab1825cd87f6c9b3d9022c44d086172ed0966bec8af30be"
|
| 468 |
+
dependencies = [
|
| 469 |
+
"bytes 1.2.1",
|
| 470 |
+
"fnv",
|
| 471 |
+
"futures-core",
|
| 472 |
+
"futures-sink",
|
| 473 |
+
"futures-util",
|
| 474 |
+
"http",
|
| 475 |
+
"indexmap",
|
| 476 |
+
"slab",
|
| 477 |
+
"tokio",
|
| 478 |
+
"tokio-util",
|
| 479 |
+
"tracing",
|
| 480 |
+
]
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "hashbrown"
|
| 484 |
+
version = "0.12.3"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
| 487 |
+
|
| 488 |
+
[[package]]
|
| 489 |
+
name = "heck"
|
| 490 |
+
version = "0.4.0"
|
| 491 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 492 |
+
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "hermit-abi"
|
| 496 |
+
version = "0.1.19"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"libc",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "http"
|
| 505 |
+
version = "0.2.8"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399"
|
| 508 |
+
dependencies = [
|
| 509 |
+
"bytes 1.2.1",
|
| 510 |
+
"fnv",
|
| 511 |
+
"itoa",
|
| 512 |
+
]
|
| 513 |
+
|
| 514 |
+
[[package]]
|
| 515 |
+
name = "http-body"
|
| 516 |
+
version = "0.4.5"
|
| 517 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 518 |
+
checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
|
| 519 |
+
dependencies = [
|
| 520 |
+
"bytes 1.2.1",
|
| 521 |
+
"http",
|
| 522 |
+
"pin-project-lite",
|
| 523 |
+
]
|
| 524 |
+
|
| 525 |
+
[[package]]
|
| 526 |
+
name = "httparse"
|
| 527 |
+
version = "1.7.1"
|
| 528 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 529 |
+
checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c"
|
| 530 |
+
|
| 531 |
+
[[package]]
|
| 532 |
+
name = "httpdate"
|
| 533 |
+
version = "1.0.2"
|
| 534 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 535 |
+
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
|
| 536 |
+
|
| 537 |
+
[[package]]
|
| 538 |
+
name = "hyper"
|
| 539 |
+
version = "0.10.16"
|
| 540 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 541 |
+
checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273"
|
| 542 |
+
dependencies = [
|
| 543 |
+
"base64 0.9.3",
|
| 544 |
+
"httparse",
|
| 545 |
+
"language-tags",
|
| 546 |
+
"log 0.3.9",
|
| 547 |
+
"mime 0.2.6",
|
| 548 |
+
"num_cpus",
|
| 549 |
+
"time",
|
| 550 |
+
"traitobject",
|
| 551 |
+
"typeable",
|
| 552 |
+
"unicase",
|
| 553 |
+
"url 1.7.2",
|
| 554 |
+
]
|
| 555 |
+
|
| 556 |
+
[[package]]
|
| 557 |
+
name = "hyper"
|
| 558 |
+
version = "0.14.20"
|
| 559 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 560 |
+
checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac"
|
| 561 |
+
dependencies = [
|
| 562 |
+
"bytes 1.2.1",
|
| 563 |
+
"futures-channel",
|
| 564 |
+
"futures-core",
|
| 565 |
+
"futures-util",
|
| 566 |
+
"h2",
|
| 567 |
+
"http",
|
| 568 |
+
"http-body",
|
| 569 |
+
"httparse",
|
| 570 |
+
"httpdate",
|
| 571 |
+
"itoa",
|
| 572 |
+
"pin-project-lite",
|
| 573 |
+
"socket2",
|
| 574 |
+
"tokio",
|
| 575 |
+
"tower-service",
|
| 576 |
+
"tracing",
|
| 577 |
+
"want",
|
| 578 |
+
]
|
| 579 |
+
|
| 580 |
+
[[package]]
|
| 581 |
+
name = "hyper-tls"
|
| 582 |
+
version = "0.5.0"
|
| 583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 584 |
+
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
|
| 585 |
+
dependencies = [
|
| 586 |
+
"bytes 1.2.1",
|
| 587 |
+
"hyper 0.14.20",
|
| 588 |
+
"native-tls",
|
| 589 |
+
"tokio",
|
| 590 |
+
"tokio-native-tls",
|
| 591 |
+
]
|
| 592 |
+
|
| 593 |
+
[[package]]
|
| 594 |
+
name = "idna"
|
| 595 |
+
version = "0.1.5"
|
| 596 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 597 |
+
checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
|
| 598 |
+
dependencies = [
|
| 599 |
+
"matches",
|
| 600 |
+
"unicode-bidi",
|
| 601 |
+
"unicode-normalization",
|
| 602 |
+
]
|
| 603 |
+
|
| 604 |
+
[[package]]
|
| 605 |
+
name = "idna"
|
| 606 |
+
version = "0.2.3"
|
| 607 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 608 |
+
checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
|
| 609 |
+
dependencies = [
|
| 610 |
+
"matches",
|
| 611 |
+
"unicode-bidi",
|
| 612 |
+
"unicode-normalization",
|
| 613 |
+
]
|
| 614 |
+
|
| 615 |
+
[[package]]
|
| 616 |
+
name = "indexmap"
|
| 617 |
+
version = "1.9.1"
|
| 618 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 619 |
+
checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
|
| 620 |
+
dependencies = [
|
| 621 |
+
"autocfg 1.1.0",
|
| 622 |
+
"hashbrown",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "instant"
|
| 627 |
+
version = "0.1.12"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
|
| 630 |
+
dependencies = [
|
| 631 |
+
"cfg-if 1.0.0",
|
| 632 |
+
]
|
| 633 |
+
|
| 634 |
+
[[package]]
|
| 635 |
+
name = "iovec"
|
| 636 |
+
version = "0.1.4"
|
| 637 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 638 |
+
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
| 639 |
+
dependencies = [
|
| 640 |
+
"libc",
|
| 641 |
+
]
|
| 642 |
+
|
| 643 |
+
[[package]]
|
| 644 |
+
name = "ipnet"
|
| 645 |
+
version = "2.5.0"
|
| 646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 647 |
+
checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b"
|
| 648 |
+
|
| 649 |
+
[[package]]
|
| 650 |
+
name = "itoa"
|
| 651 |
+
version = "1.0.3"
|
| 652 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 653 |
+
checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754"
|
| 654 |
+
|
| 655 |
+
[[package]]
|
| 656 |
+
name = "js-sys"
|
| 657 |
+
version = "0.3.59"
|
| 658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 659 |
+
checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2"
|
| 660 |
+
dependencies = [
|
| 661 |
+
"wasm-bindgen",
|
| 662 |
+
]
|
| 663 |
+
|
| 664 |
+
[[package]]
|
| 665 |
+
name = "jscythe"
|
| 666 |
+
version = "1.0.0"
|
| 667 |
+
dependencies = [
|
| 668 |
+
"clap",
|
| 669 |
+
"lazy_static",
|
| 670 |
+
"netstat2",
|
| 671 |
+
"nix",
|
| 672 |
+
"reqwest",
|
| 673 |
+
"serde",
|
| 674 |
+
"serde_json",
|
| 675 |
+
"sysinfo",
|
| 676 |
+
"websocket",
|
| 677 |
+
]
|
| 678 |
+
|
| 679 |
+
[[package]]
|
| 680 |
+
name = "kernel32-sys"
|
| 681 |
+
version = "0.2.2"
|
| 682 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 683 |
+
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
| 684 |
+
dependencies = [
|
| 685 |
+
"winapi 0.2.8",
|
| 686 |
+
"winapi-build",
|
| 687 |
+
]
|
| 688 |
+
|
| 689 |
+
[[package]]
|
| 690 |
+
name = "language-tags"
|
| 691 |
+
version = "0.2.2"
|
| 692 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 693 |
+
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
|
| 694 |
+
|
| 695 |
+
[[package]]
|
| 696 |
+
name = "lazy_static"
|
| 697 |
+
version = "1.4.0"
|
| 698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 699 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 700 |
+
|
| 701 |
+
[[package]]
|
| 702 |
+
name = "libc"
|
| 703 |
+
version = "0.2.132"
|
| 704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 705 |
+
checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5"
|
| 706 |
+
|
| 707 |
+
[[package]]
|
| 708 |
+
name = "lock_api"
|
| 709 |
+
version = "0.3.4"
|
| 710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 711 |
+
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
|
| 712 |
+
dependencies = [
|
| 713 |
+
"scopeguard",
|
| 714 |
+
]
|
| 715 |
+
|
| 716 |
+
[[package]]
|
| 717 |
+
name = "log"
|
| 718 |
+
version = "0.3.9"
|
| 719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 720 |
+
checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
|
| 721 |
+
dependencies = [
|
| 722 |
+
"log 0.4.17",
|
| 723 |
+
]
|
| 724 |
+
|
| 725 |
+
[[package]]
|
| 726 |
+
name = "log"
|
| 727 |
+
version = "0.4.17"
|
| 728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 729 |
+
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
|
| 730 |
+
dependencies = [
|
| 731 |
+
"cfg-if 1.0.0",
|
| 732 |
+
]
|
| 733 |
+
|
| 734 |
+
[[package]]
|
| 735 |
+
name = "matches"
|
| 736 |
+
version = "0.1.9"
|
| 737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 738 |
+
checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
|
| 739 |
+
|
| 740 |
+
[[package]]
|
| 741 |
+
name = "maybe-uninit"
|
| 742 |
+
version = "2.0.0"
|
| 743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 744 |
+
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
| 745 |
+
|
| 746 |
+
[[package]]
|
| 747 |
+
name = "memchr"
|
| 748 |
+
version = "2.5.0"
|
| 749 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 750 |
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
| 751 |
+
|
| 752 |
+
[[package]]
|
| 753 |
+
name = "memoffset"
|
| 754 |
+
version = "0.6.5"
|
| 755 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 756 |
+
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
|
| 757 |
+
dependencies = [
|
| 758 |
+
"autocfg 1.1.0",
|
| 759 |
+
]
|
| 760 |
+
|
| 761 |
+
[[package]]
|
| 762 |
+
name = "mime"
|
| 763 |
+
version = "0.2.6"
|
| 764 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 765 |
+
checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0"
|
| 766 |
+
dependencies = [
|
| 767 |
+
"log 0.3.9",
|
| 768 |
+
]
|
| 769 |
+
|
| 770 |
+
[[package]]
|
| 771 |
+
name = "mime"
|
| 772 |
+
version = "0.3.16"
|
| 773 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 774 |
+
checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
|
| 775 |
+
|
| 776 |
+
[[package]]
|
| 777 |
+
name = "mio"
|
| 778 |
+
version = "0.6.23"
|
| 779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 780 |
+
checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
|
| 781 |
+
dependencies = [
|
| 782 |
+
"cfg-if 0.1.10",
|
| 783 |
+
"fuchsia-zircon",
|
| 784 |
+
"fuchsia-zircon-sys",
|
| 785 |
+
"iovec",
|
| 786 |
+
"kernel32-sys",
|
| 787 |
+
"libc",
|
| 788 |
+
"log 0.4.17",
|
| 789 |
+
"miow",
|
| 790 |
+
"net2",
|
| 791 |
+
"slab",
|
| 792 |
+
"winapi 0.2.8",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "mio"
|
| 797 |
+
version = "0.8.4"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"
|
| 800 |
+
dependencies = [
|
| 801 |
+
"libc",
|
| 802 |
+
"log 0.4.17",
|
| 803 |
+
"wasi 0.11.0+wasi-snapshot-preview1",
|
| 804 |
+
"windows-sys",
|
| 805 |
+
]
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "miow"
|
| 809 |
+
version = "0.2.2"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
|
| 812 |
+
dependencies = [
|
| 813 |
+
"kernel32-sys",
|
| 814 |
+
"net2",
|
| 815 |
+
"winapi 0.2.8",
|
| 816 |
+
"ws2_32-sys",
|
| 817 |
+
]
|
| 818 |
+
|
| 819 |
+
[[package]]
|
| 820 |
+
name = "native-tls"
|
| 821 |
+
version = "0.2.10"
|
| 822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 823 |
+
checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9"
|
| 824 |
+
dependencies = [
|
| 825 |
+
"lazy_static",
|
| 826 |
+
"libc",
|
| 827 |
+
"log 0.4.17",
|
| 828 |
+
"openssl",
|
| 829 |
+
"openssl-probe",
|
| 830 |
+
"openssl-sys",
|
| 831 |
+
"schannel",
|
| 832 |
+
"security-framework",
|
| 833 |
+
"security-framework-sys",
|
| 834 |
+
"tempfile",
|
| 835 |
+
]
|
| 836 |
+
|
| 837 |
+
[[package]]
|
| 838 |
+
name = "net2"
|
| 839 |
+
version = "0.2.37"
|
| 840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 841 |
+
checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae"
|
| 842 |
+
dependencies = [
|
| 843 |
+
"cfg-if 0.1.10",
|
| 844 |
+
"libc",
|
| 845 |
+
"winapi 0.3.9",
|
| 846 |
+
]
|
| 847 |
+
|
| 848 |
+
[[package]]
|
| 849 |
+
name = "netstat2"
|
| 850 |
+
version = "0.9.1"
|
| 851 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 852 |
+
checksum = "0faa3f4ad230fd2bf2a5dad71476ecbaeaed904b3c7e7e5b1f266c415c03761f"
|
| 853 |
+
dependencies = [
|
| 854 |
+
"bitflags",
|
| 855 |
+
"byteorder",
|
| 856 |
+
"libc",
|
| 857 |
+
"num-derive",
|
| 858 |
+
"num-traits",
|
| 859 |
+
"thiserror",
|
| 860 |
+
]
|
| 861 |
+
|
| 862 |
+
[[package]]
|
| 863 |
+
name = "nix"
|
| 864 |
+
version = "0.25.0"
|
| 865 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 866 |
+
checksum = "e322c04a9e3440c327fca7b6c8a63e6890a32fa2ad689db972425f07e0d22abb"
|
| 867 |
+
dependencies = [
|
| 868 |
+
"autocfg 1.1.0",
|
| 869 |
+
"bitflags",
|
| 870 |
+
"cfg-if 1.0.0",
|
| 871 |
+
"libc",
|
| 872 |
+
"memoffset",
|
| 873 |
+
"pin-utils",
|
| 874 |
+
]
|
| 875 |
+
|
| 876 |
+
[[package]]
|
| 877 |
+
name = "ntapi"
|
| 878 |
+
version = "0.3.7"
|
| 879 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 880 |
+
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
|
| 881 |
+
dependencies = [
|
| 882 |
+
"winapi 0.3.9",
|
| 883 |
+
]
|
| 884 |
+
|
| 885 |
+
[[package]]
|
| 886 |
+
name = "num-derive"
|
| 887 |
+
version = "0.3.3"
|
| 888 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 889 |
+
checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
|
| 890 |
+
dependencies = [
|
| 891 |
+
"proc-macro2",
|
| 892 |
+
"quote",
|
| 893 |
+
"syn",
|
| 894 |
+
]
|
| 895 |
+
|
| 896 |
+
[[package]]
|
| 897 |
+
name = "num-traits"
|
| 898 |
+
version = "0.2.15"
|
| 899 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 900 |
+
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
| 901 |
+
dependencies = [
|
| 902 |
+
"autocfg 1.1.0",
|
| 903 |
+
]
|
| 904 |
+
|
| 905 |
+
[[package]]
|
| 906 |
+
name = "num_cpus"
|
| 907 |
+
version = "1.13.1"
|
| 908 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 909 |
+
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
|
| 910 |
+
dependencies = [
|
| 911 |
+
"hermit-abi",
|
| 912 |
+
"libc",
|
| 913 |
+
]
|
| 914 |
+
|
| 915 |
+
[[package]]
|
| 916 |
+
name = "once_cell"
|
| 917 |
+
version = "1.13.1"
|
| 918 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 919 |
+
checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e"
|
| 920 |
+
|
| 921 |
+
[[package]]
|
| 922 |
+
name = "opaque-debug"
|
| 923 |
+
version = "0.2.3"
|
| 924 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 925 |
+
checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
|
| 926 |
+
|
| 927 |
+
[[package]]
|
| 928 |
+
name = "openssl"
|
| 929 |
+
version = "0.10.41"
|
| 930 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 931 |
+
checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0"
|
| 932 |
+
dependencies = [
|
| 933 |
+
"bitflags",
|
| 934 |
+
"cfg-if 1.0.0",
|
| 935 |
+
"foreign-types",
|
| 936 |
+
"libc",
|
| 937 |
+
"once_cell",
|
| 938 |
+
"openssl-macros",
|
| 939 |
+
"openssl-sys",
|
| 940 |
+
]
|
| 941 |
+
|
| 942 |
+
[[package]]
|
| 943 |
+
name = "openssl-macros"
|
| 944 |
+
version = "0.1.0"
|
| 945 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 946 |
+
checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c"
|
| 947 |
+
dependencies = [
|
| 948 |
+
"proc-macro2",
|
| 949 |
+
"quote",
|
| 950 |
+
"syn",
|
| 951 |
+
]
|
| 952 |
+
|
| 953 |
+
[[package]]
|
| 954 |
+
name = "openssl-probe"
|
| 955 |
+
version = "0.1.5"
|
| 956 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 957 |
+
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
| 958 |
+
|
| 959 |
+
[[package]]
|
| 960 |
+
name = "openssl-sys"
|
| 961 |
+
version = "0.9.75"
|
| 962 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 963 |
+
checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f"
|
| 964 |
+
dependencies = [
|
| 965 |
+
"autocfg 1.1.0",
|
| 966 |
+
"cc",
|
| 967 |
+
"libc",
|
| 968 |
+
"pkg-config",
|
| 969 |
+
"vcpkg",
|
| 970 |
+
]
|
| 971 |
+
|
| 972 |
+
[[package]]
|
| 973 |
+
name = "os_str_bytes"
|
| 974 |
+
version = "6.3.0"
|
| 975 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 976 |
+
checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff"
|
| 977 |
+
|
| 978 |
+
[[package]]
|
| 979 |
+
name = "parking_lot"
|
| 980 |
+
version = "0.9.0"
|
| 981 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 982 |
+
checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
|
| 983 |
+
dependencies = [
|
| 984 |
+
"lock_api",
|
| 985 |
+
"parking_lot_core",
|
| 986 |
+
"rustc_version",
|
| 987 |
+
]
|
| 988 |
+
|
| 989 |
+
[[package]]
|
| 990 |
+
name = "parking_lot_core"
|
| 991 |
+
version = "0.6.2"
|
| 992 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 993 |
+
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
| 994 |
+
dependencies = [
|
| 995 |
+
"cfg-if 0.1.10",
|
| 996 |
+
"cloudabi",
|
| 997 |
+
"libc",
|
| 998 |
+
"redox_syscall 0.1.57",
|
| 999 |
+
"rustc_version",
|
| 1000 |
+
"smallvec",
|
| 1001 |
+
"winapi 0.3.9",
|
| 1002 |
+
]
|
| 1003 |
+
|
| 1004 |
+
[[package]]
|
| 1005 |
+
name = "percent-encoding"
|
| 1006 |
+
version = "1.0.1"
|
| 1007 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1008 |
+
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
| 1009 |
+
|
| 1010 |
+
[[package]]
|
| 1011 |
+
name = "percent-encoding"
|
| 1012 |
+
version = "2.1.0"
|
| 1013 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1014 |
+
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
| 1015 |
+
|
| 1016 |
+
[[package]]
|
| 1017 |
+
name = "pin-project-lite"
|
| 1018 |
+
version = "0.2.9"
|
| 1019 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1020 |
+
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
|
| 1021 |
+
|
| 1022 |
+
[[package]]
|
| 1023 |
+
name = "pin-utils"
|
| 1024 |
+
version = "0.1.0"
|
| 1025 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1026 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 1027 |
+
|
| 1028 |
+
[[package]]
|
| 1029 |
+
name = "pkg-config"
|
| 1030 |
+
version = "0.3.25"
|
| 1031 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1032 |
+
checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae"
|
| 1033 |
+
|
| 1034 |
+
[[package]]
|
| 1035 |
+
name = "proc-macro-error"
|
| 1036 |
+
version = "1.0.4"
|
| 1037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1038 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 1039 |
+
dependencies = [
|
| 1040 |
+
"proc-macro-error-attr",
|
| 1041 |
+
"proc-macro2",
|
| 1042 |
+
"quote",
|
| 1043 |
+
"syn",
|
| 1044 |
+
"version_check 0.9.4",
|
| 1045 |
+
]
|
| 1046 |
+
|
| 1047 |
+
[[package]]
|
| 1048 |
+
name = "proc-macro-error-attr"
|
| 1049 |
+
version = "1.0.4"
|
| 1050 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1051 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 1052 |
+
dependencies = [
|
| 1053 |
+
"proc-macro2",
|
| 1054 |
+
"quote",
|
| 1055 |
+
"version_check 0.9.4",
|
| 1056 |
+
]
|
| 1057 |
+
|
| 1058 |
+
[[package]]
|
| 1059 |
+
name = "proc-macro2"
|
| 1060 |
+
version = "1.0.43"
|
| 1061 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1062 |
+
checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab"
|
| 1063 |
+
dependencies = [
|
| 1064 |
+
"unicode-ident",
|
| 1065 |
+
]
|
| 1066 |
+
|
| 1067 |
+
[[package]]
|
| 1068 |
+
name = "quote"
|
| 1069 |
+
version = "1.0.21"
|
| 1070 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1071 |
+
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
|
| 1072 |
+
dependencies = [
|
| 1073 |
+
"proc-macro2",
|
| 1074 |
+
]
|
| 1075 |
+
|
| 1076 |
+
[[package]]
|
| 1077 |
+
name = "rand"
|
| 1078 |
+
version = "0.6.5"
|
| 1079 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1080 |
+
checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
|
| 1081 |
+
dependencies = [
|
| 1082 |
+
"autocfg 0.1.8",
|
| 1083 |
+
"libc",
|
| 1084 |
+
"rand_chacha",
|
| 1085 |
+
"rand_core 0.4.2",
|
| 1086 |
+
"rand_hc",
|
| 1087 |
+
"rand_isaac",
|
| 1088 |
+
"rand_jitter",
|
| 1089 |
+
"rand_os",
|
| 1090 |
+
"rand_pcg",
|
| 1091 |
+
"rand_xorshift",
|
| 1092 |
+
"winapi 0.3.9",
|
| 1093 |
+
]
|
| 1094 |
+
|
| 1095 |
+
[[package]]
|
| 1096 |
+
name = "rand_chacha"
|
| 1097 |
+
version = "0.1.1"
|
| 1098 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1099 |
+
checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef"
|
| 1100 |
+
dependencies = [
|
| 1101 |
+
"autocfg 0.1.8",
|
| 1102 |
+
"rand_core 0.3.1",
|
| 1103 |
+
]
|
| 1104 |
+
|
| 1105 |
+
[[package]]
|
| 1106 |
+
name = "rand_core"
|
| 1107 |
+
version = "0.3.1"
|
| 1108 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1109 |
+
checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
|
| 1110 |
+
dependencies = [
|
| 1111 |
+
"rand_core 0.4.2",
|
| 1112 |
+
]
|
| 1113 |
+
|
| 1114 |
+
[[package]]
|
| 1115 |
+
name = "rand_core"
|
| 1116 |
+
version = "0.4.2"
|
| 1117 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1118 |
+
checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
|
| 1119 |
+
|
| 1120 |
+
[[package]]
|
| 1121 |
+
name = "rand_hc"
|
| 1122 |
+
version = "0.1.0"
|
| 1123 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1124 |
+
checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4"
|
| 1125 |
+
dependencies = [
|
| 1126 |
+
"rand_core 0.3.1",
|
| 1127 |
+
]
|
| 1128 |
+
|
| 1129 |
+
[[package]]
|
| 1130 |
+
name = "rand_isaac"
|
| 1131 |
+
version = "0.1.1"
|
| 1132 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1133 |
+
checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08"
|
| 1134 |
+
dependencies = [
|
| 1135 |
+
"rand_core 0.3.1",
|
| 1136 |
+
]
|
| 1137 |
+
|
| 1138 |
+
[[package]]
|
| 1139 |
+
name = "rand_jitter"
|
| 1140 |
+
version = "0.1.4"
|
| 1141 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1142 |
+
checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b"
|
| 1143 |
+
dependencies = [
|
| 1144 |
+
"libc",
|
| 1145 |
+
"rand_core 0.4.2",
|
| 1146 |
+
"winapi 0.3.9",
|
| 1147 |
+
]
|
| 1148 |
+
|
| 1149 |
+
[[package]]
|
| 1150 |
+
name = "rand_os"
|
| 1151 |
+
version = "0.1.3"
|
| 1152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1153 |
+
checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
|
| 1154 |
+
dependencies = [
|
| 1155 |
+
"cloudabi",
|
| 1156 |
+
"fuchsia-cprng",
|
| 1157 |
+
"libc",
|
| 1158 |
+
"rand_core 0.4.2",
|
| 1159 |
+
"rdrand",
|
| 1160 |
+
"winapi 0.3.9",
|
| 1161 |
+
]
|
| 1162 |
+
|
| 1163 |
+
[[package]]
|
| 1164 |
+
name = "rand_pcg"
|
| 1165 |
+
version = "0.1.2"
|
| 1166 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1167 |
+
checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
|
| 1168 |
+
dependencies = [
|
| 1169 |
+
"autocfg 0.1.8",
|
| 1170 |
+
"rand_core 0.4.2",
|
| 1171 |
+
]
|
| 1172 |
+
|
| 1173 |
+
[[package]]
|
| 1174 |
+
name = "rand_xorshift"
|
| 1175 |
+
version = "0.1.1"
|
| 1176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1177 |
+
checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
|
| 1178 |
+
dependencies = [
|
| 1179 |
+
"rand_core 0.3.1",
|
| 1180 |
+
]
|
| 1181 |
+
|
| 1182 |
+
[[package]]
|
| 1183 |
+
name = "rayon"
|
| 1184 |
+
version = "1.5.3"
|
| 1185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1186 |
+
checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d"
|
| 1187 |
+
dependencies = [
|
| 1188 |
+
"autocfg 1.1.0",
|
| 1189 |
+
"crossbeam-deque",
|
| 1190 |
+
"either",
|
| 1191 |
+
"rayon-core",
|
| 1192 |
+
]
|
| 1193 |
+
|
| 1194 |
+
[[package]]
|
| 1195 |
+
name = "rayon-core"
|
| 1196 |
+
version = "1.9.3"
|
| 1197 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1198 |
+
checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f"
|
| 1199 |
+
dependencies = [
|
| 1200 |
+
"crossbeam-channel",
|
| 1201 |
+
"crossbeam-deque",
|
| 1202 |
+
"crossbeam-utils 0.8.11",
|
| 1203 |
+
"num_cpus",
|
| 1204 |
+
]
|
| 1205 |
+
|
| 1206 |
+
[[package]]
|
| 1207 |
+
name = "rdrand"
|
| 1208 |
+
version = "0.4.0"
|
| 1209 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1210 |
+
checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
|
| 1211 |
+
dependencies = [
|
| 1212 |
+
"rand_core 0.3.1",
|
| 1213 |
+
]
|
| 1214 |
+
|
| 1215 |
+
[[package]]
|
| 1216 |
+
name = "redox_syscall"
|
| 1217 |
+
version = "0.1.57"
|
| 1218 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1219 |
+
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
| 1220 |
+
|
| 1221 |
+
[[package]]
|
| 1222 |
+
name = "redox_syscall"
|
| 1223 |
+
version = "0.2.16"
|
| 1224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1225 |
+
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
|
| 1226 |
+
dependencies = [
|
| 1227 |
+
"bitflags",
|
| 1228 |
+
]
|
| 1229 |
+
|
| 1230 |
+
[[package]]
|
| 1231 |
+
name = "remove_dir_all"
|
| 1232 |
+
version = "0.5.3"
|
| 1233 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1234 |
+
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
|
| 1235 |
+
dependencies = [
|
| 1236 |
+
"winapi 0.3.9",
|
| 1237 |
+
]
|
| 1238 |
+
|
| 1239 |
+
[[package]]
|
| 1240 |
+
name = "reqwest"
|
| 1241 |
+
version = "0.11.11"
|
| 1242 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1243 |
+
checksum = "b75aa69a3f06bbcc66ede33af2af253c6f7a86b1ca0033f60c580a27074fbf92"
|
| 1244 |
+
dependencies = [
|
| 1245 |
+
"base64 0.13.0",
|
| 1246 |
+
"bytes 1.2.1",
|
| 1247 |
+
"encoding_rs",
|
| 1248 |
+
"futures-core",
|
| 1249 |
+
"futures-util",
|
| 1250 |
+
"h2",
|
| 1251 |
+
"http",
|
| 1252 |
+
"http-body",
|
| 1253 |
+
"hyper 0.14.20",
|
| 1254 |
+
"hyper-tls",
|
| 1255 |
+
"ipnet",
|
| 1256 |
+
"js-sys",
|
| 1257 |
+
"lazy_static",
|
| 1258 |
+
"log 0.4.17",
|
| 1259 |
+
"mime 0.3.16",
|
| 1260 |
+
"native-tls",
|
| 1261 |
+
"percent-encoding 2.1.0",
|
| 1262 |
+
"pin-project-lite",
|
| 1263 |
+
"serde",
|
| 1264 |
+
"serde_json",
|
| 1265 |
+
"serde_urlencoded",
|
| 1266 |
+
"tokio",
|
| 1267 |
+
"tokio-native-tls",
|
| 1268 |
+
"tower-service",
|
| 1269 |
+
"url 2.2.2",
|
| 1270 |
+
"wasm-bindgen",
|
| 1271 |
+
"wasm-bindgen-futures",
|
| 1272 |
+
"web-sys",
|
| 1273 |
+
"winreg",
|
| 1274 |
+
]
|
| 1275 |
+
|
| 1276 |
+
[[package]]
|
| 1277 |
+
name = "rustc_version"
|
| 1278 |
+
version = "0.2.3"
|
| 1279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1280 |
+
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
|
| 1281 |
+
dependencies = [
|
| 1282 |
+
"semver",
|
| 1283 |
+
]
|
| 1284 |
+
|
| 1285 |
+
[[package]]
|
| 1286 |
+
name = "ryu"
|
| 1287 |
+
version = "1.0.11"
|
| 1288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1289 |
+
checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
|
| 1290 |
+
|
| 1291 |
+
[[package]]
|
| 1292 |
+
name = "safemem"
|
| 1293 |
+
version = "0.3.3"
|
| 1294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1295 |
+
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
|
| 1296 |
+
|
| 1297 |
+
[[package]]
|
| 1298 |
+
name = "schannel"
|
| 1299 |
+
version = "0.1.20"
|
| 1300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1301 |
+
checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2"
|
| 1302 |
+
dependencies = [
|
| 1303 |
+
"lazy_static",
|
| 1304 |
+
"windows-sys",
|
| 1305 |
+
]
|
| 1306 |
+
|
| 1307 |
+
[[package]]
|
| 1308 |
+
name = "scopeguard"
|
| 1309 |
+
version = "1.1.0"
|
| 1310 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1311 |
+
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "security-framework"
|
| 1315 |
+
version = "2.7.0"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"bitflags",
|
| 1320 |
+
"core-foundation",
|
| 1321 |
+
"core-foundation-sys",
|
| 1322 |
+
"libc",
|
| 1323 |
+
"security-framework-sys",
|
| 1324 |
+
]
|
| 1325 |
+
|
| 1326 |
+
[[package]]
|
| 1327 |
+
name = "security-framework-sys"
|
| 1328 |
+
version = "2.6.1"
|
| 1329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1330 |
+
checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
|
| 1331 |
+
dependencies = [
|
| 1332 |
+
"core-foundation-sys",
|
| 1333 |
+
"libc",
|
| 1334 |
+
]
|
| 1335 |
+
|
| 1336 |
+
[[package]]
|
| 1337 |
+
name = "semver"
|
| 1338 |
+
version = "0.9.0"
|
| 1339 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1340 |
+
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
|
| 1341 |
+
dependencies = [
|
| 1342 |
+
"semver-parser",
|
| 1343 |
+
]
|
| 1344 |
+
|
| 1345 |
+
[[package]]
|
| 1346 |
+
name = "semver-parser"
|
| 1347 |
+
version = "0.7.0"
|
| 1348 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1349 |
+
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
| 1350 |
+
|
| 1351 |
+
[[package]]
|
| 1352 |
+
name = "serde"
|
| 1353 |
+
version = "1.0.144"
|
| 1354 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1355 |
+
checksum = "0f747710de3dcd43b88c9168773254e809d8ddbdf9653b84e2554ab219f17860"
|
| 1356 |
+
dependencies = [
|
| 1357 |
+
"serde_derive",
|
| 1358 |
+
]
|
| 1359 |
+
|
| 1360 |
+
[[package]]
|
| 1361 |
+
name = "serde_derive"
|
| 1362 |
+
version = "1.0.144"
|
| 1363 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1364 |
+
checksum = "94ed3a816fb1d101812f83e789f888322c34e291f894f19590dc310963e87a00"
|
| 1365 |
+
dependencies = [
|
| 1366 |
+
"proc-macro2",
|
| 1367 |
+
"quote",
|
| 1368 |
+
"syn",
|
| 1369 |
+
]
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "serde_json"
|
| 1373 |
+
version = "1.0.85"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44"
|
| 1376 |
+
dependencies = [
|
| 1377 |
+
"itoa",
|
| 1378 |
+
"ryu",
|
| 1379 |
+
"serde",
|
| 1380 |
+
]
|
| 1381 |
+
|
| 1382 |
+
[[package]]
|
| 1383 |
+
name = "serde_urlencoded"
|
| 1384 |
+
version = "0.7.1"
|
| 1385 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1386 |
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
| 1387 |
+
dependencies = [
|
| 1388 |
+
"form_urlencoded",
|
| 1389 |
+
"itoa",
|
| 1390 |
+
"ryu",
|
| 1391 |
+
"serde",
|
| 1392 |
+
]
|
| 1393 |
+
|
| 1394 |
+
[[package]]
|
| 1395 |
+
name = "sha-1"
|
| 1396 |
+
version = "0.8.2"
|
| 1397 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1398 |
+
checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df"
|
| 1399 |
+
dependencies = [
|
| 1400 |
+
"block-buffer",
|
| 1401 |
+
"digest",
|
| 1402 |
+
"fake-simd",
|
| 1403 |
+
"opaque-debug",
|
| 1404 |
+
]
|
| 1405 |
+
|
| 1406 |
+
[[package]]
|
| 1407 |
+
name = "slab"
|
| 1408 |
+
version = "0.4.7"
|
| 1409 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1410 |
+
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
|
| 1411 |
+
dependencies = [
|
| 1412 |
+
"autocfg 1.1.0",
|
| 1413 |
+
]
|
| 1414 |
+
|
| 1415 |
+
[[package]]
|
| 1416 |
+
name = "smallvec"
|
| 1417 |
+
version = "0.6.14"
|
| 1418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1419 |
+
checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0"
|
| 1420 |
+
dependencies = [
|
| 1421 |
+
"maybe-uninit",
|
| 1422 |
+
]
|
| 1423 |
+
|
| 1424 |
+
[[package]]
|
| 1425 |
+
name = "socket2"
|
| 1426 |
+
version = "0.4.6"
|
| 1427 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1428 |
+
checksum = "10c98bba371b9b22a71a9414e420f92ddeb2369239af08200816169d5e2dd7aa"
|
| 1429 |
+
dependencies = [
|
| 1430 |
+
"libc",
|
| 1431 |
+
"winapi 0.3.9",
|
| 1432 |
+
]
|
| 1433 |
+
|
| 1434 |
+
[[package]]
|
| 1435 |
+
name = "strsim"
|
| 1436 |
+
version = "0.10.0"
|
| 1437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1438 |
+
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
| 1439 |
+
|
| 1440 |
+
[[package]]
|
| 1441 |
+
name = "syn"
|
| 1442 |
+
version = "1.0.99"
|
| 1443 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1444 |
+
checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13"
|
| 1445 |
+
dependencies = [
|
| 1446 |
+
"proc-macro2",
|
| 1447 |
+
"quote",
|
| 1448 |
+
"unicode-ident",
|
| 1449 |
+
]
|
| 1450 |
+
|
| 1451 |
+
[[package]]
|
| 1452 |
+
name = "sysinfo"
|
| 1453 |
+
version = "0.25.3"
|
| 1454 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1455 |
+
checksum = "71eb43e528fdc239f08717ec2a378fdb017dddbc3412de15fff527554591a66c"
|
| 1456 |
+
dependencies = [
|
| 1457 |
+
"cfg-if 1.0.0",
|
| 1458 |
+
"core-foundation-sys",
|
| 1459 |
+
"libc",
|
| 1460 |
+
"ntapi",
|
| 1461 |
+
"once_cell",
|
| 1462 |
+
"rayon",
|
| 1463 |
+
"winapi 0.3.9",
|
| 1464 |
+
]
|
| 1465 |
+
|
| 1466 |
+
[[package]]
|
| 1467 |
+
name = "tempfile"
|
| 1468 |
+
version = "3.3.0"
|
| 1469 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1470 |
+
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
|
| 1471 |
+
dependencies = [
|
| 1472 |
+
"cfg-if 1.0.0",
|
| 1473 |
+
"fastrand",
|
| 1474 |
+
"libc",
|
| 1475 |
+
"redox_syscall 0.2.16",
|
| 1476 |
+
"remove_dir_all",
|
| 1477 |
+
"winapi 0.3.9",
|
| 1478 |
+
]
|
| 1479 |
+
|
| 1480 |
+
[[package]]
|
| 1481 |
+
name = "termcolor"
|
| 1482 |
+
version = "1.1.3"
|
| 1483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1484 |
+
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
|
| 1485 |
+
dependencies = [
|
| 1486 |
+
"winapi-util",
|
| 1487 |
+
]
|
| 1488 |
+
|
| 1489 |
+
[[package]]
|
| 1490 |
+
name = "textwrap"
|
| 1491 |
+
version = "0.15.0"
|
| 1492 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1493 |
+
checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
|
| 1494 |
+
|
| 1495 |
+
[[package]]
|
| 1496 |
+
name = "thiserror"
|
| 1497 |
+
version = "1.0.32"
|
| 1498 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1499 |
+
checksum = "f5f6586b7f764adc0231f4c79be7b920e766bb2f3e51b3661cdb263828f19994"
|
| 1500 |
+
dependencies = [
|
| 1501 |
+
"thiserror-impl",
|
| 1502 |
+
]
|
| 1503 |
+
|
| 1504 |
+
[[package]]
|
| 1505 |
+
name = "thiserror-impl"
|
| 1506 |
+
version = "1.0.32"
|
| 1507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1508 |
+
checksum = "12bafc5b54507e0149cdf1b145a5d80ab80a90bcd9275df43d4fff68460f6c21"
|
| 1509 |
+
dependencies = [
|
| 1510 |
+
"proc-macro2",
|
| 1511 |
+
"quote",
|
| 1512 |
+
"syn",
|
| 1513 |
+
]
|
| 1514 |
+
|
| 1515 |
+
[[package]]
|
| 1516 |
+
name = "time"
|
| 1517 |
+
version = "0.1.44"
|
| 1518 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1519 |
+
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
|
| 1520 |
+
dependencies = [
|
| 1521 |
+
"libc",
|
| 1522 |
+
"wasi 0.10.0+wasi-snapshot-preview1",
|
| 1523 |
+
"winapi 0.3.9",
|
| 1524 |
+
]
|
| 1525 |
+
|
| 1526 |
+
[[package]]
|
| 1527 |
+
name = "tinyvec"
|
| 1528 |
+
version = "1.6.0"
|
| 1529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1530 |
+
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
| 1531 |
+
dependencies = [
|
| 1532 |
+
"tinyvec_macros",
|
| 1533 |
+
]
|
| 1534 |
+
|
| 1535 |
+
[[package]]
|
| 1536 |
+
name = "tinyvec_macros"
|
| 1537 |
+
version = "0.1.0"
|
| 1538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1539 |
+
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
|
| 1540 |
+
|
| 1541 |
+
[[package]]
|
| 1542 |
+
name = "tokio"
|
| 1543 |
+
version = "1.20.1"
|
| 1544 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1545 |
+
checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581"
|
| 1546 |
+
dependencies = [
|
| 1547 |
+
"autocfg 1.1.0",
|
| 1548 |
+
"bytes 1.2.1",
|
| 1549 |
+
"libc",
|
| 1550 |
+
"memchr",
|
| 1551 |
+
"mio 0.8.4",
|
| 1552 |
+
"num_cpus",
|
| 1553 |
+
"once_cell",
|
| 1554 |
+
"pin-project-lite",
|
| 1555 |
+
"socket2",
|
| 1556 |
+
"winapi 0.3.9",
|
| 1557 |
+
]
|
| 1558 |
+
|
| 1559 |
+
[[package]]
|
| 1560 |
+
name = "tokio-codec"
|
| 1561 |
+
version = "0.1.2"
|
| 1562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1563 |
+
checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
|
| 1564 |
+
dependencies = [
|
| 1565 |
+
"bytes 0.4.12",
|
| 1566 |
+
"futures",
|
| 1567 |
+
"tokio-io",
|
| 1568 |
+
]
|
| 1569 |
+
|
| 1570 |
+
[[package]]
|
| 1571 |
+
name = "tokio-executor"
|
| 1572 |
+
version = "0.1.10"
|
| 1573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1574 |
+
checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
|
| 1575 |
+
dependencies = [
|
| 1576 |
+
"crossbeam-utils 0.7.2",
|
| 1577 |
+
"futures",
|
| 1578 |
+
]
|
| 1579 |
+
|
| 1580 |
+
[[package]]
|
| 1581 |
+
name = "tokio-io"
|
| 1582 |
+
version = "0.1.13"
|
| 1583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1584 |
+
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
|
| 1585 |
+
dependencies = [
|
| 1586 |
+
"bytes 0.4.12",
|
| 1587 |
+
"futures",
|
| 1588 |
+
"log 0.4.17",
|
| 1589 |
+
]
|
| 1590 |
+
|
| 1591 |
+
[[package]]
|
| 1592 |
+
name = "tokio-native-tls"
|
| 1593 |
+
version = "0.3.0"
|
| 1594 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1595 |
+
checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b"
|
| 1596 |
+
dependencies = [
|
| 1597 |
+
"native-tls",
|
| 1598 |
+
"tokio",
|
| 1599 |
+
]
|
| 1600 |
+
|
| 1601 |
+
[[package]]
|
| 1602 |
+
name = "tokio-reactor"
|
| 1603 |
+
version = "0.1.12"
|
| 1604 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1605 |
+
checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
|
| 1606 |
+
dependencies = [
|
| 1607 |
+
"crossbeam-utils 0.7.2",
|
| 1608 |
+
"futures",
|
| 1609 |
+
"lazy_static",
|
| 1610 |
+
"log 0.4.17",
|
| 1611 |
+
"mio 0.6.23",
|
| 1612 |
+
"num_cpus",
|
| 1613 |
+
"parking_lot",
|
| 1614 |
+
"slab",
|
| 1615 |
+
"tokio-executor",
|
| 1616 |
+
"tokio-io",
|
| 1617 |
+
"tokio-sync",
|
| 1618 |
+
]
|
| 1619 |
+
|
| 1620 |
+
[[package]]
|
| 1621 |
+
name = "tokio-sync"
|
| 1622 |
+
version = "0.1.8"
|
| 1623 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1624 |
+
checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
|
| 1625 |
+
dependencies = [
|
| 1626 |
+
"fnv",
|
| 1627 |
+
"futures",
|
| 1628 |
+
]
|
| 1629 |
+
|
| 1630 |
+
[[package]]
|
| 1631 |
+
name = "tokio-tcp"
|
| 1632 |
+
version = "0.1.4"
|
| 1633 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1634 |
+
checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
|
| 1635 |
+
dependencies = [
|
| 1636 |
+
"bytes 0.4.12",
|
| 1637 |
+
"futures",
|
| 1638 |
+
"iovec",
|
| 1639 |
+
"mio 0.6.23",
|
| 1640 |
+
"tokio-io",
|
| 1641 |
+
"tokio-reactor",
|
| 1642 |
+
]
|
| 1643 |
+
|
| 1644 |
+
[[package]]
|
| 1645 |
+
name = "tokio-tls"
|
| 1646 |
+
version = "0.2.1"
|
| 1647 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1648 |
+
checksum = "354b8cd83825b3c20217a9dc174d6a0c67441a2fae5c41bcb1ea6679f6ae0f7c"
|
| 1649 |
+
dependencies = [
|
| 1650 |
+
"futures",
|
| 1651 |
+
"native-tls",
|
| 1652 |
+
"tokio-io",
|
| 1653 |
+
]
|
| 1654 |
+
|
| 1655 |
+
[[package]]
|
| 1656 |
+
name = "tokio-util"
|
| 1657 |
+
version = "0.7.3"
|
| 1658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1659 |
+
checksum = "cc463cd8deddc3770d20f9852143d50bf6094e640b485cb2e189a2099085ff45"
|
| 1660 |
+
dependencies = [
|
| 1661 |
+
"bytes 1.2.1",
|
| 1662 |
+
"futures-core",
|
| 1663 |
+
"futures-sink",
|
| 1664 |
+
"pin-project-lite",
|
| 1665 |
+
"tokio",
|
| 1666 |
+
"tracing",
|
| 1667 |
+
]
|
| 1668 |
+
|
| 1669 |
+
[[package]]
|
| 1670 |
+
name = "tower-service"
|
| 1671 |
+
version = "0.3.2"
|
| 1672 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1673 |
+
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
|
| 1674 |
+
|
| 1675 |
+
[[package]]
|
| 1676 |
+
name = "tracing"
|
| 1677 |
+
version = "0.1.36"
|
| 1678 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1679 |
+
checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307"
|
| 1680 |
+
dependencies = [
|
| 1681 |
+
"cfg-if 1.0.0",
|
| 1682 |
+
"pin-project-lite",
|
| 1683 |
+
"tracing-core",
|
| 1684 |
+
]
|
| 1685 |
+
|
| 1686 |
+
[[package]]
|
| 1687 |
+
name = "tracing-core"
|
| 1688 |
+
version = "0.1.29"
|
| 1689 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1690 |
+
checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7"
|
| 1691 |
+
dependencies = [
|
| 1692 |
+
"once_cell",
|
| 1693 |
+
]
|
| 1694 |
+
|
| 1695 |
+
[[package]]
|
| 1696 |
+
name = "traitobject"
|
| 1697 |
+
version = "0.1.0"
|
| 1698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1699 |
+
checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
|
| 1700 |
+
|
| 1701 |
+
[[package]]
|
| 1702 |
+
name = "try-lock"
|
| 1703 |
+
version = "0.2.3"
|
| 1704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1705 |
+
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
|
| 1706 |
+
|
| 1707 |
+
[[package]]
|
| 1708 |
+
name = "typeable"
|
| 1709 |
+
version = "0.1.2"
|
| 1710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1711 |
+
checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
|
| 1712 |
+
|
| 1713 |
+
[[package]]
|
| 1714 |
+
name = "typenum"
|
| 1715 |
+
version = "1.15.0"
|
| 1716 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1717 |
+
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
|
| 1718 |
+
|
| 1719 |
+
[[package]]
|
| 1720 |
+
name = "unicase"
|
| 1721 |
+
version = "1.4.2"
|
| 1722 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1723 |
+
checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33"
|
| 1724 |
+
dependencies = [
|
| 1725 |
+
"version_check 0.1.5",
|
| 1726 |
+
]
|
| 1727 |
+
|
| 1728 |
+
[[package]]
|
| 1729 |
+
name = "unicode-bidi"
|
| 1730 |
+
version = "0.3.8"
|
| 1731 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1732 |
+
checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
|
| 1733 |
+
|
| 1734 |
+
[[package]]
|
| 1735 |
+
name = "unicode-ident"
|
| 1736 |
+
version = "1.0.3"
|
| 1737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1738 |
+
checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
| 1739 |
+
|
| 1740 |
+
[[package]]
|
| 1741 |
+
name = "unicode-normalization"
|
| 1742 |
+
version = "0.1.21"
|
| 1743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1744 |
+
checksum = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6"
|
| 1745 |
+
dependencies = [
|
| 1746 |
+
"tinyvec",
|
| 1747 |
+
]
|
| 1748 |
+
|
| 1749 |
+
[[package]]
|
| 1750 |
+
name = "url"
|
| 1751 |
+
version = "1.7.2"
|
| 1752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1753 |
+
checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
|
| 1754 |
+
dependencies = [
|
| 1755 |
+
"idna 0.1.5",
|
| 1756 |
+
"matches",
|
| 1757 |
+
"percent-encoding 1.0.1",
|
| 1758 |
+
]
|
| 1759 |
+
|
| 1760 |
+
[[package]]
|
| 1761 |
+
name = "url"
|
| 1762 |
+
version = "2.2.2"
|
| 1763 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1764 |
+
checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
|
| 1765 |
+
dependencies = [
|
| 1766 |
+
"form_urlencoded",
|
| 1767 |
+
"idna 0.2.3",
|
| 1768 |
+
"matches",
|
| 1769 |
+
"percent-encoding 2.1.0",
|
| 1770 |
+
]
|
| 1771 |
+
|
| 1772 |
+
[[package]]
|
| 1773 |
+
name = "vcpkg"
|
| 1774 |
+
version = "0.2.15"
|
| 1775 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1776 |
+
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
| 1777 |
+
|
| 1778 |
+
[[package]]
|
| 1779 |
+
name = "version_check"
|
| 1780 |
+
version = "0.1.5"
|
| 1781 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1782 |
+
checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
|
| 1783 |
+
|
| 1784 |
+
[[package]]
|
| 1785 |
+
name = "version_check"
|
| 1786 |
+
version = "0.9.4"
|
| 1787 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1788 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 1789 |
+
|
| 1790 |
+
[[package]]
|
| 1791 |
+
name = "want"
|
| 1792 |
+
version = "0.3.0"
|
| 1793 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1794 |
+
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
|
| 1795 |
+
dependencies = [
|
| 1796 |
+
"log 0.4.17",
|
| 1797 |
+
"try-lock",
|
| 1798 |
+
]
|
| 1799 |
+
|
| 1800 |
+
[[package]]
|
| 1801 |
+
name = "wasi"
|
| 1802 |
+
version = "0.10.0+wasi-snapshot-preview1"
|
| 1803 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1804 |
+
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
|
| 1805 |
+
|
| 1806 |
+
[[package]]
|
| 1807 |
+
name = "wasi"
|
| 1808 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 1809 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1810 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 1811 |
+
|
| 1812 |
+
[[package]]
|
| 1813 |
+
name = "wasm-bindgen"
|
| 1814 |
+
version = "0.2.82"
|
| 1815 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1816 |
+
checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d"
|
| 1817 |
+
dependencies = [
|
| 1818 |
+
"cfg-if 1.0.0",
|
| 1819 |
+
"wasm-bindgen-macro",
|
| 1820 |
+
]
|
| 1821 |
+
|
| 1822 |
+
[[package]]
|
| 1823 |
+
name = "wasm-bindgen-backend"
|
| 1824 |
+
version = "0.2.82"
|
| 1825 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1826 |
+
checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f"
|
| 1827 |
+
dependencies = [
|
| 1828 |
+
"bumpalo",
|
| 1829 |
+
"log 0.4.17",
|
| 1830 |
+
"once_cell",
|
| 1831 |
+
"proc-macro2",
|
| 1832 |
+
"quote",
|
| 1833 |
+
"syn",
|
| 1834 |
+
"wasm-bindgen-shared",
|
| 1835 |
+
]
|
| 1836 |
+
|
| 1837 |
+
[[package]]
|
| 1838 |
+
name = "wasm-bindgen-futures"
|
| 1839 |
+
version = "0.4.32"
|
| 1840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1841 |
+
checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad"
|
| 1842 |
+
dependencies = [
|
| 1843 |
+
"cfg-if 1.0.0",
|
| 1844 |
+
"js-sys",
|
| 1845 |
+
"wasm-bindgen",
|
| 1846 |
+
"web-sys",
|
| 1847 |
+
]
|
| 1848 |
+
|
| 1849 |
+
[[package]]
|
| 1850 |
+
name = "wasm-bindgen-macro"
|
| 1851 |
+
version = "0.2.82"
|
| 1852 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1853 |
+
checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602"
|
| 1854 |
+
dependencies = [
|
| 1855 |
+
"quote",
|
| 1856 |
+
"wasm-bindgen-macro-support",
|
| 1857 |
+
]
|
| 1858 |
+
|
| 1859 |
+
[[package]]
|
| 1860 |
+
name = "wasm-bindgen-macro-support"
|
| 1861 |
+
version = "0.2.82"
|
| 1862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1863 |
+
checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da"
|
| 1864 |
+
dependencies = [
|
| 1865 |
+
"proc-macro2",
|
| 1866 |
+
"quote",
|
| 1867 |
+
"syn",
|
| 1868 |
+
"wasm-bindgen-backend",
|
| 1869 |
+
"wasm-bindgen-shared",
|
| 1870 |
+
]
|
| 1871 |
+
|
| 1872 |
+
[[package]]
|
| 1873 |
+
name = "wasm-bindgen-shared"
|
| 1874 |
+
version = "0.2.82"
|
| 1875 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1876 |
+
checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a"
|
| 1877 |
+
|
| 1878 |
+
[[package]]
|
| 1879 |
+
name = "web-sys"
|
| 1880 |
+
version = "0.3.59"
|
| 1881 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1882 |
+
checksum = "ed055ab27f941423197eb86b2035720b1a3ce40504df082cac2ecc6ed73335a1"
|
| 1883 |
+
dependencies = [
|
| 1884 |
+
"js-sys",
|
| 1885 |
+
"wasm-bindgen",
|
| 1886 |
+
]
|
| 1887 |
+
|
| 1888 |
+
[[package]]
|
| 1889 |
+
name = "websocket"
|
| 1890 |
+
version = "0.26.5"
|
| 1891 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1892 |
+
checksum = "92aacab060eea423e4036820ddd28f3f9003b2c4d8048cbda985e5a14e18038d"
|
| 1893 |
+
dependencies = [
|
| 1894 |
+
"bytes 0.4.12",
|
| 1895 |
+
"futures",
|
| 1896 |
+
"hyper 0.10.16",
|
| 1897 |
+
"native-tls",
|
| 1898 |
+
"rand",
|
| 1899 |
+
"tokio-codec",
|
| 1900 |
+
"tokio-io",
|
| 1901 |
+
"tokio-reactor",
|
| 1902 |
+
"tokio-tcp",
|
| 1903 |
+
"tokio-tls",
|
| 1904 |
+
"unicase",
|
| 1905 |
+
"url 1.7.2",
|
| 1906 |
+
"websocket-base",
|
| 1907 |
+
]
|
| 1908 |
+
|
| 1909 |
+
[[package]]
|
| 1910 |
+
name = "websocket-base"
|
| 1911 |
+
version = "0.26.5"
|
| 1912 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1913 |
+
checksum = "49aec794b07318993d1db16156d5a9c750120597a5ee40c6b928d416186cb138"
|
| 1914 |
+
dependencies = [
|
| 1915 |
+
"base64 0.10.1",
|
| 1916 |
+
"bitflags",
|
| 1917 |
+
"byteorder",
|
| 1918 |
+
"bytes 0.4.12",
|
| 1919 |
+
"futures",
|
| 1920 |
+
"native-tls",
|
| 1921 |
+
"rand",
|
| 1922 |
+
"sha-1",
|
| 1923 |
+
"tokio-codec",
|
| 1924 |
+
"tokio-io",
|
| 1925 |
+
"tokio-tcp",
|
| 1926 |
+
"tokio-tls",
|
| 1927 |
+
]
|
| 1928 |
+
|
| 1929 |
+
[[package]]
|
| 1930 |
+
name = "winapi"
|
| 1931 |
+
version = "0.2.8"
|
| 1932 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1933 |
+
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
| 1934 |
+
|
| 1935 |
+
[[package]]
|
| 1936 |
+
name = "winapi"
|
| 1937 |
+
version = "0.3.9"
|
| 1938 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1939 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 1940 |
+
dependencies = [
|
| 1941 |
+
"winapi-i686-pc-windows-gnu",
|
| 1942 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 1943 |
+
]
|
| 1944 |
+
|
| 1945 |
+
[[package]]
|
| 1946 |
+
name = "winapi-build"
|
| 1947 |
+
version = "0.1.1"
|
| 1948 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1949 |
+
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
| 1950 |
+
|
| 1951 |
+
[[package]]
|
| 1952 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 1953 |
+
version = "0.4.0"
|
| 1954 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1955 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 1956 |
+
|
| 1957 |
+
[[package]]
|
| 1958 |
+
name = "winapi-util"
|
| 1959 |
+
version = "0.1.5"
|
| 1960 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1961 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 1962 |
+
dependencies = [
|
| 1963 |
+
"winapi 0.3.9",
|
| 1964 |
+
]
|
| 1965 |
+
|
| 1966 |
+
[[package]]
|
| 1967 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 1968 |
+
version = "0.4.0"
|
| 1969 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1970 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 1971 |
+
|
| 1972 |
+
[[package]]
|
| 1973 |
+
name = "windows-sys"
|
| 1974 |
+
version = "0.36.1"
|
| 1975 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1976 |
+
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
|
| 1977 |
+
dependencies = [
|
| 1978 |
+
"windows_aarch64_msvc",
|
| 1979 |
+
"windows_i686_gnu",
|
| 1980 |
+
"windows_i686_msvc",
|
| 1981 |
+
"windows_x86_64_gnu",
|
| 1982 |
+
"windows_x86_64_msvc",
|
| 1983 |
+
]
|
| 1984 |
+
|
| 1985 |
+
[[package]]
|
| 1986 |
+
name = "windows_aarch64_msvc"
|
| 1987 |
+
version = "0.36.1"
|
| 1988 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1989 |
+
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
|
| 1990 |
+
|
| 1991 |
+
[[package]]
|
| 1992 |
+
name = "windows_i686_gnu"
|
| 1993 |
+
version = "0.36.1"
|
| 1994 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1995 |
+
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
|
| 1996 |
+
|
| 1997 |
+
[[package]]
|
| 1998 |
+
name = "windows_i686_msvc"
|
| 1999 |
+
version = "0.36.1"
|
| 2000 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2001 |
+
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
|
| 2002 |
+
|
| 2003 |
+
[[package]]
|
| 2004 |
+
name = "windows_x86_64_gnu"
|
| 2005 |
+
version = "0.36.1"
|
| 2006 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2007 |
+
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
|
| 2008 |
+
|
| 2009 |
+
[[package]]
|
| 2010 |
+
name = "windows_x86_64_msvc"
|
| 2011 |
+
version = "0.36.1"
|
| 2012 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2013 |
+
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
|
| 2014 |
+
|
| 2015 |
+
[[package]]
|
| 2016 |
+
name = "winreg"
|
| 2017 |
+
version = "0.10.1"
|
| 2018 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2019 |
+
checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
|
| 2020 |
+
dependencies = [
|
| 2021 |
+
"winapi 0.3.9",
|
| 2022 |
+
]
|
| 2023 |
+
|
| 2024 |
+
[[package]]
|
| 2025 |
+
name = "ws2_32-sys"
|
| 2026 |
+
version = "0.2.1"
|
| 2027 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2028 |
+
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
| 2029 |
+
dependencies = [
|
| 2030 |
+
"winapi 0.2.8",
|
| 2031 |
+
"winapi-build",
|
| 2032 |
+
]
|
| 2033 |
+
EOF_LOCK
|
| 2034 |
+
|
| 2035 |
+
if [ -f "${CARGO_FETCH_DIR}/Cargo.toml" ] && [ -f "${CARGO_FETCH_DIR}/Cargo.lock" ]; then
|
| 2036 |
+
:
|
| 2037 |
+
else
|
| 2038 |
+
printf '%s\n' ';;; ERROR: could not write temporary Cargo manifest/lockfile' 1>&2
|
| 2039 |
+
_download_fail
|
| 2040 |
+
fi
|
| 2041 |
+
|
| 2042 |
+
# A package manifest with no source tree needs a stub crate root so that
|
| 2043 |
+
# prefetch resolution succeeds.
|
| 2044 |
+
mkdir -p "${CARGO_FETCH_DIR}/src"
|
| 2045 |
+
printf '%s\n' '// prefetch bootstrap' > "${CARGO_FETCH_DIR}/src/lib.rs"
|
| 2046 |
+
|
| 2047 |
+
# Prefetch exactly the pinned crates the offline build needs. Never run the
|
| 2048 |
+
# Cargo prefetch command from the repository root or /source_ro; always point
|
| 2049 |
+
# Cargo at the generated manifest with --manifest-path. --locked keeps
|
| 2050 |
+
# resolution pinned to the embedded lockfile.
|
| 2051 |
+
cargo fetch --manifest-path "${CARGO_FETCH_DIR}/Cargo.toml" --locked
|
| 2052 |
+
_fetch_rc=$?
|
| 2053 |
+
if [ "${_fetch_rc}" -ne 0 ]; then
|
| 2054 |
+
printf '%s\n' ';;; ERROR: cargo dependency prefetch failed' 1>&2
|
| 2055 |
+
_download_fail
|
| 2056 |
+
fi
|
| 2057 |
+
|
| 2058 |
+
printf '%s\n' ';;; cargo dependency prefetch complete'
|
| 2059 |
+
|
| 2060 |
+
# ---------------------------------------------------------------------------
|
| 2061 |
+
# Apply an idempotent patch to the vendored 'traitobject' 0.1.0 crate in the
|
| 2062 |
+
# cargo registry cache. That 2017 crate ships overlapping Send/Sync auto-trait
|
| 2063 |
+
# impls (Send+Send, Send+Sync, Sync+Send, ...) which modern rustc collapses and
|
| 2064 |
+
# rejects as conflicting. The websocket dep of jscythe pulls it in. We replace
|
| 2065 |
+
# the six overlapping impls with the three distinct, non-overlapping forms.
|
| 2066 |
+
# This only rewrites cache source; it performs no compilation.
|
| 2067 |
+
# ---------------------------------------------------------------------------
|
| 2068 |
+
python3 - <<'PY_END'
|
| 2069 |
+
import glob, os, sys
|
| 2070 |
+
cargo_home = os.environ.get('CARGO_HOME') or os.path.expanduser('~/.cargo')
|
| 2071 |
+
cands = glob.glob(os.path.join(cargo_home, 'registry', 'src', '*', 'traitobject-0.1.0', 'src', 'impls.rs'))
|
| 2072 |
+
if not cands:
|
| 2073 |
+
print('ERROR: traitobject-0.1.0 source not found in cargo registry cache', file=sys.stderr)
|
| 2074 |
+
sys.exit(1)
|
| 2075 |
+
p = cands[0]
|
| 2076 |
+
src = open(p, 'r', encoding='utf-8').read()
|
| 2077 |
+
if '::std::marker::Send + Send { }' not in src:
|
| 2078 |
+
print('traitobject-0.1.0 already patched; no-op')
|
| 2079 |
+
sys.exit(0)
|
| 2080 |
+
old = (
|
| 2081 |
+
'unsafe impl Trait for ::std::marker::Send + Send { }\n'
|
| 2082 |
+
'unsafe impl Trait for ::std::marker::Send + Sync { }\n'
|
| 2083 |
+
'unsafe impl Trait for ::std::marker::Send + Send + Sync { }\n'
|
| 2084 |
+
'unsafe impl Trait for ::std::marker::Sync + Send { }\n'
|
| 2085 |
+
'unsafe impl Trait for ::std::marker::Sync + Sync { }\n'
|
| 2086 |
+
'unsafe impl Trait for ::std::marker::Sync + Send + Sync { }\n'
|
| 2087 |
+
)
|
| 2088 |
+
new = (
|
| 2089 |
+
'unsafe impl Trait for ::std::marker::Send { }\n'
|
| 2090 |
+
'unsafe impl Trait for ::std::marker::Sync { }\n'
|
| 2091 |
+
'unsafe impl Trait for ::std::marker::Send + Sync { }\n'
|
| 2092 |
+
)
|
| 2093 |
+
if old not in src:
|
| 2094 |
+
print('ERROR: unexpected traitobject impls.rs content; refusing to guess', file=sys.stderr)
|
| 2095 |
+
sys.exit(1)
|
| 2096 |
+
open(p, 'w', encoding='utf-8').write(src.replace(old, new, 1))
|
| 2097 |
+
print('patched traitobject-0.1.0 impls.rs (removed overlapping Send/Sync impls)')
|
| 2098 |
+
sys.exit(0)
|
| 2099 |
+
PY_END
|
| 2100 |
+
|
| 2101 |
+
_pt_rc=$?
|
| 2102 |
+
if [ "${_pt_rc}" -ne 0 ]; then
|
| 2103 |
+
printf '%s\n' ';;; ERROR: traitobject cache patch failed' 1>&2
|
| 2104 |
+
_download_fail
|
| 2105 |
+
fi
|
| 2106 |
+
|
| 2107 |
+
printf '%s\n' ';;; download.sh complete: crate cache prefetched and prepared'
|
evilsocket--jscythe.6aeeeb5/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb9ab87feb41a1071032ab95a719b42c0884b9f3bb99d9c918249a1397c0c8b4
|
| 3 |
+
size 5933440
|
evilsocket--jscythe.6aeeeb5/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
|
evilsocket--jscythe.6aeeeb5/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:292fb79d4ba43ea9e7cfe5fa0ff4d7cd4871d80d25596b30407fc7875374db4c
|
| 3 |
+
size 21132
|
evilsocket--jscythe.6aeeeb5/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
|
evilsocket--jscythe.6aeeeb5/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
|
evilsocket--jscythe.6aeeeb5/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/evilsocket--jscythe.6aeeeb5"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for evilsocket/jscythe"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "evilsocket__jscythe.6aeeeb5"
|
| 32 |
+
repository = "evilsocket/jscythe"
|
| 33 |
+
commit = "6aeeeb5c42fa0d395096ec3c58225086aae17410"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.6589648426644352
|
| 37 |
+
test_branches = 2
|
| 38 |
+
test_count = 221
|
| 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"
|
evilsocket--jscythe.6aeeeb5/tests/Dockerfile
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 50 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 51 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 52 |
+
&& mkdir -p /workspace /tests
|
| 53 |
+
|
| 54 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 55 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 56 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 57 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 58 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 59 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 60 |
+
RUN python3 -m pip install --break-system-packages \
|
| 61 |
+
--no-cache-dir --disable-pip-version-check \
|
| 62 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 63 |
+
|
| 64 |
+
COPY test.sh /tests/test.sh
|
| 65 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 66 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
+
COPY blobs/ /tests/blobs/
|
| 68 |
+
RUN chmod +x /tests/test.sh
|
evilsocket--jscythe.6aeeeb5/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:0c4a74c2754917098590ad1b003ff65b5fa31882e8ddf30127f74c4bcd457727
|
| 3 |
+
size 22621
|
evilsocket--jscythe.6aeeeb5/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:3fa1090c0a60001775b5bea1328efab7656d3fb40fbf52d411b682f642bb178a
|
| 3 |
+
size 24491
|
evilsocket--jscythe.6aeeeb5/tests/download.sh
ADDED
|
@@ -0,0 +1,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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh - ProgramGym networked prefetch stage for the 'jscythe' Rust crate.
|
| 3 |
+
#
|
| 4 |
+
# This script is 'source'd (not executed) by the validator inside a read-only
|
| 5 |
+
# repository mount while network access is still available. It must be a
|
| 6 |
+
# completely standalone single file: it cannot read any repository file
|
| 7 |
+
# (Cargo.toml, Cargo.lock, ...) because the repo tree is not present here.
|
| 8 |
+
#
|
| 9 |
+
# It only prefetches dependencies (crates) into the shared cargo cache and
|
| 10 |
+
# prepares that cache for the offline build. It performs no compilation and no
|
| 11 |
+
# test/build step.
|
| 12 |
+
|
| 13 |
+
set -u
|
| 14 |
+
|
| 15 |
+
_download_fail() {
|
| 16 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 17 |
+
return 1
|
| 18 |
+
else
|
| 19 |
+
exit 1
|
| 20 |
+
fi
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
export CARGO_HOME="${CARGO_HOME:-$HOME/.cargo}"
|
| 24 |
+
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
# Temporary Cargo workspace used only to resolve and prefetch dependencies.
|
| 27 |
+
# The package declaration and its EXACT Cargo.lock are embedded inline below
|
| 28 |
+
# (download.sh may not read the repository's Cargo.toml/Cargo.lock). Using the
|
| 29 |
+
# pinned lockfile with --locked guarantees the crate set prefetched here is
|
| 30 |
+
# byte-identical to what the offline build resolves against the repo lockfile.
|
| 31 |
+
# ---------------------------------------------------------------------------
|
| 32 |
+
CARGO_FETCH_DIR="${CARGO_FETCH_DIR:-$(mktemp -d)}"
|
| 33 |
+
export CARGO_FETCH_DIR
|
| 34 |
+
|
| 35 |
+
cat > "${CARGO_FETCH_DIR}/Cargo.toml" <<'EOF_TOML'
|
| 36 |
+
[package]
|
| 37 |
+
name = "jscythe"
|
| 38 |
+
version = "1.0.0"
|
| 39 |
+
edition = "2021"
|
| 40 |
+
|
| 41 |
+
[dependencies]
|
| 42 |
+
clap = { version = "3.2.18", features = ["derive"] }
|
| 43 |
+
lazy_static = "1.4.0"
|
| 44 |
+
netstat2 = "0.9.1"
|
| 45 |
+
nix = "0.25.0"
|
| 46 |
+
reqwest = { version = "0.11.11", features = ["blocking"] }
|
| 47 |
+
serde = { version = "1.0.144", features = ["derive"] }
|
| 48 |
+
serde_json = "1.0.85"
|
| 49 |
+
sysinfo = "0.25.3"
|
| 50 |
+
websocket = "0.26.5"
|
| 51 |
+
EOF_TOML
|
| 52 |
+
|
| 53 |
+
cat > "${CARGO_FETCH_DIR}/Cargo.lock" <<'EOF_LOCK'
|
| 54 |
+
# This file is automatically @generated by Cargo.
|
| 55 |
+
# It is not intended for manual editing.
|
| 56 |
+
version = 3
|
| 57 |
+
|
| 58 |
+
[[package]]
|
| 59 |
+
name = "atty"
|
| 60 |
+
version = "0.2.14"
|
| 61 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 62 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 63 |
+
dependencies = [
|
| 64 |
+
"hermit-abi",
|
| 65 |
+
"libc",
|
| 66 |
+
"winapi 0.3.9",
|
| 67 |
+
]
|
| 68 |
+
|
| 69 |
+
[[package]]
|
| 70 |
+
name = "autocfg"
|
| 71 |
+
version = "0.1.8"
|
| 72 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 73 |
+
checksum = "0dde43e75fd43e8a1bf86103336bc699aa8d17ad1be60c76c0bdfd4828e19b78"
|
| 74 |
+
dependencies = [
|
| 75 |
+
"autocfg 1.1.0",
|
| 76 |
+
]
|
| 77 |
+
|
| 78 |
+
[[package]]
|
| 79 |
+
name = "autocfg"
|
| 80 |
+
version = "1.1.0"
|
| 81 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 82 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 83 |
+
|
| 84 |
+
[[package]]
|
| 85 |
+
name = "base64"
|
| 86 |
+
version = "0.9.3"
|
| 87 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 88 |
+
checksum = "489d6c0ed21b11d038c31b6ceccca973e65d73ba3bd8ecb9a2babf5546164643"
|
| 89 |
+
dependencies = [
|
| 90 |
+
"byteorder",
|
| 91 |
+
"safemem",
|
| 92 |
+
]
|
| 93 |
+
|
| 94 |
+
[[package]]
|
| 95 |
+
name = "base64"
|
| 96 |
+
version = "0.10.1"
|
| 97 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 98 |
+
checksum = "0b25d992356d2eb0ed82172f5248873db5560c4721f564b13cb5193bda5e668e"
|
| 99 |
+
dependencies = [
|
| 100 |
+
"byteorder",
|
| 101 |
+
]
|
| 102 |
+
|
| 103 |
+
[[package]]
|
| 104 |
+
name = "base64"
|
| 105 |
+
version = "0.13.0"
|
| 106 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 107 |
+
checksum = "904dfeac50f3cdaba28fc6f57fdcddb75f49ed61346676a78c4ffe55877802fd"
|
| 108 |
+
|
| 109 |
+
[[package]]
|
| 110 |
+
name = "bitflags"
|
| 111 |
+
version = "1.3.2"
|
| 112 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 113 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 114 |
+
|
| 115 |
+
[[package]]
|
| 116 |
+
name = "block-buffer"
|
| 117 |
+
version = "0.7.3"
|
| 118 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 119 |
+
checksum = "c0940dc441f31689269e10ac70eb1002a3a1d3ad1390e030043662eb7fe4688b"
|
| 120 |
+
dependencies = [
|
| 121 |
+
"block-padding",
|
| 122 |
+
"byte-tools",
|
| 123 |
+
"byteorder",
|
| 124 |
+
"generic-array",
|
| 125 |
+
]
|
| 126 |
+
|
| 127 |
+
[[package]]
|
| 128 |
+
name = "block-padding"
|
| 129 |
+
version = "0.1.5"
|
| 130 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 131 |
+
checksum = "fa79dedbb091f449f1f39e53edf88d5dbe95f895dae6135a8d7b881fb5af73f5"
|
| 132 |
+
dependencies = [
|
| 133 |
+
"byte-tools",
|
| 134 |
+
]
|
| 135 |
+
|
| 136 |
+
[[package]]
|
| 137 |
+
name = "bumpalo"
|
| 138 |
+
version = "3.11.0"
|
| 139 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 140 |
+
checksum = "c1ad822118d20d2c234f427000d5acc36eabe1e29a348c89b63dd60b13f28e5d"
|
| 141 |
+
|
| 142 |
+
[[package]]
|
| 143 |
+
name = "byte-tools"
|
| 144 |
+
version = "0.3.1"
|
| 145 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 146 |
+
checksum = "e3b5ca7a04898ad4bcd41c90c5285445ff5b791899bb1b0abdd2a2aa791211d7"
|
| 147 |
+
|
| 148 |
+
[[package]]
|
| 149 |
+
name = "byteorder"
|
| 150 |
+
version = "1.4.3"
|
| 151 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 152 |
+
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
| 153 |
+
|
| 154 |
+
[[package]]
|
| 155 |
+
name = "bytes"
|
| 156 |
+
version = "0.4.12"
|
| 157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 158 |
+
checksum = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c"
|
| 159 |
+
dependencies = [
|
| 160 |
+
"byteorder",
|
| 161 |
+
"iovec",
|
| 162 |
+
]
|
| 163 |
+
|
| 164 |
+
[[package]]
|
| 165 |
+
name = "bytes"
|
| 166 |
+
version = "1.2.1"
|
| 167 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 168 |
+
checksum = "ec8a7b6a70fde80372154c65702f00a0f56f3e1c36abbc6c440484be248856db"
|
| 169 |
+
|
| 170 |
+
[[package]]
|
| 171 |
+
name = "cc"
|
| 172 |
+
version = "1.0.73"
|
| 173 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 174 |
+
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
|
| 175 |
+
|
| 176 |
+
[[package]]
|
| 177 |
+
name = "cfg-if"
|
| 178 |
+
version = "0.1.10"
|
| 179 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 180 |
+
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "cfg-if"
|
| 184 |
+
version = "1.0.0"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 187 |
+
|
| 188 |
+
[[package]]
|
| 189 |
+
name = "clap"
|
| 190 |
+
version = "3.2.18"
|
| 191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 192 |
+
checksum = "b15f2ea93df33549dbe2e8eecd1ca55269d63ae0b3ba1f55db030817d1c2867f"
|
| 193 |
+
dependencies = [
|
| 194 |
+
"atty",
|
| 195 |
+
"bitflags",
|
| 196 |
+
"clap_derive",
|
| 197 |
+
"clap_lex",
|
| 198 |
+
"indexmap",
|
| 199 |
+
"once_cell",
|
| 200 |
+
"strsim",
|
| 201 |
+
"termcolor",
|
| 202 |
+
"textwrap",
|
| 203 |
+
]
|
| 204 |
+
|
| 205 |
+
[[package]]
|
| 206 |
+
name = "clap_derive"
|
| 207 |
+
version = "3.2.18"
|
| 208 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 209 |
+
checksum = "ea0c8bce528c4be4da13ea6fead8965e95b6073585a2f05204bd8f4119f82a65"
|
| 210 |
+
dependencies = [
|
| 211 |
+
"heck",
|
| 212 |
+
"proc-macro-error",
|
| 213 |
+
"proc-macro2",
|
| 214 |
+
"quote",
|
| 215 |
+
"syn",
|
| 216 |
+
]
|
| 217 |
+
|
| 218 |
+
[[package]]
|
| 219 |
+
name = "clap_lex"
|
| 220 |
+
version = "0.2.4"
|
| 221 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 222 |
+
checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"
|
| 223 |
+
dependencies = [
|
| 224 |
+
"os_str_bytes",
|
| 225 |
+
]
|
| 226 |
+
|
| 227 |
+
[[package]]
|
| 228 |
+
name = "cloudabi"
|
| 229 |
+
version = "0.0.3"
|
| 230 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 231 |
+
checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f"
|
| 232 |
+
dependencies = [
|
| 233 |
+
"bitflags",
|
| 234 |
+
]
|
| 235 |
+
|
| 236 |
+
[[package]]
|
| 237 |
+
name = "core-foundation"
|
| 238 |
+
version = "0.9.3"
|
| 239 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 240 |
+
checksum = "194a7a9e6de53fa55116934067c844d9d749312f75c6f6d0980e8c252f8c2146"
|
| 241 |
+
dependencies = [
|
| 242 |
+
"core-foundation-sys",
|
| 243 |
+
"libc",
|
| 244 |
+
]
|
| 245 |
+
|
| 246 |
+
[[package]]
|
| 247 |
+
name = "core-foundation-sys"
|
| 248 |
+
version = "0.8.3"
|
| 249 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 250 |
+
checksum = "5827cebf4670468b8772dd191856768aedcb1b0278a04f989f7766351917b9dc"
|
| 251 |
+
|
| 252 |
+
[[package]]
|
| 253 |
+
name = "crossbeam-channel"
|
| 254 |
+
version = "0.5.6"
|
| 255 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 256 |
+
checksum = "c2dd04ddaf88237dc3b8d8f9a3c1004b506b54b3313403944054d23c0870c521"
|
| 257 |
+
dependencies = [
|
| 258 |
+
"cfg-if 1.0.0",
|
| 259 |
+
"crossbeam-utils 0.8.11",
|
| 260 |
+
]
|
| 261 |
+
|
| 262 |
+
[[package]]
|
| 263 |
+
name = "crossbeam-deque"
|
| 264 |
+
version = "0.8.2"
|
| 265 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 266 |
+
checksum = "715e8152b692bba2d374b53d4875445368fdf21a94751410af607a5ac677d1fc"
|
| 267 |
+
dependencies = [
|
| 268 |
+
"cfg-if 1.0.0",
|
| 269 |
+
"crossbeam-epoch",
|
| 270 |
+
"crossbeam-utils 0.8.11",
|
| 271 |
+
]
|
| 272 |
+
|
| 273 |
+
[[package]]
|
| 274 |
+
name = "crossbeam-epoch"
|
| 275 |
+
version = "0.9.10"
|
| 276 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 277 |
+
checksum = "045ebe27666471bb549370b4b0b3e51b07f56325befa4284db65fc89c02511b1"
|
| 278 |
+
dependencies = [
|
| 279 |
+
"autocfg 1.1.0",
|
| 280 |
+
"cfg-if 1.0.0",
|
| 281 |
+
"crossbeam-utils 0.8.11",
|
| 282 |
+
"memoffset",
|
| 283 |
+
"once_cell",
|
| 284 |
+
"scopeguard",
|
| 285 |
+
]
|
| 286 |
+
|
| 287 |
+
[[package]]
|
| 288 |
+
name = "crossbeam-utils"
|
| 289 |
+
version = "0.7.2"
|
| 290 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 291 |
+
checksum = "c3c7c73a2d1e9fc0886a08b93e98eb643461230d5f1925e4036204d5f2e261a8"
|
| 292 |
+
dependencies = [
|
| 293 |
+
"autocfg 1.1.0",
|
| 294 |
+
"cfg-if 0.1.10",
|
| 295 |
+
"lazy_static",
|
| 296 |
+
]
|
| 297 |
+
|
| 298 |
+
[[package]]
|
| 299 |
+
name = "crossbeam-utils"
|
| 300 |
+
version = "0.8.11"
|
| 301 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 302 |
+
checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc"
|
| 303 |
+
dependencies = [
|
| 304 |
+
"cfg-if 1.0.0",
|
| 305 |
+
"once_cell",
|
| 306 |
+
]
|
| 307 |
+
|
| 308 |
+
[[package]]
|
| 309 |
+
name = "digest"
|
| 310 |
+
version = "0.8.1"
|
| 311 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 312 |
+
checksum = "f3d0c8c8752312f9713efd397ff63acb9f85585afbf179282e720e7704954dd5"
|
| 313 |
+
dependencies = [
|
| 314 |
+
"generic-array",
|
| 315 |
+
]
|
| 316 |
+
|
| 317 |
+
[[package]]
|
| 318 |
+
name = "either"
|
| 319 |
+
version = "1.8.0"
|
| 320 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 321 |
+
checksum = "90e5c1c8368803113bf0c9584fc495a58b86dc8a29edbf8fe877d21d9507e797"
|
| 322 |
+
|
| 323 |
+
[[package]]
|
| 324 |
+
name = "encoding_rs"
|
| 325 |
+
version = "0.8.31"
|
| 326 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 327 |
+
checksum = "9852635589dc9f9ea1b6fe9f05b50ef208c85c834a562f0c6abb1c475736ec2b"
|
| 328 |
+
dependencies = [
|
| 329 |
+
"cfg-if 1.0.0",
|
| 330 |
+
]
|
| 331 |
+
|
| 332 |
+
[[package]]
|
| 333 |
+
name = "fake-simd"
|
| 334 |
+
version = "0.1.2"
|
| 335 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 336 |
+
checksum = "e88a8acf291dafb59c2d96e8f59828f3838bb1a70398823ade51a84de6a6deed"
|
| 337 |
+
|
| 338 |
+
[[package]]
|
| 339 |
+
name = "fastrand"
|
| 340 |
+
version = "1.8.0"
|
| 341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 342 |
+
checksum = "a7a407cfaa3385c4ae6b23e84623d48c2798d06e3e6a1878f7f59f17b3f86499"
|
| 343 |
+
dependencies = [
|
| 344 |
+
"instant",
|
| 345 |
+
]
|
| 346 |
+
|
| 347 |
+
[[package]]
|
| 348 |
+
name = "fnv"
|
| 349 |
+
version = "1.0.7"
|
| 350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 351 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 352 |
+
|
| 353 |
+
[[package]]
|
| 354 |
+
name = "foreign-types"
|
| 355 |
+
version = "0.3.2"
|
| 356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 357 |
+
checksum = "f6f339eb8adc052cd2ca78910fda869aefa38d22d5cb648e6485e4d3fc06f3b1"
|
| 358 |
+
dependencies = [
|
| 359 |
+
"foreign-types-shared",
|
| 360 |
+
]
|
| 361 |
+
|
| 362 |
+
[[package]]
|
| 363 |
+
name = "foreign-types-shared"
|
| 364 |
+
version = "0.1.1"
|
| 365 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 366 |
+
checksum = "00b0228411908ca8685dba7fc2cdd70ec9990a6e753e89b6ac91a84c40fbaf4b"
|
| 367 |
+
|
| 368 |
+
[[package]]
|
| 369 |
+
name = "form_urlencoded"
|
| 370 |
+
version = "1.0.1"
|
| 371 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 372 |
+
checksum = "5fc25a87fa4fd2094bffb06925852034d90a17f0d1e05197d4956d3555752191"
|
| 373 |
+
dependencies = [
|
| 374 |
+
"matches",
|
| 375 |
+
"percent-encoding 2.1.0",
|
| 376 |
+
]
|
| 377 |
+
|
| 378 |
+
[[package]]
|
| 379 |
+
name = "fuchsia-cprng"
|
| 380 |
+
version = "0.1.1"
|
| 381 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 382 |
+
checksum = "a06f77d526c1a601b7c4cdd98f54b5eaabffc14d5f2f0296febdc7f357c6d3ba"
|
| 383 |
+
|
| 384 |
+
[[package]]
|
| 385 |
+
name = "fuchsia-zircon"
|
| 386 |
+
version = "0.3.3"
|
| 387 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 388 |
+
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
| 389 |
+
dependencies = [
|
| 390 |
+
"bitflags",
|
| 391 |
+
"fuchsia-zircon-sys",
|
| 392 |
+
]
|
| 393 |
+
|
| 394 |
+
[[package]]
|
| 395 |
+
name = "fuchsia-zircon-sys"
|
| 396 |
+
version = "0.3.3"
|
| 397 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 398 |
+
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
| 399 |
+
|
| 400 |
+
[[package]]
|
| 401 |
+
name = "futures"
|
| 402 |
+
version = "0.1.31"
|
| 403 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 404 |
+
checksum = "3a471a38ef8ed83cd6e40aa59c1ffe17db6855c18e3604d9c4ed8c08ebc28678"
|
| 405 |
+
|
| 406 |
+
[[package]]
|
| 407 |
+
name = "futures-channel"
|
| 408 |
+
version = "0.3.23"
|
| 409 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 410 |
+
checksum = "2bfc52cbddcfd745bf1740338492bb0bd83d76c67b445f91c5fb29fae29ecaa1"
|
| 411 |
+
dependencies = [
|
| 412 |
+
"futures-core",
|
| 413 |
+
]
|
| 414 |
+
|
| 415 |
+
[[package]]
|
| 416 |
+
name = "futures-core"
|
| 417 |
+
version = "0.3.23"
|
| 418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 419 |
+
checksum = "d2acedae88d38235936c3922476b10fced7b2b68136f5e3c03c2d5be348a1115"
|
| 420 |
+
|
| 421 |
+
[[package]]
|
| 422 |
+
name = "futures-io"
|
| 423 |
+
version = "0.3.23"
|
| 424 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 425 |
+
checksum = "93a66fc6d035a26a3ae255a6d2bca35eda63ae4c5512bef54449113f7a1228e5"
|
| 426 |
+
|
| 427 |
+
[[package]]
|
| 428 |
+
name = "futures-sink"
|
| 429 |
+
version = "0.3.23"
|
| 430 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 431 |
+
checksum = "ca0bae1fe9752cf7fd9b0064c674ae63f97b37bc714d745cbde0afb7ec4e6765"
|
| 432 |
+
|
| 433 |
+
[[package]]
|
| 434 |
+
name = "futures-task"
|
| 435 |
+
version = "0.3.23"
|
| 436 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 437 |
+
checksum = "842fc63b931f4056a24d59de13fb1272134ce261816e063e634ad0c15cdc5306"
|
| 438 |
+
|
| 439 |
+
[[package]]
|
| 440 |
+
name = "futures-util"
|
| 441 |
+
version = "0.3.23"
|
| 442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 443 |
+
checksum = "f0828a5471e340229c11c77ca80017937ce3c58cb788a17e5f1c2d5c485a9577"
|
| 444 |
+
dependencies = [
|
| 445 |
+
"futures-core",
|
| 446 |
+
"futures-io",
|
| 447 |
+
"futures-task",
|
| 448 |
+
"memchr",
|
| 449 |
+
"pin-project-lite",
|
| 450 |
+
"pin-utils",
|
| 451 |
+
"slab",
|
| 452 |
+
]
|
| 453 |
+
|
| 454 |
+
[[package]]
|
| 455 |
+
name = "generic-array"
|
| 456 |
+
version = "0.12.4"
|
| 457 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 458 |
+
checksum = "ffdf9f34f1447443d37393cc6c2b8313aebddcd96906caf34e54c68d8e57d7bd"
|
| 459 |
+
dependencies = [
|
| 460 |
+
"typenum",
|
| 461 |
+
]
|
| 462 |
+
|
| 463 |
+
[[package]]
|
| 464 |
+
name = "h2"
|
| 465 |
+
version = "0.3.14"
|
| 466 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 467 |
+
checksum = "5ca32592cf21ac7ccab1825cd87f6c9b3d9022c44d086172ed0966bec8af30be"
|
| 468 |
+
dependencies = [
|
| 469 |
+
"bytes 1.2.1",
|
| 470 |
+
"fnv",
|
| 471 |
+
"futures-core",
|
| 472 |
+
"futures-sink",
|
| 473 |
+
"futures-util",
|
| 474 |
+
"http",
|
| 475 |
+
"indexmap",
|
| 476 |
+
"slab",
|
| 477 |
+
"tokio",
|
| 478 |
+
"tokio-util",
|
| 479 |
+
"tracing",
|
| 480 |
+
]
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "hashbrown"
|
| 484 |
+
version = "0.12.3"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
| 487 |
+
|
| 488 |
+
[[package]]
|
| 489 |
+
name = "heck"
|
| 490 |
+
version = "0.4.0"
|
| 491 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 492 |
+
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "hermit-abi"
|
| 496 |
+
version = "0.1.19"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"libc",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "http"
|
| 505 |
+
version = "0.2.8"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "75f43d41e26995c17e71ee126451dd3941010b0514a81a9d11f3b341debc2399"
|
| 508 |
+
dependencies = [
|
| 509 |
+
"bytes 1.2.1",
|
| 510 |
+
"fnv",
|
| 511 |
+
"itoa",
|
| 512 |
+
]
|
| 513 |
+
|
| 514 |
+
[[package]]
|
| 515 |
+
name = "http-body"
|
| 516 |
+
version = "0.4.5"
|
| 517 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 518 |
+
checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1"
|
| 519 |
+
dependencies = [
|
| 520 |
+
"bytes 1.2.1",
|
| 521 |
+
"http",
|
| 522 |
+
"pin-project-lite",
|
| 523 |
+
]
|
| 524 |
+
|
| 525 |
+
[[package]]
|
| 526 |
+
name = "httparse"
|
| 527 |
+
version = "1.7.1"
|
| 528 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 529 |
+
checksum = "496ce29bb5a52785b44e0f7ca2847ae0bb839c9bd28f69acac9b99d461c0c04c"
|
| 530 |
+
|
| 531 |
+
[[package]]
|
| 532 |
+
name = "httpdate"
|
| 533 |
+
version = "1.0.2"
|
| 534 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 535 |
+
checksum = "c4a1e36c821dbe04574f602848a19f742f4fb3c98d40449f11bcad18d6b17421"
|
| 536 |
+
|
| 537 |
+
[[package]]
|
| 538 |
+
name = "hyper"
|
| 539 |
+
version = "0.10.16"
|
| 540 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 541 |
+
checksum = "0a0652d9a2609a968c14be1a9ea00bf4b1d64e2e1f53a1b51b6fff3a6e829273"
|
| 542 |
+
dependencies = [
|
| 543 |
+
"base64 0.9.3",
|
| 544 |
+
"httparse",
|
| 545 |
+
"language-tags",
|
| 546 |
+
"log 0.3.9",
|
| 547 |
+
"mime 0.2.6",
|
| 548 |
+
"num_cpus",
|
| 549 |
+
"time",
|
| 550 |
+
"traitobject",
|
| 551 |
+
"typeable",
|
| 552 |
+
"unicase",
|
| 553 |
+
"url 1.7.2",
|
| 554 |
+
]
|
| 555 |
+
|
| 556 |
+
[[package]]
|
| 557 |
+
name = "hyper"
|
| 558 |
+
version = "0.14.20"
|
| 559 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 560 |
+
checksum = "02c929dc5c39e335a03c405292728118860721b10190d98c2a0f0efd5baafbac"
|
| 561 |
+
dependencies = [
|
| 562 |
+
"bytes 1.2.1",
|
| 563 |
+
"futures-channel",
|
| 564 |
+
"futures-core",
|
| 565 |
+
"futures-util",
|
| 566 |
+
"h2",
|
| 567 |
+
"http",
|
| 568 |
+
"http-body",
|
| 569 |
+
"httparse",
|
| 570 |
+
"httpdate",
|
| 571 |
+
"itoa",
|
| 572 |
+
"pin-project-lite",
|
| 573 |
+
"socket2",
|
| 574 |
+
"tokio",
|
| 575 |
+
"tower-service",
|
| 576 |
+
"tracing",
|
| 577 |
+
"want",
|
| 578 |
+
]
|
| 579 |
+
|
| 580 |
+
[[package]]
|
| 581 |
+
name = "hyper-tls"
|
| 582 |
+
version = "0.5.0"
|
| 583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 584 |
+
checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905"
|
| 585 |
+
dependencies = [
|
| 586 |
+
"bytes 1.2.1",
|
| 587 |
+
"hyper 0.14.20",
|
| 588 |
+
"native-tls",
|
| 589 |
+
"tokio",
|
| 590 |
+
"tokio-native-tls",
|
| 591 |
+
]
|
| 592 |
+
|
| 593 |
+
[[package]]
|
| 594 |
+
name = "idna"
|
| 595 |
+
version = "0.1.5"
|
| 596 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 597 |
+
checksum = "38f09e0f0b1fb55fdee1f17470ad800da77af5186a1a76c026b679358b7e844e"
|
| 598 |
+
dependencies = [
|
| 599 |
+
"matches",
|
| 600 |
+
"unicode-bidi",
|
| 601 |
+
"unicode-normalization",
|
| 602 |
+
]
|
| 603 |
+
|
| 604 |
+
[[package]]
|
| 605 |
+
name = "idna"
|
| 606 |
+
version = "0.2.3"
|
| 607 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 608 |
+
checksum = "418a0a6fab821475f634efe3ccc45c013f742efe03d853e8d3355d5cb850ecf8"
|
| 609 |
+
dependencies = [
|
| 610 |
+
"matches",
|
| 611 |
+
"unicode-bidi",
|
| 612 |
+
"unicode-normalization",
|
| 613 |
+
]
|
| 614 |
+
|
| 615 |
+
[[package]]
|
| 616 |
+
name = "indexmap"
|
| 617 |
+
version = "1.9.1"
|
| 618 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 619 |
+
checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
|
| 620 |
+
dependencies = [
|
| 621 |
+
"autocfg 1.1.0",
|
| 622 |
+
"hashbrown",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "instant"
|
| 627 |
+
version = "0.1.12"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "7a5bbe824c507c5da5956355e86a746d82e0e1464f65d862cc5e71da70e94b2c"
|
| 630 |
+
dependencies = [
|
| 631 |
+
"cfg-if 1.0.0",
|
| 632 |
+
]
|
| 633 |
+
|
| 634 |
+
[[package]]
|
| 635 |
+
name = "iovec"
|
| 636 |
+
version = "0.1.4"
|
| 637 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 638 |
+
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
| 639 |
+
dependencies = [
|
| 640 |
+
"libc",
|
| 641 |
+
]
|
| 642 |
+
|
| 643 |
+
[[package]]
|
| 644 |
+
name = "ipnet"
|
| 645 |
+
version = "2.5.0"
|
| 646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 647 |
+
checksum = "879d54834c8c76457ef4293a689b2a8c59b076067ad77b15efafbb05f92a592b"
|
| 648 |
+
|
| 649 |
+
[[package]]
|
| 650 |
+
name = "itoa"
|
| 651 |
+
version = "1.0.3"
|
| 652 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 653 |
+
checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754"
|
| 654 |
+
|
| 655 |
+
[[package]]
|
| 656 |
+
name = "js-sys"
|
| 657 |
+
version = "0.3.59"
|
| 658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 659 |
+
checksum = "258451ab10b34f8af53416d1fdab72c22e805f0c92a1136d59470ec0b11138b2"
|
| 660 |
+
dependencies = [
|
| 661 |
+
"wasm-bindgen",
|
| 662 |
+
]
|
| 663 |
+
|
| 664 |
+
[[package]]
|
| 665 |
+
name = "jscythe"
|
| 666 |
+
version = "1.0.0"
|
| 667 |
+
dependencies = [
|
| 668 |
+
"clap",
|
| 669 |
+
"lazy_static",
|
| 670 |
+
"netstat2",
|
| 671 |
+
"nix",
|
| 672 |
+
"reqwest",
|
| 673 |
+
"serde",
|
| 674 |
+
"serde_json",
|
| 675 |
+
"sysinfo",
|
| 676 |
+
"websocket",
|
| 677 |
+
]
|
| 678 |
+
|
| 679 |
+
[[package]]
|
| 680 |
+
name = "kernel32-sys"
|
| 681 |
+
version = "0.2.2"
|
| 682 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 683 |
+
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
| 684 |
+
dependencies = [
|
| 685 |
+
"winapi 0.2.8",
|
| 686 |
+
"winapi-build",
|
| 687 |
+
]
|
| 688 |
+
|
| 689 |
+
[[package]]
|
| 690 |
+
name = "language-tags"
|
| 691 |
+
version = "0.2.2"
|
| 692 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 693 |
+
checksum = "a91d884b6667cd606bb5a69aa0c99ba811a115fc68915e7056ec08a46e93199a"
|
| 694 |
+
|
| 695 |
+
[[package]]
|
| 696 |
+
name = "lazy_static"
|
| 697 |
+
version = "1.4.0"
|
| 698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 699 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 700 |
+
|
| 701 |
+
[[package]]
|
| 702 |
+
name = "libc"
|
| 703 |
+
version = "0.2.132"
|
| 704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 705 |
+
checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5"
|
| 706 |
+
|
| 707 |
+
[[package]]
|
| 708 |
+
name = "lock_api"
|
| 709 |
+
version = "0.3.4"
|
| 710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 711 |
+
checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75"
|
| 712 |
+
dependencies = [
|
| 713 |
+
"scopeguard",
|
| 714 |
+
]
|
| 715 |
+
|
| 716 |
+
[[package]]
|
| 717 |
+
name = "log"
|
| 718 |
+
version = "0.3.9"
|
| 719 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 720 |
+
checksum = "e19e8d5c34a3e0e2223db8e060f9e8264aeeb5c5fc64a4ee9965c062211c024b"
|
| 721 |
+
dependencies = [
|
| 722 |
+
"log 0.4.17",
|
| 723 |
+
]
|
| 724 |
+
|
| 725 |
+
[[package]]
|
| 726 |
+
name = "log"
|
| 727 |
+
version = "0.4.17"
|
| 728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 729 |
+
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
|
| 730 |
+
dependencies = [
|
| 731 |
+
"cfg-if 1.0.0",
|
| 732 |
+
]
|
| 733 |
+
|
| 734 |
+
[[package]]
|
| 735 |
+
name = "matches"
|
| 736 |
+
version = "0.1.9"
|
| 737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 738 |
+
checksum = "a3e378b66a060d48947b590737b30a1be76706c8dd7b8ba0f2fe3989c68a853f"
|
| 739 |
+
|
| 740 |
+
[[package]]
|
| 741 |
+
name = "maybe-uninit"
|
| 742 |
+
version = "2.0.0"
|
| 743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 744 |
+
checksum = "60302e4db3a61da70c0cb7991976248362f30319e88850c487b9b95bbf059e00"
|
| 745 |
+
|
| 746 |
+
[[package]]
|
| 747 |
+
name = "memchr"
|
| 748 |
+
version = "2.5.0"
|
| 749 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 750 |
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
| 751 |
+
|
| 752 |
+
[[package]]
|
| 753 |
+
name = "memoffset"
|
| 754 |
+
version = "0.6.5"
|
| 755 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 756 |
+
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
|
| 757 |
+
dependencies = [
|
| 758 |
+
"autocfg 1.1.0",
|
| 759 |
+
]
|
| 760 |
+
|
| 761 |
+
[[package]]
|
| 762 |
+
name = "mime"
|
| 763 |
+
version = "0.2.6"
|
| 764 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 765 |
+
checksum = "ba626b8a6de5da682e1caa06bdb42a335aee5a84db8e5046a3e8ab17ba0a3ae0"
|
| 766 |
+
dependencies = [
|
| 767 |
+
"log 0.3.9",
|
| 768 |
+
]
|
| 769 |
+
|
| 770 |
+
[[package]]
|
| 771 |
+
name = "mime"
|
| 772 |
+
version = "0.3.16"
|
| 773 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 774 |
+
checksum = "2a60c7ce501c71e03a9c9c0d35b861413ae925bd979cc7a4e30d060069aaac8d"
|
| 775 |
+
|
| 776 |
+
[[package]]
|
| 777 |
+
name = "mio"
|
| 778 |
+
version = "0.6.23"
|
| 779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 780 |
+
checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
|
| 781 |
+
dependencies = [
|
| 782 |
+
"cfg-if 0.1.10",
|
| 783 |
+
"fuchsia-zircon",
|
| 784 |
+
"fuchsia-zircon-sys",
|
| 785 |
+
"iovec",
|
| 786 |
+
"kernel32-sys",
|
| 787 |
+
"libc",
|
| 788 |
+
"log 0.4.17",
|
| 789 |
+
"miow",
|
| 790 |
+
"net2",
|
| 791 |
+
"slab",
|
| 792 |
+
"winapi 0.2.8",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "mio"
|
| 797 |
+
version = "0.8.4"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "57ee1c23c7c63b0c9250c339ffdc69255f110b298b901b9f6c82547b7b87caaf"
|
| 800 |
+
dependencies = [
|
| 801 |
+
"libc",
|
| 802 |
+
"log 0.4.17",
|
| 803 |
+
"wasi 0.11.0+wasi-snapshot-preview1",
|
| 804 |
+
"windows-sys",
|
| 805 |
+
]
|
| 806 |
+
|
| 807 |
+
[[package]]
|
| 808 |
+
name = "miow"
|
| 809 |
+
version = "0.2.2"
|
| 810 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 811 |
+
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
|
| 812 |
+
dependencies = [
|
| 813 |
+
"kernel32-sys",
|
| 814 |
+
"net2",
|
| 815 |
+
"winapi 0.2.8",
|
| 816 |
+
"ws2_32-sys",
|
| 817 |
+
]
|
| 818 |
+
|
| 819 |
+
[[package]]
|
| 820 |
+
name = "native-tls"
|
| 821 |
+
version = "0.2.10"
|
| 822 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 823 |
+
checksum = "fd7e2f3618557f980e0b17e8856252eee3c97fa12c54dff0ca290fb6266ca4a9"
|
| 824 |
+
dependencies = [
|
| 825 |
+
"lazy_static",
|
| 826 |
+
"libc",
|
| 827 |
+
"log 0.4.17",
|
| 828 |
+
"openssl",
|
| 829 |
+
"openssl-probe",
|
| 830 |
+
"openssl-sys",
|
| 831 |
+
"schannel",
|
| 832 |
+
"security-framework",
|
| 833 |
+
"security-framework-sys",
|
| 834 |
+
"tempfile",
|
| 835 |
+
]
|
| 836 |
+
|
| 837 |
+
[[package]]
|
| 838 |
+
name = "net2"
|
| 839 |
+
version = "0.2.37"
|
| 840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 841 |
+
checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae"
|
| 842 |
+
dependencies = [
|
| 843 |
+
"cfg-if 0.1.10",
|
| 844 |
+
"libc",
|
| 845 |
+
"winapi 0.3.9",
|
| 846 |
+
]
|
| 847 |
+
|
| 848 |
+
[[package]]
|
| 849 |
+
name = "netstat2"
|
| 850 |
+
version = "0.9.1"
|
| 851 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 852 |
+
checksum = "0faa3f4ad230fd2bf2a5dad71476ecbaeaed904b3c7e7e5b1f266c415c03761f"
|
| 853 |
+
dependencies = [
|
| 854 |
+
"bitflags",
|
| 855 |
+
"byteorder",
|
| 856 |
+
"libc",
|
| 857 |
+
"num-derive",
|
| 858 |
+
"num-traits",
|
| 859 |
+
"thiserror",
|
| 860 |
+
]
|
| 861 |
+
|
| 862 |
+
[[package]]
|
| 863 |
+
name = "nix"
|
| 864 |
+
version = "0.25.0"
|
| 865 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 866 |
+
checksum = "e322c04a9e3440c327fca7b6c8a63e6890a32fa2ad689db972425f07e0d22abb"
|
| 867 |
+
dependencies = [
|
| 868 |
+
"autocfg 1.1.0",
|
| 869 |
+
"bitflags",
|
| 870 |
+
"cfg-if 1.0.0",
|
| 871 |
+
"libc",
|
| 872 |
+
"memoffset",
|
| 873 |
+
"pin-utils",
|
| 874 |
+
]
|
| 875 |
+
|
| 876 |
+
[[package]]
|
| 877 |
+
name = "ntapi"
|
| 878 |
+
version = "0.3.7"
|
| 879 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 880 |
+
checksum = "c28774a7fd2fbb4f0babd8237ce554b73af68021b5f695a3cebd6c59bac0980f"
|
| 881 |
+
dependencies = [
|
| 882 |
+
"winapi 0.3.9",
|
| 883 |
+
]
|
| 884 |
+
|
| 885 |
+
[[package]]
|
| 886 |
+
name = "num-derive"
|
| 887 |
+
version = "0.3.3"
|
| 888 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 889 |
+
checksum = "876a53fff98e03a936a674b29568b0e605f06b29372c2489ff4de23f1949743d"
|
| 890 |
+
dependencies = [
|
| 891 |
+
"proc-macro2",
|
| 892 |
+
"quote",
|
| 893 |
+
"syn",
|
| 894 |
+
]
|
| 895 |
+
|
| 896 |
+
[[package]]
|
| 897 |
+
name = "num-traits"
|
| 898 |
+
version = "0.2.15"
|
| 899 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 900 |
+
checksum = "578ede34cf02f8924ab9447f50c28075b4d3e5b269972345e7e0372b38c6cdcd"
|
| 901 |
+
dependencies = [
|
| 902 |
+
"autocfg 1.1.0",
|
| 903 |
+
]
|
| 904 |
+
|
| 905 |
+
[[package]]
|
| 906 |
+
name = "num_cpus"
|
| 907 |
+
version = "1.13.1"
|
| 908 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 909 |
+
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
|
| 910 |
+
dependencies = [
|
| 911 |
+
"hermit-abi",
|
| 912 |
+
"libc",
|
| 913 |
+
]
|
| 914 |
+
|
| 915 |
+
[[package]]
|
| 916 |
+
name = "once_cell"
|
| 917 |
+
version = "1.13.1"
|
| 918 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 919 |
+
checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e"
|
| 920 |
+
|
| 921 |
+
[[package]]
|
| 922 |
+
name = "opaque-debug"
|
| 923 |
+
version = "0.2.3"
|
| 924 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 925 |
+
checksum = "2839e79665f131bdb5782e51f2c6c9599c133c6098982a54c794358bf432529c"
|
| 926 |
+
|
| 927 |
+
[[package]]
|
| 928 |
+
name = "openssl"
|
| 929 |
+
version = "0.10.41"
|
| 930 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 931 |
+
checksum = "618febf65336490dfcf20b73f885f5651a0c89c64c2d4a8c3662585a70bf5bd0"
|
| 932 |
+
dependencies = [
|
| 933 |
+
"bitflags",
|
| 934 |
+
"cfg-if 1.0.0",
|
| 935 |
+
"foreign-types",
|
| 936 |
+
"libc",
|
| 937 |
+
"once_cell",
|
| 938 |
+
"openssl-macros",
|
| 939 |
+
"openssl-sys",
|
| 940 |
+
]
|
| 941 |
+
|
| 942 |
+
[[package]]
|
| 943 |
+
name = "openssl-macros"
|
| 944 |
+
version = "0.1.0"
|
| 945 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 946 |
+
checksum = "b501e44f11665960c7e7fcf062c7d96a14ade4aa98116c004b2e37b5be7d736c"
|
| 947 |
+
dependencies = [
|
| 948 |
+
"proc-macro2",
|
| 949 |
+
"quote",
|
| 950 |
+
"syn",
|
| 951 |
+
]
|
| 952 |
+
|
| 953 |
+
[[package]]
|
| 954 |
+
name = "openssl-probe"
|
| 955 |
+
version = "0.1.5"
|
| 956 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 957 |
+
checksum = "ff011a302c396a5197692431fc1948019154afc178baf7d8e37367442a4601cf"
|
| 958 |
+
|
| 959 |
+
[[package]]
|
| 960 |
+
name = "openssl-sys"
|
| 961 |
+
version = "0.9.75"
|
| 962 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 963 |
+
checksum = "e5f9bd0c2710541a3cda73d6f9ac4f1b240de4ae261065d309dbe73d9dceb42f"
|
| 964 |
+
dependencies = [
|
| 965 |
+
"autocfg 1.1.0",
|
| 966 |
+
"cc",
|
| 967 |
+
"libc",
|
| 968 |
+
"pkg-config",
|
| 969 |
+
"vcpkg",
|
| 970 |
+
]
|
| 971 |
+
|
| 972 |
+
[[package]]
|
| 973 |
+
name = "os_str_bytes"
|
| 974 |
+
version = "6.3.0"
|
| 975 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 976 |
+
checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff"
|
| 977 |
+
|
| 978 |
+
[[package]]
|
| 979 |
+
name = "parking_lot"
|
| 980 |
+
version = "0.9.0"
|
| 981 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 982 |
+
checksum = "f842b1982eb6c2fe34036a4fbfb06dd185a3f5c8edfaacdf7d1ea10b07de6252"
|
| 983 |
+
dependencies = [
|
| 984 |
+
"lock_api",
|
| 985 |
+
"parking_lot_core",
|
| 986 |
+
"rustc_version",
|
| 987 |
+
]
|
| 988 |
+
|
| 989 |
+
[[package]]
|
| 990 |
+
name = "parking_lot_core"
|
| 991 |
+
version = "0.6.2"
|
| 992 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 993 |
+
checksum = "b876b1b9e7ac6e1a74a6da34d25c42e17e8862aa409cbbbdcfc8d86c6f3bc62b"
|
| 994 |
+
dependencies = [
|
| 995 |
+
"cfg-if 0.1.10",
|
| 996 |
+
"cloudabi",
|
| 997 |
+
"libc",
|
| 998 |
+
"redox_syscall 0.1.57",
|
| 999 |
+
"rustc_version",
|
| 1000 |
+
"smallvec",
|
| 1001 |
+
"winapi 0.3.9",
|
| 1002 |
+
]
|
| 1003 |
+
|
| 1004 |
+
[[package]]
|
| 1005 |
+
name = "percent-encoding"
|
| 1006 |
+
version = "1.0.1"
|
| 1007 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1008 |
+
checksum = "31010dd2e1ac33d5b46a5b413495239882813e0369f8ed8a5e266f173602f831"
|
| 1009 |
+
|
| 1010 |
+
[[package]]
|
| 1011 |
+
name = "percent-encoding"
|
| 1012 |
+
version = "2.1.0"
|
| 1013 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1014 |
+
checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
|
| 1015 |
+
|
| 1016 |
+
[[package]]
|
| 1017 |
+
name = "pin-project-lite"
|
| 1018 |
+
version = "0.2.9"
|
| 1019 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1020 |
+
checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116"
|
| 1021 |
+
|
| 1022 |
+
[[package]]
|
| 1023 |
+
name = "pin-utils"
|
| 1024 |
+
version = "0.1.0"
|
| 1025 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1026 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 1027 |
+
|
| 1028 |
+
[[package]]
|
| 1029 |
+
name = "pkg-config"
|
| 1030 |
+
version = "0.3.25"
|
| 1031 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1032 |
+
checksum = "1df8c4ec4b0627e53bdf214615ad287367e482558cf84b109250b37464dc03ae"
|
| 1033 |
+
|
| 1034 |
+
[[package]]
|
| 1035 |
+
name = "proc-macro-error"
|
| 1036 |
+
version = "1.0.4"
|
| 1037 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1038 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 1039 |
+
dependencies = [
|
| 1040 |
+
"proc-macro-error-attr",
|
| 1041 |
+
"proc-macro2",
|
| 1042 |
+
"quote",
|
| 1043 |
+
"syn",
|
| 1044 |
+
"version_check 0.9.4",
|
| 1045 |
+
]
|
| 1046 |
+
|
| 1047 |
+
[[package]]
|
| 1048 |
+
name = "proc-macro-error-attr"
|
| 1049 |
+
version = "1.0.4"
|
| 1050 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1051 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 1052 |
+
dependencies = [
|
| 1053 |
+
"proc-macro2",
|
| 1054 |
+
"quote",
|
| 1055 |
+
"version_check 0.9.4",
|
| 1056 |
+
]
|
| 1057 |
+
|
| 1058 |
+
[[package]]
|
| 1059 |
+
name = "proc-macro2"
|
| 1060 |
+
version = "1.0.43"
|
| 1061 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1062 |
+
checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab"
|
| 1063 |
+
dependencies = [
|
| 1064 |
+
"unicode-ident",
|
| 1065 |
+
]
|
| 1066 |
+
|
| 1067 |
+
[[package]]
|
| 1068 |
+
name = "quote"
|
| 1069 |
+
version = "1.0.21"
|
| 1070 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1071 |
+
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
|
| 1072 |
+
dependencies = [
|
| 1073 |
+
"proc-macro2",
|
| 1074 |
+
]
|
| 1075 |
+
|
| 1076 |
+
[[package]]
|
| 1077 |
+
name = "rand"
|
| 1078 |
+
version = "0.6.5"
|
| 1079 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1080 |
+
checksum = "6d71dacdc3c88c1fde3885a3be3fbab9f35724e6ce99467f7d9c5026132184ca"
|
| 1081 |
+
dependencies = [
|
| 1082 |
+
"autocfg 0.1.8",
|
| 1083 |
+
"libc",
|
| 1084 |
+
"rand_chacha",
|
| 1085 |
+
"rand_core 0.4.2",
|
| 1086 |
+
"rand_hc",
|
| 1087 |
+
"rand_isaac",
|
| 1088 |
+
"rand_jitter",
|
| 1089 |
+
"rand_os",
|
| 1090 |
+
"rand_pcg",
|
| 1091 |
+
"rand_xorshift",
|
| 1092 |
+
"winapi 0.3.9",
|
| 1093 |
+
]
|
| 1094 |
+
|
| 1095 |
+
[[package]]
|
| 1096 |
+
name = "rand_chacha"
|
| 1097 |
+
version = "0.1.1"
|
| 1098 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1099 |
+
checksum = "556d3a1ca6600bfcbab7c7c91ccb085ac7fbbcd70e008a98742e7847f4f7bcef"
|
| 1100 |
+
dependencies = [
|
| 1101 |
+
"autocfg 0.1.8",
|
| 1102 |
+
"rand_core 0.3.1",
|
| 1103 |
+
]
|
| 1104 |
+
|
| 1105 |
+
[[package]]
|
| 1106 |
+
name = "rand_core"
|
| 1107 |
+
version = "0.3.1"
|
| 1108 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1109 |
+
checksum = "7a6fdeb83b075e8266dcc8762c22776f6877a63111121f5f8c7411e5be7eed4b"
|
| 1110 |
+
dependencies = [
|
| 1111 |
+
"rand_core 0.4.2",
|
| 1112 |
+
]
|
| 1113 |
+
|
| 1114 |
+
[[package]]
|
| 1115 |
+
name = "rand_core"
|
| 1116 |
+
version = "0.4.2"
|
| 1117 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1118 |
+
checksum = "9c33a3c44ca05fa6f1807d8e6743f3824e8509beca625669633be0acbdf509dc"
|
| 1119 |
+
|
| 1120 |
+
[[package]]
|
| 1121 |
+
name = "rand_hc"
|
| 1122 |
+
version = "0.1.0"
|
| 1123 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1124 |
+
checksum = "7b40677c7be09ae76218dc623efbf7b18e34bced3f38883af07bb75630a21bc4"
|
| 1125 |
+
dependencies = [
|
| 1126 |
+
"rand_core 0.3.1",
|
| 1127 |
+
]
|
| 1128 |
+
|
| 1129 |
+
[[package]]
|
| 1130 |
+
name = "rand_isaac"
|
| 1131 |
+
version = "0.1.1"
|
| 1132 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1133 |
+
checksum = "ded997c9d5f13925be2a6fd7e66bf1872597f759fd9dd93513dd7e92e5a5ee08"
|
| 1134 |
+
dependencies = [
|
| 1135 |
+
"rand_core 0.3.1",
|
| 1136 |
+
]
|
| 1137 |
+
|
| 1138 |
+
[[package]]
|
| 1139 |
+
name = "rand_jitter"
|
| 1140 |
+
version = "0.1.4"
|
| 1141 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1142 |
+
checksum = "1166d5c91dc97b88d1decc3285bb0a99ed84b05cfd0bc2341bdf2d43fc41e39b"
|
| 1143 |
+
dependencies = [
|
| 1144 |
+
"libc",
|
| 1145 |
+
"rand_core 0.4.2",
|
| 1146 |
+
"winapi 0.3.9",
|
| 1147 |
+
]
|
| 1148 |
+
|
| 1149 |
+
[[package]]
|
| 1150 |
+
name = "rand_os"
|
| 1151 |
+
version = "0.1.3"
|
| 1152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1153 |
+
checksum = "7b75f676a1e053fc562eafbb47838d67c84801e38fc1ba459e8f180deabd5071"
|
| 1154 |
+
dependencies = [
|
| 1155 |
+
"cloudabi",
|
| 1156 |
+
"fuchsia-cprng",
|
| 1157 |
+
"libc",
|
| 1158 |
+
"rand_core 0.4.2",
|
| 1159 |
+
"rdrand",
|
| 1160 |
+
"winapi 0.3.9",
|
| 1161 |
+
]
|
| 1162 |
+
|
| 1163 |
+
[[package]]
|
| 1164 |
+
name = "rand_pcg"
|
| 1165 |
+
version = "0.1.2"
|
| 1166 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1167 |
+
checksum = "abf9b09b01790cfe0364f52bf32995ea3c39f4d2dd011eac241d2914146d0b44"
|
| 1168 |
+
dependencies = [
|
| 1169 |
+
"autocfg 0.1.8",
|
| 1170 |
+
"rand_core 0.4.2",
|
| 1171 |
+
]
|
| 1172 |
+
|
| 1173 |
+
[[package]]
|
| 1174 |
+
name = "rand_xorshift"
|
| 1175 |
+
version = "0.1.1"
|
| 1176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1177 |
+
checksum = "cbf7e9e623549b0e21f6e97cf8ecf247c1a8fd2e8a992ae265314300b2455d5c"
|
| 1178 |
+
dependencies = [
|
| 1179 |
+
"rand_core 0.3.1",
|
| 1180 |
+
]
|
| 1181 |
+
|
| 1182 |
+
[[package]]
|
| 1183 |
+
name = "rayon"
|
| 1184 |
+
version = "1.5.3"
|
| 1185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1186 |
+
checksum = "bd99e5772ead8baa5215278c9b15bf92087709e9c1b2d1f97cdb5a183c933a7d"
|
| 1187 |
+
dependencies = [
|
| 1188 |
+
"autocfg 1.1.0",
|
| 1189 |
+
"crossbeam-deque",
|
| 1190 |
+
"either",
|
| 1191 |
+
"rayon-core",
|
| 1192 |
+
]
|
| 1193 |
+
|
| 1194 |
+
[[package]]
|
| 1195 |
+
name = "rayon-core"
|
| 1196 |
+
version = "1.9.3"
|
| 1197 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1198 |
+
checksum = "258bcdb5ac6dad48491bb2992db6b7cf74878b0384908af124823d118c99683f"
|
| 1199 |
+
dependencies = [
|
| 1200 |
+
"crossbeam-channel",
|
| 1201 |
+
"crossbeam-deque",
|
| 1202 |
+
"crossbeam-utils 0.8.11",
|
| 1203 |
+
"num_cpus",
|
| 1204 |
+
]
|
| 1205 |
+
|
| 1206 |
+
[[package]]
|
| 1207 |
+
name = "rdrand"
|
| 1208 |
+
version = "0.4.0"
|
| 1209 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1210 |
+
checksum = "678054eb77286b51581ba43620cc911abf02758c91f93f479767aed0f90458b2"
|
| 1211 |
+
dependencies = [
|
| 1212 |
+
"rand_core 0.3.1",
|
| 1213 |
+
]
|
| 1214 |
+
|
| 1215 |
+
[[package]]
|
| 1216 |
+
name = "redox_syscall"
|
| 1217 |
+
version = "0.1.57"
|
| 1218 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1219 |
+
checksum = "41cc0f7e4d5d4544e8861606a285bb08d3e70712ccc7d2b84d7c0ccfaf4b05ce"
|
| 1220 |
+
|
| 1221 |
+
[[package]]
|
| 1222 |
+
name = "redox_syscall"
|
| 1223 |
+
version = "0.2.16"
|
| 1224 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1225 |
+
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
|
| 1226 |
+
dependencies = [
|
| 1227 |
+
"bitflags",
|
| 1228 |
+
]
|
| 1229 |
+
|
| 1230 |
+
[[package]]
|
| 1231 |
+
name = "remove_dir_all"
|
| 1232 |
+
version = "0.5.3"
|
| 1233 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1234 |
+
checksum = "3acd125665422973a33ac9d3dd2df85edad0f4ae9b00dafb1a05e43a9f5ef8e7"
|
| 1235 |
+
dependencies = [
|
| 1236 |
+
"winapi 0.3.9",
|
| 1237 |
+
]
|
| 1238 |
+
|
| 1239 |
+
[[package]]
|
| 1240 |
+
name = "reqwest"
|
| 1241 |
+
version = "0.11.11"
|
| 1242 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1243 |
+
checksum = "b75aa69a3f06bbcc66ede33af2af253c6f7a86b1ca0033f60c580a27074fbf92"
|
| 1244 |
+
dependencies = [
|
| 1245 |
+
"base64 0.13.0",
|
| 1246 |
+
"bytes 1.2.1",
|
| 1247 |
+
"encoding_rs",
|
| 1248 |
+
"futures-core",
|
| 1249 |
+
"futures-util",
|
| 1250 |
+
"h2",
|
| 1251 |
+
"http",
|
| 1252 |
+
"http-body",
|
| 1253 |
+
"hyper 0.14.20",
|
| 1254 |
+
"hyper-tls",
|
| 1255 |
+
"ipnet",
|
| 1256 |
+
"js-sys",
|
| 1257 |
+
"lazy_static",
|
| 1258 |
+
"log 0.4.17",
|
| 1259 |
+
"mime 0.3.16",
|
| 1260 |
+
"native-tls",
|
| 1261 |
+
"percent-encoding 2.1.0",
|
| 1262 |
+
"pin-project-lite",
|
| 1263 |
+
"serde",
|
| 1264 |
+
"serde_json",
|
| 1265 |
+
"serde_urlencoded",
|
| 1266 |
+
"tokio",
|
| 1267 |
+
"tokio-native-tls",
|
| 1268 |
+
"tower-service",
|
| 1269 |
+
"url 2.2.2",
|
| 1270 |
+
"wasm-bindgen",
|
| 1271 |
+
"wasm-bindgen-futures",
|
| 1272 |
+
"web-sys",
|
| 1273 |
+
"winreg",
|
| 1274 |
+
]
|
| 1275 |
+
|
| 1276 |
+
[[package]]
|
| 1277 |
+
name = "rustc_version"
|
| 1278 |
+
version = "0.2.3"
|
| 1279 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1280 |
+
checksum = "138e3e0acb6c9fb258b19b67cb8abd63c00679d2851805ea151465464fe9030a"
|
| 1281 |
+
dependencies = [
|
| 1282 |
+
"semver",
|
| 1283 |
+
]
|
| 1284 |
+
|
| 1285 |
+
[[package]]
|
| 1286 |
+
name = "ryu"
|
| 1287 |
+
version = "1.0.11"
|
| 1288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1289 |
+
checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
|
| 1290 |
+
|
| 1291 |
+
[[package]]
|
| 1292 |
+
name = "safemem"
|
| 1293 |
+
version = "0.3.3"
|
| 1294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1295 |
+
checksum = "ef703b7cb59335eae2eb93ceb664c0eb7ea6bf567079d843e09420219668e072"
|
| 1296 |
+
|
| 1297 |
+
[[package]]
|
| 1298 |
+
name = "schannel"
|
| 1299 |
+
version = "0.1.20"
|
| 1300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1301 |
+
checksum = "88d6731146462ea25d9244b2ed5fd1d716d25c52e4d54aa4fb0f3c4e9854dbe2"
|
| 1302 |
+
dependencies = [
|
| 1303 |
+
"lazy_static",
|
| 1304 |
+
"windows-sys",
|
| 1305 |
+
]
|
| 1306 |
+
|
| 1307 |
+
[[package]]
|
| 1308 |
+
name = "scopeguard"
|
| 1309 |
+
version = "1.1.0"
|
| 1310 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1311 |
+
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
| 1312 |
+
|
| 1313 |
+
[[package]]
|
| 1314 |
+
name = "security-framework"
|
| 1315 |
+
version = "2.7.0"
|
| 1316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1317 |
+
checksum = "2bc1bb97804af6631813c55739f771071e0f2ed33ee20b68c86ec505d906356c"
|
| 1318 |
+
dependencies = [
|
| 1319 |
+
"bitflags",
|
| 1320 |
+
"core-foundation",
|
| 1321 |
+
"core-foundation-sys",
|
| 1322 |
+
"libc",
|
| 1323 |
+
"security-framework-sys",
|
| 1324 |
+
]
|
| 1325 |
+
|
| 1326 |
+
[[package]]
|
| 1327 |
+
name = "security-framework-sys"
|
| 1328 |
+
version = "2.6.1"
|
| 1329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1330 |
+
checksum = "0160a13a177a45bfb43ce71c01580998474f556ad854dcbca936dd2841a5c556"
|
| 1331 |
+
dependencies = [
|
| 1332 |
+
"core-foundation-sys",
|
| 1333 |
+
"libc",
|
| 1334 |
+
]
|
| 1335 |
+
|
| 1336 |
+
[[package]]
|
| 1337 |
+
name = "semver"
|
| 1338 |
+
version = "0.9.0"
|
| 1339 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1340 |
+
checksum = "1d7eb9ef2c18661902cc47e535f9bc51b78acd254da71d375c2f6720d9a40403"
|
| 1341 |
+
dependencies = [
|
| 1342 |
+
"semver-parser",
|
| 1343 |
+
]
|
| 1344 |
+
|
| 1345 |
+
[[package]]
|
| 1346 |
+
name = "semver-parser"
|
| 1347 |
+
version = "0.7.0"
|
| 1348 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1349 |
+
checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3"
|
| 1350 |
+
|
| 1351 |
+
[[package]]
|
| 1352 |
+
name = "serde"
|
| 1353 |
+
version = "1.0.144"
|
| 1354 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1355 |
+
checksum = "0f747710de3dcd43b88c9168773254e809d8ddbdf9653b84e2554ab219f17860"
|
| 1356 |
+
dependencies = [
|
| 1357 |
+
"serde_derive",
|
| 1358 |
+
]
|
| 1359 |
+
|
| 1360 |
+
[[package]]
|
| 1361 |
+
name = "serde_derive"
|
| 1362 |
+
version = "1.0.144"
|
| 1363 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1364 |
+
checksum = "94ed3a816fb1d101812f83e789f888322c34e291f894f19590dc310963e87a00"
|
| 1365 |
+
dependencies = [
|
| 1366 |
+
"proc-macro2",
|
| 1367 |
+
"quote",
|
| 1368 |
+
"syn",
|
| 1369 |
+
]
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "serde_json"
|
| 1373 |
+
version = "1.0.85"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "e55a28e3aaef9d5ce0506d0a14dbba8054ddc7e499ef522dd8b26859ec9d4a44"
|
| 1376 |
+
dependencies = [
|
| 1377 |
+
"itoa",
|
| 1378 |
+
"ryu",
|
| 1379 |
+
"serde",
|
| 1380 |
+
]
|
| 1381 |
+
|
| 1382 |
+
[[package]]
|
| 1383 |
+
name = "serde_urlencoded"
|
| 1384 |
+
version = "0.7.1"
|
| 1385 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1386 |
+
checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
|
| 1387 |
+
dependencies = [
|
| 1388 |
+
"form_urlencoded",
|
| 1389 |
+
"itoa",
|
| 1390 |
+
"ryu",
|
| 1391 |
+
"serde",
|
| 1392 |
+
]
|
| 1393 |
+
|
| 1394 |
+
[[package]]
|
| 1395 |
+
name = "sha-1"
|
| 1396 |
+
version = "0.8.2"
|
| 1397 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1398 |
+
checksum = "f7d94d0bede923b3cea61f3f1ff57ff8cdfd77b400fb8f9998949e0cf04163df"
|
| 1399 |
+
dependencies = [
|
| 1400 |
+
"block-buffer",
|
| 1401 |
+
"digest",
|
| 1402 |
+
"fake-simd",
|
| 1403 |
+
"opaque-debug",
|
| 1404 |
+
]
|
| 1405 |
+
|
| 1406 |
+
[[package]]
|
| 1407 |
+
name = "slab"
|
| 1408 |
+
version = "0.4.7"
|
| 1409 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1410 |
+
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
|
| 1411 |
+
dependencies = [
|
| 1412 |
+
"autocfg 1.1.0",
|
| 1413 |
+
]
|
| 1414 |
+
|
| 1415 |
+
[[package]]
|
| 1416 |
+
name = "smallvec"
|
| 1417 |
+
version = "0.6.14"
|
| 1418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1419 |
+
checksum = "b97fcaeba89edba30f044a10c6a3cc39df9c3f17d7cd829dd1446cab35f890e0"
|
| 1420 |
+
dependencies = [
|
| 1421 |
+
"maybe-uninit",
|
| 1422 |
+
]
|
| 1423 |
+
|
| 1424 |
+
[[package]]
|
| 1425 |
+
name = "socket2"
|
| 1426 |
+
version = "0.4.6"
|
| 1427 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1428 |
+
checksum = "10c98bba371b9b22a71a9414e420f92ddeb2369239af08200816169d5e2dd7aa"
|
| 1429 |
+
dependencies = [
|
| 1430 |
+
"libc",
|
| 1431 |
+
"winapi 0.3.9",
|
| 1432 |
+
]
|
| 1433 |
+
|
| 1434 |
+
[[package]]
|
| 1435 |
+
name = "strsim"
|
| 1436 |
+
version = "0.10.0"
|
| 1437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1438 |
+
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
| 1439 |
+
|
| 1440 |
+
[[package]]
|
| 1441 |
+
name = "syn"
|
| 1442 |
+
version = "1.0.99"
|
| 1443 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1444 |
+
checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13"
|
| 1445 |
+
dependencies = [
|
| 1446 |
+
"proc-macro2",
|
| 1447 |
+
"quote",
|
| 1448 |
+
"unicode-ident",
|
| 1449 |
+
]
|
| 1450 |
+
|
| 1451 |
+
[[package]]
|
| 1452 |
+
name = "sysinfo"
|
| 1453 |
+
version = "0.25.3"
|
| 1454 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1455 |
+
checksum = "71eb43e528fdc239f08717ec2a378fdb017dddbc3412de15fff527554591a66c"
|
| 1456 |
+
dependencies = [
|
| 1457 |
+
"cfg-if 1.0.0",
|
| 1458 |
+
"core-foundation-sys",
|
| 1459 |
+
"libc",
|
| 1460 |
+
"ntapi",
|
| 1461 |
+
"once_cell",
|
| 1462 |
+
"rayon",
|
| 1463 |
+
"winapi 0.3.9",
|
| 1464 |
+
]
|
| 1465 |
+
|
| 1466 |
+
[[package]]
|
| 1467 |
+
name = "tempfile"
|
| 1468 |
+
version = "3.3.0"
|
| 1469 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1470 |
+
checksum = "5cdb1ef4eaeeaddc8fbd371e5017057064af0911902ef36b39801f67cc6d79e4"
|
| 1471 |
+
dependencies = [
|
| 1472 |
+
"cfg-if 1.0.0",
|
| 1473 |
+
"fastrand",
|
| 1474 |
+
"libc",
|
| 1475 |
+
"redox_syscall 0.2.16",
|
| 1476 |
+
"remove_dir_all",
|
| 1477 |
+
"winapi 0.3.9",
|
| 1478 |
+
]
|
| 1479 |
+
|
| 1480 |
+
[[package]]
|
| 1481 |
+
name = "termcolor"
|
| 1482 |
+
version = "1.1.3"
|
| 1483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1484 |
+
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
|
| 1485 |
+
dependencies = [
|
| 1486 |
+
"winapi-util",
|
| 1487 |
+
]
|
| 1488 |
+
|
| 1489 |
+
[[package]]
|
| 1490 |
+
name = "textwrap"
|
| 1491 |
+
version = "0.15.0"
|
| 1492 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1493 |
+
checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
|
| 1494 |
+
|
| 1495 |
+
[[package]]
|
| 1496 |
+
name = "thiserror"
|
| 1497 |
+
version = "1.0.32"
|
| 1498 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1499 |
+
checksum = "f5f6586b7f764adc0231f4c79be7b920e766bb2f3e51b3661cdb263828f19994"
|
| 1500 |
+
dependencies = [
|
| 1501 |
+
"thiserror-impl",
|
| 1502 |
+
]
|
| 1503 |
+
|
| 1504 |
+
[[package]]
|
| 1505 |
+
name = "thiserror-impl"
|
| 1506 |
+
version = "1.0.32"
|
| 1507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1508 |
+
checksum = "12bafc5b54507e0149cdf1b145a5d80ab80a90bcd9275df43d4fff68460f6c21"
|
| 1509 |
+
dependencies = [
|
| 1510 |
+
"proc-macro2",
|
| 1511 |
+
"quote",
|
| 1512 |
+
"syn",
|
| 1513 |
+
]
|
| 1514 |
+
|
| 1515 |
+
[[package]]
|
| 1516 |
+
name = "time"
|
| 1517 |
+
version = "0.1.44"
|
| 1518 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1519 |
+
checksum = "6db9e6914ab8b1ae1c260a4ae7a49b6c5611b40328a735b21862567685e73255"
|
| 1520 |
+
dependencies = [
|
| 1521 |
+
"libc",
|
| 1522 |
+
"wasi 0.10.0+wasi-snapshot-preview1",
|
| 1523 |
+
"winapi 0.3.9",
|
| 1524 |
+
]
|
| 1525 |
+
|
| 1526 |
+
[[package]]
|
| 1527 |
+
name = "tinyvec"
|
| 1528 |
+
version = "1.6.0"
|
| 1529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1530 |
+
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
| 1531 |
+
dependencies = [
|
| 1532 |
+
"tinyvec_macros",
|
| 1533 |
+
]
|
| 1534 |
+
|
| 1535 |
+
[[package]]
|
| 1536 |
+
name = "tinyvec_macros"
|
| 1537 |
+
version = "0.1.0"
|
| 1538 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1539 |
+
checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c"
|
| 1540 |
+
|
| 1541 |
+
[[package]]
|
| 1542 |
+
name = "tokio"
|
| 1543 |
+
version = "1.20.1"
|
| 1544 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1545 |
+
checksum = "7a8325f63a7d4774dd041e363b2409ed1c5cbbd0f867795e661df066b2b0a581"
|
| 1546 |
+
dependencies = [
|
| 1547 |
+
"autocfg 1.1.0",
|
| 1548 |
+
"bytes 1.2.1",
|
| 1549 |
+
"libc",
|
| 1550 |
+
"memchr",
|
| 1551 |
+
"mio 0.8.4",
|
| 1552 |
+
"num_cpus",
|
| 1553 |
+
"once_cell",
|
| 1554 |
+
"pin-project-lite",
|
| 1555 |
+
"socket2",
|
| 1556 |
+
"winapi 0.3.9",
|
| 1557 |
+
]
|
| 1558 |
+
|
| 1559 |
+
[[package]]
|
| 1560 |
+
name = "tokio-codec"
|
| 1561 |
+
version = "0.1.2"
|
| 1562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1563 |
+
checksum = "25b2998660ba0e70d18684de5d06b70b70a3a747469af9dea7618cc59e75976b"
|
| 1564 |
+
dependencies = [
|
| 1565 |
+
"bytes 0.4.12",
|
| 1566 |
+
"futures",
|
| 1567 |
+
"tokio-io",
|
| 1568 |
+
]
|
| 1569 |
+
|
| 1570 |
+
[[package]]
|
| 1571 |
+
name = "tokio-executor"
|
| 1572 |
+
version = "0.1.10"
|
| 1573 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1574 |
+
checksum = "fb2d1b8f4548dbf5e1f7818512e9c406860678f29c300cdf0ebac72d1a3a1671"
|
| 1575 |
+
dependencies = [
|
| 1576 |
+
"crossbeam-utils 0.7.2",
|
| 1577 |
+
"futures",
|
| 1578 |
+
]
|
| 1579 |
+
|
| 1580 |
+
[[package]]
|
| 1581 |
+
name = "tokio-io"
|
| 1582 |
+
version = "0.1.13"
|
| 1583 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1584 |
+
checksum = "57fc868aae093479e3131e3d165c93b1c7474109d13c90ec0dda2a1bbfff0674"
|
| 1585 |
+
dependencies = [
|
| 1586 |
+
"bytes 0.4.12",
|
| 1587 |
+
"futures",
|
| 1588 |
+
"log 0.4.17",
|
| 1589 |
+
]
|
| 1590 |
+
|
| 1591 |
+
[[package]]
|
| 1592 |
+
name = "tokio-native-tls"
|
| 1593 |
+
version = "0.3.0"
|
| 1594 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1595 |
+
checksum = "f7d995660bd2b7f8c1568414c1126076c13fbb725c40112dc0120b78eb9b717b"
|
| 1596 |
+
dependencies = [
|
| 1597 |
+
"native-tls",
|
| 1598 |
+
"tokio",
|
| 1599 |
+
]
|
| 1600 |
+
|
| 1601 |
+
[[package]]
|
| 1602 |
+
name = "tokio-reactor"
|
| 1603 |
+
version = "0.1.12"
|
| 1604 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1605 |
+
checksum = "09bc590ec4ba8ba87652da2068d150dcada2cfa2e07faae270a5e0409aa51351"
|
| 1606 |
+
dependencies = [
|
| 1607 |
+
"crossbeam-utils 0.7.2",
|
| 1608 |
+
"futures",
|
| 1609 |
+
"lazy_static",
|
| 1610 |
+
"log 0.4.17",
|
| 1611 |
+
"mio 0.6.23",
|
| 1612 |
+
"num_cpus",
|
| 1613 |
+
"parking_lot",
|
| 1614 |
+
"slab",
|
| 1615 |
+
"tokio-executor",
|
| 1616 |
+
"tokio-io",
|
| 1617 |
+
"tokio-sync",
|
| 1618 |
+
]
|
| 1619 |
+
|
| 1620 |
+
[[package]]
|
| 1621 |
+
name = "tokio-sync"
|
| 1622 |
+
version = "0.1.8"
|
| 1623 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1624 |
+
checksum = "edfe50152bc8164fcc456dab7891fa9bf8beaf01c5ee7e1dd43a397c3cf87dee"
|
| 1625 |
+
dependencies = [
|
| 1626 |
+
"fnv",
|
| 1627 |
+
"futures",
|
| 1628 |
+
]
|
| 1629 |
+
|
| 1630 |
+
[[package]]
|
| 1631 |
+
name = "tokio-tcp"
|
| 1632 |
+
version = "0.1.4"
|
| 1633 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1634 |
+
checksum = "98df18ed66e3b72e742f185882a9e201892407957e45fbff8da17ae7a7c51f72"
|
| 1635 |
+
dependencies = [
|
| 1636 |
+
"bytes 0.4.12",
|
| 1637 |
+
"futures",
|
| 1638 |
+
"iovec",
|
| 1639 |
+
"mio 0.6.23",
|
| 1640 |
+
"tokio-io",
|
| 1641 |
+
"tokio-reactor",
|
| 1642 |
+
]
|
| 1643 |
+
|
| 1644 |
+
[[package]]
|
| 1645 |
+
name = "tokio-tls"
|
| 1646 |
+
version = "0.2.1"
|
| 1647 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1648 |
+
checksum = "354b8cd83825b3c20217a9dc174d6a0c67441a2fae5c41bcb1ea6679f6ae0f7c"
|
| 1649 |
+
dependencies = [
|
| 1650 |
+
"futures",
|
| 1651 |
+
"native-tls",
|
| 1652 |
+
"tokio-io",
|
| 1653 |
+
]
|
| 1654 |
+
|
| 1655 |
+
[[package]]
|
| 1656 |
+
name = "tokio-util"
|
| 1657 |
+
version = "0.7.3"
|
| 1658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1659 |
+
checksum = "cc463cd8deddc3770d20f9852143d50bf6094e640b485cb2e189a2099085ff45"
|
| 1660 |
+
dependencies = [
|
| 1661 |
+
"bytes 1.2.1",
|
| 1662 |
+
"futures-core",
|
| 1663 |
+
"futures-sink",
|
| 1664 |
+
"pin-project-lite",
|
| 1665 |
+
"tokio",
|
| 1666 |
+
"tracing",
|
| 1667 |
+
]
|
| 1668 |
+
|
| 1669 |
+
[[package]]
|
| 1670 |
+
name = "tower-service"
|
| 1671 |
+
version = "0.3.2"
|
| 1672 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1673 |
+
checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52"
|
| 1674 |
+
|
| 1675 |
+
[[package]]
|
| 1676 |
+
name = "tracing"
|
| 1677 |
+
version = "0.1.36"
|
| 1678 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1679 |
+
checksum = "2fce9567bd60a67d08a16488756721ba392f24f29006402881e43b19aac64307"
|
| 1680 |
+
dependencies = [
|
| 1681 |
+
"cfg-if 1.0.0",
|
| 1682 |
+
"pin-project-lite",
|
| 1683 |
+
"tracing-core",
|
| 1684 |
+
]
|
| 1685 |
+
|
| 1686 |
+
[[package]]
|
| 1687 |
+
name = "tracing-core"
|
| 1688 |
+
version = "0.1.29"
|
| 1689 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1690 |
+
checksum = "5aeea4303076558a00714b823f9ad67d58a3bbda1df83d8827d21193156e22f7"
|
| 1691 |
+
dependencies = [
|
| 1692 |
+
"once_cell",
|
| 1693 |
+
]
|
| 1694 |
+
|
| 1695 |
+
[[package]]
|
| 1696 |
+
name = "traitobject"
|
| 1697 |
+
version = "0.1.0"
|
| 1698 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1699 |
+
checksum = "efd1f82c56340fdf16f2a953d7bda4f8fdffba13d93b00844c25572110b26079"
|
| 1700 |
+
|
| 1701 |
+
[[package]]
|
| 1702 |
+
name = "try-lock"
|
| 1703 |
+
version = "0.2.3"
|
| 1704 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1705 |
+
checksum = "59547bce71d9c38b83d9c0e92b6066c4253371f15005def0c30d9657f50c7642"
|
| 1706 |
+
|
| 1707 |
+
[[package]]
|
| 1708 |
+
name = "typeable"
|
| 1709 |
+
version = "0.1.2"
|
| 1710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1711 |
+
checksum = "1410f6f91f21d1612654e7cc69193b0334f909dcf2c790c4826254fbb86f8887"
|
| 1712 |
+
|
| 1713 |
+
[[package]]
|
| 1714 |
+
name = "typenum"
|
| 1715 |
+
version = "1.15.0"
|
| 1716 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1717 |
+
checksum = "dcf81ac59edc17cc8697ff311e8f5ef2d99fcbd9817b34cec66f90b6c3dfd987"
|
| 1718 |
+
|
| 1719 |
+
[[package]]
|
| 1720 |
+
name = "unicase"
|
| 1721 |
+
version = "1.4.2"
|
| 1722 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1723 |
+
checksum = "7f4765f83163b74f957c797ad9253caf97f103fb064d3999aea9568d09fc8a33"
|
| 1724 |
+
dependencies = [
|
| 1725 |
+
"version_check 0.1.5",
|
| 1726 |
+
]
|
| 1727 |
+
|
| 1728 |
+
[[package]]
|
| 1729 |
+
name = "unicode-bidi"
|
| 1730 |
+
version = "0.3.8"
|
| 1731 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1732 |
+
checksum = "099b7128301d285f79ddd55b9a83d5e6b9e97c92e0ea0daebee7263e932de992"
|
| 1733 |
+
|
| 1734 |
+
[[package]]
|
| 1735 |
+
name = "unicode-ident"
|
| 1736 |
+
version = "1.0.3"
|
| 1737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1738 |
+
checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
| 1739 |
+
|
| 1740 |
+
[[package]]
|
| 1741 |
+
name = "unicode-normalization"
|
| 1742 |
+
version = "0.1.21"
|
| 1743 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1744 |
+
checksum = "854cbdc4f7bc6ae19c820d44abdc3277ac3e1b2b93db20a636825d9322fb60e6"
|
| 1745 |
+
dependencies = [
|
| 1746 |
+
"tinyvec",
|
| 1747 |
+
]
|
| 1748 |
+
|
| 1749 |
+
[[package]]
|
| 1750 |
+
name = "url"
|
| 1751 |
+
version = "1.7.2"
|
| 1752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1753 |
+
checksum = "dd4e7c0d531266369519a4aa4f399d748bd37043b00bde1e4ff1f60a120b355a"
|
| 1754 |
+
dependencies = [
|
| 1755 |
+
"idna 0.1.5",
|
| 1756 |
+
"matches",
|
| 1757 |
+
"percent-encoding 1.0.1",
|
| 1758 |
+
]
|
| 1759 |
+
|
| 1760 |
+
[[package]]
|
| 1761 |
+
name = "url"
|
| 1762 |
+
version = "2.2.2"
|
| 1763 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1764 |
+
checksum = "a507c383b2d33b5fc35d1861e77e6b383d158b2da5e14fe51b83dfedf6fd578c"
|
| 1765 |
+
dependencies = [
|
| 1766 |
+
"form_urlencoded",
|
| 1767 |
+
"idna 0.2.3",
|
| 1768 |
+
"matches",
|
| 1769 |
+
"percent-encoding 2.1.0",
|
| 1770 |
+
]
|
| 1771 |
+
|
| 1772 |
+
[[package]]
|
| 1773 |
+
name = "vcpkg"
|
| 1774 |
+
version = "0.2.15"
|
| 1775 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1776 |
+
checksum = "accd4ea62f7bb7a82fe23066fb0957d48ef677f6eeb8215f372f52e48bb32426"
|
| 1777 |
+
|
| 1778 |
+
[[package]]
|
| 1779 |
+
name = "version_check"
|
| 1780 |
+
version = "0.1.5"
|
| 1781 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1782 |
+
checksum = "914b1a6776c4c929a602fafd8bc742e06365d4bcbe48c30f9cca5824f70dc9dd"
|
| 1783 |
+
|
| 1784 |
+
[[package]]
|
| 1785 |
+
name = "version_check"
|
| 1786 |
+
version = "0.9.4"
|
| 1787 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1788 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 1789 |
+
|
| 1790 |
+
[[package]]
|
| 1791 |
+
name = "want"
|
| 1792 |
+
version = "0.3.0"
|
| 1793 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1794 |
+
checksum = "1ce8a968cb1cd110d136ff8b819a556d6fb6d919363c61534f6860c7eb172ba0"
|
| 1795 |
+
dependencies = [
|
| 1796 |
+
"log 0.4.17",
|
| 1797 |
+
"try-lock",
|
| 1798 |
+
]
|
| 1799 |
+
|
| 1800 |
+
[[package]]
|
| 1801 |
+
name = "wasi"
|
| 1802 |
+
version = "0.10.0+wasi-snapshot-preview1"
|
| 1803 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1804 |
+
checksum = "1a143597ca7c7793eff794def352d41792a93c481eb1042423ff7ff72ba2c31f"
|
| 1805 |
+
|
| 1806 |
+
[[package]]
|
| 1807 |
+
name = "wasi"
|
| 1808 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 1809 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1810 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 1811 |
+
|
| 1812 |
+
[[package]]
|
| 1813 |
+
name = "wasm-bindgen"
|
| 1814 |
+
version = "0.2.82"
|
| 1815 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1816 |
+
checksum = "fc7652e3f6c4706c8d9cd54832c4a4ccb9b5336e2c3bd154d5cccfbf1c1f5f7d"
|
| 1817 |
+
dependencies = [
|
| 1818 |
+
"cfg-if 1.0.0",
|
| 1819 |
+
"wasm-bindgen-macro",
|
| 1820 |
+
]
|
| 1821 |
+
|
| 1822 |
+
[[package]]
|
| 1823 |
+
name = "wasm-bindgen-backend"
|
| 1824 |
+
version = "0.2.82"
|
| 1825 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1826 |
+
checksum = "662cd44805586bd52971b9586b1df85cdbbd9112e4ef4d8f41559c334dc6ac3f"
|
| 1827 |
+
dependencies = [
|
| 1828 |
+
"bumpalo",
|
| 1829 |
+
"log 0.4.17",
|
| 1830 |
+
"once_cell",
|
| 1831 |
+
"proc-macro2",
|
| 1832 |
+
"quote",
|
| 1833 |
+
"syn",
|
| 1834 |
+
"wasm-bindgen-shared",
|
| 1835 |
+
]
|
| 1836 |
+
|
| 1837 |
+
[[package]]
|
| 1838 |
+
name = "wasm-bindgen-futures"
|
| 1839 |
+
version = "0.4.32"
|
| 1840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1841 |
+
checksum = "fa76fb221a1f8acddf5b54ace85912606980ad661ac7a503b4570ffd3a624dad"
|
| 1842 |
+
dependencies = [
|
| 1843 |
+
"cfg-if 1.0.0",
|
| 1844 |
+
"js-sys",
|
| 1845 |
+
"wasm-bindgen",
|
| 1846 |
+
"web-sys",
|
| 1847 |
+
]
|
| 1848 |
+
|
| 1849 |
+
[[package]]
|
| 1850 |
+
name = "wasm-bindgen-macro"
|
| 1851 |
+
version = "0.2.82"
|
| 1852 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1853 |
+
checksum = "b260f13d3012071dfb1512849c033b1925038373aea48ced3012c09df952c602"
|
| 1854 |
+
dependencies = [
|
| 1855 |
+
"quote",
|
| 1856 |
+
"wasm-bindgen-macro-support",
|
| 1857 |
+
]
|
| 1858 |
+
|
| 1859 |
+
[[package]]
|
| 1860 |
+
name = "wasm-bindgen-macro-support"
|
| 1861 |
+
version = "0.2.82"
|
| 1862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1863 |
+
checksum = "5be8e654bdd9b79216c2929ab90721aa82faf65c48cdf08bdc4e7f51357b80da"
|
| 1864 |
+
dependencies = [
|
| 1865 |
+
"proc-macro2",
|
| 1866 |
+
"quote",
|
| 1867 |
+
"syn",
|
| 1868 |
+
"wasm-bindgen-backend",
|
| 1869 |
+
"wasm-bindgen-shared",
|
| 1870 |
+
]
|
| 1871 |
+
|
| 1872 |
+
[[package]]
|
| 1873 |
+
name = "wasm-bindgen-shared"
|
| 1874 |
+
version = "0.2.82"
|
| 1875 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1876 |
+
checksum = "6598dd0bd3c7d51095ff6531a5b23e02acdc81804e30d8f07afb77b7215a140a"
|
| 1877 |
+
|
| 1878 |
+
[[package]]
|
| 1879 |
+
name = "web-sys"
|
| 1880 |
+
version = "0.3.59"
|
| 1881 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1882 |
+
checksum = "ed055ab27f941423197eb86b2035720b1a3ce40504df082cac2ecc6ed73335a1"
|
| 1883 |
+
dependencies = [
|
| 1884 |
+
"js-sys",
|
| 1885 |
+
"wasm-bindgen",
|
| 1886 |
+
]
|
| 1887 |
+
|
| 1888 |
+
[[package]]
|
| 1889 |
+
name = "websocket"
|
| 1890 |
+
version = "0.26.5"
|
| 1891 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1892 |
+
checksum = "92aacab060eea423e4036820ddd28f3f9003b2c4d8048cbda985e5a14e18038d"
|
| 1893 |
+
dependencies = [
|
| 1894 |
+
"bytes 0.4.12",
|
| 1895 |
+
"futures",
|
| 1896 |
+
"hyper 0.10.16",
|
| 1897 |
+
"native-tls",
|
| 1898 |
+
"rand",
|
| 1899 |
+
"tokio-codec",
|
| 1900 |
+
"tokio-io",
|
| 1901 |
+
"tokio-reactor",
|
| 1902 |
+
"tokio-tcp",
|
| 1903 |
+
"tokio-tls",
|
| 1904 |
+
"unicase",
|
| 1905 |
+
"url 1.7.2",
|
| 1906 |
+
"websocket-base",
|
| 1907 |
+
]
|
| 1908 |
+
|
| 1909 |
+
[[package]]
|
| 1910 |
+
name = "websocket-base"
|
| 1911 |
+
version = "0.26.5"
|
| 1912 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1913 |
+
checksum = "49aec794b07318993d1db16156d5a9c750120597a5ee40c6b928d416186cb138"
|
| 1914 |
+
dependencies = [
|
| 1915 |
+
"base64 0.10.1",
|
| 1916 |
+
"bitflags",
|
| 1917 |
+
"byteorder",
|
| 1918 |
+
"bytes 0.4.12",
|
| 1919 |
+
"futures",
|
| 1920 |
+
"native-tls",
|
| 1921 |
+
"rand",
|
| 1922 |
+
"sha-1",
|
| 1923 |
+
"tokio-codec",
|
| 1924 |
+
"tokio-io",
|
| 1925 |
+
"tokio-tcp",
|
| 1926 |
+
"tokio-tls",
|
| 1927 |
+
]
|
| 1928 |
+
|
| 1929 |
+
[[package]]
|
| 1930 |
+
name = "winapi"
|
| 1931 |
+
version = "0.2.8"
|
| 1932 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1933 |
+
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
| 1934 |
+
|
| 1935 |
+
[[package]]
|
| 1936 |
+
name = "winapi"
|
| 1937 |
+
version = "0.3.9"
|
| 1938 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1939 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 1940 |
+
dependencies = [
|
| 1941 |
+
"winapi-i686-pc-windows-gnu",
|
| 1942 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 1943 |
+
]
|
| 1944 |
+
|
| 1945 |
+
[[package]]
|
| 1946 |
+
name = "winapi-build"
|
| 1947 |
+
version = "0.1.1"
|
| 1948 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1949 |
+
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
| 1950 |
+
|
| 1951 |
+
[[package]]
|
| 1952 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 1953 |
+
version = "0.4.0"
|
| 1954 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1955 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 1956 |
+
|
| 1957 |
+
[[package]]
|
| 1958 |
+
name = "winapi-util"
|
| 1959 |
+
version = "0.1.5"
|
| 1960 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1961 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 1962 |
+
dependencies = [
|
| 1963 |
+
"winapi 0.3.9",
|
| 1964 |
+
]
|
| 1965 |
+
|
| 1966 |
+
[[package]]
|
| 1967 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 1968 |
+
version = "0.4.0"
|
| 1969 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1970 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 1971 |
+
|
| 1972 |
+
[[package]]
|
| 1973 |
+
name = "windows-sys"
|
| 1974 |
+
version = "0.36.1"
|
| 1975 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1976 |
+
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
|
| 1977 |
+
dependencies = [
|
| 1978 |
+
"windows_aarch64_msvc",
|
| 1979 |
+
"windows_i686_gnu",
|
| 1980 |
+
"windows_i686_msvc",
|
| 1981 |
+
"windows_x86_64_gnu",
|
| 1982 |
+
"windows_x86_64_msvc",
|
| 1983 |
+
]
|
| 1984 |
+
|
| 1985 |
+
[[package]]
|
| 1986 |
+
name = "windows_aarch64_msvc"
|
| 1987 |
+
version = "0.36.1"
|
| 1988 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1989 |
+
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
|
| 1990 |
+
|
| 1991 |
+
[[package]]
|
| 1992 |
+
name = "windows_i686_gnu"
|
| 1993 |
+
version = "0.36.1"
|
| 1994 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1995 |
+
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
|
| 1996 |
+
|
| 1997 |
+
[[package]]
|
| 1998 |
+
name = "windows_i686_msvc"
|
| 1999 |
+
version = "0.36.1"
|
| 2000 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2001 |
+
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
|
| 2002 |
+
|
| 2003 |
+
[[package]]
|
| 2004 |
+
name = "windows_x86_64_gnu"
|
| 2005 |
+
version = "0.36.1"
|
| 2006 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2007 |
+
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
|
| 2008 |
+
|
| 2009 |
+
[[package]]
|
| 2010 |
+
name = "windows_x86_64_msvc"
|
| 2011 |
+
version = "0.36.1"
|
| 2012 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2013 |
+
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
|
| 2014 |
+
|
| 2015 |
+
[[package]]
|
| 2016 |
+
name = "winreg"
|
| 2017 |
+
version = "0.10.1"
|
| 2018 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2019 |
+
checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d"
|
| 2020 |
+
dependencies = [
|
| 2021 |
+
"winapi 0.3.9",
|
| 2022 |
+
]
|
| 2023 |
+
|
| 2024 |
+
[[package]]
|
| 2025 |
+
name = "ws2_32-sys"
|
| 2026 |
+
version = "0.2.1"
|
| 2027 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2028 |
+
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
| 2029 |
+
dependencies = [
|
| 2030 |
+
"winapi 0.2.8",
|
| 2031 |
+
"winapi-build",
|
| 2032 |
+
]
|
| 2033 |
+
EOF_LOCK
|
| 2034 |
+
|
| 2035 |
+
if [ -f "${CARGO_FETCH_DIR}/Cargo.toml" ] && [ -f "${CARGO_FETCH_DIR}/Cargo.lock" ]; then
|
| 2036 |
+
:
|
| 2037 |
+
else
|
| 2038 |
+
printf '%s\n' ';;; ERROR: could not write temporary Cargo manifest/lockfile' 1>&2
|
| 2039 |
+
_download_fail
|
| 2040 |
+
fi
|
| 2041 |
+
|
| 2042 |
+
# A package manifest with no source tree needs a stub crate root so that
|
| 2043 |
+
# prefetch resolution succeeds.
|
| 2044 |
+
mkdir -p "${CARGO_FETCH_DIR}/src"
|
| 2045 |
+
printf '%s\n' '// prefetch bootstrap' > "${CARGO_FETCH_DIR}/src/lib.rs"
|
| 2046 |
+
|
| 2047 |
+
# Prefetch exactly the pinned crates the offline build needs. Never run the
|
| 2048 |
+
# Cargo prefetch command from the repository root or /source_ro; always point
|
| 2049 |
+
# Cargo at the generated manifest with --manifest-path. --locked keeps
|
| 2050 |
+
# resolution pinned to the embedded lockfile.
|
| 2051 |
+
cargo fetch --manifest-path "${CARGO_FETCH_DIR}/Cargo.toml" --locked
|
| 2052 |
+
_fetch_rc=$?
|
| 2053 |
+
if [ "${_fetch_rc}" -ne 0 ]; then
|
| 2054 |
+
printf '%s\n' ';;; ERROR: cargo dependency prefetch failed' 1>&2
|
| 2055 |
+
_download_fail
|
| 2056 |
+
fi
|
| 2057 |
+
|
| 2058 |
+
printf '%s\n' ';;; cargo dependency prefetch complete'
|
| 2059 |
+
|
| 2060 |
+
# ---------------------------------------------------------------------------
|
| 2061 |
+
# Apply an idempotent patch to the vendored 'traitobject' 0.1.0 crate in the
|
| 2062 |
+
# cargo registry cache. That 2017 crate ships overlapping Send/Sync auto-trait
|
| 2063 |
+
# impls (Send+Send, Send+Sync, Sync+Send, ...) which modern rustc collapses and
|
| 2064 |
+
# rejects as conflicting. The websocket dep of jscythe pulls it in. We replace
|
| 2065 |
+
# the six overlapping impls with the three distinct, non-overlapping forms.
|
| 2066 |
+
# This only rewrites cache source; it performs no compilation.
|
| 2067 |
+
# ---------------------------------------------------------------------------
|
| 2068 |
+
python3 - <<'PY_END'
|
| 2069 |
+
import glob, os, sys
|
| 2070 |
+
cargo_home = os.environ.get('CARGO_HOME') or os.path.expanduser('~/.cargo')
|
| 2071 |
+
cands = glob.glob(os.path.join(cargo_home, 'registry', 'src', '*', 'traitobject-0.1.0', 'src', 'impls.rs'))
|
| 2072 |
+
if not cands:
|
| 2073 |
+
print('ERROR: traitobject-0.1.0 source not found in cargo registry cache', file=sys.stderr)
|
| 2074 |
+
sys.exit(1)
|
| 2075 |
+
p = cands[0]
|
| 2076 |
+
src = open(p, 'r', encoding='utf-8').read()
|
| 2077 |
+
if '::std::marker::Send + Send { }' not in src:
|
| 2078 |
+
print('traitobject-0.1.0 already patched; no-op')
|
| 2079 |
+
sys.exit(0)
|
| 2080 |
+
old = (
|
| 2081 |
+
'unsafe impl Trait for ::std::marker::Send + Send { }\n'
|
| 2082 |
+
'unsafe impl Trait for ::std::marker::Send + Sync { }\n'
|
| 2083 |
+
'unsafe impl Trait for ::std::marker::Send + Send + Sync { }\n'
|
| 2084 |
+
'unsafe impl Trait for ::std::marker::Sync + Send { }\n'
|
| 2085 |
+
'unsafe impl Trait for ::std::marker::Sync + Sync { }\n'
|
| 2086 |
+
'unsafe impl Trait for ::std::marker::Sync + Send + Sync { }\n'
|
| 2087 |
+
)
|
| 2088 |
+
new = (
|
| 2089 |
+
'unsafe impl Trait for ::std::marker::Send { }\n'
|
| 2090 |
+
'unsafe impl Trait for ::std::marker::Sync { }\n'
|
| 2091 |
+
'unsafe impl Trait for ::std::marker::Send + Sync { }\n'
|
| 2092 |
+
)
|
| 2093 |
+
if old not in src:
|
| 2094 |
+
print('ERROR: unexpected traitobject impls.rs content; refusing to guess', file=sys.stderr)
|
| 2095 |
+
sys.exit(1)
|
| 2096 |
+
open(p, 'w', encoding='utf-8').write(src.replace(old, new, 1))
|
| 2097 |
+
print('patched traitobject-0.1.0 impls.rs (removed overlapping Send/Sync impls)')
|
| 2098 |
+
sys.exit(0)
|
| 2099 |
+
PY_END
|
| 2100 |
+
|
| 2101 |
+
_pt_rc=$?
|
| 2102 |
+
if [ "${_pt_rc}" -ne 0 ]; then
|
| 2103 |
+
printf '%s\n' ';;; ERROR: traitobject cache patch failed' 1>&2
|
| 2104 |
+
_download_fail
|
| 2105 |
+
fi
|
| 2106 |
+
|
| 2107 |
+
printf '%s\n' ';;; download.sh complete: crate cache prefetched and prepared'
|
evilsocket--jscythe.6aeeeb5/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb9ab87feb41a1071032ab95a719b42c0884b9f3bb99d9c918249a1397c0c8b4
|
| 3 |
+
size 5933440
|
evilsocket--jscythe.6aeeeb5/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
|
evilsocket--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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
"""In-place ProgramGym evaluator.
|
| 3 |
+
|
| 4 |
+
Mirrors ProgramGym's ``Evaluator`` pipeline as closely as a single-container,
|
| 5 |
+
no-Docker-in-Docker host allows. Run from ``tests/test.sh`` inside the agent's
|
| 6 |
+
cleanroom container after Harbor flips the verifier-phase network policy.
|
| 7 |
+
|
| 8 |
+
Differences from ``programgym.eval.eval.Evaluator`` that are structural to
|
| 9 |
+
running in one container:
|
| 10 |
+
|
| 11 |
+
* No fresh container per branch. ``snapshot_workspace`` / ``restore_workspace``
|
| 12 |
+
copy a post-compile workspace snapshot to a temp directory and restore it
|
| 13 |
+
before each branch; ``cleanup_lingering_processes`` kills leftover branch
|
| 14 |
+
processes between attempts to approximate the fresh-container boundary.
|
| 15 |
+
* No ``docker commit``. The post-compile workspace snapshot serves the same
|
| 16 |
+
role as the committed image upstream.
|
| 17 |
+
* Hidden test blobs are fetched on demand from HuggingFace via
|
| 18 |
+
``huggingface_hub.snapshot_download`` (matching ``programgym.utils.blob_store``)
|
| 19 |
+
rather than being pre-staged into ``/tests/blobs/``. Override with
|
| 20 |
+
``PROGRAMGYM_BLOB_DIR`` for offline reruns.
|
| 21 |
+
|
| 22 |
+
Everything else (eval_clean_hashes scrub, deterministic synthetic git seed,
|
| 23 |
+
``compile.sh`` then stash + hash the executable, best-effort
|
| 24 |
+
``pytest-rerunfailures``, per-branch test-tar overlay, executable hash
|
| 25 |
+
``--max-worker-restart=4``, xdist worker-crash retry with serial fallback,
|
| 26 |
+
best-of-N attempt selection, active vs ignored test bookkeeping, scoring) is
|
| 27 |
+
preserved.
|
| 28 |
+
"""
|
| 29 |
+
|
| 30 |
+
from __future__ import annotations
|
| 31 |
+
|
| 32 |
+
import hashlib
|
| 33 |
+
import json
|
| 34 |
+
import os
|
| 35 |
+
import re
|
| 36 |
+
import shlex
|
| 37 |
+
import shutil
|
| 38 |
+
import signal
|
| 39 |
+
import subprocess
|
| 40 |
+
import tempfile
|
| 41 |
+
import time
|
| 42 |
+
import traceback
|
| 43 |
+
import xml.etree.ElementTree as ET
|
| 44 |
+
from pathlib import Path
|
| 45 |
+
from typing import Any
|
| 46 |
+
|
| 47 |
+
WORKSPACE = Path(os.environ.get("PROGRAMGYM_WORKSPACE", "/workspace"))
|
| 48 |
+
STASHED_EXECUTABLE = Path("/opt/programgym-stashed-executable-do-not-modify")
|
| 49 |
+
METADATA_PATH = Path(
|
| 50 |
+
os.environ.get("PROGRAMGYM_METADATA", "/tests/programgym_task.json")
|
| 51 |
+
)
|
| 52 |
+
LOG_DIR = Path(os.environ.get("PROGRAMGYM_LOG_DIR", "/logs/verifier"))
|
| 53 |
+
WORKER_CRASH_PHRASE = "worker '"
|
| 54 |
+
XDIST_COLLAPSE_MARKERS = (
|
| 55 |
+
"maximum crashed workers reached",
|
| 56 |
+
"xdist: maximum crashed",
|
| 57 |
+
)
|
| 58 |
+
|
| 59 |
+
DEFAULT_HF_REPO_ID = "programgym/ProgramGym-Tests"
|
| 60 |
+
DEFAULT_HF_REVISION = "main"
|
| 61 |
+
|
| 62 |
+
# Oracle agent handoff files (see solution/solve.sh). Must not appear in the
|
| 63 |
+
# post-compile workspace snapshot or they pollute tree-scanning tests (dutree).
|
| 64 |
+
_ORACLE_HANDOFF_NAMES = (".programgym_oracle_reference",)
|
| 65 |
+
|
| 66 |
+
_TOOLCHAIN_BIN_DIR_CANDIDATES = (
|
| 67 |
+
"/usr/local/go/bin",
|
| 68 |
+
"/go/bin",
|
| 69 |
+
"/usr/local/cargo/bin",
|
| 70 |
+
"/root/.cargo/bin",
|
| 71 |
+
"/root/.ghcup/bin",
|
| 72 |
+
)
|
| 73 |
+
|
| 74 |
+
|
| 75 |
+
def toolchain_bin_dirs() -> list[str]:
|
| 76 |
+
"""Return toolchain bin directories that exist on this image."""
|
| 77 |
+
candidates = list(_TOOLCHAIN_BIN_DIR_CANDIDATES)
|
| 78 |
+
candidates.extend(
|
| 79 |
+
str(path)
|
| 80 |
+
for path in sorted(Path("/usr/lib").glob("go-*/bin"))
|
| 81 |
+
if _is_accessible_dir(path)
|
| 82 |
+
)
|
| 83 |
+
seen: set[str] = set()
|
| 84 |
+
present: list[str] = []
|
| 85 |
+
for path in candidates:
|
| 86 |
+
if path in seen:
|
| 87 |
+
continue
|
| 88 |
+
seen.add(path)
|
| 89 |
+
if _is_accessible_dir(path):
|
| 90 |
+
present.append(path)
|
| 91 |
+
return present
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
def _is_accessible_dir(path: str | Path) -> bool:
|
| 95 |
+
"""Return whether path is a directory without failing on protected homes."""
|
| 96 |
+
try:
|
| 97 |
+
return Path(path).is_dir()
|
| 98 |
+
except OSError:
|
| 99 |
+
return False
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def bootstrap_toolchain_path() -> str:
|
| 103 |
+
"""Prepend discovered toolchain dirs to PATH (idempotent)."""
|
| 104 |
+
prepend = toolchain_bin_dirs()
|
| 105 |
+
current_parts = [part for part in os.environ.get("PATH", "").split(":") if part]
|
| 106 |
+
merged: list[str] = []
|
| 107 |
+
for path in prepend + current_parts:
|
| 108 |
+
if path not in merged:
|
| 109 |
+
merged.append(path)
|
| 110 |
+
new_path = ":".join(merged)
|
| 111 |
+
os.environ["PATH"] = new_path
|
| 112 |
+
return new_path
|
| 113 |
+
|
| 114 |
+
|
| 115 |
+
def _bash_login_command(command: str) -> str:
|
| 116 |
+
"""Run ``command`` under bash -lc with an explicit PATH export."""
|
| 117 |
+
path = bootstrap_toolchain_path()
|
| 118 |
+
return f"export PATH={shlex.quote(path)}; {command}"
|
| 119 |
+
|
| 120 |
+
|
| 121 |
+
def sha256(path: Path) -> str:
|
| 122 |
+
h = hashlib.sha256()
|
| 123 |
+
with path.open("rb") as f:
|
| 124 |
+
for chunk in iter(lambda: f.read(1024 * 1024), b""):
|
| 125 |
+
h.update(chunk)
|
| 126 |
+
return h.hexdigest()
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
def write_json(path: Path, data: dict[str, Any]) -> None:
|
| 130 |
+
tmp = path.with_suffix(path.suffix + ".tmp")
|
| 131 |
+
tmp.write_text(json.dumps(data, indent=2, sort_keys=True))
|
| 132 |
+
tmp.replace(path)
|
| 133 |
+
|
| 134 |
+
|
| 135 |
+
def _read_log_tail(path: Path | None, max_bytes: int = 65536) -> str:
|
| 136 |
+
if path is None or not path.exists():
|
| 137 |
+
return ""
|
| 138 |
+
data = path.read_bytes()
|
| 139 |
+
if len(data) <= max_bytes:
|
| 140 |
+
return data.decode(errors="replace")
|
| 141 |
+
return data[-max_bytes:].decode(errors="replace")
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def _close_pipes(proc: subprocess.Popen[Any]) -> None:
|
| 145 |
+
for stream in (proc.stdout, proc.stderr):
|
| 146 |
+
if stream is not None:
|
| 147 |
+
try:
|
| 148 |
+
stream.close()
|
| 149 |
+
except OSError:
|
| 150 |
+
pass
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def _terminate_process_tree(proc: subprocess.Popen[Any]) -> None:
|
| 154 |
+
try:
|
| 155 |
+
os.killpg(proc.pid, signal.SIGKILL)
|
| 156 |
+
except ProcessLookupError:
|
| 157 |
+
pass
|
| 158 |
+
try:
|
| 159 |
+
proc.kill()
|
| 160 |
+
except ProcessLookupError:
|
| 161 |
+
pass
|
| 162 |
+
|
| 163 |
+
|
| 164 |
+
_PKILL_PATTERNS = (
|
| 165 |
+
f"{WORKSPACE}/eval/",
|
| 166 |
+
f"{WORKSPACE}/tests/",
|
| 167 |
+
"tail -f",
|
| 168 |
+
"development.log",
|
| 169 |
+
" less ",
|
| 170 |
+
" less$",
|
| 171 |
+
"/less ",
|
| 172 |
+
)
|
| 173 |
+
|
| 174 |
+
|
| 175 |
+
def _pkill_aggressive() -> str:
|
| 176 |
+
"""Best-effort kill of branch pytest/subprocess trees (Modal gVisor fallback)."""
|
| 177 |
+
notes: list[str] = []
|
| 178 |
+
workspace = str(WORKSPACE)
|
| 179 |
+
patterns = list(_PKILL_PATTERNS) + [
|
| 180 |
+
f"pytest.*{workspace}",
|
| 181 |
+
f"xdist.*{workspace}",
|
| 182 |
+
]
|
| 183 |
+
for pattern in patterns:
|
| 184 |
+
result = subprocess.run(
|
| 185 |
+
["pkill", "-9", "-f", pattern],
|
| 186 |
+
capture_output=True,
|
| 187 |
+
text=True,
|
| 188 |
+
)
|
| 189 |
+
notes.append(f"pkill -9 -f {pattern!r}: rc={result.returncode}")
|
| 190 |
+
return "\n".join(notes)
|
| 191 |
+
|
| 192 |
+
|
| 193 |
+
def run_step(
|
| 194 |
+
command: str,
|
| 195 |
+
cwd: Path,
|
| 196 |
+
*,
|
| 197 |
+
timeout: int,
|
| 198 |
+
env: dict[str, str] | None = None,
|
| 199 |
+
step: str,
|
| 200 |
+
accept_failure: bool = False,
|
| 201 |
+
log_output: bool | None = None,
|
| 202 |
+
max_output_bytes: int = 65536,
|
| 203 |
+
) -> dict[str, Any]:
|
| 204 |
+
if log_output is None:
|
| 205 |
+
log_output = step == "run_tests" or timeout >= 60
|
| 206 |
+
|
| 207 |
+
started = time.monotonic()
|
| 208 |
+
stdout_path: Path | None = None
|
| 209 |
+
stderr_path: Path | None = None
|
| 210 |
+
stdout_f = None
|
| 211 |
+
stderr_f = None
|
| 212 |
+
|
| 213 |
+
if log_output:
|
| 214 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 215 |
+
log_id = f"{step}-{int(started * 1000)}"
|
| 216 |
+
stdout_path = LOG_DIR / f"run-step-{log_id}.stdout.log"
|
| 217 |
+
stderr_path = LOG_DIR / f"run-step-{log_id}.stderr.log"
|
| 218 |
+
stdout_f = stdout_path.open("w", encoding="utf-8")
|
| 219 |
+
stderr_f = stderr_path.open("w", encoding="utf-8")
|
| 220 |
+
popen_stdout: Any = stdout_f
|
| 221 |
+
popen_stderr: Any = stderr_f
|
| 222 |
+
else:
|
| 223 |
+
popen_stdout = subprocess.PIPE
|
| 224 |
+
popen_stderr = subprocess.PIPE
|
| 225 |
+
|
| 226 |
+
proc = subprocess.Popen(
|
| 227 |
+
["bash", "-lc", _bash_login_command(command)],
|
| 228 |
+
cwd=cwd,
|
| 229 |
+
env={**os.environ, **(env or {})},
|
| 230 |
+
stdout=popen_stdout,
|
| 231 |
+
stderr=popen_stderr,
|
| 232 |
+
start_new_session=True,
|
| 233 |
+
text=True,
|
| 234 |
+
)
|
| 235 |
+
timed_out = False
|
| 236 |
+
stdout = ""
|
| 237 |
+
stderr = ""
|
| 238 |
+
try:
|
| 239 |
+
if log_output:
|
| 240 |
+
proc.wait(timeout=timeout)
|
| 241 |
+
else:
|
| 242 |
+
stdout, stderr = proc.communicate(timeout=timeout)
|
| 243 |
+
except subprocess.TimeoutExpired:
|
| 244 |
+
timed_out = True
|
| 245 |
+
_terminate_process_tree(proc)
|
| 246 |
+
cleanup_lingering_processes(aggressive=True)
|
| 247 |
+
try:
|
| 248 |
+
proc.wait(timeout=5)
|
| 249 |
+
except subprocess.TimeoutExpired:
|
| 250 |
+
proc.kill()
|
| 251 |
+
if not log_output:
|
| 252 |
+
_close_pipes(proc)
|
| 253 |
+
finally:
|
| 254 |
+
if stdout_f is not None:
|
| 255 |
+
stdout_f.close()
|
| 256 |
+
if stderr_f is not None:
|
| 257 |
+
stderr_f.close()
|
| 258 |
+
|
| 259 |
+
if timed_out:
|
| 260 |
+
if log_output:
|
| 261 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 262 |
+
stderr_path, max_output_bytes
|
| 263 |
+
)
|
| 264 |
+
else:
|
| 265 |
+
output = ""
|
| 266 |
+
entry = {
|
| 267 |
+
"step": step,
|
| 268 |
+
"command": command,
|
| 269 |
+
"wall_time": time.monotonic() - started,
|
| 270 |
+
"output": output,
|
| 271 |
+
"returncode": 124,
|
| 272 |
+
"exception_info": f"timed out after {timeout}s",
|
| 273 |
+
}
|
| 274 |
+
else:
|
| 275 |
+
if log_output:
|
| 276 |
+
output = _read_log_tail(stdout_path, max_output_bytes) + _read_log_tail(
|
| 277 |
+
stderr_path, max_output_bytes
|
| 278 |
+
)
|
| 279 |
+
else:
|
| 280 |
+
output = stdout + stderr
|
| 281 |
+
entry = {
|
| 282 |
+
"step": step,
|
| 283 |
+
"command": command,
|
| 284 |
+
"wall_time": time.monotonic() - started,
|
| 285 |
+
"output": output,
|
| 286 |
+
"returncode": proc.returncode,
|
| 287 |
+
"exception_info": "",
|
| 288 |
+
}
|
| 289 |
+
if entry["returncode"] and not accept_failure:
|
| 290 |
+
raise RuntimeError(
|
| 291 |
+
f"{step} failed: {entry['exception_info'] or entry['output']}"
|
| 292 |
+
)
|
| 293 |
+
return entry
|
| 294 |
+
|
| 295 |
+
|
| 296 |
+
def cleanup_lingering_processes(*, aggressive: bool = False) -> dict[str, Any]:
|
| 297 |
+
started = time.monotonic()
|
| 298 |
+
patterns = [
|
| 299 |
+
str(WORKSPACE / "executable"),
|
| 300 |
+
f"{WORKSPACE}/eval/",
|
| 301 |
+
f"{WORKSPACE}/tests/",
|
| 302 |
+
# lazygit --logs/-l tests spawn `tail -f` outside /workspace/.
|
| 303 |
+
"tail -f",
|
| 304 |
+
"development.log",
|
| 305 |
+
]
|
| 306 |
+
killed: list[int] = []
|
| 307 |
+
proc_root = Path("/proc")
|
| 308 |
+
proc_available = proc_root.exists()
|
| 309 |
+
if proc_available:
|
| 310 |
+
for proc_dir in proc_root.iterdir():
|
| 311 |
+
if not proc_dir.name.isdigit():
|
| 312 |
+
continue
|
| 313 |
+
pid = int(proc_dir.name)
|
| 314 |
+
if pid in {os.getpid(), os.getppid()}:
|
| 315 |
+
continue
|
| 316 |
+
try:
|
| 317 |
+
raw = (proc_dir / "cmdline").read_bytes()
|
| 318 |
+
except (FileNotFoundError, PermissionError, ProcessLookupError):
|
| 319 |
+
continue
|
| 320 |
+
cmdline = raw.replace(b"\0", b" ").decode(errors="replace")
|
| 321 |
+
if not any(pattern in cmdline for pattern in patterns):
|
| 322 |
+
continue
|
| 323 |
+
try:
|
| 324 |
+
os.kill(pid, signal.SIGKILL)
|
| 325 |
+
except (PermissionError, ProcessLookupError):
|
| 326 |
+
continue
|
| 327 |
+
killed.append(pid)
|
| 328 |
+
pkill_output = ""
|
| 329 |
+
if aggressive or not proc_available:
|
| 330 |
+
pkill_output = _pkill_aggressive()
|
| 331 |
+
output_parts = []
|
| 332 |
+
if killed:
|
| 333 |
+
output_parts.append("\n".join(str(pid) for pid in killed))
|
| 334 |
+
if pkill_output:
|
| 335 |
+
output_parts.append(pkill_output)
|
| 336 |
+
return {
|
| 337 |
+
"step": "cleanup_lingering_processes",
|
| 338 |
+
"command": "kill leftover branch processes referencing the workspace",
|
| 339 |
+
"wall_time": time.monotonic() - started,
|
| 340 |
+
"output": "\n".join(output_parts),
|
| 341 |
+
"returncode": 0,
|
| 342 |
+
"exception_info": "",
|
| 343 |
+
}
|
| 344 |
+
|
| 345 |
+
|
| 346 |
+
def extract_trusted_blob(tar_path: Path, dest: Path) -> None:
|
| 347 |
+
import tarfile
|
| 348 |
+
|
| 349 |
+
with tarfile.open(tar_path, "r:gz") as tf:
|
| 350 |
+
try:
|
| 351 |
+
tf.extractall(dest, filter="fully_trusted")
|
| 352 |
+
except TypeError:
|
| 353 |
+
tf.extractall(dest)
|
| 354 |
+
|
| 355 |
+
|
| 356 |
+
def find_results_xml() -> Path | None:
|
| 357 |
+
"""Return the junit xml path if pytest wrote one."""
|
| 358 |
+
for candidate in (WORKSPACE / "eval" / "results.xml", WORKSPACE / "results.xml"):
|
| 359 |
+
if candidate.exists():
|
| 360 |
+
return candidate
|
| 361 |
+
return None
|
| 362 |
+
|
| 363 |
+
|
| 364 |
+
def remove_oracle_handoff_artifacts() -> list[str]:
|
| 365 |
+
"""Drop oracle-agent handoff files from /workspace before snapshot/restore."""
|
| 366 |
+
removed: list[str] = []
|
| 367 |
+
for name in _ORACLE_HANDOFF_NAMES:
|
| 368 |
+
path = WORKSPACE / name
|
| 369 |
+
if path.exists():
|
| 370 |
+
if path.is_dir():
|
| 371 |
+
shutil.rmtree(path)
|
| 372 |
+
else:
|
| 373 |
+
path.unlink()
|
| 374 |
+
removed.append(name)
|
| 375 |
+
return removed
|
| 376 |
+
|
| 377 |
+
|
| 378 |
+
def _remove_tree(path: Path) -> None:
|
| 379 |
+
"""Remove a file or directory tree, with a shell fallback for overlay races."""
|
| 380 |
+
if path.is_symlink() or path.is_file():
|
| 381 |
+
path.unlink(missing_ok=True)
|
| 382 |
+
return
|
| 383 |
+
if not path.is_dir():
|
| 384 |
+
path.unlink(missing_ok=True)
|
| 385 |
+
return
|
| 386 |
+
for attempt in range(3):
|
| 387 |
+
try:
|
| 388 |
+
shutil.rmtree(path)
|
| 389 |
+
if not path.exists():
|
| 390 |
+
return
|
| 391 |
+
except OSError:
|
| 392 |
+
if attempt == 2:
|
| 393 |
+
run_step(
|
| 394 |
+
f"rm -rf {shlex.quote(str(path))}",
|
| 395 |
+
path.parent,
|
| 396 |
+
timeout=120,
|
| 397 |
+
step="clear_workspace_fallback",
|
| 398 |
+
accept_failure=True,
|
| 399 |
+
)
|
| 400 |
+
if not path.exists():
|
| 401 |
+
return
|
| 402 |
+
raise
|
| 403 |
+
|
| 404 |
+
|
| 405 |
+
def ensure_workspace_dir() -> None:
|
| 406 |
+
"""Guarantee WORKSPACE exists as a writable directory (not a symlink/file)."""
|
| 407 |
+
if WORKSPACE.exists() and not WORKSPACE.is_dir():
|
| 408 |
+
if WORKSPACE.is_symlink() or WORKSPACE.is_file():
|
| 409 |
+
WORKSPACE.unlink()
|
| 410 |
+
else:
|
| 411 |
+
shutil.rmtree(WORKSPACE)
|
| 412 |
+
WORKSPACE.mkdir(parents=True, exist_ok=True)
|
| 413 |
+
|
| 414 |
+
|
| 415 |
+
def clear_workspace() -> None:
|
| 416 |
+
ensure_workspace_dir()
|
| 417 |
+
for path in list(WORKSPACE.iterdir()):
|
| 418 |
+
_remove_tree(path)
|
| 419 |
+
|
| 420 |
+
|
| 421 |
+
def restore_reference_executable() -> None:
|
| 422 |
+
"""Write the stashed reference binary into /workspace after a branch overlay.
|
| 423 |
+
|
| 424 |
+
Branch blobs may ship ``executable`` as a dangling symlink into
|
| 425 |
+
``target/release/...``; ``shutil.copy2`` would follow it and raise
|
| 426 |
+
``FileNotFoundError``. Drop whatever the blob left and copy the stashed
|
| 427 |
+
reference as a regular file.
|
| 428 |
+
"""
|
| 429 |
+
ensure_workspace_dir()
|
| 430 |
+
if not STASHED_EXECUTABLE.is_file():
|
| 431 |
+
raise FileNotFoundError(
|
| 432 |
+
f"missing stashed reference executable at {STASHED_EXECUTABLE}"
|
| 433 |
+
)
|
| 434 |
+
dest = WORKSPACE / "executable"
|
| 435 |
+
if dest.exists() or dest.is_symlink():
|
| 436 |
+
if dest.is_dir():
|
| 437 |
+
shutil.rmtree(dest)
|
| 438 |
+
else:
|
| 439 |
+
dest.unlink(missing_ok=True)
|
| 440 |
+
shutil.copy2(STASHED_EXECUTABLE, dest)
|
| 441 |
+
dest.chmod(0o755)
|
| 442 |
+
|
| 443 |
+
|
| 444 |
+
def snapshot_workspace(dest: Path) -> None:
|
| 445 |
+
if dest.exists():
|
| 446 |
+
shutil.rmtree(dest)
|
| 447 |
+
shutil.copytree(WORKSPACE, dest, symlinks=True)
|
| 448 |
+
|
| 449 |
+
|
| 450 |
+
def restore_workspace(source: Path) -> None:
|
| 451 |
+
clear_workspace()
|
| 452 |
+
shutil.copytree(source, WORKSPACE, dirs_exist_ok=True, symlinks=True)
|
| 453 |
+
ensure_workspace_dir()
|
| 454 |
+
|
| 455 |
+
|
| 456 |
+
def remove_hashed_files(root: Path, hashes: set[str]) -> list[str]:
|
| 457 |
+
removed: list[str] = []
|
| 458 |
+
for path in root.rglob("*"):
|
| 459 |
+
if path.is_file() and not path.is_symlink():
|
| 460 |
+
try:
|
| 461 |
+
if sha256(path) in hashes:
|
| 462 |
+
path.unlink()
|
| 463 |
+
removed.append(str(path.relative_to(root)))
|
| 464 |
+
except OSError:
|
| 465 |
+
continue
|
| 466 |
+
return removed
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
def branch_tests(branch_info: dict[str, Any]) -> list[str]:
|
| 470 |
+
ignored = {
|
| 471 |
+
item["name"] for item in branch_info.get("ignored_tests", []) if "name" in item
|
| 472 |
+
}
|
| 473 |
+
return [name for name in branch_info.get("tests", []) if name not in ignored]
|
| 474 |
+
|
| 475 |
+
|
| 476 |
+
def ignored_tests(metadata: dict[str, Any]) -> set[str]:
|
| 477 |
+
result: set[str] = set()
|
| 478 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 479 |
+
result.update(
|
| 480 |
+
f"{branch}/{item['name']}"
|
| 481 |
+
for item in info.get("ignored_tests", [])
|
| 482 |
+
if "name" in item
|
| 483 |
+
)
|
| 484 |
+
return result
|
| 485 |
+
|
| 486 |
+
|
| 487 |
+
def active_tests(metadata: dict[str, Any]) -> set[str]:
|
| 488 |
+
active: set[str] = set()
|
| 489 |
+
for branch, info in metadata.get("branches", {}).items():
|
| 490 |
+
if info.get("ignored"):
|
| 491 |
+
continue
|
| 492 |
+
ignored = {
|
| 493 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 494 |
+
}
|
| 495 |
+
active.update(
|
| 496 |
+
f"{branch}/{name}" for name in info.get("tests", []) if name not in ignored
|
| 497 |
+
)
|
| 498 |
+
return active
|
| 499 |
+
|
| 500 |
+
|
| 501 |
+
def inject_not_run(
|
| 502 |
+
result: dict[str, Any], branch: str, tests: list[str], error_code: str
|
| 503 |
+
) -> None:
|
| 504 |
+
result["test_results"].extend(
|
| 505 |
+
{
|
| 506 |
+
"name": name,
|
| 507 |
+
"branch": branch,
|
| 508 |
+
"status": "not_run",
|
| 509 |
+
"extra": {"error_code": error_code},
|
| 510 |
+
}
|
| 511 |
+
for name in tests
|
| 512 |
+
)
|
| 513 |
+
|
| 514 |
+
|
| 515 |
+
def testcase_name(case: ET.Element) -> str:
|
| 516 |
+
classname = case.attrib.get("classname", "")
|
| 517 |
+
name = case.attrib.get("name", "")
|
| 518 |
+
return f"{classname}.{name}" if classname else name
|
| 519 |
+
|
| 520 |
+
|
| 521 |
+
# Only these tags under <testcase> represent a result. <system-out> /
|
| 522 |
+
# <system-err> are stdout/stderr captures and must not be treated as results
|
| 523 |
+
# (a leading <system-out> followed by <failure> would otherwise be classified
|
| 524 |
+
# as a stdout-only "passed").
|
| 525 |
+
JUNIT_RESULT_TAGS = {"skipped", "failure", "error"}
|
| 526 |
+
|
| 527 |
+
|
| 528 |
+
def parse_junit(
|
| 529 |
+
raw_xml: str, branch: str, expected: list[str], ignored: set[str]
|
| 530 |
+
) -> tuple[list[dict[str, Any]], list[str]]:
|
| 531 |
+
root = ET.fromstring(raw_xml)
|
| 532 |
+
got: set[str] = set()
|
| 533 |
+
results: list[dict[str, Any]] = []
|
| 534 |
+
for case in root.iter("testcase"):
|
| 535 |
+
name = testcase_name(case)
|
| 536 |
+
got.add(name)
|
| 537 |
+
extra: dict[str, Any] = {}
|
| 538 |
+
if "time" in case.attrib:
|
| 539 |
+
try:
|
| 540 |
+
extra["time"] = float(case.attrib["time"])
|
| 541 |
+
except ValueError:
|
| 542 |
+
extra["time"] = case.attrib["time"]
|
| 543 |
+
result_children = [c for c in case if c.tag in JUNIT_RESULT_TAGS]
|
| 544 |
+
# Collapse duplicate same-tag result children. Pytest's
|
| 545 |
+
# "pytest.internal" pseudo-test sometimes emits two identical <error>
|
| 546 |
+
# entries; treating that as a system_error would over-flag a real
|
| 547 |
+
# single failure. Mirrors upstream eval.py:816-820.
|
| 548 |
+
if len(result_children) > 1 and len({c.tag for c in result_children}) == 1:
|
| 549 |
+
result_children = [result_children[0]]
|
| 550 |
+
if not result_children:
|
| 551 |
+
status = "passed"
|
| 552 |
+
elif len(result_children) != 1:
|
| 553 |
+
status = "system_error"
|
| 554 |
+
extra["error_details"] = (
|
| 555 |
+
f"Expected 1 result for {name}, got {len(result_children)}: "
|
| 556 |
+
f"{[c.tag for c in result_children]}"
|
| 557 |
+
)
|
| 558 |
+
else:
|
| 559 |
+
first = result_children[0]
|
| 560 |
+
status = first.tag # "skipped" | "failure" | "error"
|
| 561 |
+
extra["message"] = first.attrib.get("message") or ""
|
| 562 |
+
if first.text:
|
| 563 |
+
extra["text"] = first.text
|
| 564 |
+
results.append(
|
| 565 |
+
{"name": name, "branch": branch, "status": status, "extra": extra}
|
| 566 |
+
)
|
| 567 |
+
|
| 568 |
+
active_expected = [name for name in expected if name not in ignored]
|
| 569 |
+
missing = [name for name in active_expected if name not in got]
|
| 570 |
+
results.extend(
|
| 571 |
+
{
|
| 572 |
+
"name": name,
|
| 573 |
+
"branch": branch,
|
| 574 |
+
"status": "not_run",
|
| 575 |
+
"extra": {"error_code": "missing_from_junit_xml"},
|
| 576 |
+
}
|
| 577 |
+
for name in missing
|
| 578 |
+
)
|
| 579 |
+
unexpected = got - set(expected) - ignored
|
| 580 |
+
warnings = (
|
| 581 |
+
[f"Branch {branch}: {len(unexpected)} test(s) in JUnit XML not in tests.json"]
|
| 582 |
+
if unexpected
|
| 583 |
+
else []
|
| 584 |
+
)
|
| 585 |
+
return results, warnings
|
| 586 |
+
|
| 587 |
+
|
| 588 |
+
def count_worker_crashes(raw_xml: str) -> int:
|
| 589 |
+
if WORKER_CRASH_PHRASE not in raw_xml:
|
| 590 |
+
return 0
|
| 591 |
+
try:
|
| 592 |
+
root = ET.fromstring(raw_xml)
|
| 593 |
+
except ET.ParseError:
|
| 594 |
+
return 0
|
| 595 |
+
crashes = 0
|
| 596 |
+
for case in root.iter("testcase"):
|
| 597 |
+
for child in case:
|
| 598 |
+
text = (child.get("message") or "") + " " + (child.text or "")
|
| 599 |
+
if (
|
| 600 |
+
child.tag in {"error", "failure"}
|
| 601 |
+
and WORKER_CRASH_PHRASE in text
|
| 602 |
+
and "crashed" in text
|
| 603 |
+
):
|
| 604 |
+
crashes += 1
|
| 605 |
+
break
|
| 606 |
+
return crashes
|
| 607 |
+
|
| 608 |
+
|
| 609 |
+
def run_output_indicates_xdist_collapse(output: str) -> bool:
|
| 610 |
+
lower = output.lower()
|
| 611 |
+
return any(marker in lower for marker in XDIST_COLLAPSE_MARKERS)
|
| 612 |
+
|
| 613 |
+
|
| 614 |
+
def count_junit_failures(raw_xml: str) -> int:
|
| 615 |
+
try:
|
| 616 |
+
root = ET.fromstring(raw_xml)
|
| 617 |
+
except ET.ParseError:
|
| 618 |
+
return 0
|
| 619 |
+
failures = 0
|
| 620 |
+
for case in root.iter("testcase"):
|
| 621 |
+
for child in case:
|
| 622 |
+
if child.tag in {"failure", "error"}:
|
| 623 |
+
failures += 1
|
| 624 |
+
break
|
| 625 |
+
return failures
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def count_junit_passed(raw_xml: str) -> int:
|
| 629 |
+
try:
|
| 630 |
+
root = ET.fromstring(raw_xml)
|
| 631 |
+
except ET.ParseError:
|
| 632 |
+
return 0
|
| 633 |
+
passed = 0
|
| 634 |
+
for case in root.iter("testcase"):
|
| 635 |
+
if not any(child.tag in JUNIT_RESULT_TAGS for child in case):
|
| 636 |
+
passed += 1
|
| 637 |
+
return passed
|
| 638 |
+
|
| 639 |
+
|
| 640 |
+
def branch_attempt_metrics(
|
| 641 |
+
raw_xml: str, *, run_output: str, expected_tests: int
|
| 642 |
+
) -> tuple[int, int, int, int]:
|
| 643 |
+
"""Return (crashes, n_testcases, failures, missing_from_xml)."""
|
| 644 |
+
crashes = count_worker_crashes(raw_xml)
|
| 645 |
+
if run_output_indicates_xdist_collapse(run_output):
|
| 646 |
+
crashes = max(crashes, 1)
|
| 647 |
+
n_tests = count_testcases(raw_xml)
|
| 648 |
+
failures = count_junit_failures(raw_xml)
|
| 649 |
+
missing = max(0, expected_tests - n_tests)
|
| 650 |
+
return crashes, n_tests, failures, missing
|
| 651 |
+
|
| 652 |
+
|
| 653 |
+
def needs_serial_retry(
|
| 654 |
+
*,
|
| 655 |
+
serial: bool,
|
| 656 |
+
crashes: int,
|
| 657 |
+
missing: int,
|
| 658 |
+
failures: int,
|
| 659 |
+
n_tests: int,
|
| 660 |
+
expected_tests: int,
|
| 661 |
+
run_output: str,
|
| 662 |
+
) -> bool:
|
| 663 |
+
if serial:
|
| 664 |
+
return False
|
| 665 |
+
high_failure_rate = (
|
| 666 |
+
expected_tests > 0 and n_tests >= expected_tests and failures / n_tests >= 0.8
|
| 667 |
+
)
|
| 668 |
+
return (
|
| 669 |
+
crashes > 0
|
| 670 |
+
or missing > 0
|
| 671 |
+
or high_failure_rate
|
| 672 |
+
or run_output_indicates_xdist_collapse(run_output)
|
| 673 |
+
)
|
| 674 |
+
|
| 675 |
+
|
| 676 |
+
def count_testcases(raw_xml: str) -> int:
|
| 677 |
+
try:
|
| 678 |
+
return sum(1 for _ in ET.fromstring(raw_xml).iter("testcase"))
|
| 679 |
+
except ET.ParseError:
|
| 680 |
+
return 0
|
| 681 |
+
|
| 682 |
+
|
| 683 |
+
def scored_results(
|
| 684 |
+
result: dict[str, Any], metadata: dict[str, Any]
|
| 685 |
+
) -> list[dict[str, Any]]:
|
| 686 |
+
active = active_tests(metadata)
|
| 687 |
+
by_key = {
|
| 688 |
+
f"{test['branch']}/{test['name']}": test
|
| 689 |
+
for test in result["test_results"]
|
| 690 |
+
if f"{test['branch']}/{test['name']}" in active
|
| 691 |
+
}
|
| 692 |
+
return [
|
| 693 |
+
by_key.get(
|
| 694 |
+
key,
|
| 695 |
+
{
|
| 696 |
+
"branch": key.split("/", 1)[0],
|
| 697 |
+
"name": key.split("/", 1)[1],
|
| 698 |
+
"status": "not_run",
|
| 699 |
+
"extra": {"error_code": "missing_from_results"},
|
| 700 |
+
},
|
| 701 |
+
)
|
| 702 |
+
for key in sorted(active)
|
| 703 |
+
]
|
| 704 |
+
|
| 705 |
+
|
| 706 |
+
def summarize(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 707 |
+
scored = scored_results(result, metadata)
|
| 708 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 709 |
+
n_tests = len(scored)
|
| 710 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 711 |
+
# Multi-key reward: Harbor's default Mean aggregates each key independently
|
| 712 |
+
# (see harbor.metrics.base.aggregate_reward_dicts), so mean("resolved") is
|
| 713 |
+
# the proportion of tasks scoring a perfect pass-rate and mean of
|
| 714 |
+
# "almost_resolved" is the proportion scoring >= 0.95. "reward" stays the
|
| 715 |
+
# per-task pass-rate whose mean is the overall mean reward.
|
| 716 |
+
return {
|
| 717 |
+
"reward": pass_rate,
|
| 718 |
+
"resolved": 1.0 if pass_rate >= 1.0 else 0.0,
|
| 719 |
+
"almost_resolved": 1.0 if pass_rate >= 0.95 else 0.0,
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
|
| 723 |
+
def diagnostics(result: dict[str, Any], metadata: dict[str, Any]) -> dict[str, Any]:
|
| 724 |
+
scored = scored_results(result, metadata)
|
| 725 |
+
n_passed = sum(t["status"] == "passed" for t in scored)
|
| 726 |
+
n_tests = len(scored)
|
| 727 |
+
pass_rate = n_passed / n_tests if n_tests else 0.0
|
| 728 |
+
return {
|
| 729 |
+
"pass_rate": pass_rate,
|
| 730 |
+
"resolved": int(
|
| 731 |
+
bool(
|
| 732 |
+
n_tests
|
| 733 |
+
and n_passed == n_tests
|
| 734 |
+
and not result["test_branch_errors"]
|
| 735 |
+
and not result["error_code"]
|
| 736 |
+
)
|
| 737 |
+
),
|
| 738 |
+
"n_passed": n_passed,
|
| 739 |
+
"n_tests": n_tests,
|
| 740 |
+
"n_branch_errors": len(result["test_branch_errors"]),
|
| 741 |
+
"infra_error": int(bool(result["error_code"] or result["test_branch_errors"])),
|
| 742 |
+
"executable_hash_present": int(bool(result.get("executable_hash"))),
|
| 743 |
+
}
|
| 744 |
+
|
| 745 |
+
|
| 746 |
+
def use_script_pty() -> bool:
|
| 747 |
+
return os.environ.get("PROGRAMGYM_SCRIPT_PTY", "").strip() == "1"
|
| 748 |
+
|
| 749 |
+
|
| 750 |
+
def script_pty_available() -> bool:
|
| 751 |
+
return shutil.which("script") is not None
|
| 752 |
+
|
| 753 |
+
|
| 754 |
+
def branch_env(
|
| 755 |
+
*,
|
| 756 |
+
serial: bool,
|
| 757 |
+
has_rerunfailures: bool,
|
| 758 |
+
extras: dict[str, str] | None = None,
|
| 759 |
+
) -> dict[str, str]:
|
| 760 |
+
addopts = ["--max-worker-restart=4"]
|
| 761 |
+
# A serial fallback is already a complete second execution. Re-running each
|
| 762 |
+
# failing test two more times makes large, failure-heavy suites prohibitively
|
| 763 |
+
# slow and adds little signal.
|
| 764 |
+
if has_rerunfailures and not serial:
|
| 765 |
+
addopts.extend(["--reruns=2", "--reruns-delay=1"])
|
| 766 |
+
env = {
|
| 767 |
+
"PYTEST_ADDOPTS": " ".join(addopts),
|
| 768 |
+
# Match upstream non-TTY regression environments (dirble log format, etc.).
|
| 769 |
+
"NO_COLOR": "1",
|
| 770 |
+
"TERM": "dumb",
|
| 771 |
+
"CLICOLOR": "0",
|
| 772 |
+
"CLICOLOR_FORCE": "0",
|
| 773 |
+
"COLORTERM": "",
|
| 774 |
+
}
|
| 775 |
+
if extras:
|
| 776 |
+
env.update(extras)
|
| 777 |
+
xdist_workers = os.environ.get("PROGRAMGYM_XDIST_WORKERS")
|
| 778 |
+
if serial:
|
| 779 |
+
xdist_workers = "1"
|
| 780 |
+
if xdist_workers:
|
| 781 |
+
env["PYTEST_XDIST_AUTO_NUM_WORKERS"] = xdist_workers
|
| 782 |
+
return env
|
| 783 |
+
|
| 784 |
+
|
| 785 |
+
_SERIAL_RUN_SH = ".programgym_run_serial.sh"
|
| 786 |
+
# ``eval/run.sh`` usually passes ``-n auto`` on the command line, which overrides
|
| 787 |
+
# ``PYTEST_ADDOPTS``. Rewrite to ``-n 0`` in a verifier-local copy for retries.
|
| 788 |
+
_RUN_SH_XDIST_RE = re.compile(r"-n\s*(?:auto|\d+)")
|
| 789 |
+
|
| 790 |
+
|
| 791 |
+
def prepare_serial_run_sh(run_sh: Path) -> Path:
|
| 792 |
+
"""Write a serial-only copy of ``eval/run.sh`` with xdist disabled."""
|
| 793 |
+
serial_sh = run_sh.with_name(_SERIAL_RUN_SH)
|
| 794 |
+
patched = _RUN_SH_XDIST_RE.sub("-n 0", run_sh.read_text())
|
| 795 |
+
serial_sh.write_text(patched)
|
| 796 |
+
serial_sh.chmod(0o755)
|
| 797 |
+
return serial_sh
|
| 798 |
+
|
| 799 |
+
|
| 800 |
+
def run_tests_command(*, serial: bool) -> str:
|
| 801 |
+
if serial:
|
| 802 |
+
inner = f"chmod +x ./eval/{_SERIAL_RUN_SH} && ./eval/{_SERIAL_RUN_SH}"
|
| 803 |
+
else:
|
| 804 |
+
inner = "chmod +x ./eval/run.sh && ./eval/run.sh"
|
| 805 |
+
if use_script_pty() and script_pty_available():
|
| 806 |
+
return f"script -q -c {shlex.quote(inner)} /dev/null"
|
| 807 |
+
return inner
|
| 808 |
+
|
| 809 |
+
|
| 810 |
+
BAKED_BLOB_DIR = Path(os.environ.get("PROGRAMGYM_BAKED_BLOB_DIR", "/tests/blobs"))
|
| 811 |
+
|
| 812 |
+
|
| 813 |
+
def resolve_blob_dir(instance_id: str, metadata: dict[str, Any]) -> Path:
|
| 814 |
+
"""Locate the per-instance blob directory.
|
| 815 |
+
|
| 816 |
+
Resolution order:
|
| 817 |
+
|
| 818 |
+
1. ``/tests/blobs/`` if pre-fetched into the task at generation time
|
| 819 |
+
(``programgym-adapter --download-blobs``). Verifier-only mount, so
|
| 820 |
+
agent never sees these.
|
| 821 |
+
2. ``PROGRAMGYM_BLOB_DIR`` env override pointing at an HF-cache-shaped
|
| 822 |
+
tree on disk (``<dir>/<instance_id>/tests/<branch>.tar.gz``). Useful
|
| 823 |
+
for offline reruns sharing a cache across many tasks.
|
| 824 |
+
3. ``huggingface_hub.snapshot_download`` from
|
| 825 |
+
``programgym/ProgramGym-Tests`` (default repo, ``main`` revision).
|
| 826 |
+
|
| 827 |
+
The returned directory contains ``tests/<branch>.tar.gz`` per active
|
| 828 |
+
branch — same shape as ``programgym/ProgramGym-Tests/<instance_id>/``
|
| 829 |
+
on HF.
|
| 830 |
+
"""
|
| 831 |
+
if BAKED_BLOB_DIR.exists() and (BAKED_BLOB_DIR / "tests").exists():
|
| 832 |
+
return BAKED_BLOB_DIR
|
| 833 |
+
|
| 834 |
+
local = os.environ.get("PROGRAMGYM_BLOB_DIR", "").strip()
|
| 835 |
+
if local:
|
| 836 |
+
candidate = Path(local) / instance_id
|
| 837 |
+
if candidate.exists():
|
| 838 |
+
return candidate
|
| 839 |
+
raise FileNotFoundError(
|
| 840 |
+
f"PROGRAMGYM_BLOB_DIR set but {candidate} does not exist"
|
| 841 |
+
)
|
| 842 |
+
|
| 843 |
+
repo_id = os.environ.get("PROGRAMGYM_HF_REPO") or metadata.get(
|
| 844 |
+
"hf_repo_id", DEFAULT_HF_REPO_ID
|
| 845 |
+
)
|
| 846 |
+
revision = os.environ.get("PROGRAMGYM_HF_REVISION") or metadata.get(
|
| 847 |
+
"hf_revision", DEFAULT_HF_REVISION
|
| 848 |
+
)
|
| 849 |
+
|
| 850 |
+
from huggingface_hub import snapshot_download
|
| 851 |
+
|
| 852 |
+
cache_root = Path(
|
| 853 |
+
snapshot_download(
|
| 854 |
+
repo_id,
|
| 855 |
+
repo_type="dataset",
|
| 856 |
+
revision=revision,
|
| 857 |
+
allow_patterns=f"{instance_id}/**",
|
| 858 |
+
)
|
| 859 |
+
)
|
| 860 |
+
blob_dir = cache_root / instance_id
|
| 861 |
+
if not blob_dir.exists():
|
| 862 |
+
raise FileNotFoundError(
|
| 863 |
+
f"HF blob directory missing for {instance_id} at {blob_dir}"
|
| 864 |
+
)
|
| 865 |
+
return blob_dir
|
| 866 |
+
|
| 867 |
+
|
| 868 |
+
def evaluate(metadata: dict[str, Any]) -> dict[str, Any]:
|
| 869 |
+
bootstrap_toolchain_path()
|
| 870 |
+
branches = metadata.get("branches", {})
|
| 871 |
+
active_branch_items = [
|
| 872 |
+
(name, info) for name, info in branches.items() if not info.get("ignored")
|
| 873 |
+
]
|
| 874 |
+
result: dict[str, Any] = {
|
| 875 |
+
"test_results": [],
|
| 876 |
+
"error_code": None,
|
| 877 |
+
"error_details": None,
|
| 878 |
+
"log": [],
|
| 879 |
+
"solution_branch": "submission",
|
| 880 |
+
"test_branches": [name for name, _ in active_branch_items],
|
| 881 |
+
"test_branch_errors": {},
|
| 882 |
+
"executable_hash": None,
|
| 883 |
+
"warnings": [],
|
| 884 |
+
}
|
| 885 |
+
|
| 886 |
+
instance_id = metadata["instance_id"]
|
| 887 |
+
|
| 888 |
+
compile_timeout = int(os.environ.get("PROGRAMGYM_COMPILE_TIMEOUT", "900"))
|
| 889 |
+
branch_timeout = int(os.environ.get("PROGRAMGYM_BRANCH_TIMEOUT", "3600"))
|
| 890 |
+
|
| 891 |
+
def fail_all(error_code: str, details: str) -> dict[str, Any]:
|
| 892 |
+
result["error_code"] = error_code
|
| 893 |
+
result["error_details"] = details
|
| 894 |
+
for branch, info in active_branch_items:
|
| 895 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 896 |
+
return result
|
| 897 |
+
|
| 898 |
+
with tempfile.TemporaryDirectory(prefix="programgym-eval-") as tmp:
|
| 899 |
+
compiled_snapshot = Path(tmp) / "compiled"
|
| 900 |
+
|
| 901 |
+
started = time.monotonic()
|
| 902 |
+
removed = remove_hashed_files(
|
| 903 |
+
WORKSPACE, set(metadata.get("eval_clean_hashes", []))
|
| 904 |
+
)
|
| 905 |
+
result["log"].append(
|
| 906 |
+
{
|
| 907 |
+
"step": "remove_hashed_files",
|
| 908 |
+
"command": "remove files matching eval_clean_hashes",
|
| 909 |
+
"wall_time": time.monotonic() - started,
|
| 910 |
+
"output": "".join(f"removed '{path}'\n" for path in removed),
|
| 911 |
+
"returncode": 0,
|
| 912 |
+
"exception_info": "",
|
| 913 |
+
}
|
| 914 |
+
)
|
| 915 |
+
|
| 916 |
+
compile_sh = WORKSPACE / "compile.sh"
|
| 917 |
+
if not compile_sh.exists():
|
| 918 |
+
return fail_all(
|
| 919 |
+
"missing_compile_sh", "submission did not contain compile.sh"
|
| 920 |
+
)
|
| 921 |
+
|
| 922 |
+
seed = (
|
| 923 |
+
"if [ ! -d .git ]; then "
|
| 924 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 925 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 926 |
+
"git -c init.defaultBranch=gold init -q && "
|
| 927 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false add -A && "
|
| 928 |
+
"GIT_AUTHOR_DATE='2000-01-01T00:00:00Z' "
|
| 929 |
+
"GIT_COMMITTER_DATE='2000-01-01T00:00:00Z' "
|
| 930 |
+
"git -c user.email=gold@local -c user.name=gold -c commit.gpgsign=false commit -q --allow-empty -m gold; "
|
| 931 |
+
"fi"
|
| 932 |
+
)
|
| 933 |
+
try:
|
| 934 |
+
result["log"].append(
|
| 935 |
+
run_step(seed, WORKSPACE, timeout=300, step="seed_git")
|
| 936 |
+
)
|
| 937 |
+
compile_log = run_step(
|
| 938 |
+
"chmod +x ./compile.sh && ./compile.sh",
|
| 939 |
+
WORKSPACE,
|
| 940 |
+
timeout=compile_timeout,
|
| 941 |
+
step="compile",
|
| 942 |
+
accept_failure=True,
|
| 943 |
+
)
|
| 944 |
+
result["log"].append(compile_log)
|
| 945 |
+
if compile_log["returncode"]:
|
| 946 |
+
return fail_all("compile_failed", compile_log["output"])
|
| 947 |
+
executable = WORKSPACE / "executable"
|
| 948 |
+
if not executable.exists():
|
| 949 |
+
return fail_all(
|
| 950 |
+
"missing_executable",
|
| 951 |
+
"compile.sh completed but did not create ./executable",
|
| 952 |
+
)
|
| 953 |
+
STASHED_EXECUTABLE.parent.mkdir(parents=True, exist_ok=True)
|
| 954 |
+
# `move` (not copy) so /workspace doesn't keep a parallel copy of
|
| 955 |
+
# the agent's executable during the stash→restore window. Mirrors
|
| 956 |
+
# upstream `mv ./executable {STASHED}` (eval.py:472).
|
| 957 |
+
shutil.move(str(executable), STASHED_EXECUTABLE)
|
| 958 |
+
result["executable_hash"] = sha256(STASHED_EXECUTABLE)
|
| 959 |
+
result["log"].append(
|
| 960 |
+
run_step(
|
| 961 |
+
"pip3 install -q --disable-pip-version-check pytest-rerunfailures",
|
| 962 |
+
WORKSPACE,
|
| 963 |
+
timeout=120,
|
| 964 |
+
step="install_rerunfailures",
|
| 965 |
+
accept_failure=True,
|
| 966 |
+
)
|
| 967 |
+
)
|
| 968 |
+
has_rerunfailures = result["log"][-1]["returncode"] == 0
|
| 969 |
+
handoff_removed = remove_oracle_handoff_artifacts()
|
| 970 |
+
if handoff_removed:
|
| 971 |
+
result["log"].append(
|
| 972 |
+
{
|
| 973 |
+
"step": "remove_oracle_handoff",
|
| 974 |
+
"command": "remove oracle handoff artifacts from workspace",
|
| 975 |
+
"wall_time": 0.0,
|
| 976 |
+
"output": "".join(
|
| 977 |
+
f"removed '{name}'\n" for name in handoff_removed
|
| 978 |
+
),
|
| 979 |
+
"returncode": 0,
|
| 980 |
+
"exception_info": "",
|
| 981 |
+
}
|
| 982 |
+
)
|
| 983 |
+
snapshot_workspace(compiled_snapshot)
|
| 984 |
+
except Exception as exc:
|
| 985 |
+
return fail_all(type(exc).__name__, str(exc))
|
| 986 |
+
|
| 987 |
+
try:
|
| 988 |
+
blob_dir = resolve_blob_dir(instance_id, metadata)
|
| 989 |
+
except Exception as exc:
|
| 990 |
+
details = f"{type(exc).__name__}: {exc}"
|
| 991 |
+
for branch, info in active_branch_items:
|
| 992 |
+
result["test_branch_errors"][branch] = [
|
| 993 |
+
{
|
| 994 |
+
"error_code": "blob_resolution_failed",
|
| 995 |
+
"error_details": details,
|
| 996 |
+
}
|
| 997 |
+
]
|
| 998 |
+
inject_not_run(
|
| 999 |
+
result, branch, branch_tests(info), "blob_resolution_failed"
|
| 1000 |
+
)
|
| 1001 |
+
return result
|
| 1002 |
+
|
| 1003 |
+
for branch, info in active_branch_items:
|
| 1004 |
+
tests = branch_tests(info)
|
| 1005 |
+
blob = blob_dir / "tests" / f"{branch}.tar.gz"
|
| 1006 |
+
if not blob.exists():
|
| 1007 |
+
result["test_branch_errors"][branch] = [
|
| 1008 |
+
{"error_code": "missing_test_blob", "error_details": blob.name}
|
| 1009 |
+
]
|
| 1010 |
+
inject_not_run(result, branch, tests, "missing_test_blob")
|
| 1011 |
+
continue
|
| 1012 |
+
|
| 1013 |
+
best_xml = ""
|
| 1014 |
+
# Prefer a complete, clean XML result, then the result covering the
|
| 1015 |
+
# most expected tests, and only then the one with the most passes.
|
| 1016 |
+
# Pass-count-only ranking can retain a partial xdist result over a
|
| 1017 |
+
# complete serial result.
|
| 1018 |
+
best_quality = (-1, -1, -1)
|
| 1019 |
+
serial = bool(metadata.get("force_serial_branches"))
|
| 1020 |
+
branch_log: list[dict[str, Any]] = []
|
| 1021 |
+
branch_ignored = {
|
| 1022 |
+
item["name"] for item in info.get("ignored_tests", []) if "name" in item
|
| 1023 |
+
}
|
| 1024 |
+
n_expected = len([name for name in tests if name not in branch_ignored])
|
| 1025 |
+
|
| 1026 |
+
def merge_best_xml(raw_xml: str) -> None:
|
| 1027 |
+
try:
|
| 1028 |
+
parsed, warnings = parse_junit(
|
| 1029 |
+
raw_xml, branch, list(info.get("tests", [])), branch_ignored
|
| 1030 |
+
)
|
| 1031 |
+
except Exception as exc:
|
| 1032 |
+
result["test_branch_errors"][branch] = [
|
| 1033 |
+
{"error_code": "xml_parse_error", "error_details": str(exc)}
|
| 1034 |
+
]
|
| 1035 |
+
inject_not_run(result, branch, tests, "xml_parse_error")
|
| 1036 |
+
else:
|
| 1037 |
+
result["test_results"].extend(parsed)
|
| 1038 |
+
result["warnings"].extend(warnings)
|
| 1039 |
+
|
| 1040 |
+
while True:
|
| 1041 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1042 |
+
restore_workspace(compiled_snapshot)
|
| 1043 |
+
extract_trusted_blob(blob, WORKSPACE)
|
| 1044 |
+
restore_reference_executable()
|
| 1045 |
+
actual_hash = sha256(WORKSPACE / "executable")
|
| 1046 |
+
if actual_hash != result["executable_hash"]:
|
| 1047 |
+
result["test_branch_errors"][branch] = [
|
| 1048 |
+
{
|
| 1049 |
+
"error_code": "executable_hash_mismatch",
|
| 1050 |
+
"error_details": (
|
| 1051 |
+
f"expected {result['executable_hash']}, got {actual_hash}"
|
| 1052 |
+
),
|
| 1053 |
+
}
|
| 1054 |
+
]
|
| 1055 |
+
inject_not_run(result, branch, tests, "executable_hash_mismatch")
|
| 1056 |
+
break
|
| 1057 |
+
run_sh = WORKSPACE / "eval" / "run.sh"
|
| 1058 |
+
if not run_sh.exists():
|
| 1059 |
+
result["test_branch_errors"][branch] = [
|
| 1060 |
+
{
|
| 1061 |
+
"error_code": "missing_run_sh",
|
| 1062 |
+
"error_details": "eval/run.sh missing",
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
inject_not_run(result, branch, tests, "missing_run_sh")
|
| 1066 |
+
break
|
| 1067 |
+
# Upstream rewrites thread→signal so xdist workers fail cleanly
|
| 1068 |
+
# instead of os._exit(1) on timeout. That works in fresh
|
| 1069 |
+
# containers per branch; here we reuse one container and
|
| 1070 |
+
# signal timeouts leave TUI/log-watcher subprocesses alive
|
| 1071 |
+
# (e.g. lazygit --logs + tail -f), wedging pytest for up to
|
| 1072 |
+
# branch_timeout. Keep the blob's thread method and rely on
|
| 1073 |
+
# cleanup_lingering_processes + serial fallback after crashes.
|
| 1074 |
+
env = branch_env(
|
| 1075 |
+
serial=serial,
|
| 1076 |
+
has_rerunfailures=has_rerunfailures,
|
| 1077 |
+
extras=metadata.get("branch_env"),
|
| 1078 |
+
)
|
| 1079 |
+
branch_log.append(
|
| 1080 |
+
run_step(
|
| 1081 |
+
"rm -f eval/results.xml results.xml",
|
| 1082 |
+
WORKSPACE,
|
| 1083 |
+
timeout=120,
|
| 1084 |
+
step="clean_stale_results",
|
| 1085 |
+
accept_failure=True,
|
| 1086 |
+
)
|
| 1087 |
+
)
|
| 1088 |
+
if serial:
|
| 1089 |
+
prepare_serial_run_sh(run_sh)
|
| 1090 |
+
run_entry = run_step(
|
| 1091 |
+
run_tests_command(serial=serial),
|
| 1092 |
+
WORKSPACE,
|
| 1093 |
+
timeout=branch_timeout,
|
| 1094 |
+
env=env,
|
| 1095 |
+
step="run_tests",
|
| 1096 |
+
accept_failure=True,
|
| 1097 |
+
)
|
| 1098 |
+
branch_log.append(run_entry)
|
| 1099 |
+
branch_log.append(cleanup_lingering_processes())
|
| 1100 |
+
xml_path = find_results_xml()
|
| 1101 |
+
if xml_path is None:
|
| 1102 |
+
if best_xml:
|
| 1103 |
+
merge_best_xml(best_xml)
|
| 1104 |
+
break
|
| 1105 |
+
if serial:
|
| 1106 |
+
result["test_branch_errors"][branch] = [
|
| 1107 |
+
{
|
| 1108 |
+
"error_code": "missing_results_xml",
|
| 1109 |
+
"error_details": "eval/results.xml was not produced",
|
| 1110 |
+
}
|
| 1111 |
+
]
|
| 1112 |
+
inject_not_run(result, branch, tests, "missing_results_xml")
|
| 1113 |
+
break
|
| 1114 |
+
serial = True
|
| 1115 |
+
continue
|
| 1116 |
+
raw_xml = xml_path.read_text(errors="replace")
|
| 1117 |
+
crashes, n_tests, failures, missing = branch_attempt_metrics(
|
| 1118 |
+
raw_xml,
|
| 1119 |
+
run_output=run_entry.get("output", ""),
|
| 1120 |
+
expected_tests=n_expected,
|
| 1121 |
+
)
|
| 1122 |
+
useful = count_junit_passed(raw_xml)
|
| 1123 |
+
quality = (
|
| 1124 |
+
int(crashes == 0 and missing == 0),
|
| 1125 |
+
n_tests,
|
| 1126 |
+
useful,
|
| 1127 |
+
)
|
| 1128 |
+
if quality > best_quality:
|
| 1129 |
+
best_xml = raw_xml
|
| 1130 |
+
best_quality = quality
|
| 1131 |
+
retry = needs_serial_retry(
|
| 1132 |
+
serial=serial,
|
| 1133 |
+
crashes=crashes,
|
| 1134 |
+
missing=missing,
|
| 1135 |
+
failures=failures,
|
| 1136 |
+
n_tests=n_tests,
|
| 1137 |
+
expected_tests=n_expected,
|
| 1138 |
+
run_output=run_entry.get("output", ""),
|
| 1139 |
+
)
|
| 1140 |
+
if not retry:
|
| 1141 |
+
merge_best_xml(best_xml)
|
| 1142 |
+
break
|
| 1143 |
+
serial = True
|
| 1144 |
+
for entry in branch_log:
|
| 1145 |
+
entry["branch"] = branch
|
| 1146 |
+
result["log"].extend(branch_log)
|
| 1147 |
+
|
| 1148 |
+
return result
|
| 1149 |
+
|
| 1150 |
+
|
| 1151 |
+
def write_outputs(result: dict[str, Any], metadata: dict[str, Any]) -> None:
|
| 1152 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1153 |
+
write_json(LOG_DIR / "programgym_eval.json", result)
|
| 1154 |
+
write_json(LOG_DIR / "harbor_diagnostics.json", diagnostics(result, metadata))
|
| 1155 |
+
rewards = summarize(result, metadata)
|
| 1156 |
+
write_json(LOG_DIR / "reward.json", rewards)
|
| 1157 |
+
(LOG_DIR / "reward.txt").write_text(str(rewards["reward"]))
|
| 1158 |
+
|
| 1159 |
+
|
| 1160 |
+
def main() -> None:
|
| 1161 |
+
LOG_DIR.mkdir(parents=True, exist_ok=True)
|
| 1162 |
+
log_path = LOG_DIR / "programgym_eval.log"
|
| 1163 |
+
metadata = json.loads(METADATA_PATH.read_text())
|
| 1164 |
+
branches = metadata.get("branches", {})
|
| 1165 |
+
try:
|
| 1166 |
+
result = evaluate(metadata)
|
| 1167 |
+
except Exception as exc:
|
| 1168 |
+
error_code = type(exc).__name__
|
| 1169 |
+
result = {
|
| 1170 |
+
"test_results": [],
|
| 1171 |
+
"error_code": error_code,
|
| 1172 |
+
"error_details": str(exc),
|
| 1173 |
+
"log": [
|
| 1174 |
+
{
|
| 1175 |
+
"step": "evaluator_exception",
|
| 1176 |
+
"exception_info": traceback.format_exc(),
|
| 1177 |
+
"returncode": 1,
|
| 1178 |
+
}
|
| 1179 |
+
],
|
| 1180 |
+
"solution_branch": "submission",
|
| 1181 |
+
"test_branches": [
|
| 1182 |
+
name for name, info in branches.items() if not info.get("ignored")
|
| 1183 |
+
],
|
| 1184 |
+
"test_branch_errors": {
|
| 1185 |
+
"__evaluator__": [{"error_code": error_code, "error_details": str(exc)}]
|
| 1186 |
+
},
|
| 1187 |
+
"executable_hash": None,
|
| 1188 |
+
"warnings": [],
|
| 1189 |
+
}
|
| 1190 |
+
for branch, info in branches.items():
|
| 1191 |
+
if info.get("ignored"):
|
| 1192 |
+
continue
|
| 1193 |
+
inject_not_run(result, branch, branch_tests(info), error_code)
|
| 1194 |
+
log_path.write_text(traceback.format_exc())
|
| 1195 |
+
else:
|
| 1196 |
+
log_path.write_text("")
|
| 1197 |
+
write_outputs(result, metadata)
|
| 1198 |
+
|
| 1199 |
+
|
| 1200 |
+
if __name__ == "__main__":
|
| 1201 |
+
main()
|
evilsocket--jscythe.6aeeeb5/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,1363 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [
|
| 7 |
+
{
|
| 8 |
+
"name": "eval.tests.test_error_branches.test_default_script_missing_panics",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"id": "short_substring",
|
| 12 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 13 |
+
"path": "eval/tests/test_error_branches.py",
|
| 14 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 15 |
+
"severity": "error",
|
| 16 |
+
"stage": "static_lint"
|
| 17 |
+
}
|
| 18 |
+
]
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"name": "eval.tests.test_error_branches.test_domains_malformed_protocol_cites_payload_bytes",
|
| 22 |
+
"reasons": [
|
| 23 |
+
{
|
| 24 |
+
"id": "short_substring",
|
| 25 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 26 |
+
"path": "eval/tests/test_error_branches.py",
|
| 27 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 28 |
+
"severity": "error",
|
| 29 |
+
"stage": "static_lint"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"id": "generic_keyword_oracle",
|
| 33 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 34 |
+
"path": "eval/tests/test_error_branches.py",
|
| 35 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 36 |
+
"severity": "error",
|
| 37 |
+
"stage": "static_lint"
|
| 38 |
+
}
|
| 39 |
+
]
|
| 40 |
+
},
|
| 41 |
+
{
|
| 42 |
+
"name": "eval.tests.test_error_branches.test_domains_malformed_protocol_reports_error",
|
| 43 |
+
"reasons": [
|
| 44 |
+
{
|
| 45 |
+
"id": "generic_keyword_oracle",
|
| 46 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 47 |
+
"path": "eval/tests/test_error_branches.py",
|
| 48 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 49 |
+
"severity": "error",
|
| 50 |
+
"stage": "static_lint"
|
| 51 |
+
}
|
| 52 |
+
]
|
| 53 |
+
},
|
| 54 |
+
{
|
| 55 |
+
"name": "eval.tests.test_error_branches.test_missing_script_file_panics",
|
| 56 |
+
"reasons": [
|
| 57 |
+
{
|
| 58 |
+
"id": "short_substring",
|
| 59 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 60 |
+
"path": "eval/tests/test_error_branches.py",
|
| 61 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 62 |
+
"severity": "error",
|
| 63 |
+
"stage": "static_lint"
|
| 64 |
+
}
|
| 65 |
+
]
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"name": "eval.tests.test_mock_cdp.test_domains_and_code_ignores_code_payload",
|
| 69 |
+
"reasons": [
|
| 70 |
+
{
|
| 71 |
+
"id": "short_substring",
|
| 72 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 73 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 74 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 75 |
+
"severity": "error",
|
| 76 |
+
"stage": "static_lint"
|
| 77 |
+
}
|
| 78 |
+
]
|
| 79 |
+
},
|
| 80 |
+
{
|
| 81 |
+
"name": "eval.tests.test_mock_cdp.test_domains_exits_before_poll_values",
|
| 82 |
+
"reasons": [
|
| 83 |
+
{
|
| 84 |
+
"id": "short_substring",
|
| 85 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 86 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 87 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 88 |
+
"severity": "error",
|
| 89 |
+
"stage": "static_lint"
|
| 90 |
+
}
|
| 91 |
+
]
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"name": "eval.tests.test_mock_cdp.test_domains_lists_available_domains",
|
| 95 |
+
"reasons": [
|
| 96 |
+
{
|
| 97 |
+
"id": "short_substring",
|
| 98 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 99 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 100 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 101 |
+
"severity": "error",
|
| 102 |
+
"stage": "static_lint"
|
| 103 |
+
}
|
| 104 |
+
]
|
| 105 |
+
},
|
| 106 |
+
{
|
| 107 |
+
"name": "eval.tests.test_mock_cdp.test_inspection_port_is_the_mock_port",
|
| 108 |
+
"reasons": [
|
| 109 |
+
{
|
| 110 |
+
"id": "test_network_dependency",
|
| 111 |
+
"message": "test appears to depend on networking",
|
| 112 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 113 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 114 |
+
"severity": "error",
|
| 115 |
+
"stage": "static_lint"
|
| 116 |
+
}
|
| 117 |
+
]
|
| 118 |
+
},
|
| 119 |
+
{
|
| 120 |
+
"name": "eval.tests.test_mock_cdp.test_mock_port_is_found_as_inspection_port",
|
| 121 |
+
"reasons": [
|
| 122 |
+
{
|
| 123 |
+
"id": "test_network_dependency",
|
| 124 |
+
"message": "test appears to depend on networking",
|
| 125 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 126 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 127 |
+
"severity": "error",
|
| 128 |
+
"stage": "static_lint"
|
| 129 |
+
}
|
| 130 |
+
]
|
| 131 |
+
},
|
| 132 |
+
{
|
| 133 |
+
"name": "eval.tests.test_mock_cdp.test_poll_command_receives_values_on_stdin",
|
| 134 |
+
"reasons": [
|
| 135 |
+
{
|
| 136 |
+
"id": "short_substring",
|
| 137 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 138 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 139 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 140 |
+
"severity": "error",
|
| 141 |
+
"stage": "static_lint"
|
| 142 |
+
}
|
| 143 |
+
]
|
| 144 |
+
},
|
| 145 |
+
{
|
| 146 |
+
"name": "eval.tests.test_mock_cdp.test_poll_prints_custom_runtime_value",
|
| 147 |
+
"reasons": [
|
| 148 |
+
{
|
| 149 |
+
"id": "short_substring",
|
| 150 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 151 |
+
"path": "eval/tests/test_mock_cdp.py",
|
| 152 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 153 |
+
"severity": "error",
|
| 154 |
+
"stage": "static_lint"
|
| 155 |
+
}
|
| 156 |
+
]
|
| 157 |
+
},
|
| 158 |
+
{
|
| 159 |
+
"name": "eval.tests.test_payload_edge_cases.test_code_expression_embedded_newline_preserved",
|
| 160 |
+
"reasons": [
|
| 161 |
+
{
|
| 162 |
+
"id": "short_substring",
|
| 163 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 164 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 165 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 166 |
+
"severity": "error",
|
| 167 |
+
"stage": "static_lint"
|
| 168 |
+
}
|
| 169 |
+
]
|
| 170 |
+
},
|
| 171 |
+
{
|
| 172 |
+
"name": "eval.tests.test_payload_edge_cases.test_code_expression_unicode_preserved",
|
| 173 |
+
"reasons": [
|
| 174 |
+
{
|
| 175 |
+
"id": "short_substring",
|
| 176 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 177 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 178 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 179 |
+
"severity": "error",
|
| 180 |
+
"stage": "static_lint"
|
| 181 |
+
}
|
| 182 |
+
]
|
| 183 |
+
},
|
| 184 |
+
{
|
| 185 |
+
"name": "eval.tests.test_payload_edge_cases.test_domains_command_no_params_renders_empty_parens",
|
| 186 |
+
"reasons": [
|
| 187 |
+
{
|
| 188 |
+
"id": "short_substring",
|
| 189 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 190 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 191 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 192 |
+
"severity": "error",
|
| 193 |
+
"stage": "static_lint"
|
| 194 |
+
}
|
| 195 |
+
]
|
| 196 |
+
},
|
| 197 |
+
{
|
| 198 |
+
"name": "eval.tests.test_payload_edge_cases.test_domains_command_with_multiple_params",
|
| 199 |
+
"reasons": [
|
| 200 |
+
{
|
| 201 |
+
"id": "short_substring",
|
| 202 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 203 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 204 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 205 |
+
"severity": "error",
|
| 206 |
+
"stage": "static_lint"
|
| 207 |
+
}
|
| 208 |
+
]
|
| 209 |
+
},
|
| 210 |
+
{
|
| 211 |
+
"name": "eval.tests.test_payload_edge_cases.test_domains_dominates_custom_payload",
|
| 212 |
+
"reasons": [
|
| 213 |
+
{
|
| 214 |
+
"id": "short_substring",
|
| 215 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 216 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 217 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 218 |
+
"severity": "error",
|
| 219 |
+
"stage": "static_lint"
|
| 220 |
+
}
|
| 221 |
+
]
|
| 222 |
+
},
|
| 223 |
+
{
|
| 224 |
+
"name": "eval.tests.test_payload_edge_cases.test_domains_returns_exit_zero_and_no_ws",
|
| 225 |
+
"reasons": [
|
| 226 |
+
{
|
| 227 |
+
"id": "short_substring",
|
| 228 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 229 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 230 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 231 |
+
"severity": "error",
|
| 232 |
+
"stage": "static_lint"
|
| 233 |
+
}
|
| 234 |
+
]
|
| 235 |
+
}
|
| 236 |
+
],
|
| 237 |
+
"tests": [
|
| 238 |
+
"eval.tests.test_cli_arguments.test_banner_merely_precedes_missing_opt",
|
| 239 |
+
"eval.tests.test_cli_arguments.test_banner_names_version_number",
|
| 240 |
+
"eval.tests.test_cli_arguments.test_code_requires_pid_or_search_still_checked",
|
| 241 |
+
"eval.tests.test_cli_arguments.test_counter_int_takes_pid_value",
|
| 242 |
+
"eval.tests.test_cli_arguments.test_custom_payload_requires_pid_gate",
|
| 243 |
+
"eval.tests.test_cli_arguments.test_domains_requires_pid_or_search_still_checked",
|
| 244 |
+
"eval.tests.test_cli_arguments.test_extra_positional_is_clap_error",
|
| 245 |
+
"eval.tests.test_cli_arguments.test_help_does_not_run_main",
|
| 246 |
+
"eval.tests.test_cli_arguments.test_help_flag_exits_zero_exact",
|
| 247 |
+
"eval.tests.test_cli_arguments.test_invalid_pid_value_is_clap_error",
|
| 248 |
+
"eval.tests.test_cli_arguments.test_invalid_poll_interval_value_is_clap_error",
|
| 249 |
+
"eval.tests.test_cli_arguments.test_missing_pid_value_is_clap_error",
|
| 250 |
+
"eval.tests.test_cli_arguments.test_no_args_stdout_exact",
|
| 251 |
+
"eval.tests.test_cli_arguments.test_no_args_writes_nothing_to_stderr",
|
| 252 |
+
"eval.tests.test_cli_arguments.test_pid_takes_precedence_over_search",
|
| 253 |
+
"eval.tests.test_cli_arguments.test_poll_interval_documents_milliseconds_default",
|
| 254 |
+
"eval.tests.test_cli_arguments.test_poll_variable_requires_no_own_gate",
|
| 255 |
+
"eval.tests.test_cli_arguments.test_script_default_is_example_script",
|
| 256 |
+
"eval.tests.test_cli_arguments.test_search_with_code_option_reaches_find_process",
|
| 257 |
+
"eval.tests.test_cli_arguments.test_search_with_no_match_exact",
|
| 258 |
+
"eval.tests.test_cli_arguments.test_short_help_flag_identical_to_long",
|
| 259 |
+
"eval.tests.test_cli_arguments.test_unknown_flag_is_clap_error",
|
| 260 |
+
"eval.tests.test_cli_arguments.test_version_banner_first_line",
|
| 261 |
+
"eval.tests.test_error_branches.test_debug_url_empty_manifest_quoted_error",
|
| 262 |
+
"eval.tests.test_error_branches.test_debug_url_empty_manifest_second_call",
|
| 263 |
+
"eval.tests.test_error_branches.test_default_script_missing_panics",
|
| 264 |
+
"eval.tests.test_error_branches.test_domains_malformed_protocol_cites_payload_bytes",
|
| 265 |
+
"eval.tests.test_error_branches.test_domains_malformed_protocol_exits_nonzero_no_ws",
|
| 266 |
+
"eval.tests.test_error_branches.test_domains_malformed_protocol_reports_error",
|
| 267 |
+
"eval.tests.test_error_branches.test_missing_script_file_panics",
|
| 268 |
+
"eval.tests.test_error_branches.test_missing_script_panic_cites_no_such_file",
|
| 269 |
+
"eval.tests.test_error_branches.test_search_match_filter_is_not_self",
|
| 270 |
+
"eval.tests.test_error_branches.test_search_match_prefix_dialect",
|
| 271 |
+
"eval.tests.test_error_branches.test_search_match_proceeds_to_sigusr1",
|
| 272 |
+
"eval.tests.test_error_branches.test_search_match_reports_host_found",
|
| 273 |
+
"eval.tests.test_error_branches.test_search_match_requires_filter_only",
|
| 274 |
+
"eval.tests.test_mock_cdp.test_code_differs_observably_in_payload",
|
| 275 |
+
"eval.tests.test_mock_cdp.test_code_expression_accepts_js_syntax",
|
| 276 |
+
"eval.tests.test_mock_cdp.test_code_payload_default_params_exact",
|
| 277 |
+
"eval.tests.test_mock_cdp.test_code_sends_runtime_evaluate_payload",
|
| 278 |
+
"eval.tests.test_mock_cdp.test_code_wins_over_script_file",
|
| 279 |
+
"eval.tests.test_mock_cdp.test_code_with_no_poll_stops_at_recv_loop",
|
| 280 |
+
"eval.tests.test_mock_cdp.test_custom_payload_dash_blank_stdin",
|
| 281 |
+
"eval.tests.test_mock_cdp.test_custom_payload_dash_many_lines_join",
|
| 282 |
+
"eval.tests.test_mock_cdp.test_custom_payload_dash_preserves_multiline",
|
| 283 |
+
"eval.tests.test_mock_cdp.test_custom_payload_dash_reads_stdin",
|
| 284 |
+
"eval.tests.test_mock_cdp.test_custom_payload_dash_single_line",
|
| 285 |
+
"eval.tests.test_mock_cdp.test_custom_payload_inline_is_sent_verbatim",
|
| 286 |
+
"eval.tests.test_mock_cdp.test_custom_payload_last_wins_over_code",
|
| 287 |
+
"eval.tests.test_mock_cdp.test_custom_payload_then_poll_variable",
|
| 288 |
+
"eval.tests.test_mock_cdp.test_domains_and_code_ignores_code_payload",
|
| 289 |
+
"eval.tests.test_mock_cdp.test_domains_does_not_open_websocket",
|
| 290 |
+
"eval.tests.test_mock_cdp.test_domains_exits_before_poll_values",
|
| 291 |
+
"eval.tests.test_mock_cdp.test_domains_lists_available_domains",
|
| 292 |
+
"eval.tests.test_mock_cdp.test_domains_path_skips_sigusr1_when_port_known",
|
| 293 |
+
"eval.tests.test_mock_cdp.test_first_runtime_result_is_printed",
|
| 294 |
+
"eval.tests.test_mock_cdp.test_inspection_port_is_the_mock_port",
|
| 295 |
+
"eval.tests.test_mock_cdp.test_mock_port_is_found_as_inspection_port",
|
| 296 |
+
"eval.tests.test_mock_cdp.test_poll_command_receives_values_on_stdin",
|
| 297 |
+
"eval.tests.test_mock_cdp.test_poll_command_spawns_shell_helper",
|
| 298 |
+
"eval.tests.test_mock_cdp.test_poll_first_result_text_then_values",
|
| 299 |
+
"eval.tests.test_mock_cdp.test_poll_interval_zero_accepted",
|
| 300 |
+
"eval.tests.test_mock_cdp.test_poll_no_variable_enters_else_recv",
|
| 301 |
+
"eval.tests.test_mock_cdp.test_poll_payload_single_build_and_reuse",
|
| 302 |
+
"eval.tests.test_mock_cdp.test_poll_prints_custom_runtime_value",
|
| 303 |
+
"eval.tests.test_mock_cdp.test_poll_variable_handles_binary_frame",
|
| 304 |
+
"eval.tests.test_mock_cdp.test_poll_variable_payload_is_json_stringify",
|
| 305 |
+
"eval.tests.test_mock_cdp.test_poll_variable_prints_value_repeatedly",
|
| 306 |
+
"eval.tests.test_mock_cdp.test_script_file_contents_become_expression",
|
| 307 |
+
"eval.tests.test_payload_edge_cases.test_code_expression_embedded_newline_preserved",
|
| 308 |
+
"eval.tests.test_payload_edge_cases.test_code_expression_unicode_preserved",
|
| 309 |
+
"eval.tests.test_payload_edge_cases.test_code_expression_whitespace_not_trimmed",
|
| 310 |
+
"eval.tests.test_payload_edge_cases.test_custom_payload_empty_inline_sent_verbatim",
|
| 311 |
+
"eval.tests.test_payload_edge_cases.test_custom_payload_stdin_whitespace_lines_joined",
|
| 312 |
+
"eval.tests.test_payload_edge_cases.test_custom_payload_unicode_inline_verbatim",
|
| 313 |
+
"eval.tests.test_payload_edge_cases.test_custom_payload_wins_over_script_file",
|
| 314 |
+
"eval.tests.test_payload_edge_cases.test_domains_command_no_params_renders_empty_parens",
|
| 315 |
+
"eval.tests.test_payload_edge_cases.test_domains_command_with_multiple_params",
|
| 316 |
+
"eval.tests.test_payload_edge_cases.test_domains_dominates_custom_payload",
|
| 317 |
+
"eval.tests.test_payload_edge_cases.test_domains_returns_exit_zero_and_no_ws",
|
| 318 |
+
"eval.tests.test_payload_edge_cases.test_poll_variable_dotted_path_stringify",
|
| 319 |
+
"eval.tests.test_payload_edge_cases.test_poll_variable_empty_name_sends_json_stringify_empty",
|
| 320 |
+
"eval.tests.test_payload_edge_cases.test_poll_variable_name_with_space_stringify",
|
| 321 |
+
"eval.tests.test_process_search.test_large_nonexistent_pid_esrch",
|
| 322 |
+
"eval.tests.test_process_search.test_nonexistent_pid_esrch_diagnostic",
|
| 323 |
+
"eval.tests.test_process_search.test_search_case_insensitive_filter_used",
|
| 324 |
+
"eval.tests.test_process_search.test_search_no_match_exact_stdout",
|
| 325 |
+
"eval.tests.test_process_search.test_signal_child_terminated_by_sigusr1",
|
| 326 |
+
"eval.tests.test_process_search.test_signal_live_child_and_fail_to_infer_port",
|
| 327 |
+
"eval.tests.test_process_search.test_sigusr1_to_nonexistent_pid_no_wait"
|
| 328 |
+
]
|
| 329 |
+
},
|
| 330 |
+
"generated_module_02": {
|
| 331 |
+
"ignore_reason": "",
|
| 332 |
+
"ignored": false,
|
| 333 |
+
"ignored_tests": [
|
| 334 |
+
{
|
| 335 |
+
"name": "eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_wss_scheme_parse_ok_connect_attempt",
|
| 336 |
+
"reasons": [
|
| 337 |
+
{
|
| 338 |
+
"id": "short_substring",
|
| 339 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 340 |
+
"path": "eval/tests/test_debug_url_variants.py",
|
| 341 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 342 |
+
"severity": "error",
|
| 343 |
+
"stage": "static_lint"
|
| 344 |
+
}
|
| 345 |
+
]
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"name": "eval.tests.test_default_script.TestDefaultScriptMissing.test_missing_default_script_connects_first",
|
| 349 |
+
"reasons": [
|
| 350 |
+
{
|
| 351 |
+
"id": "short_substring",
|
| 352 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 353 |
+
"path": "eval/tests/test_default_script.py",
|
| 354 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 355 |
+
"severity": "error",
|
| 356 |
+
"stage": "static_lint"
|
| 357 |
+
},
|
| 358 |
+
{
|
| 359 |
+
"id": "test_network_dependency",
|
| 360 |
+
"message": "test appears to depend on networking",
|
| 361 |
+
"path": "eval/tests/test_default_script.py",
|
| 362 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 363 |
+
"severity": "error",
|
| 364 |
+
"stage": "static_lint"
|
| 365 |
+
}
|
| 366 |
+
]
|
| 367 |
+
},
|
| 368 |
+
{
|
| 369 |
+
"name": "eval.tests.test_domains_emission.TestDomainsRouting.test_domains_sends_no_websocket_frames",
|
| 370 |
+
"reasons": [
|
| 371 |
+
{
|
| 372 |
+
"id": "assertion_disjunction",
|
| 373 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 374 |
+
"path": "eval/tests/test_domains_emission.py",
|
| 375 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 376 |
+
"severity": "error",
|
| 377 |
+
"stage": "static_lint"
|
| 378 |
+
},
|
| 379 |
+
{
|
| 380 |
+
"id": "short_substring",
|
| 381 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 382 |
+
"path": "eval/tests/test_domains_emission.py",
|
| 383 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 384 |
+
"severity": "error",
|
| 385 |
+
"stage": "static_lint"
|
| 386 |
+
}
|
| 387 |
+
]
|
| 388 |
+
},
|
| 389 |
+
{
|
| 390 |
+
"name": "eval.tests.test_get_debug_url.TestGetDebugUrlEmpty.test_empty_manifest_ports_are_listed",
|
| 391 |
+
"reasons": [
|
| 392 |
+
{
|
| 393 |
+
"id": "short_substring",
|
| 394 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 395 |
+
"path": "eval/tests/test_get_debug_url.py",
|
| 396 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 397 |
+
"severity": "error",
|
| 398 |
+
"stage": "static_lint"
|
| 399 |
+
}
|
| 400 |
+
]
|
| 401 |
+
},
|
| 402 |
+
{
|
| 403 |
+
"name": "eval.tests.test_get_debug_url.TestGetDebugUrlSequence.test_domains_path_still_detects_via_json",
|
| 404 |
+
"reasons": [
|
| 405 |
+
{
|
| 406 |
+
"id": "short_substring",
|
| 407 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 408 |
+
"path": "eval/tests/test_get_debug_url.py",
|
| 409 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 410 |
+
"severity": "error",
|
| 411 |
+
"stage": "static_lint"
|
| 412 |
+
}
|
| 413 |
+
]
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"name": "eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_is_fetched_and_printed",
|
| 417 |
+
"reasons": [
|
| 418 |
+
{
|
| 419 |
+
"id": "short_substring",
|
| 420 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 421 |
+
"path": "eval/tests/test_get_debug_url.py",
|
| 422 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 423 |
+
"severity": "error",
|
| 424 |
+
"stage": "static_lint"
|
| 425 |
+
}
|
| 426 |
+
]
|
| 427 |
+
},
|
| 428 |
+
{
|
| 429 |
+
"name": "eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_empty_ws_url_is_returned_and_echoed",
|
| 430 |
+
"reasons": [
|
| 431 |
+
{
|
| 432 |
+
"id": "short_substring",
|
| 433 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 434 |
+
"path": "eval/tests/test_get_debug_url.py",
|
| 435 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 436 |
+
"severity": "error",
|
| 437 |
+
"stage": "static_lint"
|
| 438 |
+
}
|
| 439 |
+
]
|
| 440 |
+
},
|
| 441 |
+
{
|
| 442 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_command_name_with_spaces_echoed",
|
| 443 |
+
"reasons": [
|
| 444 |
+
{
|
| 445 |
+
"id": "short_substring",
|
| 446 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 447 |
+
"path": "eval/tests/test_get_domains.py",
|
| 448 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 449 |
+
"severity": "error",
|
| 450 |
+
"stage": "static_lint"
|
| 451 |
+
}
|
| 452 |
+
]
|
| 453 |
+
},
|
| 454 |
+
{
|
| 455 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_duplicate_domain_names_both_listed",
|
| 456 |
+
"reasons": [
|
| 457 |
+
{
|
| 458 |
+
"id": "short_substring",
|
| 459 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 460 |
+
"path": "eval/tests/test_get_domains.py",
|
| 461 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 462 |
+
"severity": "error",
|
| 463 |
+
"stage": "static_lint"
|
| 464 |
+
}
|
| 465 |
+
]
|
| 466 |
+
},
|
| 467 |
+
{
|
| 468 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_duplicate_parameter_names_joined_verbatim",
|
| 469 |
+
"reasons": [
|
| 470 |
+
{
|
| 471 |
+
"id": "short_substring",
|
| 472 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 473 |
+
"path": "eval/tests/test_get_domains.py",
|
| 474 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 475 |
+
"severity": "error",
|
| 476 |
+
"stage": "static_lint"
|
| 477 |
+
}
|
| 478 |
+
]
|
| 479 |
+
},
|
| 480 |
+
{
|
| 481 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_empty_string_domain_name_printed",
|
| 482 |
+
"reasons": [
|
| 483 |
+
{
|
| 484 |
+
"id": "short_substring",
|
| 485 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 486 |
+
"path": "eval/tests/test_get_domains.py",
|
| 487 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 488 |
+
"severity": "error",
|
| 489 |
+
"stage": "static_lint"
|
| 490 |
+
}
|
| 491 |
+
]
|
| 492 |
+
},
|
| 493 |
+
{
|
| 494 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_unicode_domain_and_command_names_echoed",
|
| 495 |
+
"reasons": [
|
| 496 |
+
{
|
| 497 |
+
"id": "short_substring",
|
| 498 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 499 |
+
"path": "eval/tests/test_get_domains.py",
|
| 500 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 501 |
+
"severity": "error",
|
| 502 |
+
"stage": "static_lint"
|
| 503 |
+
}
|
| 504 |
+
]
|
| 505 |
+
},
|
| 506 |
+
{
|
| 507 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsEmpty.test_domain_with_no_commands",
|
| 508 |
+
"reasons": [
|
| 509 |
+
{
|
| 510 |
+
"id": "short_substring",
|
| 511 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 512 |
+
"path": "eval/tests/test_get_domains.py",
|
| 513 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 514 |
+
"severity": "error",
|
| 515 |
+
"stage": "static_lint"
|
| 516 |
+
}
|
| 517 |
+
]
|
| 518 |
+
},
|
| 519 |
+
{
|
| 520 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_error_mentions_data_bytes",
|
| 521 |
+
"reasons": [
|
| 522 |
+
{
|
| 523 |
+
"id": "short_substring",
|
| 524 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 525 |
+
"path": "eval/tests/test_get_domains.py",
|
| 526 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 527 |
+
"severity": "error",
|
| 528 |
+
"stage": "static_lint"
|
| 529 |
+
}
|
| 530 |
+
]
|
| 531 |
+
},
|
| 532 |
+
{
|
| 533 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsScenarios.test_realistic_minimal_protocol",
|
| 534 |
+
"reasons": [
|
| 535 |
+
{
|
| 536 |
+
"id": "short_substring",
|
| 537 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 538 |
+
"path": "eval/tests/test_get_domains.py",
|
| 539 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 540 |
+
"severity": "error",
|
| 541 |
+
"stage": "static_lint"
|
| 542 |
+
}
|
| 543 |
+
]
|
| 544 |
+
},
|
| 545 |
+
{
|
| 546 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsSuccess.test_command_with_explicit_empty_parameters_array",
|
| 547 |
+
"reasons": [
|
| 548 |
+
{
|
| 549 |
+
"id": "short_substring",
|
| 550 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 551 |
+
"path": "eval/tests/test_get_domains.py",
|
| 552 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 553 |
+
"severity": "error",
|
| 554 |
+
"stage": "static_lint"
|
| 555 |
+
}
|
| 556 |
+
]
|
| 557 |
+
},
|
| 558 |
+
{
|
| 559 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsSuccess.test_multiple_commands_under_one_domain",
|
| 560 |
+
"reasons": [
|
| 561 |
+
{
|
| 562 |
+
"id": "short_substring",
|
| 563 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 564 |
+
"path": "eval/tests/test_get_domains.py",
|
| 565 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 566 |
+
"severity": "error",
|
| 567 |
+
"stage": "static_lint"
|
| 568 |
+
}
|
| 569 |
+
]
|
| 570 |
+
},
|
| 571 |
+
{
|
| 572 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsSuccess.test_multiple_domains_each_printed",
|
| 573 |
+
"reasons": [
|
| 574 |
+
{
|
| 575 |
+
"id": "short_substring",
|
| 576 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 577 |
+
"path": "eval/tests/test_get_domains.py",
|
| 578 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 579 |
+
"severity": "error",
|
| 580 |
+
"stage": "static_lint"
|
| 581 |
+
}
|
| 582 |
+
]
|
| 583 |
+
},
|
| 584 |
+
{
|
| 585 |
+
"name": "eval.tests.test_get_domains.TestGetDomainsSuccess.test_single_domain_single_command_no_params",
|
| 586 |
+
"reasons": [
|
| 587 |
+
{
|
| 588 |
+
"id": "short_substring",
|
| 589 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 590 |
+
"path": "eval/tests/test_get_domains.py",
|
| 591 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 592 |
+
"severity": "error",
|
| 593 |
+
"stage": "static_lint"
|
| 594 |
+
}
|
| 595 |
+
]
|
| 596 |
+
},
|
| 597 |
+
{
|
| 598 |
+
"name": "eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_empty_domains_exact",
|
| 599 |
+
"reasons": [
|
| 600 |
+
{
|
| 601 |
+
"id": "missing_fixture_assets",
|
| 602 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 603 |
+
"path": "eval/tests/test_golden_domains.py",
|
| 604 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 605 |
+
"severity": "error",
|
| 606 |
+
"stage": "static_lint"
|
| 607 |
+
}
|
| 608 |
+
]
|
| 609 |
+
},
|
| 610 |
+
{
|
| 611 |
+
"name": "eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_realistic_protocol_exact",
|
| 612 |
+
"reasons": [
|
| 613 |
+
{
|
| 614 |
+
"id": "missing_fixture_assets",
|
| 615 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 616 |
+
"path": "eval/tests/test_golden_domains.py",
|
| 617 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 618 |
+
"severity": "error",
|
| 619 |
+
"stage": "static_lint"
|
| 620 |
+
}
|
| 621 |
+
]
|
| 622 |
+
},
|
| 623 |
+
{
|
| 624 |
+
"name": "eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_single_domain_single_command_exact",
|
| 625 |
+
"reasons": [
|
| 626 |
+
{
|
| 627 |
+
"id": "missing_fixture_assets",
|
| 628 |
+
"message": "pytest test references fixture assets that are not packaged",
|
| 629 |
+
"path": "eval/tests/test_golden_domains.py",
|
| 630 |
+
"repair_hint": "Package referenced fixture, resource, golden, or test data files with the eval branch.",
|
| 631 |
+
"severity": "error",
|
| 632 |
+
"stage": "static_lint"
|
| 633 |
+
}
|
| 634 |
+
]
|
| 635 |
+
},
|
| 636 |
+
{
|
| 637 |
+
"name": "eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_duplicate_param_names_exact_join",
|
| 638 |
+
"reasons": [
|
| 639 |
+
{
|
| 640 |
+
"id": "short_substring",
|
| 641 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 642 |
+
"path": "eval/tests/test_golden_domains.py",
|
| 643 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 644 |
+
"severity": "error",
|
| 645 |
+
"stage": "static_lint"
|
| 646 |
+
}
|
| 647 |
+
]
|
| 648 |
+
},
|
| 649 |
+
{
|
| 650 |
+
"name": "eval.tests.test_help_args.TestArgumentValidation.test_non_numeric_pid_is_rejected",
|
| 651 |
+
"reasons": [
|
| 652 |
+
{
|
| 653 |
+
"id": "assertion_disjunction",
|
| 654 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 655 |
+
"path": "eval/tests/test_help_args.py",
|
| 656 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 657 |
+
"severity": "error",
|
| 658 |
+
"stage": "static_lint"
|
| 659 |
+
},
|
| 660 |
+
{
|
| 661 |
+
"id": "short_substring",
|
| 662 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 663 |
+
"path": "eval/tests/test_help_args.py",
|
| 664 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 665 |
+
"severity": "error",
|
| 666 |
+
"stage": "static_lint"
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"id": "generic_keyword_oracle",
|
| 670 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 671 |
+
"path": "eval/tests/test_help_args.py",
|
| 672 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 673 |
+
"severity": "error",
|
| 674 |
+
"stage": "static_lint"
|
| 675 |
+
}
|
| 676 |
+
]
|
| 677 |
+
},
|
| 678 |
+
{
|
| 679 |
+
"name": "eval.tests.test_help_args.TestHelp.test_help_long_lists_all_options",
|
| 680 |
+
"reasons": [
|
| 681 |
+
{
|
| 682 |
+
"id": "short_substring",
|
| 683 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 684 |
+
"path": "eval/tests/test_help_args.py",
|
| 685 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 686 |
+
"severity": "error",
|
| 687 |
+
"stage": "static_lint"
|
| 688 |
+
},
|
| 689 |
+
{
|
| 690 |
+
"id": "generic_keyword_oracle",
|
| 691 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 692 |
+
"path": "eval/tests/test_help_args.py",
|
| 693 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 694 |
+
"severity": "error",
|
| 695 |
+
"stage": "static_lint"
|
| 696 |
+
}
|
| 697 |
+
]
|
| 698 |
+
},
|
| 699 |
+
{
|
| 700 |
+
"name": "eval.tests.test_help_args.TestHelp.test_help_short_variant",
|
| 701 |
+
"reasons": [
|
| 702 |
+
{
|
| 703 |
+
"id": "short_substring",
|
| 704 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 705 |
+
"path": "eval/tests/test_help_args.py",
|
| 706 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 707 |
+
"severity": "error",
|
| 708 |
+
"stage": "static_lint"
|
| 709 |
+
}
|
| 710 |
+
]
|
| 711 |
+
},
|
| 712 |
+
{
|
| 713 |
+
"name": "eval.tests.test_help_args.TestProcessSelectionErrors.test_pid_takes_precedence_over_search",
|
| 714 |
+
"reasons": [
|
| 715 |
+
{
|
| 716 |
+
"id": "short_substring",
|
| 717 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 718 |
+
"path": "eval/tests/test_help_args.py",
|
| 719 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 720 |
+
"severity": "error",
|
| 721 |
+
"stage": "static_lint"
|
| 722 |
+
}
|
| 723 |
+
]
|
| 724 |
+
},
|
| 725 |
+
{
|
| 726 |
+
"name": "eval.tests.test_payload_edge_cases.TestPollCommandWithoutVariable.test_poll_command_spawned_without_variable",
|
| 727 |
+
"reasons": [
|
| 728 |
+
{
|
| 729 |
+
"id": "generic_keyword_oracle",
|
| 730 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 731 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 732 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 733 |
+
"severity": "error",
|
| 734 |
+
"stage": "static_lint"
|
| 735 |
+
}
|
| 736 |
+
]
|
| 737 |
+
},
|
| 738 |
+
{
|
| 739 |
+
"name": "eval.tests.test_payload_edge_cases.TestPollCommandWithoutVariable.test_poll_command_without_variable_loop_is_echo",
|
| 740 |
+
"reasons": [
|
| 741 |
+
{
|
| 742 |
+
"id": "test_network_dependency",
|
| 743 |
+
"message": "test appears to depend on networking",
|
| 744 |
+
"path": "eval/tests/test_payload_edge_cases.py",
|
| 745 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 746 |
+
"severity": "error",
|
| 747 |
+
"stage": "static_lint"
|
| 748 |
+
}
|
| 749 |
+
]
|
| 750 |
+
},
|
| 751 |
+
{
|
| 752 |
+
"name": "eval.tests.test_response_parse_robustness.TestPollResponseShape.test_id_order_irrelevant",
|
| 753 |
+
"reasons": [
|
| 754 |
+
{
|
| 755 |
+
"id": "short_substring",
|
| 756 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 757 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 758 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 759 |
+
"severity": "error",
|
| 760 |
+
"stage": "static_lint"
|
| 761 |
+
}
|
| 762 |
+
]
|
| 763 |
+
},
|
| 764 |
+
{
|
| 765 |
+
"name": "eval.tests.test_response_parse_robustness.TestPollResponseShape.test_value_at_result_result_only",
|
| 766 |
+
"reasons": [
|
| 767 |
+
{
|
| 768 |
+
"id": "short_substring",
|
| 769 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 770 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 771 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 772 |
+
"severity": "error",
|
| 773 |
+
"stage": "static_lint"
|
| 774 |
+
}
|
| 775 |
+
]
|
| 776 |
+
},
|
| 777 |
+
{
|
| 778 |
+
"name": "eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_result_field_ignored",
|
| 779 |
+
"reasons": [
|
| 780 |
+
{
|
| 781 |
+
"id": "short_substring",
|
| 782 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 783 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 784 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 785 |
+
"severity": "error",
|
| 786 |
+
"stage": "static_lint"
|
| 787 |
+
}
|
| 788 |
+
]
|
| 789 |
+
},
|
| 790 |
+
{
|
| 791 |
+
"name": "eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_top_level_field_ignored",
|
| 792 |
+
"reasons": [
|
| 793 |
+
{
|
| 794 |
+
"id": "short_substring",
|
| 795 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 796 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 797 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 798 |
+
"severity": "error",
|
| 799 |
+
"stage": "static_lint"
|
| 800 |
+
}
|
| 801 |
+
]
|
| 802 |
+
},
|
| 803 |
+
{
|
| 804 |
+
"name": "eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_value_object_with_string_field",
|
| 805 |
+
"reasons": [
|
| 806 |
+
{
|
| 807 |
+
"id": "short_substring",
|
| 808 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 809 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 810 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 811 |
+
"severity": "error",
|
| 812 |
+
"stage": "static_lint"
|
| 813 |
+
}
|
| 814 |
+
]
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"name": "eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_unicode_multibyte_kept",
|
| 818 |
+
"reasons": [
|
| 819 |
+
{
|
| 820 |
+
"id": "short_substring",
|
| 821 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 822 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 823 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 824 |
+
"severity": "error",
|
| 825 |
+
"stage": "static_lint"
|
| 826 |
+
}
|
| 827 |
+
]
|
| 828 |
+
},
|
| 829 |
+
{
|
| 830 |
+
"name": "eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_with_backslashes_kept",
|
| 831 |
+
"reasons": [
|
| 832 |
+
{
|
| 833 |
+
"id": "short_substring",
|
| 834 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 835 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 836 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 837 |
+
"severity": "error",
|
| 838 |
+
"stage": "static_lint"
|
| 839 |
+
}
|
| 840 |
+
]
|
| 841 |
+
},
|
| 842 |
+
{
|
| 843 |
+
"name": "eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_with_tab_kept",
|
| 844 |
+
"reasons": [
|
| 845 |
+
{
|
| 846 |
+
"id": "short_substring",
|
| 847 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 848 |
+
"path": "eval/tests/test_response_parse_robustness.py",
|
| 849 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 850 |
+
"severity": "error",
|
| 851 |
+
"stage": "static_lint"
|
| 852 |
+
}
|
| 853 |
+
]
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"name": "eval.tests.test_responses_parse.TestBinaryFrameResponse.test_binary_poll_response_reported_as_non_text",
|
| 857 |
+
"reasons": [
|
| 858 |
+
{
|
| 859 |
+
"id": "short_substring",
|
| 860 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 861 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 862 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 863 |
+
"severity": "error",
|
| 864 |
+
"stage": "static_lint"
|
| 865 |
+
}
|
| 866 |
+
]
|
| 867 |
+
},
|
| 868 |
+
{
|
| 869 |
+
"name": "eval.tests.test_responses_parse.TestPollCommandPipe.test_poll_command_receives_value_on_stdin",
|
| 870 |
+
"reasons": [
|
| 871 |
+
{
|
| 872 |
+
"id": "short_substring",
|
| 873 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 874 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 875 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 876 |
+
"severity": "error",
|
| 877 |
+
"stage": "static_lint"
|
| 878 |
+
}
|
| 879 |
+
]
|
| 880 |
+
},
|
| 881 |
+
{
|
| 882 |
+
"name": "eval.tests.test_responses_parse.TestPollInterval.test_poll_interval_gates_request_rate",
|
| 883 |
+
"reasons": [
|
| 884 |
+
{
|
| 885 |
+
"id": "all_assertions_weak",
|
| 886 |
+
"message": "pytest test uses only weak assertions",
|
| 887 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 888 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 889 |
+
"severity": "error",
|
| 890 |
+
"stage": "static_lint"
|
| 891 |
+
},
|
| 892 |
+
{
|
| 893 |
+
"id": "test_network_dependency",
|
| 894 |
+
"message": "test appears to depend on networking",
|
| 895 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 896 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 897 |
+
"severity": "error",
|
| 898 |
+
"stage": "static_lint"
|
| 899 |
+
}
|
| 900 |
+
]
|
| 901 |
+
},
|
| 902 |
+
{
|
| 903 |
+
"name": "eval.tests.test_responses_parse.TestPollInterval.test_zero_poll_interval_still_produces_frames",
|
| 904 |
+
"reasons": [
|
| 905 |
+
{
|
| 906 |
+
"id": "all_assertions_weak",
|
| 907 |
+
"message": "pytest test uses only weak assertions",
|
| 908 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 909 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 910 |
+
"severity": "error",
|
| 911 |
+
"stage": "static_lint"
|
| 912 |
+
}
|
| 913 |
+
]
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_null_value_prints_empty",
|
| 917 |
+
"reasons": [
|
| 918 |
+
{
|
| 919 |
+
"id": "short_substring",
|
| 920 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 921 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 922 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 923 |
+
"severity": "error",
|
| 924 |
+
"stage": "static_lint"
|
| 925 |
+
}
|
| 926 |
+
]
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_numeric_value_printed",
|
| 930 |
+
"reasons": [
|
| 931 |
+
{
|
| 932 |
+
"id": "short_substring",
|
| 933 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 934 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 935 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 936 |
+
"severity": "error",
|
| 937 |
+
"stage": "static_lint"
|
| 938 |
+
}
|
| 939 |
+
]
|
| 940 |
+
},
|
| 941 |
+
{
|
| 942 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_absent_still_runs",
|
| 943 |
+
"reasons": [
|
| 944 |
+
{
|
| 945 |
+
"id": "short_substring",
|
| 946 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 947 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 948 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 949 |
+
"severity": "error",
|
| 950 |
+
"stage": "static_lint"
|
| 951 |
+
}
|
| 952 |
+
]
|
| 953 |
+
},
|
| 954 |
+
{
|
| 955 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_appears_repeatedly_over_time",
|
| 956 |
+
"reasons": [
|
| 957 |
+
{
|
| 958 |
+
"id": "short_substring",
|
| 959 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 960 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 961 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 962 |
+
"severity": "error",
|
| 963 |
+
"stage": "static_lint"
|
| 964 |
+
}
|
| 965 |
+
]
|
| 966 |
+
},
|
| 967 |
+
{
|
| 968 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_no_result_wrapper_runs",
|
| 969 |
+
"reasons": [
|
| 970 |
+
{
|
| 971 |
+
"id": "short_substring",
|
| 972 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 973 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 974 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 975 |
+
"severity": "error",
|
| 976 |
+
"stage": "static_lint"
|
| 977 |
+
}
|
| 978 |
+
]
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"name": "eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_with_newline_printed",
|
| 982 |
+
"reasons": [
|
| 983 |
+
{
|
| 984 |
+
"id": "short_substring",
|
| 985 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 986 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 987 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 988 |
+
"severity": "error",
|
| 989 |
+
"stage": "static_lint"
|
| 990 |
+
}
|
| 991 |
+
]
|
| 992 |
+
},
|
| 993 |
+
{
|
| 994 |
+
"name": "eval.tests.test_responses_parse.TestResponseDisplay.test_raw_text_response_with_value",
|
| 995 |
+
"reasons": [
|
| 996 |
+
{
|
| 997 |
+
"id": "short_substring",
|
| 998 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 999 |
+
"path": "eval/tests/test_responses_parse.py",
|
| 1000 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1001 |
+
"severity": "error",
|
| 1002 |
+
"stage": "static_lint"
|
| 1003 |
+
}
|
| 1004 |
+
]
|
| 1005 |
+
},
|
| 1006 |
+
{
|
| 1007 |
+
"name": "eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_eval_result_printed_as_text",
|
| 1008 |
+
"reasons": [
|
| 1009 |
+
{
|
| 1010 |
+
"id": "short_substring",
|
| 1011 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1012 |
+
"path": "eval/tests/test_runtime_eval.py",
|
| 1013 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1014 |
+
"severity": "error",
|
| 1015 |
+
"stage": "static_lint"
|
| 1016 |
+
}
|
| 1017 |
+
]
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"name": "eval.tests.test_scenarios.TestDiscoveryFailureWhetherPortFormats.test_http_instead_of_ws_url_still_connects_attempt",
|
| 1021 |
+
"reasons": [
|
| 1022 |
+
{
|
| 1023 |
+
"id": "short_substring",
|
| 1024 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1025 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1026 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1027 |
+
"severity": "error",
|
| 1028 |
+
"stage": "static_lint"
|
| 1029 |
+
},
|
| 1030 |
+
{
|
| 1031 |
+
"id": "test_network_dependency",
|
| 1032 |
+
"message": "test appears to depend on networking",
|
| 1033 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1034 |
+
"repair_hint": "Remove external networking from eval tests; use bundled fixtures or local subprocess behavior.",
|
| 1035 |
+
"severity": "error",
|
| 1036 |
+
"stage": "static_lint"
|
| 1037 |
+
}
|
| 1038 |
+
]
|
| 1039 |
+
},
|
| 1040 |
+
{
|
| 1041 |
+
"name": "eval.tests.test_scenarios.TestDiscoverySequencing.test_domains_does_not_require_websocket",
|
| 1042 |
+
"reasons": [
|
| 1043 |
+
{
|
| 1044 |
+
"id": "short_substring",
|
| 1045 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1046 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1047 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1048 |
+
"severity": "error",
|
| 1049 |
+
"stage": "static_lint"
|
| 1050 |
+
}
|
| 1051 |
+
]
|
| 1052 |
+
},
|
| 1053 |
+
{
|
| 1054 |
+
"name": "eval.tests.test_scenarios.TestEndToEnd.test_custom_payload_bypasses_discovery_websocket",
|
| 1055 |
+
"reasons": [
|
| 1056 |
+
{
|
| 1057 |
+
"id": "short_substring",
|
| 1058 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1059 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1060 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1061 |
+
"severity": "error",
|
| 1062 |
+
"stage": "static_lint"
|
| 1063 |
+
}
|
| 1064 |
+
]
|
| 1065 |
+
},
|
| 1066 |
+
{
|
| 1067 |
+
"name": "eval.tests.test_scenarios.TestEndToEnd.test_full_pipeline_discovery_to_value",
|
| 1068 |
+
"reasons": [
|
| 1069 |
+
{
|
| 1070 |
+
"id": "short_substring",
|
| 1071 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1072 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1073 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1074 |
+
"severity": "error",
|
| 1075 |
+
"stage": "static_lint"
|
| 1076 |
+
}
|
| 1077 |
+
]
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"name": "eval.tests.test_scenarios.TestEndToEnd.test_missing_script_file_panics_after_connect",
|
| 1081 |
+
"reasons": [
|
| 1082 |
+
{
|
| 1083 |
+
"id": "short_substring",
|
| 1084 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1085 |
+
"path": "eval/tests/test_scenarios.py",
|
| 1086 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1087 |
+
"severity": "error",
|
| 1088 |
+
"stage": "static_lint"
|
| 1089 |
+
}
|
| 1090 |
+
]
|
| 1091 |
+
}
|
| 1092 |
+
],
|
| 1093 |
+
"tests": [
|
| 1094 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlMultiManifest.test_second_manifest_empty_url_first_wins",
|
| 1095 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlMultiManifest.test_single_present_manifest_wins_over_missing_field",
|
| 1096 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlQueryStrings.test_query_string_first_of_many_manifests",
|
| 1097 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlQueryStrings.test_query_string_kept_verbatim[?a=1&a=2]",
|
| 1098 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlQueryStrings.test_query_string_kept_verbatim[?empty=]",
|
| 1099 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlQueryStrings.test_query_string_kept_verbatim[?foo=bar&x=1]",
|
| 1100 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlQueryStrings.test_query_string_kept_verbatim[?single]",
|
| 1101 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_empty_path_url",
|
| 1102 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_url_host_case_kept_verbatim[127.0.0.1]",
|
| 1103 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_url_host_case_kept_verbatim[JsCyThe.Host]",
|
| 1104 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_url_host_case_kept_verbatim[LOCALHOST]",
|
| 1105 |
+
"eval.tests.test_debug_url_variants.TestDebugUrlSchemeVariants.test_wss_scheme_parse_ok_connect_attempt",
|
| 1106 |
+
"eval.tests.test_default_script.TestDefaultScriptMissing.test_missing_default_script_aborts",
|
| 1107 |
+
"eval.tests.test_default_script.TestDefaultScriptMissing.test_missing_default_script_connects_first",
|
| 1108 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_cwd_relative_default_script",
|
| 1109 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_contents_become_expression[(()=>\"hi\")()]",
|
| 1110 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_contents_become_expression[globalThis.X = 1;]",
|
| 1111 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_contents_become_expression[j=1]",
|
| 1112 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_contents_become_expression[main();\\nfunction main(){ return 42; }]",
|
| 1113 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_multiline_contents",
|
| 1114 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_default_script_unicode_contents",
|
| 1115 |
+
"eval.tests.test_default_script.TestDefaultScriptResolution.test_explicit_script_overrides_default_name",
|
| 1116 |
+
"eval.tests.test_domains_emission.TestDefaultFlowRouting.test_default_flow_request_sequence",
|
| 1117 |
+
"eval.tests.test_domains_emission.TestDomainsRouting.test_domains_debug_url_requested_once",
|
| 1118 |
+
"eval.tests.test_domains_emission.TestDomainsRouting.test_domains_domains_requested_once",
|
| 1119 |
+
"eval.tests.test_domains_emission.TestDomainsRouting.test_domains_sends_no_websocket_frames",
|
| 1120 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlEmpty.test_empty_manifest_fails_discovery",
|
| 1121 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlEmpty.test_empty_manifest_ports_are_listed",
|
| 1122 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_404_json_endpoint_fails_discovery",
|
| 1123 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[42]",
|
| 1124 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[[]]]",
|
| 1125 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[]",
|
| 1126 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[not-json{]",
|
| 1127 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[{\"domains\":[{\"domain\":\"Runtime\"}]}]",
|
| 1128 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_malformed_json_fails_discovery[{\"webSocketDebuggerUrl\":\"ws://x\"}]",
|
| 1129 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlMalformed.test_missing_ws_field_rejected",
|
| 1130 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSequence.test_domains_path_still_detects_via_json",
|
| 1131 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_browser_style_url_kept",
|
| 1132 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_endpoint_printed_to_stderr_fetch_trace",
|
| 1133 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_first_manifest_wins",
|
| 1134 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_is_fetched_and_printed",
|
| 1135 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_with_custom_path_kept",
|
| 1136 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_debug_url_ws_connect_attempted",
|
| 1137 |
+
"eval.tests.test_get_debug_url.TestGetDebugUrlSuccess.test_empty_ws_url_is_returned_and_echoed",
|
| 1138 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_command_name_with_spaces_echoed",
|
| 1139 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_duplicate_domain_names_both_listed",
|
| 1140 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_duplicate_parameter_names_joined_verbatim",
|
| 1141 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_empty_string_domain_name_printed",
|
| 1142 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_many_commands_preserved_in_order",
|
| 1143 |
+
"eval.tests.test_get_domains.TestGetDomainsEdgeCases.test_unicode_domain_and_command_names_echoed",
|
| 1144 |
+
"eval.tests.test_get_domains.TestGetDomainsEmpty.test_domain_with_no_commands",
|
| 1145 |
+
"eval.tests.test_get_domains.TestGetDomainsEmpty.test_empty_domains_array_exits_zero",
|
| 1146 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_domain_command_bad_parameter_ignored_in_display",
|
| 1147 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_malformed_protocol_rejected[42]",
|
| 1148 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_malformed_protocol_rejected[[]]",
|
| 1149 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_malformed_protocol_rejected[]",
|
| 1150 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_malformed_protocol_rejected[not-json{]",
|
| 1151 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_malformed_protocol_rejected[null]",
|
| 1152 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_error_mentions_data_bytes",
|
| 1153 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_missing_field_rejected[{\"domains\":\"nope\"}]",
|
| 1154 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_missing_field_rejected[{\"domains\":[{\"commands\":[]}]}]",
|
| 1155 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_missing_field_rejected[{\"domains\":[{\"domain\":\"Runtime\",\"commands\":[{\"p\":1}]}]}]",
|
| 1156 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_missing_field_rejected[{\"domains\":[{\"domain\":\"Runtime\"}]}]",
|
| 1157 |
+
"eval.tests.test_get_domains.TestGetDomainsErrors.test_protocol_missing_field_rejected[{\"foo\":1}]",
|
| 1158 |
+
"eval.tests.test_get_domains.TestGetDomainsScenarios.test_domains_command_order_preserved",
|
| 1159 |
+
"eval.tests.test_get_domains.TestGetDomainsScenarios.test_realistic_minimal_protocol",
|
| 1160 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_command_with_explicit_empty_parameters_array",
|
| 1161 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_command_with_two_parameters_joined_with_comma",
|
| 1162 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_domain_command_names_echoed[evaluateOnCallFrame]",
|
| 1163 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_domain_command_names_echoed[evaluate]",
|
| 1164 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_domain_command_names_echoed[getScriptSource]",
|
| 1165 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_domain_command_names_echoed[releaseObjectGroup]",
|
| 1166 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_fetch_url_printed",
|
| 1167 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_multiple_commands_under_one_domain",
|
| 1168 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_multiple_domains_each_printed",
|
| 1169 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_param_arity_rendering[param_names0]",
|
| 1170 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_param_arity_rendering[param_names1]",
|
| 1171 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_param_arity_rendering[param_names2]",
|
| 1172 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_param_arity_rendering[param_names3]",
|
| 1173 |
+
"eval.tests.test_get_domains.TestGetDomainsSuccess.test_single_domain_single_command_no_params",
|
| 1174 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_command_name_golden_echo[UPPER_case]",
|
| 1175 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_command_name_golden_echo[aB_c.d-e]",
|
| 1176 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_command_name_golden_echo[dot.sep]",
|
| 1177 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_command_name_golden_echo[escap \\xe9]",
|
| 1178 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_command_name_golden_echo[with space]",
|
| 1179 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_empty_domains_exact",
|
| 1180 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_param_join_arity_golden[fn-params0]",
|
| 1181 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_param_join_arity_golden[fn-params1]",
|
| 1182 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_param_join_arity_golden[fn-params2]",
|
| 1183 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_param_join_arity_golden[fn-params3]",
|
| 1184 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_realistic_protocol_exact",
|
| 1185 |
+
"eval.tests.test_golden_domains.TestGoldenDomainsRendering.test_single_domain_single_command_exact",
|
| 1186 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_duplicate_param_names_exact_join",
|
| 1187 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_param_name_chars_preserved[-x]",
|
| 1188 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_param_name_chars_preserved[\\u03c0-x]",
|
| 1189 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_param_name_chars_preserved[left-right]",
|
| 1190 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_param_name_chars_preserved[nested name-other]",
|
| 1191 |
+
"eval.tests.test_golden_domains.TestGoldenParamNameEdge.test_param_name_chars_preserved[x-y,z]",
|
| 1192 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_code_alone_is_error",
|
| 1193 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_custom_payload_alone_is_error",
|
| 1194 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_domains_alone_is_error",
|
| 1195 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_malformed_pid_values[ 42]",
|
| 1196 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_malformed_pid_values[-1]",
|
| 1197 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_malformed_pid_values[0x10]",
|
| 1198 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_malformed_pid_values[1.5]",
|
| 1199 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_malformed_pid_values[]",
|
| 1200 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_no_pid_and_no_search_is_error",
|
| 1201 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_non_numeric_pid_is_rejected",
|
| 1202 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_script_alone_is_error",
|
| 1203 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_unknown_flag_is_clap_error",
|
| 1204 |
+
"eval.tests.test_help_args.TestArgumentValidation.test_version_flag_is_rejected",
|
| 1205 |
+
"eval.tests.test_help_args.TestHelp.test_help_long_lists_all_options",
|
| 1206 |
+
"eval.tests.test_help_args.TestHelp.test_help_mentions_input_methods",
|
| 1207 |
+
"eval.tests.test_help_args.TestHelp.test_help_short_variant",
|
| 1208 |
+
"eval.tests.test_help_args.TestProcessSelectionErrors.test_empty_string_search_matches_any_process",
|
| 1209 |
+
"eval.tests.test_help_args.TestProcessSelectionErrors.test_pid_esrch_reports_signal_failure",
|
| 1210 |
+
"eval.tests.test_help_args.TestProcessSelectionErrors.test_pid_takes_precedence_over_search",
|
| 1211 |
+
"eval.tests.test_help_args.TestProcessSelectionErrors.test_search_filter_is_case_insensitive",
|
| 1212 |
+
"eval.tests.test_help_args.TestProcessSelectionErrors.test_search_no_match_exits_one",
|
| 1213 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_empty_custom_payload_sent_as_empty",
|
| 1214 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_json_scalar_custom_payload_verbatim[ 42 ]",
|
| 1215 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_json_scalar_custom_payload_verbatim[\"quoted-string\"]",
|
| 1216 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_json_scalar_custom_payload_verbatim[3.14]",
|
| 1217 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_json_scalar_custom_payload_verbatim[null]",
|
| 1218 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_non_json_string_custom_payload_verbatim",
|
| 1219 |
+
"eval.tests.test_payload_edge_cases.TestCustomPayloadEdge.test_whitespace_custom_payload_verbatim",
|
| 1220 |
+
"eval.tests.test_payload_edge_cases.TestEmptyCodeExpression.test_code_single_space_expression_preserved",
|
| 1221 |
+
"eval.tests.test_payload_edge_cases.TestEmptyCodeExpression.test_empty_code_sends_empty_expression",
|
| 1222 |
+
"eval.tests.test_payload_edge_cases.TestPollCommandWithoutVariable.test_poll_command_spawned_without_variable",
|
| 1223 |
+
"eval.tests.test_payload_edge_cases.TestPollCommandWithoutVariable.test_poll_command_without_variable_loop_is_echo",
|
| 1224 |
+
"eval.tests.test_response_parse_robustness.TestPollResponseShape.test_id_order_irrelevant",
|
| 1225 |
+
"eval.tests.test_response_parse_robustness.TestPollResponseShape.test_value_at_result_result_only",
|
| 1226 |
+
"eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_result_field_ignored",
|
| 1227 |
+
"eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_top_level_field_ignored",
|
| 1228 |
+
"eval.tests.test_response_parse_robustness.TestUnknownFieldTolerance.test_extra_value_object_with_string_field",
|
| 1229 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_keyword_text_printed[NaN]",
|
| 1230 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_keyword_text_printed[false]",
|
| 1231 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_keyword_text_printed[null]",
|
| 1232 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_keyword_text_printed[true]",
|
| 1233 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_keyword_text_printed[undefined]",
|
| 1234 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_unicode_multibyte_kept",
|
| 1235 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_whitespace_kept[ padded ]",
|
| 1236 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_whitespace_kept[leading]",
|
| 1237 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_whitespace_kept[trailing ]",
|
| 1238 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_with_backslashes_kept",
|
| 1239 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_value_with_tab_kept",
|
| 1240 |
+
"eval.tests.test_response_parse_robustness.TestValueContentVariants.test_very_long_value_printed",
|
| 1241 |
+
"eval.tests.test_responses_parse.TestBinaryFrameResponse.test_binary_poll_response_reported_as_non_text",
|
| 1242 |
+
"eval.tests.test_responses_parse.TestPollCommandPipe.test_poll_command_receives_value_on_stdin",
|
| 1243 |
+
"eval.tests.test_responses_parse.TestPollInterval.test_poll_interval_gates_request_rate",
|
| 1244 |
+
"eval.tests.test_responses_parse.TestPollInterval.test_small_poll_interval_yields_more_requests",
|
| 1245 |
+
"eval.tests.test_responses_parse.TestPollInterval.test_zero_poll_interval_still_produces_frames",
|
| 1246 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_null_value_prints_empty",
|
| 1247 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_numeric_value_printed",
|
| 1248 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_absent_still_runs",
|
| 1249 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_appears_repeatedly_over_time",
|
| 1250 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_no_result_wrapper_runs",
|
| 1251 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[\"quoted\"]",
|
| 1252 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[3.14]",
|
| 1253 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[42]",
|
| 1254 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[a b c]",
|
| 1255 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[hello]",
|
| 1256 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[line1\\nline2]",
|
| 1257 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[mid\"quote]",
|
| 1258 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[this-has-dashes]",
|
| 1259 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_printed[true]",
|
| 1260 |
+
"eval.tests.test_responses_parse.TestPollValueExtraction.test_poll_value_with_newline_printed",
|
| 1261 |
+
"eval.tests.test_responses_parse.TestResponseDisplay.test_raw_text_response_with_value",
|
| 1262 |
+
"eval.tests.test_responses_parse.TestResponseDisplay.test_response_with_numeric_value_displays",
|
| 1263 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_dash_reads_stdin",
|
| 1264 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_sent_verbatim",
|
| 1265 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_single_line_json_equal_verbatim",
|
| 1266 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_stdin_joins_with_newline",
|
| 1267 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_stdin_single_line",
|
| 1268 |
+
"eval.tests.test_runtime_eval.TestCustomPayload.test_custom_payload_valid_json_delivered_as_frame",
|
| 1269 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_default_param_bools_present",
|
| 1270 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_eval_result_printed_as_text",
|
| 1271 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_from_code_flag",
|
| 1272 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_from_script_file",
|
| 1273 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_special_characters_no_escaping_loss",
|
| 1274 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[({}).constructor.constructor('return 1')()]",
|
| 1275 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[0xFF && 'hex']",
|
| 1276 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[1+1]",
|
| 1277 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[JSON.stringify({a:1})]",
|
| 1278 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[Math.sqrt(144)]",
|
| 1279 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[process.version]",
|
| 1280 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_variants[require('fs').readdirSync('.')]",
|
| 1281 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_expression_with_unicode_survives",
|
| 1282 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_first_request_id_is_zero",
|
| 1283 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_large_expression_survives_single_frame",
|
| 1284 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_method_is_runtime_evaluate",
|
| 1285 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_multiline_script_expression",
|
| 1286 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_poll_request_id_constant_after_main",
|
| 1287 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_poll_variable_expression_name",
|
| 1288 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_poll_variable_wraps_in_stringify",
|
| 1289 |
+
"eval.tests.test_runtime_eval.TestRuntimeEvalConstruction.test_very_large_expression_extended_length",
|
| 1290 |
+
"eval.tests.test_scenarios.TestDiscoveryFailureWhetherPortFormats.test_http_instead_of_ws_url_still_connects_attempt",
|
| 1291 |
+
"eval.tests.test_scenarios.TestDiscoverySequencing.test_domains_does_not_require_websocket",
|
| 1292 |
+
"eval.tests.test_scenarios.TestDiscoverySequencing.test_domains_exits_after_printing",
|
| 1293 |
+
"eval.tests.test_scenarios.TestEndToEnd.test_custom_payload_bypasses_discovery_websocket",
|
| 1294 |
+
"eval.tests.test_scenarios.TestEndToEnd.test_full_pipeline_discovery_to_value",
|
| 1295 |
+
"eval.tests.test_scenarios.TestEndToEnd.test_missing_script_file_panics_after_connect"
|
| 1296 |
+
]
|
| 1297 |
+
}
|
| 1298 |
+
},
|
| 1299 |
+
"commit": "6aeeeb5c42fa0d395096ec3c58225086aae17410",
|
| 1300 |
+
"data_source": "synthetic_programgym",
|
| 1301 |
+
"difficulty": "easy",
|
| 1302 |
+
"difficulty_score": 1.6589648426644352,
|
| 1303 |
+
"eval_clean_hashes": [
|
| 1304 |
+
"bb9ab87feb41a1071032ab95a719b42c0884b9f3bb99d9c918249a1397c0c8b4"
|
| 1305 |
+
],
|
| 1306 |
+
"input_record": {
|
| 1307 |
+
"codeql_db_mb": 84.06,
|
| 1308 |
+
"codeql_status": true,
|
| 1309 |
+
"codeql_time": 63.639753273222595,
|
| 1310 |
+
"commit": "6aeeeb5c42fa0d395096ec3c58225086aae17410",
|
| 1311 |
+
"commits": 20,
|
| 1312 |
+
"contributors": 1,
|
| 1313 |
+
"difficulty": "easy",
|
| 1314 |
+
"difficulty_code_lines": 456,
|
| 1315 |
+
"difficulty_has_tests": false,
|
| 1316 |
+
"difficulty_product_code_lines": 456,
|
| 1317 |
+
"difficulty_runtime_deps": 9,
|
| 1318 |
+
"difficulty_score": 1.6589648426644352,
|
| 1319 |
+
"difficulty_test_code_lines": 0,
|
| 1320 |
+
"full_name": "evilsocket/jscythe",
|
| 1321 |
+
"github_stars": 331,
|
| 1322 |
+
"input_codeql_db": "rust_codeql/evilsocket__jscythe",
|
| 1323 |
+
"language": "rs",
|
| 1324 |
+
"pb_match": [
|
| 1325 |
+
{
|
| 1326 |
+
"pb_fullname": "rbakbashev/elfcat",
|
| 1327 |
+
"rank": 903,
|
| 1328 |
+
"similarity": 0.46328645944595337
|
| 1329 |
+
}
|
| 1330 |
+
],
|
| 1331 |
+
"repo_age": 3.93,
|
| 1332 |
+
"repo_path": "rust/evilsocket__jscythe",
|
| 1333 |
+
"rust_channel": "stable",
|
| 1334 |
+
"rust_edition": "2021",
|
| 1335 |
+
"rust_release_date": "2021-10-21",
|
| 1336 |
+
"rust_version": "1.56.0",
|
| 1337 |
+
"rust_version_source": "edition",
|
| 1338 |
+
"source": "commit:6aeeeb5c42fa0d395096ec3c58225086aae17410",
|
| 1339 |
+
"status": "done",
|
| 1340 |
+
"url": "https://github.com/evilsocket/jscythe"
|
| 1341 |
+
},
|
| 1342 |
+
"instance_id": "evilsocket__jscythe.6aeeeb5",
|
| 1343 |
+
"language": "rust",
|
| 1344 |
+
"module_iterations": [
|
| 1345 |
+
{
|
| 1346 |
+
"actual_iterations": 5,
|
| 1347 |
+
"branch_name": "generated_module_01",
|
| 1348 |
+
"iteration_limit": 5,
|
| 1349 |
+
"module_index": 1,
|
| 1350 |
+
"module_kind": "source",
|
| 1351 |
+
"termination_reason": "max_iterations"
|
| 1352 |
+
},
|
| 1353 |
+
{
|
| 1354 |
+
"actual_iterations": 5,
|
| 1355 |
+
"branch_name": "generated_module_02",
|
| 1356 |
+
"iteration_limit": 5,
|
| 1357 |
+
"module_index": 2,
|
| 1358 |
+
"module_kind": "source",
|
| 1359 |
+
"termination_reason": "max_iterations"
|
| 1360 |
+
}
|
| 1361 |
+
],
|
| 1362 |
+
"repository": "evilsocket/jscythe"
|
| 1363 |
+
}
|
evilsocket--jscythe.6aeeeb5/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
|
evilsocket--jscythe.6aeeeb5/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:292fb79d4ba43ea9e7cfe5fa0ff4d7cd4871d80d25596b30407fc7875374db4c
|
| 3 |
+
size 21132
|
evilsocket--sauron.1c9de0c/environment/Dockerfile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 50 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 51 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 52 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 53 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 54 |
+
RUN mkdir -p /home/agent \
|
| 55 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 56 |
+
&& chown agent:agent /workspace/executable \
|
| 57 |
+
&& chmod 111 /workspace/executable
|
| 58 |
+
ENV HOME=/home/agent
|
| 59 |
+
WORKDIR /workspace
|
evilsocket--sauron.1c9de0c/environment/download.sh
ADDED
|
@@ -0,0 +1,1035 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh - ProgramGym download stage for evilsocket/sauron
|
| 3 |
+
#
|
| 4 |
+
# This script is SOURCED (source /source_ro/download.sh), not executed as a
|
| 5 |
+
# child process. It prepares the offline build by fetching every Rust crate
|
| 6 |
+
# dependency at the exact versions pinned by the repository's Cargo.lock, and
|
| 7 |
+
# ensures the single native library (libssl-dev) that the vendored YARA build
|
| 8 |
+
# requires is present. It performs NO compilation of the project.
|
| 9 |
+
#
|
| 10 |
+
# It generates a temporary Cargo.toml and matching Cargo.lock from inline data
|
| 11 |
+
# and runs `cargo fetch --manifest-path "$gen_toml" --locked` against them, so
|
| 12 |
+
# dependency resolution does not depend on any pre-existing repository file.
|
| 13 |
+
|
| 14 |
+
# Read-only mounted repo: never run cargo here.
|
| 15 |
+
# Use a writable scratch dir for the generated manifest and lockfile.
|
| 16 |
+
PB_SCRATCH="${PB_SCRATCH:-/tmp/sauron_download_scratch}"
|
| 17 |
+
mkdir -p "$PB_SCRATCH/src"
|
| 18 |
+
|
| 19 |
+
# ---------------------------------------------------------------------------
|
| 20 |
+
# 1. Native build dependencies.
|
| 21 |
+
# - The vendored YARA build compiles bundled C sources with `cc` and, via
|
| 22 |
+
# bindgen, needs libclang to generate bindings at compile time.
|
| 23 |
+
# - The project README requires libssl-dev, so ensure those headers exist.
|
| 24 |
+
# These are build-time only; the runtime packages are listed in the
|
| 25 |
+
# cleanroom selection file.
|
| 26 |
+
# ---------------------------------------------------------------------------
|
| 27 |
+
export DEBIAN_FRONTEND=noninteractive
|
| 28 |
+
|
| 29 |
+
if ! ls /usr/include/openssl/ssl.h; then
|
| 30 |
+
apt-get update
|
| 31 |
+
apt-get install -y libssl-dev
|
| 32 |
+
fi
|
| 33 |
+
|
| 34 |
+
if ! compgen -G "/usr/lib/x86_64-linux-gnu/libclang-*.so*" > /dev/null; then
|
| 35 |
+
apt-get update
|
| 36 |
+
apt-get install -y libclang-dev
|
| 37 |
+
fi
|
| 38 |
+
|
| 39 |
+
# Make libclang discoverable by clang-sys/bindgen during the offline build.
|
| 40 |
+
export LIBCLANG_PATH="/usr/lib/x86_64-linux-gnu"
|
| 41 |
+
|
| 42 |
+
# ---------------------------------------------------------------------------
|
| 43 |
+
# 2. Generate a temporary Cargo.toml from inline data. It mirrors the repository
|
| 44 |
+
# package so dependency resolution matches the repository exactly.
|
| 45 |
+
# ---------------------------------------------------------------------------
|
| 46 |
+
PB_GEN_MANIFEST="$PB_SCRATCH/Cargo.toml"
|
| 47 |
+
cat > "$PB_GEN_MANIFEST" <<'EOF'
|
| 48 |
+
[package]
|
| 49 |
+
name = "sauron"
|
| 50 |
+
version = "0.1.0"
|
| 51 |
+
edition = "2021"
|
| 52 |
+
description = "Minimalistic cross-platform filesystem monitor and malware scanner using YARA rules."
|
| 53 |
+
authors = ["Simone Margaritelli <evilsocket@gmail.com>"]
|
| 54 |
+
license = "GPL-3.0"
|
| 55 |
+
repository = "https://github.com/evilsocket/sauron"
|
| 56 |
+
|
| 57 |
+
[dependencies]
|
| 58 |
+
clap = {version = "3.2.17", features = ["derive"]}
|
| 59 |
+
log = "0.4.17"
|
| 60 |
+
notify = "4.0.17"
|
| 61 |
+
num_cpus = "1.13.1"
|
| 62 |
+
pretty_env_logger = "0.4.0"
|
| 63 |
+
serde = { version = "1.0.143", features = ["derive"] }
|
| 64 |
+
serde_json = "1.0.83"
|
| 65 |
+
threadpool = "1.8.1"
|
| 66 |
+
walkdir = "2.3.2"
|
| 67 |
+
yara = { version = "0.15.0" }
|
| 68 |
+
yara-sys = { version = "0.15.0", features = ["vendored"] }
|
| 69 |
+
EOF
|
| 70 |
+
|
| 71 |
+
# Provide the stub source file referenced by the default bin target so cargo
|
| 72 |
+
# fetch can validate the manifest. It is never compiled here.
|
| 73 |
+
cat > "$PB_SCRATCH/src/main.rs" <<'EOF'
|
| 74 |
+
fn main() {}
|
| 75 |
+
EOF
|
| 76 |
+
|
| 77 |
+
# ---------------------------------------------------------------------------
|
| 78 |
+
# 3. Generate a matching Cargo.lock from inline data, pinning every transitive
|
| 79 |
+
# dependency to the exact versions used by the repository's offline build.
|
| 80 |
+
# This guarantees the cargo cache holds precisely what build.sh needs.
|
| 81 |
+
# ---------------------------------------------------------------------------
|
| 82 |
+
PB_GEN_LOCK="$PB_SCRATCH/Cargo.lock"
|
| 83 |
+
cat > "$PB_GEN_LOCK" <<'LOCKEOF'
|
| 84 |
+
# This file is automatically @generated by Cargo.
|
| 85 |
+
# It is not intended for manual editing.
|
| 86 |
+
version = 3
|
| 87 |
+
|
| 88 |
+
[[package]]
|
| 89 |
+
name = "aho-corasick"
|
| 90 |
+
version = "0.7.18"
|
| 91 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 92 |
+
checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f"
|
| 93 |
+
dependencies = [
|
| 94 |
+
"memchr",
|
| 95 |
+
]
|
| 96 |
+
|
| 97 |
+
[[package]]
|
| 98 |
+
name = "atty"
|
| 99 |
+
version = "0.2.14"
|
| 100 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 101 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 102 |
+
dependencies = [
|
| 103 |
+
"hermit-abi",
|
| 104 |
+
"libc",
|
| 105 |
+
"winapi 0.3.9",
|
| 106 |
+
]
|
| 107 |
+
|
| 108 |
+
[[package]]
|
| 109 |
+
name = "autocfg"
|
| 110 |
+
version = "1.1.0"
|
| 111 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 112 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 113 |
+
|
| 114 |
+
[[package]]
|
| 115 |
+
name = "bindgen"
|
| 116 |
+
version = "0.60.1"
|
| 117 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 118 |
+
checksum = "062dddbc1ba4aca46de6338e2bf87771414c335f7b2f2036e8f3e9befebf88e6"
|
| 119 |
+
dependencies = [
|
| 120 |
+
"bitflags",
|
| 121 |
+
"cexpr",
|
| 122 |
+
"clang-sys",
|
| 123 |
+
"env_logger 0.9.0",
|
| 124 |
+
"lazy_static",
|
| 125 |
+
"lazycell",
|
| 126 |
+
"log",
|
| 127 |
+
"peeking_take_while",
|
| 128 |
+
"proc-macro2",
|
| 129 |
+
"quote",
|
| 130 |
+
"regex",
|
| 131 |
+
"rustc-hash",
|
| 132 |
+
"shlex",
|
| 133 |
+
"which",
|
| 134 |
+
]
|
| 135 |
+
|
| 136 |
+
[[package]]
|
| 137 |
+
name = "bitflags"
|
| 138 |
+
version = "1.3.2"
|
| 139 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 140 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 141 |
+
|
| 142 |
+
[[package]]
|
| 143 |
+
name = "bstr"
|
| 144 |
+
version = "0.2.17"
|
| 145 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 146 |
+
checksum = "ba3569f383e8f1598449f1a423e72e99569137b47740b1da11ef19af3d5c3223"
|
| 147 |
+
dependencies = [
|
| 148 |
+
"memchr",
|
| 149 |
+
]
|
| 150 |
+
|
| 151 |
+
[[package]]
|
| 152 |
+
name = "cc"
|
| 153 |
+
version = "1.0.73"
|
| 154 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 155 |
+
checksum = "2fff2a6927b3bb87f9595d67196a70493f627687a71d87a0d692242c33f58c11"
|
| 156 |
+
|
| 157 |
+
[[package]]
|
| 158 |
+
name = "cexpr"
|
| 159 |
+
version = "0.6.0"
|
| 160 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 161 |
+
checksum = "6fac387a98bb7c37292057cffc56d62ecb629900026402633ae9160df93a8766"
|
| 162 |
+
dependencies = [
|
| 163 |
+
"nom",
|
| 164 |
+
]
|
| 165 |
+
|
| 166 |
+
[[package]]
|
| 167 |
+
name = "cfg-if"
|
| 168 |
+
version = "0.1.10"
|
| 169 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 170 |
+
checksum = "4785bdd1c96b2a846b2bd7cc02e86b6b3dbf14e7e53446c4f54c92a361040822"
|
| 171 |
+
|
| 172 |
+
[[package]]
|
| 173 |
+
name = "cfg-if"
|
| 174 |
+
version = "1.0.0"
|
| 175 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 176 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 177 |
+
|
| 178 |
+
[[package]]
|
| 179 |
+
name = "clang-sys"
|
| 180 |
+
version = "1.3.3"
|
| 181 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 182 |
+
checksum = "5a050e2153c5be08febd6734e29298e844fdb0fa21aeddd63b4eb7baa106c69b"
|
| 183 |
+
dependencies = [
|
| 184 |
+
"glob",
|
| 185 |
+
"libc",
|
| 186 |
+
"libloading",
|
| 187 |
+
]
|
| 188 |
+
|
| 189 |
+
[[package]]
|
| 190 |
+
name = "clap"
|
| 191 |
+
version = "3.2.17"
|
| 192 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 193 |
+
checksum = "29e724a68d9319343bb3328c9cc2dfde263f4b3142ee1059a9980580171c954b"
|
| 194 |
+
dependencies = [
|
| 195 |
+
"atty",
|
| 196 |
+
"bitflags",
|
| 197 |
+
"clap_derive",
|
| 198 |
+
"clap_lex",
|
| 199 |
+
"indexmap",
|
| 200 |
+
"once_cell",
|
| 201 |
+
"strsim",
|
| 202 |
+
"termcolor",
|
| 203 |
+
"textwrap",
|
| 204 |
+
]
|
| 205 |
+
|
| 206 |
+
[[package]]
|
| 207 |
+
name = "clap_derive"
|
| 208 |
+
version = "3.2.17"
|
| 209 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 210 |
+
checksum = "13547f7012c01ab4a0e8f8967730ada8f9fdf419e8b6c792788f39cf4e46eefa"
|
| 211 |
+
dependencies = [
|
| 212 |
+
"heck",
|
| 213 |
+
"proc-macro-error",
|
| 214 |
+
"proc-macro2",
|
| 215 |
+
"quote",
|
| 216 |
+
"syn",
|
| 217 |
+
]
|
| 218 |
+
|
| 219 |
+
[[package]]
|
| 220 |
+
name = "clap_lex"
|
| 221 |
+
version = "0.2.4"
|
| 222 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 223 |
+
checksum = "2850f2f5a82cbf437dd5af4d49848fbdfc27c157c3d010345776f952765261c5"
|
| 224 |
+
dependencies = [
|
| 225 |
+
"os_str_bytes",
|
| 226 |
+
]
|
| 227 |
+
|
| 228 |
+
[[package]]
|
| 229 |
+
name = "crossbeam-utils"
|
| 230 |
+
version = "0.8.11"
|
| 231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 232 |
+
checksum = "51887d4adc7b564537b15adcfb307936f8075dfcd5f00dde9a9f1d29383682bc"
|
| 233 |
+
dependencies = [
|
| 234 |
+
"cfg-if 1.0.0",
|
| 235 |
+
"once_cell",
|
| 236 |
+
]
|
| 237 |
+
|
| 238 |
+
[[package]]
|
| 239 |
+
name = "either"
|
| 240 |
+
version = "1.7.0"
|
| 241 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 242 |
+
checksum = "3f107b87b6afc2a64fd13cac55fe06d6c8859f12d4b14cbcdd2c67d0976781be"
|
| 243 |
+
|
| 244 |
+
[[package]]
|
| 245 |
+
name = "env_logger"
|
| 246 |
+
version = "0.7.1"
|
| 247 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 248 |
+
checksum = "44533bbbb3bb3c1fa17d9f2e4e38bbbaf8396ba82193c4cb1b6445d711445d36"
|
| 249 |
+
dependencies = [
|
| 250 |
+
"atty",
|
| 251 |
+
"humantime 1.3.0",
|
| 252 |
+
"log",
|
| 253 |
+
"regex",
|
| 254 |
+
"termcolor",
|
| 255 |
+
]
|
| 256 |
+
|
| 257 |
+
[[package]]
|
| 258 |
+
name = "env_logger"
|
| 259 |
+
version = "0.9.0"
|
| 260 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 261 |
+
checksum = "0b2cf0344971ee6c64c31be0d530793fba457d322dfec2810c453d0ef228f9c3"
|
| 262 |
+
dependencies = [
|
| 263 |
+
"atty",
|
| 264 |
+
"humantime 2.1.0",
|
| 265 |
+
"log",
|
| 266 |
+
"regex",
|
| 267 |
+
"termcolor",
|
| 268 |
+
]
|
| 269 |
+
|
| 270 |
+
[[package]]
|
| 271 |
+
name = "filetime"
|
| 272 |
+
version = "0.2.17"
|
| 273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 274 |
+
checksum = "e94a7bbaa59354bc20dd75b67f23e2797b4490e9d6928203fb105c79e448c86c"
|
| 275 |
+
dependencies = [
|
| 276 |
+
"cfg-if 1.0.0",
|
| 277 |
+
"libc",
|
| 278 |
+
"redox_syscall",
|
| 279 |
+
"windows-sys",
|
| 280 |
+
]
|
| 281 |
+
|
| 282 |
+
[[package]]
|
| 283 |
+
name = "fnv"
|
| 284 |
+
version = "1.0.7"
|
| 285 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 286 |
+
checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
|
| 287 |
+
|
| 288 |
+
[[package]]
|
| 289 |
+
name = "fs_extra"
|
| 290 |
+
version = "1.2.0"
|
| 291 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 292 |
+
checksum = "2022715d62ab30faffd124d40b76f4134a550a87792276512b18d63272333394"
|
| 293 |
+
|
| 294 |
+
[[package]]
|
| 295 |
+
name = "fsevent"
|
| 296 |
+
version = "0.4.0"
|
| 297 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 298 |
+
checksum = "5ab7d1bd1bd33cc98b0889831b72da23c0aa4df9cec7e0702f46ecea04b35db6"
|
| 299 |
+
dependencies = [
|
| 300 |
+
"bitflags",
|
| 301 |
+
"fsevent-sys",
|
| 302 |
+
]
|
| 303 |
+
|
| 304 |
+
[[package]]
|
| 305 |
+
name = "fsevent-sys"
|
| 306 |
+
version = "2.0.1"
|
| 307 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 308 |
+
checksum = "f41b048a94555da0f42f1d632e2e19510084fb8e303b0daa2816e733fb3644a0"
|
| 309 |
+
dependencies = [
|
| 310 |
+
"libc",
|
| 311 |
+
]
|
| 312 |
+
|
| 313 |
+
[[package]]
|
| 314 |
+
name = "fuchsia-zircon"
|
| 315 |
+
version = "0.3.3"
|
| 316 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 317 |
+
checksum = "2e9763c69ebaae630ba35f74888db465e49e259ba1bc0eda7d06f4a067615d82"
|
| 318 |
+
dependencies = [
|
| 319 |
+
"bitflags",
|
| 320 |
+
"fuchsia-zircon-sys",
|
| 321 |
+
]
|
| 322 |
+
|
| 323 |
+
[[package]]
|
| 324 |
+
name = "fuchsia-zircon-sys"
|
| 325 |
+
version = "0.3.3"
|
| 326 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 327 |
+
checksum = "3dcaa9ae7725d12cdb85b3ad99a434db70b468c09ded17e012d86b5c1010f7a7"
|
| 328 |
+
|
| 329 |
+
[[package]]
|
| 330 |
+
name = "glob"
|
| 331 |
+
version = "0.3.0"
|
| 332 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 333 |
+
checksum = "9b919933a397b79c37e33b77bb2aa3dc8eb6e165ad809e58ff75bc7db2e34574"
|
| 334 |
+
|
| 335 |
+
[[package]]
|
| 336 |
+
name = "globset"
|
| 337 |
+
version = "0.4.9"
|
| 338 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 339 |
+
checksum = "0a1e17342619edbc21a964c2afbeb6c820c6a2560032872f397bb97ea127bd0a"
|
| 340 |
+
dependencies = [
|
| 341 |
+
"aho-corasick",
|
| 342 |
+
"bstr",
|
| 343 |
+
"fnv",
|
| 344 |
+
"log",
|
| 345 |
+
"regex",
|
| 346 |
+
]
|
| 347 |
+
|
| 348 |
+
[[package]]
|
| 349 |
+
name = "globwalk"
|
| 350 |
+
version = "0.8.1"
|
| 351 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 352 |
+
checksum = "93e3af942408868f6934a7b85134a3230832b9977cf66125df2f9edcfce4ddcc"
|
| 353 |
+
dependencies = [
|
| 354 |
+
"bitflags",
|
| 355 |
+
"ignore",
|
| 356 |
+
"walkdir",
|
| 357 |
+
]
|
| 358 |
+
|
| 359 |
+
[[package]]
|
| 360 |
+
name = "hashbrown"
|
| 361 |
+
version = "0.12.3"
|
| 362 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 363 |
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
| 364 |
+
|
| 365 |
+
[[package]]
|
| 366 |
+
name = "heck"
|
| 367 |
+
version = "0.4.0"
|
| 368 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 369 |
+
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
| 370 |
+
|
| 371 |
+
[[package]]
|
| 372 |
+
name = "hermit-abi"
|
| 373 |
+
version = "0.1.19"
|
| 374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 375 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 376 |
+
dependencies = [
|
| 377 |
+
"libc",
|
| 378 |
+
]
|
| 379 |
+
|
| 380 |
+
[[package]]
|
| 381 |
+
name = "humantime"
|
| 382 |
+
version = "1.3.0"
|
| 383 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 384 |
+
checksum = "df004cfca50ef23c36850aaaa59ad52cc70d0e90243c3c7737a4dd32dc7a3c4f"
|
| 385 |
+
dependencies = [
|
| 386 |
+
"quick-error",
|
| 387 |
+
]
|
| 388 |
+
|
| 389 |
+
[[package]]
|
| 390 |
+
name = "humantime"
|
| 391 |
+
version = "2.1.0"
|
| 392 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 393 |
+
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
| 394 |
+
|
| 395 |
+
[[package]]
|
| 396 |
+
name = "ignore"
|
| 397 |
+
version = "0.4.18"
|
| 398 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 399 |
+
checksum = "713f1b139373f96a2e0ce3ac931cd01ee973c3c5dd7c40c0c2efe96ad2b6751d"
|
| 400 |
+
dependencies = [
|
| 401 |
+
"crossbeam-utils",
|
| 402 |
+
"globset",
|
| 403 |
+
"lazy_static",
|
| 404 |
+
"log",
|
| 405 |
+
"memchr",
|
| 406 |
+
"regex",
|
| 407 |
+
"same-file",
|
| 408 |
+
"thread_local",
|
| 409 |
+
"walkdir",
|
| 410 |
+
"winapi-util",
|
| 411 |
+
]
|
| 412 |
+
|
| 413 |
+
[[package]]
|
| 414 |
+
name = "indexmap"
|
| 415 |
+
version = "1.9.1"
|
| 416 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 417 |
+
checksum = "10a35a97730320ffe8e2d410b5d3b69279b98d2c14bdb8b70ea89ecf7888d41e"
|
| 418 |
+
dependencies = [
|
| 419 |
+
"autocfg",
|
| 420 |
+
"hashbrown",
|
| 421 |
+
]
|
| 422 |
+
|
| 423 |
+
[[package]]
|
| 424 |
+
name = "inotify"
|
| 425 |
+
version = "0.7.1"
|
| 426 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 427 |
+
checksum = "4816c66d2c8ae673df83366c18341538f234a26d65a9ecea5c348b453ac1d02f"
|
| 428 |
+
dependencies = [
|
| 429 |
+
"bitflags",
|
| 430 |
+
"inotify-sys",
|
| 431 |
+
"libc",
|
| 432 |
+
]
|
| 433 |
+
|
| 434 |
+
[[package]]
|
| 435 |
+
name = "inotify-sys"
|
| 436 |
+
version = "0.1.5"
|
| 437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 438 |
+
checksum = "e05c02b5e89bff3b946cedeca278abc628fe811e604f027c45a8aa3cf793d0eb"
|
| 439 |
+
dependencies = [
|
| 440 |
+
"libc",
|
| 441 |
+
]
|
| 442 |
+
|
| 443 |
+
[[package]]
|
| 444 |
+
name = "iovec"
|
| 445 |
+
version = "0.1.4"
|
| 446 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 447 |
+
checksum = "b2b3ea6ff95e175473f8ffe6a7eb7c00d054240321b84c57051175fe3c1e075e"
|
| 448 |
+
dependencies = [
|
| 449 |
+
"libc",
|
| 450 |
+
]
|
| 451 |
+
|
| 452 |
+
[[package]]
|
| 453 |
+
name = "itoa"
|
| 454 |
+
version = "1.0.3"
|
| 455 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 456 |
+
checksum = "6c8af84674fe1f223a982c933a0ee1086ac4d4052aa0fb8060c12c6ad838e754"
|
| 457 |
+
|
| 458 |
+
[[package]]
|
| 459 |
+
name = "kernel32-sys"
|
| 460 |
+
version = "0.2.2"
|
| 461 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 462 |
+
checksum = "7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d"
|
| 463 |
+
dependencies = [
|
| 464 |
+
"winapi 0.2.8",
|
| 465 |
+
"winapi-build",
|
| 466 |
+
]
|
| 467 |
+
|
| 468 |
+
[[package]]
|
| 469 |
+
name = "lazy_static"
|
| 470 |
+
version = "1.4.0"
|
| 471 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 472 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 473 |
+
|
| 474 |
+
[[package]]
|
| 475 |
+
name = "lazycell"
|
| 476 |
+
version = "1.3.0"
|
| 477 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 478 |
+
checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
|
| 479 |
+
|
| 480 |
+
[[package]]
|
| 481 |
+
name = "libc"
|
| 482 |
+
version = "0.2.132"
|
| 483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 484 |
+
checksum = "8371e4e5341c3a96db127eb2465ac681ced4c433e01dd0e938adbef26ba93ba5"
|
| 485 |
+
|
| 486 |
+
[[package]]
|
| 487 |
+
name = "libloading"
|
| 488 |
+
version = "0.7.3"
|
| 489 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 490 |
+
checksum = "efbc0f03f9a775e9f6aed295c6a1ba2253c5757a9e03d55c6caa46a681abcddd"
|
| 491 |
+
dependencies = [
|
| 492 |
+
"cfg-if 1.0.0",
|
| 493 |
+
"winapi 0.3.9",
|
| 494 |
+
]
|
| 495 |
+
|
| 496 |
+
[[package]]
|
| 497 |
+
name = "log"
|
| 498 |
+
version = "0.4.17"
|
| 499 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 500 |
+
checksum = "abb12e687cfb44aa40f41fc3978ef76448f9b6038cad6aef4259d3c095a2382e"
|
| 501 |
+
dependencies = [
|
| 502 |
+
"cfg-if 1.0.0",
|
| 503 |
+
]
|
| 504 |
+
|
| 505 |
+
[[package]]
|
| 506 |
+
name = "memchr"
|
| 507 |
+
version = "2.5.0"
|
| 508 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 509 |
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
| 510 |
+
|
| 511 |
+
[[package]]
|
| 512 |
+
name = "minimal-lexical"
|
| 513 |
+
version = "0.2.1"
|
| 514 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 515 |
+
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
| 516 |
+
|
| 517 |
+
[[package]]
|
| 518 |
+
name = "mio"
|
| 519 |
+
version = "0.6.23"
|
| 520 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 521 |
+
checksum = "4afd66f5b91bf2a3bc13fad0e21caedac168ca4c707504e75585648ae80e4cc4"
|
| 522 |
+
dependencies = [
|
| 523 |
+
"cfg-if 0.1.10",
|
| 524 |
+
"fuchsia-zircon",
|
| 525 |
+
"fuchsia-zircon-sys",
|
| 526 |
+
"iovec",
|
| 527 |
+
"kernel32-sys",
|
| 528 |
+
"libc",
|
| 529 |
+
"log",
|
| 530 |
+
"miow",
|
| 531 |
+
"net2",
|
| 532 |
+
"slab",
|
| 533 |
+
"winapi 0.2.8",
|
| 534 |
+
]
|
| 535 |
+
|
| 536 |
+
[[package]]
|
| 537 |
+
name = "mio-extras"
|
| 538 |
+
version = "2.0.6"
|
| 539 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 540 |
+
checksum = "52403fe290012ce777c4626790c8951324a2b9e3316b3143779c72b029742f19"
|
| 541 |
+
dependencies = [
|
| 542 |
+
"lazycell",
|
| 543 |
+
"log",
|
| 544 |
+
"mio",
|
| 545 |
+
"slab",
|
| 546 |
+
]
|
| 547 |
+
|
| 548 |
+
[[package]]
|
| 549 |
+
name = "miow"
|
| 550 |
+
version = "0.2.2"
|
| 551 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 552 |
+
checksum = "ebd808424166322d4a38da87083bfddd3ac4c131334ed55856112eb06d46944d"
|
| 553 |
+
dependencies = [
|
| 554 |
+
"kernel32-sys",
|
| 555 |
+
"net2",
|
| 556 |
+
"winapi 0.2.8",
|
| 557 |
+
"ws2_32-sys",
|
| 558 |
+
]
|
| 559 |
+
|
| 560 |
+
[[package]]
|
| 561 |
+
name = "net2"
|
| 562 |
+
version = "0.2.37"
|
| 563 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 564 |
+
checksum = "391630d12b68002ae1e25e8f974306474966550ad82dac6886fb8910c19568ae"
|
| 565 |
+
dependencies = [
|
| 566 |
+
"cfg-if 0.1.10",
|
| 567 |
+
"libc",
|
| 568 |
+
"winapi 0.3.9",
|
| 569 |
+
]
|
| 570 |
+
|
| 571 |
+
[[package]]
|
| 572 |
+
name = "nom"
|
| 573 |
+
version = "7.1.1"
|
| 574 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 575 |
+
checksum = "a8903e5a29a317527874d0402f867152a3d21c908bb0b933e416c65e301d4c36"
|
| 576 |
+
dependencies = [
|
| 577 |
+
"memchr",
|
| 578 |
+
"minimal-lexical",
|
| 579 |
+
]
|
| 580 |
+
|
| 581 |
+
[[package]]
|
| 582 |
+
name = "notify"
|
| 583 |
+
version = "4.0.17"
|
| 584 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 585 |
+
checksum = "ae03c8c853dba7bfd23e571ff0cff7bc9dceb40a4cd684cd1681824183f45257"
|
| 586 |
+
dependencies = [
|
| 587 |
+
"bitflags",
|
| 588 |
+
"filetime",
|
| 589 |
+
"fsevent",
|
| 590 |
+
"fsevent-sys",
|
| 591 |
+
"inotify",
|
| 592 |
+
"libc",
|
| 593 |
+
"mio",
|
| 594 |
+
"mio-extras",
|
| 595 |
+
"walkdir",
|
| 596 |
+
"winapi 0.3.9",
|
| 597 |
+
]
|
| 598 |
+
|
| 599 |
+
[[package]]
|
| 600 |
+
name = "num_cpus"
|
| 601 |
+
version = "1.13.1"
|
| 602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 603 |
+
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
|
| 604 |
+
dependencies = [
|
| 605 |
+
"hermit-abi",
|
| 606 |
+
"libc",
|
| 607 |
+
]
|
| 608 |
+
|
| 609 |
+
[[package]]
|
| 610 |
+
name = "once_cell"
|
| 611 |
+
version = "1.13.1"
|
| 612 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 613 |
+
checksum = "074864da206b4973b84eb91683020dbefd6a8c3f0f38e054d93954e891935e4e"
|
| 614 |
+
|
| 615 |
+
[[package]]
|
| 616 |
+
name = "os_str_bytes"
|
| 617 |
+
version = "6.3.0"
|
| 618 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 619 |
+
checksum = "9ff7415e9ae3fff1225851df9e0d9e4e5479f947619774677a63572e55e80eff"
|
| 620 |
+
|
| 621 |
+
[[package]]
|
| 622 |
+
name = "peeking_take_while"
|
| 623 |
+
version = "0.1.2"
|
| 624 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 625 |
+
checksum = "19b17cddbe7ec3f8bc800887bab5e717348c95ea2ca0b1bf0837fb964dc67099"
|
| 626 |
+
|
| 627 |
+
[[package]]
|
| 628 |
+
name = "pretty_env_logger"
|
| 629 |
+
version = "0.4.0"
|
| 630 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 631 |
+
checksum = "926d36b9553851b8b0005f1275891b392ee4d2d833852c417ed025477350fb9d"
|
| 632 |
+
dependencies = [
|
| 633 |
+
"env_logger 0.7.1",
|
| 634 |
+
"log",
|
| 635 |
+
]
|
| 636 |
+
|
| 637 |
+
[[package]]
|
| 638 |
+
name = "proc-macro-error"
|
| 639 |
+
version = "1.0.4"
|
| 640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 641 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 642 |
+
dependencies = [
|
| 643 |
+
"proc-macro-error-attr",
|
| 644 |
+
"proc-macro2",
|
| 645 |
+
"quote",
|
| 646 |
+
"syn",
|
| 647 |
+
"version_check",
|
| 648 |
+
]
|
| 649 |
+
|
| 650 |
+
[[package]]
|
| 651 |
+
name = "proc-macro-error-attr"
|
| 652 |
+
version = "1.0.4"
|
| 653 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 654 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 655 |
+
dependencies = [
|
| 656 |
+
"proc-macro2",
|
| 657 |
+
"quote",
|
| 658 |
+
"version_check",
|
| 659 |
+
]
|
| 660 |
+
|
| 661 |
+
[[package]]
|
| 662 |
+
name = "proc-macro2"
|
| 663 |
+
version = "1.0.43"
|
| 664 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 665 |
+
checksum = "0a2ca2c61bc9f3d74d2886294ab7b9853abd9c1ad903a3ac7815c58989bb7bab"
|
| 666 |
+
dependencies = [
|
| 667 |
+
"unicode-ident",
|
| 668 |
+
]
|
| 669 |
+
|
| 670 |
+
[[package]]
|
| 671 |
+
name = "quick-error"
|
| 672 |
+
version = "1.2.3"
|
| 673 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 674 |
+
checksum = "a1d01941d82fa2ab50be1e79e6714289dd7cde78eba4c074bc5a4374f650dfe0"
|
| 675 |
+
|
| 676 |
+
[[package]]
|
| 677 |
+
name = "quote"
|
| 678 |
+
version = "1.0.21"
|
| 679 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 680 |
+
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
|
| 681 |
+
dependencies = [
|
| 682 |
+
"proc-macro2",
|
| 683 |
+
]
|
| 684 |
+
|
| 685 |
+
[[package]]
|
| 686 |
+
name = "redox_syscall"
|
| 687 |
+
version = "0.2.16"
|
| 688 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 689 |
+
checksum = "fb5a58c1855b4b6819d59012155603f0b22ad30cad752600aadfcb695265519a"
|
| 690 |
+
dependencies = [
|
| 691 |
+
"bitflags",
|
| 692 |
+
]
|
| 693 |
+
|
| 694 |
+
[[package]]
|
| 695 |
+
name = "regex"
|
| 696 |
+
version = "1.6.0"
|
| 697 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 698 |
+
checksum = "4c4eb3267174b8c6c2f654116623910a0fef09c4753f8dd83db29c48a0df988b"
|
| 699 |
+
dependencies = [
|
| 700 |
+
"aho-corasick",
|
| 701 |
+
"memchr",
|
| 702 |
+
"regex-syntax",
|
| 703 |
+
]
|
| 704 |
+
|
| 705 |
+
[[package]]
|
| 706 |
+
name = "regex-syntax"
|
| 707 |
+
version = "0.6.27"
|
| 708 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 709 |
+
checksum = "a3f87b73ce11b1619a3c6332f45341e0047173771e8b8b73f87bfeefb7b56244"
|
| 710 |
+
|
| 711 |
+
[[package]]
|
| 712 |
+
name = "rustc-hash"
|
| 713 |
+
version = "1.1.0"
|
| 714 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 715 |
+
checksum = "08d43f7aa6b08d49f382cde6a7982047c3426db949b1424bc4b7ec9ae12c6ce2"
|
| 716 |
+
|
| 717 |
+
[[package]]
|
| 718 |
+
name = "ryu"
|
| 719 |
+
version = "1.0.11"
|
| 720 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 721 |
+
checksum = "4501abdff3ae82a1c1b477a17252eb69cee9e66eb915c1abaa4f44d873df9f09"
|
| 722 |
+
|
| 723 |
+
[[package]]
|
| 724 |
+
name = "same-file"
|
| 725 |
+
version = "1.0.6"
|
| 726 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 727 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 728 |
+
dependencies = [
|
| 729 |
+
"winapi-util",
|
| 730 |
+
]
|
| 731 |
+
|
| 732 |
+
[[package]]
|
| 733 |
+
name = "sauron"
|
| 734 |
+
version = "0.1.0"
|
| 735 |
+
dependencies = [
|
| 736 |
+
"clap",
|
| 737 |
+
"log",
|
| 738 |
+
"notify",
|
| 739 |
+
"num_cpus",
|
| 740 |
+
"pretty_env_logger",
|
| 741 |
+
"serde",
|
| 742 |
+
"serde_json",
|
| 743 |
+
"threadpool",
|
| 744 |
+
"walkdir",
|
| 745 |
+
"yara",
|
| 746 |
+
"yara-sys",
|
| 747 |
+
]
|
| 748 |
+
|
| 749 |
+
[[package]]
|
| 750 |
+
name = "serde"
|
| 751 |
+
version = "1.0.143"
|
| 752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 753 |
+
checksum = "53e8e5d5b70924f74ff5c6d64d9a5acd91422117c60f48c4e07855238a254553"
|
| 754 |
+
dependencies = [
|
| 755 |
+
"serde_derive",
|
| 756 |
+
]
|
| 757 |
+
|
| 758 |
+
[[package]]
|
| 759 |
+
name = "serde_derive"
|
| 760 |
+
version = "1.0.143"
|
| 761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 762 |
+
checksum = "d3d8e8de557aee63c26b85b947f5e59b690d0454c753f3adeb5cd7835ab88391"
|
| 763 |
+
dependencies = [
|
| 764 |
+
"proc-macro2",
|
| 765 |
+
"quote",
|
| 766 |
+
"syn",
|
| 767 |
+
]
|
| 768 |
+
|
| 769 |
+
[[package]]
|
| 770 |
+
name = "serde_json"
|
| 771 |
+
version = "1.0.83"
|
| 772 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 773 |
+
checksum = "38dd04e3c8279e75b31ef29dbdceebfe5ad89f4d0937213c53f7d49d01b3d5a7"
|
| 774 |
+
dependencies = [
|
| 775 |
+
"itoa",
|
| 776 |
+
"ryu",
|
| 777 |
+
"serde",
|
| 778 |
+
]
|
| 779 |
+
|
| 780 |
+
[[package]]
|
| 781 |
+
name = "shlex"
|
| 782 |
+
version = "1.1.0"
|
| 783 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 784 |
+
checksum = "43b2853a4d09f215c24cc5489c992ce46052d359b5109343cbafbf26bc62f8a3"
|
| 785 |
+
|
| 786 |
+
[[package]]
|
| 787 |
+
name = "slab"
|
| 788 |
+
version = "0.4.7"
|
| 789 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 790 |
+
checksum = "4614a76b2a8be0058caa9dbbaf66d988527d86d003c11a94fbd335d7661edcef"
|
| 791 |
+
dependencies = [
|
| 792 |
+
"autocfg",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "strsim"
|
| 797 |
+
version = "0.10.0"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "syn"
|
| 803 |
+
version = "1.0.99"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "58dbef6ec655055e20b86b15a8cc6d439cca19b667537ac6a1369572d151ab13"
|
| 806 |
+
dependencies = [
|
| 807 |
+
"proc-macro2",
|
| 808 |
+
"quote",
|
| 809 |
+
"unicode-ident",
|
| 810 |
+
]
|
| 811 |
+
|
| 812 |
+
[[package]]
|
| 813 |
+
name = "termcolor"
|
| 814 |
+
version = "1.1.3"
|
| 815 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 816 |
+
checksum = "bab24d30b911b2376f3a13cc2cd443142f0c81dda04c118693e35b3835757755"
|
| 817 |
+
dependencies = [
|
| 818 |
+
"winapi-util",
|
| 819 |
+
]
|
| 820 |
+
|
| 821 |
+
[[package]]
|
| 822 |
+
name = "textwrap"
|
| 823 |
+
version = "0.15.0"
|
| 824 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 825 |
+
checksum = "b1141d4d61095b28419e22cb0bbf02755f5e54e0526f97f1e3d1d160e60885fb"
|
| 826 |
+
|
| 827 |
+
[[package]]
|
| 828 |
+
name = "thiserror"
|
| 829 |
+
version = "1.0.32"
|
| 830 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 831 |
+
checksum = "f5f6586b7f764adc0231f4c79be7b920e766bb2f3e51b3661cdb263828f19994"
|
| 832 |
+
dependencies = [
|
| 833 |
+
"thiserror-impl",
|
| 834 |
+
]
|
| 835 |
+
|
| 836 |
+
[[package]]
|
| 837 |
+
name = "thiserror-impl"
|
| 838 |
+
version = "1.0.32"
|
| 839 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 840 |
+
checksum = "12bafc5b54507e0149cdf1b145a5d80ab80a90bcd9275df43d4fff68460f6c21"
|
| 841 |
+
dependencies = [
|
| 842 |
+
"proc-macro2",
|
| 843 |
+
"quote",
|
| 844 |
+
"syn",
|
| 845 |
+
]
|
| 846 |
+
|
| 847 |
+
[[package]]
|
| 848 |
+
name = "thread_local"
|
| 849 |
+
version = "1.1.4"
|
| 850 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 851 |
+
checksum = "5516c27b78311c50bf42c071425c560ac799b11c30b31f87e3081965fe5e0180"
|
| 852 |
+
dependencies = [
|
| 853 |
+
"once_cell",
|
| 854 |
+
]
|
| 855 |
+
|
| 856 |
+
[[package]]
|
| 857 |
+
name = "threadpool"
|
| 858 |
+
version = "1.8.1"
|
| 859 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 860 |
+
checksum = "d050e60b33d41c19108b32cea32164033a9013fe3b46cbd4457559bfbf77afaa"
|
| 861 |
+
dependencies = [
|
| 862 |
+
"num_cpus",
|
| 863 |
+
]
|
| 864 |
+
|
| 865 |
+
[[package]]
|
| 866 |
+
name = "unicode-ident"
|
| 867 |
+
version = "1.0.3"
|
| 868 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 869 |
+
checksum = "c4f5b37a154999a8f3f98cc23a628d850e154479cd94decf3414696e12e31aaf"
|
| 870 |
+
|
| 871 |
+
[[package]]
|
| 872 |
+
name = "version_check"
|
| 873 |
+
version = "0.9.4"
|
| 874 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 875 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 876 |
+
|
| 877 |
+
[[package]]
|
| 878 |
+
name = "walkdir"
|
| 879 |
+
version = "2.3.2"
|
| 880 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 881 |
+
checksum = "808cf2735cd4b6866113f648b791c6adc5714537bc222d9347bb203386ffda56"
|
| 882 |
+
dependencies = [
|
| 883 |
+
"same-file",
|
| 884 |
+
"winapi 0.3.9",
|
| 885 |
+
"winapi-util",
|
| 886 |
+
]
|
| 887 |
+
|
| 888 |
+
[[package]]
|
| 889 |
+
name = "which"
|
| 890 |
+
version = "4.2.5"
|
| 891 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 892 |
+
checksum = "5c4fb54e6113b6a8772ee41c3404fb0301ac79604489467e0a9ce1f3e97c24ae"
|
| 893 |
+
dependencies = [
|
| 894 |
+
"either",
|
| 895 |
+
"lazy_static",
|
| 896 |
+
"libc",
|
| 897 |
+
]
|
| 898 |
+
|
| 899 |
+
[[package]]
|
| 900 |
+
name = "winapi"
|
| 901 |
+
version = "0.2.8"
|
| 902 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 903 |
+
checksum = "167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a"
|
| 904 |
+
|
| 905 |
+
[[package]]
|
| 906 |
+
name = "winapi"
|
| 907 |
+
version = "0.3.9"
|
| 908 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 909 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 910 |
+
dependencies = [
|
| 911 |
+
"winapi-i686-pc-windows-gnu",
|
| 912 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 913 |
+
]
|
| 914 |
+
|
| 915 |
+
[[package]]
|
| 916 |
+
name = "winapi-build"
|
| 917 |
+
version = "0.1.1"
|
| 918 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 919 |
+
checksum = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc"
|
| 920 |
+
|
| 921 |
+
[[package]]
|
| 922 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 923 |
+
version = "0.4.0"
|
| 924 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 925 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 926 |
+
|
| 927 |
+
[[package]]
|
| 928 |
+
name = "winapi-util"
|
| 929 |
+
version = "0.1.5"
|
| 930 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 931 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 932 |
+
dependencies = [
|
| 933 |
+
"winapi 0.3.9",
|
| 934 |
+
]
|
| 935 |
+
|
| 936 |
+
[[package]]
|
| 937 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 938 |
+
version = "0.4.0"
|
| 939 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 940 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 941 |
+
|
| 942 |
+
[[package]]
|
| 943 |
+
name = "windows-sys"
|
| 944 |
+
version = "0.36.1"
|
| 945 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 946 |
+
checksum = "ea04155a16a59f9eab786fe12a4a450e75cdb175f9e0d80da1e17db09f55b8d2"
|
| 947 |
+
dependencies = [
|
| 948 |
+
"windows_aarch64_msvc",
|
| 949 |
+
"windows_i686_gnu",
|
| 950 |
+
"windows_i686_msvc",
|
| 951 |
+
"windows_x86_64_gnu",
|
| 952 |
+
"windows_x86_64_msvc",
|
| 953 |
+
]
|
| 954 |
+
|
| 955 |
+
[[package]]
|
| 956 |
+
name = "windows_aarch64_msvc"
|
| 957 |
+
version = "0.36.1"
|
| 958 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 959 |
+
checksum = "9bb8c3fd39ade2d67e9874ac4f3db21f0d710bee00fe7cab16949ec184eeaa47"
|
| 960 |
+
|
| 961 |
+
[[package]]
|
| 962 |
+
name = "windows_i686_gnu"
|
| 963 |
+
version = "0.36.1"
|
| 964 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 965 |
+
checksum = "180e6ccf01daf4c426b846dfc66db1fc518f074baa793aa7d9b9aaeffad6a3b6"
|
| 966 |
+
|
| 967 |
+
[[package]]
|
| 968 |
+
name = "windows_i686_msvc"
|
| 969 |
+
version = "0.36.1"
|
| 970 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 971 |
+
checksum = "e2e7917148b2812d1eeafaeb22a97e4813dfa60a3f8f78ebe204bcc88f12f024"
|
| 972 |
+
|
| 973 |
+
[[package]]
|
| 974 |
+
name = "windows_x86_64_gnu"
|
| 975 |
+
version = "0.36.1"
|
| 976 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 977 |
+
checksum = "4dcd171b8776c41b97521e5da127a2d86ad280114807d0b2ab1e462bc764d9e1"
|
| 978 |
+
|
| 979 |
+
[[package]]
|
| 980 |
+
name = "windows_x86_64_msvc"
|
| 981 |
+
version = "0.36.1"
|
| 982 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 983 |
+
checksum = "c811ca4a8c853ef420abd8592ba53ddbbac90410fab6903b3e79972a631f7680"
|
| 984 |
+
|
| 985 |
+
[[package]]
|
| 986 |
+
name = "ws2_32-sys"
|
| 987 |
+
version = "0.2.1"
|
| 988 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 989 |
+
checksum = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e"
|
| 990 |
+
dependencies = [
|
| 991 |
+
"winapi 0.2.8",
|
| 992 |
+
"winapi-build",
|
| 993 |
+
]
|
| 994 |
+
|
| 995 |
+
[[package]]
|
| 996 |
+
name = "yara"
|
| 997 |
+
version = "0.15.0"
|
| 998 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 999 |
+
checksum = "d074589e5e73b199e7fb93da14c84df792f02bcc61dbd1acbd0b967e25d06a17"
|
| 1000 |
+
dependencies = [
|
| 1001 |
+
"bitflags",
|
| 1002 |
+
"lazy_static",
|
| 1003 |
+
"thiserror",
|
| 1004 |
+
"yara-sys",
|
| 1005 |
+
]
|
| 1006 |
+
|
| 1007 |
+
[[package]]
|
| 1008 |
+
name = "yara-sys"
|
| 1009 |
+
version = "0.15.0"
|
| 1010 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1011 |
+
checksum = "a098b42118ac2afb401ce097116239beba0259cabedf2b2794b9b9e04f2e3b88"
|
| 1012 |
+
dependencies = [
|
| 1013 |
+
"bindgen",
|
| 1014 |
+
"cc",
|
| 1015 |
+
"fs_extra",
|
| 1016 |
+
"globwalk",
|
| 1017 |
+
]
|
| 1018 |
+
LOCKEOF
|
| 1019 |
+
|
| 1020 |
+
# ---------------------------------------------------------------------------
|
| 1021 |
+
# 4. Fetch all dependencies at the locked versions. --locked guarantees cargo
|
| 1022 |
+
# downloads exactly the crates the repository's offline build will use.
|
| 1023 |
+
# Running with --manifest-path avoids the read-only /source_ro root.
|
| 1024 |
+
# ---------------------------------------------------------------------------
|
| 1025 |
+
(
|
| 1026 |
+
cd "$PB_SCRATCH"
|
| 1027 |
+
cargo fetch --manifest-path "$PB_GEN_MANIFEST" --locked
|
| 1028 |
+
)
|
| 1029 |
+
|
| 1030 |
+
# ---------------------------------------------------------------------------
|
| 1031 |
+
# 5. Export the environment that build.sh relies on.
|
| 1032 |
+
# CARGO_TARGET_DIR is pinned so build.sh always finds its artifacts.
|
| 1033 |
+
# ---------------------------------------------------------------------------
|
| 1034 |
+
CARGO_TARGET_DIR="${CARGO_TARGET_DIR:-/tmp/sauron_target}"
|
| 1035 |
+
export CARGO_TARGET_DIR
|
evilsocket--sauron.1c9de0c/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:11f9ac4f0fdb5f4e069a4bbb5b200ba512cb4a42a854d6bad8a64219b4e662ea
|
| 3 |
+
size 3788144
|
evilsocket--sauron.1c9de0c/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
|
evilsocket--sauron.1c9de0c/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c974aca0359913bd4818b91539165bdbb8f6098ab7720a2a018970b2c9266fdd
|
| 3 |
+
size 2060
|
evilsocket--sauron.1c9de0c/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
|
evilsocket--sauron.1c9de0c/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
|
evilsocket--sauron.1c9de0c/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/evilsocket--sauron.1c9de0c"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for evilsocket/sauron"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "evilsocket__sauron.1c9de0c"
|
| 32 |
+
repository = "evilsocket/sauron"
|
| 33 |
+
commit = "1c9de0c2e59bf8cd5cbe93015e9cf248cf3e1e6a"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.761326322421457
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 557
|
| 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"
|
evilsocket--sauron.1c9de0c/tests/Dockerfile
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 50 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 51 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 52 |
+
&& mkdir -p /workspace /tests
|
| 53 |
+
|
| 54 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 55 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 56 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 57 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 58 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 59 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 60 |
+
RUN python3 -m pip install --break-system-packages \
|
| 61 |
+
--no-cache-dir --disable-pip-version-check \
|
| 62 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 63 |
+
|
| 64 |
+
COPY test.sh /tests/test.sh
|
| 65 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 66 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 67 |
+
COPY blobs/ /tests/blobs/
|
| 68 |
+
RUN chmod +x /tests/test.sh
|
evilsocket--sauron.1c9de0c/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:5307d40704586181ae8b7541d39b3907bc99a9b33cb4cec602c137efffc83948
|
| 3 |
+
size 22675
|
evilsocket--sauron.1c9de0c/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:be3baaa4e45acd78c23f968cb95527c17d64f7d9c639a9ea67eba4b4e26c9ff7
|
| 3 |
+
size 29627
|
evilsocket--sauron.1c9de0c/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:a6999d3334ac3d2cce702adaa537cd44738ef6cf8cd7442f59c45625b98dbe35
|
| 3 |
+
size 19513
|
evilsocket--sauron.1c9de0c/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:92ba1620af59ebdbd9bd07ac94210c70e1cfb9afeea78df85eebc22d2c287590
|
| 3 |
+
size 21548
|