Datasets:
Upload folder using huggingface_hub (part 14)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +90 -0
- darakian--ddh.aac9046/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- darakian--ddh.aac9046/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- darakian--ddh.aac9046/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- darakian--ddh.aac9046/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- darakian--ddh.aac9046/tests/download.sh +429 -0
- darakian--ddh.aac9046/tests/executable +3 -0
- darakian--ddh.aac9046/tests/harbor_prepare_download_env.sh +37 -0
- darakian--ddh.aac9046/tests/programgym_evaluator.py +1201 -0
- darakian--ddh.aac9046/tests/programgym_task.json +0 -0
- darakian--ddh.aac9046/tests/test.sh +82 -0
- darakian--ddh.aac9046/tests/workspace.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/environment/Dockerfile +60 -0
- darthsim--hivemind.d8b34a0/environment/download.sh +178 -0
- darthsim--hivemind.d8b34a0/environment/executable +3 -0
- darthsim--hivemind.d8b34a0/environment/programgym-go.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/environment/workspace.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/instruction.md +98 -0
- darthsim--hivemind.d8b34a0/solution/solve.sh +33 -0
- darthsim--hivemind.d8b34a0/task.toml +69 -0
- darthsim--hivemind.d8b34a0/tests/Dockerfile +68 -0
- darthsim--hivemind.d8b34a0/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/tests/download.sh +178 -0
- darthsim--hivemind.d8b34a0/tests/executable +3 -0
- darthsim--hivemind.d8b34a0/tests/programgym-go.tar.gz +3 -0
- darthsim--hivemind.d8b34a0/tests/programgym_evaluator.py +1201 -0
- darthsim--hivemind.d8b34a0/tests/programgym_task.json +352 -0
- darthsim--hivemind.d8b34a0/tests/test.sh +82 -0
- darthsim--hivemind.d8b34a0/tests/workspace.tar.gz +3 -0
- datafusion-contrib--bdt.5c6730a/environment/Dockerfile +59 -0
- datafusion-contrib--bdt.5c6730a/environment/download.sh +2820 -0
- datafusion-contrib--bdt.5c6730a/environment/executable +3 -0
- datafusion-contrib--bdt.5c6730a/environment/harbor_prepare_download_env.sh +37 -0
- datafusion-contrib--bdt.5c6730a/environment/workspace.tar.gz +3 -0
- datafusion-contrib--bdt.5c6730a/instruction.md +98 -0
- datafusion-contrib--bdt.5c6730a/solution/solve.sh +33 -0
- datafusion-contrib--bdt.5c6730a/task.toml +69 -0
- datafusion-contrib--bdt.5c6730a/tests/Dockerfile +68 -0
- datafusion-contrib--bdt.5c6730a/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- datafusion-contrib--bdt.5c6730a/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- datafusion-contrib--bdt.5c6730a/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- datafusion-contrib--bdt.5c6730a/tests/download.sh +2820 -0
- datafusion-contrib--bdt.5c6730a/tests/executable +3 -0
- datafusion-contrib--bdt.5c6730a/tests/harbor_prepare_download_env.sh +37 -0
- datafusion-contrib--bdt.5c6730a/tests/programgym_evaluator.py +1201 -0
- datafusion-contrib--bdt.5c6730a/tests/programgym_task.json +0 -0
- datafusion-contrib--bdt.5c6730a/tests/test.sh +82 -0
.gitattributes
CHANGED
|
@@ -621,3 +621,93 @@ danog--php-tokio.006da31/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
| 621 |
dapperdox--dapperdox.e343254/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 622 |
dapperdox--dapperdox.e343254/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 623 |
darakian--ddh.aac9046/environment/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 621 |
dapperdox--dapperdox.e343254/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 622 |
dapperdox--dapperdox.e343254/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 623 |
darakian--ddh.aac9046/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 624 |
+
darakian--ddh.aac9046/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 625 |
+
darthsim--hivemind.d8b34a0/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 626 |
+
darthsim--hivemind.d8b34a0/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 627 |
+
datafusion-contrib--bdt.5c6730a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 628 |
+
datafusion-contrib--bdt.5c6730a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 629 |
+
dave--jennifer.b477ff8/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 630 |
+
dave--jennifer.b477ff8/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 631 |
+
davecheney--httpstat.c64e6de/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 632 |
+
davecheney--httpstat.c64e6de/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 633 |
+
davidrmiller--biosim4.45e808c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 634 |
+
davidrmiller--biosim4.45e808c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 635 |
+
davidschlachter--embedded-struct/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 636 |
+
davidschlachter--embedded-struct/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 637 |
+
dbaranchuk--ivf-hnsw.0388728/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 638 |
+
dbaranchuk--ivf-hnsw.0388728/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 639 |
+
dcoker--biscuit.7650c9c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 640 |
+
dcoker--biscuit.7650c9c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 641 |
+
ddddddeon--a.482f008/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 642 |
+
ddddddeon--a.482f008/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 643 |
+
ddemidov--amgcl.28296c2/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 644 |
+
ddemidov--amgcl.28296c2/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 645 |
+
ddinu--observable.8bb82fd/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 646 |
+
ddinu--observable.8bb82fd/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 647 |
+
ddliu--go-httpclient.fc58daa/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 648 |
+
ddliu--go-httpclient.fc58daa/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 649 |
+
ddtkey--protect-endpoints.f8c9df/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 650 |
+
ddtkey--protect-endpoints.f8c9df/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 651 |
+
deanthompson--ginpprof.6416bba/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 652 |
+
deanthompson--ginpprof.6416bba/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 653 |
+
debris--tiny-keccak.f0fa146/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 654 |
+
debris--tiny-keccak.f0fa146/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 655 |
+
deggja--netfetch.b5355d9/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 656 |
+
deggja--netfetch.b5355d9/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 657 |
+
dellytools--delly.36b3157/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 658 |
+
dellytools--delly.36b3157/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 659 |
+
denandz--fuzzotron.a6b2e13/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 660 |
+
denandz--fuzzotron.a6b2e13/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 661 |
+
dengsgo--fileboy.af275d4/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 662 |
+
dengsgo--fileboy.af275d4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 663 |
+
dengsgo--math-engine.78f211b/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 664 |
+
dengsgo--math-engine.78f211b/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 665 |
+
deroproject--graviton.2c248a5/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 666 |
+
deroproject--graviton.2c248a5/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 667 |
+
detegr--rust-ctrlc.0aed47c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 668 |
+
detegr--rust-ctrlc.0aed47c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 669 |
+
devanshbatham--rayder.9ac9bbf/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 670 |
+
devanshbatham--rayder.9ac9bbf/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 671 |
+
devfeel--mapper.a4153cd/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 672 |
+
devfeel--mapper.a4153cd/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 673 |
+
devoncrawford--video-editing-aut/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 674 |
+
devoncrawford--video-editing-aut/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 675 |
+
dfranx--spirv-vm.3758fd3/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 676 |
+
dfranx--spirv-vm.3758fd3/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 677 |
+
dghubble--sling.01f9e94/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 678 |
+
dghubble--sling.01f9e94/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 679 |
+
dgtal-team--dgtal.1574af9/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 680 |
+
dgtal-team--dgtal.1574af9/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 681 |
+
digitalinblue--celero.02239ea/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 682 |
+
digitalinblue--celero.02239ea/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 683 |
+
dim13--otpauth.821b3c1/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 684 |
+
dim13--otpauth.821b3c1/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 685 |
+
dingoblog--dingo.6a7966f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 686 |
+
dingoblog--dingo.6a7966f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 687 |
+
divan--expvarmon.8e0b3d2/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 688 |
+
divan--expvarmon.8e0b3d2/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 689 |
+
dixonwille--wmenu.09d89f6/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 690 |
+
dixonwille--wmenu.09d89f6/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 691 |
+
djc--instant-distance.1335a18/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 692 |
+
djc--instant-distance.1335a18/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 693 |
+
djrbliss--loki.784e86f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 694 |
+
djrbliss--loki.784e86f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 695 |
+
dmarkham--enumer.5dae614/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 696 |
+
dmarkham--enumer.5dae614/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 697 |
+
dmfutcher--git-s3-push.f6ef37f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 698 |
+
dmfutcher--git-s3-push.f6ef37f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 699 |
+
dmlc--difacto.78e3562/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 700 |
+
dmlc--difacto.78e3562/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 701 |
+
dnaeon--gru.4c9792f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 702 |
+
dnaeon--gru.4c9792f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 703 |
+
dnlmlr--cargo-clean-all.70610d5/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 704 |
+
dnlmlr--cargo-clean-all.70610d5/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 705 |
+
do-say-go--discohash.b906c6b/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 706 |
+
do-say-go--discohash.b906c6b/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 707 |
+
docker--docker-credential-helper/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 708 |
+
docker--docker-credential-helper/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 709 |
+
docopt--docopt.cpp.05d507d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 710 |
+
docopt--docopt.cpp.05d507d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 711 |
+
dongjing3309--gtsam-examples.c9c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 712 |
+
dongjing3309--gtsam-examples.c9c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 713 |
+
donuts-are-good--bearclaw.c86f29/environment/executable filter=lfs diff=lfs merge=lfs -text
|
darakian--ddh.aac9046/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:a9ead59e8b7edd2ef7c9dca8aad0840d348bec507270c82ec01d2de1df307869
|
| 3 |
+
size 19712
|
darakian--ddh.aac9046/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:a8585c7225c38910490873ffe19a9e7a80bccae89bb4c1d849d0b8eaff9b2cde
|
| 3 |
+
size 28016
|
darakian--ddh.aac9046/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:17aef4c315b98267b983c4d94553e01d2ec8c8cad394ef7df71770567780185f
|
| 3 |
+
size 25699
|
darakian--ddh.aac9046/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:ceefdf0148720117c6c08079cea2658300d743e8e07b4d28f075ba2107144f7b
|
| 3 |
+
size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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# ProgramGym download stage for ddh.
|
| 2 |
+
# Populates the shared Cargo registry cache in $CARGO_HOME with every crate
|
| 3 |
+
# that build.sh needs for the offline `cargo build --offline`. Does NOT compile.
|
| 4 |
+
#
|
| 5 |
+
# This file is standalone: it must not read any repository file. All manifest
|
| 6 |
+
# and lockfile content is embedded inline below. It is sourced (not executed)
|
| 7 |
+
# from /source_ro, so keep env in the current shell, avoid positional args, and
|
| 8 |
+
# never call exit() in normal control flow.
|
| 9 |
+
#
|
| 10 |
+
# Responsibilities are kept strict: this script only prefetches the dependency
|
| 11 |
+
# cache; compilation is left entirely to build.sh.
|
| 12 |
+
|
| 13 |
+
set -e
|
| 14 |
+
set -u
|
| 15 |
+
|
| 16 |
+
# --- Generate a temporary Cargo project mirroring ddh's dependency graph ---
|
| 17 |
+
# The generated root package is named "ddh" at version 0.12.0 (matching the
|
| 18 |
+
# embedded Cargo.lock root) and every direct dependency is pinned with "=" to
|
| 19 |
+
# its exact locked version, so `cargo fetch --locked` resolves to exactly the
|
| 20 |
+
# versions that the offline build in build.sh (against the repo's own lockfile)
|
| 21 |
+
# will require.
|
| 22 |
+
PB_FETCH_DIR="${TMPDIR:-/tmp}/pb_ddh_fetch"
|
| 23 |
+
mkdir -p "$PB_FETCH_DIR/src"
|
| 24 |
+
|
| 25 |
+
cat > "$PB_FETCH_DIR/Cargo.toml" <<'TOML'
|
| 26 |
+
[package]
|
| 27 |
+
name = "ddh"
|
| 28 |
+
version = "0.12.0"
|
| 29 |
+
edition = "2018"
|
| 30 |
+
|
| 31 |
+
[dependencies]
|
| 32 |
+
clap = { version = "=4.0.23", features = ["derive"] }
|
| 33 |
+
rayon = "=1.5.1"
|
| 34 |
+
serde = "=1.0.135"
|
| 35 |
+
serde_json = "=1.0.78"
|
| 36 |
+
siphasher = "=0.3.9"
|
| 37 |
+
nohash-hasher = "=0.2.0"
|
| 38 |
+
TOML
|
| 39 |
+
|
| 40 |
+
# Stub lib target so the generated manifest has a resolvable root package for fetch.
|
| 41 |
+
cat > "$PB_FETCH_DIR/src/lib.rs" <<'RS'
|
| 42 |
+
// stub: download stage only fetches dependencies, never compiles
|
| 43 |
+
RS
|
| 44 |
+
|
| 45 |
+
# --- Embedded Cargo.lock (pins every transitive dependency version/checksum) ---
|
| 46 |
+
cat > "$PB_FETCH_DIR/Cargo.lock" <<'LOCK'
|
| 47 |
+
# This file is automatically @generated by Cargo.
|
| 48 |
+
# It is not intended for manual editing.
|
| 49 |
+
version = 3
|
| 50 |
+
|
| 51 |
+
[[package]]
|
| 52 |
+
name = "atty"
|
| 53 |
+
version = "0.2.14"
|
| 54 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 55 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 56 |
+
dependencies = [
|
| 57 |
+
"hermit-abi",
|
| 58 |
+
"libc",
|
| 59 |
+
"winapi",
|
| 60 |
+
]
|
| 61 |
+
|
| 62 |
+
[[package]]
|
| 63 |
+
name = "autocfg"
|
| 64 |
+
version = "1.0.1"
|
| 65 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 66 |
+
checksum = "cdb031dd78e28731d87d56cc8ffef4a8f36ca26c38fe2de700543e627f8a464a"
|
| 67 |
+
|
| 68 |
+
[[package]]
|
| 69 |
+
name = "bitflags"
|
| 70 |
+
version = "1.3.2"
|
| 71 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 72 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 73 |
+
|
| 74 |
+
[[package]]
|
| 75 |
+
name = "cfg-if"
|
| 76 |
+
version = "1.0.0"
|
| 77 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 78 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 79 |
+
|
| 80 |
+
[[package]]
|
| 81 |
+
name = "clap"
|
| 82 |
+
version = "4.0.23"
|
| 83 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 84 |
+
checksum = "0eb41c13df48950b20eb4cd0eefa618819469df1bffc49d11e8487c4ba0037e5"
|
| 85 |
+
dependencies = [
|
| 86 |
+
"atty",
|
| 87 |
+
"bitflags",
|
| 88 |
+
"clap_derive",
|
| 89 |
+
"clap_lex",
|
| 90 |
+
"once_cell",
|
| 91 |
+
"strsim",
|
| 92 |
+
"termcolor",
|
| 93 |
+
]
|
| 94 |
+
|
| 95 |
+
[[package]]
|
| 96 |
+
name = "clap_derive"
|
| 97 |
+
version = "4.0.21"
|
| 98 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 99 |
+
checksum = "0177313f9f02afc995627906bbd8967e2be069f5261954222dac78290c2b9014"
|
| 100 |
+
dependencies = [
|
| 101 |
+
"heck",
|
| 102 |
+
"proc-macro-error",
|
| 103 |
+
"proc-macro2",
|
| 104 |
+
"quote",
|
| 105 |
+
"syn",
|
| 106 |
+
]
|
| 107 |
+
|
| 108 |
+
[[package]]
|
| 109 |
+
name = "clap_lex"
|
| 110 |
+
version = "0.3.0"
|
| 111 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 112 |
+
checksum = "0d4198f73e42b4936b35b5bb248d81d2b595ecb170da0bac7655c54eedfa8da8"
|
| 113 |
+
dependencies = [
|
| 114 |
+
"os_str_bytes",
|
| 115 |
+
]
|
| 116 |
+
|
| 117 |
+
[[package]]
|
| 118 |
+
name = "crossbeam-channel"
|
| 119 |
+
version = "0.5.2"
|
| 120 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 121 |
+
checksum = "e54ea8bc3fb1ee042f5aace6e3c6e025d3874866da222930f70ce62aceba0bfa"
|
| 122 |
+
dependencies = [
|
| 123 |
+
"cfg-if",
|
| 124 |
+
"crossbeam-utils",
|
| 125 |
+
]
|
| 126 |
+
|
| 127 |
+
[[package]]
|
| 128 |
+
name = "crossbeam-deque"
|
| 129 |
+
version = "0.8.1"
|
| 130 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 131 |
+
checksum = "6455c0ca19f0d2fbf751b908d5c55c1f5cbc65e03c4225427254b46890bdde1e"
|
| 132 |
+
dependencies = [
|
| 133 |
+
"cfg-if",
|
| 134 |
+
"crossbeam-epoch",
|
| 135 |
+
"crossbeam-utils",
|
| 136 |
+
]
|
| 137 |
+
|
| 138 |
+
[[package]]
|
| 139 |
+
name = "crossbeam-epoch"
|
| 140 |
+
version = "0.9.6"
|
| 141 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 142 |
+
checksum = "97242a70df9b89a65d0b6df3c4bf5b9ce03c5b7309019777fbde37e7537f8762"
|
| 143 |
+
dependencies = [
|
| 144 |
+
"cfg-if",
|
| 145 |
+
"crossbeam-utils",
|
| 146 |
+
"lazy_static",
|
| 147 |
+
"memoffset",
|
| 148 |
+
"scopeguard",
|
| 149 |
+
]
|
| 150 |
+
|
| 151 |
+
[[package]]
|
| 152 |
+
name = "crossbeam-utils"
|
| 153 |
+
version = "0.8.12"
|
| 154 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 155 |
+
checksum = "edbafec5fa1f196ca66527c1b12c2ec4745ca14b50f1ad8f9f6f720b55d11fac"
|
| 156 |
+
dependencies = [
|
| 157 |
+
"cfg-if",
|
| 158 |
+
]
|
| 159 |
+
|
| 160 |
+
[[package]]
|
| 161 |
+
name = "ddh"
|
| 162 |
+
version = "0.12.0"
|
| 163 |
+
dependencies = [
|
| 164 |
+
"clap",
|
| 165 |
+
"nohash-hasher",
|
| 166 |
+
"rayon",
|
| 167 |
+
"serde",
|
| 168 |
+
"serde_json",
|
| 169 |
+
"siphasher",
|
| 170 |
+
]
|
| 171 |
+
|
| 172 |
+
[[package]]
|
| 173 |
+
name = "either"
|
| 174 |
+
version = "1.6.1"
|
| 175 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 176 |
+
checksum = "e78d4f1cc4ae33bbfc157ed5d5a5ef3bc29227303d595861deb238fcec4e9457"
|
| 177 |
+
|
| 178 |
+
[[package]]
|
| 179 |
+
name = "heck"
|
| 180 |
+
version = "0.4.0"
|
| 181 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 182 |
+
checksum = "2540771e65fc8cb83cd6e8a237f70c319bd5c29f78ed1084ba5d50eeac86f7f9"
|
| 183 |
+
|
| 184 |
+
[[package]]
|
| 185 |
+
name = "hermit-abi"
|
| 186 |
+
version = "0.1.19"
|
| 187 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 188 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 189 |
+
dependencies = [
|
| 190 |
+
"libc",
|
| 191 |
+
]
|
| 192 |
+
|
| 193 |
+
[[package]]
|
| 194 |
+
name = "itoa"
|
| 195 |
+
version = "1.0.1"
|
| 196 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 197 |
+
checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35"
|
| 198 |
+
|
| 199 |
+
[[package]]
|
| 200 |
+
name = "lazy_static"
|
| 201 |
+
version = "1.4.0"
|
| 202 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 203 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 204 |
+
|
| 205 |
+
[[package]]
|
| 206 |
+
name = "libc"
|
| 207 |
+
version = "0.2.113"
|
| 208 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 209 |
+
checksum = "eef78b64d87775463c549fbd80e19249ef436ea3bf1de2a1eb7e717ec7fab1e9"
|
| 210 |
+
|
| 211 |
+
[[package]]
|
| 212 |
+
name = "memoffset"
|
| 213 |
+
version = "0.6.5"
|
| 214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 215 |
+
checksum = "5aa361d4faea93603064a027415f07bd8e1d5c88c9fbf68bf56a285428fd79ce"
|
| 216 |
+
dependencies = [
|
| 217 |
+
"autocfg",
|
| 218 |
+
]
|
| 219 |
+
|
| 220 |
+
[[package]]
|
| 221 |
+
name = "nohash-hasher"
|
| 222 |
+
version = "0.2.0"
|
| 223 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 224 |
+
checksum = "2bf50223579dc7cdcfb3bfcacf7069ff68243f8c363f62ffa99cf000a6b9c451"
|
| 225 |
+
|
| 226 |
+
[[package]]
|
| 227 |
+
name = "num_cpus"
|
| 228 |
+
version = "1.13.1"
|
| 229 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 230 |
+
checksum = "19e64526ebdee182341572e50e9ad03965aa510cd94427a4549448f285e957a1"
|
| 231 |
+
dependencies = [
|
| 232 |
+
"hermit-abi",
|
| 233 |
+
"libc",
|
| 234 |
+
]
|
| 235 |
+
|
| 236 |
+
[[package]]
|
| 237 |
+
name = "once_cell"
|
| 238 |
+
version = "1.16.0"
|
| 239 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 240 |
+
checksum = "86f0b0d4bf799edbc74508c1e8bf170ff5f41238e5f8225603ca7caaae2b7860"
|
| 241 |
+
|
| 242 |
+
[[package]]
|
| 243 |
+
name = "os_str_bytes"
|
| 244 |
+
version = "6.0.0"
|
| 245 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 246 |
+
checksum = "8e22443d1643a904602595ba1cd8f7d896afe56d26712531c5ff73a15b2fbf64"
|
| 247 |
+
|
| 248 |
+
[[package]]
|
| 249 |
+
name = "proc-macro-error"
|
| 250 |
+
version = "1.0.4"
|
| 251 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 252 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 253 |
+
dependencies = [
|
| 254 |
+
"proc-macro-error-attr",
|
| 255 |
+
"proc-macro2",
|
| 256 |
+
"quote",
|
| 257 |
+
"syn",
|
| 258 |
+
"version_check",
|
| 259 |
+
]
|
| 260 |
+
|
| 261 |
+
[[package]]
|
| 262 |
+
name = "proc-macro-error-attr"
|
| 263 |
+
version = "1.0.4"
|
| 264 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 265 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 266 |
+
dependencies = [
|
| 267 |
+
"proc-macro2",
|
| 268 |
+
"quote",
|
| 269 |
+
"version_check",
|
| 270 |
+
]
|
| 271 |
+
|
| 272 |
+
[[package]]
|
| 273 |
+
name = "proc-macro2"
|
| 274 |
+
version = "1.0.47"
|
| 275 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 276 |
+
checksum = "5ea3d908b0e36316caf9e9e2c4625cdde190a7e6f440d794667ed17a1855e725"
|
| 277 |
+
dependencies = [
|
| 278 |
+
"unicode-ident",
|
| 279 |
+
]
|
| 280 |
+
|
| 281 |
+
[[package]]
|
| 282 |
+
name = "quote"
|
| 283 |
+
version = "1.0.21"
|
| 284 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 285 |
+
checksum = "bbe448f377a7d6961e30f5955f9b8d106c3f5e449d493ee1b125c1d43c2b5179"
|
| 286 |
+
dependencies = [
|
| 287 |
+
"proc-macro2",
|
| 288 |
+
]
|
| 289 |
+
|
| 290 |
+
[[package]]
|
| 291 |
+
name = "rayon"
|
| 292 |
+
version = "1.5.1"
|
| 293 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 294 |
+
checksum = "c06aca804d41dbc8ba42dfd964f0d01334eceb64314b9ecf7c5fad5188a06d90"
|
| 295 |
+
dependencies = [
|
| 296 |
+
"autocfg",
|
| 297 |
+
"crossbeam-deque",
|
| 298 |
+
"either",
|
| 299 |
+
"rayon-core",
|
| 300 |
+
]
|
| 301 |
+
|
| 302 |
+
[[package]]
|
| 303 |
+
name = "rayon-core"
|
| 304 |
+
version = "1.9.1"
|
| 305 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 306 |
+
checksum = "d78120e2c850279833f1dd3582f730c4ab53ed95aeaaaa862a2a5c71b1656d8e"
|
| 307 |
+
dependencies = [
|
| 308 |
+
"crossbeam-channel",
|
| 309 |
+
"crossbeam-deque",
|
| 310 |
+
"crossbeam-utils",
|
| 311 |
+
"lazy_static",
|
| 312 |
+
"num_cpus",
|
| 313 |
+
]
|
| 314 |
+
|
| 315 |
+
[[package]]
|
| 316 |
+
name = "ryu"
|
| 317 |
+
version = "1.0.9"
|
| 318 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 319 |
+
checksum = "73b4b750c782965c211b42f022f59af1fbceabdd026623714f104152f1ec149f"
|
| 320 |
+
|
| 321 |
+
[[package]]
|
| 322 |
+
name = "scopeguard"
|
| 323 |
+
version = "1.1.0"
|
| 324 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 325 |
+
checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd"
|
| 326 |
+
|
| 327 |
+
[[package]]
|
| 328 |
+
name = "serde"
|
| 329 |
+
version = "1.0.135"
|
| 330 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 331 |
+
checksum = "2cf9235533494ea2ddcdb794665461814781c53f19d87b76e571a1c35acbad2b"
|
| 332 |
+
|
| 333 |
+
[[package]]
|
| 334 |
+
name = "serde_json"
|
| 335 |
+
version = "1.0.78"
|
| 336 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 337 |
+
checksum = "d23c1ba4cf0efd44be32017709280b32d1cea5c3f1275c3b6d9e8bc54f758085"
|
| 338 |
+
dependencies = [
|
| 339 |
+
"itoa",
|
| 340 |
+
"ryu",
|
| 341 |
+
"serde",
|
| 342 |
+
]
|
| 343 |
+
|
| 344 |
+
[[package]]
|
| 345 |
+
name = "siphasher"
|
| 346 |
+
version = "0.3.9"
|
| 347 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 348 |
+
checksum = "a86232ab60fa71287d7f2ddae4a7073f6b7aac33631c3015abb556f08c6d0a3e"
|
| 349 |
+
|
| 350 |
+
[[package]]
|
| 351 |
+
name = "strsim"
|
| 352 |
+
version = "0.10.0"
|
| 353 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 354 |
+
checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
|
| 355 |
+
|
| 356 |
+
[[package]]
|
| 357 |
+
name = "syn"
|
| 358 |
+
version = "1.0.103"
|
| 359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 360 |
+
checksum = "a864042229133ada95abf3b54fdc62ef5ccabe9515b64717bcb9a1919e59445d"
|
| 361 |
+
dependencies = [
|
| 362 |
+
"proc-macro2",
|
| 363 |
+
"quote",
|
| 364 |
+
"unicode-ident",
|
| 365 |
+
]
|
| 366 |
+
|
| 367 |
+
[[package]]
|
| 368 |
+
name = "termcolor"
|
| 369 |
+
version = "1.1.2"
|
| 370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 371 |
+
checksum = "2dfed899f0eb03f32ee8c6a0aabdb8a7949659e3466561fc0adf54e26d88c5f4"
|
| 372 |
+
dependencies = [
|
| 373 |
+
"winapi-util",
|
| 374 |
+
]
|
| 375 |
+
|
| 376 |
+
[[package]]
|
| 377 |
+
name = "unicode-ident"
|
| 378 |
+
version = "1.0.5"
|
| 379 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 380 |
+
checksum = "6ceab39d59e4c9499d4e5a8ee0e2735b891bb7308ac83dfb4e80cad195c9f6f3"
|
| 381 |
+
|
| 382 |
+
[[package]]
|
| 383 |
+
name = "version_check"
|
| 384 |
+
version = "0.9.4"
|
| 385 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 386 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 387 |
+
|
| 388 |
+
[[package]]
|
| 389 |
+
name = "winapi"
|
| 390 |
+
version = "0.3.9"
|
| 391 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 392 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 393 |
+
dependencies = [
|
| 394 |
+
"winapi-i686-pc-windows-gnu",
|
| 395 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 396 |
+
]
|
| 397 |
+
|
| 398 |
+
[[package]]
|
| 399 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 400 |
+
version = "0.4.0"
|
| 401 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 402 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 403 |
+
|
| 404 |
+
[[package]]
|
| 405 |
+
name = "winapi-util"
|
| 406 |
+
version = "0.1.5"
|
| 407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 408 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 409 |
+
dependencies = [
|
| 410 |
+
"winapi",
|
| 411 |
+
]
|
| 412 |
+
|
| 413 |
+
[[package]]
|
| 414 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 415 |
+
version = "0.4.0"
|
| 416 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 417 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 418 |
+
LOCK
|
| 419 |
+
|
| 420 |
+
# --- Prefetch the dependency cache using the generated manifest+lock ---
|
| 421 |
+
# --locked with the exact-pinned manifest reproduces the repo's locked versions,
|
| 422 |
+
# so the offline build in build.sh finds every needed crate in the cache.
|
| 423 |
+
cargo fetch --manifest-path "$PB_FETCH_DIR/Cargo.toml" --locked
|
| 424 |
+
|
| 425 |
+
# --- Idempotency / offline handshake for build.sh ---
|
| 426 |
+
# Tell build.sh it may build without network. The registry cache above is
|
| 427 |
+
# already live for the offline build because both stages share $CARGO_HOME.
|
| 428 |
+
export CARGO_NET_OFFLINE=true
|
| 429 |
+
export PB_DDH_DEPS_READY=1
|
darakian--ddh.aac9046/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9a83b15dc54c1ee05d6d8bf1945e52734cde32d967e2f912718425bed42b14e1
|
| 3 |
+
size 1361400
|
darakian--ddh.aac9046/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
|
darakian--ddh.aac9046/tests/programgym_evaluator.py
ADDED
|
@@ -0,0 +1,1201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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()
|
darakian--ddh.aac9046/tests/programgym_task.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
darakian--ddh.aac9046/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
|
darakian--ddh.aac9046/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf626a1cfdd2986d9ea62c07d318cc4d9c7438954f68ab15d50643888a35e5ad
|
| 3 |
+
size 1783
|
darthsim--hivemind.d8b34a0/environment/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:24.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 14 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 15 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 16 |
+
ENV npm_config_strict_ssl=false
|
| 17 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 18 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 19 |
+
ENV PIP_EXTRA_INDEX_URL=https://pypi.org/simple
|
| 20 |
+
ENV PIP_TRUSTED_HOST=""
|
| 21 |
+
ENV HOME=/workspace
|
| 22 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 23 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 24 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 25 |
+
ENV GOROOT=/usr/local/go
|
| 26 |
+
ENV GOPATH=/workspace/.go
|
| 27 |
+
ENV GOCACHE=/workspace/.cache/go-build
|
| 28 |
+
ENV PIP_BREAK_SYSTEM_PACKAGES=1
|
| 29 |
+
ENV PATH=/opt/programgym-venv/bin:/usr/local/go/bin:/workspace/.go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 30 |
+
ENV PAGER=cat
|
| 31 |
+
ENV MANPAGER=cat
|
| 32 |
+
ENV LESS=-R
|
| 33 |
+
ENV TQDM_DISABLE=1
|
| 34 |
+
ENV VIRTUAL_ENV=/opt/programgym-venv
|
| 35 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip curl wget xz-utils unzip zip bzip2 zstd patch file binutils python3-venv tar && rm -rf /var/lib/apt/lists/*
|
| 36 |
+
COPY programgym-go.tar.gz /tmp/programgym-go.tar.gz
|
| 37 |
+
RUN set -eux; rm -rf /usr/local/go; tar -C /usr/local -xzf /tmp/programgym-go.tar.gz; rm -f /tmp/programgym-go.tar.gz; if [ ! -x /usr/local/go/bin/go ]; then echo "official Go tarball did not create /usr/local/go/bin/go" >&2; exit 1; fi; /usr/local/go/bin/go version
|
| 38 |
+
RUN python3 -m venv /opt/programgym-venv && /opt/programgym-venv/bin/python -m pip install --no-cache-dir --only-binary=:all: pytest pytest-xdist coverage
|
| 39 |
+
WORKDIR /workspace
|
| 40 |
+
ADD workspace.tar.gz /workspace/
|
| 41 |
+
COPY executable /workspace/executable
|
| 42 |
+
COPY download.sh /workspace/download.sh
|
| 43 |
+
RUN chmod 755 /workspace/download.sh
|
| 44 |
+
RUN ["bash","-lc","set -euo pipefail; cd /workspace; set -a; source /workspace/download.sh; set +a; python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh\nimport os\nimport re\nimport shlex\nignored = {\"OLDPWD\", \"PWD\", \"SHLVL\", \"_\"}\nvalid_name = re.compile(r\"^[A-Za-z_][A-Za-z0-9_]*$\")\nfor key in sorted(os.environ):\n if key in ignored or key.startswith(\"BASH_FUNC_\") or not valid_name.fullmatch(key):\n continue\n value = os.environ[key]\n if \"\\n\" in value:\n continue\n print(f\"export {key}={shlex.quote(value)}\")\nPY\n"]
|
| 45 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 46 |
+
RUN chmod 111 /workspace/executable
|
| 47 |
+
WORKDIR /workspace
|
| 48 |
+
# programgym-runtime-workspace-cleanup: v1
|
| 49 |
+
RUN ["bash","-lc","rm -f -- /workspace/download.sh /workspace/reference/build.sh && rm -rf -- /workspace/.programgym_build_env"]
|
| 50 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 51 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 52 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 53 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 54 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 55 |
+
RUN mkdir -p /home/agent \
|
| 56 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 57 |
+
&& chown agent:agent /workspace/executable \
|
| 58 |
+
&& chmod 111 /workspace/executable
|
| 59 |
+
ENV HOME=/home/agent
|
| 60 |
+
WORKDIR /workspace
|
darthsim--hivemind.d8b34a0/environment/download.sh
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module github.com/DarthSim/hivemind
|
| 9 |
+
|
| 10 |
+
go 1.12
|
| 11 |
+
|
| 12 |
+
require (
|
| 13 |
+
github.com/DarthSim/godotenv v1.3.1
|
| 14 |
+
github.com/joho/godotenv v1.4.0 // indirect
|
| 15 |
+
github.com/pkg/term v1.2.0-beta.2
|
| 16 |
+
github.com/urfave/cli v1.22.5
|
| 17 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
|
| 18 |
+
)
|
| 19 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 20 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
|
| 21 |
+
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
| 22 |
+
github.com/DarthSim/godotenv v1.3.1 h1:NMWdswlRx2M9uPY4Ux8p/Q/rDs7A97OG89fECiQ/Tz0=
|
| 23 |
+
github.com/DarthSim/godotenv v1.3.1/go.mod h1:B3ySe1HYTUFFR6+TPyHyxPWjUdh48il0Blebg9p1cCc=
|
| 24 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
|
| 25 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
| 26 |
+
github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg=
|
| 27 |
+
github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
|
| 28 |
+
github.com/pkg/term v1.2.0-beta.2 h1:L3y/h2jkuBVFdWiJvNfYfKmzcCnILw7mJWm2JQuMppw=
|
| 29 |
+
github.com/pkg/term v1.2.0-beta.2/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
|
| 30 |
+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
| 31 |
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
| 32 |
+
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
|
| 33 |
+
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
| 34 |
+
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
|
| 35 |
+
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
| 36 |
+
github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU=
|
| 37 |
+
github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
| 38 |
+
golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 39 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 h1:TyHqChC80pFkXWraUUf6RuB5IqFdQieMLwwCJokV2pc=
|
| 40 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 41 |
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 42 |
+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
| 43 |
+
PROGRAMGYM_GO_SUM_EOF
|
| 44 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 45 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 46 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 47 |
+
*"|"*|*","*)
|
| 48 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 49 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 50 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 51 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 52 |
+
fi
|
| 53 |
+
;;
|
| 54 |
+
esac
|
| 55 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 56 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 57 |
+
fi
|
| 58 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 59 |
+
import os
|
| 60 |
+
import signal
|
| 61 |
+
import subprocess
|
| 62 |
+
import sys
|
| 63 |
+
import time
|
| 64 |
+
|
| 65 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 66 |
+
if not command:
|
| 67 |
+
raise SystemExit(125)
|
| 68 |
+
environment = os.environ.copy()
|
| 69 |
+
environment["GOPROXY"] = proxy
|
| 70 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 71 |
+
try:
|
| 72 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 73 |
+
except subprocess.TimeoutExpired:
|
| 74 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 75 |
+
sentinel.write("expired\n")
|
| 76 |
+
try:
|
| 77 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 78 |
+
except ProcessLookupError:
|
| 79 |
+
pass
|
| 80 |
+
deadline = time.monotonic() + float(grace_text)
|
| 81 |
+
group_alive = True
|
| 82 |
+
while time.monotonic() < deadline:
|
| 83 |
+
process.poll()
|
| 84 |
+
try:
|
| 85 |
+
os.killpg(process.pid, 0)
|
| 86 |
+
except ProcessLookupError:
|
| 87 |
+
group_alive = False
|
| 88 |
+
break
|
| 89 |
+
time.sleep(0.05)
|
| 90 |
+
if group_alive:
|
| 91 |
+
try:
|
| 92 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 93 |
+
except ProcessLookupError:
|
| 94 |
+
pass
|
| 95 |
+
process.wait()
|
| 96 |
+
raise SystemExit(124)
|
| 97 |
+
if returncode < 0:
|
| 98 |
+
returncode = 128 - returncode
|
| 99 |
+
raise SystemExit(returncode)
|
| 100 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 101 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 102 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 103 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 104 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 105 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 106 |
+
return 1
|
| 107 |
+
else
|
| 108 |
+
exit 1
|
| 109 |
+
fi
|
| 110 |
+
fi
|
| 111 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 112 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 113 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 114 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 115 |
+
return 1
|
| 116 |
+
else
|
| 117 |
+
exit 1
|
| 118 |
+
fi
|
| 119 |
+
fi
|
| 120 |
+
_programgym_go_with_nexus_timeout() {
|
| 121 |
+
local programgym_go_rc
|
| 122 |
+
local programgym_go_timeout_sentinel
|
| 123 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 124 |
+
return 1
|
| 125 |
+
fi
|
| 126 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 127 |
+
programgym_go_rc=0
|
| 128 |
+
else
|
| 129 |
+
programgym_go_rc=$?
|
| 130 |
+
fi
|
| 131 |
+
if [ ! -s "$programgym_go_timeout_sentinel" ]; then
|
| 132 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 133 |
+
return "$programgym_go_rc"
|
| 134 |
+
fi
|
| 135 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 136 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 137 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 138 |
+
return "$programgym_go_rc"
|
| 139 |
+
fi
|
| 140 |
+
printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 141 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 142 |
+
}
|
| 143 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 144 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 145 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 146 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 147 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 148 |
+
return 1
|
| 149 |
+
else
|
| 150 |
+
exit 1
|
| 151 |
+
fi
|
| 152 |
+
fi
|
| 153 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 154 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 155 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 156 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 157 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 158 |
+
else
|
| 159 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 160 |
+
fi
|
| 161 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 162 |
+
export GOTOOLCHAIN=local
|
| 163 |
+
if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
|
| 164 |
+
printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
|
| 165 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 166 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 167 |
+
return 1
|
| 168 |
+
else
|
| 169 |
+
exit 1
|
| 170 |
+
fi
|
| 171 |
+
fi
|
| 172 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 173 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 174 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 175 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 176 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 177 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 178 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
darthsim--hivemind.d8b34a0/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cb34c3562526f90181be4e1be1df6b8fd4cc7b91b4b3d497e9161d5b91c84c7
|
| 3 |
+
size 5744777
|
darthsim--hivemind.d8b34a0/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
|
darthsim--hivemind.d8b34a0/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7992cfcb5cffd4e55a08cf787af2682cf7cb15e2897b64c629225d7c4613f5f
|
| 3 |
+
size 9200
|
darthsim--hivemind.d8b34a0/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
|
darthsim--hivemind.d8b34a0/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
|
darthsim--hivemind.d8b34a0/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/darthsim--hivemind.d8b34a0"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for DarthSim/hivemind"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "DarthSim__hivemind.d8b34a0"
|
| 32 |
+
repository = "DarthSim/hivemind"
|
| 33 |
+
commit = "d8b34a08299a644f98afe332521271990acc60f7"
|
| 34 |
+
language = "go"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.5073160400764136
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 246
|
| 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"
|
darthsim--hivemind.d8b34a0/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"]
|
| 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
|
darthsim--hivemind.d8b34a0/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:98ed04fc255ceb3608f1df70f93c535e1c24f18cb61bdaafcf6924f593c624cf
|
| 3 |
+
size 7614
|
darthsim--hivemind.d8b34a0/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:57ee96f5fd1259530a991f902042282966d8dffd493f6619452c2d8dd9c8ab87
|
| 3 |
+
size 10295
|
darthsim--hivemind.d8b34a0/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:a21f5d9b67b910dd8269ba8d7d9593daf783e1f8d79a37bf5c916a71450014dd
|
| 3 |
+
size 6112
|
darthsim--hivemind.d8b34a0/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:e4ec3357e4a8650664c0deff06d2322056e3842df7e01ab6ef7f1e473fe592ee
|
| 3 |
+
size 6704
|
darthsim--hivemind.d8b34a0/tests/download.sh
ADDED
|
@@ -0,0 +1,178 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-MANAGED-GO-DOWNLOAD: v1
|
| 3 |
+
# Generated deterministically from repository module metadata; do not edit.
|
| 4 |
+
set -u
|
| 5 |
+
export GOTOOLCHAIN=auto
|
| 6 |
+
mkdir -p /workspace/.programgym_build_env/go-prefetch
|
| 7 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.mod <<'PROGRAMGYM_GO_MOD_EOF'
|
| 8 |
+
module github.com/DarthSim/hivemind
|
| 9 |
+
|
| 10 |
+
go 1.12
|
| 11 |
+
|
| 12 |
+
require (
|
| 13 |
+
github.com/DarthSim/godotenv v1.3.1
|
| 14 |
+
github.com/joho/godotenv v1.4.0 // indirect
|
| 15 |
+
github.com/pkg/term v1.2.0-beta.2
|
| 16 |
+
github.com/urfave/cli v1.22.5
|
| 17 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 // indirect
|
| 18 |
+
)
|
| 19 |
+
PROGRAMGYM_GO_MOD_EOF
|
| 20 |
+
cat > /workspace/.programgym_build_env/go-prefetch/go.sum <<'PROGRAMGYM_GO_SUM_EOF'
|
| 21 |
+
github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU=
|
| 22 |
+
github.com/DarthSim/godotenv v1.3.1 h1:NMWdswlRx2M9uPY4Ux8p/Q/rDs7A97OG89fECiQ/Tz0=
|
| 23 |
+
github.com/DarthSim/godotenv v1.3.1/go.mod h1:B3ySe1HYTUFFR6+TPyHyxPWjUdh48il0Blebg9p1cCc=
|
| 24 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d h1:U+s90UTSYgptZMwQh2aRr3LuazLJIa+Pg3Kc1ylSYVY=
|
| 25 |
+
github.com/cpuguy83/go-md2man/v2 v2.0.0-20190314233015-f79a8a8ca69d/go.mod h1:maD7wRr/U5Z6m/iR4s+kqSMx2CaBsrgA7czyZG/E6dU=
|
| 26 |
+
github.com/joho/godotenv v1.4.0 h1:3l4+N6zfMWnkbPEXKng2o2/MR5mSwTrBih4ZEkkz1lg=
|
| 27 |
+
github.com/joho/godotenv v1.4.0/go.mod h1:f4LDr5Voq0i2e/R5DDNOoa2zzDfwtkZa6DnEwAbqwq4=
|
| 28 |
+
github.com/pkg/term v1.2.0-beta.2 h1:L3y/h2jkuBVFdWiJvNfYfKmzcCnILw7mJWm2JQuMppw=
|
| 29 |
+
github.com/pkg/term v1.2.0-beta.2/go.mod h1:E25nymQcrSllhX42Ok8MRm1+hyBdHY0dCeiKZ9jpNGw=
|
| 30 |
+
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
|
| 31 |
+
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
|
| 32 |
+
github.com/russross/blackfriday/v2 v2.0.1 h1:lPqVAte+HuHNfhJ/0LC98ESWRz8afy9tM/0RK8m9o+Q=
|
| 33 |
+
github.com/russross/blackfriday/v2 v2.0.1/go.mod h1:+Rmxgy9KzJVeS9/2gXHxylqXiyQDYRxCVz55jmeOWTM=
|
| 34 |
+
github.com/shurcooL/sanitized_anchor_name v1.0.0 h1:PdmoCO6wvbs+7yrJyMORt4/BmY5IYyJwS/kOiWx8mHo=
|
| 35 |
+
github.com/shurcooL/sanitized_anchor_name v1.0.0/go.mod h1:1NzhyTcUVG4SuEtjjoZeVRXNmyL/1OwPU0+IJeTBvfc=
|
| 36 |
+
github.com/urfave/cli v1.22.5 h1:lNq9sAHXK2qfdI8W+GRItjCEkI+2oR4d+MEHy1CKXoU=
|
| 37 |
+
github.com/urfave/cli v1.22.5/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0=
|
| 38 |
+
golang.org/x/sys v0.0.0-20200909081042-eff7692f9009/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
|
| 39 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881 h1:TyHqChC80pFkXWraUUf6RuB5IqFdQieMLwwCJokV2pc=
|
| 40 |
+
golang.org/x/sys v0.0.0-20211124211545-fe61309f8881/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
| 41 |
+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
|
| 42 |
+
gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
|
| 43 |
+
PROGRAMGYM_GO_SUM_EOF
|
| 44 |
+
PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY="${GOPROXY:-direct}"
|
| 45 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 46 |
+
case "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" in
|
| 47 |
+
*"|"*|*","*)
|
| 48 |
+
PROGRAMGYM_INTERNAL_GO_FIRST_PROXY="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY%%[,|]*}"
|
| 49 |
+
PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER="${PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY#*[,|]}"
|
| 50 |
+
if [[ "$PROGRAMGYM_INTERNAL_GO_FIRST_PROXY" =~ [^[:space:]] ]] && [[ "$PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER" =~ [^[:space:]] ]]; then
|
| 51 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY="${PROGRAMGYM_GO_PUBLIC_FALLBACK_PROXY:-${PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER}}"
|
| 52 |
+
fi
|
| 53 |
+
;;
|
| 54 |
+
esac
|
| 55 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" =~ [^[:space:]] ]]; then
|
| 56 |
+
PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY=""
|
| 57 |
+
fi
|
| 58 |
+
cat > /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py <<'PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF'
|
| 59 |
+
import os
|
| 60 |
+
import signal
|
| 61 |
+
import subprocess
|
| 62 |
+
import sys
|
| 63 |
+
import time
|
| 64 |
+
|
| 65 |
+
sentinel_path, timeout_text, grace_text, proxy, *command = sys.argv[1:]
|
| 66 |
+
if not command:
|
| 67 |
+
raise SystemExit(125)
|
| 68 |
+
environment = os.environ.copy()
|
| 69 |
+
environment["GOPROXY"] = proxy
|
| 70 |
+
process = subprocess.Popen(command, env=environment, start_new_session=True)
|
| 71 |
+
try:
|
| 72 |
+
returncode = process.wait(timeout=float(timeout_text))
|
| 73 |
+
except subprocess.TimeoutExpired:
|
| 74 |
+
with open(sentinel_path, "w", encoding="utf-8") as sentinel:
|
| 75 |
+
sentinel.write("expired\n")
|
| 76 |
+
try:
|
| 77 |
+
os.killpg(process.pid, signal.SIGTERM)
|
| 78 |
+
except ProcessLookupError:
|
| 79 |
+
pass
|
| 80 |
+
deadline = time.monotonic() + float(grace_text)
|
| 81 |
+
group_alive = True
|
| 82 |
+
while time.monotonic() < deadline:
|
| 83 |
+
process.poll()
|
| 84 |
+
try:
|
| 85 |
+
os.killpg(process.pid, 0)
|
| 86 |
+
except ProcessLookupError:
|
| 87 |
+
group_alive = False
|
| 88 |
+
break
|
| 89 |
+
time.sleep(0.05)
|
| 90 |
+
if group_alive:
|
| 91 |
+
try:
|
| 92 |
+
os.killpg(process.pid, signal.SIGKILL)
|
| 93 |
+
except ProcessLookupError:
|
| 94 |
+
pass
|
| 95 |
+
process.wait()
|
| 96 |
+
raise SystemExit(124)
|
| 97 |
+
if returncode < 0:
|
| 98 |
+
returncode = 128 - returncode
|
| 99 |
+
raise SystemExit(returncode)
|
| 100 |
+
PROGRAMGYM_GO_TIMEOUT_SUPERVISOR_EOF
|
| 101 |
+
PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS="${PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS:-90}"
|
| 102 |
+
if ! [[ "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" =~ ^[1-9][0-9]*$ ]]; then
|
| 103 |
+
printf '%s\n' "download.sh: invalid PROGRAMGYM_GO_NEXUS_ATTEMPT_TIMEOUT_SECONDS=${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}" >&2
|
| 104 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 105 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 106 |
+
return 1
|
| 107 |
+
else
|
| 108 |
+
exit 1
|
| 109 |
+
fi
|
| 110 |
+
fi
|
| 111 |
+
if ! command -v python3 >/dev/null 2>&1; then
|
| 112 |
+
printf '%s\n' 'download.sh: python3 is required for bounded Nexus Go downloads' >&2
|
| 113 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 114 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 115 |
+
return 1
|
| 116 |
+
else
|
| 117 |
+
exit 1
|
| 118 |
+
fi
|
| 119 |
+
fi
|
| 120 |
+
_programgym_go_with_nexus_timeout() {
|
| 121 |
+
local programgym_go_rc
|
| 122 |
+
local programgym_go_timeout_sentinel
|
| 123 |
+
if ! programgym_go_timeout_sentinel="$(mktemp "${TMPDIR:-/tmp}/programgym-go-timeout.XXXXXX")"; then
|
| 124 |
+
return 1
|
| 125 |
+
fi
|
| 126 |
+
if python3 /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py "$programgym_go_timeout_sentinel" "$PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS" "5" "$PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY" "$@"; then
|
| 127 |
+
programgym_go_rc=0
|
| 128 |
+
else
|
| 129 |
+
programgym_go_rc=$?
|
| 130 |
+
fi
|
| 131 |
+
if [ ! -s "$programgym_go_timeout_sentinel" ]; then
|
| 132 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 133 |
+
return "$programgym_go_rc"
|
| 134 |
+
fi
|
| 135 |
+
rm -f "$programgym_go_timeout_sentinel"
|
| 136 |
+
if [ -z "$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" ]; then
|
| 137 |
+
printf '%s\n' "download.sh: primary Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; GOPROXY has no explicit non-empty fallback remainder" >&2
|
| 138 |
+
return "$programgym_go_rc"
|
| 139 |
+
fi
|
| 140 |
+
printf '%s\n' "download.sh: Nexus-first Go request exceeded ${PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS}s; retrying with GOPROXY=${PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY}" >&2
|
| 141 |
+
env GOPROXY="$PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY" "$@"
|
| 142 |
+
}
|
| 143 |
+
PROGRAMGYM_GO_BASE_GOROOT="$(GOTOOLCHAIN=local go env GOROOT)"
|
| 144 |
+
if ! PROGRAMGYM_GO_RESOLVED_GOROOT="$(cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout env GOTOOLCHAIN=auto go env GOROOT)"; then
|
| 145 |
+
printf '%s\n' 'download.sh: Go toolchain resolution failed' >&2
|
| 146 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 147 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 148 |
+
return 1
|
| 149 |
+
else
|
| 150 |
+
exit 1
|
| 151 |
+
fi
|
| 152 |
+
fi
|
| 153 |
+
if [ "$PROGRAMGYM_GO_RESOLVED_GOROOT" != "$PROGRAMGYM_GO_BASE_GOROOT" ]; then
|
| 154 |
+
PROGRAMGYM_GO_TOOLCHAIN_ROOT=/opt/programgym-go-toolchain
|
| 155 |
+
mkdir -p "$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 156 |
+
cp -a "$PROGRAMGYM_GO_RESOLVED_GOROOT/." "$PROGRAMGYM_GO_TOOLCHAIN_ROOT/"
|
| 157 |
+
export GOROOT="$PROGRAMGYM_GO_TOOLCHAIN_ROOT"
|
| 158 |
+
else
|
| 159 |
+
export GOROOT="$PROGRAMGYM_GO_BASE_GOROOT"
|
| 160 |
+
fi
|
| 161 |
+
export PATH="$GOROOT/bin:$PATH"
|
| 162 |
+
export GOTOOLCHAIN=local
|
| 163 |
+
if ! (cd /workspace/.programgym_build_env/go-prefetch && _programgym_go_with_nexus_timeout go mod download -modfile=/workspace/.programgym_build_env/go-prefetch/go.mod all); then
|
| 164 |
+
printf '%s\n' 'download.sh: Go dependency prefetch failed' >&2
|
| 165 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 166 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 167 |
+
return 1
|
| 168 |
+
else
|
| 169 |
+
exit 1
|
| 170 |
+
fi
|
| 171 |
+
fi
|
| 172 |
+
rm -f /workspace/.programgym_build_env/go-prefetch/.programgym_go_timeout_supervisor.py
|
| 173 |
+
unset -f _programgym_go_with_nexus_timeout
|
| 174 |
+
unset PROGRAMGYM_INTERNAL_GO_PRIMARY_PROXY
|
| 175 |
+
unset PROGRAMGYM_INTERNAL_GO_FALLBACK_PROXY
|
| 176 |
+
unset PROGRAMGYM_INTERNAL_GO_FIRST_PROXY
|
| 177 |
+
unset PROGRAMGYM_INTERNAL_GO_PROXY_REMAINDER
|
| 178 |
+
unset PROGRAMGYM_INTERNAL_GO_NEXUS_TIMEOUT_SECONDS
|
darthsim--hivemind.d8b34a0/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3cb34c3562526f90181be4e1be1df6b8fd4cc7b91b4b3d497e9161d5b91c84c7
|
| 3 |
+
size 5744777
|
darthsim--hivemind.d8b34a0/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
|
darthsim--hivemind.d8b34a0/tests/programgym_evaluator.py
ADDED
|
@@ -0,0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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()
|
darthsim--hivemind.d8b34a0/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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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_flag_config.TestNoPrefix.test_default_output_has_process_name_prefix",
|
| 9 |
+
"eval.tests.test_flag_config.TestNoPrefix.test_no_prefix_env",
|
| 10 |
+
"eval.tests.test_flag_config.TestNoPrefix.test_no_prefix_flag_suppresses_names",
|
| 11 |
+
"eval.tests.test_flag_config.TestOutputSemantics.test_process_exited_marker_is_emitted",
|
| 12 |
+
"eval.tests.test_flag_config.TestOutputSemantics.test_running_marker_is_emitted",
|
| 13 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_default_port_base_is_5000",
|
| 14 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_legacy_port_env_sets_base_port",
|
| 15 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_env_sets_base_port",
|
| 16 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_flag_overrides_env",
|
| 17 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_flag_sets_base_port",
|
| 18 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_short_flag",
|
| 19 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_step_env",
|
| 20 |
+
"eval.tests.test_flag_config.TestPortBaseAndStep.test_port_step_flag",
|
| 21 |
+
"eval.tests.test_flag_config.TestPrintTimestamps.test_timestamp_env",
|
| 22 |
+
"eval.tests.test_flag_config.TestPrintTimestamps.test_timestamp_flag_adds_hh_mm_ss_prefix",
|
| 23 |
+
"eval.tests.test_flag_config.TestPrintTimestamps.test_timestamp_short_flag",
|
| 24 |
+
"eval.tests.test_flag_config.TestProcessFilter.test_process_filter_env",
|
| 25 |
+
"eval.tests.test_flag_config.TestProcessFilter.test_process_filter_flag_one_name",
|
| 26 |
+
"eval.tests.test_flag_config.TestProcessFilter.test_process_filter_multiple_comma_names",
|
| 27 |
+
"eval.tests.test_flag_config.TestProcessFilter.test_process_filter_short_flag",
|
| 28 |
+
"eval.tests.test_flag_config.TestProcessFilter.test_process_filter_spaces_are_trimmed",
|
| 29 |
+
"eval.tests.test_flag_config.TestRoot.test_root_defaults_to_procfile_directory",
|
| 30 |
+
"eval.tests.test_flag_config.TestRoot.test_root_env",
|
| 31 |
+
"eval.tests.test_flag_config.TestRoot.test_root_flag_sets_working_dir",
|
| 32 |
+
"eval.tests.test_flag_config.TestRoot.test_root_short_flag",
|
| 33 |
+
"eval.tests.test_flag_config.TestTitle.test_title_defaults_to_root_basename",
|
| 34 |
+
"eval.tests.test_flag_config.TestTitle.test_title_env",
|
| 35 |
+
"eval.tests.test_flag_config.TestTitle.test_title_flag_sets_window_title",
|
| 36 |
+
"eval.tests.test_flag_config.TestTitle.test_title_short_flag",
|
| 37 |
+
"eval.tests.test_help_version.TestHelp.test_help_exits_zero_and_writes_stdout[--help]",
|
| 38 |
+
"eval.tests.test_help_version.TestHelp.test_help_exits_zero_and_writes_stdout[-h]",
|
| 39 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[$HIVEMIND_PROCFILE-procfile env var documented]",
|
| 40 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--no-prefix-no-prefix flag]",
|
| 41 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--port value, -p value-port flag]",
|
| 42 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--port-step value, -P value-port-step flag]",
|
| 43 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--print-timestamps, -T-print-timestamps flag]",
|
| 44 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--processes value, -l value-processes flag]",
|
| 45 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--root value, -d value-root flag]",
|
| 46 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--timeout value, -t value-timeout flag]",
|
| 47 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[--title value, -w value-title flag]",
|
| 48 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[1.1.0-version shown in help]",
|
| 49 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[Hivemind - The mind to rule processes of your development environment-app.Name/Usage]",
|
| 50 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[Use '-' to read from stdin-stdin procfile documented]",
|
| 51 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_NO_PREFIX]-no-prefix env var]",
|
| 52 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_PORT_STEP]-port-step env var]",
|
| 53 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_PRINT_TIMESTAMPS]-print-timestamps env var]",
|
| 54 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_PROCESSES]-processes env var]",
|
| 55 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_ROOT]-root env var]",
|
| 56 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_TIMEOUT]-timeout env var]",
|
| 57 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[[$HIVEMIND_TITLE]-title env var]",
|
| 58 |
+
"eval.tests.test_help_version.TestHelp.test_help_lists_each_option_surface[hivemind [global options] [procfile]-args usage line]",
|
| 59 |
+
"eval.tests.test_help_version.TestHelp.test_help_shows_flag_default_values",
|
| 60 |
+
"eval.tests.test_help_version.TestHelp.test_help_shows_port_dual_env",
|
| 61 |
+
"eval.tests.test_help_version.TestVersion.test_version_exits_zero[--version]",
|
| 62 |
+
"eval.tests.test_help_version.TestVersion.test_version_exits_zero[-v]",
|
| 63 |
+
"eval.tests.test_help_version.TestVersion.test_version_short_flag_only_reports_version",
|
| 64 |
+
"eval.tests.test_procfile_parsing.TestMalformedLines.test_full_line_of_colonless_payload_skipped_but_process_runs",
|
| 65 |
+
"eval.tests.test_procfile_parsing.TestMalformedLines.test_malformed_lines_are_ignored",
|
| 66 |
+
"eval.tests.test_procfile_parsing.TestProcessExecution.test_process_command_output_is_relayed",
|
| 67 |
+
"eval.tests.test_procfile_parsing.TestProcessExecution.test_process_env_includes_injected_port",
|
| 68 |
+
"eval.tests.test_procfile_parsing.TestProcessExecution.test_single_process_and_multi_process_run",
|
| 69 |
+
"eval.tests.test_procfile_parsing.TestProcfileParsingErrors.test_duplicate_process_names_are_fatal",
|
| 70 |
+
"eval.tests.test_procfile_parsing.TestProcfileParsingErrors.test_empty_procfile_is_fatal",
|
| 71 |
+
"eval.tests.test_procfile_parsing.TestProcfileParsingErrors.test_whitespace_only_procfile_is_fatal",
|
| 72 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_more_than_one_positional_arg_is_fatal",
|
| 73 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_nonexistent_procfile_is_fatal",
|
| 74 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_single_positional_argument_selects_procfile",
|
| 75 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_three_positional_args_also_rejected",
|
| 76 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_zero_args_use_default_dot_procfile",
|
| 77 |
+
"eval.tests.test_procfile_selection.TestProcfileSelection.test_zero_args_use_hivemind_procfile_env",
|
| 78 |
+
"eval.tests.test_procfile_selection.TestProcfileSelectionFatalStream.test_fatal_exits_one_and_uses_hivemind_prefix",
|
| 79 |
+
"eval.tests.test_procfile_selection.TestStdinProcfile.test_dash_reads_procfile_from_stdin",
|
| 80 |
+
"eval.tests.test_procfile_selection.TestStdinProcfile.test_stdin_procfile_with_no_entries_is_fatal",
|
| 81 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_large_positive_timeout_accepts_and_runs",
|
| 82 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_negative_timeout_is_fatal[-100]",
|
| 83 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_negative_timeout_is_fatal[-1]",
|
| 84 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_negative_timeout_is_fatal[-5]",
|
| 85 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_negative_timeout_via_env_is_fatal",
|
| 86 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_positive_timeout_one_is_accepted",
|
| 87 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_timeout_zero_is_fatal[args0]",
|
| 88 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_timeout_zero_is_fatal[args1]",
|
| 89 |
+
"eval.tests.test_timeout_validation.TestTimeoutValidation.test_timeout_zero_via_env_is_fatal"
|
| 90 |
+
]
|
| 91 |
+
},
|
| 92 |
+
"generated_module_02": {
|
| 93 |
+
"ignore_reason": "",
|
| 94 |
+
"ignored": false,
|
| 95 |
+
"ignored_tests": [],
|
| 96 |
+
"tests": [
|
| 97 |
+
"eval.tests.test_args_validation.test_internal_dash_procfile_without_stdin",
|
| 98 |
+
"eval.tests.test_args_validation.test_invalid_port_flag_suffix",
|
| 99 |
+
"eval.tests.test_args_validation.test_invalid_port_flag_value",
|
| 100 |
+
"eval.tests.test_args_validation.test_invalid_port_step_flag",
|
| 101 |
+
"eval.tests.test_args_validation.test_invalid_timeout_flag_string",
|
| 102 |
+
"eval.tests.test_args_validation.test_missing_flag_argument",
|
| 103 |
+
"eval.tests.test_args_validation.test_no_args_no_procfile",
|
| 104 |
+
"eval.tests.test_args_validation.test_nonexistent_procfile_path",
|
| 105 |
+
"eval.tests.test_args_validation.test_three_positional_procfiles_rejected",
|
| 106 |
+
"eval.tests.test_args_validation.test_timeout_negative_rejected",
|
| 107 |
+
"eval.tests.test_args_validation.test_timeout_zero_rejected",
|
| 108 |
+
"eval.tests.test_args_validation.test_two_positional_procfiles_rejected",
|
| 109 |
+
"eval.tests.test_config_env.test_hivemind_procfile_env",
|
| 110 |
+
"eval.tests.test_config_env.test_no_prefix_env",
|
| 111 |
+
"eval.tests.test_config_env.test_port_env_sets_base",
|
| 112 |
+
"eval.tests.test_config_env.test_port_step_env_second_process",
|
| 113 |
+
"eval.tests.test_config_env.test_positional_procfile_wins_over_env",
|
| 114 |
+
"eval.tests.test_config_env.test_processes_env_filters",
|
| 115 |
+
"eval.tests.test_config_env.test_root_flag_sets_child_cwd",
|
| 116 |
+
"eval.tests.test_config_env.test_timeout_env_gates_validation",
|
| 117 |
+
"eval.tests.test_config_env.test_title_env_sets_banner",
|
| 118 |
+
"eval.tests.test_config_env.test_title_flag_overrides_env",
|
| 119 |
+
"eval.tests.test_process_selection.test_many_processes_cycle_color_wrap",
|
| 120 |
+
"eval.tests.test_process_selection.test_processes_duplicate_names_once",
|
| 121 |
+
"eval.tests.test_process_selection.test_processes_empty_string_means_all",
|
| 122 |
+
"eval.tests.test_process_selection.test_processes_flag_single",
|
| 123 |
+
"eval.tests.test_process_selection.test_processes_flag_trimmed_spaces",
|
| 124 |
+
"eval.tests.test_process_selection.test_processes_flag_two_comma",
|
| 125 |
+
"eval.tests.test_process_selection.test_processes_flag_with_stdin_procfile",
|
| 126 |
+
"eval.tests.test_process_selection.test_processes_unknown_name_runs_nothing",
|
| 127 |
+
"eval.tests.test_process_selection.test_selection_keeps_color_slot",
|
| 128 |
+
"eval.tests.test_process_selection.test_three_processes_cycle_colors",
|
| 129 |
+
"eval.tests.test_procfile_parsing.test_comment_only_procfile_rejected",
|
| 130 |
+
"eval.tests.test_procfile_parsing.test_crlf_line_endings",
|
| 131 |
+
"eval.tests.test_procfile_parsing.test_duplicate_names_case_sensitive",
|
| 132 |
+
"eval.tests.test_procfile_parsing.test_duplicate_process_names_rejected",
|
| 133 |
+
"eval.tests.test_procfile_parsing.test_empty_procfile_rejected",
|
| 134 |
+
"eval.tests.test_procfile_parsing.test_long_invalid_line_skipped",
|
| 135 |
+
"eval.tests.test_procfile_parsing.test_long_line_exercises_isprefix",
|
| 136 |
+
"eval.tests.test_procfile_parsing.test_malformed_line_skipped",
|
| 137 |
+
"eval.tests.test_procfile_parsing.test_minus_reads_procfile_from_stdin",
|
| 138 |
+
"eval.tests.test_procfile_parsing.test_port_env_default_base",
|
| 139 |
+
"eval.tests.test_procfile_parsing.test_port_step_assigns_next_port",
|
| 140 |
+
"eval.tests.test_procfile_parsing.test_single_process_normal_exit",
|
| 141 |
+
"eval.tests.test_procfile_parsing.test_space_before_colon_is_not_a_match",
|
| 142 |
+
"eval.tests.test_runtime_lifecycle.test_child_exits_then_program_exits_via_done",
|
| 143 |
+
"eval.tests.test_runtime_lifecycle.test_erroring_process_reported_but_run_continues",
|
| 144 |
+
"eval.tests.test_runtime_lifecycle.test_interrupt_then_timeout_then_kill",
|
| 145 |
+
"eval.tests.test_runtime_lifecycle.test_interrupt_while_process_already_exited",
|
| 146 |
+
"eval.tests.test_runtime_lifecycle.test_no_prefix_and_timestamps",
|
| 147 |
+
"eval.tests.test_runtime_lifecycle.test_no_prefix_runtime",
|
| 148 |
+
"eval.tests.test_runtime_lifecycle.test_short_timeout_shortens_kill_wait",
|
| 149 |
+
"eval.tests.test_runtime_lifecycle.test_sighup_graceful_interrupt",
|
| 150 |
+
"eval.tests.test_runtime_lifecycle.test_sigint_graceful_interrupt",
|
| 151 |
+
"eval.tests.test_runtime_lifecycle.test_sigterm_graceful_interrupt",
|
| 152 |
+
"eval.tests.test_runtime_lifecycle.test_timestamps_printed",
|
| 153 |
+
"eval.tests.test_runtime_lifecycle.test_two_processes_run_concurrently",
|
| 154 |
+
"eval.tests.test_version_help.test_help_exposes_procfile_usage",
|
| 155 |
+
"eval.tests.test_version_help.test_help_lists_default_port_and_timeout",
|
| 156 |
+
"eval.tests.test_version_help.test_help_long_flag",
|
| 157 |
+
"eval.tests.test_version_help.test_help_short_flag_same_content",
|
| 158 |
+
"eval.tests.test_version_help.test_version_long_flag",
|
| 159 |
+
"eval.tests.test_version_help.test_version_short_flag"
|
| 160 |
+
]
|
| 161 |
+
},
|
| 162 |
+
"generated_module_03": {
|
| 163 |
+
"ignore_reason": "",
|
| 164 |
+
"ignored": false,
|
| 165 |
+
"ignored_tests": [],
|
| 166 |
+
"tests": [
|
| 167 |
+
"eval.tests.test_procfile.test_blank_lines_skipped",
|
| 168 |
+
"eval.tests.test_procfile.test_case_distinct_names_both_accepted",
|
| 169 |
+
"eval.tests.test_procfile.test_command_is_shell_builtin",
|
| 170 |
+
"eval.tests.test_procfile.test_command_pipes_and_metachars",
|
| 171 |
+
"eval.tests.test_procfile.test_command_shell_expands_variable",
|
| 172 |
+
"eval.tests.test_procfile.test_command_tokens_preserved",
|
| 173 |
+
"eval.tests.test_procfile.test_comment_lines_skipped",
|
| 174 |
+
"eval.tests.test_procfile.test_crlf_line_endings",
|
| 175 |
+
"eval.tests.test_procfile.test_custom_base_and_step_flags",
|
| 176 |
+
"eval.tests.test_procfile.test_custom_base_flag",
|
| 177 |
+
"eval.tests.test_procfile.test_custom_step_flag",
|
| 178 |
+
"eval.tests.test_procfile.test_default_procfile_in_cwd",
|
| 179 |
+
"eval.tests.test_procfile.test_duplicate_detected_at_second_occurrence",
|
| 180 |
+
"eval.tests.test_procfile.test_duplicate_name_error",
|
| 181 |
+
"eval.tests.test_procfile.test_each_entry_process_starts",
|
| 182 |
+
"eval.tests.test_procfile.test_empty_procfile_error",
|
| 183 |
+
"eval.tests.test_procfile.test_explicit_path_argument",
|
| 184 |
+
"eval.tests.test_procfile.test_filter_from_env",
|
| 185 |
+
"eval.tests.test_procfile.test_filter_nonexistent_name_launches_nothing",
|
| 186 |
+
"eval.tests.test_procfile.test_filter_selects_single_name",
|
| 187 |
+
"eval.tests.test_procfile.test_filter_selects_two_names",
|
| 188 |
+
"eval.tests.test_procfile.test_flag_overrides_env_for_base",
|
| 189 |
+
"eval.tests.test_procfile.test_flag_overrides_env_for_step",
|
| 190 |
+
"eval.tests.test_procfile.test_hyphenated_name_accepted",
|
| 191 |
+
"eval.tests.test_procfile.test_interleaved_noise_still_parses_siblings",
|
| 192 |
+
"eval.tests.test_procfile.test_multiple_positional_args_error",
|
| 193 |
+
"eval.tests.test_procfile.test_multiple_spaces_after_colon",
|
| 194 |
+
"eval.tests.test_procfile.test_name_only_line_skipped",
|
| 195 |
+
"eval.tests.test_procfile.test_negative_step_flag",
|
| 196 |
+
"eval.tests.test_procfile.test_no_colon_line_skipped",
|
| 197 |
+
"eval.tests.test_procfile.test_no_trailing_newline_single_line",
|
| 198 |
+
"eval.tests.test_procfile.test_nonexistent_procfile_error",
|
| 199 |
+
"eval.tests.test_procfile.test_numeric_name_accepted",
|
| 200 |
+
"eval.tests.test_procfile.test_only_blank_lines_error",
|
| 201 |
+
"eval.tests.test_procfile.test_only_malformed_lines_error",
|
| 202 |
+
"eval.tests.test_procfile.test_port_base_and_step_from_env",
|
| 203 |
+
"eval.tests.test_procfile.test_port_base_from_env",
|
| 204 |
+
"eval.tests.test_procfile.test_port_step_from_env",
|
| 205 |
+
"eval.tests.test_procfile.test_procfile_env_relative",
|
| 206 |
+
"eval.tests.test_procfile.test_procfile_from_env",
|
| 207 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n1]",
|
| 208 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n2]",
|
| 209 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n3]",
|
| 210 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n4]",
|
| 211 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n6]",
|
| 212 |
+
"eval.tests.test_procfile.test_sequential_ports_default_base_step[n8]",
|
| 213 |
+
"eval.tests.test_procfile.test_single_char_name_accepted",
|
| 214 |
+
"eval.tests.test_procfile.test_stdin_dash_mode",
|
| 215 |
+
"eval.tests.test_procfile.test_stdin_empty_error",
|
| 216 |
+
"eval.tests.test_procfile.test_tab_separator_after_colon",
|
| 217 |
+
"eval.tests.test_procfile.test_timeout_negative_error",
|
| 218 |
+
"eval.tests.test_procfile.test_timeout_zero_error",
|
| 219 |
+
"eval.tests.test_procfile.test_underscore_name_accepted",
|
| 220 |
+
"eval.tests.test_procfile.test_whitespace_prefixed_name_skipped",
|
| 221 |
+
"eval.tests.test_procfile.test_zero_step_flag"
|
| 222 |
+
]
|
| 223 |
+
},
|
| 224 |
+
"generated_module_04": {
|
| 225 |
+
"ignore_reason": "",
|
| 226 |
+
"ignored": false,
|
| 227 |
+
"ignored_tests": [],
|
| 228 |
+
"tests": [
|
| 229 |
+
"eval.tests.test_process_module.TestChildFailure.test_another_exit_status_reported",
|
| 230 |
+
"eval.tests.test_process_module.TestChildFailure.test_command_not_found_reported",
|
| 231 |
+
"eval.tests.test_process_module.TestChildFailure.test_nonzero_exit_status_reported",
|
| 232 |
+
"eval.tests.test_process_module.TestLifecycleMarkers.test_child_output_printed_after_running",
|
| 233 |
+
"eval.tests.test_process_module.TestLifecycleMarkers.test_exit_marker_absent_for_long_running",
|
| 234 |
+
"eval.tests.test_process_module.TestLifecycleMarkers.test_process_exited_comes_after_child_output",
|
| 235 |
+
"eval.tests.test_process_module.TestLifecycleMarkers.test_process_exited_marker_printed",
|
| 236 |
+
"eval.tests.test_process_module.TestLifecycleMarkers.test_running_marker_printed",
|
| 237 |
+
"eval.tests.test_process_module.TestNamePrefix.test_long_name_still_prefixes_payload",
|
| 238 |
+
"eval.tests.test_process_module.TestNamePrefix.test_multiline_child_lines_each_prefixed",
|
| 239 |
+
"eval.tests.test_process_module.TestNamePrefix.test_name_prefix_printed_by_default",
|
| 240 |
+
"eval.tests.test_process_module.TestNamePrefix.test_no_prefix_suppresses_color_prefix",
|
| 241 |
+
"eval.tests.test_process_module.TestNamePrefix.test_no_prefix_suppresses_name",
|
| 242 |
+
"eval.tests.test_process_module.TestPortEnv.test_custom_port_base",
|
| 243 |
+
"eval.tests.test_process_module.TestPortEnv.test_default_port_base_injected",
|
| 244 |
+
"eval.tests.test_process_module.TestPortEnv.test_port_step_assigns_second_process",
|
| 245 |
+
"eval.tests.test_process_module.TestPortEnv.test_zero_port_base",
|
| 246 |
+
"eval.tests.test_process_module.TestProcessSelection.test_select_multiple_comma_separated",
|
| 247 |
+
"eval.tests.test_process_module.TestProcessSelection.test_select_one_process_by_name",
|
| 248 |
+
"eval.tests.test_process_module.TestProcessSelection.test_select_other_process_by_name",
|
| 249 |
+
"eval.tests.test_process_module.TestProcessSelection.test_unknown_process_runs_nothing",
|
| 250 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_duplicate_process_names_fatal",
|
| 251 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_empty_procfile_fatal",
|
| 252 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_help_flag_exits_zero_with_usage",
|
| 253 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_missing_procfile_fatal",
|
| 254 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_multiple_procfiles_fatal",
|
| 255 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_timeout_negative_fatal",
|
| 256 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_timeout_zero_fatal",
|
| 257 |
+
"eval.tests.test_process_module.TestProcfileCliErrors.test_version_flag_exits_zero",
|
| 258 |
+
"eval.tests.test_process_module.TestPtyStdioMultiplex.test_no_newline_in_child_still_flushed",
|
| 259 |
+
"eval.tests.test_process_module.TestPtyStdioMultiplex.test_raw_bytes_output_survives",
|
| 260 |
+
"eval.tests.test_process_module.TestPtyStdioMultiplex.test_stderr_captured",
|
| 261 |
+
"eval.tests.test_process_module.TestPtyStdioMultiplex.test_stdout_and_stderr_both_captured",
|
| 262 |
+
"eval.tests.test_process_module.TestPtyStdioMultiplex.test_stdout_captured",
|
| 263 |
+
"eval.tests.test_process_module.TestSignals.test_kill_after_timeout_when_child_ignores_int",
|
| 264 |
+
"eval.tests.test_process_module.TestSignals.test_short_timeout_kills_faster",
|
| 265 |
+
"eval.tests.test_process_module.TestSignals.test_sigint_propagates_to_child",
|
| 266 |
+
"eval.tests.test_process_module.TestSignals.test_sigterm_propagates_to_child",
|
| 267 |
+
"eval.tests.test_process_module.TestTimestampPrefix.test_custom_title_in_escape_sequence",
|
| 268 |
+
"eval.tests.test_process_module.TestTimestampPrefix.test_no_timestamp_without_flag",
|
| 269 |
+
"eval.tests.test_process_module.TestTimestampPrefix.test_timestamp_and_name_prefix_both_present",
|
| 270 |
+
"eval.tests.test_process_module.TestTimestampPrefix.test_timestamp_flag_adds_time",
|
| 271 |
+
"eval.tests.test_process_module.TestTimestampPrefix.test_title_escape_sequence_emitted",
|
| 272 |
+
"eval.tests.test_process_module.TestWorkingDir.test_default_root_is_procfile_dir",
|
| 273 |
+
"eval.tests.test_process_module.TestWorkingDir.test_env_var_inherited_by_child",
|
| 274 |
+
"eval.tests.test_process_module.TestWorkingDir.test_root_sets_child_working_directory"
|
| 275 |
+
]
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"commit": "d8b34a08299a644f98afe332521271990acc60f7",
|
| 279 |
+
"data_source": "synthetic_programgym",
|
| 280 |
+
"difficulty": "easy",
|
| 281 |
+
"difficulty_score": 1.5073160400764136,
|
| 282 |
+
"eval_clean_hashes": [
|
| 283 |
+
"3cb34c3562526f90181be4e1be1df6b8fd4cc7b91b4b3d497e9161d5b91c84c7"
|
| 284 |
+
],
|
| 285 |
+
"input_record": {
|
| 286 |
+
"commit": "d8b34a08299a644f98afe332521271990acc60f7",
|
| 287 |
+
"commits": 100,
|
| 288 |
+
"contributors": 5,
|
| 289 |
+
"difficulty": "easy",
|
| 290 |
+
"difficulty_code_lines": 536,
|
| 291 |
+
"difficulty_has_tests": false,
|
| 292 |
+
"difficulty_product_code_lines": 536,
|
| 293 |
+
"difficulty_runtime_deps": 5,
|
| 294 |
+
"difficulty_score": 1.5073160400764136,
|
| 295 |
+
"difficulty_test_code_lines": 0,
|
| 296 |
+
"full_name": "DarthSim/hivemind",
|
| 297 |
+
"github_stars": 1149,
|
| 298 |
+
"input_joern_zip": "go_joern/DarthSim__hivemind.zip",
|
| 299 |
+
"joern_status": true,
|
| 300 |
+
"joern_time": 3.9863724219612777,
|
| 301 |
+
"language": "go",
|
| 302 |
+
"pb_match": [
|
| 303 |
+
{
|
| 304 |
+
"pb_fullname": "direnv/direnv",
|
| 305 |
+
"rank": 234,
|
| 306 |
+
"similarity": 0.4499416947364807
|
| 307 |
+
}
|
| 308 |
+
],
|
| 309 |
+
"repo_age": 11.33,
|
| 310 |
+
"repo_path": "go/DarthSim__hivemind",
|
| 311 |
+
"source": "commit:d8b34a08299a644f98afe332521271990acc60f7",
|
| 312 |
+
"status": "done",
|
| 313 |
+
"url": "https://github.com/DarthSim/hivemind"
|
| 314 |
+
},
|
| 315 |
+
"instance_id": "DarthSim__hivemind.d8b34a0",
|
| 316 |
+
"language": "go",
|
| 317 |
+
"module_iterations": [
|
| 318 |
+
{
|
| 319 |
+
"actual_iterations": 1,
|
| 320 |
+
"branch_name": "generated_module_01",
|
| 321 |
+
"iteration_limit": 5,
|
| 322 |
+
"module_index": 1,
|
| 323 |
+
"module_kind": "source",
|
| 324 |
+
"termination_reason": "module_coverage_threshold_reached"
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"actual_iterations": 3,
|
| 328 |
+
"branch_name": "generated_module_02",
|
| 329 |
+
"iteration_limit": 5,
|
| 330 |
+
"module_index": 2,
|
| 331 |
+
"module_kind": "source",
|
| 332 |
+
"termination_reason": "module_coverage_threshold_reached"
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"actual_iterations": 1,
|
| 336 |
+
"branch_name": "generated_module_03",
|
| 337 |
+
"iteration_limit": 5,
|
| 338 |
+
"module_index": 3,
|
| 339 |
+
"module_kind": "source",
|
| 340 |
+
"termination_reason": "module_coverage_threshold_reached"
|
| 341 |
+
},
|
| 342 |
+
{
|
| 343 |
+
"actual_iterations": 2,
|
| 344 |
+
"branch_name": "generated_module_04",
|
| 345 |
+
"iteration_limit": 5,
|
| 346 |
+
"module_index": 4,
|
| 347 |
+
"module_kind": "source",
|
| 348 |
+
"termination_reason": "module_coverage_threshold_reached"
|
| 349 |
+
}
|
| 350 |
+
],
|
| 351 |
+
"repository": "DarthSim/hivemind"
|
| 352 |
+
}
|
darthsim--hivemind.d8b34a0/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
|
darthsim--hivemind.d8b34a0/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b7992cfcb5cffd4e55a08cf787af2682cf7cb15e2897b64c629225d7c4613f5f
|
| 3 |
+
size 9200
|
datafusion-contrib--bdt.5c6730a/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 \
|
| 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh for ProgramGym - bdt (Boring Data Tool)
|
| 3 |
+
#
|
| 4 |
+
# Standalone dependency-prefetch stage. This script is sourced via
|
| 5 |
+
# `source /source_ro/download.sh` while the container has network access and
|
| 6 |
+
# the repository is mounted read-only. It generates a temporary Cargo manifest
|
| 7 |
+
# (a copy of the repository's package metadata) plus the exact Cargo.lock the
|
| 8 |
+
# offline build will use, then runs `cargo fetch --locked` against that
|
| 9 |
+
# generated manifest to populate the shared cargo registry cache.
|
| 10 |
+
#
|
| 11 |
+
# It does NOT compile, link, test, or package anything. It does not read any
|
| 12 |
+
# repository source file. All dependency info is written here inline.
|
| 13 |
+
|
| 14 |
+
set -euo pipefail
|
| 15 |
+
|
| 16 |
+
# ---------------------------------------------------------------------------
|
| 17 |
+
# Work in a writable scratch directory (the source mount /source_ro is RO).
|
| 18 |
+
# ---------------------------------------------------------------------------
|
| 19 |
+
GEN_DIR="${TMPDIR:-/tmp}/bdt_generate_$$"
|
| 20 |
+
mkdir -p "$GEN_DIR/src/bin"
|
| 21 |
+
|
| 22 |
+
# ---------------------------------------------------------------------------
|
| 23 |
+
# Generate the Cargo.toml. This mirrors the repository's [package]/[lib]/[[bin]]
|
| 24 |
+
# and [dependencies] sections so dependency resolution matches the real build.
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
cat > "$GEN_DIR/Cargo.toml" <<'TOML'
|
| 27 |
+
[package]
|
| 28 |
+
name = "bdt"
|
| 29 |
+
version = "0.18.0"
|
| 30 |
+
edition = "2021"
|
| 31 |
+
|
| 32 |
+
[lib]
|
| 33 |
+
name = "bdt"
|
| 34 |
+
path = "src/lib.rs"
|
| 35 |
+
|
| 36 |
+
[[bin]]
|
| 37 |
+
name = "bdt"
|
| 38 |
+
path = "src/bin/main.rs"
|
| 39 |
+
|
| 40 |
+
[dependencies]
|
| 41 |
+
comfy-table = "6.1.2"
|
| 42 |
+
datafusion = { version = "35.0", features = ["avro"] }
|
| 43 |
+
structopt = "0.3"
|
| 44 |
+
tokio = { version = "1.36", features = ["rt-multi-thread"] }
|
| 45 |
+
thiserror = "1"
|
| 46 |
+
TOML
|
| 47 |
+
|
| 48 |
+
# Placeholder stub source files (cargo only needs them to exist for metadata).
|
| 49 |
+
touch "$GEN_DIR/src/lib.rs"
|
| 50 |
+
touch "$GEN_DIR/src/bin/main.rs"
|
| 51 |
+
|
| 52 |
+
# ---------------------------------------------------------------------------
|
| 53 |
+
# Generate the exact Cargo.lock the offline build will consume, so `cargo fetch
|
| 54 |
+
# --locked` downloads precisely the versions pinned in the repository lock.
|
| 55 |
+
# ---------------------------------------------------------------------------
|
| 56 |
+
cat > "$GEN_DIR/Cargo.lock" <<'LOCK'
|
| 57 |
+
# This file is automatically @generated by Cargo.
|
| 58 |
+
# It is not intended for manual editing.
|
| 59 |
+
version = 3
|
| 60 |
+
|
| 61 |
+
[[package]]
|
| 62 |
+
name = "addr2line"
|
| 63 |
+
version = "0.20.0"
|
| 64 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 65 |
+
checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3"
|
| 66 |
+
dependencies = [
|
| 67 |
+
"gimli",
|
| 68 |
+
]
|
| 69 |
+
|
| 70 |
+
[[package]]
|
| 71 |
+
name = "adler"
|
| 72 |
+
version = "1.0.2"
|
| 73 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 74 |
+
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
| 75 |
+
|
| 76 |
+
[[package]]
|
| 77 |
+
name = "adler32"
|
| 78 |
+
version = "1.2.0"
|
| 79 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 80 |
+
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
|
| 81 |
+
|
| 82 |
+
[[package]]
|
| 83 |
+
name = "ahash"
|
| 84 |
+
version = "0.8.3"
|
| 85 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 86 |
+
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
|
| 87 |
+
dependencies = [
|
| 88 |
+
"cfg-if",
|
| 89 |
+
"const-random",
|
| 90 |
+
"getrandom",
|
| 91 |
+
"once_cell",
|
| 92 |
+
"version_check",
|
| 93 |
+
]
|
| 94 |
+
|
| 95 |
+
[[package]]
|
| 96 |
+
name = "aho-corasick"
|
| 97 |
+
version = "1.0.2"
|
| 98 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 99 |
+
checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41"
|
| 100 |
+
dependencies = [
|
| 101 |
+
"memchr",
|
| 102 |
+
]
|
| 103 |
+
|
| 104 |
+
[[package]]
|
| 105 |
+
name = "alloc-no-stdlib"
|
| 106 |
+
version = "2.0.4"
|
| 107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 108 |
+
checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
|
| 109 |
+
|
| 110 |
+
[[package]]
|
| 111 |
+
name = "alloc-stdlib"
|
| 112 |
+
version = "0.2.2"
|
| 113 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 114 |
+
checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
|
| 115 |
+
dependencies = [
|
| 116 |
+
"alloc-no-stdlib",
|
| 117 |
+
]
|
| 118 |
+
|
| 119 |
+
[[package]]
|
| 120 |
+
name = "allocator-api2"
|
| 121 |
+
version = "0.2.16"
|
| 122 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 123 |
+
checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
|
| 124 |
+
|
| 125 |
+
[[package]]
|
| 126 |
+
name = "android-tzdata"
|
| 127 |
+
version = "0.1.1"
|
| 128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 129 |
+
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "android_system_properties"
|
| 133 |
+
version = "0.1.5"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"libc",
|
| 138 |
+
]
|
| 139 |
+
|
| 140 |
+
[[package]]
|
| 141 |
+
name = "ansi_term"
|
| 142 |
+
version = "0.12.1"
|
| 143 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 144 |
+
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
| 145 |
+
dependencies = [
|
| 146 |
+
"winapi",
|
| 147 |
+
]
|
| 148 |
+
|
| 149 |
+
[[package]]
|
| 150 |
+
name = "apache-avro"
|
| 151 |
+
version = "0.16.0"
|
| 152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 153 |
+
checksum = "ceb7c683b2f8f40970b70e39ff8be514c95b96fcb9c4af87e1ed2cb2e10801a0"
|
| 154 |
+
dependencies = [
|
| 155 |
+
"bzip2",
|
| 156 |
+
"crc32fast",
|
| 157 |
+
"digest",
|
| 158 |
+
"lazy_static",
|
| 159 |
+
"libflate",
|
| 160 |
+
"log",
|
| 161 |
+
"num-bigint",
|
| 162 |
+
"quad-rand",
|
| 163 |
+
"rand",
|
| 164 |
+
"regex-lite",
|
| 165 |
+
"serde",
|
| 166 |
+
"serde_json",
|
| 167 |
+
"snap",
|
| 168 |
+
"strum 0.25.0",
|
| 169 |
+
"strum_macros 0.25.3",
|
| 170 |
+
"thiserror",
|
| 171 |
+
"typed-builder",
|
| 172 |
+
"uuid",
|
| 173 |
+
"xz2",
|
| 174 |
+
"zstd 0.12.4",
|
| 175 |
+
]
|
| 176 |
+
|
| 177 |
+
[[package]]
|
| 178 |
+
name = "arrayref"
|
| 179 |
+
version = "0.3.7"
|
| 180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 181 |
+
checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
|
| 182 |
+
|
| 183 |
+
[[package]]
|
| 184 |
+
name = "arrayvec"
|
| 185 |
+
version = "0.7.4"
|
| 186 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 187 |
+
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
|
| 188 |
+
|
| 189 |
+
[[package]]
|
| 190 |
+
name = "arrow"
|
| 191 |
+
version = "50.0.0"
|
| 192 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 193 |
+
checksum = "aa285343fba4d829d49985bdc541e3789cf6000ed0e84be7c039438df4a4e78c"
|
| 194 |
+
dependencies = [
|
| 195 |
+
"arrow-arith",
|
| 196 |
+
"arrow-array",
|
| 197 |
+
"arrow-buffer",
|
| 198 |
+
"arrow-cast",
|
| 199 |
+
"arrow-csv",
|
| 200 |
+
"arrow-data",
|
| 201 |
+
"arrow-ipc",
|
| 202 |
+
"arrow-json",
|
| 203 |
+
"arrow-ord",
|
| 204 |
+
"arrow-row",
|
| 205 |
+
"arrow-schema",
|
| 206 |
+
"arrow-select",
|
| 207 |
+
"arrow-string",
|
| 208 |
+
]
|
| 209 |
+
|
| 210 |
+
[[package]]
|
| 211 |
+
name = "arrow-arith"
|
| 212 |
+
version = "50.0.0"
|
| 213 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 214 |
+
checksum = "753abd0a5290c1bcade7c6623a556f7d1659c5f4148b140b5b63ce7bd1a45705"
|
| 215 |
+
dependencies = [
|
| 216 |
+
"arrow-array",
|
| 217 |
+
"arrow-buffer",
|
| 218 |
+
"arrow-data",
|
| 219 |
+
"arrow-schema",
|
| 220 |
+
"chrono",
|
| 221 |
+
"half",
|
| 222 |
+
"num",
|
| 223 |
+
]
|
| 224 |
+
|
| 225 |
+
[[package]]
|
| 226 |
+
name = "arrow-array"
|
| 227 |
+
version = "50.0.0"
|
| 228 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 229 |
+
checksum = "d390feeb7f21b78ec997a4081a025baef1e2e0d6069e181939b61864c9779609"
|
| 230 |
+
dependencies = [
|
| 231 |
+
"ahash",
|
| 232 |
+
"arrow-buffer",
|
| 233 |
+
"arrow-data",
|
| 234 |
+
"arrow-schema",
|
| 235 |
+
"chrono",
|
| 236 |
+
"chrono-tz",
|
| 237 |
+
"half",
|
| 238 |
+
"hashbrown 0.14.0",
|
| 239 |
+
"num",
|
| 240 |
+
]
|
| 241 |
+
|
| 242 |
+
[[package]]
|
| 243 |
+
name = "arrow-buffer"
|
| 244 |
+
version = "50.0.0"
|
| 245 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 246 |
+
checksum = "69615b061701bcdffbc62756bc7e85c827d5290b472b580c972ebbbf690f5aa4"
|
| 247 |
+
dependencies = [
|
| 248 |
+
"bytes",
|
| 249 |
+
"half",
|
| 250 |
+
"num",
|
| 251 |
+
]
|
| 252 |
+
|
| 253 |
+
[[package]]
|
| 254 |
+
name = "arrow-cast"
|
| 255 |
+
version = "50.0.0"
|
| 256 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 257 |
+
checksum = "e448e5dd2f4113bf5b74a1f26531708f5edcacc77335b7066f9398f4bcf4cdef"
|
| 258 |
+
dependencies = [
|
| 259 |
+
"arrow-array",
|
| 260 |
+
"arrow-buffer",
|
| 261 |
+
"arrow-data",
|
| 262 |
+
"arrow-schema",
|
| 263 |
+
"arrow-select",
|
| 264 |
+
"base64",
|
| 265 |
+
"chrono",
|
| 266 |
+
"comfy-table 7.0.1",
|
| 267 |
+
"half",
|
| 268 |
+
"lexical-core",
|
| 269 |
+
"num",
|
| 270 |
+
]
|
| 271 |
+
|
| 272 |
+
[[package]]
|
| 273 |
+
name = "arrow-csv"
|
| 274 |
+
version = "50.0.0"
|
| 275 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 276 |
+
checksum = "46af72211f0712612f5b18325530b9ad1bfbdc87290d5fbfd32a7da128983781"
|
| 277 |
+
dependencies = [
|
| 278 |
+
"arrow-array",
|
| 279 |
+
"arrow-buffer",
|
| 280 |
+
"arrow-cast",
|
| 281 |
+
"arrow-data",
|
| 282 |
+
"arrow-schema",
|
| 283 |
+
"chrono",
|
| 284 |
+
"csv",
|
| 285 |
+
"csv-core",
|
| 286 |
+
"lazy_static",
|
| 287 |
+
"lexical-core",
|
| 288 |
+
"regex",
|
| 289 |
+
]
|
| 290 |
+
|
| 291 |
+
[[package]]
|
| 292 |
+
name = "arrow-data"
|
| 293 |
+
version = "50.0.0"
|
| 294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 295 |
+
checksum = "67d644b91a162f3ad3135ce1184d0a31c28b816a581e08f29e8e9277a574c64e"
|
| 296 |
+
dependencies = [
|
| 297 |
+
"arrow-buffer",
|
| 298 |
+
"arrow-schema",
|
| 299 |
+
"half",
|
| 300 |
+
"num",
|
| 301 |
+
]
|
| 302 |
+
|
| 303 |
+
[[package]]
|
| 304 |
+
name = "arrow-ipc"
|
| 305 |
+
version = "50.0.0"
|
| 306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 307 |
+
checksum = "03dea5e79b48de6c2e04f03f62b0afea7105be7b77d134f6c5414868feefb80d"
|
| 308 |
+
dependencies = [
|
| 309 |
+
"arrow-array",
|
| 310 |
+
"arrow-buffer",
|
| 311 |
+
"arrow-cast",
|
| 312 |
+
"arrow-data",
|
| 313 |
+
"arrow-schema",
|
| 314 |
+
"flatbuffers",
|
| 315 |
+
"lz4_flex",
|
| 316 |
+
]
|
| 317 |
+
|
| 318 |
+
[[package]]
|
| 319 |
+
name = "arrow-json"
|
| 320 |
+
version = "50.0.0"
|
| 321 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 322 |
+
checksum = "8950719280397a47d37ac01492e3506a8a724b3fb81001900b866637a829ee0f"
|
| 323 |
+
dependencies = [
|
| 324 |
+
"arrow-array",
|
| 325 |
+
"arrow-buffer",
|
| 326 |
+
"arrow-cast",
|
| 327 |
+
"arrow-data",
|
| 328 |
+
"arrow-schema",
|
| 329 |
+
"chrono",
|
| 330 |
+
"half",
|
| 331 |
+
"indexmap 2.0.0",
|
| 332 |
+
"lexical-core",
|
| 333 |
+
"num",
|
| 334 |
+
"serde",
|
| 335 |
+
"serde_json",
|
| 336 |
+
]
|
| 337 |
+
|
| 338 |
+
[[package]]
|
| 339 |
+
name = "arrow-ord"
|
| 340 |
+
version = "50.0.0"
|
| 341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 342 |
+
checksum = "1ed9630979034077982d8e74a942b7ac228f33dd93a93b615b4d02ad60c260be"
|
| 343 |
+
dependencies = [
|
| 344 |
+
"arrow-array",
|
| 345 |
+
"arrow-buffer",
|
| 346 |
+
"arrow-data",
|
| 347 |
+
"arrow-schema",
|
| 348 |
+
"arrow-select",
|
| 349 |
+
"half",
|
| 350 |
+
"num",
|
| 351 |
+
]
|
| 352 |
+
|
| 353 |
+
[[package]]
|
| 354 |
+
name = "arrow-row"
|
| 355 |
+
version = "50.0.0"
|
| 356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 357 |
+
checksum = "007035e17ae09c4e8993e4cb8b5b96edf0afb927cd38e2dff27189b274d83dcf"
|
| 358 |
+
dependencies = [
|
| 359 |
+
"ahash",
|
| 360 |
+
"arrow-array",
|
| 361 |
+
"arrow-buffer",
|
| 362 |
+
"arrow-data",
|
| 363 |
+
"arrow-schema",
|
| 364 |
+
"half",
|
| 365 |
+
"hashbrown 0.14.0",
|
| 366 |
+
]
|
| 367 |
+
|
| 368 |
+
[[package]]
|
| 369 |
+
name = "arrow-schema"
|
| 370 |
+
version = "50.0.0"
|
| 371 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 372 |
+
checksum = "0ff3e9c01f7cd169379d269f926892d0e622a704960350d09d331be3ec9e0029"
|
| 373 |
+
|
| 374 |
+
[[package]]
|
| 375 |
+
name = "arrow-select"
|
| 376 |
+
version = "50.0.0"
|
| 377 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 378 |
+
checksum = "1ce20973c1912de6514348e064829e50947e35977bb9d7fb637dc99ea9ffd78c"
|
| 379 |
+
dependencies = [
|
| 380 |
+
"ahash",
|
| 381 |
+
"arrow-array",
|
| 382 |
+
"arrow-buffer",
|
| 383 |
+
"arrow-data",
|
| 384 |
+
"arrow-schema",
|
| 385 |
+
"num",
|
| 386 |
+
]
|
| 387 |
+
|
| 388 |
+
[[package]]
|
| 389 |
+
name = "arrow-string"
|
| 390 |
+
version = "50.0.0"
|
| 391 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 392 |
+
checksum = "00f3b37f2aeece31a2636d1b037dabb69ef590e03bdc7eb68519b51ec86932a7"
|
| 393 |
+
dependencies = [
|
| 394 |
+
"arrow-array",
|
| 395 |
+
"arrow-buffer",
|
| 396 |
+
"arrow-data",
|
| 397 |
+
"arrow-schema",
|
| 398 |
+
"arrow-select",
|
| 399 |
+
"num",
|
| 400 |
+
"regex",
|
| 401 |
+
"regex-syntax 0.8.2",
|
| 402 |
+
]
|
| 403 |
+
|
| 404 |
+
[[package]]
|
| 405 |
+
name = "async-compression"
|
| 406 |
+
version = "0.4.1"
|
| 407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 408 |
+
checksum = "62b74f44609f0f91493e3082d3734d98497e094777144380ea4db9f9905dd5b6"
|
| 409 |
+
dependencies = [
|
| 410 |
+
"bzip2",
|
| 411 |
+
"flate2",
|
| 412 |
+
"futures-core",
|
| 413 |
+
"futures-io",
|
| 414 |
+
"memchr",
|
| 415 |
+
"pin-project-lite",
|
| 416 |
+
"tokio",
|
| 417 |
+
"xz2",
|
| 418 |
+
"zstd 0.12.4",
|
| 419 |
+
"zstd-safe 6.0.6",
|
| 420 |
+
]
|
| 421 |
+
|
| 422 |
+
[[package]]
|
| 423 |
+
name = "async-trait"
|
| 424 |
+
version = "0.1.74"
|
| 425 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 426 |
+
checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9"
|
| 427 |
+
dependencies = [
|
| 428 |
+
"proc-macro2",
|
| 429 |
+
"quote",
|
| 430 |
+
"syn 2.0.28",
|
| 431 |
+
]
|
| 432 |
+
|
| 433 |
+
[[package]]
|
| 434 |
+
name = "atty"
|
| 435 |
+
version = "0.2.14"
|
| 436 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 437 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 438 |
+
dependencies = [
|
| 439 |
+
"hermit-abi 0.1.19",
|
| 440 |
+
"libc",
|
| 441 |
+
"winapi",
|
| 442 |
+
]
|
| 443 |
+
|
| 444 |
+
[[package]]
|
| 445 |
+
name = "autocfg"
|
| 446 |
+
version = "1.1.0"
|
| 447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 448 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 449 |
+
|
| 450 |
+
[[package]]
|
| 451 |
+
name = "backtrace"
|
| 452 |
+
version = "0.3.68"
|
| 453 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 454 |
+
checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12"
|
| 455 |
+
dependencies = [
|
| 456 |
+
"addr2line",
|
| 457 |
+
"cc",
|
| 458 |
+
"cfg-if",
|
| 459 |
+
"libc",
|
| 460 |
+
"miniz_oxide",
|
| 461 |
+
"object",
|
| 462 |
+
"rustc-demangle",
|
| 463 |
+
]
|
| 464 |
+
|
| 465 |
+
[[package]]
|
| 466 |
+
name = "base64"
|
| 467 |
+
version = "0.21.2"
|
| 468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 469 |
+
checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d"
|
| 470 |
+
|
| 471 |
+
[[package]]
|
| 472 |
+
name = "bdt"
|
| 473 |
+
version = "0.18.0"
|
| 474 |
+
dependencies = [
|
| 475 |
+
"comfy-table 6.2.0",
|
| 476 |
+
"datafusion",
|
| 477 |
+
"structopt",
|
| 478 |
+
"thiserror",
|
| 479 |
+
"tokio",
|
| 480 |
+
]
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "bitflags"
|
| 484 |
+
version = "1.3.2"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 487 |
+
|
| 488 |
+
[[package]]
|
| 489 |
+
name = "bitflags"
|
| 490 |
+
version = "2.3.3"
|
| 491 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 492 |
+
checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "blake2"
|
| 496 |
+
version = "0.10.6"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"digest",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "blake3"
|
| 505 |
+
version = "1.4.1"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5"
|
| 508 |
+
dependencies = [
|
| 509 |
+
"arrayref",
|
| 510 |
+
"arrayvec",
|
| 511 |
+
"cc",
|
| 512 |
+
"cfg-if",
|
| 513 |
+
"constant_time_eq",
|
| 514 |
+
"digest",
|
| 515 |
+
]
|
| 516 |
+
|
| 517 |
+
[[package]]
|
| 518 |
+
name = "block-buffer"
|
| 519 |
+
version = "0.10.4"
|
| 520 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 521 |
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
| 522 |
+
dependencies = [
|
| 523 |
+
"generic-array",
|
| 524 |
+
]
|
| 525 |
+
|
| 526 |
+
[[package]]
|
| 527 |
+
name = "brotli"
|
| 528 |
+
version = "3.3.4"
|
| 529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 530 |
+
checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68"
|
| 531 |
+
dependencies = [
|
| 532 |
+
"alloc-no-stdlib",
|
| 533 |
+
"alloc-stdlib",
|
| 534 |
+
"brotli-decompressor",
|
| 535 |
+
]
|
| 536 |
+
|
| 537 |
+
[[package]]
|
| 538 |
+
name = "brotli-decompressor"
|
| 539 |
+
version = "2.3.4"
|
| 540 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 541 |
+
checksum = "4b6561fd3f895a11e8f72af2cb7d22e08366bebc2b6b57f7744c4bda27034744"
|
| 542 |
+
dependencies = [
|
| 543 |
+
"alloc-no-stdlib",
|
| 544 |
+
"alloc-stdlib",
|
| 545 |
+
]
|
| 546 |
+
|
| 547 |
+
[[package]]
|
| 548 |
+
name = "bumpalo"
|
| 549 |
+
version = "3.13.0"
|
| 550 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 551 |
+
checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
|
| 552 |
+
|
| 553 |
+
[[package]]
|
| 554 |
+
name = "byteorder"
|
| 555 |
+
version = "1.4.3"
|
| 556 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 557 |
+
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "bytes"
|
| 561 |
+
version = "1.4.0"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"
|
| 564 |
+
|
| 565 |
+
[[package]]
|
| 566 |
+
name = "bzip2"
|
| 567 |
+
version = "0.4.4"
|
| 568 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 569 |
+
checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8"
|
| 570 |
+
dependencies = [
|
| 571 |
+
"bzip2-sys",
|
| 572 |
+
"libc",
|
| 573 |
+
]
|
| 574 |
+
|
| 575 |
+
[[package]]
|
| 576 |
+
name = "bzip2-sys"
|
| 577 |
+
version = "0.1.11+1.0.8"
|
| 578 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 579 |
+
checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
|
| 580 |
+
dependencies = [
|
| 581 |
+
"cc",
|
| 582 |
+
"libc",
|
| 583 |
+
"pkg-config",
|
| 584 |
+
]
|
| 585 |
+
|
| 586 |
+
[[package]]
|
| 587 |
+
name = "cc"
|
| 588 |
+
version = "1.0.81"
|
| 589 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 590 |
+
checksum = "6c6b2562119bf28c3439f7f02db99faf0aa1a8cdfe5772a2ee155d32227239f0"
|
| 591 |
+
dependencies = [
|
| 592 |
+
"jobserver",
|
| 593 |
+
"libc",
|
| 594 |
+
]
|
| 595 |
+
|
| 596 |
+
[[package]]
|
| 597 |
+
name = "cfg-if"
|
| 598 |
+
version = "1.0.0"
|
| 599 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 600 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 601 |
+
|
| 602 |
+
[[package]]
|
| 603 |
+
name = "chrono"
|
| 604 |
+
version = "0.4.31"
|
| 605 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 606 |
+
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
|
| 607 |
+
dependencies = [
|
| 608 |
+
"android-tzdata",
|
| 609 |
+
"iana-time-zone",
|
| 610 |
+
"num-traits",
|
| 611 |
+
"windows-targets",
|
| 612 |
+
]
|
| 613 |
+
|
| 614 |
+
[[package]]
|
| 615 |
+
name = "chrono-tz"
|
| 616 |
+
version = "0.8.3"
|
| 617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 618 |
+
checksum = "f1369bc6b9e9a7dfdae2055f6ec151fe9c554a9d23d357c0237cee2e25eaabb7"
|
| 619 |
+
dependencies = [
|
| 620 |
+
"chrono",
|
| 621 |
+
"chrono-tz-build",
|
| 622 |
+
"phf",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "chrono-tz-build"
|
| 627 |
+
version = "0.2.0"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "e2f5ebdc942f57ed96d560a6d1a459bae5851102a25d5bf89dc04ae453e31ecf"
|
| 630 |
+
dependencies = [
|
| 631 |
+
"parse-zoneinfo",
|
| 632 |
+
"phf",
|
| 633 |
+
"phf_codegen",
|
| 634 |
+
]
|
| 635 |
+
|
| 636 |
+
[[package]]
|
| 637 |
+
name = "clap"
|
| 638 |
+
version = "2.34.0"
|
| 639 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 640 |
+
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
|
| 641 |
+
dependencies = [
|
| 642 |
+
"ansi_term",
|
| 643 |
+
"atty",
|
| 644 |
+
"bitflags 1.3.2",
|
| 645 |
+
"strsim",
|
| 646 |
+
"textwrap",
|
| 647 |
+
"unicode-width",
|
| 648 |
+
"vec_map",
|
| 649 |
+
]
|
| 650 |
+
|
| 651 |
+
[[package]]
|
| 652 |
+
name = "comfy-table"
|
| 653 |
+
version = "6.2.0"
|
| 654 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 655 |
+
checksum = "7e959d788268e3bf9d35ace83e81b124190378e4c91c9067524675e33394b8ba"
|
| 656 |
+
dependencies = [
|
| 657 |
+
"crossterm",
|
| 658 |
+
"strum 0.24.1",
|
| 659 |
+
"strum_macros 0.24.3",
|
| 660 |
+
"unicode-width",
|
| 661 |
+
]
|
| 662 |
+
|
| 663 |
+
[[package]]
|
| 664 |
+
name = "comfy-table"
|
| 665 |
+
version = "7.0.1"
|
| 666 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 667 |
+
checksum = "9ab77dbd8adecaf3f0db40581631b995f312a8a5ae3aa9993188bb8f23d83a5b"
|
| 668 |
+
dependencies = [
|
| 669 |
+
"strum 0.24.1",
|
| 670 |
+
"strum_macros 0.24.3",
|
| 671 |
+
"unicode-width",
|
| 672 |
+
]
|
| 673 |
+
|
| 674 |
+
[[package]]
|
| 675 |
+
name = "const-random"
|
| 676 |
+
version = "0.1.15"
|
| 677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 678 |
+
checksum = "368a7a772ead6ce7e1de82bfb04c485f3db8ec744f72925af5735e29a22cc18e"
|
| 679 |
+
dependencies = [
|
| 680 |
+
"const-random-macro",
|
| 681 |
+
"proc-macro-hack",
|
| 682 |
+
]
|
| 683 |
+
|
| 684 |
+
[[package]]
|
| 685 |
+
name = "const-random-macro"
|
| 686 |
+
version = "0.1.15"
|
| 687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 688 |
+
checksum = "9d7d6ab3c3a2282db210df5f02c4dab6e0a7057af0fb7ebd4070f30fe05c0ddb"
|
| 689 |
+
dependencies = [
|
| 690 |
+
"getrandom",
|
| 691 |
+
"once_cell",
|
| 692 |
+
"proc-macro-hack",
|
| 693 |
+
"tiny-keccak",
|
| 694 |
+
]
|
| 695 |
+
|
| 696 |
+
[[package]]
|
| 697 |
+
name = "constant_time_eq"
|
| 698 |
+
version = "0.3.0"
|
| 699 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 700 |
+
checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
|
| 701 |
+
|
| 702 |
+
[[package]]
|
| 703 |
+
name = "core-foundation-sys"
|
| 704 |
+
version = "0.8.4"
|
| 705 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 706 |
+
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
|
| 707 |
+
|
| 708 |
+
[[package]]
|
| 709 |
+
name = "core2"
|
| 710 |
+
version = "0.4.0"
|
| 711 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 712 |
+
checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505"
|
| 713 |
+
dependencies = [
|
| 714 |
+
"memchr",
|
| 715 |
+
]
|
| 716 |
+
|
| 717 |
+
[[package]]
|
| 718 |
+
name = "cpufeatures"
|
| 719 |
+
version = "0.2.9"
|
| 720 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 721 |
+
checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1"
|
| 722 |
+
dependencies = [
|
| 723 |
+
"libc",
|
| 724 |
+
]
|
| 725 |
+
|
| 726 |
+
[[package]]
|
| 727 |
+
name = "crc32fast"
|
| 728 |
+
version = "1.3.2"
|
| 729 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 730 |
+
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
|
| 731 |
+
dependencies = [
|
| 732 |
+
"cfg-if",
|
| 733 |
+
]
|
| 734 |
+
|
| 735 |
+
[[package]]
|
| 736 |
+
name = "crossterm"
|
| 737 |
+
version = "0.26.1"
|
| 738 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 739 |
+
checksum = "a84cda67535339806297f1b331d6dd6320470d2a0fe65381e79ee9e156dd3d13"
|
| 740 |
+
dependencies = [
|
| 741 |
+
"bitflags 1.3.2",
|
| 742 |
+
"crossterm_winapi",
|
| 743 |
+
"libc",
|
| 744 |
+
"mio",
|
| 745 |
+
"parking_lot",
|
| 746 |
+
"signal-hook",
|
| 747 |
+
"signal-hook-mio",
|
| 748 |
+
"winapi",
|
| 749 |
+
]
|
| 750 |
+
|
| 751 |
+
[[package]]
|
| 752 |
+
name = "crossterm_winapi"
|
| 753 |
+
version = "0.9.1"
|
| 754 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 755 |
+
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
| 756 |
+
dependencies = [
|
| 757 |
+
"winapi",
|
| 758 |
+
]
|
| 759 |
+
|
| 760 |
+
[[package]]
|
| 761 |
+
name = "crunchy"
|
| 762 |
+
version = "0.2.2"
|
| 763 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 764 |
+
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
|
| 765 |
+
|
| 766 |
+
[[package]]
|
| 767 |
+
name = "crypto-common"
|
| 768 |
+
version = "0.1.6"
|
| 769 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 770 |
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
| 771 |
+
dependencies = [
|
| 772 |
+
"generic-array",
|
| 773 |
+
"typenum",
|
| 774 |
+
]
|
| 775 |
+
|
| 776 |
+
[[package]]
|
| 777 |
+
name = "csv"
|
| 778 |
+
version = "1.2.2"
|
| 779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 780 |
+
checksum = "626ae34994d3d8d668f4269922248239db4ae42d538b14c398b74a52208e8086"
|
| 781 |
+
dependencies = [
|
| 782 |
+
"csv-core",
|
| 783 |
+
"itoa",
|
| 784 |
+
"ryu",
|
| 785 |
+
"serde",
|
| 786 |
+
]
|
| 787 |
+
|
| 788 |
+
[[package]]
|
| 789 |
+
name = "csv-core"
|
| 790 |
+
version = "0.1.10"
|
| 791 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 792 |
+
checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90"
|
| 793 |
+
dependencies = [
|
| 794 |
+
"memchr",
|
| 795 |
+
]
|
| 796 |
+
|
| 797 |
+
[[package]]
|
| 798 |
+
name = "dary_heap"
|
| 799 |
+
version = "0.3.6"
|
| 800 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 801 |
+
checksum = "7762d17f1241643615821a8455a0b2c3e803784b058693d990b11f2dce25a0ca"
|
| 802 |
+
|
| 803 |
+
[[package]]
|
| 804 |
+
name = "dashmap"
|
| 805 |
+
version = "5.5.0"
|
| 806 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 807 |
+
checksum = "6943ae99c34386c84a470c499d3414f66502a41340aa895406e0d2e4a207b91d"
|
| 808 |
+
dependencies = [
|
| 809 |
+
"cfg-if",
|
| 810 |
+
"hashbrown 0.14.0",
|
| 811 |
+
"lock_api",
|
| 812 |
+
"once_cell",
|
| 813 |
+
"parking_lot_core",
|
| 814 |
+
]
|
| 815 |
+
|
| 816 |
+
[[package]]
|
| 817 |
+
name = "datafusion"
|
| 818 |
+
version = "35.0.0"
|
| 819 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 820 |
+
checksum = "4328f5467f76d890fe3f924362dbc3a838c6a733f762b32d87f9e0b7bef5fb49"
|
| 821 |
+
dependencies = [
|
| 822 |
+
"ahash",
|
| 823 |
+
"apache-avro",
|
| 824 |
+
"arrow",
|
| 825 |
+
"arrow-array",
|
| 826 |
+
"arrow-ipc",
|
| 827 |
+
"arrow-schema",
|
| 828 |
+
"async-compression",
|
| 829 |
+
"async-trait",
|
| 830 |
+
"bytes",
|
| 831 |
+
"bzip2",
|
| 832 |
+
"chrono",
|
| 833 |
+
"dashmap",
|
| 834 |
+
"datafusion-common",
|
| 835 |
+
"datafusion-execution",
|
| 836 |
+
"datafusion-expr",
|
| 837 |
+
"datafusion-optimizer",
|
| 838 |
+
"datafusion-physical-expr",
|
| 839 |
+
"datafusion-physical-plan",
|
| 840 |
+
"datafusion-sql",
|
| 841 |
+
"flate2",
|
| 842 |
+
"futures",
|
| 843 |
+
"glob",
|
| 844 |
+
"half",
|
| 845 |
+
"hashbrown 0.14.0",
|
| 846 |
+
"indexmap 2.0.0",
|
| 847 |
+
"itertools",
|
| 848 |
+
"log",
|
| 849 |
+
"num-traits",
|
| 850 |
+
"num_cpus",
|
| 851 |
+
"object_store",
|
| 852 |
+
"parking_lot",
|
| 853 |
+
"parquet",
|
| 854 |
+
"pin-project-lite",
|
| 855 |
+
"rand",
|
| 856 |
+
"sqlparser",
|
| 857 |
+
"tempfile",
|
| 858 |
+
"tokio",
|
| 859 |
+
"tokio-util",
|
| 860 |
+
"url",
|
| 861 |
+
"uuid",
|
| 862 |
+
"xz2",
|
| 863 |
+
"zstd 0.13.0",
|
| 864 |
+
]
|
| 865 |
+
|
| 866 |
+
[[package]]
|
| 867 |
+
name = "datafusion-common"
|
| 868 |
+
version = "35.0.0"
|
| 869 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 870 |
+
checksum = "d29a7752143b446db4a2cccd9a6517293c6b97e8c39e520ca43ccd07135a4f7e"
|
| 871 |
+
dependencies = [
|
| 872 |
+
"ahash",
|
| 873 |
+
"apache-avro",
|
| 874 |
+
"arrow",
|
| 875 |
+
"arrow-array",
|
| 876 |
+
"arrow-buffer",
|
| 877 |
+
"arrow-schema",
|
| 878 |
+
"chrono",
|
| 879 |
+
"half",
|
| 880 |
+
"libc",
|
| 881 |
+
"num_cpus",
|
| 882 |
+
"object_store",
|
| 883 |
+
"parquet",
|
| 884 |
+
"sqlparser",
|
| 885 |
+
]
|
| 886 |
+
|
| 887 |
+
[[package]]
|
| 888 |
+
name = "datafusion-execution"
|
| 889 |
+
version = "35.0.0"
|
| 890 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 891 |
+
checksum = "2d447650af16e138c31237f53ddaef6dd4f92f0e2d3f2f35d190e16c214ca496"
|
| 892 |
+
dependencies = [
|
| 893 |
+
"arrow",
|
| 894 |
+
"chrono",
|
| 895 |
+
"dashmap",
|
| 896 |
+
"datafusion-common",
|
| 897 |
+
"datafusion-expr",
|
| 898 |
+
"futures",
|
| 899 |
+
"hashbrown 0.14.0",
|
| 900 |
+
"log",
|
| 901 |
+
"object_store",
|
| 902 |
+
"parking_lot",
|
| 903 |
+
"rand",
|
| 904 |
+
"tempfile",
|
| 905 |
+
"url",
|
| 906 |
+
]
|
| 907 |
+
|
| 908 |
+
[[package]]
|
| 909 |
+
name = "datafusion-expr"
|
| 910 |
+
version = "35.0.0"
|
| 911 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 912 |
+
checksum = "d8d19598e48a498850fb79f97a9719b1f95e7deb64a7a06f93f313e8fa1d524b"
|
| 913 |
+
dependencies = [
|
| 914 |
+
"ahash",
|
| 915 |
+
"arrow",
|
| 916 |
+
"arrow-array",
|
| 917 |
+
"datafusion-common",
|
| 918 |
+
"paste",
|
| 919 |
+
"sqlparser",
|
| 920 |
+
"strum 0.25.0",
|
| 921 |
+
"strum_macros 0.25.3",
|
| 922 |
+
]
|
| 923 |
+
|
| 924 |
+
[[package]]
|
| 925 |
+
name = "datafusion-optimizer"
|
| 926 |
+
version = "35.0.0"
|
| 927 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 928 |
+
checksum = "8b7feb0391f1fc75575acb95b74bfd276903dc37a5409fcebe160bc7ddff2010"
|
| 929 |
+
dependencies = [
|
| 930 |
+
"arrow",
|
| 931 |
+
"async-trait",
|
| 932 |
+
"chrono",
|
| 933 |
+
"datafusion-common",
|
| 934 |
+
"datafusion-expr",
|
| 935 |
+
"datafusion-physical-expr",
|
| 936 |
+
"hashbrown 0.14.0",
|
| 937 |
+
"itertools",
|
| 938 |
+
"log",
|
| 939 |
+
"regex-syntax 0.8.2",
|
| 940 |
+
]
|
| 941 |
+
|
| 942 |
+
[[package]]
|
| 943 |
+
name = "datafusion-physical-expr"
|
| 944 |
+
version = "35.0.0"
|
| 945 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 946 |
+
checksum = "e911bca609c89a54e8f014777449d8290327414d3e10c57a3e3c2122e38878d0"
|
| 947 |
+
dependencies = [
|
| 948 |
+
"ahash",
|
| 949 |
+
"arrow",
|
| 950 |
+
"arrow-array",
|
| 951 |
+
"arrow-buffer",
|
| 952 |
+
"arrow-ord",
|
| 953 |
+
"arrow-schema",
|
| 954 |
+
"base64",
|
| 955 |
+
"blake2",
|
| 956 |
+
"blake3",
|
| 957 |
+
"chrono",
|
| 958 |
+
"datafusion-common",
|
| 959 |
+
"datafusion-expr",
|
| 960 |
+
"half",
|
| 961 |
+
"hashbrown 0.14.0",
|
| 962 |
+
"hex",
|
| 963 |
+
"indexmap 2.0.0",
|
| 964 |
+
"itertools",
|
| 965 |
+
"log",
|
| 966 |
+
"md-5",
|
| 967 |
+
"paste",
|
| 968 |
+
"petgraph",
|
| 969 |
+
"rand",
|
| 970 |
+
"regex",
|
| 971 |
+
"sha2",
|
| 972 |
+
"unicode-segmentation",
|
| 973 |
+
"uuid",
|
| 974 |
+
]
|
| 975 |
+
|
| 976 |
+
[[package]]
|
| 977 |
+
name = "datafusion-physical-plan"
|
| 978 |
+
version = "35.0.0"
|
| 979 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 980 |
+
checksum = "e96b546b8a02e9c2ab35ac6420d511f12a4701950c1eb2e568c122b4fefb0be3"
|
| 981 |
+
dependencies = [
|
| 982 |
+
"ahash",
|
| 983 |
+
"arrow",
|
| 984 |
+
"arrow-array",
|
| 985 |
+
"arrow-buffer",
|
| 986 |
+
"arrow-schema",
|
| 987 |
+
"async-trait",
|
| 988 |
+
"chrono",
|
| 989 |
+
"datafusion-common",
|
| 990 |
+
"datafusion-execution",
|
| 991 |
+
"datafusion-expr",
|
| 992 |
+
"datafusion-physical-expr",
|
| 993 |
+
"futures",
|
| 994 |
+
"half",
|
| 995 |
+
"hashbrown 0.14.0",
|
| 996 |
+
"indexmap 2.0.0",
|
| 997 |
+
"itertools",
|
| 998 |
+
"log",
|
| 999 |
+
"once_cell",
|
| 1000 |
+
"parking_lot",
|
| 1001 |
+
"pin-project-lite",
|
| 1002 |
+
"rand",
|
| 1003 |
+
"tokio",
|
| 1004 |
+
"uuid",
|
| 1005 |
+
]
|
| 1006 |
+
|
| 1007 |
+
[[package]]
|
| 1008 |
+
name = "datafusion-sql"
|
| 1009 |
+
version = "35.0.0"
|
| 1010 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1011 |
+
checksum = "2d18d36f260bbbd63aafdb55339213a23d540d3419810575850ef0a798a6b768"
|
| 1012 |
+
dependencies = [
|
| 1013 |
+
"arrow",
|
| 1014 |
+
"arrow-schema",
|
| 1015 |
+
"datafusion-common",
|
| 1016 |
+
"datafusion-expr",
|
| 1017 |
+
"log",
|
| 1018 |
+
"sqlparser",
|
| 1019 |
+
]
|
| 1020 |
+
|
| 1021 |
+
[[package]]
|
| 1022 |
+
name = "digest"
|
| 1023 |
+
version = "0.10.7"
|
| 1024 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1025 |
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
| 1026 |
+
dependencies = [
|
| 1027 |
+
"block-buffer",
|
| 1028 |
+
"crypto-common",
|
| 1029 |
+
"subtle",
|
| 1030 |
+
]
|
| 1031 |
+
|
| 1032 |
+
[[package]]
|
| 1033 |
+
name = "doc-comment"
|
| 1034 |
+
version = "0.3.3"
|
| 1035 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1036 |
+
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
|
| 1037 |
+
|
| 1038 |
+
[[package]]
|
| 1039 |
+
name = "either"
|
| 1040 |
+
version = "1.9.0"
|
| 1041 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1042 |
+
checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
|
| 1043 |
+
|
| 1044 |
+
[[package]]
|
| 1045 |
+
name = "equivalent"
|
| 1046 |
+
version = "1.0.1"
|
| 1047 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1048 |
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
| 1049 |
+
|
| 1050 |
+
[[package]]
|
| 1051 |
+
name = "errno"
|
| 1052 |
+
version = "0.3.2"
|
| 1053 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1054 |
+
checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f"
|
| 1055 |
+
dependencies = [
|
| 1056 |
+
"errno-dragonfly",
|
| 1057 |
+
"libc",
|
| 1058 |
+
"windows-sys",
|
| 1059 |
+
]
|
| 1060 |
+
|
| 1061 |
+
[[package]]
|
| 1062 |
+
name = "errno-dragonfly"
|
| 1063 |
+
version = "0.1.2"
|
| 1064 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1065 |
+
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
|
| 1066 |
+
dependencies = [
|
| 1067 |
+
"cc",
|
| 1068 |
+
"libc",
|
| 1069 |
+
]
|
| 1070 |
+
|
| 1071 |
+
[[package]]
|
| 1072 |
+
name = "fastrand"
|
| 1073 |
+
version = "2.0.0"
|
| 1074 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1075 |
+
checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764"
|
| 1076 |
+
|
| 1077 |
+
[[package]]
|
| 1078 |
+
name = "fixedbitset"
|
| 1079 |
+
version = "0.4.2"
|
| 1080 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1081 |
+
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
| 1082 |
+
|
| 1083 |
+
[[package]]
|
| 1084 |
+
name = "flatbuffers"
|
| 1085 |
+
version = "23.5.26"
|
| 1086 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1087 |
+
checksum = "4dac53e22462d78c16d64a1cd22371b54cc3fe94aa15e7886a2fa6e5d1ab8640"
|
| 1088 |
+
dependencies = [
|
| 1089 |
+
"bitflags 1.3.2",
|
| 1090 |
+
"rustc_version",
|
| 1091 |
+
]
|
| 1092 |
+
|
| 1093 |
+
[[package]]
|
| 1094 |
+
name = "flate2"
|
| 1095 |
+
version = "1.0.26"
|
| 1096 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1097 |
+
checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
|
| 1098 |
+
dependencies = [
|
| 1099 |
+
"crc32fast",
|
| 1100 |
+
"miniz_oxide",
|
| 1101 |
+
]
|
| 1102 |
+
|
| 1103 |
+
[[package]]
|
| 1104 |
+
name = "form_urlencoded"
|
| 1105 |
+
version = "1.2.0"
|
| 1106 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1107 |
+
checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652"
|
| 1108 |
+
dependencies = [
|
| 1109 |
+
"percent-encoding",
|
| 1110 |
+
]
|
| 1111 |
+
|
| 1112 |
+
[[package]]
|
| 1113 |
+
name = "futures"
|
| 1114 |
+
version = "0.3.28"
|
| 1115 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1116 |
+
checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40"
|
| 1117 |
+
dependencies = [
|
| 1118 |
+
"futures-channel",
|
| 1119 |
+
"futures-core",
|
| 1120 |
+
"futures-executor",
|
| 1121 |
+
"futures-io",
|
| 1122 |
+
"futures-sink",
|
| 1123 |
+
"futures-task",
|
| 1124 |
+
"futures-util",
|
| 1125 |
+
]
|
| 1126 |
+
|
| 1127 |
+
[[package]]
|
| 1128 |
+
name = "futures-channel"
|
| 1129 |
+
version = "0.3.28"
|
| 1130 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1131 |
+
checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2"
|
| 1132 |
+
dependencies = [
|
| 1133 |
+
"futures-core",
|
| 1134 |
+
"futures-sink",
|
| 1135 |
+
]
|
| 1136 |
+
|
| 1137 |
+
[[package]]
|
| 1138 |
+
name = "futures-core"
|
| 1139 |
+
version = "0.3.28"
|
| 1140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1141 |
+
checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"
|
| 1142 |
+
|
| 1143 |
+
[[package]]
|
| 1144 |
+
name = "futures-executor"
|
| 1145 |
+
version = "0.3.28"
|
| 1146 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1147 |
+
checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0"
|
| 1148 |
+
dependencies = [
|
| 1149 |
+
"futures-core",
|
| 1150 |
+
"futures-task",
|
| 1151 |
+
"futures-util",
|
| 1152 |
+
]
|
| 1153 |
+
|
| 1154 |
+
[[package]]
|
| 1155 |
+
name = "futures-io"
|
| 1156 |
+
version = "0.3.28"
|
| 1157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1158 |
+
checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"
|
| 1159 |
+
|
| 1160 |
+
[[package]]
|
| 1161 |
+
name = "futures-macro"
|
| 1162 |
+
version = "0.3.28"
|
| 1163 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1164 |
+
checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72"
|
| 1165 |
+
dependencies = [
|
| 1166 |
+
"proc-macro2",
|
| 1167 |
+
"quote",
|
| 1168 |
+
"syn 2.0.28",
|
| 1169 |
+
]
|
| 1170 |
+
|
| 1171 |
+
[[package]]
|
| 1172 |
+
name = "futures-sink"
|
| 1173 |
+
version = "0.3.28"
|
| 1174 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1175 |
+
checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"
|
| 1176 |
+
|
| 1177 |
+
[[package]]
|
| 1178 |
+
name = "futures-task"
|
| 1179 |
+
version = "0.3.28"
|
| 1180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1181 |
+
checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65"
|
| 1182 |
+
|
| 1183 |
+
[[package]]
|
| 1184 |
+
name = "futures-util"
|
| 1185 |
+
version = "0.3.28"
|
| 1186 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1187 |
+
checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
|
| 1188 |
+
dependencies = [
|
| 1189 |
+
"futures-channel",
|
| 1190 |
+
"futures-core",
|
| 1191 |
+
"futures-io",
|
| 1192 |
+
"futures-macro",
|
| 1193 |
+
"futures-sink",
|
| 1194 |
+
"futures-task",
|
| 1195 |
+
"memchr",
|
| 1196 |
+
"pin-project-lite",
|
| 1197 |
+
"pin-utils",
|
| 1198 |
+
"slab",
|
| 1199 |
+
]
|
| 1200 |
+
|
| 1201 |
+
[[package]]
|
| 1202 |
+
name = "generic-array"
|
| 1203 |
+
version = "0.14.7"
|
| 1204 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1205 |
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
| 1206 |
+
dependencies = [
|
| 1207 |
+
"typenum",
|
| 1208 |
+
"version_check",
|
| 1209 |
+
]
|
| 1210 |
+
|
| 1211 |
+
[[package]]
|
| 1212 |
+
name = "getrandom"
|
| 1213 |
+
version = "0.2.10"
|
| 1214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1215 |
+
checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
|
| 1216 |
+
dependencies = [
|
| 1217 |
+
"cfg-if",
|
| 1218 |
+
"libc",
|
| 1219 |
+
"wasi",
|
| 1220 |
+
]
|
| 1221 |
+
|
| 1222 |
+
[[package]]
|
| 1223 |
+
name = "gimli"
|
| 1224 |
+
version = "0.27.3"
|
| 1225 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1226 |
+
checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
|
| 1227 |
+
|
| 1228 |
+
[[package]]
|
| 1229 |
+
name = "glob"
|
| 1230 |
+
version = "0.3.1"
|
| 1231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1232 |
+
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "half"
|
| 1236 |
+
version = "2.3.1"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "bc52e53916c08643f1b56ec082790d1e86a32e58dc5268f897f313fbae7b4872"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"cfg-if",
|
| 1241 |
+
"crunchy",
|
| 1242 |
+
"num-traits",
|
| 1243 |
+
]
|
| 1244 |
+
|
| 1245 |
+
[[package]]
|
| 1246 |
+
name = "hashbrown"
|
| 1247 |
+
version = "0.12.3"
|
| 1248 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1249 |
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
| 1250 |
+
|
| 1251 |
+
[[package]]
|
| 1252 |
+
name = "hashbrown"
|
| 1253 |
+
version = "0.13.2"
|
| 1254 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1255 |
+
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
|
| 1256 |
+
dependencies = [
|
| 1257 |
+
"ahash",
|
| 1258 |
+
]
|
| 1259 |
+
|
| 1260 |
+
[[package]]
|
| 1261 |
+
name = "hashbrown"
|
| 1262 |
+
version = "0.14.0"
|
| 1263 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1264 |
+
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
|
| 1265 |
+
dependencies = [
|
| 1266 |
+
"ahash",
|
| 1267 |
+
"allocator-api2",
|
| 1268 |
+
]
|
| 1269 |
+
|
| 1270 |
+
[[package]]
|
| 1271 |
+
name = "heck"
|
| 1272 |
+
version = "0.3.3"
|
| 1273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1274 |
+
checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
|
| 1275 |
+
dependencies = [
|
| 1276 |
+
"unicode-segmentation",
|
| 1277 |
+
]
|
| 1278 |
+
|
| 1279 |
+
[[package]]
|
| 1280 |
+
name = "heck"
|
| 1281 |
+
version = "0.4.1"
|
| 1282 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1283 |
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
| 1284 |
+
|
| 1285 |
+
[[package]]
|
| 1286 |
+
name = "hermit-abi"
|
| 1287 |
+
version = "0.1.19"
|
| 1288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1289 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 1290 |
+
dependencies = [
|
| 1291 |
+
"libc",
|
| 1292 |
+
]
|
| 1293 |
+
|
| 1294 |
+
[[package]]
|
| 1295 |
+
name = "hermit-abi"
|
| 1296 |
+
version = "0.3.2"
|
| 1297 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1298 |
+
checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b"
|
| 1299 |
+
|
| 1300 |
+
[[package]]
|
| 1301 |
+
name = "hex"
|
| 1302 |
+
version = "0.4.3"
|
| 1303 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1304 |
+
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
| 1305 |
+
|
| 1306 |
+
[[package]]
|
| 1307 |
+
name = "humantime"
|
| 1308 |
+
version = "2.1.0"
|
| 1309 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1310 |
+
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
| 1311 |
+
|
| 1312 |
+
[[package]]
|
| 1313 |
+
name = "iana-time-zone"
|
| 1314 |
+
version = "0.1.57"
|
| 1315 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1316 |
+
checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
|
| 1317 |
+
dependencies = [
|
| 1318 |
+
"android_system_properties",
|
| 1319 |
+
"core-foundation-sys",
|
| 1320 |
+
"iana-time-zone-haiku",
|
| 1321 |
+
"js-sys",
|
| 1322 |
+
"wasm-bindgen",
|
| 1323 |
+
"windows",
|
| 1324 |
+
]
|
| 1325 |
+
|
| 1326 |
+
[[package]]
|
| 1327 |
+
name = "iana-time-zone-haiku"
|
| 1328 |
+
version = "0.1.2"
|
| 1329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1330 |
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
| 1331 |
+
dependencies = [
|
| 1332 |
+
"cc",
|
| 1333 |
+
]
|
| 1334 |
+
|
| 1335 |
+
[[package]]
|
| 1336 |
+
name = "idna"
|
| 1337 |
+
version = "0.4.0"
|
| 1338 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1339 |
+
checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
|
| 1340 |
+
dependencies = [
|
| 1341 |
+
"unicode-bidi",
|
| 1342 |
+
"unicode-normalization",
|
| 1343 |
+
]
|
| 1344 |
+
|
| 1345 |
+
[[package]]
|
| 1346 |
+
name = "indexmap"
|
| 1347 |
+
version = "1.9.3"
|
| 1348 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1349 |
+
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
|
| 1350 |
+
dependencies = [
|
| 1351 |
+
"autocfg",
|
| 1352 |
+
"hashbrown 0.12.3",
|
| 1353 |
+
]
|
| 1354 |
+
|
| 1355 |
+
[[package]]
|
| 1356 |
+
name = "indexmap"
|
| 1357 |
+
version = "2.0.0"
|
| 1358 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1359 |
+
checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
|
| 1360 |
+
dependencies = [
|
| 1361 |
+
"equivalent",
|
| 1362 |
+
"hashbrown 0.14.0",
|
| 1363 |
+
]
|
| 1364 |
+
|
| 1365 |
+
[[package]]
|
| 1366 |
+
name = "integer-encoding"
|
| 1367 |
+
version = "3.0.4"
|
| 1368 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1369 |
+
checksum = "8bb03732005da905c88227371639bf1ad885cc712789c011c31c5fb3ab3ccf02"
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "itertools"
|
| 1373 |
+
version = "0.12.1"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
| 1376 |
+
dependencies = [
|
| 1377 |
+
"either",
|
| 1378 |
+
]
|
| 1379 |
+
|
| 1380 |
+
[[package]]
|
| 1381 |
+
name = "itoa"
|
| 1382 |
+
version = "1.0.9"
|
| 1383 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1384 |
+
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
| 1385 |
+
|
| 1386 |
+
[[package]]
|
| 1387 |
+
name = "jobserver"
|
| 1388 |
+
version = "0.1.26"
|
| 1389 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1390 |
+
checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2"
|
| 1391 |
+
dependencies = [
|
| 1392 |
+
"libc",
|
| 1393 |
+
]
|
| 1394 |
+
|
| 1395 |
+
[[package]]
|
| 1396 |
+
name = "js-sys"
|
| 1397 |
+
version = "0.3.64"
|
| 1398 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1399 |
+
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
|
| 1400 |
+
dependencies = [
|
| 1401 |
+
"wasm-bindgen",
|
| 1402 |
+
]
|
| 1403 |
+
|
| 1404 |
+
[[package]]
|
| 1405 |
+
name = "lazy_static"
|
| 1406 |
+
version = "1.4.0"
|
| 1407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1408 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 1409 |
+
|
| 1410 |
+
[[package]]
|
| 1411 |
+
name = "lexical-core"
|
| 1412 |
+
version = "0.8.5"
|
| 1413 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1414 |
+
checksum = "2cde5de06e8d4c2faabc400238f9ae1c74d5412d03a7bd067645ccbc47070e46"
|
| 1415 |
+
dependencies = [
|
| 1416 |
+
"lexical-parse-float",
|
| 1417 |
+
"lexical-parse-integer",
|
| 1418 |
+
"lexical-util",
|
| 1419 |
+
"lexical-write-float",
|
| 1420 |
+
"lexical-write-integer",
|
| 1421 |
+
]
|
| 1422 |
+
|
| 1423 |
+
[[package]]
|
| 1424 |
+
name = "lexical-parse-float"
|
| 1425 |
+
version = "0.8.5"
|
| 1426 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1427 |
+
checksum = "683b3a5ebd0130b8fb52ba0bdc718cc56815b6a097e28ae5a6997d0ad17dc05f"
|
| 1428 |
+
dependencies = [
|
| 1429 |
+
"lexical-parse-integer",
|
| 1430 |
+
"lexical-util",
|
| 1431 |
+
"static_assertions",
|
| 1432 |
+
]
|
| 1433 |
+
|
| 1434 |
+
[[package]]
|
| 1435 |
+
name = "lexical-parse-integer"
|
| 1436 |
+
version = "0.8.6"
|
| 1437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1438 |
+
checksum = "6d0994485ed0c312f6d965766754ea177d07f9c00c9b82a5ee62ed5b47945ee9"
|
| 1439 |
+
dependencies = [
|
| 1440 |
+
"lexical-util",
|
| 1441 |
+
"static_assertions",
|
| 1442 |
+
]
|
| 1443 |
+
|
| 1444 |
+
[[package]]
|
| 1445 |
+
name = "lexical-util"
|
| 1446 |
+
version = "0.8.5"
|
| 1447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1448 |
+
checksum = "5255b9ff16ff898710eb9eb63cb39248ea8a5bb036bea8085b1a767ff6c4e3fc"
|
| 1449 |
+
dependencies = [
|
| 1450 |
+
"static_assertions",
|
| 1451 |
+
]
|
| 1452 |
+
|
| 1453 |
+
[[package]]
|
| 1454 |
+
name = "lexical-write-float"
|
| 1455 |
+
version = "0.8.5"
|
| 1456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1457 |
+
checksum = "accabaa1c4581f05a3923d1b4cfd124c329352288b7b9da09e766b0668116862"
|
| 1458 |
+
dependencies = [
|
| 1459 |
+
"lexical-util",
|
| 1460 |
+
"lexical-write-integer",
|
| 1461 |
+
"static_assertions",
|
| 1462 |
+
]
|
| 1463 |
+
|
| 1464 |
+
[[package]]
|
| 1465 |
+
name = "lexical-write-integer"
|
| 1466 |
+
version = "0.8.5"
|
| 1467 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1468 |
+
checksum = "e1b6f3d1f4422866b68192d62f77bc5c700bee84f3069f2469d7bc8c77852446"
|
| 1469 |
+
dependencies = [
|
| 1470 |
+
"lexical-util",
|
| 1471 |
+
"static_assertions",
|
| 1472 |
+
]
|
| 1473 |
+
|
| 1474 |
+
[[package]]
|
| 1475 |
+
name = "libc"
|
| 1476 |
+
version = "0.2.147"
|
| 1477 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1478 |
+
checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
|
| 1479 |
+
|
| 1480 |
+
[[package]]
|
| 1481 |
+
name = "libflate"
|
| 1482 |
+
version = "2.0.0"
|
| 1483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1484 |
+
checksum = "9f7d5654ae1795afc7ff76f4365c2c8791b0feb18e8996a96adad8ffd7c3b2bf"
|
| 1485 |
+
dependencies = [
|
| 1486 |
+
"adler32",
|
| 1487 |
+
"core2",
|
| 1488 |
+
"crc32fast",
|
| 1489 |
+
"dary_heap",
|
| 1490 |
+
"libflate_lz77",
|
| 1491 |
+
]
|
| 1492 |
+
|
| 1493 |
+
[[package]]
|
| 1494 |
+
name = "libflate_lz77"
|
| 1495 |
+
version = "2.0.0"
|
| 1496 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1497 |
+
checksum = "be5f52fb8c451576ec6b79d3f4deb327398bc05bbdbd99021a6e77a4c855d524"
|
| 1498 |
+
dependencies = [
|
| 1499 |
+
"core2",
|
| 1500 |
+
"hashbrown 0.13.2",
|
| 1501 |
+
"rle-decode-fast",
|
| 1502 |
+
]
|
| 1503 |
+
|
| 1504 |
+
[[package]]
|
| 1505 |
+
name = "libm"
|
| 1506 |
+
version = "0.2.7"
|
| 1507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1508 |
+
checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4"
|
| 1509 |
+
|
| 1510 |
+
[[package]]
|
| 1511 |
+
name = "linux-raw-sys"
|
| 1512 |
+
version = "0.4.5"
|
| 1513 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1514 |
+
checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503"
|
| 1515 |
+
|
| 1516 |
+
[[package]]
|
| 1517 |
+
name = "lock_api"
|
| 1518 |
+
version = "0.4.10"
|
| 1519 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1520 |
+
checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
|
| 1521 |
+
dependencies = [
|
| 1522 |
+
"autocfg",
|
| 1523 |
+
"scopeguard",
|
| 1524 |
+
]
|
| 1525 |
+
|
| 1526 |
+
[[package]]
|
| 1527 |
+
name = "log"
|
| 1528 |
+
version = "0.4.20"
|
| 1529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1530 |
+
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
| 1531 |
+
|
| 1532 |
+
[[package]]
|
| 1533 |
+
name = "lz4_flex"
|
| 1534 |
+
version = "0.11.1"
|
| 1535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1536 |
+
checksum = "3ea9b256699eda7b0387ffbc776dd625e28bde3918446381781245b7a50349d8"
|
| 1537 |
+
dependencies = [
|
| 1538 |
+
"twox-hash",
|
| 1539 |
+
]
|
| 1540 |
+
|
| 1541 |
+
[[package]]
|
| 1542 |
+
name = "lzma-sys"
|
| 1543 |
+
version = "0.1.20"
|
| 1544 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1545 |
+
checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
|
| 1546 |
+
dependencies = [
|
| 1547 |
+
"cc",
|
| 1548 |
+
"libc",
|
| 1549 |
+
"pkg-config",
|
| 1550 |
+
]
|
| 1551 |
+
|
| 1552 |
+
[[package]]
|
| 1553 |
+
name = "md-5"
|
| 1554 |
+
version = "0.10.5"
|
| 1555 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1556 |
+
checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca"
|
| 1557 |
+
dependencies = [
|
| 1558 |
+
"digest",
|
| 1559 |
+
]
|
| 1560 |
+
|
| 1561 |
+
[[package]]
|
| 1562 |
+
name = "memchr"
|
| 1563 |
+
version = "2.5.0"
|
| 1564 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1565 |
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
| 1566 |
+
|
| 1567 |
+
[[package]]
|
| 1568 |
+
name = "miniz_oxide"
|
| 1569 |
+
version = "0.7.1"
|
| 1570 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1571 |
+
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
|
| 1572 |
+
dependencies = [
|
| 1573 |
+
"adler",
|
| 1574 |
+
]
|
| 1575 |
+
|
| 1576 |
+
[[package]]
|
| 1577 |
+
name = "mio"
|
| 1578 |
+
version = "0.8.8"
|
| 1579 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1580 |
+
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
| 1581 |
+
dependencies = [
|
| 1582 |
+
"libc",
|
| 1583 |
+
"log",
|
| 1584 |
+
"wasi",
|
| 1585 |
+
"windows-sys",
|
| 1586 |
+
]
|
| 1587 |
+
|
| 1588 |
+
[[package]]
|
| 1589 |
+
name = "num"
|
| 1590 |
+
version = "0.4.1"
|
| 1591 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1592 |
+
checksum = "b05180d69e3da0e530ba2a1dae5110317e49e3b7f3d41be227dc5f92e49ee7af"
|
| 1593 |
+
dependencies = [
|
| 1594 |
+
"num-bigint",
|
| 1595 |
+
"num-complex",
|
| 1596 |
+
"num-integer",
|
| 1597 |
+
"num-iter",
|
| 1598 |
+
"num-rational",
|
| 1599 |
+
"num-traits",
|
| 1600 |
+
]
|
| 1601 |
+
|
| 1602 |
+
[[package]]
|
| 1603 |
+
name = "num-bigint"
|
| 1604 |
+
version = "0.4.4"
|
| 1605 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1606 |
+
checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0"
|
| 1607 |
+
dependencies = [
|
| 1608 |
+
"autocfg",
|
| 1609 |
+
"num-integer",
|
| 1610 |
+
"num-traits",
|
| 1611 |
+
]
|
| 1612 |
+
|
| 1613 |
+
[[package]]
|
| 1614 |
+
name = "num-complex"
|
| 1615 |
+
version = "0.4.3"
|
| 1616 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1617 |
+
checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d"
|
| 1618 |
+
dependencies = [
|
| 1619 |
+
"num-traits",
|
| 1620 |
+
]
|
| 1621 |
+
|
| 1622 |
+
[[package]]
|
| 1623 |
+
name = "num-integer"
|
| 1624 |
+
version = "0.1.45"
|
| 1625 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1626 |
+
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
| 1627 |
+
dependencies = [
|
| 1628 |
+
"autocfg",
|
| 1629 |
+
"num-traits",
|
| 1630 |
+
]
|
| 1631 |
+
|
| 1632 |
+
[[package]]
|
| 1633 |
+
name = "num-iter"
|
| 1634 |
+
version = "0.1.43"
|
| 1635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1636 |
+
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
|
| 1637 |
+
dependencies = [
|
| 1638 |
+
"autocfg",
|
| 1639 |
+
"num-integer",
|
| 1640 |
+
"num-traits",
|
| 1641 |
+
]
|
| 1642 |
+
|
| 1643 |
+
[[package]]
|
| 1644 |
+
name = "num-rational"
|
| 1645 |
+
version = "0.4.1"
|
| 1646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1647 |
+
checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0"
|
| 1648 |
+
dependencies = [
|
| 1649 |
+
"autocfg",
|
| 1650 |
+
"num-bigint",
|
| 1651 |
+
"num-integer",
|
| 1652 |
+
"num-traits",
|
| 1653 |
+
]
|
| 1654 |
+
|
| 1655 |
+
[[package]]
|
| 1656 |
+
name = "num-traits"
|
| 1657 |
+
version = "0.2.16"
|
| 1658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1659 |
+
checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2"
|
| 1660 |
+
dependencies = [
|
| 1661 |
+
"autocfg",
|
| 1662 |
+
"libm",
|
| 1663 |
+
]
|
| 1664 |
+
|
| 1665 |
+
[[package]]
|
| 1666 |
+
name = "num_cpus"
|
| 1667 |
+
version = "1.16.0"
|
| 1668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1669 |
+
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
|
| 1670 |
+
dependencies = [
|
| 1671 |
+
"hermit-abi 0.3.2",
|
| 1672 |
+
"libc",
|
| 1673 |
+
]
|
| 1674 |
+
|
| 1675 |
+
[[package]]
|
| 1676 |
+
name = "object"
|
| 1677 |
+
version = "0.31.1"
|
| 1678 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1679 |
+
checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1"
|
| 1680 |
+
dependencies = [
|
| 1681 |
+
"memchr",
|
| 1682 |
+
]
|
| 1683 |
+
|
| 1684 |
+
[[package]]
|
| 1685 |
+
name = "object_store"
|
| 1686 |
+
version = "0.9.0"
|
| 1687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1688 |
+
checksum = "d139f545f64630e2e3688fd9f81c470888ab01edeb72d13b4e86c566f1130000"
|
| 1689 |
+
dependencies = [
|
| 1690 |
+
"async-trait",
|
| 1691 |
+
"bytes",
|
| 1692 |
+
"chrono",
|
| 1693 |
+
"futures",
|
| 1694 |
+
"humantime",
|
| 1695 |
+
"itertools",
|
| 1696 |
+
"parking_lot",
|
| 1697 |
+
"percent-encoding",
|
| 1698 |
+
"snafu",
|
| 1699 |
+
"tokio",
|
| 1700 |
+
"tracing",
|
| 1701 |
+
"url",
|
| 1702 |
+
"walkdir",
|
| 1703 |
+
]
|
| 1704 |
+
|
| 1705 |
+
[[package]]
|
| 1706 |
+
name = "once_cell"
|
| 1707 |
+
version = "1.18.0"
|
| 1708 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1709 |
+
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
|
| 1710 |
+
|
| 1711 |
+
[[package]]
|
| 1712 |
+
name = "ordered-float"
|
| 1713 |
+
version = "2.10.0"
|
| 1714 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1715 |
+
checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87"
|
| 1716 |
+
dependencies = [
|
| 1717 |
+
"num-traits",
|
| 1718 |
+
]
|
| 1719 |
+
|
| 1720 |
+
[[package]]
|
| 1721 |
+
name = "parking_lot"
|
| 1722 |
+
version = "0.12.1"
|
| 1723 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1724 |
+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
| 1725 |
+
dependencies = [
|
| 1726 |
+
"lock_api",
|
| 1727 |
+
"parking_lot_core",
|
| 1728 |
+
]
|
| 1729 |
+
|
| 1730 |
+
[[package]]
|
| 1731 |
+
name = "parking_lot_core"
|
| 1732 |
+
version = "0.9.8"
|
| 1733 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1734 |
+
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
|
| 1735 |
+
dependencies = [
|
| 1736 |
+
"cfg-if",
|
| 1737 |
+
"libc",
|
| 1738 |
+
"redox_syscall",
|
| 1739 |
+
"smallvec",
|
| 1740 |
+
"windows-targets",
|
| 1741 |
+
]
|
| 1742 |
+
|
| 1743 |
+
[[package]]
|
| 1744 |
+
name = "parquet"
|
| 1745 |
+
version = "50.0.0"
|
| 1746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1747 |
+
checksum = "547b92ebf0c1177e3892f44c8f79757ee62e678d564a9834189725f2c5b7a750"
|
| 1748 |
+
dependencies = [
|
| 1749 |
+
"ahash",
|
| 1750 |
+
"arrow-array",
|
| 1751 |
+
"arrow-buffer",
|
| 1752 |
+
"arrow-cast",
|
| 1753 |
+
"arrow-data",
|
| 1754 |
+
"arrow-ipc",
|
| 1755 |
+
"arrow-schema",
|
| 1756 |
+
"arrow-select",
|
| 1757 |
+
"base64",
|
| 1758 |
+
"brotli",
|
| 1759 |
+
"bytes",
|
| 1760 |
+
"chrono",
|
| 1761 |
+
"flate2",
|
| 1762 |
+
"futures",
|
| 1763 |
+
"half",
|
| 1764 |
+
"hashbrown 0.14.0",
|
| 1765 |
+
"lz4_flex",
|
| 1766 |
+
"num",
|
| 1767 |
+
"num-bigint",
|
| 1768 |
+
"object_store",
|
| 1769 |
+
"paste",
|
| 1770 |
+
"seq-macro",
|
| 1771 |
+
"snap",
|
| 1772 |
+
"thrift",
|
| 1773 |
+
"tokio",
|
| 1774 |
+
"twox-hash",
|
| 1775 |
+
"zstd 0.13.0",
|
| 1776 |
+
]
|
| 1777 |
+
|
| 1778 |
+
[[package]]
|
| 1779 |
+
name = "parse-zoneinfo"
|
| 1780 |
+
version = "0.3.0"
|
| 1781 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1782 |
+
checksum = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41"
|
| 1783 |
+
dependencies = [
|
| 1784 |
+
"regex",
|
| 1785 |
+
]
|
| 1786 |
+
|
| 1787 |
+
[[package]]
|
| 1788 |
+
name = "paste"
|
| 1789 |
+
version = "1.0.14"
|
| 1790 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1791 |
+
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
|
| 1792 |
+
|
| 1793 |
+
[[package]]
|
| 1794 |
+
name = "percent-encoding"
|
| 1795 |
+
version = "2.3.0"
|
| 1796 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1797 |
+
checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
|
| 1798 |
+
|
| 1799 |
+
[[package]]
|
| 1800 |
+
name = "petgraph"
|
| 1801 |
+
version = "0.6.3"
|
| 1802 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1803 |
+
checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4"
|
| 1804 |
+
dependencies = [
|
| 1805 |
+
"fixedbitset",
|
| 1806 |
+
"indexmap 1.9.3",
|
| 1807 |
+
]
|
| 1808 |
+
|
| 1809 |
+
[[package]]
|
| 1810 |
+
name = "phf"
|
| 1811 |
+
version = "0.11.2"
|
| 1812 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1813 |
+
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
|
| 1814 |
+
dependencies = [
|
| 1815 |
+
"phf_shared",
|
| 1816 |
+
]
|
| 1817 |
+
|
| 1818 |
+
[[package]]
|
| 1819 |
+
name = "phf_codegen"
|
| 1820 |
+
version = "0.11.2"
|
| 1821 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1822 |
+
checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a"
|
| 1823 |
+
dependencies = [
|
| 1824 |
+
"phf_generator",
|
| 1825 |
+
"phf_shared",
|
| 1826 |
+
]
|
| 1827 |
+
|
| 1828 |
+
[[package]]
|
| 1829 |
+
name = "phf_generator"
|
| 1830 |
+
version = "0.11.2"
|
| 1831 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1832 |
+
checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
|
| 1833 |
+
dependencies = [
|
| 1834 |
+
"phf_shared",
|
| 1835 |
+
"rand",
|
| 1836 |
+
]
|
| 1837 |
+
|
| 1838 |
+
[[package]]
|
| 1839 |
+
name = "phf_shared"
|
| 1840 |
+
version = "0.11.2"
|
| 1841 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1842 |
+
checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
|
| 1843 |
+
dependencies = [
|
| 1844 |
+
"siphasher",
|
| 1845 |
+
]
|
| 1846 |
+
|
| 1847 |
+
[[package]]
|
| 1848 |
+
name = "pin-project-lite"
|
| 1849 |
+
version = "0.2.11"
|
| 1850 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1851 |
+
checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c"
|
| 1852 |
+
|
| 1853 |
+
[[package]]
|
| 1854 |
+
name = "pin-utils"
|
| 1855 |
+
version = "0.1.0"
|
| 1856 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1857 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 1858 |
+
|
| 1859 |
+
[[package]]
|
| 1860 |
+
name = "pkg-config"
|
| 1861 |
+
version = "0.3.27"
|
| 1862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1863 |
+
checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
|
| 1864 |
+
|
| 1865 |
+
[[package]]
|
| 1866 |
+
name = "ppv-lite86"
|
| 1867 |
+
version = "0.2.17"
|
| 1868 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1869 |
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
| 1870 |
+
|
| 1871 |
+
[[package]]
|
| 1872 |
+
name = "proc-macro-error"
|
| 1873 |
+
version = "1.0.4"
|
| 1874 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1875 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 1876 |
+
dependencies = [
|
| 1877 |
+
"proc-macro-error-attr",
|
| 1878 |
+
"proc-macro2",
|
| 1879 |
+
"quote",
|
| 1880 |
+
"syn 1.0.109",
|
| 1881 |
+
"version_check",
|
| 1882 |
+
]
|
| 1883 |
+
|
| 1884 |
+
[[package]]
|
| 1885 |
+
name = "proc-macro-error-attr"
|
| 1886 |
+
version = "1.0.4"
|
| 1887 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1888 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 1889 |
+
dependencies = [
|
| 1890 |
+
"proc-macro2",
|
| 1891 |
+
"quote",
|
| 1892 |
+
"version_check",
|
| 1893 |
+
]
|
| 1894 |
+
|
| 1895 |
+
[[package]]
|
| 1896 |
+
name = "proc-macro-hack"
|
| 1897 |
+
version = "0.5.20+deprecated"
|
| 1898 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1899 |
+
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
|
| 1900 |
+
|
| 1901 |
+
[[package]]
|
| 1902 |
+
name = "proc-macro2"
|
| 1903 |
+
version = "1.0.66"
|
| 1904 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1905 |
+
checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
|
| 1906 |
+
dependencies = [
|
| 1907 |
+
"unicode-ident",
|
| 1908 |
+
]
|
| 1909 |
+
|
| 1910 |
+
[[package]]
|
| 1911 |
+
name = "quad-rand"
|
| 1912 |
+
version = "0.2.1"
|
| 1913 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1914 |
+
checksum = "658fa1faf7a4cc5f057c9ee5ef560f717ad9d8dc66d975267f709624d6e1ab88"
|
| 1915 |
+
|
| 1916 |
+
[[package]]
|
| 1917 |
+
name = "quote"
|
| 1918 |
+
version = "1.0.32"
|
| 1919 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1920 |
+
checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965"
|
| 1921 |
+
dependencies = [
|
| 1922 |
+
"proc-macro2",
|
| 1923 |
+
]
|
| 1924 |
+
|
| 1925 |
+
[[package]]
|
| 1926 |
+
name = "rand"
|
| 1927 |
+
version = "0.8.5"
|
| 1928 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1929 |
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
| 1930 |
+
dependencies = [
|
| 1931 |
+
"libc",
|
| 1932 |
+
"rand_chacha",
|
| 1933 |
+
"rand_core",
|
| 1934 |
+
]
|
| 1935 |
+
|
| 1936 |
+
[[package]]
|
| 1937 |
+
name = "rand_chacha"
|
| 1938 |
+
version = "0.3.1"
|
| 1939 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1940 |
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
| 1941 |
+
dependencies = [
|
| 1942 |
+
"ppv-lite86",
|
| 1943 |
+
"rand_core",
|
| 1944 |
+
]
|
| 1945 |
+
|
| 1946 |
+
[[package]]
|
| 1947 |
+
name = "rand_core"
|
| 1948 |
+
version = "0.6.4"
|
| 1949 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1950 |
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
| 1951 |
+
dependencies = [
|
| 1952 |
+
"getrandom",
|
| 1953 |
+
]
|
| 1954 |
+
|
| 1955 |
+
[[package]]
|
| 1956 |
+
name = "redox_syscall"
|
| 1957 |
+
version = "0.3.5"
|
| 1958 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1959 |
+
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
|
| 1960 |
+
dependencies = [
|
| 1961 |
+
"bitflags 1.3.2",
|
| 1962 |
+
]
|
| 1963 |
+
|
| 1964 |
+
[[package]]
|
| 1965 |
+
name = "regex"
|
| 1966 |
+
version = "1.9.3"
|
| 1967 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1968 |
+
checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a"
|
| 1969 |
+
dependencies = [
|
| 1970 |
+
"aho-corasick",
|
| 1971 |
+
"memchr",
|
| 1972 |
+
"regex-automata",
|
| 1973 |
+
"regex-syntax 0.7.4",
|
| 1974 |
+
]
|
| 1975 |
+
|
| 1976 |
+
[[package]]
|
| 1977 |
+
name = "regex-automata"
|
| 1978 |
+
version = "0.3.6"
|
| 1979 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1980 |
+
checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69"
|
| 1981 |
+
dependencies = [
|
| 1982 |
+
"aho-corasick",
|
| 1983 |
+
"memchr",
|
| 1984 |
+
"regex-syntax 0.7.4",
|
| 1985 |
+
]
|
| 1986 |
+
|
| 1987 |
+
[[package]]
|
| 1988 |
+
name = "regex-lite"
|
| 1989 |
+
version = "0.1.5"
|
| 1990 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1991 |
+
checksum = "30b661b2f27137bdbc16f00eda72866a92bb28af1753ffbd56744fb6e2e9cd8e"
|
| 1992 |
+
|
| 1993 |
+
[[package]]
|
| 1994 |
+
name = "regex-syntax"
|
| 1995 |
+
version = "0.7.4"
|
| 1996 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1997 |
+
checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2"
|
| 1998 |
+
|
| 1999 |
+
[[package]]
|
| 2000 |
+
name = "regex-syntax"
|
| 2001 |
+
version = "0.8.2"
|
| 2002 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2003 |
+
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
| 2004 |
+
|
| 2005 |
+
[[package]]
|
| 2006 |
+
name = "rle-decode-fast"
|
| 2007 |
+
version = "1.0.3"
|
| 2008 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2009 |
+
checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
|
| 2010 |
+
|
| 2011 |
+
[[package]]
|
| 2012 |
+
name = "rustc-demangle"
|
| 2013 |
+
version = "0.1.23"
|
| 2014 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2015 |
+
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
|
| 2016 |
+
|
| 2017 |
+
[[package]]
|
| 2018 |
+
name = "rustc_version"
|
| 2019 |
+
version = "0.4.0"
|
| 2020 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2021 |
+
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
|
| 2022 |
+
dependencies = [
|
| 2023 |
+
"semver",
|
| 2024 |
+
]
|
| 2025 |
+
|
| 2026 |
+
[[package]]
|
| 2027 |
+
name = "rustix"
|
| 2028 |
+
version = "0.38.7"
|
| 2029 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2030 |
+
checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399"
|
| 2031 |
+
dependencies = [
|
| 2032 |
+
"bitflags 2.3.3",
|
| 2033 |
+
"errno",
|
| 2034 |
+
"libc",
|
| 2035 |
+
"linux-raw-sys",
|
| 2036 |
+
"windows-sys",
|
| 2037 |
+
]
|
| 2038 |
+
|
| 2039 |
+
[[package]]
|
| 2040 |
+
name = "rustversion"
|
| 2041 |
+
version = "1.0.14"
|
| 2042 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2043 |
+
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
|
| 2044 |
+
|
| 2045 |
+
[[package]]
|
| 2046 |
+
name = "ryu"
|
| 2047 |
+
version = "1.0.15"
|
| 2048 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2049 |
+
checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
|
| 2050 |
+
|
| 2051 |
+
[[package]]
|
| 2052 |
+
name = "same-file"
|
| 2053 |
+
version = "1.0.6"
|
| 2054 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2055 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 2056 |
+
dependencies = [
|
| 2057 |
+
"winapi-util",
|
| 2058 |
+
]
|
| 2059 |
+
|
| 2060 |
+
[[package]]
|
| 2061 |
+
name = "scopeguard"
|
| 2062 |
+
version = "1.2.0"
|
| 2063 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2064 |
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
| 2065 |
+
|
| 2066 |
+
[[package]]
|
| 2067 |
+
name = "semver"
|
| 2068 |
+
version = "1.0.18"
|
| 2069 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2070 |
+
checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918"
|
| 2071 |
+
|
| 2072 |
+
[[package]]
|
| 2073 |
+
name = "seq-macro"
|
| 2074 |
+
version = "0.3.5"
|
| 2075 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2076 |
+
checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
| 2077 |
+
|
| 2078 |
+
[[package]]
|
| 2079 |
+
name = "serde"
|
| 2080 |
+
version = "1.0.192"
|
| 2081 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2082 |
+
checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001"
|
| 2083 |
+
dependencies = [
|
| 2084 |
+
"serde_derive",
|
| 2085 |
+
]
|
| 2086 |
+
|
| 2087 |
+
[[package]]
|
| 2088 |
+
name = "serde_derive"
|
| 2089 |
+
version = "1.0.192"
|
| 2090 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2091 |
+
checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1"
|
| 2092 |
+
dependencies = [
|
| 2093 |
+
"proc-macro2",
|
| 2094 |
+
"quote",
|
| 2095 |
+
"syn 2.0.28",
|
| 2096 |
+
]
|
| 2097 |
+
|
| 2098 |
+
[[package]]
|
| 2099 |
+
name = "serde_json"
|
| 2100 |
+
version = "1.0.108"
|
| 2101 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2102 |
+
checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
|
| 2103 |
+
dependencies = [
|
| 2104 |
+
"itoa",
|
| 2105 |
+
"ryu",
|
| 2106 |
+
"serde",
|
| 2107 |
+
]
|
| 2108 |
+
|
| 2109 |
+
[[package]]
|
| 2110 |
+
name = "sha2"
|
| 2111 |
+
version = "0.10.7"
|
| 2112 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2113 |
+
checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
|
| 2114 |
+
dependencies = [
|
| 2115 |
+
"cfg-if",
|
| 2116 |
+
"cpufeatures",
|
| 2117 |
+
"digest",
|
| 2118 |
+
]
|
| 2119 |
+
|
| 2120 |
+
[[package]]
|
| 2121 |
+
name = "signal-hook"
|
| 2122 |
+
version = "0.3.17"
|
| 2123 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2124 |
+
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
|
| 2125 |
+
dependencies = [
|
| 2126 |
+
"libc",
|
| 2127 |
+
"signal-hook-registry",
|
| 2128 |
+
]
|
| 2129 |
+
|
| 2130 |
+
[[package]]
|
| 2131 |
+
name = "signal-hook-mio"
|
| 2132 |
+
version = "0.2.3"
|
| 2133 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2134 |
+
checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af"
|
| 2135 |
+
dependencies = [
|
| 2136 |
+
"libc",
|
| 2137 |
+
"mio",
|
| 2138 |
+
"signal-hook",
|
| 2139 |
+
]
|
| 2140 |
+
|
| 2141 |
+
[[package]]
|
| 2142 |
+
name = "signal-hook-registry"
|
| 2143 |
+
version = "1.4.1"
|
| 2144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2145 |
+
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
|
| 2146 |
+
dependencies = [
|
| 2147 |
+
"libc",
|
| 2148 |
+
]
|
| 2149 |
+
|
| 2150 |
+
[[package]]
|
| 2151 |
+
name = "siphasher"
|
| 2152 |
+
version = "0.3.10"
|
| 2153 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2154 |
+
checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
|
| 2155 |
+
|
| 2156 |
+
[[package]]
|
| 2157 |
+
name = "slab"
|
| 2158 |
+
version = "0.4.8"
|
| 2159 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2160 |
+
checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d"
|
| 2161 |
+
dependencies = [
|
| 2162 |
+
"autocfg",
|
| 2163 |
+
]
|
| 2164 |
+
|
| 2165 |
+
[[package]]
|
| 2166 |
+
name = "smallvec"
|
| 2167 |
+
version = "1.11.0"
|
| 2168 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2169 |
+
checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
|
| 2170 |
+
|
| 2171 |
+
[[package]]
|
| 2172 |
+
name = "snafu"
|
| 2173 |
+
version = "0.7.5"
|
| 2174 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2175 |
+
checksum = "e4de37ad025c587a29e8f3f5605c00f70b98715ef90b9061a815b9e59e9042d6"
|
| 2176 |
+
dependencies = [
|
| 2177 |
+
"doc-comment",
|
| 2178 |
+
"snafu-derive",
|
| 2179 |
+
]
|
| 2180 |
+
|
| 2181 |
+
[[package]]
|
| 2182 |
+
name = "snafu-derive"
|
| 2183 |
+
version = "0.7.5"
|
| 2184 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2185 |
+
checksum = "990079665f075b699031e9c08fd3ab99be5029b96f3b78dc0709e8f77e4efebf"
|
| 2186 |
+
dependencies = [
|
| 2187 |
+
"heck 0.4.1",
|
| 2188 |
+
"proc-macro2",
|
| 2189 |
+
"quote",
|
| 2190 |
+
"syn 1.0.109",
|
| 2191 |
+
]
|
| 2192 |
+
|
| 2193 |
+
[[package]]
|
| 2194 |
+
name = "snap"
|
| 2195 |
+
version = "1.1.0"
|
| 2196 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2197 |
+
checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831"
|
| 2198 |
+
|
| 2199 |
+
[[package]]
|
| 2200 |
+
name = "sqlparser"
|
| 2201 |
+
version = "0.41.0"
|
| 2202 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2203 |
+
checksum = "5cc2c25a6c66789625ef164b4c7d2e548d627902280c13710d33da8222169964"
|
| 2204 |
+
dependencies = [
|
| 2205 |
+
"log",
|
| 2206 |
+
"sqlparser_derive",
|
| 2207 |
+
]
|
| 2208 |
+
|
| 2209 |
+
[[package]]
|
| 2210 |
+
name = "sqlparser_derive"
|
| 2211 |
+
version = "0.2.2"
|
| 2212 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2213 |
+
checksum = "01b2e185515564f15375f593fb966b5718bc624ba77fe49fa4616ad619690554"
|
| 2214 |
+
dependencies = [
|
| 2215 |
+
"proc-macro2",
|
| 2216 |
+
"quote",
|
| 2217 |
+
"syn 2.0.28",
|
| 2218 |
+
]
|
| 2219 |
+
|
| 2220 |
+
[[package]]
|
| 2221 |
+
name = "static_assertions"
|
| 2222 |
+
version = "1.1.0"
|
| 2223 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2224 |
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
| 2225 |
+
|
| 2226 |
+
[[package]]
|
| 2227 |
+
name = "strsim"
|
| 2228 |
+
version = "0.8.0"
|
| 2229 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2230 |
+
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
| 2231 |
+
|
| 2232 |
+
[[package]]
|
| 2233 |
+
name = "structopt"
|
| 2234 |
+
version = "0.3.26"
|
| 2235 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2236 |
+
checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
|
| 2237 |
+
dependencies = [
|
| 2238 |
+
"clap",
|
| 2239 |
+
"lazy_static",
|
| 2240 |
+
"structopt-derive",
|
| 2241 |
+
]
|
| 2242 |
+
|
| 2243 |
+
[[package]]
|
| 2244 |
+
name = "structopt-derive"
|
| 2245 |
+
version = "0.4.18"
|
| 2246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2247 |
+
checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
|
| 2248 |
+
dependencies = [
|
| 2249 |
+
"heck 0.3.3",
|
| 2250 |
+
"proc-macro-error",
|
| 2251 |
+
"proc-macro2",
|
| 2252 |
+
"quote",
|
| 2253 |
+
"syn 1.0.109",
|
| 2254 |
+
]
|
| 2255 |
+
|
| 2256 |
+
[[package]]
|
| 2257 |
+
name = "strum"
|
| 2258 |
+
version = "0.24.1"
|
| 2259 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2260 |
+
checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f"
|
| 2261 |
+
|
| 2262 |
+
[[package]]
|
| 2263 |
+
name = "strum"
|
| 2264 |
+
version = "0.25.0"
|
| 2265 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2266 |
+
checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
|
| 2267 |
+
dependencies = [
|
| 2268 |
+
"strum_macros 0.25.3",
|
| 2269 |
+
]
|
| 2270 |
+
|
| 2271 |
+
[[package]]
|
| 2272 |
+
name = "strum_macros"
|
| 2273 |
+
version = "0.24.3"
|
| 2274 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2275 |
+
checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59"
|
| 2276 |
+
dependencies = [
|
| 2277 |
+
"heck 0.4.1",
|
| 2278 |
+
"proc-macro2",
|
| 2279 |
+
"quote",
|
| 2280 |
+
"rustversion",
|
| 2281 |
+
"syn 1.0.109",
|
| 2282 |
+
]
|
| 2283 |
+
|
| 2284 |
+
[[package]]
|
| 2285 |
+
name = "strum_macros"
|
| 2286 |
+
version = "0.25.3"
|
| 2287 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2288 |
+
checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0"
|
| 2289 |
+
dependencies = [
|
| 2290 |
+
"heck 0.4.1",
|
| 2291 |
+
"proc-macro2",
|
| 2292 |
+
"quote",
|
| 2293 |
+
"rustversion",
|
| 2294 |
+
"syn 2.0.28",
|
| 2295 |
+
]
|
| 2296 |
+
|
| 2297 |
+
[[package]]
|
| 2298 |
+
name = "subtle"
|
| 2299 |
+
version = "2.5.0"
|
| 2300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2301 |
+
checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
|
| 2302 |
+
|
| 2303 |
+
[[package]]
|
| 2304 |
+
name = "syn"
|
| 2305 |
+
version = "1.0.109"
|
| 2306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2307 |
+
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
| 2308 |
+
dependencies = [
|
| 2309 |
+
"proc-macro2",
|
| 2310 |
+
"quote",
|
| 2311 |
+
"unicode-ident",
|
| 2312 |
+
]
|
| 2313 |
+
|
| 2314 |
+
[[package]]
|
| 2315 |
+
name = "syn"
|
| 2316 |
+
version = "2.0.28"
|
| 2317 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2318 |
+
checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567"
|
| 2319 |
+
dependencies = [
|
| 2320 |
+
"proc-macro2",
|
| 2321 |
+
"quote",
|
| 2322 |
+
"unicode-ident",
|
| 2323 |
+
]
|
| 2324 |
+
|
| 2325 |
+
[[package]]
|
| 2326 |
+
name = "tempfile"
|
| 2327 |
+
version = "3.7.0"
|
| 2328 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2329 |
+
checksum = "5486094ee78b2e5038a6382ed7645bc084dc2ec433426ca4c3cb61e2007b8998"
|
| 2330 |
+
dependencies = [
|
| 2331 |
+
"cfg-if",
|
| 2332 |
+
"fastrand",
|
| 2333 |
+
"redox_syscall",
|
| 2334 |
+
"rustix",
|
| 2335 |
+
"windows-sys",
|
| 2336 |
+
]
|
| 2337 |
+
|
| 2338 |
+
[[package]]
|
| 2339 |
+
name = "textwrap"
|
| 2340 |
+
version = "0.11.0"
|
| 2341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2342 |
+
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
| 2343 |
+
dependencies = [
|
| 2344 |
+
"unicode-width",
|
| 2345 |
+
]
|
| 2346 |
+
|
| 2347 |
+
[[package]]
|
| 2348 |
+
name = "thiserror"
|
| 2349 |
+
version = "1.0.50"
|
| 2350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2351 |
+
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
|
| 2352 |
+
dependencies = [
|
| 2353 |
+
"thiserror-impl",
|
| 2354 |
+
]
|
| 2355 |
+
|
| 2356 |
+
[[package]]
|
| 2357 |
+
name = "thiserror-impl"
|
| 2358 |
+
version = "1.0.50"
|
| 2359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2360 |
+
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
|
| 2361 |
+
dependencies = [
|
| 2362 |
+
"proc-macro2",
|
| 2363 |
+
"quote",
|
| 2364 |
+
"syn 2.0.28",
|
| 2365 |
+
]
|
| 2366 |
+
|
| 2367 |
+
[[package]]
|
| 2368 |
+
name = "thrift"
|
| 2369 |
+
version = "0.17.0"
|
| 2370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2371 |
+
checksum = "7e54bc85fc7faa8bc175c4bab5b92ba8d9a3ce893d0e9f42cc455c8ab16a9e09"
|
| 2372 |
+
dependencies = [
|
| 2373 |
+
"byteorder",
|
| 2374 |
+
"integer-encoding",
|
| 2375 |
+
"ordered-float",
|
| 2376 |
+
]
|
| 2377 |
+
|
| 2378 |
+
[[package]]
|
| 2379 |
+
name = "tiny-keccak"
|
| 2380 |
+
version = "2.0.2"
|
| 2381 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2382 |
+
checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
|
| 2383 |
+
dependencies = [
|
| 2384 |
+
"crunchy",
|
| 2385 |
+
]
|
| 2386 |
+
|
| 2387 |
+
[[package]]
|
| 2388 |
+
name = "tinyvec"
|
| 2389 |
+
version = "1.6.0"
|
| 2390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2391 |
+
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
| 2392 |
+
dependencies = [
|
| 2393 |
+
"tinyvec_macros",
|
| 2394 |
+
]
|
| 2395 |
+
|
| 2396 |
+
[[package]]
|
| 2397 |
+
name = "tinyvec_macros"
|
| 2398 |
+
version = "0.1.1"
|
| 2399 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2400 |
+
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
| 2401 |
+
|
| 2402 |
+
[[package]]
|
| 2403 |
+
name = "tokio"
|
| 2404 |
+
version = "1.36.0"
|
| 2405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2406 |
+
checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931"
|
| 2407 |
+
dependencies = [
|
| 2408 |
+
"backtrace",
|
| 2409 |
+
"bytes",
|
| 2410 |
+
"num_cpus",
|
| 2411 |
+
"pin-project-lite",
|
| 2412 |
+
"tokio-macros",
|
| 2413 |
+
]
|
| 2414 |
+
|
| 2415 |
+
[[package]]
|
| 2416 |
+
name = "tokio-macros"
|
| 2417 |
+
version = "2.2.0"
|
| 2418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2419 |
+
checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
|
| 2420 |
+
dependencies = [
|
| 2421 |
+
"proc-macro2",
|
| 2422 |
+
"quote",
|
| 2423 |
+
"syn 2.0.28",
|
| 2424 |
+
]
|
| 2425 |
+
|
| 2426 |
+
[[package]]
|
| 2427 |
+
name = "tokio-util"
|
| 2428 |
+
version = "0.7.8"
|
| 2429 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2430 |
+
checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d"
|
| 2431 |
+
dependencies = [
|
| 2432 |
+
"bytes",
|
| 2433 |
+
"futures-core",
|
| 2434 |
+
"futures-sink",
|
| 2435 |
+
"pin-project-lite",
|
| 2436 |
+
"tokio",
|
| 2437 |
+
]
|
| 2438 |
+
|
| 2439 |
+
[[package]]
|
| 2440 |
+
name = "tracing"
|
| 2441 |
+
version = "0.1.37"
|
| 2442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2443 |
+
checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
|
| 2444 |
+
dependencies = [
|
| 2445 |
+
"cfg-if",
|
| 2446 |
+
"pin-project-lite",
|
| 2447 |
+
"tracing-attributes",
|
| 2448 |
+
"tracing-core",
|
| 2449 |
+
]
|
| 2450 |
+
|
| 2451 |
+
[[package]]
|
| 2452 |
+
name = "tracing-attributes"
|
| 2453 |
+
version = "0.1.26"
|
| 2454 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2455 |
+
checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab"
|
| 2456 |
+
dependencies = [
|
| 2457 |
+
"proc-macro2",
|
| 2458 |
+
"quote",
|
| 2459 |
+
"syn 2.0.28",
|
| 2460 |
+
]
|
| 2461 |
+
|
| 2462 |
+
[[package]]
|
| 2463 |
+
name = "tracing-core"
|
| 2464 |
+
version = "0.1.31"
|
| 2465 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2466 |
+
checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a"
|
| 2467 |
+
dependencies = [
|
| 2468 |
+
"once_cell",
|
| 2469 |
+
]
|
| 2470 |
+
|
| 2471 |
+
[[package]]
|
| 2472 |
+
name = "twox-hash"
|
| 2473 |
+
version = "1.6.3"
|
| 2474 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2475 |
+
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
|
| 2476 |
+
dependencies = [
|
| 2477 |
+
"cfg-if",
|
| 2478 |
+
"static_assertions",
|
| 2479 |
+
]
|
| 2480 |
+
|
| 2481 |
+
[[package]]
|
| 2482 |
+
name = "typed-builder"
|
| 2483 |
+
version = "0.16.2"
|
| 2484 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2485 |
+
checksum = "34085c17941e36627a879208083e25d357243812c30e7d7387c3b954f30ade16"
|
| 2486 |
+
dependencies = [
|
| 2487 |
+
"typed-builder-macro",
|
| 2488 |
+
]
|
| 2489 |
+
|
| 2490 |
+
[[package]]
|
| 2491 |
+
name = "typed-builder-macro"
|
| 2492 |
+
version = "0.16.2"
|
| 2493 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2494 |
+
checksum = "f03ca4cb38206e2bef0700092660bb74d696f808514dae47fa1467cbfe26e96e"
|
| 2495 |
+
dependencies = [
|
| 2496 |
+
"proc-macro2",
|
| 2497 |
+
"quote",
|
| 2498 |
+
"syn 2.0.28",
|
| 2499 |
+
]
|
| 2500 |
+
|
| 2501 |
+
[[package]]
|
| 2502 |
+
name = "typenum"
|
| 2503 |
+
version = "1.16.0"
|
| 2504 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2505 |
+
checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba"
|
| 2506 |
+
|
| 2507 |
+
[[package]]
|
| 2508 |
+
name = "unicode-bidi"
|
| 2509 |
+
version = "0.3.13"
|
| 2510 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2511 |
+
checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
|
| 2512 |
+
|
| 2513 |
+
[[package]]
|
| 2514 |
+
name = "unicode-ident"
|
| 2515 |
+
version = "1.0.11"
|
| 2516 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2517 |
+
checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c"
|
| 2518 |
+
|
| 2519 |
+
[[package]]
|
| 2520 |
+
name = "unicode-normalization"
|
| 2521 |
+
version = "0.1.22"
|
| 2522 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2523 |
+
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
|
| 2524 |
+
dependencies = [
|
| 2525 |
+
"tinyvec",
|
| 2526 |
+
]
|
| 2527 |
+
|
| 2528 |
+
[[package]]
|
| 2529 |
+
name = "unicode-segmentation"
|
| 2530 |
+
version = "1.10.1"
|
| 2531 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2532 |
+
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
|
| 2533 |
+
|
| 2534 |
+
[[package]]
|
| 2535 |
+
name = "unicode-width"
|
| 2536 |
+
version = "0.1.10"
|
| 2537 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2538 |
+
checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
|
| 2539 |
+
|
| 2540 |
+
[[package]]
|
| 2541 |
+
name = "url"
|
| 2542 |
+
version = "2.4.0"
|
| 2543 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2544 |
+
checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb"
|
| 2545 |
+
dependencies = [
|
| 2546 |
+
"form_urlencoded",
|
| 2547 |
+
"idna",
|
| 2548 |
+
"percent-encoding",
|
| 2549 |
+
]
|
| 2550 |
+
|
| 2551 |
+
[[package]]
|
| 2552 |
+
name = "uuid"
|
| 2553 |
+
version = "1.4.1"
|
| 2554 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2555 |
+
checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
|
| 2556 |
+
dependencies = [
|
| 2557 |
+
"getrandom",
|
| 2558 |
+
"serde",
|
| 2559 |
+
]
|
| 2560 |
+
|
| 2561 |
+
[[package]]
|
| 2562 |
+
name = "vec_map"
|
| 2563 |
+
version = "0.8.2"
|
| 2564 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2565 |
+
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
| 2566 |
+
|
| 2567 |
+
[[package]]
|
| 2568 |
+
name = "version_check"
|
| 2569 |
+
version = "0.9.4"
|
| 2570 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2571 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 2572 |
+
|
| 2573 |
+
[[package]]
|
| 2574 |
+
name = "walkdir"
|
| 2575 |
+
version = "2.3.3"
|
| 2576 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2577 |
+
checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698"
|
| 2578 |
+
dependencies = [
|
| 2579 |
+
"same-file",
|
| 2580 |
+
"winapi-util",
|
| 2581 |
+
]
|
| 2582 |
+
|
| 2583 |
+
[[package]]
|
| 2584 |
+
name = "wasi"
|
| 2585 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 2586 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2587 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 2588 |
+
|
| 2589 |
+
[[package]]
|
| 2590 |
+
name = "wasm-bindgen"
|
| 2591 |
+
version = "0.2.87"
|
| 2592 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2593 |
+
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
|
| 2594 |
+
dependencies = [
|
| 2595 |
+
"cfg-if",
|
| 2596 |
+
"wasm-bindgen-macro",
|
| 2597 |
+
]
|
| 2598 |
+
|
| 2599 |
+
[[package]]
|
| 2600 |
+
name = "wasm-bindgen-backend"
|
| 2601 |
+
version = "0.2.87"
|
| 2602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2603 |
+
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
|
| 2604 |
+
dependencies = [
|
| 2605 |
+
"bumpalo",
|
| 2606 |
+
"log",
|
| 2607 |
+
"once_cell",
|
| 2608 |
+
"proc-macro2",
|
| 2609 |
+
"quote",
|
| 2610 |
+
"syn 2.0.28",
|
| 2611 |
+
"wasm-bindgen-shared",
|
| 2612 |
+
]
|
| 2613 |
+
|
| 2614 |
+
[[package]]
|
| 2615 |
+
name = "wasm-bindgen-macro"
|
| 2616 |
+
version = "0.2.87"
|
| 2617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2618 |
+
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
|
| 2619 |
+
dependencies = [
|
| 2620 |
+
"quote",
|
| 2621 |
+
"wasm-bindgen-macro-support",
|
| 2622 |
+
]
|
| 2623 |
+
|
| 2624 |
+
[[package]]
|
| 2625 |
+
name = "wasm-bindgen-macro-support"
|
| 2626 |
+
version = "0.2.87"
|
| 2627 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2628 |
+
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
|
| 2629 |
+
dependencies = [
|
| 2630 |
+
"proc-macro2",
|
| 2631 |
+
"quote",
|
| 2632 |
+
"syn 2.0.28",
|
| 2633 |
+
"wasm-bindgen-backend",
|
| 2634 |
+
"wasm-bindgen-shared",
|
| 2635 |
+
]
|
| 2636 |
+
|
| 2637 |
+
[[package]]
|
| 2638 |
+
name = "wasm-bindgen-shared"
|
| 2639 |
+
version = "0.2.87"
|
| 2640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2641 |
+
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
|
| 2642 |
+
|
| 2643 |
+
[[package]]
|
| 2644 |
+
name = "winapi"
|
| 2645 |
+
version = "0.3.9"
|
| 2646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2647 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 2648 |
+
dependencies = [
|
| 2649 |
+
"winapi-i686-pc-windows-gnu",
|
| 2650 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 2651 |
+
]
|
| 2652 |
+
|
| 2653 |
+
[[package]]
|
| 2654 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 2655 |
+
version = "0.4.0"
|
| 2656 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2657 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 2658 |
+
|
| 2659 |
+
[[package]]
|
| 2660 |
+
name = "winapi-util"
|
| 2661 |
+
version = "0.1.5"
|
| 2662 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2663 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 2664 |
+
dependencies = [
|
| 2665 |
+
"winapi",
|
| 2666 |
+
]
|
| 2667 |
+
|
| 2668 |
+
[[package]]
|
| 2669 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 2670 |
+
version = "0.4.0"
|
| 2671 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2672 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 2673 |
+
|
| 2674 |
+
[[package]]
|
| 2675 |
+
name = "windows"
|
| 2676 |
+
version = "0.48.0"
|
| 2677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2678 |
+
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
|
| 2679 |
+
dependencies = [
|
| 2680 |
+
"windows-targets",
|
| 2681 |
+
]
|
| 2682 |
+
|
| 2683 |
+
[[package]]
|
| 2684 |
+
name = "windows-sys"
|
| 2685 |
+
version = "0.48.0"
|
| 2686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2687 |
+
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
| 2688 |
+
dependencies = [
|
| 2689 |
+
"windows-targets",
|
| 2690 |
+
]
|
| 2691 |
+
|
| 2692 |
+
[[package]]
|
| 2693 |
+
name = "windows-targets"
|
| 2694 |
+
version = "0.48.1"
|
| 2695 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2696 |
+
checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f"
|
| 2697 |
+
dependencies = [
|
| 2698 |
+
"windows_aarch64_gnullvm",
|
| 2699 |
+
"windows_aarch64_msvc",
|
| 2700 |
+
"windows_i686_gnu",
|
| 2701 |
+
"windows_i686_msvc",
|
| 2702 |
+
"windows_x86_64_gnu",
|
| 2703 |
+
"windows_x86_64_gnullvm",
|
| 2704 |
+
"windows_x86_64_msvc",
|
| 2705 |
+
]
|
| 2706 |
+
|
| 2707 |
+
[[package]]
|
| 2708 |
+
name = "windows_aarch64_gnullvm"
|
| 2709 |
+
version = "0.48.0"
|
| 2710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2711 |
+
checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
|
| 2712 |
+
|
| 2713 |
+
[[package]]
|
| 2714 |
+
name = "windows_aarch64_msvc"
|
| 2715 |
+
version = "0.48.0"
|
| 2716 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2717 |
+
checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
|
| 2718 |
+
|
| 2719 |
+
[[package]]
|
| 2720 |
+
name = "windows_i686_gnu"
|
| 2721 |
+
version = "0.48.0"
|
| 2722 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2723 |
+
checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
|
| 2724 |
+
|
| 2725 |
+
[[package]]
|
| 2726 |
+
name = "windows_i686_msvc"
|
| 2727 |
+
version = "0.48.0"
|
| 2728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2729 |
+
checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
|
| 2730 |
+
|
| 2731 |
+
[[package]]
|
| 2732 |
+
name = "windows_x86_64_gnu"
|
| 2733 |
+
version = "0.48.0"
|
| 2734 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2735 |
+
checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
|
| 2736 |
+
|
| 2737 |
+
[[package]]
|
| 2738 |
+
name = "windows_x86_64_gnullvm"
|
| 2739 |
+
version = "0.48.0"
|
| 2740 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2741 |
+
checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
|
| 2742 |
+
|
| 2743 |
+
[[package]]
|
| 2744 |
+
name = "windows_x86_64_msvc"
|
| 2745 |
+
version = "0.48.0"
|
| 2746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2747 |
+
checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
|
| 2748 |
+
|
| 2749 |
+
[[package]]
|
| 2750 |
+
name = "xz2"
|
| 2751 |
+
version = "0.1.7"
|
| 2752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2753 |
+
checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
|
| 2754 |
+
dependencies = [
|
| 2755 |
+
"lzma-sys",
|
| 2756 |
+
]
|
| 2757 |
+
|
| 2758 |
+
[[package]]
|
| 2759 |
+
name = "zstd"
|
| 2760 |
+
version = "0.12.4"
|
| 2761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2762 |
+
checksum = "1a27595e173641171fc74a1232b7b1c7a7cb6e18222c11e9dfb9888fa424c53c"
|
| 2763 |
+
dependencies = [
|
| 2764 |
+
"zstd-safe 6.0.6",
|
| 2765 |
+
]
|
| 2766 |
+
|
| 2767 |
+
[[package]]
|
| 2768 |
+
name = "zstd"
|
| 2769 |
+
version = "0.13.0"
|
| 2770 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2771 |
+
checksum = "bffb3309596d527cfcba7dfc6ed6052f1d39dfbd7c867aa2e865e4a449c10110"
|
| 2772 |
+
dependencies = [
|
| 2773 |
+
"zstd-safe 7.0.0",
|
| 2774 |
+
]
|
| 2775 |
+
|
| 2776 |
+
[[package]]
|
| 2777 |
+
name = "zstd-safe"
|
| 2778 |
+
version = "6.0.6"
|
| 2779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2780 |
+
checksum = "ee98ffd0b48ee95e6c5168188e44a54550b1564d9d530ee21d5f0eaed1069581"
|
| 2781 |
+
dependencies = [
|
| 2782 |
+
"libc",
|
| 2783 |
+
"zstd-sys",
|
| 2784 |
+
]
|
| 2785 |
+
|
| 2786 |
+
[[package]]
|
| 2787 |
+
name = "zstd-safe"
|
| 2788 |
+
version = "7.0.0"
|
| 2789 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2790 |
+
checksum = "43747c7422e2924c11144d5229878b98180ef8b06cca4ab5af37afc8a8d8ea3e"
|
| 2791 |
+
dependencies = [
|
| 2792 |
+
"zstd-sys",
|
| 2793 |
+
]
|
| 2794 |
+
|
| 2795 |
+
[[package]]
|
| 2796 |
+
name = "zstd-sys"
|
| 2797 |
+
version = "2.0.8+zstd.1.5.5"
|
| 2798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2799 |
+
checksum = "5556e6ee25d32df2586c098bbfa278803692a20d0ab9565e049480d52707ec8c"
|
| 2800 |
+
dependencies = [
|
| 2801 |
+
"cc",
|
| 2802 |
+
"libc",
|
| 2803 |
+
"pkg-config",
|
| 2804 |
+
]
|
| 2805 |
+
LOCK
|
| 2806 |
+
|
| 2807 |
+
# ---------------------------------------------------------------------------
|
| 2808 |
+
# Prefetch every dependency into the shared cargo registry cache.
|
| 2809 |
+
# ---------------------------------------------------------------------------
|
| 2810 |
+
cargo fetch --locked --manifest-path "$GEN_DIR/Cargo.toml"
|
| 2811 |
+
|
| 2812 |
+
# ---------------------------------------------------------------------------
|
| 2813 |
+
# Export the variables build.sh relies on. The real repository Cargo.toml and
|
| 2814 |
+
# Cargo.lock resolve to the same package set, so --offline build will succeed
|
| 2815 |
+
# entirely from the cache populated above.
|
| 2816 |
+
# ---------------------------------------------------------------------------
|
| 2817 |
+
export CARGO_NET_OFFLINE=true
|
| 2818 |
+
|
| 2819 |
+
# Cleanup scratch.
|
| 2820 |
+
rm -rf "$GEN_DIR"
|
datafusion-contrib--bdt.5c6730a/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8904e8c92a77bfbdb869294b9bc5cabcc6be00574ce9ceed153ba6ed4b182e0b
|
| 3 |
+
size 66290192
|
datafusion-contrib--bdt.5c6730a/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
|
datafusion-contrib--bdt.5c6730a/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e4f8bf3e1b1488f9de31bb2b1dfac26f26c4081934724f93fa5db4a38d21a23e
|
| 3 |
+
size 3806
|
datafusion-contrib--bdt.5c6730a/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
|
datafusion-contrib--bdt.5c6730a/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
|
datafusion-contrib--bdt.5c6730a/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/datafusion-contrib--bdt.5c6730a"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for datafusion-contrib/bdt"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "datafusion-contrib__bdt.5c6730a"
|
| 32 |
+
repository = "datafusion-contrib/bdt"
|
| 33 |
+
commit = "5c6730a8e3cd43c7847aef76b499197730cded58"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.6940784620807596
|
| 37 |
+
test_branches = 3
|
| 38 |
+
test_count = 342
|
| 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"
|
datafusion-contrib--bdt.5c6730a/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
|
datafusion-contrib--bdt.5c6730a/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:076233f8d32e09db9636d1fef68f7c8279935162452bf5733e8e81812234e4a5
|
| 3 |
+
size 18216
|
datafusion-contrib--bdt.5c6730a/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:212c107081cfc58eb64cb3bcea8af6b1ceb63a8f8c5e5fea8add0942b6d38929
|
| 3 |
+
size 21891
|
datafusion-contrib--bdt.5c6730a/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:dee7ec51282022e02c3fa1cdccff23294b70a2aac1f8abf37c66f28a63a49378
|
| 3 |
+
size 17909
|
datafusion-contrib--bdt.5c6730a/tests/download.sh
ADDED
|
@@ -0,0 +1,2820 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh for ProgramGym - bdt (Boring Data Tool)
|
| 3 |
+
#
|
| 4 |
+
# Standalone dependency-prefetch stage. This script is sourced via
|
| 5 |
+
# `source /source_ro/download.sh` while the container has network access and
|
| 6 |
+
# the repository is mounted read-only. It generates a temporary Cargo manifest
|
| 7 |
+
# (a copy of the repository's package metadata) plus the exact Cargo.lock the
|
| 8 |
+
# offline build will use, then runs `cargo fetch --locked` against that
|
| 9 |
+
# generated manifest to populate the shared cargo registry cache.
|
| 10 |
+
#
|
| 11 |
+
# It does NOT compile, link, test, or package anything. It does not read any
|
| 12 |
+
# repository source file. All dependency info is written here inline.
|
| 13 |
+
|
| 14 |
+
set -euo pipefail
|
| 15 |
+
|
| 16 |
+
# ---------------------------------------------------------------------------
|
| 17 |
+
# Work in a writable scratch directory (the source mount /source_ro is RO).
|
| 18 |
+
# ---------------------------------------------------------------------------
|
| 19 |
+
GEN_DIR="${TMPDIR:-/tmp}/bdt_generate_$$"
|
| 20 |
+
mkdir -p "$GEN_DIR/src/bin"
|
| 21 |
+
|
| 22 |
+
# ---------------------------------------------------------------------------
|
| 23 |
+
# Generate the Cargo.toml. This mirrors the repository's [package]/[lib]/[[bin]]
|
| 24 |
+
# and [dependencies] sections so dependency resolution matches the real build.
|
| 25 |
+
# ---------------------------------------------------------------------------
|
| 26 |
+
cat > "$GEN_DIR/Cargo.toml" <<'TOML'
|
| 27 |
+
[package]
|
| 28 |
+
name = "bdt"
|
| 29 |
+
version = "0.18.0"
|
| 30 |
+
edition = "2021"
|
| 31 |
+
|
| 32 |
+
[lib]
|
| 33 |
+
name = "bdt"
|
| 34 |
+
path = "src/lib.rs"
|
| 35 |
+
|
| 36 |
+
[[bin]]
|
| 37 |
+
name = "bdt"
|
| 38 |
+
path = "src/bin/main.rs"
|
| 39 |
+
|
| 40 |
+
[dependencies]
|
| 41 |
+
comfy-table = "6.1.2"
|
| 42 |
+
datafusion = { version = "35.0", features = ["avro"] }
|
| 43 |
+
structopt = "0.3"
|
| 44 |
+
tokio = { version = "1.36", features = ["rt-multi-thread"] }
|
| 45 |
+
thiserror = "1"
|
| 46 |
+
TOML
|
| 47 |
+
|
| 48 |
+
# Placeholder stub source files (cargo only needs them to exist for metadata).
|
| 49 |
+
touch "$GEN_DIR/src/lib.rs"
|
| 50 |
+
touch "$GEN_DIR/src/bin/main.rs"
|
| 51 |
+
|
| 52 |
+
# ---------------------------------------------------------------------------
|
| 53 |
+
# Generate the exact Cargo.lock the offline build will consume, so `cargo fetch
|
| 54 |
+
# --locked` downloads precisely the versions pinned in the repository lock.
|
| 55 |
+
# ---------------------------------------------------------------------------
|
| 56 |
+
cat > "$GEN_DIR/Cargo.lock" <<'LOCK'
|
| 57 |
+
# This file is automatically @generated by Cargo.
|
| 58 |
+
# It is not intended for manual editing.
|
| 59 |
+
version = 3
|
| 60 |
+
|
| 61 |
+
[[package]]
|
| 62 |
+
name = "addr2line"
|
| 63 |
+
version = "0.20.0"
|
| 64 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 65 |
+
checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3"
|
| 66 |
+
dependencies = [
|
| 67 |
+
"gimli",
|
| 68 |
+
]
|
| 69 |
+
|
| 70 |
+
[[package]]
|
| 71 |
+
name = "adler"
|
| 72 |
+
version = "1.0.2"
|
| 73 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 74 |
+
checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe"
|
| 75 |
+
|
| 76 |
+
[[package]]
|
| 77 |
+
name = "adler32"
|
| 78 |
+
version = "1.2.0"
|
| 79 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 80 |
+
checksum = "aae1277d39aeec15cb388266ecc24b11c80469deae6067e17a1a7aa9e5c1f234"
|
| 81 |
+
|
| 82 |
+
[[package]]
|
| 83 |
+
name = "ahash"
|
| 84 |
+
version = "0.8.3"
|
| 85 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 86 |
+
checksum = "2c99f64d1e06488f620f932677e24bc6e2897582980441ae90a671415bd7ec2f"
|
| 87 |
+
dependencies = [
|
| 88 |
+
"cfg-if",
|
| 89 |
+
"const-random",
|
| 90 |
+
"getrandom",
|
| 91 |
+
"once_cell",
|
| 92 |
+
"version_check",
|
| 93 |
+
]
|
| 94 |
+
|
| 95 |
+
[[package]]
|
| 96 |
+
name = "aho-corasick"
|
| 97 |
+
version = "1.0.2"
|
| 98 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 99 |
+
checksum = "43f6cb1bf222025340178f382c426f13757b2960e89779dfcb319c32542a5a41"
|
| 100 |
+
dependencies = [
|
| 101 |
+
"memchr",
|
| 102 |
+
]
|
| 103 |
+
|
| 104 |
+
[[package]]
|
| 105 |
+
name = "alloc-no-stdlib"
|
| 106 |
+
version = "2.0.4"
|
| 107 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 108 |
+
checksum = "cc7bb162ec39d46ab1ca8c77bf72e890535becd1751bb45f64c597edb4c8c6b3"
|
| 109 |
+
|
| 110 |
+
[[package]]
|
| 111 |
+
name = "alloc-stdlib"
|
| 112 |
+
version = "0.2.2"
|
| 113 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 114 |
+
checksum = "94fb8275041c72129eb51b7d0322c29b8387a0386127718b096429201a5d6ece"
|
| 115 |
+
dependencies = [
|
| 116 |
+
"alloc-no-stdlib",
|
| 117 |
+
]
|
| 118 |
+
|
| 119 |
+
[[package]]
|
| 120 |
+
name = "allocator-api2"
|
| 121 |
+
version = "0.2.16"
|
| 122 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 123 |
+
checksum = "0942ffc6dcaadf03badf6e6a2d0228460359d5e34b57ccdc720b7382dfbd5ec5"
|
| 124 |
+
|
| 125 |
+
[[package]]
|
| 126 |
+
name = "android-tzdata"
|
| 127 |
+
version = "0.1.1"
|
| 128 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 129 |
+
checksum = "e999941b234f3131b00bc13c22d06e8c5ff726d1b6318ac7eb276997bbb4fef0"
|
| 130 |
+
|
| 131 |
+
[[package]]
|
| 132 |
+
name = "android_system_properties"
|
| 133 |
+
version = "0.1.5"
|
| 134 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 135 |
+
checksum = "819e7219dbd41043ac279b19830f2efc897156490d7fd6ea916720117ee66311"
|
| 136 |
+
dependencies = [
|
| 137 |
+
"libc",
|
| 138 |
+
]
|
| 139 |
+
|
| 140 |
+
[[package]]
|
| 141 |
+
name = "ansi_term"
|
| 142 |
+
version = "0.12.1"
|
| 143 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 144 |
+
checksum = "d52a9bb7ec0cf484c551830a7ce27bd20d67eac647e1befb56b0be4ee39a55d2"
|
| 145 |
+
dependencies = [
|
| 146 |
+
"winapi",
|
| 147 |
+
]
|
| 148 |
+
|
| 149 |
+
[[package]]
|
| 150 |
+
name = "apache-avro"
|
| 151 |
+
version = "0.16.0"
|
| 152 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 153 |
+
checksum = "ceb7c683b2f8f40970b70e39ff8be514c95b96fcb9c4af87e1ed2cb2e10801a0"
|
| 154 |
+
dependencies = [
|
| 155 |
+
"bzip2",
|
| 156 |
+
"crc32fast",
|
| 157 |
+
"digest",
|
| 158 |
+
"lazy_static",
|
| 159 |
+
"libflate",
|
| 160 |
+
"log",
|
| 161 |
+
"num-bigint",
|
| 162 |
+
"quad-rand",
|
| 163 |
+
"rand",
|
| 164 |
+
"regex-lite",
|
| 165 |
+
"serde",
|
| 166 |
+
"serde_json",
|
| 167 |
+
"snap",
|
| 168 |
+
"strum 0.25.0",
|
| 169 |
+
"strum_macros 0.25.3",
|
| 170 |
+
"thiserror",
|
| 171 |
+
"typed-builder",
|
| 172 |
+
"uuid",
|
| 173 |
+
"xz2",
|
| 174 |
+
"zstd 0.12.4",
|
| 175 |
+
]
|
| 176 |
+
|
| 177 |
+
[[package]]
|
| 178 |
+
name = "arrayref"
|
| 179 |
+
version = "0.3.7"
|
| 180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 181 |
+
checksum = "6b4930d2cb77ce62f89ee5d5289b4ac049559b1c45539271f5ed4fdc7db34545"
|
| 182 |
+
|
| 183 |
+
[[package]]
|
| 184 |
+
name = "arrayvec"
|
| 185 |
+
version = "0.7.4"
|
| 186 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 187 |
+
checksum = "96d30a06541fbafbc7f82ed10c06164cfbd2c401138f6addd8404629c4b16711"
|
| 188 |
+
|
| 189 |
+
[[package]]
|
| 190 |
+
name = "arrow"
|
| 191 |
+
version = "50.0.0"
|
| 192 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 193 |
+
checksum = "aa285343fba4d829d49985bdc541e3789cf6000ed0e84be7c039438df4a4e78c"
|
| 194 |
+
dependencies = [
|
| 195 |
+
"arrow-arith",
|
| 196 |
+
"arrow-array",
|
| 197 |
+
"arrow-buffer",
|
| 198 |
+
"arrow-cast",
|
| 199 |
+
"arrow-csv",
|
| 200 |
+
"arrow-data",
|
| 201 |
+
"arrow-ipc",
|
| 202 |
+
"arrow-json",
|
| 203 |
+
"arrow-ord",
|
| 204 |
+
"arrow-row",
|
| 205 |
+
"arrow-schema",
|
| 206 |
+
"arrow-select",
|
| 207 |
+
"arrow-string",
|
| 208 |
+
]
|
| 209 |
+
|
| 210 |
+
[[package]]
|
| 211 |
+
name = "arrow-arith"
|
| 212 |
+
version = "50.0.0"
|
| 213 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 214 |
+
checksum = "753abd0a5290c1bcade7c6623a556f7d1659c5f4148b140b5b63ce7bd1a45705"
|
| 215 |
+
dependencies = [
|
| 216 |
+
"arrow-array",
|
| 217 |
+
"arrow-buffer",
|
| 218 |
+
"arrow-data",
|
| 219 |
+
"arrow-schema",
|
| 220 |
+
"chrono",
|
| 221 |
+
"half",
|
| 222 |
+
"num",
|
| 223 |
+
]
|
| 224 |
+
|
| 225 |
+
[[package]]
|
| 226 |
+
name = "arrow-array"
|
| 227 |
+
version = "50.0.0"
|
| 228 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 229 |
+
checksum = "d390feeb7f21b78ec997a4081a025baef1e2e0d6069e181939b61864c9779609"
|
| 230 |
+
dependencies = [
|
| 231 |
+
"ahash",
|
| 232 |
+
"arrow-buffer",
|
| 233 |
+
"arrow-data",
|
| 234 |
+
"arrow-schema",
|
| 235 |
+
"chrono",
|
| 236 |
+
"chrono-tz",
|
| 237 |
+
"half",
|
| 238 |
+
"hashbrown 0.14.0",
|
| 239 |
+
"num",
|
| 240 |
+
]
|
| 241 |
+
|
| 242 |
+
[[package]]
|
| 243 |
+
name = "arrow-buffer"
|
| 244 |
+
version = "50.0.0"
|
| 245 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 246 |
+
checksum = "69615b061701bcdffbc62756bc7e85c827d5290b472b580c972ebbbf690f5aa4"
|
| 247 |
+
dependencies = [
|
| 248 |
+
"bytes",
|
| 249 |
+
"half",
|
| 250 |
+
"num",
|
| 251 |
+
]
|
| 252 |
+
|
| 253 |
+
[[package]]
|
| 254 |
+
name = "arrow-cast"
|
| 255 |
+
version = "50.0.0"
|
| 256 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 257 |
+
checksum = "e448e5dd2f4113bf5b74a1f26531708f5edcacc77335b7066f9398f4bcf4cdef"
|
| 258 |
+
dependencies = [
|
| 259 |
+
"arrow-array",
|
| 260 |
+
"arrow-buffer",
|
| 261 |
+
"arrow-data",
|
| 262 |
+
"arrow-schema",
|
| 263 |
+
"arrow-select",
|
| 264 |
+
"base64",
|
| 265 |
+
"chrono",
|
| 266 |
+
"comfy-table 7.0.1",
|
| 267 |
+
"half",
|
| 268 |
+
"lexical-core",
|
| 269 |
+
"num",
|
| 270 |
+
]
|
| 271 |
+
|
| 272 |
+
[[package]]
|
| 273 |
+
name = "arrow-csv"
|
| 274 |
+
version = "50.0.0"
|
| 275 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 276 |
+
checksum = "46af72211f0712612f5b18325530b9ad1bfbdc87290d5fbfd32a7da128983781"
|
| 277 |
+
dependencies = [
|
| 278 |
+
"arrow-array",
|
| 279 |
+
"arrow-buffer",
|
| 280 |
+
"arrow-cast",
|
| 281 |
+
"arrow-data",
|
| 282 |
+
"arrow-schema",
|
| 283 |
+
"chrono",
|
| 284 |
+
"csv",
|
| 285 |
+
"csv-core",
|
| 286 |
+
"lazy_static",
|
| 287 |
+
"lexical-core",
|
| 288 |
+
"regex",
|
| 289 |
+
]
|
| 290 |
+
|
| 291 |
+
[[package]]
|
| 292 |
+
name = "arrow-data"
|
| 293 |
+
version = "50.0.0"
|
| 294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 295 |
+
checksum = "67d644b91a162f3ad3135ce1184d0a31c28b816a581e08f29e8e9277a574c64e"
|
| 296 |
+
dependencies = [
|
| 297 |
+
"arrow-buffer",
|
| 298 |
+
"arrow-schema",
|
| 299 |
+
"half",
|
| 300 |
+
"num",
|
| 301 |
+
]
|
| 302 |
+
|
| 303 |
+
[[package]]
|
| 304 |
+
name = "arrow-ipc"
|
| 305 |
+
version = "50.0.0"
|
| 306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 307 |
+
checksum = "03dea5e79b48de6c2e04f03f62b0afea7105be7b77d134f6c5414868feefb80d"
|
| 308 |
+
dependencies = [
|
| 309 |
+
"arrow-array",
|
| 310 |
+
"arrow-buffer",
|
| 311 |
+
"arrow-cast",
|
| 312 |
+
"arrow-data",
|
| 313 |
+
"arrow-schema",
|
| 314 |
+
"flatbuffers",
|
| 315 |
+
"lz4_flex",
|
| 316 |
+
]
|
| 317 |
+
|
| 318 |
+
[[package]]
|
| 319 |
+
name = "arrow-json"
|
| 320 |
+
version = "50.0.0"
|
| 321 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 322 |
+
checksum = "8950719280397a47d37ac01492e3506a8a724b3fb81001900b866637a829ee0f"
|
| 323 |
+
dependencies = [
|
| 324 |
+
"arrow-array",
|
| 325 |
+
"arrow-buffer",
|
| 326 |
+
"arrow-cast",
|
| 327 |
+
"arrow-data",
|
| 328 |
+
"arrow-schema",
|
| 329 |
+
"chrono",
|
| 330 |
+
"half",
|
| 331 |
+
"indexmap 2.0.0",
|
| 332 |
+
"lexical-core",
|
| 333 |
+
"num",
|
| 334 |
+
"serde",
|
| 335 |
+
"serde_json",
|
| 336 |
+
]
|
| 337 |
+
|
| 338 |
+
[[package]]
|
| 339 |
+
name = "arrow-ord"
|
| 340 |
+
version = "50.0.0"
|
| 341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 342 |
+
checksum = "1ed9630979034077982d8e74a942b7ac228f33dd93a93b615b4d02ad60c260be"
|
| 343 |
+
dependencies = [
|
| 344 |
+
"arrow-array",
|
| 345 |
+
"arrow-buffer",
|
| 346 |
+
"arrow-data",
|
| 347 |
+
"arrow-schema",
|
| 348 |
+
"arrow-select",
|
| 349 |
+
"half",
|
| 350 |
+
"num",
|
| 351 |
+
]
|
| 352 |
+
|
| 353 |
+
[[package]]
|
| 354 |
+
name = "arrow-row"
|
| 355 |
+
version = "50.0.0"
|
| 356 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 357 |
+
checksum = "007035e17ae09c4e8993e4cb8b5b96edf0afb927cd38e2dff27189b274d83dcf"
|
| 358 |
+
dependencies = [
|
| 359 |
+
"ahash",
|
| 360 |
+
"arrow-array",
|
| 361 |
+
"arrow-buffer",
|
| 362 |
+
"arrow-data",
|
| 363 |
+
"arrow-schema",
|
| 364 |
+
"half",
|
| 365 |
+
"hashbrown 0.14.0",
|
| 366 |
+
]
|
| 367 |
+
|
| 368 |
+
[[package]]
|
| 369 |
+
name = "arrow-schema"
|
| 370 |
+
version = "50.0.0"
|
| 371 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 372 |
+
checksum = "0ff3e9c01f7cd169379d269f926892d0e622a704960350d09d331be3ec9e0029"
|
| 373 |
+
|
| 374 |
+
[[package]]
|
| 375 |
+
name = "arrow-select"
|
| 376 |
+
version = "50.0.0"
|
| 377 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 378 |
+
checksum = "1ce20973c1912de6514348e064829e50947e35977bb9d7fb637dc99ea9ffd78c"
|
| 379 |
+
dependencies = [
|
| 380 |
+
"ahash",
|
| 381 |
+
"arrow-array",
|
| 382 |
+
"arrow-buffer",
|
| 383 |
+
"arrow-data",
|
| 384 |
+
"arrow-schema",
|
| 385 |
+
"num",
|
| 386 |
+
]
|
| 387 |
+
|
| 388 |
+
[[package]]
|
| 389 |
+
name = "arrow-string"
|
| 390 |
+
version = "50.0.0"
|
| 391 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 392 |
+
checksum = "00f3b37f2aeece31a2636d1b037dabb69ef590e03bdc7eb68519b51ec86932a7"
|
| 393 |
+
dependencies = [
|
| 394 |
+
"arrow-array",
|
| 395 |
+
"arrow-buffer",
|
| 396 |
+
"arrow-data",
|
| 397 |
+
"arrow-schema",
|
| 398 |
+
"arrow-select",
|
| 399 |
+
"num",
|
| 400 |
+
"regex",
|
| 401 |
+
"regex-syntax 0.8.2",
|
| 402 |
+
]
|
| 403 |
+
|
| 404 |
+
[[package]]
|
| 405 |
+
name = "async-compression"
|
| 406 |
+
version = "0.4.1"
|
| 407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 408 |
+
checksum = "62b74f44609f0f91493e3082d3734d98497e094777144380ea4db9f9905dd5b6"
|
| 409 |
+
dependencies = [
|
| 410 |
+
"bzip2",
|
| 411 |
+
"flate2",
|
| 412 |
+
"futures-core",
|
| 413 |
+
"futures-io",
|
| 414 |
+
"memchr",
|
| 415 |
+
"pin-project-lite",
|
| 416 |
+
"tokio",
|
| 417 |
+
"xz2",
|
| 418 |
+
"zstd 0.12.4",
|
| 419 |
+
"zstd-safe 6.0.6",
|
| 420 |
+
]
|
| 421 |
+
|
| 422 |
+
[[package]]
|
| 423 |
+
name = "async-trait"
|
| 424 |
+
version = "0.1.74"
|
| 425 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 426 |
+
checksum = "a66537f1bb974b254c98ed142ff995236e81b9d0fe4db0575f46612cb15eb0f9"
|
| 427 |
+
dependencies = [
|
| 428 |
+
"proc-macro2",
|
| 429 |
+
"quote",
|
| 430 |
+
"syn 2.0.28",
|
| 431 |
+
]
|
| 432 |
+
|
| 433 |
+
[[package]]
|
| 434 |
+
name = "atty"
|
| 435 |
+
version = "0.2.14"
|
| 436 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 437 |
+
checksum = "d9b39be18770d11421cdb1b9947a45dd3f37e93092cbf377614828a319d5fee8"
|
| 438 |
+
dependencies = [
|
| 439 |
+
"hermit-abi 0.1.19",
|
| 440 |
+
"libc",
|
| 441 |
+
"winapi",
|
| 442 |
+
]
|
| 443 |
+
|
| 444 |
+
[[package]]
|
| 445 |
+
name = "autocfg"
|
| 446 |
+
version = "1.1.0"
|
| 447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 448 |
+
checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa"
|
| 449 |
+
|
| 450 |
+
[[package]]
|
| 451 |
+
name = "backtrace"
|
| 452 |
+
version = "0.3.68"
|
| 453 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 454 |
+
checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12"
|
| 455 |
+
dependencies = [
|
| 456 |
+
"addr2line",
|
| 457 |
+
"cc",
|
| 458 |
+
"cfg-if",
|
| 459 |
+
"libc",
|
| 460 |
+
"miniz_oxide",
|
| 461 |
+
"object",
|
| 462 |
+
"rustc-demangle",
|
| 463 |
+
]
|
| 464 |
+
|
| 465 |
+
[[package]]
|
| 466 |
+
name = "base64"
|
| 467 |
+
version = "0.21.2"
|
| 468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 469 |
+
checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d"
|
| 470 |
+
|
| 471 |
+
[[package]]
|
| 472 |
+
name = "bdt"
|
| 473 |
+
version = "0.18.0"
|
| 474 |
+
dependencies = [
|
| 475 |
+
"comfy-table 6.2.0",
|
| 476 |
+
"datafusion",
|
| 477 |
+
"structopt",
|
| 478 |
+
"thiserror",
|
| 479 |
+
"tokio",
|
| 480 |
+
]
|
| 481 |
+
|
| 482 |
+
[[package]]
|
| 483 |
+
name = "bitflags"
|
| 484 |
+
version = "1.3.2"
|
| 485 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 486 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 487 |
+
|
| 488 |
+
[[package]]
|
| 489 |
+
name = "bitflags"
|
| 490 |
+
version = "2.3.3"
|
| 491 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 492 |
+
checksum = "630be753d4e58660abd17930c71b647fe46c27ea6b63cc59e1e3851406972e42"
|
| 493 |
+
|
| 494 |
+
[[package]]
|
| 495 |
+
name = "blake2"
|
| 496 |
+
version = "0.10.6"
|
| 497 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 498 |
+
checksum = "46502ad458c9a52b69d4d4d32775c788b7a1b85e8bc9d482d92250fc0e3f8efe"
|
| 499 |
+
dependencies = [
|
| 500 |
+
"digest",
|
| 501 |
+
]
|
| 502 |
+
|
| 503 |
+
[[package]]
|
| 504 |
+
name = "blake3"
|
| 505 |
+
version = "1.4.1"
|
| 506 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 507 |
+
checksum = "199c42ab6972d92c9f8995f086273d25c42fc0f7b2a1fcefba465c1352d25ba5"
|
| 508 |
+
dependencies = [
|
| 509 |
+
"arrayref",
|
| 510 |
+
"arrayvec",
|
| 511 |
+
"cc",
|
| 512 |
+
"cfg-if",
|
| 513 |
+
"constant_time_eq",
|
| 514 |
+
"digest",
|
| 515 |
+
]
|
| 516 |
+
|
| 517 |
+
[[package]]
|
| 518 |
+
name = "block-buffer"
|
| 519 |
+
version = "0.10.4"
|
| 520 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 521 |
+
checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
|
| 522 |
+
dependencies = [
|
| 523 |
+
"generic-array",
|
| 524 |
+
]
|
| 525 |
+
|
| 526 |
+
[[package]]
|
| 527 |
+
name = "brotli"
|
| 528 |
+
version = "3.3.4"
|
| 529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 530 |
+
checksum = "a1a0b1dbcc8ae29329621f8d4f0d835787c1c38bb1401979b49d13b0b305ff68"
|
| 531 |
+
dependencies = [
|
| 532 |
+
"alloc-no-stdlib",
|
| 533 |
+
"alloc-stdlib",
|
| 534 |
+
"brotli-decompressor",
|
| 535 |
+
]
|
| 536 |
+
|
| 537 |
+
[[package]]
|
| 538 |
+
name = "brotli-decompressor"
|
| 539 |
+
version = "2.3.4"
|
| 540 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 541 |
+
checksum = "4b6561fd3f895a11e8f72af2cb7d22e08366bebc2b6b57f7744c4bda27034744"
|
| 542 |
+
dependencies = [
|
| 543 |
+
"alloc-no-stdlib",
|
| 544 |
+
"alloc-stdlib",
|
| 545 |
+
]
|
| 546 |
+
|
| 547 |
+
[[package]]
|
| 548 |
+
name = "bumpalo"
|
| 549 |
+
version = "3.13.0"
|
| 550 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 551 |
+
checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1"
|
| 552 |
+
|
| 553 |
+
[[package]]
|
| 554 |
+
name = "byteorder"
|
| 555 |
+
version = "1.4.3"
|
| 556 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 557 |
+
checksum = "14c189c53d098945499cdfa7ecc63567cf3886b3332b312a5b4585d8d3a6a610"
|
| 558 |
+
|
| 559 |
+
[[package]]
|
| 560 |
+
name = "bytes"
|
| 561 |
+
version = "1.4.0"
|
| 562 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 563 |
+
checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be"
|
| 564 |
+
|
| 565 |
+
[[package]]
|
| 566 |
+
name = "bzip2"
|
| 567 |
+
version = "0.4.4"
|
| 568 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 569 |
+
checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8"
|
| 570 |
+
dependencies = [
|
| 571 |
+
"bzip2-sys",
|
| 572 |
+
"libc",
|
| 573 |
+
]
|
| 574 |
+
|
| 575 |
+
[[package]]
|
| 576 |
+
name = "bzip2-sys"
|
| 577 |
+
version = "0.1.11+1.0.8"
|
| 578 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 579 |
+
checksum = "736a955f3fa7875102d57c82b8cac37ec45224a07fd32d58f9f7a186b6cd4cdc"
|
| 580 |
+
dependencies = [
|
| 581 |
+
"cc",
|
| 582 |
+
"libc",
|
| 583 |
+
"pkg-config",
|
| 584 |
+
]
|
| 585 |
+
|
| 586 |
+
[[package]]
|
| 587 |
+
name = "cc"
|
| 588 |
+
version = "1.0.81"
|
| 589 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 590 |
+
checksum = "6c6b2562119bf28c3439f7f02db99faf0aa1a8cdfe5772a2ee155d32227239f0"
|
| 591 |
+
dependencies = [
|
| 592 |
+
"jobserver",
|
| 593 |
+
"libc",
|
| 594 |
+
]
|
| 595 |
+
|
| 596 |
+
[[package]]
|
| 597 |
+
name = "cfg-if"
|
| 598 |
+
version = "1.0.0"
|
| 599 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 600 |
+
checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd"
|
| 601 |
+
|
| 602 |
+
[[package]]
|
| 603 |
+
name = "chrono"
|
| 604 |
+
version = "0.4.31"
|
| 605 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 606 |
+
checksum = "7f2c685bad3eb3d45a01354cedb7d5faa66194d1d58ba6e267a8de788f79db38"
|
| 607 |
+
dependencies = [
|
| 608 |
+
"android-tzdata",
|
| 609 |
+
"iana-time-zone",
|
| 610 |
+
"num-traits",
|
| 611 |
+
"windows-targets",
|
| 612 |
+
]
|
| 613 |
+
|
| 614 |
+
[[package]]
|
| 615 |
+
name = "chrono-tz"
|
| 616 |
+
version = "0.8.3"
|
| 617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 618 |
+
checksum = "f1369bc6b9e9a7dfdae2055f6ec151fe9c554a9d23d357c0237cee2e25eaabb7"
|
| 619 |
+
dependencies = [
|
| 620 |
+
"chrono",
|
| 621 |
+
"chrono-tz-build",
|
| 622 |
+
"phf",
|
| 623 |
+
]
|
| 624 |
+
|
| 625 |
+
[[package]]
|
| 626 |
+
name = "chrono-tz-build"
|
| 627 |
+
version = "0.2.0"
|
| 628 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 629 |
+
checksum = "e2f5ebdc942f57ed96d560a6d1a459bae5851102a25d5bf89dc04ae453e31ecf"
|
| 630 |
+
dependencies = [
|
| 631 |
+
"parse-zoneinfo",
|
| 632 |
+
"phf",
|
| 633 |
+
"phf_codegen",
|
| 634 |
+
]
|
| 635 |
+
|
| 636 |
+
[[package]]
|
| 637 |
+
name = "clap"
|
| 638 |
+
version = "2.34.0"
|
| 639 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 640 |
+
checksum = "a0610544180c38b88101fecf2dd634b174a62eef6946f84dfc6a7127512b381c"
|
| 641 |
+
dependencies = [
|
| 642 |
+
"ansi_term",
|
| 643 |
+
"atty",
|
| 644 |
+
"bitflags 1.3.2",
|
| 645 |
+
"strsim",
|
| 646 |
+
"textwrap",
|
| 647 |
+
"unicode-width",
|
| 648 |
+
"vec_map",
|
| 649 |
+
]
|
| 650 |
+
|
| 651 |
+
[[package]]
|
| 652 |
+
name = "comfy-table"
|
| 653 |
+
version = "6.2.0"
|
| 654 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 655 |
+
checksum = "7e959d788268e3bf9d35ace83e81b124190378e4c91c9067524675e33394b8ba"
|
| 656 |
+
dependencies = [
|
| 657 |
+
"crossterm",
|
| 658 |
+
"strum 0.24.1",
|
| 659 |
+
"strum_macros 0.24.3",
|
| 660 |
+
"unicode-width",
|
| 661 |
+
]
|
| 662 |
+
|
| 663 |
+
[[package]]
|
| 664 |
+
name = "comfy-table"
|
| 665 |
+
version = "7.0.1"
|
| 666 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 667 |
+
checksum = "9ab77dbd8adecaf3f0db40581631b995f312a8a5ae3aa9993188bb8f23d83a5b"
|
| 668 |
+
dependencies = [
|
| 669 |
+
"strum 0.24.1",
|
| 670 |
+
"strum_macros 0.24.3",
|
| 671 |
+
"unicode-width",
|
| 672 |
+
]
|
| 673 |
+
|
| 674 |
+
[[package]]
|
| 675 |
+
name = "const-random"
|
| 676 |
+
version = "0.1.15"
|
| 677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 678 |
+
checksum = "368a7a772ead6ce7e1de82bfb04c485f3db8ec744f72925af5735e29a22cc18e"
|
| 679 |
+
dependencies = [
|
| 680 |
+
"const-random-macro",
|
| 681 |
+
"proc-macro-hack",
|
| 682 |
+
]
|
| 683 |
+
|
| 684 |
+
[[package]]
|
| 685 |
+
name = "const-random-macro"
|
| 686 |
+
version = "0.1.15"
|
| 687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 688 |
+
checksum = "9d7d6ab3c3a2282db210df5f02c4dab6e0a7057af0fb7ebd4070f30fe05c0ddb"
|
| 689 |
+
dependencies = [
|
| 690 |
+
"getrandom",
|
| 691 |
+
"once_cell",
|
| 692 |
+
"proc-macro-hack",
|
| 693 |
+
"tiny-keccak",
|
| 694 |
+
]
|
| 695 |
+
|
| 696 |
+
[[package]]
|
| 697 |
+
name = "constant_time_eq"
|
| 698 |
+
version = "0.3.0"
|
| 699 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 700 |
+
checksum = "f7144d30dcf0fafbce74250a3963025d8d52177934239851c917d29f1df280c2"
|
| 701 |
+
|
| 702 |
+
[[package]]
|
| 703 |
+
name = "core-foundation-sys"
|
| 704 |
+
version = "0.8.4"
|
| 705 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 706 |
+
checksum = "e496a50fda8aacccc86d7529e2c1e0892dbd0f898a6b5645b5561b89c3210efa"
|
| 707 |
+
|
| 708 |
+
[[package]]
|
| 709 |
+
name = "core2"
|
| 710 |
+
version = "0.4.0"
|
| 711 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 712 |
+
checksum = "b49ba7ef1ad6107f8824dbe97de947cbaac53c44e7f9756a1fba0d37c1eec505"
|
| 713 |
+
dependencies = [
|
| 714 |
+
"memchr",
|
| 715 |
+
]
|
| 716 |
+
|
| 717 |
+
[[package]]
|
| 718 |
+
name = "cpufeatures"
|
| 719 |
+
version = "0.2.9"
|
| 720 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 721 |
+
checksum = "a17b76ff3a4162b0b27f354a0c87015ddad39d35f9c0c36607a3bdd175dde1f1"
|
| 722 |
+
dependencies = [
|
| 723 |
+
"libc",
|
| 724 |
+
]
|
| 725 |
+
|
| 726 |
+
[[package]]
|
| 727 |
+
name = "crc32fast"
|
| 728 |
+
version = "1.3.2"
|
| 729 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 730 |
+
checksum = "b540bd8bc810d3885c6ea91e2018302f68baba2129ab3e88f32389ee9370880d"
|
| 731 |
+
dependencies = [
|
| 732 |
+
"cfg-if",
|
| 733 |
+
]
|
| 734 |
+
|
| 735 |
+
[[package]]
|
| 736 |
+
name = "crossterm"
|
| 737 |
+
version = "0.26.1"
|
| 738 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 739 |
+
checksum = "a84cda67535339806297f1b331d6dd6320470d2a0fe65381e79ee9e156dd3d13"
|
| 740 |
+
dependencies = [
|
| 741 |
+
"bitflags 1.3.2",
|
| 742 |
+
"crossterm_winapi",
|
| 743 |
+
"libc",
|
| 744 |
+
"mio",
|
| 745 |
+
"parking_lot",
|
| 746 |
+
"signal-hook",
|
| 747 |
+
"signal-hook-mio",
|
| 748 |
+
"winapi",
|
| 749 |
+
]
|
| 750 |
+
|
| 751 |
+
[[package]]
|
| 752 |
+
name = "crossterm_winapi"
|
| 753 |
+
version = "0.9.1"
|
| 754 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 755 |
+
checksum = "acdd7c62a3665c7f6830a51635d9ac9b23ed385797f70a83bb8bafe9c572ab2b"
|
| 756 |
+
dependencies = [
|
| 757 |
+
"winapi",
|
| 758 |
+
]
|
| 759 |
+
|
| 760 |
+
[[package]]
|
| 761 |
+
name = "crunchy"
|
| 762 |
+
version = "0.2.2"
|
| 763 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 764 |
+
checksum = "7a81dae078cea95a014a339291cec439d2f232ebe854a9d672b796c6afafa9b7"
|
| 765 |
+
|
| 766 |
+
[[package]]
|
| 767 |
+
name = "crypto-common"
|
| 768 |
+
version = "0.1.6"
|
| 769 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 770 |
+
checksum = "1bfb12502f3fc46cca1bb51ac28df9d618d813cdc3d2f25b9fe775a34af26bb3"
|
| 771 |
+
dependencies = [
|
| 772 |
+
"generic-array",
|
| 773 |
+
"typenum",
|
| 774 |
+
]
|
| 775 |
+
|
| 776 |
+
[[package]]
|
| 777 |
+
name = "csv"
|
| 778 |
+
version = "1.2.2"
|
| 779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 780 |
+
checksum = "626ae34994d3d8d668f4269922248239db4ae42d538b14c398b74a52208e8086"
|
| 781 |
+
dependencies = [
|
| 782 |
+
"csv-core",
|
| 783 |
+
"itoa",
|
| 784 |
+
"ryu",
|
| 785 |
+
"serde",
|
| 786 |
+
]
|
| 787 |
+
|
| 788 |
+
[[package]]
|
| 789 |
+
name = "csv-core"
|
| 790 |
+
version = "0.1.10"
|
| 791 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 792 |
+
checksum = "2b2466559f260f48ad25fe6317b3c8dac77b5bdb5763ac7d9d6103530663bc90"
|
| 793 |
+
dependencies = [
|
| 794 |
+
"memchr",
|
| 795 |
+
]
|
| 796 |
+
|
| 797 |
+
[[package]]
|
| 798 |
+
name = "dary_heap"
|
| 799 |
+
version = "0.3.6"
|
| 800 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 801 |
+
checksum = "7762d17f1241643615821a8455a0b2c3e803784b058693d990b11f2dce25a0ca"
|
| 802 |
+
|
| 803 |
+
[[package]]
|
| 804 |
+
name = "dashmap"
|
| 805 |
+
version = "5.5.0"
|
| 806 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 807 |
+
checksum = "6943ae99c34386c84a470c499d3414f66502a41340aa895406e0d2e4a207b91d"
|
| 808 |
+
dependencies = [
|
| 809 |
+
"cfg-if",
|
| 810 |
+
"hashbrown 0.14.0",
|
| 811 |
+
"lock_api",
|
| 812 |
+
"once_cell",
|
| 813 |
+
"parking_lot_core",
|
| 814 |
+
]
|
| 815 |
+
|
| 816 |
+
[[package]]
|
| 817 |
+
name = "datafusion"
|
| 818 |
+
version = "35.0.0"
|
| 819 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 820 |
+
checksum = "4328f5467f76d890fe3f924362dbc3a838c6a733f762b32d87f9e0b7bef5fb49"
|
| 821 |
+
dependencies = [
|
| 822 |
+
"ahash",
|
| 823 |
+
"apache-avro",
|
| 824 |
+
"arrow",
|
| 825 |
+
"arrow-array",
|
| 826 |
+
"arrow-ipc",
|
| 827 |
+
"arrow-schema",
|
| 828 |
+
"async-compression",
|
| 829 |
+
"async-trait",
|
| 830 |
+
"bytes",
|
| 831 |
+
"bzip2",
|
| 832 |
+
"chrono",
|
| 833 |
+
"dashmap",
|
| 834 |
+
"datafusion-common",
|
| 835 |
+
"datafusion-execution",
|
| 836 |
+
"datafusion-expr",
|
| 837 |
+
"datafusion-optimizer",
|
| 838 |
+
"datafusion-physical-expr",
|
| 839 |
+
"datafusion-physical-plan",
|
| 840 |
+
"datafusion-sql",
|
| 841 |
+
"flate2",
|
| 842 |
+
"futures",
|
| 843 |
+
"glob",
|
| 844 |
+
"half",
|
| 845 |
+
"hashbrown 0.14.0",
|
| 846 |
+
"indexmap 2.0.0",
|
| 847 |
+
"itertools",
|
| 848 |
+
"log",
|
| 849 |
+
"num-traits",
|
| 850 |
+
"num_cpus",
|
| 851 |
+
"object_store",
|
| 852 |
+
"parking_lot",
|
| 853 |
+
"parquet",
|
| 854 |
+
"pin-project-lite",
|
| 855 |
+
"rand",
|
| 856 |
+
"sqlparser",
|
| 857 |
+
"tempfile",
|
| 858 |
+
"tokio",
|
| 859 |
+
"tokio-util",
|
| 860 |
+
"url",
|
| 861 |
+
"uuid",
|
| 862 |
+
"xz2",
|
| 863 |
+
"zstd 0.13.0",
|
| 864 |
+
]
|
| 865 |
+
|
| 866 |
+
[[package]]
|
| 867 |
+
name = "datafusion-common"
|
| 868 |
+
version = "35.0.0"
|
| 869 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 870 |
+
checksum = "d29a7752143b446db4a2cccd9a6517293c6b97e8c39e520ca43ccd07135a4f7e"
|
| 871 |
+
dependencies = [
|
| 872 |
+
"ahash",
|
| 873 |
+
"apache-avro",
|
| 874 |
+
"arrow",
|
| 875 |
+
"arrow-array",
|
| 876 |
+
"arrow-buffer",
|
| 877 |
+
"arrow-schema",
|
| 878 |
+
"chrono",
|
| 879 |
+
"half",
|
| 880 |
+
"libc",
|
| 881 |
+
"num_cpus",
|
| 882 |
+
"object_store",
|
| 883 |
+
"parquet",
|
| 884 |
+
"sqlparser",
|
| 885 |
+
]
|
| 886 |
+
|
| 887 |
+
[[package]]
|
| 888 |
+
name = "datafusion-execution"
|
| 889 |
+
version = "35.0.0"
|
| 890 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 891 |
+
checksum = "2d447650af16e138c31237f53ddaef6dd4f92f0e2d3f2f35d190e16c214ca496"
|
| 892 |
+
dependencies = [
|
| 893 |
+
"arrow",
|
| 894 |
+
"chrono",
|
| 895 |
+
"dashmap",
|
| 896 |
+
"datafusion-common",
|
| 897 |
+
"datafusion-expr",
|
| 898 |
+
"futures",
|
| 899 |
+
"hashbrown 0.14.0",
|
| 900 |
+
"log",
|
| 901 |
+
"object_store",
|
| 902 |
+
"parking_lot",
|
| 903 |
+
"rand",
|
| 904 |
+
"tempfile",
|
| 905 |
+
"url",
|
| 906 |
+
]
|
| 907 |
+
|
| 908 |
+
[[package]]
|
| 909 |
+
name = "datafusion-expr"
|
| 910 |
+
version = "35.0.0"
|
| 911 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 912 |
+
checksum = "d8d19598e48a498850fb79f97a9719b1f95e7deb64a7a06f93f313e8fa1d524b"
|
| 913 |
+
dependencies = [
|
| 914 |
+
"ahash",
|
| 915 |
+
"arrow",
|
| 916 |
+
"arrow-array",
|
| 917 |
+
"datafusion-common",
|
| 918 |
+
"paste",
|
| 919 |
+
"sqlparser",
|
| 920 |
+
"strum 0.25.0",
|
| 921 |
+
"strum_macros 0.25.3",
|
| 922 |
+
]
|
| 923 |
+
|
| 924 |
+
[[package]]
|
| 925 |
+
name = "datafusion-optimizer"
|
| 926 |
+
version = "35.0.0"
|
| 927 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 928 |
+
checksum = "8b7feb0391f1fc75575acb95b74bfd276903dc37a5409fcebe160bc7ddff2010"
|
| 929 |
+
dependencies = [
|
| 930 |
+
"arrow",
|
| 931 |
+
"async-trait",
|
| 932 |
+
"chrono",
|
| 933 |
+
"datafusion-common",
|
| 934 |
+
"datafusion-expr",
|
| 935 |
+
"datafusion-physical-expr",
|
| 936 |
+
"hashbrown 0.14.0",
|
| 937 |
+
"itertools",
|
| 938 |
+
"log",
|
| 939 |
+
"regex-syntax 0.8.2",
|
| 940 |
+
]
|
| 941 |
+
|
| 942 |
+
[[package]]
|
| 943 |
+
name = "datafusion-physical-expr"
|
| 944 |
+
version = "35.0.0"
|
| 945 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 946 |
+
checksum = "e911bca609c89a54e8f014777449d8290327414d3e10c57a3e3c2122e38878d0"
|
| 947 |
+
dependencies = [
|
| 948 |
+
"ahash",
|
| 949 |
+
"arrow",
|
| 950 |
+
"arrow-array",
|
| 951 |
+
"arrow-buffer",
|
| 952 |
+
"arrow-ord",
|
| 953 |
+
"arrow-schema",
|
| 954 |
+
"base64",
|
| 955 |
+
"blake2",
|
| 956 |
+
"blake3",
|
| 957 |
+
"chrono",
|
| 958 |
+
"datafusion-common",
|
| 959 |
+
"datafusion-expr",
|
| 960 |
+
"half",
|
| 961 |
+
"hashbrown 0.14.0",
|
| 962 |
+
"hex",
|
| 963 |
+
"indexmap 2.0.0",
|
| 964 |
+
"itertools",
|
| 965 |
+
"log",
|
| 966 |
+
"md-5",
|
| 967 |
+
"paste",
|
| 968 |
+
"petgraph",
|
| 969 |
+
"rand",
|
| 970 |
+
"regex",
|
| 971 |
+
"sha2",
|
| 972 |
+
"unicode-segmentation",
|
| 973 |
+
"uuid",
|
| 974 |
+
]
|
| 975 |
+
|
| 976 |
+
[[package]]
|
| 977 |
+
name = "datafusion-physical-plan"
|
| 978 |
+
version = "35.0.0"
|
| 979 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 980 |
+
checksum = "e96b546b8a02e9c2ab35ac6420d511f12a4701950c1eb2e568c122b4fefb0be3"
|
| 981 |
+
dependencies = [
|
| 982 |
+
"ahash",
|
| 983 |
+
"arrow",
|
| 984 |
+
"arrow-array",
|
| 985 |
+
"arrow-buffer",
|
| 986 |
+
"arrow-schema",
|
| 987 |
+
"async-trait",
|
| 988 |
+
"chrono",
|
| 989 |
+
"datafusion-common",
|
| 990 |
+
"datafusion-execution",
|
| 991 |
+
"datafusion-expr",
|
| 992 |
+
"datafusion-physical-expr",
|
| 993 |
+
"futures",
|
| 994 |
+
"half",
|
| 995 |
+
"hashbrown 0.14.0",
|
| 996 |
+
"indexmap 2.0.0",
|
| 997 |
+
"itertools",
|
| 998 |
+
"log",
|
| 999 |
+
"once_cell",
|
| 1000 |
+
"parking_lot",
|
| 1001 |
+
"pin-project-lite",
|
| 1002 |
+
"rand",
|
| 1003 |
+
"tokio",
|
| 1004 |
+
"uuid",
|
| 1005 |
+
]
|
| 1006 |
+
|
| 1007 |
+
[[package]]
|
| 1008 |
+
name = "datafusion-sql"
|
| 1009 |
+
version = "35.0.0"
|
| 1010 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1011 |
+
checksum = "2d18d36f260bbbd63aafdb55339213a23d540d3419810575850ef0a798a6b768"
|
| 1012 |
+
dependencies = [
|
| 1013 |
+
"arrow",
|
| 1014 |
+
"arrow-schema",
|
| 1015 |
+
"datafusion-common",
|
| 1016 |
+
"datafusion-expr",
|
| 1017 |
+
"log",
|
| 1018 |
+
"sqlparser",
|
| 1019 |
+
]
|
| 1020 |
+
|
| 1021 |
+
[[package]]
|
| 1022 |
+
name = "digest"
|
| 1023 |
+
version = "0.10.7"
|
| 1024 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1025 |
+
checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
|
| 1026 |
+
dependencies = [
|
| 1027 |
+
"block-buffer",
|
| 1028 |
+
"crypto-common",
|
| 1029 |
+
"subtle",
|
| 1030 |
+
]
|
| 1031 |
+
|
| 1032 |
+
[[package]]
|
| 1033 |
+
name = "doc-comment"
|
| 1034 |
+
version = "0.3.3"
|
| 1035 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1036 |
+
checksum = "fea41bba32d969b513997752735605054bc0dfa92b4c56bf1189f2e174be7a10"
|
| 1037 |
+
|
| 1038 |
+
[[package]]
|
| 1039 |
+
name = "either"
|
| 1040 |
+
version = "1.9.0"
|
| 1041 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1042 |
+
checksum = "a26ae43d7bcc3b814de94796a5e736d4029efb0ee900c12e2d54c993ad1a1e07"
|
| 1043 |
+
|
| 1044 |
+
[[package]]
|
| 1045 |
+
name = "equivalent"
|
| 1046 |
+
version = "1.0.1"
|
| 1047 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1048 |
+
checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5"
|
| 1049 |
+
|
| 1050 |
+
[[package]]
|
| 1051 |
+
name = "errno"
|
| 1052 |
+
version = "0.3.2"
|
| 1053 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1054 |
+
checksum = "6b30f669a7961ef1631673d2766cc92f52d64f7ef354d4fe0ddfd30ed52f0f4f"
|
| 1055 |
+
dependencies = [
|
| 1056 |
+
"errno-dragonfly",
|
| 1057 |
+
"libc",
|
| 1058 |
+
"windows-sys",
|
| 1059 |
+
]
|
| 1060 |
+
|
| 1061 |
+
[[package]]
|
| 1062 |
+
name = "errno-dragonfly"
|
| 1063 |
+
version = "0.1.2"
|
| 1064 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1065 |
+
checksum = "aa68f1b12764fab894d2755d2518754e71b4fd80ecfb822714a1206c2aab39bf"
|
| 1066 |
+
dependencies = [
|
| 1067 |
+
"cc",
|
| 1068 |
+
"libc",
|
| 1069 |
+
]
|
| 1070 |
+
|
| 1071 |
+
[[package]]
|
| 1072 |
+
name = "fastrand"
|
| 1073 |
+
version = "2.0.0"
|
| 1074 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1075 |
+
checksum = "6999dc1837253364c2ebb0704ba97994bd874e8f195d665c50b7548f6ea92764"
|
| 1076 |
+
|
| 1077 |
+
[[package]]
|
| 1078 |
+
name = "fixedbitset"
|
| 1079 |
+
version = "0.4.2"
|
| 1080 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1081 |
+
checksum = "0ce7134b9999ecaf8bcd65542e436736ef32ddca1b3e06094cb6ec5755203b80"
|
| 1082 |
+
|
| 1083 |
+
[[package]]
|
| 1084 |
+
name = "flatbuffers"
|
| 1085 |
+
version = "23.5.26"
|
| 1086 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1087 |
+
checksum = "4dac53e22462d78c16d64a1cd22371b54cc3fe94aa15e7886a2fa6e5d1ab8640"
|
| 1088 |
+
dependencies = [
|
| 1089 |
+
"bitflags 1.3.2",
|
| 1090 |
+
"rustc_version",
|
| 1091 |
+
]
|
| 1092 |
+
|
| 1093 |
+
[[package]]
|
| 1094 |
+
name = "flate2"
|
| 1095 |
+
version = "1.0.26"
|
| 1096 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1097 |
+
checksum = "3b9429470923de8e8cbd4d2dc513535400b4b3fef0319fb5c4e1f520a7bef743"
|
| 1098 |
+
dependencies = [
|
| 1099 |
+
"crc32fast",
|
| 1100 |
+
"miniz_oxide",
|
| 1101 |
+
]
|
| 1102 |
+
|
| 1103 |
+
[[package]]
|
| 1104 |
+
name = "form_urlencoded"
|
| 1105 |
+
version = "1.2.0"
|
| 1106 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1107 |
+
checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652"
|
| 1108 |
+
dependencies = [
|
| 1109 |
+
"percent-encoding",
|
| 1110 |
+
]
|
| 1111 |
+
|
| 1112 |
+
[[package]]
|
| 1113 |
+
name = "futures"
|
| 1114 |
+
version = "0.3.28"
|
| 1115 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1116 |
+
checksum = "23342abe12aba583913b2e62f22225ff9c950774065e4bfb61a19cd9770fec40"
|
| 1117 |
+
dependencies = [
|
| 1118 |
+
"futures-channel",
|
| 1119 |
+
"futures-core",
|
| 1120 |
+
"futures-executor",
|
| 1121 |
+
"futures-io",
|
| 1122 |
+
"futures-sink",
|
| 1123 |
+
"futures-task",
|
| 1124 |
+
"futures-util",
|
| 1125 |
+
]
|
| 1126 |
+
|
| 1127 |
+
[[package]]
|
| 1128 |
+
name = "futures-channel"
|
| 1129 |
+
version = "0.3.28"
|
| 1130 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1131 |
+
checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2"
|
| 1132 |
+
dependencies = [
|
| 1133 |
+
"futures-core",
|
| 1134 |
+
"futures-sink",
|
| 1135 |
+
]
|
| 1136 |
+
|
| 1137 |
+
[[package]]
|
| 1138 |
+
name = "futures-core"
|
| 1139 |
+
version = "0.3.28"
|
| 1140 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1141 |
+
checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c"
|
| 1142 |
+
|
| 1143 |
+
[[package]]
|
| 1144 |
+
name = "futures-executor"
|
| 1145 |
+
version = "0.3.28"
|
| 1146 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1147 |
+
checksum = "ccecee823288125bd88b4d7f565c9e58e41858e47ab72e8ea2d64e93624386e0"
|
| 1148 |
+
dependencies = [
|
| 1149 |
+
"futures-core",
|
| 1150 |
+
"futures-task",
|
| 1151 |
+
"futures-util",
|
| 1152 |
+
]
|
| 1153 |
+
|
| 1154 |
+
[[package]]
|
| 1155 |
+
name = "futures-io"
|
| 1156 |
+
version = "0.3.28"
|
| 1157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1158 |
+
checksum = "4fff74096e71ed47f8e023204cfd0aa1289cd54ae5430a9523be060cdb849964"
|
| 1159 |
+
|
| 1160 |
+
[[package]]
|
| 1161 |
+
name = "futures-macro"
|
| 1162 |
+
version = "0.3.28"
|
| 1163 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1164 |
+
checksum = "89ca545a94061b6365f2c7355b4b32bd20df3ff95f02da9329b34ccc3bd6ee72"
|
| 1165 |
+
dependencies = [
|
| 1166 |
+
"proc-macro2",
|
| 1167 |
+
"quote",
|
| 1168 |
+
"syn 2.0.28",
|
| 1169 |
+
]
|
| 1170 |
+
|
| 1171 |
+
[[package]]
|
| 1172 |
+
name = "futures-sink"
|
| 1173 |
+
version = "0.3.28"
|
| 1174 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1175 |
+
checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e"
|
| 1176 |
+
|
| 1177 |
+
[[package]]
|
| 1178 |
+
name = "futures-task"
|
| 1179 |
+
version = "0.3.28"
|
| 1180 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1181 |
+
checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65"
|
| 1182 |
+
|
| 1183 |
+
[[package]]
|
| 1184 |
+
name = "futures-util"
|
| 1185 |
+
version = "0.3.28"
|
| 1186 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1187 |
+
checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533"
|
| 1188 |
+
dependencies = [
|
| 1189 |
+
"futures-channel",
|
| 1190 |
+
"futures-core",
|
| 1191 |
+
"futures-io",
|
| 1192 |
+
"futures-macro",
|
| 1193 |
+
"futures-sink",
|
| 1194 |
+
"futures-task",
|
| 1195 |
+
"memchr",
|
| 1196 |
+
"pin-project-lite",
|
| 1197 |
+
"pin-utils",
|
| 1198 |
+
"slab",
|
| 1199 |
+
]
|
| 1200 |
+
|
| 1201 |
+
[[package]]
|
| 1202 |
+
name = "generic-array"
|
| 1203 |
+
version = "0.14.7"
|
| 1204 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1205 |
+
checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
|
| 1206 |
+
dependencies = [
|
| 1207 |
+
"typenum",
|
| 1208 |
+
"version_check",
|
| 1209 |
+
]
|
| 1210 |
+
|
| 1211 |
+
[[package]]
|
| 1212 |
+
name = "getrandom"
|
| 1213 |
+
version = "0.2.10"
|
| 1214 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1215 |
+
checksum = "be4136b2a15dd319360be1c07d9933517ccf0be8f16bf62a3bee4f0d618df427"
|
| 1216 |
+
dependencies = [
|
| 1217 |
+
"cfg-if",
|
| 1218 |
+
"libc",
|
| 1219 |
+
"wasi",
|
| 1220 |
+
]
|
| 1221 |
+
|
| 1222 |
+
[[package]]
|
| 1223 |
+
name = "gimli"
|
| 1224 |
+
version = "0.27.3"
|
| 1225 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1226 |
+
checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e"
|
| 1227 |
+
|
| 1228 |
+
[[package]]
|
| 1229 |
+
name = "glob"
|
| 1230 |
+
version = "0.3.1"
|
| 1231 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1232 |
+
checksum = "d2fabcfbdc87f4758337ca535fb41a6d701b65693ce38287d856d1674551ec9b"
|
| 1233 |
+
|
| 1234 |
+
[[package]]
|
| 1235 |
+
name = "half"
|
| 1236 |
+
version = "2.3.1"
|
| 1237 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1238 |
+
checksum = "bc52e53916c08643f1b56ec082790d1e86a32e58dc5268f897f313fbae7b4872"
|
| 1239 |
+
dependencies = [
|
| 1240 |
+
"cfg-if",
|
| 1241 |
+
"crunchy",
|
| 1242 |
+
"num-traits",
|
| 1243 |
+
]
|
| 1244 |
+
|
| 1245 |
+
[[package]]
|
| 1246 |
+
name = "hashbrown"
|
| 1247 |
+
version = "0.12.3"
|
| 1248 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1249 |
+
checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888"
|
| 1250 |
+
|
| 1251 |
+
[[package]]
|
| 1252 |
+
name = "hashbrown"
|
| 1253 |
+
version = "0.13.2"
|
| 1254 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1255 |
+
checksum = "43a3c133739dddd0d2990f9a4bdf8eb4b21ef50e4851ca85ab661199821d510e"
|
| 1256 |
+
dependencies = [
|
| 1257 |
+
"ahash",
|
| 1258 |
+
]
|
| 1259 |
+
|
| 1260 |
+
[[package]]
|
| 1261 |
+
name = "hashbrown"
|
| 1262 |
+
version = "0.14.0"
|
| 1263 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1264 |
+
checksum = "2c6201b9ff9fd90a5a3bac2e56a830d0caa509576f0e503818ee82c181b3437a"
|
| 1265 |
+
dependencies = [
|
| 1266 |
+
"ahash",
|
| 1267 |
+
"allocator-api2",
|
| 1268 |
+
]
|
| 1269 |
+
|
| 1270 |
+
[[package]]
|
| 1271 |
+
name = "heck"
|
| 1272 |
+
version = "0.3.3"
|
| 1273 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1274 |
+
checksum = "6d621efb26863f0e9924c6ac577e8275e5e6b77455db64ffa6c65c904e9e132c"
|
| 1275 |
+
dependencies = [
|
| 1276 |
+
"unicode-segmentation",
|
| 1277 |
+
]
|
| 1278 |
+
|
| 1279 |
+
[[package]]
|
| 1280 |
+
name = "heck"
|
| 1281 |
+
version = "0.4.1"
|
| 1282 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1283 |
+
checksum = "95505c38b4572b2d910cecb0281560f54b440a19336cbbcb27bf6ce6adc6f5a8"
|
| 1284 |
+
|
| 1285 |
+
[[package]]
|
| 1286 |
+
name = "hermit-abi"
|
| 1287 |
+
version = "0.1.19"
|
| 1288 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1289 |
+
checksum = "62b467343b94ba476dcb2500d242dadbb39557df889310ac77c5d99100aaac33"
|
| 1290 |
+
dependencies = [
|
| 1291 |
+
"libc",
|
| 1292 |
+
]
|
| 1293 |
+
|
| 1294 |
+
[[package]]
|
| 1295 |
+
name = "hermit-abi"
|
| 1296 |
+
version = "0.3.2"
|
| 1297 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1298 |
+
checksum = "443144c8cdadd93ebf52ddb4056d257f5b52c04d3c804e657d19eb73fc33668b"
|
| 1299 |
+
|
| 1300 |
+
[[package]]
|
| 1301 |
+
name = "hex"
|
| 1302 |
+
version = "0.4.3"
|
| 1303 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1304 |
+
checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
|
| 1305 |
+
|
| 1306 |
+
[[package]]
|
| 1307 |
+
name = "humantime"
|
| 1308 |
+
version = "2.1.0"
|
| 1309 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1310 |
+
checksum = "9a3a5bfb195931eeb336b2a7b4d761daec841b97f947d34394601737a7bba5e4"
|
| 1311 |
+
|
| 1312 |
+
[[package]]
|
| 1313 |
+
name = "iana-time-zone"
|
| 1314 |
+
version = "0.1.57"
|
| 1315 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1316 |
+
checksum = "2fad5b825842d2b38bd206f3e81d6957625fd7f0a361e345c30e01a0ae2dd613"
|
| 1317 |
+
dependencies = [
|
| 1318 |
+
"android_system_properties",
|
| 1319 |
+
"core-foundation-sys",
|
| 1320 |
+
"iana-time-zone-haiku",
|
| 1321 |
+
"js-sys",
|
| 1322 |
+
"wasm-bindgen",
|
| 1323 |
+
"windows",
|
| 1324 |
+
]
|
| 1325 |
+
|
| 1326 |
+
[[package]]
|
| 1327 |
+
name = "iana-time-zone-haiku"
|
| 1328 |
+
version = "0.1.2"
|
| 1329 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1330 |
+
checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
|
| 1331 |
+
dependencies = [
|
| 1332 |
+
"cc",
|
| 1333 |
+
]
|
| 1334 |
+
|
| 1335 |
+
[[package]]
|
| 1336 |
+
name = "idna"
|
| 1337 |
+
version = "0.4.0"
|
| 1338 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1339 |
+
checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c"
|
| 1340 |
+
dependencies = [
|
| 1341 |
+
"unicode-bidi",
|
| 1342 |
+
"unicode-normalization",
|
| 1343 |
+
]
|
| 1344 |
+
|
| 1345 |
+
[[package]]
|
| 1346 |
+
name = "indexmap"
|
| 1347 |
+
version = "1.9.3"
|
| 1348 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1349 |
+
checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99"
|
| 1350 |
+
dependencies = [
|
| 1351 |
+
"autocfg",
|
| 1352 |
+
"hashbrown 0.12.3",
|
| 1353 |
+
]
|
| 1354 |
+
|
| 1355 |
+
[[package]]
|
| 1356 |
+
name = "indexmap"
|
| 1357 |
+
version = "2.0.0"
|
| 1358 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1359 |
+
checksum = "d5477fe2230a79769d8dc68e0eabf5437907c0457a5614a9e8dddb67f65eb65d"
|
| 1360 |
+
dependencies = [
|
| 1361 |
+
"equivalent",
|
| 1362 |
+
"hashbrown 0.14.0",
|
| 1363 |
+
]
|
| 1364 |
+
|
| 1365 |
+
[[package]]
|
| 1366 |
+
name = "integer-encoding"
|
| 1367 |
+
version = "3.0.4"
|
| 1368 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1369 |
+
checksum = "8bb03732005da905c88227371639bf1ad885cc712789c011c31c5fb3ab3ccf02"
|
| 1370 |
+
|
| 1371 |
+
[[package]]
|
| 1372 |
+
name = "itertools"
|
| 1373 |
+
version = "0.12.1"
|
| 1374 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1375 |
+
checksum = "ba291022dbbd398a455acf126c1e341954079855bc60dfdda641363bd6922569"
|
| 1376 |
+
dependencies = [
|
| 1377 |
+
"either",
|
| 1378 |
+
]
|
| 1379 |
+
|
| 1380 |
+
[[package]]
|
| 1381 |
+
name = "itoa"
|
| 1382 |
+
version = "1.0.9"
|
| 1383 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1384 |
+
checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38"
|
| 1385 |
+
|
| 1386 |
+
[[package]]
|
| 1387 |
+
name = "jobserver"
|
| 1388 |
+
version = "0.1.26"
|
| 1389 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1390 |
+
checksum = "936cfd212a0155903bcbc060e316fb6cc7cbf2e1907329391ebadc1fe0ce77c2"
|
| 1391 |
+
dependencies = [
|
| 1392 |
+
"libc",
|
| 1393 |
+
]
|
| 1394 |
+
|
| 1395 |
+
[[package]]
|
| 1396 |
+
name = "js-sys"
|
| 1397 |
+
version = "0.3.64"
|
| 1398 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1399 |
+
checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a"
|
| 1400 |
+
dependencies = [
|
| 1401 |
+
"wasm-bindgen",
|
| 1402 |
+
]
|
| 1403 |
+
|
| 1404 |
+
[[package]]
|
| 1405 |
+
name = "lazy_static"
|
| 1406 |
+
version = "1.4.0"
|
| 1407 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1408 |
+
checksum = "e2abad23fbc42b3700f2f279844dc832adb2b2eb069b2df918f455c4e18cc646"
|
| 1409 |
+
|
| 1410 |
+
[[package]]
|
| 1411 |
+
name = "lexical-core"
|
| 1412 |
+
version = "0.8.5"
|
| 1413 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1414 |
+
checksum = "2cde5de06e8d4c2faabc400238f9ae1c74d5412d03a7bd067645ccbc47070e46"
|
| 1415 |
+
dependencies = [
|
| 1416 |
+
"lexical-parse-float",
|
| 1417 |
+
"lexical-parse-integer",
|
| 1418 |
+
"lexical-util",
|
| 1419 |
+
"lexical-write-float",
|
| 1420 |
+
"lexical-write-integer",
|
| 1421 |
+
]
|
| 1422 |
+
|
| 1423 |
+
[[package]]
|
| 1424 |
+
name = "lexical-parse-float"
|
| 1425 |
+
version = "0.8.5"
|
| 1426 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1427 |
+
checksum = "683b3a5ebd0130b8fb52ba0bdc718cc56815b6a097e28ae5a6997d0ad17dc05f"
|
| 1428 |
+
dependencies = [
|
| 1429 |
+
"lexical-parse-integer",
|
| 1430 |
+
"lexical-util",
|
| 1431 |
+
"static_assertions",
|
| 1432 |
+
]
|
| 1433 |
+
|
| 1434 |
+
[[package]]
|
| 1435 |
+
name = "lexical-parse-integer"
|
| 1436 |
+
version = "0.8.6"
|
| 1437 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1438 |
+
checksum = "6d0994485ed0c312f6d965766754ea177d07f9c00c9b82a5ee62ed5b47945ee9"
|
| 1439 |
+
dependencies = [
|
| 1440 |
+
"lexical-util",
|
| 1441 |
+
"static_assertions",
|
| 1442 |
+
]
|
| 1443 |
+
|
| 1444 |
+
[[package]]
|
| 1445 |
+
name = "lexical-util"
|
| 1446 |
+
version = "0.8.5"
|
| 1447 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1448 |
+
checksum = "5255b9ff16ff898710eb9eb63cb39248ea8a5bb036bea8085b1a767ff6c4e3fc"
|
| 1449 |
+
dependencies = [
|
| 1450 |
+
"static_assertions",
|
| 1451 |
+
]
|
| 1452 |
+
|
| 1453 |
+
[[package]]
|
| 1454 |
+
name = "lexical-write-float"
|
| 1455 |
+
version = "0.8.5"
|
| 1456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1457 |
+
checksum = "accabaa1c4581f05a3923d1b4cfd124c329352288b7b9da09e766b0668116862"
|
| 1458 |
+
dependencies = [
|
| 1459 |
+
"lexical-util",
|
| 1460 |
+
"lexical-write-integer",
|
| 1461 |
+
"static_assertions",
|
| 1462 |
+
]
|
| 1463 |
+
|
| 1464 |
+
[[package]]
|
| 1465 |
+
name = "lexical-write-integer"
|
| 1466 |
+
version = "0.8.5"
|
| 1467 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1468 |
+
checksum = "e1b6f3d1f4422866b68192d62f77bc5c700bee84f3069f2469d7bc8c77852446"
|
| 1469 |
+
dependencies = [
|
| 1470 |
+
"lexical-util",
|
| 1471 |
+
"static_assertions",
|
| 1472 |
+
]
|
| 1473 |
+
|
| 1474 |
+
[[package]]
|
| 1475 |
+
name = "libc"
|
| 1476 |
+
version = "0.2.147"
|
| 1477 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1478 |
+
checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3"
|
| 1479 |
+
|
| 1480 |
+
[[package]]
|
| 1481 |
+
name = "libflate"
|
| 1482 |
+
version = "2.0.0"
|
| 1483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1484 |
+
checksum = "9f7d5654ae1795afc7ff76f4365c2c8791b0feb18e8996a96adad8ffd7c3b2bf"
|
| 1485 |
+
dependencies = [
|
| 1486 |
+
"adler32",
|
| 1487 |
+
"core2",
|
| 1488 |
+
"crc32fast",
|
| 1489 |
+
"dary_heap",
|
| 1490 |
+
"libflate_lz77",
|
| 1491 |
+
]
|
| 1492 |
+
|
| 1493 |
+
[[package]]
|
| 1494 |
+
name = "libflate_lz77"
|
| 1495 |
+
version = "2.0.0"
|
| 1496 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1497 |
+
checksum = "be5f52fb8c451576ec6b79d3f4deb327398bc05bbdbd99021a6e77a4c855d524"
|
| 1498 |
+
dependencies = [
|
| 1499 |
+
"core2",
|
| 1500 |
+
"hashbrown 0.13.2",
|
| 1501 |
+
"rle-decode-fast",
|
| 1502 |
+
]
|
| 1503 |
+
|
| 1504 |
+
[[package]]
|
| 1505 |
+
name = "libm"
|
| 1506 |
+
version = "0.2.7"
|
| 1507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1508 |
+
checksum = "f7012b1bbb0719e1097c47611d3898568c546d597c2e74d66f6087edd5233ff4"
|
| 1509 |
+
|
| 1510 |
+
[[package]]
|
| 1511 |
+
name = "linux-raw-sys"
|
| 1512 |
+
version = "0.4.5"
|
| 1513 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1514 |
+
checksum = "57bcfdad1b858c2db7c38303a6d2ad4dfaf5eb53dfeb0910128b2c26d6158503"
|
| 1515 |
+
|
| 1516 |
+
[[package]]
|
| 1517 |
+
name = "lock_api"
|
| 1518 |
+
version = "0.4.10"
|
| 1519 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1520 |
+
checksum = "c1cc9717a20b1bb222f333e6a92fd32f7d8a18ddc5a3191a11af45dcbf4dcd16"
|
| 1521 |
+
dependencies = [
|
| 1522 |
+
"autocfg",
|
| 1523 |
+
"scopeguard",
|
| 1524 |
+
]
|
| 1525 |
+
|
| 1526 |
+
[[package]]
|
| 1527 |
+
name = "log"
|
| 1528 |
+
version = "0.4.20"
|
| 1529 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1530 |
+
checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f"
|
| 1531 |
+
|
| 1532 |
+
[[package]]
|
| 1533 |
+
name = "lz4_flex"
|
| 1534 |
+
version = "0.11.1"
|
| 1535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1536 |
+
checksum = "3ea9b256699eda7b0387ffbc776dd625e28bde3918446381781245b7a50349d8"
|
| 1537 |
+
dependencies = [
|
| 1538 |
+
"twox-hash",
|
| 1539 |
+
]
|
| 1540 |
+
|
| 1541 |
+
[[package]]
|
| 1542 |
+
name = "lzma-sys"
|
| 1543 |
+
version = "0.1.20"
|
| 1544 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1545 |
+
checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
|
| 1546 |
+
dependencies = [
|
| 1547 |
+
"cc",
|
| 1548 |
+
"libc",
|
| 1549 |
+
"pkg-config",
|
| 1550 |
+
]
|
| 1551 |
+
|
| 1552 |
+
[[package]]
|
| 1553 |
+
name = "md-5"
|
| 1554 |
+
version = "0.10.5"
|
| 1555 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1556 |
+
checksum = "6365506850d44bff6e2fbcb5176cf63650e48bd45ef2fe2665ae1570e0f4b9ca"
|
| 1557 |
+
dependencies = [
|
| 1558 |
+
"digest",
|
| 1559 |
+
]
|
| 1560 |
+
|
| 1561 |
+
[[package]]
|
| 1562 |
+
name = "memchr"
|
| 1563 |
+
version = "2.5.0"
|
| 1564 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1565 |
+
checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d"
|
| 1566 |
+
|
| 1567 |
+
[[package]]
|
| 1568 |
+
name = "miniz_oxide"
|
| 1569 |
+
version = "0.7.1"
|
| 1570 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1571 |
+
checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7"
|
| 1572 |
+
dependencies = [
|
| 1573 |
+
"adler",
|
| 1574 |
+
]
|
| 1575 |
+
|
| 1576 |
+
[[package]]
|
| 1577 |
+
name = "mio"
|
| 1578 |
+
version = "0.8.8"
|
| 1579 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1580 |
+
checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2"
|
| 1581 |
+
dependencies = [
|
| 1582 |
+
"libc",
|
| 1583 |
+
"log",
|
| 1584 |
+
"wasi",
|
| 1585 |
+
"windows-sys",
|
| 1586 |
+
]
|
| 1587 |
+
|
| 1588 |
+
[[package]]
|
| 1589 |
+
name = "num"
|
| 1590 |
+
version = "0.4.1"
|
| 1591 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1592 |
+
checksum = "b05180d69e3da0e530ba2a1dae5110317e49e3b7f3d41be227dc5f92e49ee7af"
|
| 1593 |
+
dependencies = [
|
| 1594 |
+
"num-bigint",
|
| 1595 |
+
"num-complex",
|
| 1596 |
+
"num-integer",
|
| 1597 |
+
"num-iter",
|
| 1598 |
+
"num-rational",
|
| 1599 |
+
"num-traits",
|
| 1600 |
+
]
|
| 1601 |
+
|
| 1602 |
+
[[package]]
|
| 1603 |
+
name = "num-bigint"
|
| 1604 |
+
version = "0.4.4"
|
| 1605 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1606 |
+
checksum = "608e7659b5c3d7cba262d894801b9ec9d00de989e8a82bd4bef91d08da45cdc0"
|
| 1607 |
+
dependencies = [
|
| 1608 |
+
"autocfg",
|
| 1609 |
+
"num-integer",
|
| 1610 |
+
"num-traits",
|
| 1611 |
+
]
|
| 1612 |
+
|
| 1613 |
+
[[package]]
|
| 1614 |
+
name = "num-complex"
|
| 1615 |
+
version = "0.4.3"
|
| 1616 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1617 |
+
checksum = "02e0d21255c828d6f128a1e41534206671e8c3ea0c62f32291e808dc82cff17d"
|
| 1618 |
+
dependencies = [
|
| 1619 |
+
"num-traits",
|
| 1620 |
+
]
|
| 1621 |
+
|
| 1622 |
+
[[package]]
|
| 1623 |
+
name = "num-integer"
|
| 1624 |
+
version = "0.1.45"
|
| 1625 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1626 |
+
checksum = "225d3389fb3509a24c93f5c29eb6bde2586b98d9f016636dff58d7c6f7569cd9"
|
| 1627 |
+
dependencies = [
|
| 1628 |
+
"autocfg",
|
| 1629 |
+
"num-traits",
|
| 1630 |
+
]
|
| 1631 |
+
|
| 1632 |
+
[[package]]
|
| 1633 |
+
name = "num-iter"
|
| 1634 |
+
version = "0.1.43"
|
| 1635 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1636 |
+
checksum = "7d03e6c028c5dc5cac6e2dec0efda81fc887605bb3d884578bb6d6bf7514e252"
|
| 1637 |
+
dependencies = [
|
| 1638 |
+
"autocfg",
|
| 1639 |
+
"num-integer",
|
| 1640 |
+
"num-traits",
|
| 1641 |
+
]
|
| 1642 |
+
|
| 1643 |
+
[[package]]
|
| 1644 |
+
name = "num-rational"
|
| 1645 |
+
version = "0.4.1"
|
| 1646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1647 |
+
checksum = "0638a1c9d0a3c0914158145bc76cff373a75a627e6ecbfb71cbe6f453a5a19b0"
|
| 1648 |
+
dependencies = [
|
| 1649 |
+
"autocfg",
|
| 1650 |
+
"num-bigint",
|
| 1651 |
+
"num-integer",
|
| 1652 |
+
"num-traits",
|
| 1653 |
+
]
|
| 1654 |
+
|
| 1655 |
+
[[package]]
|
| 1656 |
+
name = "num-traits"
|
| 1657 |
+
version = "0.2.16"
|
| 1658 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1659 |
+
checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2"
|
| 1660 |
+
dependencies = [
|
| 1661 |
+
"autocfg",
|
| 1662 |
+
"libm",
|
| 1663 |
+
]
|
| 1664 |
+
|
| 1665 |
+
[[package]]
|
| 1666 |
+
name = "num_cpus"
|
| 1667 |
+
version = "1.16.0"
|
| 1668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1669 |
+
checksum = "4161fcb6d602d4d2081af7c3a45852d875a03dd337a6bfdd6e06407b61342a43"
|
| 1670 |
+
dependencies = [
|
| 1671 |
+
"hermit-abi 0.3.2",
|
| 1672 |
+
"libc",
|
| 1673 |
+
]
|
| 1674 |
+
|
| 1675 |
+
[[package]]
|
| 1676 |
+
name = "object"
|
| 1677 |
+
version = "0.31.1"
|
| 1678 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1679 |
+
checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1"
|
| 1680 |
+
dependencies = [
|
| 1681 |
+
"memchr",
|
| 1682 |
+
]
|
| 1683 |
+
|
| 1684 |
+
[[package]]
|
| 1685 |
+
name = "object_store"
|
| 1686 |
+
version = "0.9.0"
|
| 1687 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1688 |
+
checksum = "d139f545f64630e2e3688fd9f81c470888ab01edeb72d13b4e86c566f1130000"
|
| 1689 |
+
dependencies = [
|
| 1690 |
+
"async-trait",
|
| 1691 |
+
"bytes",
|
| 1692 |
+
"chrono",
|
| 1693 |
+
"futures",
|
| 1694 |
+
"humantime",
|
| 1695 |
+
"itertools",
|
| 1696 |
+
"parking_lot",
|
| 1697 |
+
"percent-encoding",
|
| 1698 |
+
"snafu",
|
| 1699 |
+
"tokio",
|
| 1700 |
+
"tracing",
|
| 1701 |
+
"url",
|
| 1702 |
+
"walkdir",
|
| 1703 |
+
]
|
| 1704 |
+
|
| 1705 |
+
[[package]]
|
| 1706 |
+
name = "once_cell"
|
| 1707 |
+
version = "1.18.0"
|
| 1708 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1709 |
+
checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d"
|
| 1710 |
+
|
| 1711 |
+
[[package]]
|
| 1712 |
+
name = "ordered-float"
|
| 1713 |
+
version = "2.10.0"
|
| 1714 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1715 |
+
checksum = "7940cf2ca942593318d07fcf2596cdca60a85c9e7fab408a5e21a4f9dcd40d87"
|
| 1716 |
+
dependencies = [
|
| 1717 |
+
"num-traits",
|
| 1718 |
+
]
|
| 1719 |
+
|
| 1720 |
+
[[package]]
|
| 1721 |
+
name = "parking_lot"
|
| 1722 |
+
version = "0.12.1"
|
| 1723 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1724 |
+
checksum = "3742b2c103b9f06bc9fff0a37ff4912935851bee6d36f3c02bcc755bcfec228f"
|
| 1725 |
+
dependencies = [
|
| 1726 |
+
"lock_api",
|
| 1727 |
+
"parking_lot_core",
|
| 1728 |
+
]
|
| 1729 |
+
|
| 1730 |
+
[[package]]
|
| 1731 |
+
name = "parking_lot_core"
|
| 1732 |
+
version = "0.9.8"
|
| 1733 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1734 |
+
checksum = "93f00c865fe7cabf650081affecd3871070f26767e7b2070a3ffae14c654b447"
|
| 1735 |
+
dependencies = [
|
| 1736 |
+
"cfg-if",
|
| 1737 |
+
"libc",
|
| 1738 |
+
"redox_syscall",
|
| 1739 |
+
"smallvec",
|
| 1740 |
+
"windows-targets",
|
| 1741 |
+
]
|
| 1742 |
+
|
| 1743 |
+
[[package]]
|
| 1744 |
+
name = "parquet"
|
| 1745 |
+
version = "50.0.0"
|
| 1746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1747 |
+
checksum = "547b92ebf0c1177e3892f44c8f79757ee62e678d564a9834189725f2c5b7a750"
|
| 1748 |
+
dependencies = [
|
| 1749 |
+
"ahash",
|
| 1750 |
+
"arrow-array",
|
| 1751 |
+
"arrow-buffer",
|
| 1752 |
+
"arrow-cast",
|
| 1753 |
+
"arrow-data",
|
| 1754 |
+
"arrow-ipc",
|
| 1755 |
+
"arrow-schema",
|
| 1756 |
+
"arrow-select",
|
| 1757 |
+
"base64",
|
| 1758 |
+
"brotli",
|
| 1759 |
+
"bytes",
|
| 1760 |
+
"chrono",
|
| 1761 |
+
"flate2",
|
| 1762 |
+
"futures",
|
| 1763 |
+
"half",
|
| 1764 |
+
"hashbrown 0.14.0",
|
| 1765 |
+
"lz4_flex",
|
| 1766 |
+
"num",
|
| 1767 |
+
"num-bigint",
|
| 1768 |
+
"object_store",
|
| 1769 |
+
"paste",
|
| 1770 |
+
"seq-macro",
|
| 1771 |
+
"snap",
|
| 1772 |
+
"thrift",
|
| 1773 |
+
"tokio",
|
| 1774 |
+
"twox-hash",
|
| 1775 |
+
"zstd 0.13.0",
|
| 1776 |
+
]
|
| 1777 |
+
|
| 1778 |
+
[[package]]
|
| 1779 |
+
name = "parse-zoneinfo"
|
| 1780 |
+
version = "0.3.0"
|
| 1781 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1782 |
+
checksum = "c705f256449c60da65e11ff6626e0c16a0a0b96aaa348de61376b249bc340f41"
|
| 1783 |
+
dependencies = [
|
| 1784 |
+
"regex",
|
| 1785 |
+
]
|
| 1786 |
+
|
| 1787 |
+
[[package]]
|
| 1788 |
+
name = "paste"
|
| 1789 |
+
version = "1.0.14"
|
| 1790 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1791 |
+
checksum = "de3145af08024dea9fa9914f381a17b8fc6034dfb00f3a84013f7ff43f29ed4c"
|
| 1792 |
+
|
| 1793 |
+
[[package]]
|
| 1794 |
+
name = "percent-encoding"
|
| 1795 |
+
version = "2.3.0"
|
| 1796 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1797 |
+
checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94"
|
| 1798 |
+
|
| 1799 |
+
[[package]]
|
| 1800 |
+
name = "petgraph"
|
| 1801 |
+
version = "0.6.3"
|
| 1802 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1803 |
+
checksum = "4dd7d28ee937e54fe3080c91faa1c3a46c06de6252988a7f4592ba2310ef22a4"
|
| 1804 |
+
dependencies = [
|
| 1805 |
+
"fixedbitset",
|
| 1806 |
+
"indexmap 1.9.3",
|
| 1807 |
+
]
|
| 1808 |
+
|
| 1809 |
+
[[package]]
|
| 1810 |
+
name = "phf"
|
| 1811 |
+
version = "0.11.2"
|
| 1812 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1813 |
+
checksum = "ade2d8b8f33c7333b51bcf0428d37e217e9f32192ae4772156f65063b8ce03dc"
|
| 1814 |
+
dependencies = [
|
| 1815 |
+
"phf_shared",
|
| 1816 |
+
]
|
| 1817 |
+
|
| 1818 |
+
[[package]]
|
| 1819 |
+
name = "phf_codegen"
|
| 1820 |
+
version = "0.11.2"
|
| 1821 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1822 |
+
checksum = "e8d39688d359e6b34654d328e262234662d16cc0f60ec8dcbe5e718709342a5a"
|
| 1823 |
+
dependencies = [
|
| 1824 |
+
"phf_generator",
|
| 1825 |
+
"phf_shared",
|
| 1826 |
+
]
|
| 1827 |
+
|
| 1828 |
+
[[package]]
|
| 1829 |
+
name = "phf_generator"
|
| 1830 |
+
version = "0.11.2"
|
| 1831 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1832 |
+
checksum = "48e4cc64c2ad9ebe670cb8fd69dd50ae301650392e81c05f9bfcb2d5bdbc24b0"
|
| 1833 |
+
dependencies = [
|
| 1834 |
+
"phf_shared",
|
| 1835 |
+
"rand",
|
| 1836 |
+
]
|
| 1837 |
+
|
| 1838 |
+
[[package]]
|
| 1839 |
+
name = "phf_shared"
|
| 1840 |
+
version = "0.11.2"
|
| 1841 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1842 |
+
checksum = "90fcb95eef784c2ac79119d1dd819e162b5da872ce6f3c3abe1e8ca1c082f72b"
|
| 1843 |
+
dependencies = [
|
| 1844 |
+
"siphasher",
|
| 1845 |
+
]
|
| 1846 |
+
|
| 1847 |
+
[[package]]
|
| 1848 |
+
name = "pin-project-lite"
|
| 1849 |
+
version = "0.2.11"
|
| 1850 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1851 |
+
checksum = "2c516611246607d0c04186886dbb3a754368ef82c79e9827a802c6d836dd111c"
|
| 1852 |
+
|
| 1853 |
+
[[package]]
|
| 1854 |
+
name = "pin-utils"
|
| 1855 |
+
version = "0.1.0"
|
| 1856 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1857 |
+
checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184"
|
| 1858 |
+
|
| 1859 |
+
[[package]]
|
| 1860 |
+
name = "pkg-config"
|
| 1861 |
+
version = "0.3.27"
|
| 1862 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1863 |
+
checksum = "26072860ba924cbfa98ea39c8c19b4dd6a4a25423dbdf219c1eca91aa0cf6964"
|
| 1864 |
+
|
| 1865 |
+
[[package]]
|
| 1866 |
+
name = "ppv-lite86"
|
| 1867 |
+
version = "0.2.17"
|
| 1868 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1869 |
+
checksum = "5b40af805b3121feab8a3c29f04d8ad262fa8e0561883e7653e024ae4479e6de"
|
| 1870 |
+
|
| 1871 |
+
[[package]]
|
| 1872 |
+
name = "proc-macro-error"
|
| 1873 |
+
version = "1.0.4"
|
| 1874 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1875 |
+
checksum = "da25490ff9892aab3fcf7c36f08cfb902dd3e71ca0f9f9517bea02a73a5ce38c"
|
| 1876 |
+
dependencies = [
|
| 1877 |
+
"proc-macro-error-attr",
|
| 1878 |
+
"proc-macro2",
|
| 1879 |
+
"quote",
|
| 1880 |
+
"syn 1.0.109",
|
| 1881 |
+
"version_check",
|
| 1882 |
+
]
|
| 1883 |
+
|
| 1884 |
+
[[package]]
|
| 1885 |
+
name = "proc-macro-error-attr"
|
| 1886 |
+
version = "1.0.4"
|
| 1887 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1888 |
+
checksum = "a1be40180e52ecc98ad80b184934baf3d0d29f979574e439af5a55274b35f869"
|
| 1889 |
+
dependencies = [
|
| 1890 |
+
"proc-macro2",
|
| 1891 |
+
"quote",
|
| 1892 |
+
"version_check",
|
| 1893 |
+
]
|
| 1894 |
+
|
| 1895 |
+
[[package]]
|
| 1896 |
+
name = "proc-macro-hack"
|
| 1897 |
+
version = "0.5.20+deprecated"
|
| 1898 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1899 |
+
checksum = "dc375e1527247fe1a97d8b7156678dfe7c1af2fc075c9a4db3690ecd2a148068"
|
| 1900 |
+
|
| 1901 |
+
[[package]]
|
| 1902 |
+
name = "proc-macro2"
|
| 1903 |
+
version = "1.0.66"
|
| 1904 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1905 |
+
checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9"
|
| 1906 |
+
dependencies = [
|
| 1907 |
+
"unicode-ident",
|
| 1908 |
+
]
|
| 1909 |
+
|
| 1910 |
+
[[package]]
|
| 1911 |
+
name = "quad-rand"
|
| 1912 |
+
version = "0.2.1"
|
| 1913 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1914 |
+
checksum = "658fa1faf7a4cc5f057c9ee5ef560f717ad9d8dc66d975267f709624d6e1ab88"
|
| 1915 |
+
|
| 1916 |
+
[[package]]
|
| 1917 |
+
name = "quote"
|
| 1918 |
+
version = "1.0.32"
|
| 1919 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1920 |
+
checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965"
|
| 1921 |
+
dependencies = [
|
| 1922 |
+
"proc-macro2",
|
| 1923 |
+
]
|
| 1924 |
+
|
| 1925 |
+
[[package]]
|
| 1926 |
+
name = "rand"
|
| 1927 |
+
version = "0.8.5"
|
| 1928 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1929 |
+
checksum = "34af8d1a0e25924bc5b7c43c079c942339d8f0a8b57c39049bef581b46327404"
|
| 1930 |
+
dependencies = [
|
| 1931 |
+
"libc",
|
| 1932 |
+
"rand_chacha",
|
| 1933 |
+
"rand_core",
|
| 1934 |
+
]
|
| 1935 |
+
|
| 1936 |
+
[[package]]
|
| 1937 |
+
name = "rand_chacha"
|
| 1938 |
+
version = "0.3.1"
|
| 1939 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1940 |
+
checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
|
| 1941 |
+
dependencies = [
|
| 1942 |
+
"ppv-lite86",
|
| 1943 |
+
"rand_core",
|
| 1944 |
+
]
|
| 1945 |
+
|
| 1946 |
+
[[package]]
|
| 1947 |
+
name = "rand_core"
|
| 1948 |
+
version = "0.6.4"
|
| 1949 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1950 |
+
checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
|
| 1951 |
+
dependencies = [
|
| 1952 |
+
"getrandom",
|
| 1953 |
+
]
|
| 1954 |
+
|
| 1955 |
+
[[package]]
|
| 1956 |
+
name = "redox_syscall"
|
| 1957 |
+
version = "0.3.5"
|
| 1958 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1959 |
+
checksum = "567664f262709473930a4bf9e51bf2ebf3348f2e748ccc50dea20646858f8f29"
|
| 1960 |
+
dependencies = [
|
| 1961 |
+
"bitflags 1.3.2",
|
| 1962 |
+
]
|
| 1963 |
+
|
| 1964 |
+
[[package]]
|
| 1965 |
+
name = "regex"
|
| 1966 |
+
version = "1.9.3"
|
| 1967 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1968 |
+
checksum = "81bc1d4caf89fac26a70747fe603c130093b53c773888797a6329091246d651a"
|
| 1969 |
+
dependencies = [
|
| 1970 |
+
"aho-corasick",
|
| 1971 |
+
"memchr",
|
| 1972 |
+
"regex-automata",
|
| 1973 |
+
"regex-syntax 0.7.4",
|
| 1974 |
+
]
|
| 1975 |
+
|
| 1976 |
+
[[package]]
|
| 1977 |
+
name = "regex-automata"
|
| 1978 |
+
version = "0.3.6"
|
| 1979 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1980 |
+
checksum = "fed1ceff11a1dddaee50c9dc8e4938bd106e9d89ae372f192311e7da498e3b69"
|
| 1981 |
+
dependencies = [
|
| 1982 |
+
"aho-corasick",
|
| 1983 |
+
"memchr",
|
| 1984 |
+
"regex-syntax 0.7.4",
|
| 1985 |
+
]
|
| 1986 |
+
|
| 1987 |
+
[[package]]
|
| 1988 |
+
name = "regex-lite"
|
| 1989 |
+
version = "0.1.5"
|
| 1990 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1991 |
+
checksum = "30b661b2f27137bdbc16f00eda72866a92bb28af1753ffbd56744fb6e2e9cd8e"
|
| 1992 |
+
|
| 1993 |
+
[[package]]
|
| 1994 |
+
name = "regex-syntax"
|
| 1995 |
+
version = "0.7.4"
|
| 1996 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 1997 |
+
checksum = "e5ea92a5b6195c6ef2a0295ea818b312502c6fc94dde986c5553242e18fd4ce2"
|
| 1998 |
+
|
| 1999 |
+
[[package]]
|
| 2000 |
+
name = "regex-syntax"
|
| 2001 |
+
version = "0.8.2"
|
| 2002 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2003 |
+
checksum = "c08c74e62047bb2de4ff487b251e4a92e24f48745648451635cec7d591162d9f"
|
| 2004 |
+
|
| 2005 |
+
[[package]]
|
| 2006 |
+
name = "rle-decode-fast"
|
| 2007 |
+
version = "1.0.3"
|
| 2008 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2009 |
+
checksum = "3582f63211428f83597b51b2ddb88e2a91a9d52d12831f9d08f5e624e8977422"
|
| 2010 |
+
|
| 2011 |
+
[[package]]
|
| 2012 |
+
name = "rustc-demangle"
|
| 2013 |
+
version = "0.1.23"
|
| 2014 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2015 |
+
checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76"
|
| 2016 |
+
|
| 2017 |
+
[[package]]
|
| 2018 |
+
name = "rustc_version"
|
| 2019 |
+
version = "0.4.0"
|
| 2020 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2021 |
+
checksum = "bfa0f585226d2e68097d4f95d113b15b83a82e819ab25717ec0590d9584ef366"
|
| 2022 |
+
dependencies = [
|
| 2023 |
+
"semver",
|
| 2024 |
+
]
|
| 2025 |
+
|
| 2026 |
+
[[package]]
|
| 2027 |
+
name = "rustix"
|
| 2028 |
+
version = "0.38.7"
|
| 2029 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2030 |
+
checksum = "172891ebdceb05aa0005f533a6cbfca599ddd7d966f6f5d4d9b2e70478e70399"
|
| 2031 |
+
dependencies = [
|
| 2032 |
+
"bitflags 2.3.3",
|
| 2033 |
+
"errno",
|
| 2034 |
+
"libc",
|
| 2035 |
+
"linux-raw-sys",
|
| 2036 |
+
"windows-sys",
|
| 2037 |
+
]
|
| 2038 |
+
|
| 2039 |
+
[[package]]
|
| 2040 |
+
name = "rustversion"
|
| 2041 |
+
version = "1.0.14"
|
| 2042 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2043 |
+
checksum = "7ffc183a10b4478d04cbbbfc96d0873219d962dd5accaff2ffbd4ceb7df837f4"
|
| 2044 |
+
|
| 2045 |
+
[[package]]
|
| 2046 |
+
name = "ryu"
|
| 2047 |
+
version = "1.0.15"
|
| 2048 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2049 |
+
checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741"
|
| 2050 |
+
|
| 2051 |
+
[[package]]
|
| 2052 |
+
name = "same-file"
|
| 2053 |
+
version = "1.0.6"
|
| 2054 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2055 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 2056 |
+
dependencies = [
|
| 2057 |
+
"winapi-util",
|
| 2058 |
+
]
|
| 2059 |
+
|
| 2060 |
+
[[package]]
|
| 2061 |
+
name = "scopeguard"
|
| 2062 |
+
version = "1.2.0"
|
| 2063 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2064 |
+
checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
|
| 2065 |
+
|
| 2066 |
+
[[package]]
|
| 2067 |
+
name = "semver"
|
| 2068 |
+
version = "1.0.18"
|
| 2069 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2070 |
+
checksum = "b0293b4b29daaf487284529cc2f5675b8e57c61f70167ba415a463651fd6a918"
|
| 2071 |
+
|
| 2072 |
+
[[package]]
|
| 2073 |
+
name = "seq-macro"
|
| 2074 |
+
version = "0.3.5"
|
| 2075 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2076 |
+
checksum = "a3f0bf26fd526d2a95683cd0f87bf103b8539e2ca1ef48ce002d67aad59aa0b4"
|
| 2077 |
+
|
| 2078 |
+
[[package]]
|
| 2079 |
+
name = "serde"
|
| 2080 |
+
version = "1.0.192"
|
| 2081 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2082 |
+
checksum = "bca2a08484b285dcb282d0f67b26cadc0df8b19f8c12502c13d966bf9482f001"
|
| 2083 |
+
dependencies = [
|
| 2084 |
+
"serde_derive",
|
| 2085 |
+
]
|
| 2086 |
+
|
| 2087 |
+
[[package]]
|
| 2088 |
+
name = "serde_derive"
|
| 2089 |
+
version = "1.0.192"
|
| 2090 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2091 |
+
checksum = "d6c7207fbec9faa48073f3e3074cbe553af6ea512d7c21ba46e434e70ea9fbc1"
|
| 2092 |
+
dependencies = [
|
| 2093 |
+
"proc-macro2",
|
| 2094 |
+
"quote",
|
| 2095 |
+
"syn 2.0.28",
|
| 2096 |
+
]
|
| 2097 |
+
|
| 2098 |
+
[[package]]
|
| 2099 |
+
name = "serde_json"
|
| 2100 |
+
version = "1.0.108"
|
| 2101 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2102 |
+
checksum = "3d1c7e3eac408d115102c4c24ad393e0821bb3a5df4d506a80f85f7a742a526b"
|
| 2103 |
+
dependencies = [
|
| 2104 |
+
"itoa",
|
| 2105 |
+
"ryu",
|
| 2106 |
+
"serde",
|
| 2107 |
+
]
|
| 2108 |
+
|
| 2109 |
+
[[package]]
|
| 2110 |
+
name = "sha2"
|
| 2111 |
+
version = "0.10.7"
|
| 2112 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2113 |
+
checksum = "479fb9d862239e610720565ca91403019f2f00410f1864c5aa7479b950a76ed8"
|
| 2114 |
+
dependencies = [
|
| 2115 |
+
"cfg-if",
|
| 2116 |
+
"cpufeatures",
|
| 2117 |
+
"digest",
|
| 2118 |
+
]
|
| 2119 |
+
|
| 2120 |
+
[[package]]
|
| 2121 |
+
name = "signal-hook"
|
| 2122 |
+
version = "0.3.17"
|
| 2123 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2124 |
+
checksum = "8621587d4798caf8eb44879d42e56b9a93ea5dcd315a6487c357130095b62801"
|
| 2125 |
+
dependencies = [
|
| 2126 |
+
"libc",
|
| 2127 |
+
"signal-hook-registry",
|
| 2128 |
+
]
|
| 2129 |
+
|
| 2130 |
+
[[package]]
|
| 2131 |
+
name = "signal-hook-mio"
|
| 2132 |
+
version = "0.2.3"
|
| 2133 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2134 |
+
checksum = "29ad2e15f37ec9a6cc544097b78a1ec90001e9f71b81338ca39f430adaca99af"
|
| 2135 |
+
dependencies = [
|
| 2136 |
+
"libc",
|
| 2137 |
+
"mio",
|
| 2138 |
+
"signal-hook",
|
| 2139 |
+
]
|
| 2140 |
+
|
| 2141 |
+
[[package]]
|
| 2142 |
+
name = "signal-hook-registry"
|
| 2143 |
+
version = "1.4.1"
|
| 2144 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2145 |
+
checksum = "d8229b473baa5980ac72ef434c4415e70c4b5e71b423043adb4ba059f89c99a1"
|
| 2146 |
+
dependencies = [
|
| 2147 |
+
"libc",
|
| 2148 |
+
]
|
| 2149 |
+
|
| 2150 |
+
[[package]]
|
| 2151 |
+
name = "siphasher"
|
| 2152 |
+
version = "0.3.10"
|
| 2153 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2154 |
+
checksum = "7bd3e3206899af3f8b12af284fafc038cc1dc2b41d1b89dd17297221c5d225de"
|
| 2155 |
+
|
| 2156 |
+
[[package]]
|
| 2157 |
+
name = "slab"
|
| 2158 |
+
version = "0.4.8"
|
| 2159 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2160 |
+
checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d"
|
| 2161 |
+
dependencies = [
|
| 2162 |
+
"autocfg",
|
| 2163 |
+
]
|
| 2164 |
+
|
| 2165 |
+
[[package]]
|
| 2166 |
+
name = "smallvec"
|
| 2167 |
+
version = "1.11.0"
|
| 2168 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2169 |
+
checksum = "62bb4feee49fdd9f707ef802e22365a35de4b7b299de4763d44bfea899442ff9"
|
| 2170 |
+
|
| 2171 |
+
[[package]]
|
| 2172 |
+
name = "snafu"
|
| 2173 |
+
version = "0.7.5"
|
| 2174 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2175 |
+
checksum = "e4de37ad025c587a29e8f3f5605c00f70b98715ef90b9061a815b9e59e9042d6"
|
| 2176 |
+
dependencies = [
|
| 2177 |
+
"doc-comment",
|
| 2178 |
+
"snafu-derive",
|
| 2179 |
+
]
|
| 2180 |
+
|
| 2181 |
+
[[package]]
|
| 2182 |
+
name = "snafu-derive"
|
| 2183 |
+
version = "0.7.5"
|
| 2184 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2185 |
+
checksum = "990079665f075b699031e9c08fd3ab99be5029b96f3b78dc0709e8f77e4efebf"
|
| 2186 |
+
dependencies = [
|
| 2187 |
+
"heck 0.4.1",
|
| 2188 |
+
"proc-macro2",
|
| 2189 |
+
"quote",
|
| 2190 |
+
"syn 1.0.109",
|
| 2191 |
+
]
|
| 2192 |
+
|
| 2193 |
+
[[package]]
|
| 2194 |
+
name = "snap"
|
| 2195 |
+
version = "1.1.0"
|
| 2196 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2197 |
+
checksum = "5e9f0ab6ef7eb7353d9119c170a436d1bf248eea575ac42d19d12f4e34130831"
|
| 2198 |
+
|
| 2199 |
+
[[package]]
|
| 2200 |
+
name = "sqlparser"
|
| 2201 |
+
version = "0.41.0"
|
| 2202 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2203 |
+
checksum = "5cc2c25a6c66789625ef164b4c7d2e548d627902280c13710d33da8222169964"
|
| 2204 |
+
dependencies = [
|
| 2205 |
+
"log",
|
| 2206 |
+
"sqlparser_derive",
|
| 2207 |
+
]
|
| 2208 |
+
|
| 2209 |
+
[[package]]
|
| 2210 |
+
name = "sqlparser_derive"
|
| 2211 |
+
version = "0.2.2"
|
| 2212 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2213 |
+
checksum = "01b2e185515564f15375f593fb966b5718bc624ba77fe49fa4616ad619690554"
|
| 2214 |
+
dependencies = [
|
| 2215 |
+
"proc-macro2",
|
| 2216 |
+
"quote",
|
| 2217 |
+
"syn 2.0.28",
|
| 2218 |
+
]
|
| 2219 |
+
|
| 2220 |
+
[[package]]
|
| 2221 |
+
name = "static_assertions"
|
| 2222 |
+
version = "1.1.0"
|
| 2223 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2224 |
+
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
| 2225 |
+
|
| 2226 |
+
[[package]]
|
| 2227 |
+
name = "strsim"
|
| 2228 |
+
version = "0.8.0"
|
| 2229 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2230 |
+
checksum = "8ea5119cdb4c55b55d432abb513a0429384878c15dde60cc77b1c99de1a95a6a"
|
| 2231 |
+
|
| 2232 |
+
[[package]]
|
| 2233 |
+
name = "structopt"
|
| 2234 |
+
version = "0.3.26"
|
| 2235 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2236 |
+
checksum = "0c6b5c64445ba8094a6ab0c3cd2ad323e07171012d9c98b0b15651daf1787a10"
|
| 2237 |
+
dependencies = [
|
| 2238 |
+
"clap",
|
| 2239 |
+
"lazy_static",
|
| 2240 |
+
"structopt-derive",
|
| 2241 |
+
]
|
| 2242 |
+
|
| 2243 |
+
[[package]]
|
| 2244 |
+
name = "structopt-derive"
|
| 2245 |
+
version = "0.4.18"
|
| 2246 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2247 |
+
checksum = "dcb5ae327f9cc13b68763b5749770cb9e048a99bd9dfdfa58d0cf05d5f64afe0"
|
| 2248 |
+
dependencies = [
|
| 2249 |
+
"heck 0.3.3",
|
| 2250 |
+
"proc-macro-error",
|
| 2251 |
+
"proc-macro2",
|
| 2252 |
+
"quote",
|
| 2253 |
+
"syn 1.0.109",
|
| 2254 |
+
]
|
| 2255 |
+
|
| 2256 |
+
[[package]]
|
| 2257 |
+
name = "strum"
|
| 2258 |
+
version = "0.24.1"
|
| 2259 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2260 |
+
checksum = "063e6045c0e62079840579a7e47a355ae92f60eb74daaf156fb1e84ba164e63f"
|
| 2261 |
+
|
| 2262 |
+
[[package]]
|
| 2263 |
+
name = "strum"
|
| 2264 |
+
version = "0.25.0"
|
| 2265 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2266 |
+
checksum = "290d54ea6f91c969195bdbcd7442c8c2a2ba87da8bf60a7ee86a235d4bc1e125"
|
| 2267 |
+
dependencies = [
|
| 2268 |
+
"strum_macros 0.25.3",
|
| 2269 |
+
]
|
| 2270 |
+
|
| 2271 |
+
[[package]]
|
| 2272 |
+
name = "strum_macros"
|
| 2273 |
+
version = "0.24.3"
|
| 2274 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2275 |
+
checksum = "1e385be0d24f186b4ce2f9982191e7101bb737312ad61c1f2f984f34bcf85d59"
|
| 2276 |
+
dependencies = [
|
| 2277 |
+
"heck 0.4.1",
|
| 2278 |
+
"proc-macro2",
|
| 2279 |
+
"quote",
|
| 2280 |
+
"rustversion",
|
| 2281 |
+
"syn 1.0.109",
|
| 2282 |
+
]
|
| 2283 |
+
|
| 2284 |
+
[[package]]
|
| 2285 |
+
name = "strum_macros"
|
| 2286 |
+
version = "0.25.3"
|
| 2287 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2288 |
+
checksum = "23dc1fa9ac9c169a78ba62f0b841814b7abae11bdd047b9c58f893439e309ea0"
|
| 2289 |
+
dependencies = [
|
| 2290 |
+
"heck 0.4.1",
|
| 2291 |
+
"proc-macro2",
|
| 2292 |
+
"quote",
|
| 2293 |
+
"rustversion",
|
| 2294 |
+
"syn 2.0.28",
|
| 2295 |
+
]
|
| 2296 |
+
|
| 2297 |
+
[[package]]
|
| 2298 |
+
name = "subtle"
|
| 2299 |
+
version = "2.5.0"
|
| 2300 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2301 |
+
checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc"
|
| 2302 |
+
|
| 2303 |
+
[[package]]
|
| 2304 |
+
name = "syn"
|
| 2305 |
+
version = "1.0.109"
|
| 2306 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2307 |
+
checksum = "72b64191b275b66ffe2469e8af2c1cfe3bafa67b529ead792a6d0160888b4237"
|
| 2308 |
+
dependencies = [
|
| 2309 |
+
"proc-macro2",
|
| 2310 |
+
"quote",
|
| 2311 |
+
"unicode-ident",
|
| 2312 |
+
]
|
| 2313 |
+
|
| 2314 |
+
[[package]]
|
| 2315 |
+
name = "syn"
|
| 2316 |
+
version = "2.0.28"
|
| 2317 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2318 |
+
checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567"
|
| 2319 |
+
dependencies = [
|
| 2320 |
+
"proc-macro2",
|
| 2321 |
+
"quote",
|
| 2322 |
+
"unicode-ident",
|
| 2323 |
+
]
|
| 2324 |
+
|
| 2325 |
+
[[package]]
|
| 2326 |
+
name = "tempfile"
|
| 2327 |
+
version = "3.7.0"
|
| 2328 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2329 |
+
checksum = "5486094ee78b2e5038a6382ed7645bc084dc2ec433426ca4c3cb61e2007b8998"
|
| 2330 |
+
dependencies = [
|
| 2331 |
+
"cfg-if",
|
| 2332 |
+
"fastrand",
|
| 2333 |
+
"redox_syscall",
|
| 2334 |
+
"rustix",
|
| 2335 |
+
"windows-sys",
|
| 2336 |
+
]
|
| 2337 |
+
|
| 2338 |
+
[[package]]
|
| 2339 |
+
name = "textwrap"
|
| 2340 |
+
version = "0.11.0"
|
| 2341 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2342 |
+
checksum = "d326610f408c7a4eb6f51c37c330e496b08506c9457c9d34287ecc38809fb060"
|
| 2343 |
+
dependencies = [
|
| 2344 |
+
"unicode-width",
|
| 2345 |
+
]
|
| 2346 |
+
|
| 2347 |
+
[[package]]
|
| 2348 |
+
name = "thiserror"
|
| 2349 |
+
version = "1.0.50"
|
| 2350 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2351 |
+
checksum = "f9a7210f5c9a7156bb50aa36aed4c95afb51df0df00713949448cf9e97d382d2"
|
| 2352 |
+
dependencies = [
|
| 2353 |
+
"thiserror-impl",
|
| 2354 |
+
]
|
| 2355 |
+
|
| 2356 |
+
[[package]]
|
| 2357 |
+
name = "thiserror-impl"
|
| 2358 |
+
version = "1.0.50"
|
| 2359 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2360 |
+
checksum = "266b2e40bc00e5a6c09c3584011e08b06f123c00362c92b975ba9843aaaa14b8"
|
| 2361 |
+
dependencies = [
|
| 2362 |
+
"proc-macro2",
|
| 2363 |
+
"quote",
|
| 2364 |
+
"syn 2.0.28",
|
| 2365 |
+
]
|
| 2366 |
+
|
| 2367 |
+
[[package]]
|
| 2368 |
+
name = "thrift"
|
| 2369 |
+
version = "0.17.0"
|
| 2370 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2371 |
+
checksum = "7e54bc85fc7faa8bc175c4bab5b92ba8d9a3ce893d0e9f42cc455c8ab16a9e09"
|
| 2372 |
+
dependencies = [
|
| 2373 |
+
"byteorder",
|
| 2374 |
+
"integer-encoding",
|
| 2375 |
+
"ordered-float",
|
| 2376 |
+
]
|
| 2377 |
+
|
| 2378 |
+
[[package]]
|
| 2379 |
+
name = "tiny-keccak"
|
| 2380 |
+
version = "2.0.2"
|
| 2381 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2382 |
+
checksum = "2c9d3793400a45f954c52e73d068316d76b6f4e36977e3fcebb13a2721e80237"
|
| 2383 |
+
dependencies = [
|
| 2384 |
+
"crunchy",
|
| 2385 |
+
]
|
| 2386 |
+
|
| 2387 |
+
[[package]]
|
| 2388 |
+
name = "tinyvec"
|
| 2389 |
+
version = "1.6.0"
|
| 2390 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2391 |
+
checksum = "87cc5ceb3875bb20c2890005a4e226a4651264a5c75edb2421b52861a0a0cb50"
|
| 2392 |
+
dependencies = [
|
| 2393 |
+
"tinyvec_macros",
|
| 2394 |
+
]
|
| 2395 |
+
|
| 2396 |
+
[[package]]
|
| 2397 |
+
name = "tinyvec_macros"
|
| 2398 |
+
version = "0.1.1"
|
| 2399 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2400 |
+
checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20"
|
| 2401 |
+
|
| 2402 |
+
[[package]]
|
| 2403 |
+
name = "tokio"
|
| 2404 |
+
version = "1.36.0"
|
| 2405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2406 |
+
checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931"
|
| 2407 |
+
dependencies = [
|
| 2408 |
+
"backtrace",
|
| 2409 |
+
"bytes",
|
| 2410 |
+
"num_cpus",
|
| 2411 |
+
"pin-project-lite",
|
| 2412 |
+
"tokio-macros",
|
| 2413 |
+
]
|
| 2414 |
+
|
| 2415 |
+
[[package]]
|
| 2416 |
+
name = "tokio-macros"
|
| 2417 |
+
version = "2.2.0"
|
| 2418 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2419 |
+
checksum = "5b8a1e28f2deaa14e508979454cb3a223b10b938b45af148bc0986de36f1923b"
|
| 2420 |
+
dependencies = [
|
| 2421 |
+
"proc-macro2",
|
| 2422 |
+
"quote",
|
| 2423 |
+
"syn 2.0.28",
|
| 2424 |
+
]
|
| 2425 |
+
|
| 2426 |
+
[[package]]
|
| 2427 |
+
name = "tokio-util"
|
| 2428 |
+
version = "0.7.8"
|
| 2429 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2430 |
+
checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d"
|
| 2431 |
+
dependencies = [
|
| 2432 |
+
"bytes",
|
| 2433 |
+
"futures-core",
|
| 2434 |
+
"futures-sink",
|
| 2435 |
+
"pin-project-lite",
|
| 2436 |
+
"tokio",
|
| 2437 |
+
]
|
| 2438 |
+
|
| 2439 |
+
[[package]]
|
| 2440 |
+
name = "tracing"
|
| 2441 |
+
version = "0.1.37"
|
| 2442 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2443 |
+
checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8"
|
| 2444 |
+
dependencies = [
|
| 2445 |
+
"cfg-if",
|
| 2446 |
+
"pin-project-lite",
|
| 2447 |
+
"tracing-attributes",
|
| 2448 |
+
"tracing-core",
|
| 2449 |
+
]
|
| 2450 |
+
|
| 2451 |
+
[[package]]
|
| 2452 |
+
name = "tracing-attributes"
|
| 2453 |
+
version = "0.1.26"
|
| 2454 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2455 |
+
checksum = "5f4f31f56159e98206da9efd823404b79b6ef3143b4a7ab76e67b1751b25a4ab"
|
| 2456 |
+
dependencies = [
|
| 2457 |
+
"proc-macro2",
|
| 2458 |
+
"quote",
|
| 2459 |
+
"syn 2.0.28",
|
| 2460 |
+
]
|
| 2461 |
+
|
| 2462 |
+
[[package]]
|
| 2463 |
+
name = "tracing-core"
|
| 2464 |
+
version = "0.1.31"
|
| 2465 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2466 |
+
checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a"
|
| 2467 |
+
dependencies = [
|
| 2468 |
+
"once_cell",
|
| 2469 |
+
]
|
| 2470 |
+
|
| 2471 |
+
[[package]]
|
| 2472 |
+
name = "twox-hash"
|
| 2473 |
+
version = "1.6.3"
|
| 2474 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2475 |
+
checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
|
| 2476 |
+
dependencies = [
|
| 2477 |
+
"cfg-if",
|
| 2478 |
+
"static_assertions",
|
| 2479 |
+
]
|
| 2480 |
+
|
| 2481 |
+
[[package]]
|
| 2482 |
+
name = "typed-builder"
|
| 2483 |
+
version = "0.16.2"
|
| 2484 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2485 |
+
checksum = "34085c17941e36627a879208083e25d357243812c30e7d7387c3b954f30ade16"
|
| 2486 |
+
dependencies = [
|
| 2487 |
+
"typed-builder-macro",
|
| 2488 |
+
]
|
| 2489 |
+
|
| 2490 |
+
[[package]]
|
| 2491 |
+
name = "typed-builder-macro"
|
| 2492 |
+
version = "0.16.2"
|
| 2493 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2494 |
+
checksum = "f03ca4cb38206e2bef0700092660bb74d696f808514dae47fa1467cbfe26e96e"
|
| 2495 |
+
dependencies = [
|
| 2496 |
+
"proc-macro2",
|
| 2497 |
+
"quote",
|
| 2498 |
+
"syn 2.0.28",
|
| 2499 |
+
]
|
| 2500 |
+
|
| 2501 |
+
[[package]]
|
| 2502 |
+
name = "typenum"
|
| 2503 |
+
version = "1.16.0"
|
| 2504 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2505 |
+
checksum = "497961ef93d974e23eb6f433eb5fe1b7930b659f06d12dec6fc44a8f554c0bba"
|
| 2506 |
+
|
| 2507 |
+
[[package]]
|
| 2508 |
+
name = "unicode-bidi"
|
| 2509 |
+
version = "0.3.13"
|
| 2510 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2511 |
+
checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460"
|
| 2512 |
+
|
| 2513 |
+
[[package]]
|
| 2514 |
+
name = "unicode-ident"
|
| 2515 |
+
version = "1.0.11"
|
| 2516 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2517 |
+
checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c"
|
| 2518 |
+
|
| 2519 |
+
[[package]]
|
| 2520 |
+
name = "unicode-normalization"
|
| 2521 |
+
version = "0.1.22"
|
| 2522 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2523 |
+
checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921"
|
| 2524 |
+
dependencies = [
|
| 2525 |
+
"tinyvec",
|
| 2526 |
+
]
|
| 2527 |
+
|
| 2528 |
+
[[package]]
|
| 2529 |
+
name = "unicode-segmentation"
|
| 2530 |
+
version = "1.10.1"
|
| 2531 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2532 |
+
checksum = "1dd624098567895118886609431a7c3b8f516e41d30e0643f03d94592a147e36"
|
| 2533 |
+
|
| 2534 |
+
[[package]]
|
| 2535 |
+
name = "unicode-width"
|
| 2536 |
+
version = "0.1.10"
|
| 2537 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2538 |
+
checksum = "c0edd1e5b14653f783770bce4a4dabb4a5108a5370a5f5d8cfe8710c361f6c8b"
|
| 2539 |
+
|
| 2540 |
+
[[package]]
|
| 2541 |
+
name = "url"
|
| 2542 |
+
version = "2.4.0"
|
| 2543 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2544 |
+
checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb"
|
| 2545 |
+
dependencies = [
|
| 2546 |
+
"form_urlencoded",
|
| 2547 |
+
"idna",
|
| 2548 |
+
"percent-encoding",
|
| 2549 |
+
]
|
| 2550 |
+
|
| 2551 |
+
[[package]]
|
| 2552 |
+
name = "uuid"
|
| 2553 |
+
version = "1.4.1"
|
| 2554 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2555 |
+
checksum = "79daa5ed5740825c40b389c5e50312b9c86df53fccd33f281df655642b43869d"
|
| 2556 |
+
dependencies = [
|
| 2557 |
+
"getrandom",
|
| 2558 |
+
"serde",
|
| 2559 |
+
]
|
| 2560 |
+
|
| 2561 |
+
[[package]]
|
| 2562 |
+
name = "vec_map"
|
| 2563 |
+
version = "0.8.2"
|
| 2564 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2565 |
+
checksum = "f1bddf1187be692e79c5ffeab891132dfb0f236ed36a43c7ed39f1165ee20191"
|
| 2566 |
+
|
| 2567 |
+
[[package]]
|
| 2568 |
+
name = "version_check"
|
| 2569 |
+
version = "0.9.4"
|
| 2570 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2571 |
+
checksum = "49874b5167b65d7193b8aba1567f5c7d93d001cafc34600cee003eda787e483f"
|
| 2572 |
+
|
| 2573 |
+
[[package]]
|
| 2574 |
+
name = "walkdir"
|
| 2575 |
+
version = "2.3.3"
|
| 2576 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2577 |
+
checksum = "36df944cda56c7d8d8b7496af378e6b16de9284591917d307c9b4d313c44e698"
|
| 2578 |
+
dependencies = [
|
| 2579 |
+
"same-file",
|
| 2580 |
+
"winapi-util",
|
| 2581 |
+
]
|
| 2582 |
+
|
| 2583 |
+
[[package]]
|
| 2584 |
+
name = "wasi"
|
| 2585 |
+
version = "0.11.0+wasi-snapshot-preview1"
|
| 2586 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2587 |
+
checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423"
|
| 2588 |
+
|
| 2589 |
+
[[package]]
|
| 2590 |
+
name = "wasm-bindgen"
|
| 2591 |
+
version = "0.2.87"
|
| 2592 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2593 |
+
checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342"
|
| 2594 |
+
dependencies = [
|
| 2595 |
+
"cfg-if",
|
| 2596 |
+
"wasm-bindgen-macro",
|
| 2597 |
+
]
|
| 2598 |
+
|
| 2599 |
+
[[package]]
|
| 2600 |
+
name = "wasm-bindgen-backend"
|
| 2601 |
+
version = "0.2.87"
|
| 2602 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2603 |
+
checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd"
|
| 2604 |
+
dependencies = [
|
| 2605 |
+
"bumpalo",
|
| 2606 |
+
"log",
|
| 2607 |
+
"once_cell",
|
| 2608 |
+
"proc-macro2",
|
| 2609 |
+
"quote",
|
| 2610 |
+
"syn 2.0.28",
|
| 2611 |
+
"wasm-bindgen-shared",
|
| 2612 |
+
]
|
| 2613 |
+
|
| 2614 |
+
[[package]]
|
| 2615 |
+
name = "wasm-bindgen-macro"
|
| 2616 |
+
version = "0.2.87"
|
| 2617 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2618 |
+
checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d"
|
| 2619 |
+
dependencies = [
|
| 2620 |
+
"quote",
|
| 2621 |
+
"wasm-bindgen-macro-support",
|
| 2622 |
+
]
|
| 2623 |
+
|
| 2624 |
+
[[package]]
|
| 2625 |
+
name = "wasm-bindgen-macro-support"
|
| 2626 |
+
version = "0.2.87"
|
| 2627 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2628 |
+
checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b"
|
| 2629 |
+
dependencies = [
|
| 2630 |
+
"proc-macro2",
|
| 2631 |
+
"quote",
|
| 2632 |
+
"syn 2.0.28",
|
| 2633 |
+
"wasm-bindgen-backend",
|
| 2634 |
+
"wasm-bindgen-shared",
|
| 2635 |
+
]
|
| 2636 |
+
|
| 2637 |
+
[[package]]
|
| 2638 |
+
name = "wasm-bindgen-shared"
|
| 2639 |
+
version = "0.2.87"
|
| 2640 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2641 |
+
checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1"
|
| 2642 |
+
|
| 2643 |
+
[[package]]
|
| 2644 |
+
name = "winapi"
|
| 2645 |
+
version = "0.3.9"
|
| 2646 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2647 |
+
checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419"
|
| 2648 |
+
dependencies = [
|
| 2649 |
+
"winapi-i686-pc-windows-gnu",
|
| 2650 |
+
"winapi-x86_64-pc-windows-gnu",
|
| 2651 |
+
]
|
| 2652 |
+
|
| 2653 |
+
[[package]]
|
| 2654 |
+
name = "winapi-i686-pc-windows-gnu"
|
| 2655 |
+
version = "0.4.0"
|
| 2656 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2657 |
+
checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6"
|
| 2658 |
+
|
| 2659 |
+
[[package]]
|
| 2660 |
+
name = "winapi-util"
|
| 2661 |
+
version = "0.1.5"
|
| 2662 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2663 |
+
checksum = "70ec6ce85bb158151cae5e5c87f95a8e97d2c0c4b001223f33a334e3ce5de178"
|
| 2664 |
+
dependencies = [
|
| 2665 |
+
"winapi",
|
| 2666 |
+
]
|
| 2667 |
+
|
| 2668 |
+
[[package]]
|
| 2669 |
+
name = "winapi-x86_64-pc-windows-gnu"
|
| 2670 |
+
version = "0.4.0"
|
| 2671 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2672 |
+
checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f"
|
| 2673 |
+
|
| 2674 |
+
[[package]]
|
| 2675 |
+
name = "windows"
|
| 2676 |
+
version = "0.48.0"
|
| 2677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2678 |
+
checksum = "e686886bc078bc1b0b600cac0147aadb815089b6e4da64016cbd754b6342700f"
|
| 2679 |
+
dependencies = [
|
| 2680 |
+
"windows-targets",
|
| 2681 |
+
]
|
| 2682 |
+
|
| 2683 |
+
[[package]]
|
| 2684 |
+
name = "windows-sys"
|
| 2685 |
+
version = "0.48.0"
|
| 2686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2687 |
+
checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
|
| 2688 |
+
dependencies = [
|
| 2689 |
+
"windows-targets",
|
| 2690 |
+
]
|
| 2691 |
+
|
| 2692 |
+
[[package]]
|
| 2693 |
+
name = "windows-targets"
|
| 2694 |
+
version = "0.48.1"
|
| 2695 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2696 |
+
checksum = "05d4b17490f70499f20b9e791dcf6a299785ce8af4d709018206dc5b4953e95f"
|
| 2697 |
+
dependencies = [
|
| 2698 |
+
"windows_aarch64_gnullvm",
|
| 2699 |
+
"windows_aarch64_msvc",
|
| 2700 |
+
"windows_i686_gnu",
|
| 2701 |
+
"windows_i686_msvc",
|
| 2702 |
+
"windows_x86_64_gnu",
|
| 2703 |
+
"windows_x86_64_gnullvm",
|
| 2704 |
+
"windows_x86_64_msvc",
|
| 2705 |
+
]
|
| 2706 |
+
|
| 2707 |
+
[[package]]
|
| 2708 |
+
name = "windows_aarch64_gnullvm"
|
| 2709 |
+
version = "0.48.0"
|
| 2710 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2711 |
+
checksum = "91ae572e1b79dba883e0d315474df7305d12f569b400fcf90581b06062f7e1bc"
|
| 2712 |
+
|
| 2713 |
+
[[package]]
|
| 2714 |
+
name = "windows_aarch64_msvc"
|
| 2715 |
+
version = "0.48.0"
|
| 2716 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2717 |
+
checksum = "b2ef27e0d7bdfcfc7b868b317c1d32c641a6fe4629c171b8928c7b08d98d7cf3"
|
| 2718 |
+
|
| 2719 |
+
[[package]]
|
| 2720 |
+
name = "windows_i686_gnu"
|
| 2721 |
+
version = "0.48.0"
|
| 2722 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2723 |
+
checksum = "622a1962a7db830d6fd0a69683c80a18fda201879f0f447f065a3b7467daa241"
|
| 2724 |
+
|
| 2725 |
+
[[package]]
|
| 2726 |
+
name = "windows_i686_msvc"
|
| 2727 |
+
version = "0.48.0"
|
| 2728 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2729 |
+
checksum = "4542c6e364ce21bf45d69fdd2a8e455fa38d316158cfd43b3ac1c5b1b19f8e00"
|
| 2730 |
+
|
| 2731 |
+
[[package]]
|
| 2732 |
+
name = "windows_x86_64_gnu"
|
| 2733 |
+
version = "0.48.0"
|
| 2734 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2735 |
+
checksum = "ca2b8a661f7628cbd23440e50b05d705db3686f894fc9580820623656af974b1"
|
| 2736 |
+
|
| 2737 |
+
[[package]]
|
| 2738 |
+
name = "windows_x86_64_gnullvm"
|
| 2739 |
+
version = "0.48.0"
|
| 2740 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2741 |
+
checksum = "7896dbc1f41e08872e9d5e8f8baa8fdd2677f29468c4e156210174edc7f7b953"
|
| 2742 |
+
|
| 2743 |
+
[[package]]
|
| 2744 |
+
name = "windows_x86_64_msvc"
|
| 2745 |
+
version = "0.48.0"
|
| 2746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2747 |
+
checksum = "1a515f5799fe4961cb532f983ce2b23082366b898e52ffbce459c86f67c8378a"
|
| 2748 |
+
|
| 2749 |
+
[[package]]
|
| 2750 |
+
name = "xz2"
|
| 2751 |
+
version = "0.1.7"
|
| 2752 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2753 |
+
checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
|
| 2754 |
+
dependencies = [
|
| 2755 |
+
"lzma-sys",
|
| 2756 |
+
]
|
| 2757 |
+
|
| 2758 |
+
[[package]]
|
| 2759 |
+
name = "zstd"
|
| 2760 |
+
version = "0.12.4"
|
| 2761 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2762 |
+
checksum = "1a27595e173641171fc74a1232b7b1c7a7cb6e18222c11e9dfb9888fa424c53c"
|
| 2763 |
+
dependencies = [
|
| 2764 |
+
"zstd-safe 6.0.6",
|
| 2765 |
+
]
|
| 2766 |
+
|
| 2767 |
+
[[package]]
|
| 2768 |
+
name = "zstd"
|
| 2769 |
+
version = "0.13.0"
|
| 2770 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2771 |
+
checksum = "bffb3309596d527cfcba7dfc6ed6052f1d39dfbd7c867aa2e865e4a449c10110"
|
| 2772 |
+
dependencies = [
|
| 2773 |
+
"zstd-safe 7.0.0",
|
| 2774 |
+
]
|
| 2775 |
+
|
| 2776 |
+
[[package]]
|
| 2777 |
+
name = "zstd-safe"
|
| 2778 |
+
version = "6.0.6"
|
| 2779 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2780 |
+
checksum = "ee98ffd0b48ee95e6c5168188e44a54550b1564d9d530ee21d5f0eaed1069581"
|
| 2781 |
+
dependencies = [
|
| 2782 |
+
"libc",
|
| 2783 |
+
"zstd-sys",
|
| 2784 |
+
]
|
| 2785 |
+
|
| 2786 |
+
[[package]]
|
| 2787 |
+
name = "zstd-safe"
|
| 2788 |
+
version = "7.0.0"
|
| 2789 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2790 |
+
checksum = "43747c7422e2924c11144d5229878b98180ef8b06cca4ab5af37afc8a8d8ea3e"
|
| 2791 |
+
dependencies = [
|
| 2792 |
+
"zstd-sys",
|
| 2793 |
+
]
|
| 2794 |
+
|
| 2795 |
+
[[package]]
|
| 2796 |
+
name = "zstd-sys"
|
| 2797 |
+
version = "2.0.8+zstd.1.5.5"
|
| 2798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 2799 |
+
checksum = "5556e6ee25d32df2586c098bbfa278803692a20d0ab9565e049480d52707ec8c"
|
| 2800 |
+
dependencies = [
|
| 2801 |
+
"cc",
|
| 2802 |
+
"libc",
|
| 2803 |
+
"pkg-config",
|
| 2804 |
+
]
|
| 2805 |
+
LOCK
|
| 2806 |
+
|
| 2807 |
+
# ---------------------------------------------------------------------------
|
| 2808 |
+
# Prefetch every dependency into the shared cargo registry cache.
|
| 2809 |
+
# ---------------------------------------------------------------------------
|
| 2810 |
+
cargo fetch --locked --manifest-path "$GEN_DIR/Cargo.toml"
|
| 2811 |
+
|
| 2812 |
+
# ---------------------------------------------------------------------------
|
| 2813 |
+
# Export the variables build.sh relies on. The real repository Cargo.toml and
|
| 2814 |
+
# Cargo.lock resolve to the same package set, so --offline build will succeed
|
| 2815 |
+
# entirely from the cache populated above.
|
| 2816 |
+
# ---------------------------------------------------------------------------
|
| 2817 |
+
export CARGO_NET_OFFLINE=true
|
| 2818 |
+
|
| 2819 |
+
# Cleanup scratch.
|
| 2820 |
+
rm -rf "$GEN_DIR"
|
datafusion-contrib--bdt.5c6730a/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8904e8c92a77bfbdb869294b9bc5cabcc6be00574ce9ceed153ba6ed4b182e0b
|
| 3 |
+
size 66290192
|
datafusion-contrib--bdt.5c6730a/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
|
datafusion-contrib--bdt.5c6730a/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()
|
datafusion-contrib--bdt.5c6730a/tests/programgym_task.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
datafusion-contrib--bdt.5c6730a/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
|