Datasets:
Upload folder using huggingface_hub (part 25)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +83 -0
- leaanthony--clir.a8d9462/environment/executable +3 -0
- leaanthony--clir.a8d9462/environment/programgym-go.tar.gz +3 -0
- leaanthony--clir.a8d9462/environment/workspace.tar.gz +3 -0
- leaanthony--clir.a8d9462/instruction.md +98 -0
- leaanthony--clir.a8d9462/solution/solve.sh +33 -0
- leaanthony--clir.a8d9462/task.toml +69 -0
- leaanthony--clir.a8d9462/tests/Dockerfile +66 -0
- leaanthony--clir.a8d9462/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- leaanthony--clir.a8d9462/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- leaanthony--clir.a8d9462/tests/blobs/tests/generated_module_03.tar.gz +3 -0
- leaanthony--clir.a8d9462/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- leaanthony--clir.a8d9462/tests/download.sh +4 -0
- leaanthony--clir.a8d9462/tests/executable +3 -0
- leaanthony--clir.a8d9462/tests/programgym-go.tar.gz +3 -0
- leaanthony--clir.a8d9462/tests/programgym_evaluator.py +1201 -0
- leaanthony--clir.a8d9462/tests/programgym_task.json +1016 -0
- leaanthony--clir.a8d9462/tests/test.sh +82 -0
- leaanthony--clir.a8d9462/tests/workspace.tar.gz +3 -0
- leandros--metareflect.0208fdd/environment/Dockerfile +57 -0
- leandros--metareflect.0208fdd/environment/download.sh +84 -0
- leandros--metareflect.0208fdd/environment/executable +0 -0
- leandros--metareflect.0208fdd/environment/harbor_prepare_download_env.sh +34 -0
- leandros--metareflect.0208fdd/environment/programgym-gcc13.tar.gz +3 -0
- leandros--metareflect.0208fdd/environment/workspace.tar.gz +3 -0
- leandros--metareflect.0208fdd/instruction.md +98 -0
- leandros--metareflect.0208fdd/solution/solve.sh +33 -0
- leandros--metareflect.0208fdd/task.toml +69 -0
- leandros--metareflect.0208fdd/tests/Dockerfile +65 -0
- leandros--metareflect.0208fdd/tests/blobs/tests/generated_module_01.tar.gz +3 -0
- leandros--metareflect.0208fdd/tests/blobs/tests/generated_module_02.tar.gz +3 -0
- leandros--metareflect.0208fdd/tests/blobs/tests/generated_module_04.tar.gz +3 -0
- leandros--metareflect.0208fdd/tests/download.sh +84 -0
- leandros--metareflect.0208fdd/tests/executable +0 -0
- leandros--metareflect.0208fdd/tests/harbor_prepare_download_env.sh +34 -0
- leandros--metareflect.0208fdd/tests/programgym-gcc13.tar.gz +3 -0
- leandros--metareflect.0208fdd/tests/programgym_evaluator.py +1201 -0
- leandros--metareflect.0208fdd/tests/programgym_task.json +1656 -0
- leandros--metareflect.0208fdd/tests/test.sh +82 -0
- leandros--metareflect.0208fdd/tests/workspace.tar.gz +3 -0
- learning-rust--learning-rust.git/environment/Dockerfile +59 -0
- learning-rust--learning-rust.git/environment/download.sh +978 -0
- learning-rust--learning-rust.git/environment/executable +3 -0
- learning-rust--learning-rust.git/environment/harbor_prepare_download_env.sh +37 -0
- learning-rust--learning-rust.git/environment/workspace.tar.gz +3 -0
- learning-rust--learning-rust.git/instruction.md +98 -0
- learning-rust--learning-rust.git/solution/solve.sh +33 -0
- learning-rust--learning-rust.git/task.toml +69 -0
- learning-rust--learning-rust.git/tests/Dockerfile +68 -0
- learning-rust--learning-rust.git/tests/blobs/tests/generated_module_01.tar.gz +3 -0
.gitattributes
CHANGED
|
@@ -1482,3 +1482,86 @@ lbcb-sci--racon.a2cfcac/environment/executable filter=lfs diff=lfs merge=lfs -te
|
|
| 1482 |
lbcb-sci--racon.a2cfcac/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1483 |
lbcb-sci--raven.2c3d337/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1484 |
lbcb-sci--raven.2c3d337/tests/executable filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1482 |
lbcb-sci--racon.a2cfcac/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1483 |
lbcb-sci--raven.2c3d337/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1484 |
lbcb-sci--raven.2c3d337/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1485 |
+
leaanthony--clir.a8d9462/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1486 |
+
leaanthony--clir.a8d9462/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1487 |
+
learning-rust--learning-rust.git/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1488 |
+
learning-rust--learning-rust.git/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1489 |
+
leereilly--gh-yule-log.0d88837/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1490 |
+
leereilly--gh-yule-log.0d88837/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1491 |
+
leetonidas--demovfuscator.0278f2/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1492 |
+
leetonidas--demovfuscator.0278f2/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1493 |
+
lelouchfr--skill-icons.5401d69/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1494 |
+
lelouchfr--skill-icons.5401d69/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1495 |
+
lemonade-command--lemonade.fb41f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1496 |
+
lemonade-command--lemonade.fb41f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1497 |
+
lgug2z--unsubscan.e64ee6d/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1498 |
+
lgug2z--unsubscan.e64ee6d/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1499 |
+
liamg--gitjacker.437d37a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1500 |
+
liamg--gitjacker.437d37a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1501 |
+
liamg--memit.c06b266/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1502 |
+
liamg--memit.c06b266/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1503 |
+
liamg--siphon.6a6e402/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1504 |
+
liamg--siphon.6a6e402/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1505 |
+
liamg--tml.d3bb484/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1506 |
+
liamg--tml.d3bb484/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1507 |
+
libgeos--geos.2c89410/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1508 |
+
libgeos--geos.2c89410/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1509 |
+
libigl--libigl.cab0371/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1510 |
+
libigl--libigl.cab0371/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1511 |
+
life4--textdistance.rs.0f92088/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1512 |
+
life4--textdistance.rs.0f92088/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1513 |
+
lighttpd--weighttp.7eb9b9c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1514 |
+
lighttpd--weighttp.7eb9b9c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1515 |
+
likexian--whois.804f380/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1516 |
+
likexian--whois.804f380/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1517 |
+
lima-vm--sshocker.4c8c2e6/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1518 |
+
lima-vm--sshocker.4c8c2e6/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1519 |
+
lintingzhen--commitizen-go.6d605/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1520 |
+
lintingzhen--commitizen-go.6d605/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1521 |
+
linuxdeploy--linuxdeploy.a9f929f/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1522 |
+
linuxdeploy--linuxdeploy.a9f929f/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1523 |
+
lionsoul2014--friso.b1808a4/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1524 |
+
lionsoul2014--friso.b1808a4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1525 |
+
llnl--blt.b941704/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1526 |
+
llnl--blt.b941704/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1527 |
+
llnl--conduit.6471d81/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1528 |
+
llnl--conduit.6471d81/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1529 |
+
llnl--smith.292e743/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1530 |
+
llnl--smith.292e743/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1531 |
+
localai-org--privacy-filter.cpp/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1532 |
+
localai-org--privacy-filter.cpp/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1533 |
+
loderunner--scrt.ca97cd4/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1534 |
+
loderunner--scrt.ca97cd4/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1535 |
+
loeffel-io--ls-lint.49b4e7b/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1536 |
+
loeffel-io--ls-lint.49b4e7b/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1537 |
+
lohedges--aabbcc.0dad691/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1538 |
+
lohedges--aabbcc.0dad691/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1539 |
+
loong--go-concurrency-exercises/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1540 |
+
loong--go-concurrency-exercises/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1541 |
+
loov--hrtime.377d394/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1542 |
+
loov--hrtime.377d394/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1543 |
+
loov--view-annotated-file.0afc29/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1544 |
+
loov--view-annotated-file.0afc29/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1545 |
+
lotabout--rargs.cdeedcc/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1546 |
+
lotabout--rargs.cdeedcc/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1547 |
+
lpxxn--rust-design-pattern.d020c/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1548 |
+
lpxxn--rust-design-pattern.d020c/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1549 |
+
lu-zero--bmdtools.31205f8/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1550 |
+
lu-zero--bmdtools.31205f8/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1551 |
+
lucagrulla--cw.25e8679/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1552 |
+
lucagrulla--cw.25e8679/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1553 |
+
lucasb-eyer--libheatmap.0e22cbd/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1554 |
+
lucasb-eyer--libheatmap.0e22cbd/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1555 |
+
ludocode--msgpack-tools.dca6aae/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1556 |
+
ludocode--msgpack-tools.dca6aae/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1557 |
+
lukasjarosch--go-docx.fe742ed/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1558 |
+
lukasjarosch--go-docx.fe742ed/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1559 |
+
lumia431--reaction.721f7f3/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1560 |
+
lumia431--reaction.721f7f3/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1561 |
+
lunarvim--colorgen-nvim.03653ce/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1562 |
+
lunarvim--colorgen-nvim.03653ce/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1563 |
+
lwhyz--workspace.93d4038/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1564 |
+
lwhyz--workspace.93d4038/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1565 |
+
lyraproj--lyra.dfef42a/environment/executable filter=lfs diff=lfs merge=lfs -text
|
| 1566 |
+
lyraproj--lyra.dfef42a/tests/executable filter=lfs diff=lfs merge=lfs -text
|
| 1567 |
+
lzanini--mdbook-katex.1f63ab8/environment/executable filter=lfs diff=lfs merge=lfs -text
|
leaanthony--clir.a8d9462/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d19083850cafaba17fd5b6a229d7b0365067f60c865f1c30f4d365e9f2045368
|
| 3 |
+
size 2510389
|
leaanthony--clir.a8d9462/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
|
leaanthony--clir.a8d9462/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1a18a4dd4cee0ca0ef5b7be34b6aaa0450f335554b50a6d32de43ccc05edd92f
|
| 3 |
+
size 19415
|
leaanthony--clir.a8d9462/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
|
leaanthony--clir.a8d9462/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
|
leaanthony--clir.a8d9462/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/leaanthony--clir.a8d9462"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for leaanthony/clir"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "go"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "leaanthony__clir.a8d9462"
|
| 32 |
+
repository = "leaanthony/clir"
|
| 33 |
+
commit = "a8d9462bce754819cbd5a5596f22d68b3f318fb6"
|
| 34 |
+
language = "go"
|
| 35 |
+
difficulty = "unknown"
|
| 36 |
+
difficulty_score = 0.0
|
| 37 |
+
test_branches = 4
|
| 38 |
+
test_count = 633
|
| 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"
|
leaanthony--clir.a8d9462/tests/Dockerfile
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 49 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 50 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 51 |
+
&& mkdir -p /workspace /tests
|
| 52 |
+
|
| 53 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 54 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 55 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 56 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 57 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 58 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 59 |
+
RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
|
| 60 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 61 |
+
|
| 62 |
+
COPY test.sh /tests/test.sh
|
| 63 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 64 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 65 |
+
COPY blobs/ /tests/blobs/
|
| 66 |
+
RUN chmod +x /tests/test.sh
|
leaanthony--clir.a8d9462/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:fa72e595f96c7e2955583587c6e3a84ab6521f45a229c909356f5fca7309e793
|
| 3 |
+
size 14660
|
leaanthony--clir.a8d9462/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:6e2c0ed444b58e1cefdc396179e93915122dc29146cfc6ea0477a5092ea18c0b
|
| 3 |
+
size 11173
|
leaanthony--clir.a8d9462/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:0bcf71f8c9371452dd1a5187c6aa33f5ec672878994f8160b39c08bf1b39a3fd
|
| 3 |
+
size 8125
|
leaanthony--clir.a8d9462/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:44baccb2c9dcba0ea956a8c4bb0ef76dd8ac61bf1903a38b6aff5660cbc95bc6
|
| 3 |
+
size 14969
|
leaanthony--clir.a8d9462/tests/download.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# PROGRAMGYM-DEFAULT-GO-DOWNLOAD: v1
|
| 3 |
+
# No Go module dependencies to prefetch; the agent may replace this only for required OS/tool dependencies.
|
| 4 |
+
:
|
leaanthony--clir.a8d9462/tests/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d19083850cafaba17fd5b6a229d7b0365067f60c865f1c30f4d365e9f2045368
|
| 3 |
+
size 2510389
|
leaanthony--clir.a8d9462/tests/programgym-go.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:39042a078ea9ceebe3ecda4a7188f0f5b96e14a071d27923ba7f40b456e85ae3
|
|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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()
|
leaanthony--clir.a8d9462/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,1016 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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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_action_flags.TestAgeFlag.test_age_double_dash",
|
| 9 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_equals_form",
|
| 10 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_large_positive",
|
| 11 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_last_wins",
|
| 12 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_negative_suppresses_line",
|
| 13 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_nonpositive_suppresses_line[-1]",
|
| 14 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_nonpositive_suppresses_line[-5]",
|
| 15 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_nonpositive_suppresses_line[0]",
|
| 16 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_positive_prints_line[100]",
|
| 17 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_positive_prints_line[1]",
|
| 18 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_positive_prints_line[30]",
|
| 19 |
+
"eval.tests.test_action_flags.TestAgeFlag.test_age_zero_suppresses_line",
|
| 20 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_absent_is_false",
|
| 21 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_double_dash",
|
| 22 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_false_equals",
|
| 23 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_set_prints_line",
|
| 24 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_true_equals",
|
| 25 |
+
"eval.tests.test_action_flags.TestAwesomeFlag.test_awesome_value_token_does_not_consume_next",
|
| 26 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_age_only",
|
| 27 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_all_flags_together",
|
| 28 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_awesome_only",
|
| 29 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_awesome_true_and_age",
|
| 30 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_dash_equals_combined",
|
| 31 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_name_only_no_age_no_awesome",
|
| 32 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_no_arg_runs_action",
|
| 33 |
+
"eval.tests.test_action_flags.TestCombinedActionOutput.test_order_of_arguments_does_not_change_action",
|
| 34 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_case_sensitive",
|
| 35 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_default_is_anonymous",
|
| 36 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_double_dash",
|
| 37 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_double_dash_equals",
|
| 38 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_empty_string_treated_as_unset",
|
| 39 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_equals_form",
|
| 40 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_last_wins",
|
| 41 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_multiple_tokens",
|
| 42 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_single_dash_value",
|
| 43 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_unicode_value",
|
| 44 |
+
"eval.tests.test_action_flags.TestNameFlag.test_name_value_resembling_flag_token",
|
| 45 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_equals_form_false_then_empty_positional_runs_action",
|
| 46 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_equals_form_whitespace_value_silent[ TRUE\\t]",
|
| 47 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_equals_form_whitespace_value_silent[ true ]",
|
| 48 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_equals_form_whitespace_value_silent[ true]",
|
| 49 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_equals_form_whitespace_value_silent[true ]",
|
| 50 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_space_form_true_token_then_equals_false",
|
| 51 |
+
"eval.tests.test_distinct_edge_cases.TestBoolEqualsWhitespace.test_bool_space_form_whitespace_token_sets_flag",
|
| 52 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_equals_form_silent[--NAME=Y]",
|
| 53 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_equals_form_silent[--Name=Y]",
|
| 54 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_equals_form_silent[-NAME=Y]",
|
| 55 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_equals_form_silent[-Name=Y]",
|
| 56 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_spacing_form_silent[--NAME]",
|
| 57 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_spacing_form_silent[--Name]",
|
| 58 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_flag_name_spacing_form_silent[-NAME]",
|
| 59 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_lowercase_mixed_not_case_folded",
|
| 60 |
+
"eval.tests.test_distinct_edge_cases.TestCaseSensitiveFlagNames.test_uppercase_underscore_variant_silent",
|
| 61 |
+
"eval.tests.test_distinct_edge_cases.TestEmptyStringPositionalAndFlags.test_empty_positional_then_name_no_terminator",
|
| 62 |
+
"eval.tests.test_distinct_edge_cases.TestEmptyStringPositionalAndFlags.test_empty_positional_then_terminator_then_name_anonymous",
|
| 63 |
+
"eval.tests.test_distinct_edge_cases.TestEmptyStringPositionalAndFlags.test_terminator_then_empty_then_name_applies",
|
| 64 |
+
"eval.tests.test_distinct_edge_cases.TestHelpValueAcrossReparseAfterTerminator.test_empty_bool_value_then_help_silent",
|
| 65 |
+
"eval.tests.test_distinct_edge_cases.TestHelpValueAcrossReparseAfterTerminator.test_help_chain_split_by_terminator_false_wins",
|
| 66 |
+
"eval.tests.test_distinct_edge_cases.TestHelpValueAcrossReparseAfterTerminator.test_help_chain_split_by_terminator_true_wins",
|
| 67 |
+
"eval.tests.test_distinct_edge_cases.TestHelpValueAcrossReparseAfterTerminator.test_help_false_after_terminator_runs_action",
|
| 68 |
+
"eval.tests.test_distinct_edge_cases.TestHelpValueAcrossReparseAfterTerminator.test_help_true_after_terminator_with_false_positional",
|
| 69 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_false_help_then_positional_then_true_help_prints_help",
|
| 70 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_false_help_with_positional_siblings_runs_action[argv0]",
|
| 71 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_false_help_with_positional_siblings_runs_action[argv1]",
|
| 72 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_help_true_then_positional_then_false_help_action",
|
| 73 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_help_wins_with_positionals_on_both_sides[argv0]",
|
| 74 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_help_wins_with_positionals_on_both_sides[argv1]",
|
| 75 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_help_wins_with_positionals_on_both_sides[argv2]",
|
| 76 |
+
"eval.tests.test_distinct_edge_cases.TestHelpWithPositionalSiblings.test_help_wins_with_positionals_on_both_sides[argv3]",
|
| 77 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_hex_int_before_terminator_then_name",
|
| 78 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_negative_hex_int_equals_suppresses_line",
|
| 79 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_octal_int_before_terminator_then_name",
|
| 80 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_plus_and_base_prefix_int_equals_form[+5-5]",
|
| 81 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_plus_and_base_prefix_int_equals_form[0b101-5]",
|
| 82 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_plus_and_base_prefix_int_equals_form[0o17-15]",
|
| 83 |
+
"eval.tests.test_distinct_edge_cases.TestIntFormsAcrossReparse.test_plus_zero_int_suppresses_line",
|
| 84 |
+
"eval.tests.test_distinct_edge_cases.TestNameDoubleDashValueAcrossReparse.test_dash_value_then_equals_override",
|
| 85 |
+
"eval.tests.test_distinct_edge_cases.TestNameDoubleDashValueAcrossReparse.test_double_dash_value_then_two_terminators_then_name",
|
| 86 |
+
"eval.tests.test_distinct_edge_cases.TestNameDoubleDashValueAcrossReparse.test_equals_value_is_double_dash",
|
| 87 |
+
"eval.tests.test_distinct_edge_cases.TestNameDoubleDashValueAcrossReparse.test_name_then_two_terminators_then_second_name",
|
| 88 |
+
"eval.tests.test_error_paths.TestBoolFlagInvalidValue.test_invalid_bool_value_silent[-awesome=1.5]",
|
| 89 |
+
"eval.tests.test_error_paths.TestBoolFlagInvalidValue.test_invalid_bool_value_silent[-awesome=foo]",
|
| 90 |
+
"eval.tests.test_error_paths.TestBoolFlagInvalidValue.test_invalid_bool_value_silent[-awesome=xyz]",
|
| 91 |
+
"eval.tests.test_error_paths.TestBoolFlagInvalidValue.test_valid_bool_truthy_forms[-awesome=1]",
|
| 92 |
+
"eval.tests.test_error_paths.TestBoolFlagInvalidValue.test_valid_bool_truthy_forms[-awesome=t]",
|
| 93 |
+
"eval.tests.test_error_paths.TestIntBase0Parsing.test_alternate_int_bases[010-8]",
|
| 94 |
+
"eval.tests.test_error_paths.TestIntBase0Parsing.test_alternate_int_bases[0x10-16]",
|
| 95 |
+
"eval.tests.test_error_paths.TestIntBase0Parsing.test_alternate_int_bases[0x1F-31]",
|
| 96 |
+
"eval.tests.test_error_paths.TestIntBase0Parsing.test_alternate_int_bases[24-24]",
|
| 97 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_empty_string_age_value_silent",
|
| 98 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_suppresses_otherwise_valid_flags",
|
| 99 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[+]",
|
| 100 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[--]",
|
| 101 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[0xZZ]",
|
| 102 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[12.5]",
|
| 103 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[1e3]",
|
| 104 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[22.0]",
|
| 105 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[3x]",
|
| 106 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[9999999999999999999999]",
|
| 107 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_value_silent[abc]",
|
| 108 |
+
"eval.tests.test_error_paths.TestMalformedInt.test_malformed_age_via_equals_form_silent",
|
| 109 |
+
"eval.tests.test_error_paths.TestMissingFlagValue.test_missing_value_followed_by_flag_silent",
|
| 110 |
+
"eval.tests.test_error_paths.TestMissingFlagValue.test_missing_value_silent_no_action[--age]",
|
| 111 |
+
"eval.tests.test_error_paths.TestMissingFlagValue.test_missing_value_silent_no_action[--name]",
|
| 112 |
+
"eval.tests.test_error_paths.TestMissingFlagValue.test_missing_value_silent_no_action[-age]",
|
| 113 |
+
"eval.tests.test_error_paths.TestMissingFlagValue.test_missing_value_silent_no_action[-name]",
|
| 114 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_plus_known_flag_suppresses_action",
|
| 115 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[--unknown]",
|
| 116 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[-n]",
|
| 117 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[-notdef]",
|
| 118 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[-unknown]",
|
| 119 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[-x]",
|
| 120 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_flag_silent_no_action[-z]",
|
| 121 |
+
"eval.tests.test_error_paths.TestUnknownFlag.test_unknown_short_flag_not_interpreted_as_help",
|
| 122 |
+
"eval.tests.test_flag_grammar_edges.TestEqualsInValue.test_name_equals_form_preserves_embedded_equals[=-Hello =!\\n]",
|
| 123 |
+
"eval.tests.test_flag_grammar_edges.TestEqualsInValue.test_name_equals_form_preserves_embedded_equals[=x-Hello =x!\\n]",
|
| 124 |
+
"eval.tests.test_flag_grammar_edges.TestEqualsInValue.test_name_equals_form_preserves_embedded_equals[a=b-Hello a=b!\\n]",
|
| 125 |
+
"eval.tests.test_flag_grammar_edges.TestEqualsInValue.test_name_equals_form_preserves_embedded_equals[a=b=c-Hello a=b=c!\\n]",
|
| 126 |
+
"eval.tests.test_flag_grammar_edges.TestEqualsInValue.test_space_form_value_starting_with_equals",
|
| 127 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_age_last_occurrence_wins_across_spellings[argv0-3]",
|
| 128 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_age_last_occurrence_wins_across_spellings[argv1-3]",
|
| 129 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_age_last_occurrence_wins_across_spellings[argv2-11]",
|
| 130 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_bool_last_occurrence_wins_across_spellings[argv0-Hello Anonymous!\\n]",
|
| 131 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_bool_last_occurrence_wins_across_spellings[argv1-Hello Anonymous!\\n]",
|
| 132 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_bool_last_occurrence_wins_across_spellings[argv2-Hello Anonymous!\\nYou are awesome!\\n]",
|
| 133 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_name_last_occurrence_wins_across_spellings[argv0-Hello C!\\n]",
|
| 134 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_name_last_occurrence_wins_across_spellings[argv1-Hello C!\\n]",
|
| 135 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_name_last_occurrence_wins_across_spellings[argv2-Hello Y!\\n]",
|
| 136 |
+
"eval.tests.test_flag_grammar_edges.TestLastWinsAcrossSpellings.test_name_last_occurrence_wins_across_spellings[argv3-Hello W!\\n]",
|
| 137 |
+
"eval.tests.test_flag_grammar_edges.TestMixedParseWithTerminatorAndPositional.test_flags_before_terminator_then_flag_and_positional_after",
|
| 138 |
+
"eval.tests.test_flag_grammar_edges.TestMixedParseWithTerminatorAndPositional.test_positional_then_flag_then_terminator_then_bool",
|
| 139 |
+
"eval.tests.test_flag_parsing.TestActionStillRuns.test_action_exit_code_zero_with_flags_and_positional",
|
| 140 |
+
"eval.tests.test_flag_parsing.TestActionStillRuns.test_action_runs_with_positional_present",
|
| 141 |
+
"eval.tests.test_flag_parsing.TestPositionalAfterFlags.test_all_flags_then_positional",
|
| 142 |
+
"eval.tests.test_flag_parsing.TestPositionalAfterFlags.test_equals_flag_then_positional",
|
| 143 |
+
"eval.tests.test_flag_parsing.TestPositionalAfterFlags.test_flag_then_single_positional",
|
| 144 |
+
"eval.tests.test_flag_parsing.TestPositionalAfterFlags.test_flag_then_two_positionals",
|
| 145 |
+
"eval.tests.test_flag_parsing.TestPositionalBeforeFlags.test_positional_before_all_flags",
|
| 146 |
+
"eval.tests.test_flag_parsing.TestPositionalBeforeFlags.test_positional_before_dash_equals_flag",
|
| 147 |
+
"eval.tests.test_flag_parsing.TestPositionalBeforeFlags.test_positional_then_single_flag",
|
| 148 |
+
"eval.tests.test_flag_parsing.TestPositionalBeforeFlags.test_two_positionals_then_flag",
|
| 149 |
+
"eval.tests.test_flag_parsing.TestPositionalBetweenFlags.test_all_positional_no_flags",
|
| 150 |
+
"eval.tests.test_flag_parsing.TestPositionalBetweenFlags.test_many_positionals_dense",
|
| 151 |
+
"eval.tests.test_flag_parsing.TestPositionalBetweenFlags.test_multiple_positionals_interleaved",
|
| 152 |
+
"eval.tests.test_flag_parsing.TestPositionalBetweenFlags.test_positional_between_three_flags",
|
| 153 |
+
"eval.tests.test_flag_parsing.TestPositionalBetweenFlags.test_positional_between_two_flags",
|
| 154 |
+
"eval.tests.test_flag_parsing.TestPositionalValueLookahead.test_negative_number_value_for_int_flag",
|
| 155 |
+
"eval.tests.test_flag_parsing.TestPositionalValueLookahead.test_string_value_looking_like_minus_flag",
|
| 156 |
+
"eval.tests.test_flag_parsing.TestPositionalValueLookahead.test_string_value_looking_like_negative_number",
|
| 157 |
+
"eval.tests.test_flag_parsing.TestPositionalWithBoolFlags.test_bool_flags_do_not_consume_following_positional",
|
| 158 |
+
"eval.tests.test_flag_parsing.TestPositionalWithBoolFlags.test_positional_after_bool_then_string_flag",
|
| 159 |
+
"eval.tests.test_help.TestHelpContent.test_age_flag_block_exact",
|
| 160 |
+
"eval.tests.test_help.TestHelpContent.test_awesome_flag_block_exact",
|
| 161 |
+
"eval.tests.test_help.TestHelpContent.test_first_line_is_banner",
|
| 162 |
+
"eval.tests.test_help.TestHelpContent.test_flags_are_sorted_alphabetically",
|
| 163 |
+
"eval.tests.test_help.TestHelpContent.test_flags_header_is_present",
|
| 164 |
+
"eval.tests.test_help.TestHelpContent.test_golden_matches_live_binary",
|
| 165 |
+
"eval.tests.test_help.TestHelpContent.test_help_flag_block_exact",
|
| 166 |
+
"eval.tests.test_help.TestHelpContent.test_name_flag_block_exact",
|
| 167 |
+
"eval.tests.test_help.TestHelpContent.test_no_subcommands_are_listed",
|
| 168 |
+
"eval.tests.test_help.TestHelpContent.test_second_line_is_blank_separator",
|
| 169 |
+
"eval.tests.test_help.TestHelpContent.test_trailing_blank_line",
|
| 170 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_does_not_emit_partial_action",
|
| 171 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_with_flags_prints_help_not_action[argv0]",
|
| 172 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_with_flags_prints_help_not_action[argv1]",
|
| 173 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_with_flags_prints_help_not_action[argv2]",
|
| 174 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_with_flags_prints_help_not_action[argv3]",
|
| 175 |
+
"eval.tests.test_help.TestHelpPrecedence.test_help_with_flags_prints_help_not_action[argv4]",
|
| 176 |
+
"eval.tests.test_help.TestHelpStreams.test_banner_only_printed_as_help_prefix",
|
| 177 |
+
"eval.tests.test_help.TestHelpStreams.test_help_exit_zero_with_full_output",
|
| 178 |
+
"eval.tests.test_help.TestHelpStreams.test_help_goes_to_stdout_not_stderr",
|
| 179 |
+
"eval.tests.test_help.TestHelpTriggers.test_dash_h_is_not_help",
|
| 180 |
+
"eval.tests.test_help.TestHelpTriggers.test_help_forms_print_exact_golden[argv0]",
|
| 181 |
+
"eval.tests.test_help.TestHelpTriggers.test_help_forms_print_exact_golden[argv1]",
|
| 182 |
+
"eval.tests.test_help_bool_forms.TestHelpAfterEndOfFlags.test_flag_value_then_terminator_then_help",
|
| 183 |
+
"eval.tests.test_help_bool_forms.TestHelpAfterEndOfFlags.test_positional_then_false_help_runs_action",
|
| 184 |
+
"eval.tests.test_help_bool_forms.TestHelpAfterEndOfFlags.test_positional_then_help_prints_help",
|
| 185 |
+
"eval.tests.test_help_bool_forms.TestHelpAfterEndOfFlags.test_terminator_then_help_prints_help",
|
| 186 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_false_help_still_parses_other_flags",
|
| 187 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_falsy_boolean_value_runs_action[0]",
|
| 188 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_falsy_boolean_value_runs_action[FALSE]",
|
| 189 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_falsy_boolean_value_runs_action[F]",
|
| 190 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_falsy_boolean_value_runs_action[f]",
|
| 191 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_falsy_boolean_value_runs_action[false]",
|
| 192 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_true_help_overrides_other_flags",
|
| 193 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_truthy_boolean_value_prints_help[1]",
|
| 194 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_truthy_boolean_value_prints_help[TRUE]",
|
| 195 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_truthy_boolean_value_prints_help[T]",
|
| 196 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_truthy_boolean_value_prints_help[t]",
|
| 197 |
+
"eval.tests.test_help_bool_forms.TestHelpExplicitBoolValue.test_truthy_boolean_value_prints_help[true]",
|
| 198 |
+
"eval.tests.test_help_bool_forms.TestHelpLastValueWins.test_false_then_true_equals_form",
|
| 199 |
+
"eval.tests.test_help_bool_forms.TestHelpLastValueWins.test_false_then_true_prints_help",
|
| 200 |
+
"eval.tests.test_help_bool_forms.TestHelpLastValueWins.test_true_then_false_runs_action",
|
| 201 |
+
"eval.tests.test_help_bool_forms.TestHelpTokenAsStringValue.test_double_dash_help_consumed_as_name_value",
|
| 202 |
+
"eval.tests.test_help_bool_forms.TestHelpTokenAsStringValue.test_help_after_string_value_is_still_a_flag",
|
| 203 |
+
"eval.tests.test_help_bool_forms.TestHelpTokenAsStringValue.test_help_consumed_as_name_value",
|
| 204 |
+
"eval.tests.test_reparse_terminator_edges.TestBareTerminator.test_double_dash_then_flags_reparsed",
|
| 205 |
+
"eval.tests.test_reparse_terminator_edges.TestBareTerminator.test_flags_before_lone_terminator_run_action",
|
| 206 |
+
"eval.tests.test_reparse_terminator_edges.TestBareTerminator.test_lone_terminator_with_action_flags",
|
| 207 |
+
"eval.tests.test_reparse_terminator_edges.TestHelpShadowedByUndefinedFlag.test_undefined_h_shadows_trailing_help",
|
| 208 |
+
"eval.tests.test_reparse_terminator_edges.TestHelpShadowedByUndefinedFlag.test_undefined_h_with_flags_silent",
|
| 209 |
+
"eval.tests.test_reparse_terminator_edges.TestLastWinsAcrossTerminator.test_age_last_wins_across_terminator",
|
| 210 |
+
"eval.tests.test_reparse_terminator_edges.TestLastWinsAcrossTerminator.test_age_last_wins_mixed_spelling_across_terminator",
|
| 211 |
+
"eval.tests.test_reparse_terminator_edges.TestLastWinsAcrossTerminator.test_awesome_last_false_across_terminator",
|
| 212 |
+
"eval.tests.test_reparse_terminator_edges.TestLastWinsAcrossTerminator.test_awesome_last_true_across_terminator",
|
| 213 |
+
"eval.tests.test_reparse_terminator_edges.TestMultiTerminatorReparse.test_name_between_terminators",
|
| 214 |
+
"eval.tests.test_reparse_terminator_edges.TestMultiTerminatorReparse.test_three_terminators_lose_flag",
|
| 215 |
+
"eval.tests.test_reparse_terminator_edges.TestMultiTerminatorReparse.test_two_terminators_apply_each_segment_flag",
|
| 216 |
+
"eval.tests.test_reparse_terminator_edges.TestMultiTerminatorReparse.test_two_terminators_before_flag_applies_age",
|
| 217 |
+
"eval.tests.test_reparse_terminator_edges.TestMultiTerminatorReparse.test_two_terminators_second_segment_name",
|
| 218 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_equals_form_negative_after_terminator_runs_action[-age=-0]",
|
| 219 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_equals_form_negative_after_terminator_runs_action[-age=-3]",
|
| 220 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_equals_form_negative_after_terminator_runs_action[-age=-4]",
|
| 221 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_negative_after_terminator_suppresses_partial_output",
|
| 222 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_negative_after_terminator_without_name_silent",
|
| 223 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_negative_int_before_terminator_is_fine",
|
| 224 |
+
"eval.tests.test_reparse_terminator_edges.TestNegativeIntAfterTerminator.test_space_form_negative_after_terminator_silent",
|
| 225 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_bool_flag_then_terminator_then_flag_ok",
|
| 226 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_double_dash_consumed_as_string_flag_value",
|
| 227 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_equals_flag_before_terminator_then_positional",
|
| 228 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_positional_then_terminator_then_flags_not_reparsed",
|
| 229 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_terminator_after_flag_then_missing_value_silent",
|
| 230 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_terminator_then_flag_is_reparsed",
|
| 231 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_terminator_then_flag_with_missing_value_silent",
|
| 232 |
+
"eval.tests.test_terminator_and_extra_parsing.TestDoubleDashTerminator.test_unknown_flag_before_terminator_silent",
|
| 233 |
+
"eval.tests.test_terminator_and_extra_parsing.TestEmptyEqualsFlagForm.test_empty_string_equals_form_leaves_default",
|
| 234 |
+
"eval.tests.test_terminator_and_extra_parsing.TestEmptyEqualsFlagForm.test_empty_string_equals_then_real_flag",
|
| 235 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_base0_int_forms_parse_to_value[+5-5]",
|
| 236 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_base0_int_forms_parse_to_value[0b101-5]",
|
| 237 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_base0_int_forms_parse_to_value[0o17-15]",
|
| 238 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_incomplete_or_invalid_int_prefix_silent[0b]",
|
| 239 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_incomplete_or_invalid_int_prefix_silent[0x]",
|
| 240 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_incomplete_or_invalid_int_prefix_silent[_123]",
|
| 241 |
+
"eval.tests.test_terminator_and_extra_parsing.TestExtraIntBase0Forms.test_negative_zero_int_suppresses_line",
|
| 242 |
+
"eval.tests.test_value_and_help_chains.TestHelpValueChains.test_help_false_equals_chain_runs_action",
|
| 243 |
+
"eval.tests.test_value_and_help_chains.TestHelpValueChains.test_help_false_then_bare_true_prints_help",
|
| 244 |
+
"eval.tests.test_value_and_help_chains.TestHelpValueChains.test_help_three_truthy_ends_help",
|
| 245 |
+
"eval.tests.test_value_and_help_chains.TestHelpValueChains.test_help_true_false_equals_chain_false_wins",
|
| 246 |
+
"eval.tests.test_value_and_help_chains.TestMultiBoolLastValue.test_awesome_false_then_true_last_true",
|
| 247 |
+
"eval.tests.test_value_and_help_chains.TestMultiBoolLastValue.test_awesome_then_false_forms_last_false",
|
| 248 |
+
"eval.tests.test_value_and_help_chains.TestMultiBoolLastValue.test_awesome_true_then_f_forms_last_false",
|
| 249 |
+
"eval.tests.test_value_and_help_chains.TestStringValueDashEdges.test_empty_equals_name_kept_with_age",
|
| 250 |
+
"eval.tests.test_value_and_help_chains.TestStringValueDashEdges.test_many_equals_string_value_preserved",
|
| 251 |
+
"eval.tests.test_value_and_help_chains.TestStringValueDashEdges.test_name_equals_value_is_help_token",
|
| 252 |
+
"eval.tests.test_value_and_help_chains.TestStringValueDashEdges.test_name_space_form_dashish_then_space_value",
|
| 253 |
+
"eval.tests.test_value_and_help_chains.TestStringValueDashEdges.test_name_value_is_double_dash_then_real_flag"
|
| 254 |
+
]
|
| 255 |
+
},
|
| 256 |
+
"generated_module_02": {
|
| 257 |
+
"ignore_reason": "",
|
| 258 |
+
"ignored": false,
|
| 259 |
+
"ignored_tests": [],
|
| 260 |
+
"tests": [
|
| 261 |
+
"eval.tests.test_cli_flags_app.test_age_assignment_form",
|
| 262 |
+
"eval.tests.test_cli_flags_app.test_age_flag_alone_leaves_name_anonymous",
|
| 263 |
+
"eval.tests.test_cli_flags_app.test_age_hex_prefix_with_space_form",
|
| 264 |
+
"eval.tests.test_cli_flags_app.test_age_int64_below_min_aborts",
|
| 265 |
+
"eval.tests.test_cli_flags_app.test_age_int64_max_value_is_accepted",
|
| 266 |
+
"eval.tests.test_cli_flags_app.test_age_int64_min_value_is_valid_but_negative",
|
| 267 |
+
"eval.tests.test_cli_flags_app.test_age_int64_overflow_aborts",
|
| 268 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[binary_101]",
|
| 269 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[hex_10]",
|
| 270 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[hex_1F]",
|
| 271 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[octal_007]",
|
| 272 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[octal_010]",
|
| 273 |
+
"eval.tests.test_cli_flags_app.test_age_int_base_prefix_spellings[octal_o_17]",
|
| 274 |
+
"eval.tests.test_cli_flags_app.test_age_invalid_octal_digit_aborts",
|
| 275 |
+
"eval.tests.test_cli_flags_app.test_age_leading_zeroes_still_numeric",
|
| 276 |
+
"eval.tests.test_cli_flags_app.test_age_mixed_assignment_and_spaced_last_wins",
|
| 277 |
+
"eval.tests.test_cli_flags_app.test_age_negative_zero_is_zero",
|
| 278 |
+
"eval.tests.test_cli_flags_app.test_age_plus_sign_accepted",
|
| 279 |
+
"eval.tests.test_cli_flags_app.test_age_single_dash_assignment_form",
|
| 280 |
+
"eval.tests.test_cli_flags_app.test_age_spaced_then_assignment_last_wins",
|
| 281 |
+
"eval.tests.test_cli_flags_app.test_age_zero_does_not_print_age_line",
|
| 282 |
+
"eval.tests.test_cli_flags_app.test_all_flag_classes_interspersed_with_positionals",
|
| 283 |
+
"eval.tests.test_cli_flags_app.test_all_flags_combined_prints_every_line",
|
| 284 |
+
"eval.tests.test_cli_flags_app.test_awesome_equals_false_omits_awesome_line",
|
| 285 |
+
"eval.tests.test_cli_flags_app.test_awesome_equals_true_prints_awesome_line",
|
| 286 |
+
"eval.tests.test_cli_flags_app.test_awesome_flag_with_positionals_still_runs",
|
| 287 |
+
"eval.tests.test_cli_flags_app.test_awesome_true_prints_awesome_line",
|
| 288 |
+
"eval.tests.test_cli_flags_app.test_bool_falsy_value_spellings_emit_only_greeting[capital_f]",
|
| 289 |
+
"eval.tests.test_cli_flags_app.test_bool_falsy_value_spellings_emit_only_greeting[f]",
|
| 290 |
+
"eval.tests.test_cli_flags_app.test_bool_falsy_value_spellings_emit_only_greeting[title_false]",
|
| 291 |
+
"eval.tests.test_cli_flags_app.test_bool_falsy_value_spellings_emit_only_greeting[upper_false]",
|
| 292 |
+
"eval.tests.test_cli_flags_app.test_bool_falsy_value_spellings_emit_only_greeting[zero]",
|
| 293 |
+
"eval.tests.test_cli_flags_app.test_bool_flag_does_not_consume_trailing_value",
|
| 294 |
+
"eval.tests.test_cli_flags_app.test_bool_flag_empty_assignment_aborts",
|
| 295 |
+
"eval.tests.test_cli_flags_app.test_bool_flag_repeated_last_value_wins_false_then_true",
|
| 296 |
+
"eval.tests.test_cli_flags_app.test_bool_flag_repeated_last_value_wins_true_then_false",
|
| 297 |
+
"eval.tests.test_cli_flags_app.test_bool_truthy_value_spellings_emit_awesome_line[capital_t]",
|
| 298 |
+
"eval.tests.test_cli_flags_app.test_bool_truthy_value_spellings_emit_awesome_line[one]",
|
| 299 |
+
"eval.tests.test_cli_flags_app.test_bool_truthy_value_spellings_emit_awesome_line[t]",
|
| 300 |
+
"eval.tests.test_cli_flags_app.test_bool_truthy_value_spellings_emit_awesome_line[title_true]",
|
| 301 |
+
"eval.tests.test_cli_flags_app.test_bool_truthy_value_spellings_emit_awesome_line[upper_true]",
|
| 302 |
+
"eval.tests.test_cli_flags_app.test_double_dash_alone_runs_default_action",
|
| 303 |
+
"eval.tests.test_cli_flags_app.test_double_dash_end_of_flags_preserves_prior_flags",
|
| 304 |
+
"eval.tests.test_cli_flags_app.test_empty_name_assignment_is_anonymous",
|
| 305 |
+
"eval.tests.test_cli_flags_app.test_empty_name_assignment_with_repeated_age_combines",
|
| 306 |
+
"eval.tests.test_cli_flags_app.test_empty_name_is_treated_as_anonymous",
|
| 307 |
+
"eval.tests.test_cli_flags_app.test_flag_after_double_dash_still_parsed",
|
| 308 |
+
"eval.tests.test_cli_flags_app.test_flag_after_leading_positional_still_parsed",
|
| 309 |
+
"eval.tests.test_cli_flags_app.test_flag_after_two_positionals_still_parsed",
|
| 310 |
+
"eval.tests.test_cli_flags_app.test_flag_before_and_after_positional_both_applied",
|
| 311 |
+
"eval.tests.test_cli_flags_app.test_help_banner_embeds_version_and_short_description",
|
| 312 |
+
"eval.tests.test_cli_flags_app.test_help_bool_explicit_false_runs_action",
|
| 313 |
+
"eval.tests.test_cli_flags_app.test_help_bool_explicit_true_prints_help",
|
| 314 |
+
"eval.tests.test_cli_flags_app.test_help_bool_flags_render_without_type_suffix",
|
| 315 |
+
"eval.tests.test_cli_flags_app.test_help_bool_repeated_last_value_wins_false",
|
| 316 |
+
"eval.tests.test_cli_flags_app.test_help_even_when_other_flags_valid",
|
| 317 |
+
"eval.tests.test_cli_flags_app.test_help_exact_full_text_matches_golden",
|
| 318 |
+
"eval.tests.test_cli_flags_app.test_help_exit_status_is_success",
|
| 319 |
+
"eval.tests.test_cli_flags_app.test_help_goes_to_stdout_not_stderr",
|
| 320 |
+
"eval.tests.test_cli_flags_app.test_help_has_flags_section_followed_by_first_flag",
|
| 321 |
+
"eval.tests.test_cli_flags_app.test_help_lists_flag_description[age_desc]",
|
| 322 |
+
"eval.tests.test_cli_flags_app.test_help_lists_flag_description[awesome_desc]",
|
| 323 |
+
"eval.tests.test_cli_flags_app.test_help_lists_flag_description[help_desc]",
|
| 324 |
+
"eval.tests.test_cli_flags_app.test_help_lists_flag_description[name_desc]",
|
| 325 |
+
"eval.tests.test_cli_flags_app.test_help_lists_int_flag_with_type_and_description",
|
| 326 |
+
"eval.tests.test_cli_flags_app.test_help_lists_string_flag_with_type_and_description",
|
| 327 |
+
"eval.tests.test_cli_flags_app.test_help_names_the_app_flags",
|
| 328 |
+
"eval.tests.test_cli_flags_app.test_help_prints_exact_banner[long_dash_help]",
|
| 329 |
+
"eval.tests.test_cli_flags_app.test_help_prints_exact_banner[single_dash_help]",
|
| 330 |
+
"eval.tests.test_cli_flags_app.test_help_takes_precedence_over_action",
|
| 331 |
+
"eval.tests.test_cli_flags_app.test_help_token_consumed_as_string_value",
|
| 332 |
+
"eval.tests.test_cli_flags_app.test_help_with_extra_positional_still_prints_help",
|
| 333 |
+
"eval.tests.test_cli_flags_app.test_help_with_trailing_double_dash_still_prints_help",
|
| 334 |
+
"eval.tests.test_cli_flags_app.test_int_flag_after_positional_still_parsed",
|
| 335 |
+
"eval.tests.test_cli_flags_app.test_int_flag_empty_assignment_aborts_even_after_valid",
|
| 336 |
+
"eval.tests.test_cli_flags_app.test_int_flag_with_double_dash_missing_value_aborts",
|
| 337 |
+
"eval.tests.test_cli_flags_app.test_int_overflow_aborts_before_action",
|
| 338 |
+
"eval.tests.test_cli_flags_app.test_invalid_bool_value_aborts_before_action[capital_r]",
|
| 339 |
+
"eval.tests.test_cli_flags_app.test_invalid_bool_value_aborts_before_action[on]",
|
| 340 |
+
"eval.tests.test_cli_flags_app.test_invalid_bool_value_aborts_before_action[two]",
|
| 341 |
+
"eval.tests.test_cli_flags_app.test_invalid_bool_value_aborts_before_action[yes]",
|
| 342 |
+
"eval.tests.test_cli_flags_app.test_invalid_flag_beats_help_precedence",
|
| 343 |
+
"eval.tests.test_cli_flags_app.test_invalid_then_valid_int_aborts_before_action",
|
| 344 |
+
"eval.tests.test_cli_flags_app.test_leading_double_dash_then_flag_and_positional",
|
| 345 |
+
"eval.tests.test_cli_flags_app.test_leading_double_dash_then_flags_still_parsed",
|
| 346 |
+
"eval.tests.test_cli_flags_app.test_malformed_int_flag_aborts_before_action[alpha]",
|
| 347 |
+
"eval.tests.test_cli_flags_app.test_malformed_int_flag_aborts_before_action[empty]",
|
| 348 |
+
"eval.tests.test_cli_flags_app.test_malformed_int_flag_aborts_before_action[float]",
|
| 349 |
+
"eval.tests.test_cli_flags_app.test_malformed_int_flag_aborts_before_action[trailing_alpha]",
|
| 350 |
+
"eval.tests.test_cli_flags_app.test_missing_value_int_flag_aborts_before_action",
|
| 351 |
+
"eval.tests.test_cli_flags_app.test_missing_value_string_flag_aborts_before_action",
|
| 352 |
+
"eval.tests.test_cli_flags_app.test_name_consumes_capital_dash_token_as_value",
|
| 353 |
+
"eval.tests.test_cli_flags_app.test_name_consumes_double_dash_token_as_value",
|
| 354 |
+
"eval.tests.test_cli_flags_app.test_name_consumes_flag_like_next_token_as_value",
|
| 355 |
+
"eval.tests.test_cli_flags_app.test_name_equals_assignment_form",
|
| 356 |
+
"eval.tests.test_cli_flags_app.test_name_flag_like_value_is_consumed",
|
| 357 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[alice]",
|
| 358 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[apostrophe]",
|
| 359 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[bob]",
|
| 360 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[spaces]",
|
| 361 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[unicode]",
|
| 362 |
+
"eval.tests.test_cli_flags_app.test_name_flag_sets_greeting[zoe]",
|
| 363 |
+
"eval.tests.test_cli_flags_app.test_name_mixed_assignment_and_spaced_last_wins",
|
| 364 |
+
"eval.tests.test_cli_flags_app.test_name_single_dash_form",
|
| 365 |
+
"eval.tests.test_cli_flags_app.test_name_value_with_embedded_equals",
|
| 366 |
+
"eval.tests.test_cli_flags_app.test_name_value_with_embedded_newline_is_echoed",
|
| 367 |
+
"eval.tests.test_cli_flags_app.test_name_whitespace_only_value_is_not_anonymous",
|
| 368 |
+
"eval.tests.test_cli_flags_app.test_negative_age_assignment_omits_age_line",
|
| 369 |
+
"eval.tests.test_cli_flags_app.test_negative_age_does_not_print_age_line",
|
| 370 |
+
"eval.tests.test_cli_flags_app.test_no_arguments_runs_action_with_anonymous_name",
|
| 371 |
+
"eval.tests.test_cli_flags_app.test_output_line_order_is_hello_age_awesome",
|
| 372 |
+
"eval.tests.test_cli_flags_app.test_positional_args_are_ignored_by_action",
|
| 373 |
+
"eval.tests.test_cli_flags_app.test_positional_before_double_dash_blocks_following_flags",
|
| 374 |
+
"eval.tests.test_cli_flags_app.test_positional_double_dash_then_bool_is_not_bound",
|
| 375 |
+
"eval.tests.test_cli_flags_app.test_positional_then_only_bool_flag",
|
| 376 |
+
"eval.tests.test_cli_flags_app.test_positive_age_prints_age_line[ninety_nine]",
|
| 377 |
+
"eval.tests.test_cli_flags_app.test_positive_age_prints_age_line[one]",
|
| 378 |
+
"eval.tests.test_cli_flags_app.test_positive_age_prints_age_line[seven]",
|
| 379 |
+
"eval.tests.test_cli_flags_app.test_positive_age_prints_age_line[thirty]",
|
| 380 |
+
"eval.tests.test_cli_flags_app.test_repeated_age_last_value_wins",
|
| 381 |
+
"eval.tests.test_cli_flags_app.test_repeated_age_with_interleaved_positional_last_wins",
|
| 382 |
+
"eval.tests.test_cli_flags_app.test_repeated_name_across_interleaved_flags_last_wins",
|
| 383 |
+
"eval.tests.test_cli_flags_app.test_repeated_name_last_value_wins",
|
| 384 |
+
"eval.tests.test_cli_flags_app.test_single_dash_h_is_unknown_flag",
|
| 385 |
+
"eval.tests.test_cli_flags_app.test_unknown_flag_aborts_before_action[another_unknown]",
|
| 386 |
+
"eval.tests.test_cli_flags_app.test_unknown_flag_aborts_before_action[unknown_after_valid]",
|
| 387 |
+
"eval.tests.test_cli_flags_app.test_unknown_flag_aborts_before_action[unknown_before_valid]",
|
| 388 |
+
"eval.tests.test_cli_flags_app.test_unknown_flag_aborts_before_action[unknown_only]",
|
| 389 |
+
"eval.tests.test_cli_flags_app.test_uppercase_help_flag_is_undefined",
|
| 390 |
+
"eval.tests.test_cli_flags_app.test_uppercase_name_flag_is_undefined",
|
| 391 |
+
"eval.tests.test_cli_flags_app.test_valid_flag_then_invalid_int_aborts_before_action",
|
| 392 |
+
"eval.tests.test_cli_flags_app.test_valid_flags_then_empty_bool_assignment_aborts",
|
| 393 |
+
"eval.tests.test_cli_flags_app.test_version_flag_not_registered_aborts"
|
| 394 |
+
]
|
| 395 |
+
},
|
| 396 |
+
"generated_module_03": {
|
| 397 |
+
"ignore_reason": "",
|
| 398 |
+
"ignored": false,
|
| 399 |
+
"ignored_tests": [],
|
| 400 |
+
"tests": [
|
| 401 |
+
"eval.tests.test_clir_construction_banner.test_action_age_one_prints_singular_age_line",
|
| 402 |
+
"eval.tests.test_clir_construction_banner.test_action_age_zero_boundary_omits_age_line",
|
| 403 |
+
"eval.tests.test_clir_construction_banner.test_action_empty_name_falls_back_to_anonymous",
|
| 404 |
+
"eval.tests.test_clir_construction_banner.test_action_negative_age_omits_age_line",
|
| 405 |
+
"eval.tests.test_clir_construction_banner.test_action_space_name_preserved_verbatim",
|
| 406 |
+
"eval.tests.test_clir_construction_banner.test_all_registered_flags_listed_after_banner",
|
| 407 |
+
"eval.tests.test_clir_construction_banner.test_awesome_flag_alone_prints_awesome_line",
|
| 408 |
+
"eval.tests.test_clir_construction_banner.test_banner_embeds_name_version_and_description_in_order",
|
| 409 |
+
"eval.tests.test_clir_construction_banner.test_banner_has_no_leading_double_space_because_version_nonblank",
|
| 410 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_first_line_of_help[help_equals_true]",
|
| 411 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_first_line_of_help[help_with_bool_flag]",
|
| 412 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_first_line_of_help[help_with_int_flag]",
|
| 413 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_first_line_of_help[help_with_name_flag]",
|
| 414 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_first_line_of_help[long_help]",
|
| 415 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_followed_by_blank_line",
|
| 416 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_line_zero_for_single_space_token_model[awesome_true_help]",
|
| 417 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_line_zero_for_single_space_token_model[long_true]",
|
| 418 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_line_zero_for_single_space_token_model[mixed_help]",
|
| 419 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_line_zero_for_single_space_token_model[name_equals_help]",
|
| 420 |
+
"eval.tests.test_clir_construction_banner.test_banner_is_line_zero_for_single_space_token_model[zero_age_help]",
|
| 421 |
+
"eval.tests.test_clir_construction_banner.test_combined_action_run_full_greeting",
|
| 422 |
+
"eval.tests.test_clir_construction_banner.test_duplicate_help_flags_print_help_once",
|
| 423 |
+
"eval.tests.test_clir_construction_banner.test_each_accepted_help_form_prints_full_help_body[help_equals_true]",
|
| 424 |
+
"eval.tests.test_clir_construction_banner.test_each_accepted_help_form_prints_full_help_body[help_with_bool_flag]",
|
| 425 |
+
"eval.tests.test_clir_construction_banner.test_each_accepted_help_form_prints_full_help_body[help_with_int_flag]",
|
| 426 |
+
"eval.tests.test_clir_construction_banner.test_each_accepted_help_form_prints_full_help_body[help_with_name_flag]",
|
| 427 |
+
"eval.tests.test_clir_construction_banner.test_each_accepted_help_form_prints_full_help_body[long_help]",
|
| 428 |
+
"eval.tests.test_clir_construction_banner.test_empty_name_zero_age_awesome_combined",
|
| 429 |
+
"eval.tests.test_clir_construction_banner.test_equals_form_age_flag_with_awesome",
|
| 430 |
+
"eval.tests.test_clir_construction_banner.test_equals_form_name_flag",
|
| 431 |
+
"eval.tests.test_clir_construction_banner.test_flags_section_follows_banner",
|
| 432 |
+
"eval.tests.test_clir_construction_banner.test_full_help_body_matches_golden_file",
|
| 433 |
+
"eval.tests.test_clir_construction_banner.test_golden_contract_banner_first_blank_lines_last",
|
| 434 |
+
"eval.tests.test_clir_construction_banner.test_help_body_has_golden_byte_length",
|
| 435 |
+
"eval.tests.test_clir_construction_banner.test_help_body_records_flag_registration_order",
|
| 436 |
+
"eval.tests.test_clir_construction_banner.test_help_equals_false_does_not_print_banner",
|
| 437 |
+
"eval.tests.test_clir_construction_banner.test_help_flag_description_references_command_path",
|
| 438 |
+
"eval.tests.test_clir_construction_banner.test_help_is_written_to_stdout_not_stderr",
|
| 439 |
+
"eval.tests.test_clir_construction_banner.test_help_position_in_argv_does_not_matter",
|
| 440 |
+
"eval.tests.test_clir_construction_banner.test_help_takes_precedence_over_bool_flag",
|
| 441 |
+
"eval.tests.test_clir_construction_banner.test_help_takes_precedence_over_combined_action_flags",
|
| 442 |
+
"eval.tests.test_clir_construction_banner.test_help_takes_precedence_over_int_flag",
|
| 443 |
+
"eval.tests.test_clir_construction_banner.test_help_takes_precedence_over_name_flag",
|
| 444 |
+
"eval.tests.test_clir_construction_banner.test_negative_age_with_awesome_only_awesome_prints",
|
| 445 |
+
"eval.tests.test_clir_construction_banner.test_normal_action_run_does_not_emit_banner",
|
| 446 |
+
"eval.tests.test_clir_construction_banner.test_normal_run_custom_name_has_no_banner",
|
| 447 |
+
"eval.tests.test_clir_construction_banner.test_normal_run_leaves_stderr_empty",
|
| 448 |
+
"eval.tests.test_clir_construction_banner.test_repeated_help_false_then_false_runs_action_twice_end_to_end",
|
| 449 |
+
"eval.tests.test_clir_construction_banner.test_repeated_help_false_then_true_emits_banner_and_help_body",
|
| 450 |
+
"eval.tests.test_clir_construction_banner.test_repeated_help_true_then_false_runs_action_without_banner",
|
| 451 |
+
"eval.tests.test_clir_construction_banner.test_repeated_help_true_then_true_prints_help_once",
|
| 452 |
+
"eval.tests.test_clir_construction_banner.test_repeated_name_flag_last_wins",
|
| 453 |
+
"eval.tests.test_clir_construction_banner.test_single_help_emits_banner_exactly_once_at_position_zero",
|
| 454 |
+
"eval.tests.test_clir_construction_banner.test_unknown_flag_before_help_suppresses_help",
|
| 455 |
+
"eval.tests.test_clir_construction_banner.test_unknown_or_malformed_args_silently_fail_with_no_banner[bad_int_value]",
|
| 456 |
+
"eval.tests.test_clir_construction_banner.test_unknown_or_malformed_args_silently_fail_with_no_banner[unknown_flag]",
|
| 457 |
+
"eval.tests.test_clir_construction_banner.test_unknown_or_malformed_args_silently_fail_with_no_banner[unregistered_short_h]",
|
| 458 |
+
"eval.tests.test_clir_construction_banner.test_unregistered_short_h_with_name_still_silent"
|
| 459 |
+
]
|
| 460 |
+
},
|
| 461 |
+
"generated_module_04": {
|
| 462 |
+
"ignore_reason": "",
|
| 463 |
+
"ignored": false,
|
| 464 |
+
"ignored_tests": [
|
| 465 |
+
{
|
| 466 |
+
"name": "eval.tests.test_boolaliases2.test_help_camel_True_equals_print",
|
| 467 |
+
"reasons": [
|
| 468 |
+
{
|
| 469 |
+
"id": "no_assertions",
|
| 470 |
+
"message": "pytest test contains no assert statements",
|
| 471 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 472 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 473 |
+
"severity": "error",
|
| 474 |
+
"stage": "static_lint"
|
| 475 |
+
}
|
| 476 |
+
]
|
| 477 |
+
},
|
| 478 |
+
{
|
| 479 |
+
"name": "eval.tests.test_boolaliases2.test_help_numeric_one_equals_print",
|
| 480 |
+
"reasons": [
|
| 481 |
+
{
|
| 482 |
+
"id": "no_assertions",
|
| 483 |
+
"message": "pytest test contains no assert statements",
|
| 484 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 485 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 486 |
+
"severity": "error",
|
| 487 |
+
"stage": "static_lint"
|
| 488 |
+
}
|
| 489 |
+
]
|
| 490 |
+
},
|
| 491 |
+
{
|
| 492 |
+
"name": "eval.tests.test_boolaliases2.test_help_upper_TRUE_equals_print",
|
| 493 |
+
"reasons": [
|
| 494 |
+
{
|
| 495 |
+
"id": "no_assertions",
|
| 496 |
+
"message": "pytest test contains no assert statements",
|
| 497 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 498 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 499 |
+
"severity": "error",
|
| 500 |
+
"stage": "static_lint"
|
| 501 |
+
},
|
| 502 |
+
{
|
| 503 |
+
"id": "golden_docstring",
|
| 504 |
+
"message": "pytest test docstring mentions golden data that is not used in the body",
|
| 505 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 506 |
+
"repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
|
| 507 |
+
"severity": "error",
|
| 508 |
+
"stage": "static_lint"
|
| 509 |
+
},
|
| 510 |
+
{
|
| 511 |
+
"id": "golden_no_equality",
|
| 512 |
+
"message": "pytest test references golden data without equality comparison",
|
| 513 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 514 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 515 |
+
"severity": "error",
|
| 516 |
+
"stage": "static_lint"
|
| 517 |
+
}
|
| 518 |
+
]
|
| 519 |
+
},
|
| 520 |
+
{
|
| 521 |
+
"name": "eval.tests.test_boolaliases2.test_help_upper_T_equals_print",
|
| 522 |
+
"reasons": [
|
| 523 |
+
{
|
| 524 |
+
"id": "no_assertions",
|
| 525 |
+
"message": "pytest test contains no assert statements",
|
| 526 |
+
"path": "eval/tests/test_boolaliases2.py",
|
| 527 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 528 |
+
"severity": "error",
|
| 529 |
+
"stage": "static_lint"
|
| 530 |
+
}
|
| 531 |
+
]
|
| 532 |
+
},
|
| 533 |
+
{
|
| 534 |
+
"name": "eval.tests.test_repack.test_age_bad_literal_after_leading_positional_is_error",
|
| 535 |
+
"reasons": [
|
| 536 |
+
{
|
| 537 |
+
"id": "no_assertions",
|
| 538 |
+
"message": "pytest test contains no assert statements",
|
| 539 |
+
"path": "eval/tests/test_repack.py",
|
| 540 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 541 |
+
"severity": "error",
|
| 542 |
+
"stage": "static_lint"
|
| 543 |
+
}
|
| 544 |
+
]
|
| 545 |
+
},
|
| 546 |
+
{
|
| 547 |
+
"name": "eval.tests.test_repack.test_help_precedence_with_leading_positional",
|
| 548 |
+
"reasons": [
|
| 549 |
+
{
|
| 550 |
+
"id": "no_assertions",
|
| 551 |
+
"message": "pytest test contains no assert statements",
|
| 552 |
+
"path": "eval/tests/test_repack.py",
|
| 553 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 554 |
+
"severity": "error",
|
| 555 |
+
"stage": "static_lint"
|
| 556 |
+
},
|
| 557 |
+
{
|
| 558 |
+
"id": "golden_docstring",
|
| 559 |
+
"message": "pytest test docstring mentions golden data that is not used in the body",
|
| 560 |
+
"path": "eval/tests/test_repack.py",
|
| 561 |
+
"repair_hint": "Use the golden fixture mentioned in the docstring or remove the misleading claim.",
|
| 562 |
+
"severity": "error",
|
| 563 |
+
"stage": "static_lint"
|
| 564 |
+
},
|
| 565 |
+
{
|
| 566 |
+
"id": "golden_no_equality",
|
| 567 |
+
"message": "pytest test references golden data without equality comparison",
|
| 568 |
+
"path": "eval/tests/test_repack.py",
|
| 569 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 570 |
+
"severity": "error",
|
| 571 |
+
"stage": "static_lint"
|
| 572 |
+
}
|
| 573 |
+
]
|
| 574 |
+
},
|
| 575 |
+
{
|
| 576 |
+
"name": "eval.tests.test_repack.test_help_precedence_with_trailing_positional",
|
| 577 |
+
"reasons": [
|
| 578 |
+
{
|
| 579 |
+
"id": "no_assertions",
|
| 580 |
+
"message": "pytest test contains no assert statements",
|
| 581 |
+
"path": "eval/tests/test_repack.py",
|
| 582 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 583 |
+
"severity": "error",
|
| 584 |
+
"stage": "static_lint"
|
| 585 |
+
}
|
| 586 |
+
]
|
| 587 |
+
},
|
| 588 |
+
{
|
| 589 |
+
"name": "eval.tests.test_repack.test_repacked_positional_does_not_break_error_contract",
|
| 590 |
+
"reasons": [
|
| 591 |
+
{
|
| 592 |
+
"id": "no_assertions",
|
| 593 |
+
"message": "pytest test contains no assert statements",
|
| 594 |
+
"path": "eval/tests/test_repack.py",
|
| 595 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 596 |
+
"severity": "error",
|
| 597 |
+
"stage": "static_lint"
|
| 598 |
+
}
|
| 599 |
+
]
|
| 600 |
+
}
|
| 601 |
+
],
|
| 602 |
+
"tests": [
|
| 603 |
+
"eval.tests.test_action.test_action_output_line_order",
|
| 604 |
+
"eval.tests.test_action.test_age_80_boundary_large_value",
|
| 605 |
+
"eval.tests.test_action.test_age_negative_omits_age_line",
|
| 606 |
+
"eval.tests.test_action.test_age_positive_prints_age_line",
|
| 607 |
+
"eval.tests.test_action.test_age_zero_boundary_omits_age_line",
|
| 608 |
+
"eval.tests.test_action.test_all_flags_together_full_output",
|
| 609 |
+
"eval.tests.test_action.test_awesome_flag_adds_line",
|
| 610 |
+
"eval.tests.test_action.test_awesome_one_true",
|
| 611 |
+
"eval.tests.test_action.test_awesome_separate_value_form",
|
| 612 |
+
"eval.tests.test_action.test_awesome_true_lowercase",
|
| 613 |
+
"eval.tests.test_action.test_empty_string_name_falls_back_to_anonymous",
|
| 614 |
+
"eval.tests.test_action.test_name_equals_form",
|
| 615 |
+
"eval.tests.test_action.test_name_flag_sets_greeting",
|
| 616 |
+
"eval.tests.test_action.test_name_with_spaces_preserved",
|
| 617 |
+
"eval.tests.test_action.test_no_args_uses_default_anonymous",
|
| 618 |
+
"eval.tests.test_action.test_positional_token_does_not_break_action",
|
| 619 |
+
"eval.tests.test_boolaliases2.test_awesome_camel_True_with_name",
|
| 620 |
+
"eval.tests.test_boolaliases2.test_awesome_mixed_case_TruE_invalid",
|
| 621 |
+
"eval.tests.test_boolaliases2.test_awesome_numeric_one_with_age",
|
| 622 |
+
"eval.tests.test_boolaliases2.test_awesome_upper_FALSE_then_awesome_off_after_bare",
|
| 623 |
+
"eval.tests.test_boolaliases2.test_awesome_upper_FALSE_with_age",
|
| 624 |
+
"eval.tests.test_boolaliases2.test_awesome_upper_TRUE_with_name_and_age",
|
| 625 |
+
"eval.tests.test_boolaliases2.test_help_camel_False_equals_runs_action",
|
| 626 |
+
"eval.tests.test_boolaliases2.test_help_camel_True_equals_print",
|
| 627 |
+
"eval.tests.test_boolaliases2.test_help_camel_True_then_False_last_wins_action",
|
| 628 |
+
"eval.tests.test_boolaliases2.test_help_mixed_case_TrUe_invalid",
|
| 629 |
+
"eval.tests.test_boolaliases2.test_help_numeric_one_equals_print",
|
| 630 |
+
"eval.tests.test_boolaliases2.test_help_upper_FALSE_equals_then_bare_help_last_wins",
|
| 631 |
+
"eval.tests.test_boolaliases2.test_help_upper_F_equals_runs_action",
|
| 632 |
+
"eval.tests.test_boolaliases2.test_help_upper_TRUE_equals_print",
|
| 633 |
+
"eval.tests.test_boolaliases2.test_help_upper_T_equals_print",
|
| 634 |
+
"eval.tests.test_boolaliases2.test_help_yes_word_invalid",
|
| 635 |
+
"eval.tests.test_byteseq.test_age_hex_zero_literal_suppressed",
|
| 636 |
+
"eval.tests.test_byteseq.test_age_incomplete_binary_equals_form_error",
|
| 637 |
+
"eval.tests.test_byteseq.test_age_lean_octal_seven_boundary",
|
| 638 |
+
"eval.tests.test_byteseq.test_age_negative_zero_equals_form_suppressed",
|
| 639 |
+
"eval.tests.test_byteseq.test_age_octal_zero_literal_suppressed",
|
| 640 |
+
"eval.tests.test_byteseq.test_age_plus_hex_zero_equals_form_suppressed",
|
| 641 |
+
"eval.tests.test_byteseq.test_age_uppercase_hex_digit",
|
| 642 |
+
"eval.tests.test_byteseq.test_double_terminator_positional_runs_action",
|
| 643 |
+
"eval.tests.test_byteseq.test_empty_argv_element_runs_action",
|
| 644 |
+
"eval.tests.test_byteseq.test_help_equals_empty_value_error",
|
| 645 |
+
"eval.tests.test_byteseq.test_help_invalid_bool_value_error",
|
| 646 |
+
"eval.tests.test_byteseq.test_lone_dash_positional_runs_action",
|
| 647 |
+
"eval.tests.test_byteseq.test_name_preserves_embedded_newline",
|
| 648 |
+
"eval.tests.test_byteseq.test_name_preserves_embedded_tab",
|
| 649 |
+
"eval.tests.test_byteseq.test_name_whitespace_only_value",
|
| 650 |
+
"eval.tests.test_edge.test_age_double_dash_equals_form",
|
| 651 |
+
"eval.tests.test_edge.test_age_negative_value_equals_form",
|
| 652 |
+
"eval.tests.test_edge.test_age_plus_signed_value",
|
| 653 |
+
"eval.tests.test_edge.test_bool_false_alias_F",
|
| 654 |
+
"eval.tests.test_edge.test_bool_false_alias_False",
|
| 655 |
+
"eval.tests.test_edge.test_bool_false_alias_f",
|
| 656 |
+
"eval.tests.test_edge.test_bool_true_alias_True",
|
| 657 |
+
"eval.tests.test_edge.test_bool_true_alias_t",
|
| 658 |
+
"eval.tests.test_edge.test_bool_true_alias_upper_T",
|
| 659 |
+
"eval.tests.test_edge.test_double_dash_double_dash_name_form_equivalent",
|
| 660 |
+
"eval.tests.test_edge.test_double_dash_mixed_flags_reparse_all",
|
| 661 |
+
"eval.tests.test_edge.test_double_dash_then_age_reparses",
|
| 662 |
+
"eval.tests.test_edge.test_double_dash_then_awesome_reparses",
|
| 663 |
+
"eval.tests.test_edge.test_double_dash_then_help_prints_help",
|
| 664 |
+
"eval.tests.test_edge.test_double_dash_then_name_reparses",
|
| 665 |
+
"eval.tests.test_edge.test_double_dash_then_plain_positional_runs_action",
|
| 666 |
+
"eval.tests.test_edge.test_double_dash_then_single_dash_help_prints_help",
|
| 667 |
+
"eval.tests.test_edge.test_lone_double_dash_runs_action",
|
| 668 |
+
"eval.tests.test_edge.test_name_value_is_single_equals",
|
| 669 |
+
"eval.tests.test_edge.test_string_consumes_double_dash_as_value",
|
| 670 |
+
"eval.tests.test_edge.test_string_consumes_double_dash_then_other_flags_parse",
|
| 671 |
+
"eval.tests.test_edge.test_terminator_at_end_keeps_prior_flags",
|
| 672 |
+
"eval.tests.test_edge.test_terminator_mid_sequence_reparses_tail",
|
| 673 |
+
"eval.tests.test_edge.test_two_equals_in_name_keeps_tail",
|
| 674 |
+
"eval.tests.test_errors.test_double_dash_boundary_positional_is_silent",
|
| 675 |
+
"eval.tests.test_errors.test_double_dash_then_double_dash_flag_is_silent",
|
| 676 |
+
"eval.tests.test_errors.test_empty_bool_value_equals_form_is_silent",
|
| 677 |
+
"eval.tests.test_errors.test_empty_int_value_equals_form_is_silent",
|
| 678 |
+
"eval.tests.test_errors.test_extra_leading_dash_positional_is_silent",
|
| 679 |
+
"eval.tests.test_errors.test_float_for_int_flag_is_silent",
|
| 680 |
+
"eval.tests.test_errors.test_invalid_bool_long_word_is_silent",
|
| 681 |
+
"eval.tests.test_errors.test_invalid_bool_word_in_equals_form_is_silent",
|
| 682 |
+
"eval.tests.test_errors.test_invalid_int_alphanumeric_is_silent",
|
| 683 |
+
"eval.tests.test_errors.test_invalid_int_value_is_silent",
|
| 684 |
+
"eval.tests.test_errors.test_missing_value_for_int_flag_is_silent",
|
| 685 |
+
"eval.tests.test_errors.test_missing_value_for_string_flag_is_silent",
|
| 686 |
+
"eval.tests.test_errors.test_parse_error_preempts_help_is_silent",
|
| 687 |
+
"eval.tests.test_errors.test_unknown_flag_after_valid_flag_is_silent",
|
| 688 |
+
"eval.tests.test_errors.test_unknown_flag_before_help_is_silent",
|
| 689 |
+
"eval.tests.test_errors.test_unknown_flag_equals_form_is_silent",
|
| 690 |
+
"eval.tests.test_errors.test_unknown_flag_is_silent",
|
| 691 |
+
"eval.tests.test_errors.test_unknown_flag_with_value_is_silent",
|
| 692 |
+
"eval.tests.test_flags.test_age_equals_form",
|
| 693 |
+
"eval.tests.test_flags.test_awesome_off_then_on_last_wins",
|
| 694 |
+
"eval.tests.test_flags.test_awesome_on_then_off_last_wins",
|
| 695 |
+
"eval.tests.test_flags.test_awesome_separate_value_is_positional",
|
| 696 |
+
"eval.tests.test_flags.test_awesome_zero_parsed_false",
|
| 697 |
+
"eval.tests.test_flags.test_every_flag_present_yields_one_line_each",
|
| 698 |
+
"eval.tests.test_flags.test_flags_out_of_order",
|
| 699 |
+
"eval.tests.test_flags.test_mixed_equals_and_space_forms",
|
| 700 |
+
"eval.tests.test_flags.test_name_consumes_flag_like_token_as_value",
|
| 701 |
+
"eval.tests.test_flags.test_positional_tail_does_not_consume_flags",
|
| 702 |
+
"eval.tests.test_flags.test_repeated_age_last_wins",
|
| 703 |
+
"eval.tests.test_flags.test_repeated_name_last_wins",
|
| 704 |
+
"eval.tests.test_flags.test_triple_dash_equals_alias_forms",
|
| 705 |
+
"eval.tests.test_help.test_h_short_alias_is_not_registered",
|
| 706 |
+
"eval.tests.test_help.test_help_banner_shows_name_version_and_description",
|
| 707 |
+
"eval.tests.test_help.test_help_ends_with_trailing_blank_line",
|
| 708 |
+
"eval.tests.test_help.test_help_lists_every_registered_flag",
|
| 709 |
+
"eval.tests.test_help.test_help_lists_flags_in_alphabetical_order",
|
| 710 |
+
"eval.tests.test_help.test_help_long_double_dash_prints_full_help",
|
| 711 |
+
"eval.tests.test_help.test_help_precedence_suppresses_action",
|
| 712 |
+
"eval.tests.test_help.test_help_precedence_when_help_leads",
|
| 713 |
+
"eval.tests.test_help.test_help_precedence_with_all_flags_suppresses_action",
|
| 714 |
+
"eval.tests.test_help.test_help_prints_banner_then_heading",
|
| 715 |
+
"eval.tests.test_help.test_help_single_dash_prints_full_help",
|
| 716 |
+
"eval.tests.test_help.test_parse_error_before_help_aborts_help",
|
| 717 |
+
"eval.tests.test_helpbool.test_help_equals_false_runs_action",
|
| 718 |
+
"eval.tests.test_helpbool.test_help_off_then_help_last_wins_true",
|
| 719 |
+
"eval.tests.test_helpbool.test_help_off_with_all_other_flags",
|
| 720 |
+
"eval.tests.test_helpbool.test_help_on_then_off_last_wins_false",
|
| 721 |
+
"eval.tests.test_helpbool.test_help_one_space_true_prints_help",
|
| 722 |
+
"eval.tests.test_helpbool.test_help_single_f_off",
|
| 723 |
+
"eval.tests.test_helpbool.test_help_t_prints_help",
|
| 724 |
+
"eval.tests.test_helpbool.test_help_true_prints_help",
|
| 725 |
+
"eval.tests.test_helpbool.test_help_upper_false_runs_action",
|
| 726 |
+
"eval.tests.test_helpbool.test_help_zero_off",
|
| 727 |
+
"eval.tests.test_numparse.test_age_binary_auto_detect",
|
| 728 |
+
"eval.tests.test_numparse.test_age_binary_equals_form",
|
| 729 |
+
"eval.tests.test_numparse.test_age_binary_invalid_digit_is_error",
|
| 730 |
+
"eval.tests.test_numparse.test_age_binary_zero_value",
|
| 731 |
+
"eval.tests.test_numparse.test_age_hex_auto_detect_space",
|
| 732 |
+
"eval.tests.test_numparse.test_age_hex_equals_form",
|
| 733 |
+
"eval.tests.test_numparse.test_age_hex_invalid_digit_is_error",
|
| 734 |
+
"eval.tests.test_numparse.test_age_hex_lower_nibble_equals_form",
|
| 735 |
+
"eval.tests.test_numparse.test_age_hex_trailing_junk_is_error",
|
| 736 |
+
"eval.tests.test_numparse.test_age_hex_upper_prefix",
|
| 737 |
+
"eval.tests.test_numparse.test_age_incomplete_binary_prefix_is_error",
|
| 738 |
+
"eval.tests.test_numparse.test_age_incomplete_hex_is_error",
|
| 739 |
+
"eval.tests.test_numparse.test_age_incomplete_octal_prefix_is_error",
|
| 740 |
+
"eval.tests.test_numparse.test_age_incomplete_upper_hex_is_error",
|
| 741 |
+
"eval.tests.test_numparse.test_age_int64_max_boundary",
|
| 742 |
+
"eval.tests.test_numparse.test_age_int64_min_boundary_suppressed",
|
| 743 |
+
"eval.tests.test_numparse.test_age_int64_overflow_is_error",
|
| 744 |
+
"eval.tests.test_numparse.test_age_int64_underflow_is_error",
|
| 745 |
+
"eval.tests.test_numparse.test_age_leading_underscore_is_error",
|
| 746 |
+
"eval.tests.test_numparse.test_age_leading_zero_invalid_octal_is_error",
|
| 747 |
+
"eval.tests.test_numparse.test_age_leading_zeros_zero_value",
|
| 748 |
+
"eval.tests.test_numparse.test_age_leaning_octal_nine_is_error",
|
| 749 |
+
"eval.tests.test_numparse.test_age_negative_hex_parses_but_suppressed",
|
| 750 |
+
"eval.tests.test_numparse.test_age_negative_octal_parses_but_suppressed",
|
| 751 |
+
"eval.tests.test_numparse.test_age_negative_zero_no_line",
|
| 752 |
+
"eval.tests.test_numparse.test_age_octal_equals_form",
|
| 753 |
+
"eval.tests.test_numparse.test_age_octal_explicit_lower",
|
| 754 |
+
"eval.tests.test_numparse.test_age_octal_explicit_upper",
|
| 755 |
+
"eval.tests.test_numparse.test_age_octal_invalid_digit_is_error",
|
| 756 |
+
"eval.tests.test_numparse.test_age_octal_leaning_leading_zero",
|
| 757 |
+
"eval.tests.test_numparse.test_age_plus_hex",
|
| 758 |
+
"eval.tests.test_numparse.test_age_plus_zero_no_line",
|
| 759 |
+
"eval.tests.test_numparse.test_age_trailing_underscore_is_error",
|
| 760 |
+
"eval.tests.test_numparse.test_age_underscore_after_hex_prefix",
|
| 761 |
+
"eval.tests.test_numparse.test_age_underscore_equals_form",
|
| 762 |
+
"eval.tests.test_numparse.test_age_underscore_in_binary_digits",
|
| 763 |
+
"eval.tests.test_numparse.test_age_underscore_in_hex_digits",
|
| 764 |
+
"eval.tests.test_numparse.test_age_underscore_small",
|
| 765 |
+
"eval.tests.test_numparse.test_age_underscore_thousands",
|
| 766 |
+
"eval.tests.test_repack.test_age_bad_literal_after_leading_positional_is_error",
|
| 767 |
+
"eval.tests.test_repack.test_age_then_name_swallows_awesome",
|
| 768 |
+
"eval.tests.test_repack.test_awesome_name_terminator_tail",
|
| 769 |
+
"eval.tests.test_repack.test_awesome_then_name_swallows_age",
|
| 770 |
+
"eval.tests.test_repack.test_double_terminator_reparses_both_flag_groups",
|
| 771 |
+
"eval.tests.test_repack.test_help_precedence_with_leading_positional",
|
| 772 |
+
"eval.tests.test_repack.test_help_precedence_with_trailing_positional",
|
| 773 |
+
"eval.tests.test_repack.test_help_true_then_false_mid_last_wins",
|
| 774 |
+
"eval.tests.test_repack.test_interleaved_positionals_and_all_flags",
|
| 775 |
+
"eval.tests.test_repack.test_leading_positional_then_flag",
|
| 776 |
+
"eval.tests.test_repack.test_leading_positional_then_hex_age",
|
| 777 |
+
"eval.tests.test_repack.test_long_digit_string_name_preserved",
|
| 778 |
+
"eval.tests.test_repack.test_name_consumes_age_flag_then_age_parses",
|
| 779 |
+
"eval.tests.test_repack.test_name_consumes_age_then_awesome_then_age",
|
| 780 |
+
"eval.tests.test_repack.test_name_consumes_negative_number_as_value",
|
| 781 |
+
"eval.tests.test_repack.test_name_consumes_single_age_flag_suppresses_age",
|
| 782 |
+
"eval.tests.test_repack.test_name_equals_form_value_is_terminator",
|
| 783 |
+
"eval.tests.test_repack.test_name_swallows_first_terminator_second_reparses",
|
| 784 |
+
"eval.tests.test_repack.test_name_swallows_help_as_value",
|
| 785 |
+
"eval.tests.test_repack.test_name_swallows_unknown_flag_as_value",
|
| 786 |
+
"eval.tests.test_repack.test_positional_after_first_age_then_second_age_wins",
|
| 787 |
+
"eval.tests.test_repack.test_positional_terminator_help_does_not_trigger",
|
| 788 |
+
"eval.tests.test_repack.test_positional_then_negative_hex_age_suppressed",
|
| 789 |
+
"eval.tests.test_repack.test_positionals_with_repeated_age_last_wins",
|
| 790 |
+
"eval.tests.test_repack.test_positionals_wrapping_flag",
|
| 791 |
+
"eval.tests.test_repack.test_repacked_positional_does_not_break_error_contract",
|
| 792 |
+
"eval.tests.test_repack.test_terminator_positional_terminator",
|
| 793 |
+
"eval.tests.test_repack.test_three_positionals_around_single_age",
|
| 794 |
+
"eval.tests.test_repack.test_triple_terminator_runs_action",
|
| 795 |
+
"eval.tests.test_repack.test_two_positionals_then_bool_flag",
|
| 796 |
+
"eval.tests.test_repack.test_two_positionals_then_multi_equals_name",
|
| 797 |
+
"eval.tests.test_textedge.test_name_case_sensitive_after_valid_flag",
|
| 798 |
+
"eval.tests.test_textedge.test_name_equals_form_preserves_mixed_case",
|
| 799 |
+
"eval.tests.test_textedge.test_name_flag_is_case_sensitive_all_upper",
|
| 800 |
+
"eval.tests.test_textedge.test_name_flag_is_case_sensitive_upper_initial",
|
| 801 |
+
"eval.tests.test_textedge.test_name_value_preserves_leading_whitespace",
|
| 802 |
+
"eval.tests.test_textedge.test_name_value_preserves_mixed_case",
|
| 803 |
+
"eval.tests.test_textedge.test_name_value_preserves_multibyte_emoji",
|
| 804 |
+
"eval.tests.test_textedge.test_name_value_preserves_punctuation",
|
| 805 |
+
"eval.tests.test_textedge.test_name_value_preserves_tab",
|
| 806 |
+
"eval.tests.test_textedge.test_name_value_preserves_unicode"
|
| 807 |
+
]
|
| 808 |
+
}
|
| 809 |
+
},
|
| 810 |
+
"commit": "a8d9462bce754819cbd5a5596f22d68b3f318fb6",
|
| 811 |
+
"data_source": "synthetic_programgym",
|
| 812 |
+
"difficulty": "",
|
| 813 |
+
"difficulty_score": null,
|
| 814 |
+
"eval_clean_hashes": [
|
| 815 |
+
"d19083850cafaba17fd5b6a229d7b0365067f60c865f1c30f4d365e9f2045368"
|
| 816 |
+
],
|
| 817 |
+
"input_record": {
|
| 818 |
+
"commit": "a8d9462bce754819cbd5a5596f22d68b3f318fb6",
|
| 819 |
+
"commits": 86,
|
| 820 |
+
"contributors": 8,
|
| 821 |
+
"difficulty": "easy",
|
| 822 |
+
"difficulty_code_lines": 1526,
|
| 823 |
+
"difficulty_has_tests": false,
|
| 824 |
+
"difficulty_product_code_lines": 1526,
|
| 825 |
+
"difficulty_runtime_deps": 0,
|
| 826 |
+
"difficulty_score": 1.1835545336188615,
|
| 827 |
+
"difficulty_test_code_lines": 1500,
|
| 828 |
+
"full_name": "leaanthony/clir",
|
| 829 |
+
"github_stars": 201,
|
| 830 |
+
"input_joern_zip": "go_joern/leaanthony__clir.zip",
|
| 831 |
+
"joern_status": true,
|
| 832 |
+
"joern_time": 11.096248167101294,
|
| 833 |
+
"language": "go",
|
| 834 |
+
"pb_match": [
|
| 835 |
+
{
|
| 836 |
+
"pb_fullname": "segmentio/chamber",
|
| 837 |
+
"rank": 445,
|
| 838 |
+
"similarity": 0.5223026871681213
|
| 839 |
+
},
|
| 840 |
+
{
|
| 841 |
+
"pb_fullname": "sclevine/yj",
|
| 842 |
+
"rank": 56,
|
| 843 |
+
"similarity": 0.5593565702438354
|
| 844 |
+
},
|
| 845 |
+
{
|
| 846 |
+
"pb_fullname": "antonmedv/walk",
|
| 847 |
+
"rank": 82,
|
| 848 |
+
"similarity": 0.5664258599281311
|
| 849 |
+
},
|
| 850 |
+
{
|
| 851 |
+
"pb_fullname": "peco/peco",
|
| 852 |
+
"rank": 35,
|
| 853 |
+
"similarity": 0.5712865591049194
|
| 854 |
+
},
|
| 855 |
+
{
|
| 856 |
+
"pb_fullname": "mikefarah/yq",
|
| 857 |
+
"rank": 48,
|
| 858 |
+
"similarity": 0.6126861572265625
|
| 859 |
+
},
|
| 860 |
+
{
|
| 861 |
+
"pb_fullname": "rs/curlie",
|
| 862 |
+
"rank": 24,
|
| 863 |
+
"similarity": 0.5984025001525879
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"pb_fullname": "johnkerl/miller",
|
| 867 |
+
"rank": 70,
|
| 868 |
+
"similarity": 0.5459004640579224
|
| 869 |
+
},
|
| 870 |
+
{
|
| 871 |
+
"pb_fullname": "guumaster/hostctl",
|
| 872 |
+
"rank": 476,
|
| 873 |
+
"similarity": 0.46685469150543213
|
| 874 |
+
},
|
| 875 |
+
{
|
| 876 |
+
"pb_fullname": "JohannesKaufmann/html-to-markdown",
|
| 877 |
+
"rank": 220,
|
| 878 |
+
"similarity": 0.5178549885749817
|
| 879 |
+
},
|
| 880 |
+
{
|
| 881 |
+
"pb_fullname": "alecthomas/chroma",
|
| 882 |
+
"rank": 429,
|
| 883 |
+
"similarity": 0.49289026856422424
|
| 884 |
+
},
|
| 885 |
+
{
|
| 886 |
+
"pb_fullname": "gabotechs/dep-tree",
|
| 887 |
+
"rank": 219,
|
| 888 |
+
"similarity": 0.5477045774459839
|
| 889 |
+
},
|
| 890 |
+
{
|
| 891 |
+
"pb_fullname": "jesseduffield/lazygit",
|
| 892 |
+
"rank": 130,
|
| 893 |
+
"similarity": 0.591535210609436
|
| 894 |
+
},
|
| 895 |
+
{
|
| 896 |
+
"pb_fullname": "FiloSottile/age",
|
| 897 |
+
"rank": 108,
|
| 898 |
+
"similarity": 0.5397807955741882
|
| 899 |
+
},
|
| 900 |
+
{
|
| 901 |
+
"pb_fullname": "boyter/scc",
|
| 902 |
+
"rank": 131,
|
| 903 |
+
"similarity": 0.5653841495513916
|
| 904 |
+
},
|
| 905 |
+
{
|
| 906 |
+
"pb_fullname": "rs/jplot",
|
| 907 |
+
"rank": 802,
|
| 908 |
+
"similarity": 0.4832947254180908
|
| 909 |
+
},
|
| 910 |
+
{
|
| 911 |
+
"pb_fullname": "multiprocessio/dsq",
|
| 912 |
+
"rank": 645,
|
| 913 |
+
"similarity": 0.47211891412734985
|
| 914 |
+
},
|
| 915 |
+
{
|
| 916 |
+
"pb_fullname": "skeema/skeema",
|
| 917 |
+
"rank": 559,
|
| 918 |
+
"similarity": 0.5024837851524353
|
| 919 |
+
},
|
| 920 |
+
{
|
| 921 |
+
"pb_fullname": "naggie/dstask",
|
| 922 |
+
"rank": 400,
|
| 923 |
+
"similarity": 0.5034153461456299
|
| 924 |
+
},
|
| 925 |
+
{
|
| 926 |
+
"pb_fullname": "astaxie/bat",
|
| 927 |
+
"rank": 55,
|
| 928 |
+
"similarity": 0.617838978767395
|
| 929 |
+
},
|
| 930 |
+
{
|
| 931 |
+
"pb_fullname": "noborus/trdsql",
|
| 932 |
+
"rank": 220,
|
| 933 |
+
"similarity": 0.5411620736122131
|
| 934 |
+
},
|
| 935 |
+
{
|
| 936 |
+
"pb_fullname": "noborus/ov",
|
| 937 |
+
"rank": 197,
|
| 938 |
+
"similarity": 0.5524871945381165
|
| 939 |
+
},
|
| 940 |
+
{
|
| 941 |
+
"pb_fullname": "sibprogrammer/xq",
|
| 942 |
+
"rank": 186,
|
| 943 |
+
"similarity": 0.526741087436676
|
| 944 |
+
},
|
| 945 |
+
{
|
| 946 |
+
"pb_fullname": "sheepla/pingu",
|
| 947 |
+
"rank": 100,
|
| 948 |
+
"similarity": 0.5440906286239624
|
| 949 |
+
},
|
| 950 |
+
{
|
| 951 |
+
"pb_fullname": "raviqqe/muffet",
|
| 952 |
+
"rank": 634,
|
| 953 |
+
"similarity": 0.47300854325294495
|
| 954 |
+
},
|
| 955 |
+
{
|
| 956 |
+
"pb_fullname": "eliukblau/pixterm",
|
| 957 |
+
"rank": 72,
|
| 958 |
+
"similarity": 0.5884069204330444
|
| 959 |
+
},
|
| 960 |
+
{
|
| 961 |
+
"pb_fullname": "TheZoraiz/ascii-image-converter",
|
| 962 |
+
"rank": 47,
|
| 963 |
+
"similarity": 0.5621269941329956
|
| 964 |
+
},
|
| 965 |
+
{
|
| 966 |
+
"pb_fullname": "cheat/cheat",
|
| 967 |
+
"rank": 18,
|
| 968 |
+
"similarity": 0.6155025959014893
|
| 969 |
+
},
|
| 970 |
+
{
|
| 971 |
+
"pb_fullname": "ariga/atlas",
|
| 972 |
+
"rank": 633,
|
| 973 |
+
"similarity": 0.5070767402648926
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"pb_fullname": "psampaz/go-mod-outdated",
|
| 977 |
+
"rank": 597,
|
| 978 |
+
"similarity": 0.47690922021865845
|
| 979 |
+
},
|
| 980 |
+
{
|
| 981 |
+
"pb_fullname": "antonmedv/fx",
|
| 982 |
+
"rank": 95,
|
| 983 |
+
"similarity": 0.5539212226867676
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"pb_fullname": "dundee/gdu",
|
| 987 |
+
"rank": 100,
|
| 988 |
+
"similarity": 0.5671482086181641
|
| 989 |
+
},
|
| 990 |
+
{
|
| 991 |
+
"pb_fullname": "tomnomnom/gron",
|
| 992 |
+
"rank": 144,
|
| 993 |
+
"similarity": 0.5315221548080444
|
| 994 |
+
},
|
| 995 |
+
{
|
| 996 |
+
"pb_fullname": "junegunn/fzf",
|
| 997 |
+
"rank": 142,
|
| 998 |
+
"similarity": 0.527397871017456
|
| 999 |
+
},
|
| 1000 |
+
{
|
| 1001 |
+
"pb_fullname": "zk-org/zk",
|
| 1002 |
+
"rank": 214,
|
| 1003 |
+
"similarity": 0.5784774422645569
|
| 1004 |
+
}
|
| 1005 |
+
],
|
| 1006 |
+
"repo_age": 6.71,
|
| 1007 |
+
"repo_path": "go/leaanthony__clir",
|
| 1008 |
+
"source": "commit:a8d9462bce754819cbd5a5596f22d68b3f318fb6",
|
| 1009 |
+
"status": "done",
|
| 1010 |
+
"url": "https://github.com/leaanthony/clir"
|
| 1011 |
+
},
|
| 1012 |
+
"instance_id": "leaanthony__clir.a8d9462",
|
| 1013 |
+
"language": "go",
|
| 1014 |
+
"module_iterations": [],
|
| 1015 |
+
"repository": "leaanthony/clir"
|
| 1016 |
+
}
|
leaanthony--clir.a8d9462/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
|
leaanthony--clir.a8d9462/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bee33037eca9558ad840b7b0d769e0e19d44863cd72db58b140bdd0691da1b1b
|
| 3 |
+
size 19415
|
leandros--metareflect.0208fdd/environment/Dockerfile
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV PAGER=cat
|
| 24 |
+
ENV MANPAGER=cat
|
| 25 |
+
ENV LESS=-R
|
| 26 |
+
ENV TQDM_DISABLE=1
|
| 27 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
|
| 28 |
+
ARG CMAKE_VERSION=3.31.10
|
| 29 |
+
ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
|
| 30 |
+
RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 31 |
+
COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
|
| 32 |
+
ARG GCC_VERSION=13.3.0
|
| 33 |
+
RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
|
| 34 |
+
WORKDIR /workspace
|
| 35 |
+
ADD workspace.tar.gz /workspace/
|
| 36 |
+
COPY executable /workspace/executable
|
| 37 |
+
COPY download.sh /workspace/download.sh
|
| 38 |
+
RUN chmod 755 /workspace/download.sh
|
| 39 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 40 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 41 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 42 |
+
&& rm -f /workspace/download.sh \
|
| 43 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 44 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 45 |
+
RUN chmod 111 /workspace/executable
|
| 46 |
+
WORKDIR /workspace
|
| 47 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 48 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 49 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 50 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 51 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 52 |
+
RUN mkdir -p /home/agent \
|
| 53 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 54 |
+
&& chown agent:agent /workspace/executable \
|
| 55 |
+
&& chmod 111 /workspace/executable
|
| 56 |
+
ENV HOME=/home/agent
|
| 57 |
+
WORKDIR /workspace
|
leandros--metareflect.0208fdd/environment/download.sh
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh -- ProgramGym download stage for Leandros/metareflect.
|
| 4 |
+
#
|
| 5 |
+
# This stage is a standalone dependency-preparation step. It is intended to be
|
| 6 |
+
# SOURCED (`source /source_ro/download.sh`) rather than executed, so it must be
|
| 7 |
+
# valid in shell-source mode: it keeps exported variables in the current shell,
|
| 8 |
+
# never uses positional arguments, and returns a nonzero status on failure
|
| 9 |
+
# instead of calling exit() in normal control flow.
|
| 10 |
+
#
|
| 11 |
+
# There is no build or compile step here.
|
| 12 |
+
#
|
| 13 |
+
# The selected target is the repository-provided demo `metareflect/main.cxx`,
|
| 14 |
+
# which compiles from the runtime headers plus metareflect/metareflect.cxx.
|
| 15 |
+
# It needs no third-party libraries, manifests, lockfiles, or source archives.
|
| 16 |
+
# The only dependencies are the standard C/C++ toolchain and make/binutils,
|
| 17 |
+
# which are already present in the base image (gcc/g++ 13.3.0, make 4.3,
|
| 18 |
+
# binutils 2.38). This script therefore verifies those tools exist and exports
|
| 19 |
+
# the compiler variables the offline build stage relies on.
|
| 20 |
+
|
| 21 |
+
rc=0
|
| 22 |
+
|
| 23 |
+
# A sourced script cannot exit() in normal control flow; on failure it must
|
| 24 |
+
# return a nonzero status. The explicit branch below only calls exit() when
|
| 25 |
+
# this file is run as a standalone program (bash download.sh), never when it is
|
| 26 |
+
# sourced, so source-mode never exits the user's shell.
|
| 27 |
+
fail_download_step() {
|
| 28 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 29 |
+
return 1
|
| 30 |
+
else
|
| 31 |
+
exit 1
|
| 32 |
+
fi
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
# ---------------------------------------------------------------------------
|
| 36 |
+
# 1. Verify the C/C++ toolchain and make/binutils.
|
| 37 |
+
# ---------------------------------------------------------------------------
|
| 38 |
+
# The base image already ships gcc/g++ 13.3.0, make 4.3 and binutils. We only
|
| 39 |
+
# verify each required tool is on PATH and record which is missing; we never
|
| 40 |
+
# invoke a compiler (`gcc`, `g++`, or the like) to check it. This stage performs
|
| 41 |
+
# no compilation, linking, packaging, or test execution.
|
| 42 |
+
|
| 43 |
+
CCPATH=""
|
| 44 |
+
CXXPATH=""
|
| 45 |
+
MAKEPATH=""
|
| 46 |
+
|
| 47 |
+
if command -v gcc; then
|
| 48 |
+
CCPATH="$(command -v gcc)"
|
| 49 |
+
else
|
| 50 |
+
echo "error: gcc not found on PATH"
|
| 51 |
+
fi
|
| 52 |
+
|
| 53 |
+
if command -v g++; then
|
| 54 |
+
CXXPATH="$(command -v g++)"
|
| 55 |
+
else
|
| 56 |
+
echo "error: g++ not found on PATH"
|
| 57 |
+
fi
|
| 58 |
+
|
| 59 |
+
if command -v make; then
|
| 60 |
+
MAKEPATH="$(command -v make)"
|
| 61 |
+
else
|
| 62 |
+
echo "error: make not found on PATH"
|
| 63 |
+
fi
|
| 64 |
+
|
| 65 |
+
# ---------------------------------------------------------------------------
|
| 66 |
+
# 2. Export the toolchain variables the offline build stage relies on.
|
| 67 |
+
# ---------------------------------------------------------------------------
|
| 68 |
+
export CC="$CCPATH"
|
| 69 |
+
export CXX="$CXXPATH"
|
| 70 |
+
export MAKE="$MAKEPATH"
|
| 71 |
+
|
| 72 |
+
# ---------------------------------------------------------------------------
|
| 73 |
+
# 3. Any missing required tool causes this (sourced) script to report failure.
|
| 74 |
+
# ---------------------------------------------------------------------------
|
| 75 |
+
if [ -z "$CXXPATH" ] || [ -z "$CCPATH" ] || [ -z "$MAKEPATH" ]; then
|
| 76 |
+
echo "error: one or more required tools (gcc, g++, make) are missing"
|
| 77 |
+
fail_download_step
|
| 78 |
+
rc=$?
|
| 79 |
+
else
|
| 80 |
+
echo "download.sh: ready. g++=$CXXPATH gcc=$CCPATH make=$MAKEPATH"
|
| 81 |
+
echo "download.sh: no external libraries, manifests, or source archives required for the selected target."
|
| 82 |
+
fi
|
| 83 |
+
|
| 84 |
+
return "$rc"
|
leandros--metareflect.0208fdd/environment/executable
ADDED
|
Binary file (64.5 kB). View file
|
|
|
leandros--metareflect.0208fdd/environment/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
source /workspace/download.sh
|
| 6 |
+
set +a
|
| 7 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 8 |
+
import os
|
| 9 |
+
import shlex
|
| 10 |
+
|
| 11 |
+
ignored = {
|
| 12 |
+
"ALL_PROXY",
|
| 13 |
+
"HTTP_PROXY",
|
| 14 |
+
"HTTPS_PROXY",
|
| 15 |
+
"NO_PROXY",
|
| 16 |
+
"OLDPWD",
|
| 17 |
+
"PIP_PROXY",
|
| 18 |
+
"PWD",
|
| 19 |
+
"SHLVL",
|
| 20 |
+
"_",
|
| 21 |
+
"all_proxy",
|
| 22 |
+
"http_proxy",
|
| 23 |
+
"https_proxy",
|
| 24 |
+
"no_proxy",
|
| 25 |
+
"pip_proxy",
|
| 26 |
+
}
|
| 27 |
+
for key in sorted(os.environ):
|
| 28 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 29 |
+
continue
|
| 30 |
+
value = os.environ[key]
|
| 31 |
+
if "\n" in value:
|
| 32 |
+
continue
|
| 33 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 34 |
+
PY
|
leandros--metareflect.0208fdd/environment/programgym-gcc13.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5f67d082b220036c564f110ec9a2dffb736597685d2424761993561d836ebf88
|
| 3 |
+
size 146620404
|
leandros--metareflect.0208fdd/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7efbabddd4feaa8760778b708ec63b80303458e9e90d15511dc475ad8bf246a4
|
| 3 |
+
size 15698
|
leandros--metareflect.0208fdd/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
|
leandros--metareflect.0208fdd/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
|
leandros--metareflect.0208fdd/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/leandros--metareflect.0208fdd"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for Leandros/metareflect"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "cpp"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "Leandros__metareflect.0208fdd"
|
| 32 |
+
repository = "Leandros/metareflect"
|
| 33 |
+
commit = "0208fdd4fc0ea1081ae2ff4c3bfce161305a7423"
|
| 34 |
+
language = "cpp"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.4261858252445112
|
| 37 |
+
test_branches = 3
|
| 38 |
+
test_count = 474
|
| 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"
|
leandros--metareflect.0208fdd/tests/Dockerfile
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM ubuntu:22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV PAGER=cat
|
| 24 |
+
ENV MANPAGER=cat
|
| 25 |
+
ENV LESS=-R
|
| 26 |
+
ENV TQDM_DISABLE=1
|
| 27 |
+
RUN apt-get update && apt-get install -y --no-install-recommends bash build-essential ca-certificates git make pkg-config python3 python3-pip autoconf automake gettext file binutils g++ libtool libncurses-dev meson ninja-build unzip wget curl xz-utils bzip2 zip zstd patch python3-pytest python3-pytest-xdist python3-coverage tar && rm -rf /var/lib/apt/lists/*
|
| 28 |
+
ARG CMAKE_VERSION=3.31.10
|
| 29 |
+
ARG CMAKE_PYPI_INDEX_URL=https://pypi.org/simple
|
| 30 |
+
RUN set -eux; python3 -m pip install --no-cache-dir --index-url "${CMAKE_PYPI_INDEX_URL}" --trusted-host "mirror.example.invalid" "cmake==${CMAKE_VERSION}"; cmake --version; ctest --version; cpack --version
|
| 31 |
+
COPY programgym-gcc13.tar.gz /tmp/gcc.tar.gz
|
| 32 |
+
ARG GCC_VERSION=13.3.0
|
| 33 |
+
RUN set -eux; ARCH="$(dpkg --print-architecture)"; case "${ARCH}" in amd64) GCC_ARCH="x64" ;; arm64) GCC_ARCH="arm64" ;; *) echo "unsupported architecture for GCC 13: ${ARCH}" >&2; exit 1 ;; esac; if [ "${GCC_ARCH}" != "x64" ]; then echo "the staged GCC 13 archive is for x64, got ${GCC_ARCH}" >&2; exit 1; fi; rm -rf /opt/gcc-13; mkdir -p /opt/gcc-13; tar -xzf /tmp/gcc.tar.gz --strip-components=1 -C /opt/gcc-13; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/c++; ln -sf /opt/gcc-13/bin/gcc /usr/local/bin/gcc-13; ln -sf /opt/gcc-13/bin/g++ /usr/local/bin/g++-13; for PROGRAMGYM_GCOV_TOOL in gcov gcov-dump gcov-tool; do if [ -x "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" ]; then ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/local/bin/${PROGRAMGYM_GCOV_TOOL}-13"; ln -sf "/opt/gcc-13/bin/${PROGRAMGYM_GCOV_TOOL}" "/usr/bin/${PROGRAMGYM_GCOV_TOOL}"; fi; done; ln -sf /opt/gcc-13/bin/gcc /usr/bin/gcc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/g++; ln -sf /opt/gcc-13/bin/gcc /usr/bin/cc; ln -sf /opt/gcc-13/bin/g++ /usr/bin/c++; rm -f /tmp/gcc.tar.gz; gcc --version; g++ --version; gcov --version; command -v gcov-dump >/dev/null && gcov-dump --version | head -n 1 || true
|
| 34 |
+
WORKDIR /workspace
|
| 35 |
+
ADD workspace.tar.gz /workspace/
|
| 36 |
+
COPY executable /workspace/executable
|
| 37 |
+
COPY download.sh /workspace/download.sh
|
| 38 |
+
RUN chmod 755 /workspace/download.sh
|
| 39 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 40 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 41 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 42 |
+
&& rm -f /workspace/download.sh \
|
| 43 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 44 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 45 |
+
RUN chmod 111 /workspace/executable
|
| 46 |
+
WORKDIR /workspace
|
| 47 |
+
# Harbor uses tests/ as the separate verifier build context. Start with the
|
| 48 |
+
# same toolchain as the agent, then remove every cleanroom workspace artifact.
|
| 49 |
+
RUN rm -rf /workspace/* /workspace/.[!.]* 2>/dev/null || true \
|
| 50 |
+
&& mkdir -p /workspace /tests
|
| 51 |
+
|
| 52 |
+
# Synthetic cleanroom Dockerfiles commonly install Ubuntu's pytest-xdist 2.5.0.
|
| 53 |
+
# Installing a newer pytest alone leaves that apt package importable and creates
|
| 54 |
+
# an incompatible mixed apt/pip stack (xdist 2.5 imports the removed py.log).
|
| 55 |
+
# Install and constrain the verifier test runner as one coherent pip toolchain.
|
| 56 |
+
RUN printf 'pytest<9\n' > /etc/pip-constraint.txt
|
| 57 |
+
ENV PIP_CONSTRAINT=/etc/pip-constraint.txt
|
| 58 |
+
RUN python3 -m pip install --no-cache-dir --disable-pip-version-check \
|
| 59 |
+
'pytest<9' 'pytest-xdist>=3,<4' pytest-rerunfailures pytest-timeout
|
| 60 |
+
|
| 61 |
+
COPY test.sh /tests/test.sh
|
| 62 |
+
COPY programgym_evaluator.py /tests/programgym_evaluator.py
|
| 63 |
+
COPY programgym_task.json /tests/programgym_task.json
|
| 64 |
+
COPY blobs/ /tests/blobs/
|
| 65 |
+
RUN chmod +x /tests/test.sh
|
leandros--metareflect.0208fdd/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:5d9164a97baa03b382c0472c65a37078e0a3a9ad1b2f5f175fb00be6fe005d07
|
| 3 |
+
size 17631
|
leandros--metareflect.0208fdd/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:90ef156714fabd9155f367ef11e960425fa6d0718909ab8b0c67718bee235045
|
| 3 |
+
size 21939
|
leandros--metareflect.0208fdd/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:2d849fd431160b38ae1e21fbe7d596fcb3d84f0c185d379f688e6fd085351ea9
|
| 3 |
+
size 29394
|
leandros--metareflect.0208fdd/tests/download.sh
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
#
|
| 3 |
+
# download.sh -- ProgramGym download stage for Leandros/metareflect.
|
| 4 |
+
#
|
| 5 |
+
# This stage is a standalone dependency-preparation step. It is intended to be
|
| 6 |
+
# SOURCED (`source /source_ro/download.sh`) rather than executed, so it must be
|
| 7 |
+
# valid in shell-source mode: it keeps exported variables in the current shell,
|
| 8 |
+
# never uses positional arguments, and returns a nonzero status on failure
|
| 9 |
+
# instead of calling exit() in normal control flow.
|
| 10 |
+
#
|
| 11 |
+
# There is no build or compile step here.
|
| 12 |
+
#
|
| 13 |
+
# The selected target is the repository-provided demo `metareflect/main.cxx`,
|
| 14 |
+
# which compiles from the runtime headers plus metareflect/metareflect.cxx.
|
| 15 |
+
# It needs no third-party libraries, manifests, lockfiles, or source archives.
|
| 16 |
+
# The only dependencies are the standard C/C++ toolchain and make/binutils,
|
| 17 |
+
# which are already present in the base image (gcc/g++ 13.3.0, make 4.3,
|
| 18 |
+
# binutils 2.38). This script therefore verifies those tools exist and exports
|
| 19 |
+
# the compiler variables the offline build stage relies on.
|
| 20 |
+
|
| 21 |
+
rc=0
|
| 22 |
+
|
| 23 |
+
# A sourced script cannot exit() in normal control flow; on failure it must
|
| 24 |
+
# return a nonzero status. The explicit branch below only calls exit() when
|
| 25 |
+
# this file is run as a standalone program (bash download.sh), never when it is
|
| 26 |
+
# sourced, so source-mode never exits the user's shell.
|
| 27 |
+
fail_download_step() {
|
| 28 |
+
if [ "${BASH_SOURCE[0]}" != "$0" ]; then
|
| 29 |
+
return 1
|
| 30 |
+
else
|
| 31 |
+
exit 1
|
| 32 |
+
fi
|
| 33 |
+
}
|
| 34 |
+
|
| 35 |
+
# ---------------------------------------------------------------------------
|
| 36 |
+
# 1. Verify the C/C++ toolchain and make/binutils.
|
| 37 |
+
# ---------------------------------------------------------------------------
|
| 38 |
+
# The base image already ships gcc/g++ 13.3.0, make 4.3 and binutils. We only
|
| 39 |
+
# verify each required tool is on PATH and record which is missing; we never
|
| 40 |
+
# invoke a compiler (`gcc`, `g++`, or the like) to check it. This stage performs
|
| 41 |
+
# no compilation, linking, packaging, or test execution.
|
| 42 |
+
|
| 43 |
+
CCPATH=""
|
| 44 |
+
CXXPATH=""
|
| 45 |
+
MAKEPATH=""
|
| 46 |
+
|
| 47 |
+
if command -v gcc; then
|
| 48 |
+
CCPATH="$(command -v gcc)"
|
| 49 |
+
else
|
| 50 |
+
echo "error: gcc not found on PATH"
|
| 51 |
+
fi
|
| 52 |
+
|
| 53 |
+
if command -v g++; then
|
| 54 |
+
CXXPATH="$(command -v g++)"
|
| 55 |
+
else
|
| 56 |
+
echo "error: g++ not found on PATH"
|
| 57 |
+
fi
|
| 58 |
+
|
| 59 |
+
if command -v make; then
|
| 60 |
+
MAKEPATH="$(command -v make)"
|
| 61 |
+
else
|
| 62 |
+
echo "error: make not found on PATH"
|
| 63 |
+
fi
|
| 64 |
+
|
| 65 |
+
# ---------------------------------------------------------------------------
|
| 66 |
+
# 2. Export the toolchain variables the offline build stage relies on.
|
| 67 |
+
# ---------------------------------------------------------------------------
|
| 68 |
+
export CC="$CCPATH"
|
| 69 |
+
export CXX="$CXXPATH"
|
| 70 |
+
export MAKE="$MAKEPATH"
|
| 71 |
+
|
| 72 |
+
# ---------------------------------------------------------------------------
|
| 73 |
+
# 3. Any missing required tool causes this (sourced) script to report failure.
|
| 74 |
+
# ---------------------------------------------------------------------------
|
| 75 |
+
if [ -z "$CXXPATH" ] || [ -z "$CCPATH" ] || [ -z "$MAKEPATH" ]; then
|
| 76 |
+
echo "error: one or more required tools (gcc, g++, make) are missing"
|
| 77 |
+
fail_download_step
|
| 78 |
+
rc=$?
|
| 79 |
+
else
|
| 80 |
+
echo "download.sh: ready. g++=$CXXPATH gcc=$CCPATH make=$MAKEPATH"
|
| 81 |
+
echo "download.sh: no external libraries, manifests, or source archives required for the selected target."
|
| 82 |
+
fi
|
| 83 |
+
|
| 84 |
+
return "$rc"
|
leandros--metareflect.0208fdd/tests/executable
ADDED
|
Binary file (64.5 kB). View file
|
|
|
leandros--metareflect.0208fdd/tests/harbor_prepare_download_env.sh
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -euo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
set -a
|
| 5 |
+
source /workspace/download.sh
|
| 6 |
+
set +a
|
| 7 |
+
python3 - <<'PY' > /etc/profile.d/programgym_download_env.sh
|
| 8 |
+
import os
|
| 9 |
+
import shlex
|
| 10 |
+
|
| 11 |
+
ignored = {
|
| 12 |
+
"ALL_PROXY",
|
| 13 |
+
"HTTP_PROXY",
|
| 14 |
+
"HTTPS_PROXY",
|
| 15 |
+
"NO_PROXY",
|
| 16 |
+
"OLDPWD",
|
| 17 |
+
"PIP_PROXY",
|
| 18 |
+
"PWD",
|
| 19 |
+
"SHLVL",
|
| 20 |
+
"_",
|
| 21 |
+
"all_proxy",
|
| 22 |
+
"http_proxy",
|
| 23 |
+
"https_proxy",
|
| 24 |
+
"no_proxy",
|
| 25 |
+
"pip_proxy",
|
| 26 |
+
}
|
| 27 |
+
for key in sorted(os.environ):
|
| 28 |
+
if key in ignored or key.startswith("BASH_FUNC_"):
|
| 29 |
+
continue
|
| 30 |
+
value = os.environ[key]
|
| 31 |
+
if "\n" in value:
|
| 32 |
+
continue
|
| 33 |
+
print(f"export {key}={shlex.quote(value)}")
|
| 34 |
+
PY
|
leandros--metareflect.0208fdd/tests/programgym-gcc13.tar.gz
ADDED
|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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()
|
leandros--metareflect.0208fdd/tests/programgym_task.json
ADDED
|
@@ -0,0 +1,1656 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"branches": {
|
| 3 |
+
"generated_module_01": {
|
| 4 |
+
"ignore_reason": "",
|
| 5 |
+
"ignored": false,
|
| 6 |
+
"ignored_tests": [
|
| 7 |
+
{
|
| 8 |
+
"name": "eval.tests.test_json_hashing.TestTopLevelClassHashes.test_document_order_and_typehash_exact",
|
| 9 |
+
"reasons": [
|
| 10 |
+
{
|
| 11 |
+
"detail": "ValueError: too many values to unpack (expected 2)",
|
| 12 |
+
"id": "gold_fail",
|
| 13 |
+
"message": "test failed against the reference executable",
|
| 14 |
+
"repair_hint": "Fix the expected observable behavior so the test passes against the reference executable.",
|
| 15 |
+
"severity": "error",
|
| 16 |
+
"stage": "gold_execution"
|
| 17 |
+
}
|
| 18 |
+
]
|
| 19 |
+
}
|
| 20 |
+
],
|
| 21 |
+
"tests": [
|
| 22 |
+
"eval.tests.test_behavior_detail.TestJsonDocumentOrder.test_top_level_json_order",
|
| 23 |
+
"eval.tests.test_behavior_detail.TestJsonTypeKeyFirst.test_type_key_is_first_key",
|
| 24 |
+
"eval.tests.test_behavior_detail.TestMemberOrder.test_coloredpoint_member_order",
|
| 25 |
+
"eval.tests.test_behavior_detail.TestMemberOrder.test_object_member_order",
|
| 26 |
+
"eval.tests.test_behavior_detail.TestMemberOrder.test_point_member_order",
|
| 27 |
+
"eval.tests.test_behavior_detail.TestMemberOrder.test_user_member_order",
|
| 28 |
+
"eval.tests.test_behavior_detail.TestPointIdentity.test_point_block_appears[ 0]",
|
| 29 |
+
"eval.tests.test_behavior_detail.TestPointIdentity.test_point_block_appears[ 1]",
|
| 30 |
+
"eval.tests.test_behavior_detail.TestPointIdentity.test_point_block_appears[ ]",
|
| 31 |
+
"eval.tests.test_behavior_detail.TestTypeSpellingDistinctness.test_exact_value_line[ .rgb = unsigned int{4279533568}]",
|
| 32 |
+
"eval.tests.test_behavior_detail.TestTypeSpellingDistinctness.test_exact_value_line[ .id = unsigned long long{42}]",
|
| 33 |
+
"eval.tests.test_behavior_detail.TestTypeSpellingDistinctness.test_exact_value_line[ .x = int{10}]",
|
| 34 |
+
"eval.tests.test_behavior_detail.TestTypeSpellingDistinctness.test_exact_value_line[ .z = unsigned long{0}]",
|
| 35 |
+
"eval.tests.test_behavior_detail.TestUnusedTypeAbsence.test_class_not_reflected_message_absent",
|
| 36 |
+
"eval.tests.test_behavior_detail.TestUnusedTypeAbsence.test_unused_primitive_absent[bool{]",
|
| 37 |
+
"eval.tests.test_behavior_detail.TestUnusedTypeAbsence.test_unused_primitive_absent[char{]",
|
| 38 |
+
"eval.tests.test_behavior_detail.TestUnusedTypeAbsence.test_unused_primitive_absent[double{]",
|
| 39 |
+
"eval.tests.test_behavior_detail.TestUnusedTypeAbsence.test_unused_primitive_absent[float{]",
|
| 40 |
+
"eval.tests.test_behavior_detail.TestVectorMonotonicValues.test_vector_values_increase_in_order",
|
| 41 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_class_dump_block[ColoredPoint]",
|
| 42 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_class_dump_block[Object]",
|
| 43 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_class_dump_block[Point]",
|
| 44 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_class_dump_block[RGBColor_nested]",
|
| 45 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_class_dump_block[User]",
|
| 46 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_classvisitor_braces_balance",
|
| 47 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_dump_block_is_balanced[ColoredPoint]",
|
| 48 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_dump_block_is_balanced[Object]",
|
| 49 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_dump_block_is_balanced[Point]",
|
| 50 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_dump_block_is_balanced[RGBColor_nested]",
|
| 51 |
+
"eval.tests.test_class_dumps.TestReadableClassDumps.test_dump_block_is_balanced[User]",
|
| 52 |
+
"eval.tests.test_exit_and_golden.TestDefaultDumpAbsence.test_no_pointer_address_in_value_braces",
|
| 53 |
+
"eval.tests.test_exit_and_golden.TestDefaultDumpAbsence.test_primitive_values_not_rendered_as_address",
|
| 54 |
+
"eval.tests.test_exit_and_golden.TestExitContract.test_exits_zero_with_point_report",
|
| 55 |
+
"eval.tests.test_exit_and_golden.TestExitContract.test_report_begins_with_point_class",
|
| 56 |
+
"eval.tests.test_exit_and_golden.TestExitContract.test_report_ends_with_user_json",
|
| 57 |
+
"eval.tests.test_exit_and_golden.TestGoldenEquivalence.test_stdout_matches_golden_exactly",
|
| 58 |
+
"eval.tests.test_exit_and_golden.TestGoldenEquivalence.test_two_runs_identical",
|
| 59 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_full_sequence_present_verbatim",
|
| 60 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_read_after_write_agrees",
|
| 61 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_read_echo_before_write",
|
| 62 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_sequence_after_object_json",
|
| 63 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_write_marker",
|
| 64 |
+
"eval.tests.test_field_access.TestFieldByNameSequence.test_write_reflects_in_second_read",
|
| 65 |
+
"eval.tests.test_json_hashing.TestNestedClassHash.test_rgbcolor_hash_in_coloredpoint",
|
| 66 |
+
"eval.tests.test_json_hashing.TestSerializedObjectHashContract.test_rgbcolor_nested_hash_in_coloredpoint_document",
|
| 67 |
+
"eval.tests.test_json_hashing.TestSerializedObjectHashContract.test_top_level_documents_carry_exact_hash_sequence",
|
| 68 |
+
"eval.tests.test_json_hashing.TestSerializedObjectHashContract.test_top_level_hash_set_is_exactly_the_four_classes",
|
| 69 |
+
"eval.tests.test_json_hashing.TestTopLevelClassHashes.test_document_order_and_typehash_exact",
|
| 70 |
+
"eval.tests.test_json_hashing.TestTopLevelClassHashes.test_point_document_x_value",
|
| 71 |
+
"eval.tests.test_json_hashing.TestVectorElementHashes.test_vector_elements_share_point_hash",
|
| 72 |
+
"eval.tests.test_json_hashing.TestVectorElementHashes.test_vector_first_and_last_element_values",
|
| 73 |
+
"eval.tests.test_json_hashing.TestVectorElementHashes.test_vector_json_payload_exact",
|
| 74 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_colored_point_name_string",
|
| 75 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_colored_point_rgb_uint",
|
| 76 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_flat_point_json_value[json-x-10-point x == 10]",
|
| 77 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_flat_point_json_value[json-y-10-point y == 10]",
|
| 78 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_flat_point_json_value[json-z-0-point z == 0]",
|
| 79 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_user_json_id_is_42",
|
| 80 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_user_json_name_string",
|
| 81 |
+
"eval.tests.test_json_values.TestJsonScalarValues.test_user_json_pets_list",
|
| 82 |
+
"eval.tests.test_report_consistency.TestArrayElementMarkerSurface.test_six_per_index_element_markers",
|
| 83 |
+
"eval.tests.test_report_consistency.TestArrayElementMarkerSurface.test_within_is_equal_to_index_for_point_elements",
|
| 84 |
+
"eval.tests.test_report_consistency.TestNonVectorPointMaterialisation.test_point_coordinates_agree",
|
| 85 |
+
"eval.tests.test_report_consistency.TestNonVectorPointMaterialisation.test_x_coordinate_line_appears_three_times",
|
| 86 |
+
"eval.tests.test_report_consistency.TestNonVectorPointMaterialisation.test_y_coordinate_line_appears_three_times",
|
| 87 |
+
"eval.tests.test_report_consistency.TestReportBoundary.test_blank_line_count_matches_section_gaps",
|
| 88 |
+
"eval.tests.test_report_consistency.TestReportBoundary.test_first_byte_is_point_header_no_bom",
|
| 89 |
+
"eval.tests.test_report_consistency.TestReportBoundary.test_last_line_is_user_json_document",
|
| 90 |
+
"eval.tests.test_report_consistency.TestRgbPackedByteDecomposition.test_rgb_value_is_packed_bytes",
|
| 91 |
+
"eval.tests.test_report_consistency.TestRgbPackedByteDecomposition.test_rgb_value_present_in_nested_document",
|
| 92 |
+
"eval.tests.test_report_consistency.TestScalarTypeSpellingDistribution.test_int_coordinate_spelling_count",
|
| 93 |
+
"eval.tests.test_report_consistency.TestScalarTypeSpellingDistribution.test_rgb_unsigned_int_spelling_single",
|
| 94 |
+
"eval.tests.test_report_consistency.TestScalarTypeSpellingDistribution.test_unsigned_long_spelling_counts_z_rows",
|
| 95 |
+
"eval.tests.test_report_consistency.TestScalarTypeSpellingDistribution.test_user_unsigned_long_long_spelling_single",
|
| 96 |
+
"eval.tests.test_report_consistency.TestTopLevelPointJsonDocument.test_point_json_document_exact",
|
| 97 |
+
"eval.tests.test_report_consistency.TestVectorElementGrid.test_vector_element_row_exact[1]",
|
| 98 |
+
"eval.tests.test_report_consistency.TestVectorElementGrid.test_vector_element_row_exact[2]",
|
| 99 |
+
"eval.tests.test_report_consistency.TestVectorElementGrid.test_vector_element_row_exact[3]",
|
| 100 |
+
"eval.tests.test_report_consistency.TestVectorElementGrid.test_vector_element_row_exact[4]",
|
| 101 |
+
"eval.tests.test_report_consistency.TestVectorElementGrid.test_vector_element_values_are_1_to_4_each_once",
|
| 102 |
+
"eval.tests.test_report_invariants.TestClassHeaderClosure.test_column_zero_class_headers_are_exact_set",
|
| 103 |
+
"eval.tests.test_report_invariants.TestCompleteFieldSurface.test_field_line_left_side_is_single_dot_identifier",
|
| 104 |
+
"eval.tests.test_report_invariants.TestCompleteFieldSurface.test_ordered_field_surface_is_exact",
|
| 105 |
+
"eval.tests.test_report_invariants.TestCrossStreamNumericConsistency.test_readable_value_matches_json[point_x]",
|
| 106 |
+
"eval.tests.test_report_invariants.TestCrossStreamNumericConsistency.test_readable_value_matches_json[point_y]",
|
| 107 |
+
"eval.tests.test_report_invariants.TestCrossStreamNumericConsistency.test_readable_value_matches_json[point_z]",
|
| 108 |
+
"eval.tests.test_report_invariants.TestCrossStreamNumericConsistency.test_readable_value_matches_json[rgb_uint]",
|
| 109 |
+
"eval.tests.test_report_invariants.TestCrossStreamNumericConsistency.test_readable_value_matches_json[user_id]",
|
| 110 |
+
"eval.tests.test_report_invariants.TestNoNullPrimitiveRendering.test_null_json_object_not_rendered",
|
| 111 |
+
"eval.tests.test_report_invariants.TestNoNullPrimitiveRendering.test_numptr_not_rendered",
|
| 112 |
+
"eval.tests.test_report_invariants.TestPointTypeHashRecurrence.test_point_hash_appears_seven_times",
|
| 113 |
+
"eval.tests.test_report_invariants.TestPointTypeHashRecurrence.test_top_level_point_document_is_the_exact_unit",
|
| 114 |
+
"eval.tests.test_report_structure.TestEmptyArrayReport.test_object_array_json_empty",
|
| 115 |
+
"eval.tests.test_report_structure.TestEmptyArrayReport.test_object_array_readable_empty",
|
| 116 |
+
"eval.tests.test_report_structure.TestScenarioOrdering.test_exact_separator_count",
|
| 117 |
+
"eval.tests.test_report_structure.TestScenarioOrdering.test_pairwise_ordering",
|
| 118 |
+
"eval.tests.test_report_structure.TestScenarioOrdering.test_scenario_markers_in_order",
|
| 119 |
+
"eval.tests.test_report_structure.TestUnionReflection.test_rgb_packed_byte_value",
|
| 120 |
+
"eval.tests.test_report_structure.TestUnionReflection.test_rgbcolor_exact_dump_line",
|
| 121 |
+
"eval.tests.test_report_structure.TestUnionReflection.test_rgbcolor_nested_json",
|
| 122 |
+
"eval.tests.test_report_structure.TestUnionReflection.test_rgbcolor_single_reflected_field",
|
| 123 |
+
"eval.tests.test_serializable_filter.TestNonSerializedFieldsOmitted.test_object_json_key_set_exact",
|
| 124 |
+
"eval.tests.test_serializable_filter.TestNonSerializedFieldsOmitted.test_object_json_points_empty",
|
| 125 |
+
"eval.tests.test_serializable_filter.TestNonSerializedFieldsOmitted.test_object_json_ppoint_payload",
|
| 126 |
+
"eval.tests.test_serializable_filter.TestNonSerializedFieldsOmitted.test_object_readable_excludes_children_parent",
|
| 127 |
+
"eval.tests.test_serializable_filter.TestSerializedMembersPresent.test_readable_points_empty_block",
|
| 128 |
+
"eval.tests.test_serializable_filter.TestSerializedMembersPresent.test_readable_ppoint_block",
|
| 129 |
+
"eval.tests.test_string_handling.TestJsonStringHandling.test_coloredpoint_name_json",
|
| 130 |
+
"eval.tests.test_string_handling.TestJsonStringHandling.test_pets_json_quoted_list",
|
| 131 |
+
"eval.tests.test_string_handling.TestJsonStringHandling.test_user_json_name_and_pets_exact",
|
| 132 |
+
"eval.tests.test_string_handling.TestStringDumpHandling.test_coloredpoint_name_cstring_line",
|
| 133 |
+
"eval.tests.test_string_handling.TestStringDumpHandling.test_pets_are_rendered_as_strings",
|
| 134 |
+
"eval.tests.test_string_handling.TestStringDumpHandling.test_user_name_std_string_line",
|
| 135 |
+
"eval.tests.test_string_handling.TestStringDumpHandling.test_user_pets_block",
|
| 136 |
+
"eval.tests.test_traversal_modes.TestArrayFieldTraversal.test_object_points_empty_block",
|
| 137 |
+
"eval.tests.test_traversal_modes.TestArrayFieldTraversal.test_object_points_json_empty",
|
| 138 |
+
"eval.tests.test_traversal_modes.TestArrayFieldTraversal.test_object_points_no_elements",
|
| 139 |
+
"eval.tests.test_traversal_modes.TestNestedClassTraversal.test_color_sibling_block",
|
| 140 |
+
"eval.tests.test_traversal_modes.TestNestedClassTraversal.test_coloredpoint_point_block",
|
| 141 |
+
"eval.tests.test_traversal_modes.TestNestedClassTraversal.test_indentation_depth_two_variants",
|
| 142 |
+
"eval.tests.test_traversal_modes.TestPointerFieldTraversal.test_coloredpoint_name_pointer_string",
|
| 143 |
+
"eval.tests.test_traversal_modes.TestPointerFieldTraversal.test_object_ppoint_block",
|
| 144 |
+
"eval.tests.test_traversal_modes.TestPointerVsInlineRecursionCount.test_ppoint_has_three_members",
|
| 145 |
+
"eval.tests.test_traversal_modes.TestVectorClassTraversal.test_vector_element_indices_0_to_3",
|
| 146 |
+
"eval.tests.test_traversal_modes.TestVectorClassTraversal.test_vector_element_type_is_point",
|
| 147 |
+
"eval.tests.test_traversal_modes.TestVectorClassTraversal.test_vector_json_array",
|
| 148 |
+
"eval.tests.test_traversal_modes.TestVectorClassTraversal.test_vector_last_element_values",
|
| 149 |
+
"eval.tests.test_traversal_modes.TestVectorClassTraversal.test_vector_readable_array",
|
| 150 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_color_line]",
|
| 151 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_id_line]",
|
| 152 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_point_line]",
|
| 153 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_rgb_line]",
|
| 154 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_x_line]",
|
| 155 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_y_line]",
|
| 156 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_member_exact_dump_line[field_z_line]",
|
| 157 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_type_value_line[int]",
|
| 158 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_type_value_line[unsigned_int]",
|
| 159 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_type_value_line[unsigned_long]",
|
| 160 |
+
"eval.tests.test_type_names.TestPrimitiveTypeNames.test_type_value_line[unsigned_long_long]",
|
| 161 |
+
"eval.tests.test_type_names.TestTypeNameAbsences.test_bool_never_dumped",
|
| 162 |
+
"eval.tests.test_type_names.TestTypeNameAbsences.test_double_never_dumped",
|
| 163 |
+
"eval.tests.test_type_names.TestTypeNameAbsences.test_float_never_dumped"
|
| 164 |
+
]
|
| 165 |
+
},
|
| 166 |
+
"generated_module_02": {
|
| 167 |
+
"ignore_reason": "",
|
| 168 |
+
"ignored": false,
|
| 169 |
+
"ignored_tests": [
|
| 170 |
+
{
|
| 171 |
+
"name": "eval.tests.test_argstdin_independence_and_structural_invariants.test_five_blank_line_separators",
|
| 172 |
+
"reasons": [
|
| 173 |
+
{
|
| 174 |
+
"id": "short_substring",
|
| 175 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 176 |
+
"path": "eval/tests/test_argstdin_independence_and_structural_invariants.py",
|
| 177 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 178 |
+
"severity": "error",
|
| 179 |
+
"stage": "static_lint"
|
| 180 |
+
}
|
| 181 |
+
]
|
| 182 |
+
},
|
| 183 |
+
{
|
| 184 |
+
"name": "eval.tests.test_argstdin_independence_and_structural_invariants.test_only_ascii_printable_bytes_in_tree_surface",
|
| 185 |
+
"reasons": [
|
| 186 |
+
{
|
| 187 |
+
"id": "assertion_disjunction",
|
| 188 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 189 |
+
"path": "eval/tests/test_argstdin_independence_and_structural_invariants.py",
|
| 190 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 191 |
+
"severity": "error",
|
| 192 |
+
"stage": "static_lint"
|
| 193 |
+
}
|
| 194 |
+
]
|
| 195 |
+
},
|
| 196 |
+
{
|
| 197 |
+
"name": "eval.tests.test_array_dumping.test_fixed_array_dump_opens_with_bracket",
|
| 198 |
+
"reasons": [
|
| 199 |
+
{
|
| 200 |
+
"id": "short_substring",
|
| 201 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 202 |
+
"path": "eval/tests/test_array_dumping.py",
|
| 203 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 204 |
+
"severity": "error",
|
| 205 |
+
"stage": "static_lint"
|
| 206 |
+
}
|
| 207 |
+
]
|
| 208 |
+
},
|
| 209 |
+
{
|
| 210 |
+
"name": "eval.tests.test_exact_document_oracles.test_root_openers_each_occur_at_column_zero",
|
| 211 |
+
"reasons": [
|
| 212 |
+
{
|
| 213 |
+
"id": "all_assertions_weak",
|
| 214 |
+
"message": "pytest test uses only weak assertions",
|
| 215 |
+
"path": "eval/tests/test_exact_document_oracles.py",
|
| 216 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 217 |
+
"severity": "error",
|
| 218 |
+
"stage": "static_lint"
|
| 219 |
+
}
|
| 220 |
+
]
|
| 221 |
+
},
|
| 222 |
+
{
|
| 223 |
+
"name": "eval.tests.test_exact_tree_blocks_and_sequencing.test_mutated_point_x_only_affects_first_region",
|
| 224 |
+
"reasons": [
|
| 225 |
+
{
|
| 226 |
+
"id": "short_substring",
|
| 227 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 228 |
+
"path": "eval/tests/test_exact_tree_blocks_and_sequencing.py",
|
| 229 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 230 |
+
"severity": "error",
|
| 231 |
+
"stage": "static_lint"
|
| 232 |
+
}
|
| 233 |
+
]
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"name": "eval.tests.test_exact_tree_blocks_and_sequencing.test_sections_are_separated_by_markers_in_order",
|
| 237 |
+
"reasons": [
|
| 238 |
+
{
|
| 239 |
+
"id": "short_substring",
|
| 240 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 241 |
+
"path": "eval/tests/test_exact_tree_blocks_and_sequencing.py",
|
| 242 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 243 |
+
"severity": "error",
|
| 244 |
+
"stage": "static_lint"
|
| 245 |
+
}
|
| 246 |
+
]
|
| 247 |
+
},
|
| 248 |
+
{
|
| 249 |
+
"name": "eval.tests.test_exit_and_smoke.test_exits_zero_and_emits_point",
|
| 250 |
+
"reasons": [
|
| 251 |
+
{
|
| 252 |
+
"id": "short_substring",
|
| 253 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 254 |
+
"path": "eval/tests/test_exit_and_smoke.py",
|
| 255 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 256 |
+
"severity": "error",
|
| 257 |
+
"stage": "static_lint"
|
| 258 |
+
}
|
| 259 |
+
]
|
| 260 |
+
},
|
| 261 |
+
{
|
| 262 |
+
"name": "eval.tests.test_exit_and_smoke.test_final_dump_block_is_user",
|
| 263 |
+
"reasons": [
|
| 264 |
+
{
|
| 265 |
+
"id": "short_substring",
|
| 266 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 267 |
+
"path": "eval/tests/test_exit_and_smoke.py",
|
| 268 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 269 |
+
"severity": "error",
|
| 270 |
+
"stage": "static_lint"
|
| 271 |
+
}
|
| 272 |
+
]
|
| 273 |
+
},
|
| 274 |
+
{
|
| 275 |
+
"name": "eval.tests.test_exit_and_smoke.test_reflection_sections_separated_by_markers",
|
| 276 |
+
"reasons": [
|
| 277 |
+
{
|
| 278 |
+
"id": "all_assertions_weak",
|
| 279 |
+
"message": "pytest test uses only weak assertions",
|
| 280 |
+
"path": "eval/tests/test_exit_and_smoke.py",
|
| 281 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 282 |
+
"severity": "error",
|
| 283 |
+
"stage": "static_lint"
|
| 284 |
+
}
|
| 285 |
+
]
|
| 286 |
+
},
|
| 287 |
+
{
|
| 288 |
+
"name": "eval.tests.test_exit_and_smoke.test_stdout_is_utf8_text",
|
| 289 |
+
"reasons": [
|
| 290 |
+
{
|
| 291 |
+
"id": "short_substring",
|
| 292 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 293 |
+
"path": "eval/tests/test_exit_and_smoke.py",
|
| 294 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 295 |
+
"severity": "error",
|
| 296 |
+
"stage": "static_lint"
|
| 297 |
+
}
|
| 298 |
+
]
|
| 299 |
+
},
|
| 300 |
+
{
|
| 301 |
+
"name": "eval.tests.test_field_access_sequence.test_mutation_announcement_exact_line",
|
| 302 |
+
"reasons": [
|
| 303 |
+
{
|
| 304 |
+
"id": "short_substring",
|
| 305 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 306 |
+
"path": "eval/tests/test_field_access_sequence.py",
|
| 307 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 308 |
+
"severity": "error",
|
| 309 |
+
"stage": "static_lint"
|
| 310 |
+
}
|
| 311 |
+
]
|
| 312 |
+
},
|
| 313 |
+
{
|
| 314 |
+
"name": "eval.tests.test_numeric_precision.test_no_decimal_dot_for_integers",
|
| 315 |
+
"reasons": [
|
| 316 |
+
{
|
| 317 |
+
"id": "short_substring",
|
| 318 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 319 |
+
"path": "eval/tests/test_numeric_precision.py",
|
| 320 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 321 |
+
"severity": "error",
|
| 322 |
+
"stage": "static_lint"
|
| 323 |
+
},
|
| 324 |
+
{
|
| 325 |
+
"id": "generic_keyword_oracle",
|
| 326 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 327 |
+
"path": "eval/tests/test_numeric_precision.py",
|
| 328 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 329 |
+
"severity": "error",
|
| 330 |
+
"stage": "static_lint"
|
| 331 |
+
}
|
| 332 |
+
]
|
| 333 |
+
},
|
| 334 |
+
{
|
| 335 |
+
"name": "eval.tests.test_numeric_precision.test_positive_integers_have_no_plus_prefix",
|
| 336 |
+
"reasons": [
|
| 337 |
+
{
|
| 338 |
+
"id": "short_substring",
|
| 339 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 340 |
+
"path": "eval/tests/test_numeric_precision.py",
|
| 341 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 342 |
+
"severity": "error",
|
| 343 |
+
"stage": "static_lint"
|
| 344 |
+
}
|
| 345 |
+
]
|
| 346 |
+
},
|
| 347 |
+
{
|
| 348 |
+
"name": "eval.tests.test_paragraph_structure_and_cross_surface.test_mutation_readback_matches_reflected_initial_value",
|
| 349 |
+
"reasons": [
|
| 350 |
+
{
|
| 351 |
+
"id": "short_substring",
|
| 352 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 353 |
+
"path": "eval/tests/test_paragraph_structure_and_cross_surface.py",
|
| 354 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 355 |
+
"severity": "error",
|
| 356 |
+
"stage": "static_lint"
|
| 357 |
+
}
|
| 358 |
+
]
|
| 359 |
+
},
|
| 360 |
+
{
|
| 361 |
+
"name": "eval.tests.test_paragraph_structure_and_cross_surface.test_object_pblock_and_json_agree",
|
| 362 |
+
"reasons": [
|
| 363 |
+
{
|
| 364 |
+
"id": "generic_keyword_oracle",
|
| 365 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 366 |
+
"path": "eval/tests/test_paragraph_structure_and_cross_surface.py",
|
| 367 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 368 |
+
"severity": "error",
|
| 369 |
+
"stage": "static_lint"
|
| 370 |
+
}
|
| 371 |
+
]
|
| 372 |
+
},
|
| 373 |
+
{
|
| 374 |
+
"name": "eval.tests.test_paragraph_structure_and_cross_surface.test_only_numeric_and_string_primitives_in_json",
|
| 375 |
+
"reasons": [
|
| 376 |
+
{
|
| 377 |
+
"id": "if_else_both_assert",
|
| 378 |
+
"message": "pytest test asserts different outcomes in both if and else branches",
|
| 379 |
+
"path": "eval/tests/test_paragraph_structure_and_cross_surface.py",
|
| 380 |
+
"repair_hint": "Remove nondeterministic branching and assert one deterministic expected behavior.",
|
| 381 |
+
"severity": "error",
|
| 382 |
+
"stage": "static_lint"
|
| 383 |
+
}
|
| 384 |
+
]
|
| 385 |
+
},
|
| 386 |
+
{
|
| 387 |
+
"name": "eval.tests.test_paragraph_structure_and_cross_surface.test_vector_tree_has_four_lines_and_closes",
|
| 388 |
+
"reasons": [
|
| 389 |
+
{
|
| 390 |
+
"id": "generic_keyword_oracle",
|
| 391 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 392 |
+
"path": "eval/tests/test_paragraph_structure_and_cross_surface.py",
|
| 393 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 394 |
+
"severity": "error",
|
| 395 |
+
"stage": "static_lint"
|
| 396 |
+
}
|
| 397 |
+
]
|
| 398 |
+
},
|
| 399 |
+
{
|
| 400 |
+
"name": "eval.tests.test_string_printing.test_json_encodes_user_name_as_string",
|
| 401 |
+
"reasons": [
|
| 402 |
+
{
|
| 403 |
+
"id": "short_substring",
|
| 404 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 405 |
+
"path": "eval/tests/test_string_printing.py",
|
| 406 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 407 |
+
"severity": "error",
|
| 408 |
+
"stage": "static_lint"
|
| 409 |
+
}
|
| 410 |
+
]
|
| 411 |
+
},
|
| 412 |
+
{
|
| 413 |
+
"name": "eval.tests.test_string_printing.test_json_strings_unquoted_in_tree_dump",
|
| 414 |
+
"reasons": [
|
| 415 |
+
{
|
| 416 |
+
"id": "short_substring",
|
| 417 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 418 |
+
"path": "eval/tests/test_string_printing.py",
|
| 419 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 420 |
+
"severity": "error",
|
| 421 |
+
"stage": "static_lint"
|
| 422 |
+
}
|
| 423 |
+
]
|
| 424 |
+
}
|
| 425 |
+
],
|
| 426 |
+
"tests": [
|
| 427 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[double_dash]",
|
| 428 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[file_like]",
|
| 429 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[help_flag]",
|
| 430 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[no_args]",
|
| 431 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[positional_words]",
|
| 432 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[short_flag]",
|
| 433 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_argv_does_not_alter_output[version_flag]",
|
| 434 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_braces_balance_with_exact_counts",
|
| 435 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_brackets_balance_with_exact_counts",
|
| 436 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_every_run_matches_golden[run0]",
|
| 437 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_every_run_matches_golden[run1]",
|
| 438 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_every_run_matches_golden[run2]",
|
| 439 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_every_run_matches_golden[run3]",
|
| 440 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_every_run_matches_golden[run4]",
|
| 441 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_five_blank_line_separators",
|
| 442 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_no_parentheses_in_dump_surface",
|
| 443 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_only_ascii_printable_bytes_in_tree_surface",
|
| 444 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_serial_runs_are_pairwise_identical",
|
| 445 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[dash_input]",
|
| 446 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[empty]",
|
| 447 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[four_kb_fill]",
|
| 448 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[json_payload]",
|
| 449 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[newline]",
|
| 450 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stdin_does_not_alter_output[short_text]",
|
| 451 |
+
"eval.tests.test_argstdin_independence_and_structural_invariants.test_stream_byte_and_line_length_pinned",
|
| 452 |
+
"eval.tests.test_array_dumping.test_fixed_array_dump_opens_with_bracket",
|
| 453 |
+
"eval.tests.test_array_dumping.test_fixed_point_array_json_is_empty_structurally",
|
| 454 |
+
"eval.tests.test_array_dumping.test_pets_json_exact_payload",
|
| 455 |
+
"eval.tests.test_array_dumping.test_pets_vector_tree_elements_exact",
|
| 456 |
+
"eval.tests.test_array_dumping.test_vector_block_has_four_numbered_elements",
|
| 457 |
+
"eval.tests.test_array_dumping.test_vector_element_x_full_line[0-1]",
|
| 458 |
+
"eval.tests.test_array_dumping.test_vector_element_x_full_line[1-2]",
|
| 459 |
+
"eval.tests.test_array_dumping.test_vector_element_x_full_line[2-3]",
|
| 460 |
+
"eval.tests.test_array_dumping.test_vector_element_x_full_line[3-4]",
|
| 461 |
+
"eval.tests.test_array_dumping.test_vector_element_y_full_line[0-1]",
|
| 462 |
+
"eval.tests.test_array_dumping.test_vector_element_y_full_line[1-2]",
|
| 463 |
+
"eval.tests.test_array_dumping.test_vector_element_y_full_line[2-3]",
|
| 464 |
+
"eval.tests.test_array_dumping.test_vector_element_y_full_line[3-4]",
|
| 465 |
+
"eval.tests.test_array_dumping.test_vector_element_z_full_line[0-1]",
|
| 466 |
+
"eval.tests.test_array_dumping.test_vector_element_z_full_line[1-2]",
|
| 467 |
+
"eval.tests.test_array_dumping.test_vector_element_z_full_line[2-3]",
|
| 468 |
+
"eval.tests.test_array_dumping.test_vector_element_z_full_line[3-4]",
|
| 469 |
+
"eval.tests.test_array_dumping.test_vector_json_exact_element_set",
|
| 470 |
+
"eval.tests.test_exact_document_oracles.test_exact_json_document_line[ColoredPoint]",
|
| 471 |
+
"eval.tests.test_exact_document_oracles.test_exact_json_document_line[Object]",
|
| 472 |
+
"eval.tests.test_exact_document_oracles.test_exact_json_document_line[Point]",
|
| 473 |
+
"eval.tests.test_exact_document_oracles.test_exact_json_document_line[User]",
|
| 474 |
+
"eval.tests.test_exact_document_oracles.test_exact_json_document_line[vector_Point]",
|
| 475 |
+
"eval.tests.test_exact_document_oracles.test_point_tree_block_exact",
|
| 476 |
+
"eval.tests.test_exact_document_oracles.test_registered_fundamental_names_match_dump_syntax",
|
| 477 |
+
"eval.tests.test_exact_document_oracles.test_rgb_uint_value_matches_tree_and_json",
|
| 478 |
+
"eval.tests.test_exact_document_oracles.test_root_openers_each_occur_at_column_zero",
|
| 479 |
+
"eval.tests.test_exact_document_oracles.test_tree_and_json_agree_on_point_values",
|
| 480 |
+
"eval.tests.test_exact_document_oracles.test_user_id_value_consistent_across_visitors",
|
| 481 |
+
"eval.tests.test_exact_document_oracles.test_user_tree_block_exact",
|
| 482 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_coloredpoint_tree_block_exact",
|
| 483 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_coloredpoint_tree_values_match_json",
|
| 484 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_each_class_tree_block_is_then_serialized_as_json",
|
| 485 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_five_sections_in_declared_order",
|
| 486 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_int_dump_value_set_is_exact",
|
| 487 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_mutated_point_x_only_affects_first_region",
|
| 488 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_object_fixed_array_json_is_exactly_empty",
|
| 489 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_object_tree_block_exact",
|
| 490 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_point_tree_block_exact_roundtrip",
|
| 491 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_primitive_dump_type_labels_are_exact",
|
| 492 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_sections_are_separated_by_markers_in_order",
|
| 493 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_vector_json_matches_tree_count",
|
| 494 |
+
"eval.tests.test_exact_tree_blocks_and_sequencing.test_vector_tree_block_exact_four_elements",
|
| 495 |
+
"eval.tests.test_exit_and_smoke.test_clean_stderr",
|
| 496 |
+
"eval.tests.test_exit_and_smoke.test_exits_zero_and_emits_point",
|
| 497 |
+
"eval.tests.test_exit_and_smoke.test_final_dump_block_is_user",
|
| 498 |
+
"eval.tests.test_exit_and_smoke.test_four_json_object_documents_parse",
|
| 499 |
+
"eval.tests.test_exit_and_smoke.test_output_is_line_terminated",
|
| 500 |
+
"eval.tests.test_exit_and_smoke.test_produces_exact_section_markers",
|
| 501 |
+
"eval.tests.test_exit_and_smoke.test_reflection_sections_separated_by_markers",
|
| 502 |
+
"eval.tests.test_exit_and_smoke.test_repeat_run_is_identical",
|
| 503 |
+
"eval.tests.test_exit_and_smoke.test_stdout_is_utf8_text",
|
| 504 |
+
"eval.tests.test_field_access_sequence.test_before_and_after_readbacks_are_a_causal_chain",
|
| 505 |
+
"eval.tests.test_field_access_sequence.test_mutation_announcement_exact_line",
|
| 506 |
+
"eval.tests.test_field_access_sequence.test_mutation_stays_within_point_block",
|
| 507 |
+
"eval.tests.test_field_access_sequence.test_readback_lines_exactly_10_then_50",
|
| 508 |
+
"eval.tests.test_field_access_sequence.test_setvalue_caches_readback_before_mutation",
|
| 509 |
+
"eval.tests.test_field_access_sequence.test_setvalue_mutates_in_place",
|
| 510 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .rgb = unsigned int{4279533568}]",
|
| 511 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .x = int{3}]",
|
| 512 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .y = int{4}]",
|
| 513 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .id = unsigned long long{42}]",
|
| 514 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .x = int{10}]",
|
| 515 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .y = int{10}]",
|
| 516 |
+
"eval.tests.test_fundamental_dump_format.test_fundamental_dump_line_verbatim[ .z = unsigned long{0}]",
|
| 517 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[11857839211710813138-id-42]",
|
| 518 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[12357538589151270293-color-\"rgb\":4279533568]",
|
| 519 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[12357538589151270293-name-\"My Point\"]",
|
| 520 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[9962967977086807313-x-10]",
|
| 521 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[9962967977086807313-y-10]",
|
| 522 |
+
"eval.tests.test_fundamental_dump_format.test_json_field_value_fidelity[9962967977086807313-z-0]",
|
| 523 |
+
"eval.tests.test_fundamental_dump_format.test_json_nested_type_hashes[12357538589151270293-color-6616920365815789155]",
|
| 524 |
+
"eval.tests.test_fundamental_dump_format.test_json_nested_type_hashes[12357538589151270293-point-9962967977086807313]",
|
| 525 |
+
"eval.tests.test_fundamental_dump_format.test_json_nested_type_hashes[8287048469554089178-pPoint-9962967977086807313]",
|
| 526 |
+
"eval.tests.test_fundamental_dump_format.test_type_name_registered_in_dump[int]",
|
| 527 |
+
"eval.tests.test_fundamental_dump_format.test_type_name_registered_in_dump[unsigned int]",
|
| 528 |
+
"eval.tests.test_fundamental_dump_format.test_type_name_registered_in_dump[unsigned long long]",
|
| 529 |
+
"eval.tests.test_fundamental_dump_format.test_type_name_registered_in_dump[unsigned long]",
|
| 530 |
+
"eval.tests.test_golden_integration.test_four_dump_blocks_terminate_each_section",
|
| 531 |
+
"eval.tests.test_golden_integration.test_golden_and_live_share_exact_section_markers",
|
| 532 |
+
"eval.tests.test_golden_integration.test_golden_and_live_share_line_sequence",
|
| 533 |
+
"eval.tests.test_golden_integration.test_golden_matches_live_run_exactly",
|
| 534 |
+
"eval.tests.test_golden_integration.test_live_output_uses_lf_endings_only",
|
| 535 |
+
"eval.tests.test_json_structure.test_coloredpoint_nested_point_equal",
|
| 536 |
+
"eval.tests.test_json_structure.test_four_distinct_documents",
|
| 537 |
+
"eval.tests.test_json_structure.test_object_document",
|
| 538 |
+
"eval.tests.test_json_structure.test_point_document_field_order",
|
| 539 |
+
"eval.tests.test_json_structure.test_point_document_shape",
|
| 540 |
+
"eval.tests.test_json_structure.test_point_member_values[x-10]",
|
| 541 |
+
"eval.tests.test_json_structure.test_point_member_values[y-10]",
|
| 542 |
+
"eval.tests.test_json_structure.test_point_member_values[z-0]",
|
| 543 |
+
"eval.tests.test_json_structure.test_rgbcolor_uint_document",
|
| 544 |
+
"eval.tests.test_json_structure.test_user_document",
|
| 545 |
+
"eval.tests.test_nested_structure.test_coloredpoint_is_nested",
|
| 546 |
+
"eval.tests.test_nested_structure.test_coloredpoint_member_order",
|
| 547 |
+
"eval.tests.test_nested_structure.test_indentation_increments_with_depth",
|
| 548 |
+
"eval.tests.test_nested_structure.test_member_label_uses_equals_then_name_paren",
|
| 549 |
+
"eval.tests.test_nested_structure.test_object_pointer_member_nested",
|
| 550 |
+
"eval.tests.test_nested_structure.test_point_member_order_x_y_z",
|
| 551 |
+
"eval.tests.test_nested_structure.test_point_opens_and_closes",
|
| 552 |
+
"eval.tests.test_nested_structure.test_rgbcolor_uint_dump_nested",
|
| 553 |
+
"eval.tests.test_nested_structure.test_user_fields_in_order",
|
| 554 |
+
"eval.tests.test_numeric_precision.test_all_json_numbers_are_integral_decimals",
|
| 555 |
+
"eval.tests.test_numeric_precision.test_json_numeric_field_exact_token[id-\"id\":42]",
|
| 556 |
+
"eval.tests.test_numeric_precision.test_json_numeric_field_exact_token[rgb-\"rgb\":4279533568]",
|
| 557 |
+
"eval.tests.test_numeric_precision.test_json_numeric_field_exact_token[x-\"x\":10]",
|
| 558 |
+
"eval.tests.test_numeric_precision.test_json_numeric_field_exact_token[y-\"y\":10]",
|
| 559 |
+
"eval.tests.test_numeric_precision.test_json_numeric_field_exact_token[z-\"z\":0]",
|
| 560 |
+
"eval.tests.test_numeric_precision.test_no_decimal_dot_for_integers",
|
| 561 |
+
"eval.tests.test_numeric_precision.test_no_exponential_or_g_notation_in_json",
|
| 562 |
+
"eval.tests.test_numeric_precision.test_positive_integers_have_no_plus_prefix",
|
| 563 |
+
"eval.tests.test_numeric_precision.test_uint32_magnitude_preserved",
|
| 564 |
+
"eval.tests.test_numeric_precision.test_zero_serializes_as_positive_zero",
|
| 565 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_blank_line_before_each_json_document",
|
| 566 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_blank_lines_occur_at_exact_absolute_positions",
|
| 567 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_coloredpoint_name_matches_between_visitors",
|
| 568 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_every_block_opener_in_stream_order",
|
| 569 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_field_mutation_sandwich",
|
| 570 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_json_documents_are_single_flat_lines",
|
| 571 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_mutation_readback_matches_reflected_initial_value",
|
| 572 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_object_pblock_and_json_agree",
|
| 573 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_only_numeric_and_string_primitives_in_json",
|
| 574 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[1-Point {]",
|
| 575 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[35-x = 10 | 10]",
|
| 576 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[37-x = 50 | 50]",
|
| 577 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[59-]]",
|
| 578 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[7-{\"__type\":\"9962967977086807313\",\"x\":10,\"y\":10,\"z\":0}]",
|
| 579 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_pinned_absolute_lines[71-{\"__type\":\"11857839211710813138\",\"id\":42,\"name\":\"John\",\"pets\":[\"Buddy\",\"Cooper\"]}]",
|
| 580 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_vector_json_is_single_flat_line",
|
| 581 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_vector_tree_has_four_lines_and_closes",
|
| 582 |
+
"eval.tests.test_paragraph_structure_and_cross_surface.test_vector_z_values_all_present",
|
| 583 |
+
"eval.tests.test_string_printing.test_cstring_field_is_pointer_dereferenced",
|
| 584 |
+
"eval.tests.test_string_printing.test_json_encodes_cstring_name_as_string",
|
| 585 |
+
"eval.tests.test_string_printing.test_json_encodes_user_name_as_string",
|
| 586 |
+
"eval.tests.test_string_printing.test_json_pets_array_exact_order",
|
| 587 |
+
"eval.tests.test_string_printing.test_json_strings_unquoted_in_tree_dump",
|
| 588 |
+
"eval.tests.test_string_printing.test_stdstring_field_has_no_deref_prefix",
|
| 589 |
+
"eval.tests.test_string_printing.test_string_dump_line_verbatim[ [0] = string{Buddy}]",
|
| 590 |
+
"eval.tests.test_string_printing.test_string_dump_line_verbatim[ [1] = string{Cooper}]",
|
| 591 |
+
"eval.tests.test_string_printing.test_string_dump_line_verbatim[ .name = &string{My Point}]",
|
| 592 |
+
"eval.tests.test_string_printing.test_string_dump_line_verbatim[ .name = string{John}]",
|
| 593 |
+
"eval.tests.test_type_registry_hashes.test_every_dumped_type_hash_recomputes_fnv",
|
| 594 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_matches_fnv1a_of_name[ColoredPoint-12357538589151270293]",
|
| 595 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_matches_fnv1a_of_name[Object-8287048469554089178]",
|
| 596 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_matches_fnv1a_of_name[Point-9962967977086807313]",
|
| 597 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_matches_fnv1a_of_name[RGBColor-6616920365815789155]",
|
| 598 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_matches_fnv1a_of_name[User-11857839211710813138]",
|
| 599 |
+
"eval.tests.test_type_registry_hashes.test_type_hash_values_are_distinct",
|
| 600 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_absent_labels_are_not_quoted_strings",
|
| 601 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_no_percent_format_leakage",
|
| 602 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_pointer_deref_prefix_count_is_exact",
|
| 603 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_fundamental_labels_present",
|
| 604 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_label_has_concrete_sample[int- .x = int{3}]",
|
| 605 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_label_has_concrete_sample[unsigned int- .rgb = unsigned int{4279533568}]",
|
| 606 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_label_has_concrete_sample[unsigned long long- .id = unsigned long long{42}]",
|
| 607 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_label_has_concrete_sample[unsigned long- .z = unsigned long{0}]",
|
| 608 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_reachable_label_set_is_exactly_five",
|
| 609 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[bool]",
|
| 610 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[char]",
|
| 611 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[double]",
|
| 612 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[float]",
|
| 613 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[long double]",
|
| 614 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[long long]",
|
| 615 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[long]",
|
| 616 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[short]",
|
| 617 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[unsigned char]",
|
| 618 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[unsigned short]",
|
| 619 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_unreachable_fundamental_token_is_absent[void]",
|
| 620 |
+
"eval.tests.test_void_reachability_and_reachable_set.test_void_pointer_form_absent"
|
| 621 |
+
]
|
| 622 |
+
},
|
| 623 |
+
"generated_module_04": {
|
| 624 |
+
"ignore_reason": "",
|
| 625 |
+
"ignored": false,
|
| 626 |
+
"ignored_tests": [
|
| 627 |
+
{
|
| 628 |
+
"name": "eval.tests.test_argv_invariance.test_plain_run_matches_golden",
|
| 629 |
+
"reasons": [
|
| 630 |
+
{
|
| 631 |
+
"id": "no_assertions",
|
| 632 |
+
"message": "pytest test contains no assert statements",
|
| 633 |
+
"path": "eval/tests/test_argv_invariance.py",
|
| 634 |
+
"repair_hint": "Add concrete assert statements over observable executable behavior.",
|
| 635 |
+
"severity": "error",
|
| 636 |
+
"stage": "static_lint"
|
| 637 |
+
},
|
| 638 |
+
{
|
| 639 |
+
"id": "golden_no_equality",
|
| 640 |
+
"message": "pytest test references golden data without equality comparison",
|
| 641 |
+
"path": "eval/tests/test_argv_invariance.py",
|
| 642 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 643 |
+
"severity": "error",
|
| 644 |
+
"stage": "static_lint"
|
| 645 |
+
}
|
| 646 |
+
]
|
| 647 |
+
},
|
| 648 |
+
{
|
| 649 |
+
"name": "eval.tests.test_dump_structure.test_coloredpoint_dump_has_nested_point",
|
| 650 |
+
"reasons": [
|
| 651 |
+
{
|
| 652 |
+
"id": "short_substring",
|
| 653 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 654 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 655 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 656 |
+
"severity": "error",
|
| 657 |
+
"stage": "static_lint"
|
| 658 |
+
},
|
| 659 |
+
{
|
| 660 |
+
"id": "generic_keyword_oracle",
|
| 661 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 662 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 663 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 664 |
+
"severity": "error",
|
| 665 |
+
"stage": "static_lint"
|
| 666 |
+
}
|
| 667 |
+
]
|
| 668 |
+
},
|
| 669 |
+
{
|
| 670 |
+
"name": "eval.tests.test_dump_structure.test_object_dump_pointer_member",
|
| 671 |
+
"reasons": [
|
| 672 |
+
{
|
| 673 |
+
"id": "short_substring",
|
| 674 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 675 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 676 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 677 |
+
"severity": "error",
|
| 678 |
+
"stage": "static_lint"
|
| 679 |
+
}
|
| 680 |
+
]
|
| 681 |
+
},
|
| 682 |
+
{
|
| 683 |
+
"name": "eval.tests.test_dump_structure.test_object_dump_points_array_empty",
|
| 684 |
+
"reasons": [
|
| 685 |
+
{
|
| 686 |
+
"id": "short_substring",
|
| 687 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 688 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 689 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 690 |
+
"severity": "error",
|
| 691 |
+
"stage": "static_lint"
|
| 692 |
+
}
|
| 693 |
+
]
|
| 694 |
+
},
|
| 695 |
+
{
|
| 696 |
+
"name": "eval.tests.test_dump_structure.test_point_dump_member_indentation",
|
| 697 |
+
"reasons": [
|
| 698 |
+
{
|
| 699 |
+
"id": "short_substring",
|
| 700 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 701 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 702 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 703 |
+
"severity": "error",
|
| 704 |
+
"stage": "static_lint"
|
| 705 |
+
}
|
| 706 |
+
]
|
| 707 |
+
},
|
| 708 |
+
{
|
| 709 |
+
"name": "eval.tests.test_dump_structure.test_point_dump_structure",
|
| 710 |
+
"reasons": [
|
| 711 |
+
{
|
| 712 |
+
"id": "short_substring",
|
| 713 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 714 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 715 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 716 |
+
"severity": "error",
|
| 717 |
+
"stage": "static_lint"
|
| 718 |
+
},
|
| 719 |
+
{
|
| 720 |
+
"id": "generic_keyword_oracle",
|
| 721 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 722 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 723 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 724 |
+
"severity": "error",
|
| 725 |
+
"stage": "static_lint"
|
| 726 |
+
}
|
| 727 |
+
]
|
| 728 |
+
},
|
| 729 |
+
{
|
| 730 |
+
"name": "eval.tests.test_dump_structure.test_user_dump_pets_vector",
|
| 731 |
+
"reasons": [
|
| 732 |
+
{
|
| 733 |
+
"id": "short_substring",
|
| 734 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 735 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 736 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 737 |
+
"severity": "error",
|
| 738 |
+
"stage": "static_lint"
|
| 739 |
+
},
|
| 740 |
+
{
|
| 741 |
+
"id": "generic_keyword_oracle",
|
| 742 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 743 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 744 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 745 |
+
"severity": "error",
|
| 746 |
+
"stage": "static_lint"
|
| 747 |
+
}
|
| 748 |
+
]
|
| 749 |
+
},
|
| 750 |
+
{
|
| 751 |
+
"name": "eval.tests.test_dump_structure.test_vector_dump_element_values",
|
| 752 |
+
"reasons": [
|
| 753 |
+
{
|
| 754 |
+
"id": "generic_keyword_oracle",
|
| 755 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 756 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 757 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 758 |
+
"severity": "error",
|
| 759 |
+
"stage": "static_lint"
|
| 760 |
+
}
|
| 761 |
+
]
|
| 762 |
+
},
|
| 763 |
+
{
|
| 764 |
+
"name": "eval.tests.test_dump_structure.test_vector_dump_has_four_elements",
|
| 765 |
+
"reasons": [
|
| 766 |
+
{
|
| 767 |
+
"id": "short_substring",
|
| 768 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 769 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 770 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 771 |
+
"severity": "error",
|
| 772 |
+
"stage": "static_lint"
|
| 773 |
+
},
|
| 774 |
+
{
|
| 775 |
+
"id": "generic_keyword_oracle",
|
| 776 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 777 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 778 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 779 |
+
"severity": "error",
|
| 780 |
+
"stage": "static_lint"
|
| 781 |
+
}
|
| 782 |
+
]
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"name": "eval.tests.test_dump_structure.test_vector_dump_index_label_format",
|
| 786 |
+
"reasons": [
|
| 787 |
+
{
|
| 788 |
+
"id": "short_substring",
|
| 789 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 790 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 791 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 792 |
+
"severity": "error",
|
| 793 |
+
"stage": "static_lint"
|
| 794 |
+
},
|
| 795 |
+
{
|
| 796 |
+
"id": "generic_keyword_oracle",
|
| 797 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 798 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 799 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 800 |
+
"severity": "error",
|
| 801 |
+
"stage": "static_lint"
|
| 802 |
+
}
|
| 803 |
+
]
|
| 804 |
+
},
|
| 805 |
+
{
|
| 806 |
+
"name": "eval.tests.test_dump_structure.test_vector_dump_single_element_values",
|
| 807 |
+
"reasons": [
|
| 808 |
+
{
|
| 809 |
+
"id": "short_substring",
|
| 810 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 811 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 812 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 813 |
+
"severity": "error",
|
| 814 |
+
"stage": "static_lint"
|
| 815 |
+
},
|
| 816 |
+
{
|
| 817 |
+
"id": "generic_keyword_oracle",
|
| 818 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 819 |
+
"path": "eval/tests/test_dump_structure.py",
|
| 820 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 821 |
+
"severity": "error",
|
| 822 |
+
"stage": "static_lint"
|
| 823 |
+
}
|
| 824 |
+
]
|
| 825 |
+
},
|
| 826 |
+
{
|
| 827 |
+
"name": "eval.tests.test_empty_containers.test_nonempty_vector_json_is_single_array",
|
| 828 |
+
"reasons": [
|
| 829 |
+
{
|
| 830 |
+
"id": "all_assertions_weak",
|
| 831 |
+
"message": "pytest test uses only weak assertions",
|
| 832 |
+
"path": "eval/tests/test_empty_containers.py",
|
| 833 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 834 |
+
"severity": "error",
|
| 835 |
+
"stage": "static_lint"
|
| 836 |
+
}
|
| 837 |
+
]
|
| 838 |
+
},
|
| 839 |
+
{
|
| 840 |
+
"name": "eval.tests.test_empty_containers.test_object_c_array_dump_is_empty",
|
| 841 |
+
"reasons": [
|
| 842 |
+
{
|
| 843 |
+
"id": "short_substring",
|
| 844 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 845 |
+
"path": "eval/tests/test_empty_containers.py",
|
| 846 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 847 |
+
"severity": "error",
|
| 848 |
+
"stage": "static_lint"
|
| 849 |
+
}
|
| 850 |
+
]
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"name": "eval.tests.test_empty_containers.test_vector_contrast_is_nonempty",
|
| 854 |
+
"reasons": [
|
| 855 |
+
{
|
| 856 |
+
"id": "all_assertions_weak",
|
| 857 |
+
"message": "pytest test uses only weak assertions",
|
| 858 |
+
"path": "eval/tests/test_empty_containers.py",
|
| 859 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 860 |
+
"severity": "error",
|
| 861 |
+
"stage": "static_lint"
|
| 862 |
+
}
|
| 863 |
+
]
|
| 864 |
+
},
|
| 865 |
+
{
|
| 866 |
+
"name": "eval.tests.test_exact_json_lines.test_exactly_five_json_value_lines",
|
| 867 |
+
"reasons": [
|
| 868 |
+
{
|
| 869 |
+
"id": "all_assertions_weak",
|
| 870 |
+
"message": "pytest test uses only weak assertions",
|
| 871 |
+
"path": "eval/tests/test_exact_json_lines.py",
|
| 872 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 873 |
+
"severity": "error",
|
| 874 |
+
"stage": "static_lint"
|
| 875 |
+
}
|
| 876 |
+
]
|
| 877 |
+
},
|
| 878 |
+
{
|
| 879 |
+
"name": "eval.tests.test_indentation_depth.test_nested_class_members_use_exactly_four_spaces",
|
| 880 |
+
"reasons": [
|
| 881 |
+
{
|
| 882 |
+
"id": "all_assertions_weak",
|
| 883 |
+
"message": "pytest test uses only weak assertions",
|
| 884 |
+
"path": "eval/tests/test_indentation_depth.py",
|
| 885 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 886 |
+
"severity": "error",
|
| 887 |
+
"stage": "static_lint"
|
| 888 |
+
}
|
| 889 |
+
]
|
| 890 |
+
},
|
| 891 |
+
{
|
| 892 |
+
"name": "eval.tests.test_indentation_depth.test_nested_depth_two_lines_present",
|
| 893 |
+
"reasons": [
|
| 894 |
+
{
|
| 895 |
+
"id": "generic_keyword_oracle",
|
| 896 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 897 |
+
"path": "eval/tests/test_indentation_depth.py",
|
| 898 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 899 |
+
"severity": "error",
|
| 900 |
+
"stage": "static_lint"
|
| 901 |
+
}
|
| 902 |
+
]
|
| 903 |
+
},
|
| 904 |
+
{
|
| 905 |
+
"name": "eval.tests.test_indentation_depth.test_pets_vector_string_elements_depth_two",
|
| 906 |
+
"reasons": [
|
| 907 |
+
{
|
| 908 |
+
"id": "generic_keyword_oracle",
|
| 909 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 910 |
+
"path": "eval/tests/test_indentation_depth.py",
|
| 911 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 912 |
+
"severity": "error",
|
| 913 |
+
"stage": "static_lint"
|
| 914 |
+
}
|
| 915 |
+
]
|
| 916 |
+
},
|
| 917 |
+
{
|
| 918 |
+
"name": "eval.tests.test_inter_visitor_consistency.test_user_dump_and_json_agree",
|
| 919 |
+
"reasons": [
|
| 920 |
+
{
|
| 921 |
+
"id": "short_substring",
|
| 922 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 923 |
+
"path": "eval/tests/test_inter_visitor_consistency.py",
|
| 924 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 925 |
+
"severity": "error",
|
| 926 |
+
"stage": "static_lint"
|
| 927 |
+
},
|
| 928 |
+
{
|
| 929 |
+
"id": "generic_keyword_oracle",
|
| 930 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 931 |
+
"path": "eval/tests/test_inter_visitor_consistency.py",
|
| 932 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 933 |
+
"severity": "error",
|
| 934 |
+
"stage": "static_lint"
|
| 935 |
+
}
|
| 936 |
+
]
|
| 937 |
+
},
|
| 938 |
+
{
|
| 939 |
+
"name": "eval.tests.test_json_structure.test_json_vector_is_array_of_four",
|
| 940 |
+
"reasons": [
|
| 941 |
+
{
|
| 942 |
+
"id": "all_assertions_weak",
|
| 943 |
+
"message": "pytest test uses only weak assertions",
|
| 944 |
+
"path": "eval/tests/test_json_structure.py",
|
| 945 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 946 |
+
"severity": "error",
|
| 947 |
+
"stage": "static_lint"
|
| 948 |
+
}
|
| 949 |
+
]
|
| 950 |
+
},
|
| 951 |
+
{
|
| 952 |
+
"name": "eval.tests.test_json_wellformedness.test_all_brace_lines_are_valid_json",
|
| 953 |
+
"reasons": [
|
| 954 |
+
{
|
| 955 |
+
"id": "all_assertions_weak",
|
| 956 |
+
"message": "pytest test uses only weak assertions",
|
| 957 |
+
"path": "eval/tests/test_json_wellformedness.py",
|
| 958 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 959 |
+
"severity": "error",
|
| 960 |
+
"stage": "static_lint"
|
| 961 |
+
}
|
| 962 |
+
]
|
| 963 |
+
},
|
| 964 |
+
{
|
| 965 |
+
"name": "eval.tests.test_json_wellformedness.test_json_lines_have_no_leading_comma",
|
| 966 |
+
"reasons": [
|
| 967 |
+
{
|
| 968 |
+
"id": "trivially_true",
|
| 969 |
+
"message": "pytest test contains a trivially true assertion",
|
| 970 |
+
"path": "eval/tests/test_json_wellformedness.py",
|
| 971 |
+
"repair_hint": "Replace trivially true assertions with exact observable behavior checks.",
|
| 972 |
+
"severity": "error",
|
| 973 |
+
"stage": "static_lint"
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"id": "assertion_disjunction",
|
| 977 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 978 |
+
"path": "eval/tests/test_json_wellformedness.py",
|
| 979 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 980 |
+
"severity": "error",
|
| 981 |
+
"stage": "static_lint"
|
| 982 |
+
}
|
| 983 |
+
]
|
| 984 |
+
},
|
| 985 |
+
{
|
| 986 |
+
"name": "eval.tests.test_json_wellformedness.test_vector_json_array_separators",
|
| 987 |
+
"reasons": [
|
| 988 |
+
{
|
| 989 |
+
"id": "short_substring",
|
| 990 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 991 |
+
"path": "eval/tests/test_json_wellformedness.py",
|
| 992 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 993 |
+
"severity": "error",
|
| 994 |
+
"stage": "static_lint"
|
| 995 |
+
}
|
| 996 |
+
]
|
| 997 |
+
},
|
| 998 |
+
{
|
| 999 |
+
"name": "eval.tests.test_liveness.test_repeated_runs_all_succeed",
|
| 1000 |
+
"reasons": [
|
| 1001 |
+
{
|
| 1002 |
+
"id": "all_assertions_weak",
|
| 1003 |
+
"message": "pytest test uses only weak assertions",
|
| 1004 |
+
"path": "eval/tests/test_liveness.py",
|
| 1005 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1006 |
+
"severity": "error",
|
| 1007 |
+
"stage": "static_lint"
|
| 1008 |
+
}
|
| 1009 |
+
]
|
| 1010 |
+
},
|
| 1011 |
+
{
|
| 1012 |
+
"name": "eval.tests.test_numeric_precision.test_expected_numeric_token_count",
|
| 1013 |
+
"reasons": [
|
| 1014 |
+
{
|
| 1015 |
+
"id": "all_assertions_weak",
|
| 1016 |
+
"message": "pytest test uses only weak assertions",
|
| 1017 |
+
"path": "eval/tests/test_numeric_precision.py",
|
| 1018 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1019 |
+
"severity": "error",
|
| 1020 |
+
"stage": "static_lint"
|
| 1021 |
+
}
|
| 1022 |
+
]
|
| 1023 |
+
},
|
| 1024 |
+
{
|
| 1025 |
+
"name": "eval.tests.test_numeric_precision.test_type_hashes_render_as_integers",
|
| 1026 |
+
"reasons": [
|
| 1027 |
+
{
|
| 1028 |
+
"id": "short_substring",
|
| 1029 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1030 |
+
"path": "eval/tests/test_numeric_precision.py",
|
| 1031 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1032 |
+
"severity": "error",
|
| 1033 |
+
"stage": "static_lint"
|
| 1034 |
+
}
|
| 1035 |
+
]
|
| 1036 |
+
},
|
| 1037 |
+
{
|
| 1038 |
+
"name": "eval.tests.test_qualifier_rendering.test_no_ampersand_in_json_output",
|
| 1039 |
+
"reasons": [
|
| 1040 |
+
{
|
| 1041 |
+
"id": "if_no_else",
|
| 1042 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1043 |
+
"path": "eval/tests/test_qualifier_rendering.py",
|
| 1044 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1045 |
+
"severity": "error",
|
| 1046 |
+
"stage": "static_lint"
|
| 1047 |
+
}
|
| 1048 |
+
]
|
| 1049 |
+
},
|
| 1050 |
+
{
|
| 1051 |
+
"name": "eval.tests.test_qualifier_rendering.test_pointer_marker_presence_matches_serialized_pointer_arity",
|
| 1052 |
+
"reasons": [
|
| 1053 |
+
{
|
| 1054 |
+
"id": "all_assertions_weak",
|
| 1055 |
+
"message": "pytest test uses only weak assertions",
|
| 1056 |
+
"path": "eval/tests/test_qualifier_rendering.py",
|
| 1057 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1058 |
+
"severity": "error",
|
| 1059 |
+
"stage": "static_lint"
|
| 1060 |
+
}
|
| 1061 |
+
]
|
| 1062 |
+
},
|
| 1063 |
+
{
|
| 1064 |
+
"name": "eval.tests.test_reflection_roundtrip.test_roundtrip_set_line_present",
|
| 1065 |
+
"reasons": [
|
| 1066 |
+
{
|
| 1067 |
+
"id": "short_substring",
|
| 1068 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1069 |
+
"path": "eval/tests/test_reflection_roundtrip.py",
|
| 1070 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1071 |
+
"severity": "error",
|
| 1072 |
+
"stage": "static_lint"
|
| 1073 |
+
}
|
| 1074 |
+
]
|
| 1075 |
+
},
|
| 1076 |
+
{
|
| 1077 |
+
"name": "eval.tests.test_roundtrip_isolation.test_no_leak_into_dump_blocks",
|
| 1078 |
+
"reasons": [
|
| 1079 |
+
{
|
| 1080 |
+
"id": "if_no_else",
|
| 1081 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1082 |
+
"path": "eval/tests/test_roundtrip_isolation.py",
|
| 1083 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1084 |
+
"severity": "error",
|
| 1085 |
+
"stage": "static_lint"
|
| 1086 |
+
}
|
| 1087 |
+
]
|
| 1088 |
+
},
|
| 1089 |
+
{
|
| 1090 |
+
"name": "eval.tests.test_roundtrip_isolation.test_no_leak_into_json_sections",
|
| 1091 |
+
"reasons": [
|
| 1092 |
+
{
|
| 1093 |
+
"id": "if_no_else",
|
| 1094 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1095 |
+
"path": "eval/tests/test_roundtrip_isolation.py",
|
| 1096 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1097 |
+
"severity": "error",
|
| 1098 |
+
"stage": "static_lint"
|
| 1099 |
+
}
|
| 1100 |
+
]
|
| 1101 |
+
},
|
| 1102 |
+
{
|
| 1103 |
+
"name": "eval.tests.test_roundtrip_isolation.test_pre_write_value_still_ten_in_aliased_nodes",
|
| 1104 |
+
"reasons": [
|
| 1105 |
+
{
|
| 1106 |
+
"id": "if_no_else",
|
| 1107 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1108 |
+
"path": "eval/tests/test_roundtrip_isolation.py",
|
| 1109 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1110 |
+
"severity": "error",
|
| 1111 |
+
"stage": "static_lint"
|
| 1112 |
+
}
|
| 1113 |
+
]
|
| 1114 |
+
},
|
| 1115 |
+
{
|
| 1116 |
+
"name": "eval.tests.test_sections.test_four_blocks",
|
| 1117 |
+
"reasons": [
|
| 1118 |
+
{
|
| 1119 |
+
"id": "all_assertions_weak",
|
| 1120 |
+
"message": "pytest test uses only weak assertions",
|
| 1121 |
+
"path": "eval/tests/test_sections.py",
|
| 1122 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1123 |
+
"severity": "error",
|
| 1124 |
+
"stage": "static_lint"
|
| 1125 |
+
}
|
| 1126 |
+
]
|
| 1127 |
+
},
|
| 1128 |
+
{
|
| 1129 |
+
"name": "eval.tests.test_sections.test_roundtrip_belongs_to_final_block",
|
| 1130 |
+
"reasons": [
|
| 1131 |
+
{
|
| 1132 |
+
"id": "short_substring",
|
| 1133 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1134 |
+
"path": "eval/tests/test_sections.py",
|
| 1135 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1136 |
+
"severity": "error",
|
| 1137 |
+
"stage": "static_lint"
|
| 1138 |
+
}
|
| 1139 |
+
]
|
| 1140 |
+
},
|
| 1141 |
+
{
|
| 1142 |
+
"name": "eval.tests.test_state_invariance.test_no_files_created_in_cwd",
|
| 1143 |
+
"reasons": [
|
| 1144 |
+
{
|
| 1145 |
+
"id": "assertion_disjunction",
|
| 1146 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 1147 |
+
"path": "eval/tests/test_state_invariance.py",
|
| 1148 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 1149 |
+
"severity": "error",
|
| 1150 |
+
"stage": "static_lint"
|
| 1151 |
+
}
|
| 1152 |
+
]
|
| 1153 |
+
},
|
| 1154 |
+
{
|
| 1155 |
+
"name": "eval.tests.test_stdout_invariants.test_exit_code_zero",
|
| 1156 |
+
"reasons": [
|
| 1157 |
+
{
|
| 1158 |
+
"id": "sole_returncode",
|
| 1159 |
+
"message": "pytest test only asserts returncode == 0",
|
| 1160 |
+
"path": "eval/tests/test_stdout_invariants.py",
|
| 1161 |
+
"repair_hint": "Check stdout, stderr, generated files, or structured output in addition to exit code.",
|
| 1162 |
+
"severity": "error",
|
| 1163 |
+
"stage": "static_lint"
|
| 1164 |
+
},
|
| 1165 |
+
{
|
| 1166 |
+
"id": "all_assertions_weak",
|
| 1167 |
+
"message": "pytest test uses only weak assertions",
|
| 1168 |
+
"path": "eval/tests/test_stdout_invariants.py",
|
| 1169 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1170 |
+
"severity": "error",
|
| 1171 |
+
"stage": "static_lint"
|
| 1172 |
+
}
|
| 1173 |
+
]
|
| 1174 |
+
},
|
| 1175 |
+
{
|
| 1176 |
+
"name": "eval.tests.test_stdout_invariants.test_stdout_has_expected_byte_length",
|
| 1177 |
+
"reasons": [
|
| 1178 |
+
{
|
| 1179 |
+
"id": "all_assertions_weak",
|
| 1180 |
+
"message": "pytest test uses only weak assertions",
|
| 1181 |
+
"path": "eval/tests/test_stdout_invariants.py",
|
| 1182 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1183 |
+
"severity": "error",
|
| 1184 |
+
"stage": "static_lint"
|
| 1185 |
+
}
|
| 1186 |
+
]
|
| 1187 |
+
},
|
| 1188 |
+
{
|
| 1189 |
+
"name": "eval.tests.test_stdout_invariants.test_stdout_has_expected_line_count",
|
| 1190 |
+
"reasons": [
|
| 1191 |
+
{
|
| 1192 |
+
"id": "all_assertions_weak",
|
| 1193 |
+
"message": "pytest test uses only weak assertions",
|
| 1194 |
+
"path": "eval/tests/test_stdout_invariants.py",
|
| 1195 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1196 |
+
"severity": "error",
|
| 1197 |
+
"stage": "static_lint"
|
| 1198 |
+
}
|
| 1199 |
+
]
|
| 1200 |
+
},
|
| 1201 |
+
{
|
| 1202 |
+
"name": "eval.tests.test_stdout_invariants.test_stdout_is_nonempty",
|
| 1203 |
+
"reasons": [
|
| 1204 |
+
{
|
| 1205 |
+
"id": "all_assertions_weak",
|
| 1206 |
+
"message": "pytest test uses only weak assertions",
|
| 1207 |
+
"path": "eval/tests/test_stdout_invariants.py",
|
| 1208 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1209 |
+
"severity": "error",
|
| 1210 |
+
"stage": "static_lint"
|
| 1211 |
+
}
|
| 1212 |
+
]
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"name": "eval.tests.test_type_hashes.test_hashes_are_distinct",
|
| 1216 |
+
"reasons": [
|
| 1217 |
+
{
|
| 1218 |
+
"id": "all_assertions_weak",
|
| 1219 |
+
"message": "pytest test uses only weak assertions",
|
| 1220 |
+
"path": "eval/tests/test_type_hashes.py",
|
| 1221 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1222 |
+
"severity": "error",
|
| 1223 |
+
"stage": "static_lint"
|
| 1224 |
+
}
|
| 1225 |
+
]
|
| 1226 |
+
},
|
| 1227 |
+
{
|
| 1228 |
+
"name": "eval.tests.test_type_token_vocabulary.test_int_token_appears_for_signed_coordinates",
|
| 1229 |
+
"reasons": [
|
| 1230 |
+
{
|
| 1231 |
+
"id": "short_substring",
|
| 1232 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1233 |
+
"path": "eval/tests/test_type_token_vocabulary.py",
|
| 1234 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1235 |
+
"severity": "error",
|
| 1236 |
+
"stage": "static_lint"
|
| 1237 |
+
}
|
| 1238 |
+
]
|
| 1239 |
+
},
|
| 1240 |
+
{
|
| 1241 |
+
"name": "eval.tests.test_type_token_vocabulary.test_unsigned_int_token_is_color_word",
|
| 1242 |
+
"reasons": [
|
| 1243 |
+
{
|
| 1244 |
+
"id": "assertion_disjunction",
|
| 1245 |
+
"message": "pytest assertion accepts alternatives with or",
|
| 1246 |
+
"path": "eval/tests/test_type_token_vocabulary.py",
|
| 1247 |
+
"repair_hint": "Assert one exact expected outcome instead of accepting alternative outcomes with or.",
|
| 1248 |
+
"severity": "error",
|
| 1249 |
+
"stage": "static_lint"
|
| 1250 |
+
}
|
| 1251 |
+
]
|
| 1252 |
+
},
|
| 1253 |
+
{
|
| 1254 |
+
"name": "eval.tests.test_type_tokens.test_dump_field_value_parity",
|
| 1255 |
+
"reasons": [
|
| 1256 |
+
{
|
| 1257 |
+
"id": "if_no_else",
|
| 1258 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1259 |
+
"path": "eval/tests/test_type_tokens.py",
|
| 1260 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1261 |
+
"severity": "error",
|
| 1262 |
+
"stage": "static_lint"
|
| 1263 |
+
}
|
| 1264 |
+
]
|
| 1265 |
+
},
|
| 1266 |
+
{
|
| 1267 |
+
"name": "eval.tests.test_type_tokens.test_dump_type_token_braces_balanced",
|
| 1268 |
+
"reasons": [
|
| 1269 |
+
{
|
| 1270 |
+
"id": "if_no_else",
|
| 1271 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1272 |
+
"path": "eval/tests/test_type_tokens.py",
|
| 1273 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1274 |
+
"severity": "error",
|
| 1275 |
+
"stage": "static_lint"
|
| 1276 |
+
},
|
| 1277 |
+
{
|
| 1278 |
+
"id": "short_substring",
|
| 1279 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1280 |
+
"path": "eval/tests/test_type_tokens.py",
|
| 1281 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1282 |
+
"severity": "error",
|
| 1283 |
+
"stage": "static_lint"
|
| 1284 |
+
}
|
| 1285 |
+
]
|
| 1286 |
+
},
|
| 1287 |
+
{
|
| 1288 |
+
"name": "eval.tests.test_type_tokens.test_point_x_and_y_are_int",
|
| 1289 |
+
"reasons": [
|
| 1290 |
+
{
|
| 1291 |
+
"id": "short_substring",
|
| 1292 |
+
"message": "pytest test uses a too-short substring oracle",
|
| 1293 |
+
"path": "eval/tests/test_type_tokens.py",
|
| 1294 |
+
"repair_hint": "Use a longer, specific substring or an exact normalized output comparison.",
|
| 1295 |
+
"severity": "error",
|
| 1296 |
+
"stage": "static_lint"
|
| 1297 |
+
}
|
| 1298 |
+
]
|
| 1299 |
+
},
|
| 1300 |
+
{
|
| 1301 |
+
"name": "eval.tests.test_type_tokens.test_point_z_is_unsigned_long",
|
| 1302 |
+
"reasons": [
|
| 1303 |
+
{
|
| 1304 |
+
"id": "generic_keyword_oracle",
|
| 1305 |
+
"message": "pytest test uses a generic keyword oracle",
|
| 1306 |
+
"path": "eval/tests/test_type_tokens.py",
|
| 1307 |
+
"repair_hint": "Replace generic keyword checks with exact diagnostics, structured output, or golden comparisons.",
|
| 1308 |
+
"severity": "error",
|
| 1309 |
+
"stage": "static_lint"
|
| 1310 |
+
}
|
| 1311 |
+
]
|
| 1312 |
+
},
|
| 1313 |
+
{
|
| 1314 |
+
"name": "eval.tests.test_unreachable_branch_contracts.test_no_scalar_primitive_rendered_without_value",
|
| 1315 |
+
"reasons": [
|
| 1316 |
+
{
|
| 1317 |
+
"id": "if_no_else",
|
| 1318 |
+
"message": "pytest test has a conditional assertion with no else branch",
|
| 1319 |
+
"path": "eval/tests/test_unreachable_branch_contracts.py",
|
| 1320 |
+
"repair_hint": "Add an else branch that fails, or assert the condition before making conditional checks.",
|
| 1321 |
+
"severity": "error",
|
| 1322 |
+
"stage": "static_lint"
|
| 1323 |
+
},
|
| 1324 |
+
{
|
| 1325 |
+
"id": "if_else_both_assert",
|
| 1326 |
+
"message": "pytest test asserts different outcomes in both if and else branches",
|
| 1327 |
+
"path": "eval/tests/test_unreachable_branch_contracts.py",
|
| 1328 |
+
"repair_hint": "Remove nondeterministic branching and assert one deterministic expected behavior.",
|
| 1329 |
+
"severity": "error",
|
| 1330 |
+
"stage": "static_lint"
|
| 1331 |
+
}
|
| 1332 |
+
]
|
| 1333 |
+
},
|
| 1334 |
+
{
|
| 1335 |
+
"name": "eval.tests.test_vector_monotonic_ordering.test_dump_vector_order_matches_json",
|
| 1336 |
+
"reasons": [
|
| 1337 |
+
{
|
| 1338 |
+
"id": "golden_no_equality",
|
| 1339 |
+
"message": "pytest test references golden data without equality comparison",
|
| 1340 |
+
"path": "eval/tests/test_vector_monotonic_ordering.py",
|
| 1341 |
+
"repair_hint": "Compare observed output to golden data with equality after any explicit normalization.",
|
| 1342 |
+
"severity": "error",
|
| 1343 |
+
"stage": "static_lint"
|
| 1344 |
+
}
|
| 1345 |
+
]
|
| 1346 |
+
},
|
| 1347 |
+
{
|
| 1348 |
+
"name": "eval.tests.test_vector_monotonic_ordering.test_vector_elements_are_pairwise_distinct",
|
| 1349 |
+
"reasons": [
|
| 1350 |
+
{
|
| 1351 |
+
"id": "all_assertions_weak",
|
| 1352 |
+
"message": "pytest test uses only weak assertions",
|
| 1353 |
+
"path": "eval/tests/test_vector_monotonic_ordering.py",
|
| 1354 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1355 |
+
"severity": "error",
|
| 1356 |
+
"stage": "static_lint"
|
| 1357 |
+
}
|
| 1358 |
+
]
|
| 1359 |
+
},
|
| 1360 |
+
{
|
| 1361 |
+
"name": "eval.tests.test_vector_monotonic_ordering.test_vector_has_exactly_four_elements",
|
| 1362 |
+
"reasons": [
|
| 1363 |
+
{
|
| 1364 |
+
"id": "all_assertions_weak",
|
| 1365 |
+
"message": "pytest test uses only weak assertions",
|
| 1366 |
+
"path": "eval/tests/test_vector_monotonic_ordering.py",
|
| 1367 |
+
"repair_hint": "Add at least one semantic oracle over concrete output, files, schema, or state.",
|
| 1368 |
+
"severity": "error",
|
| 1369 |
+
"stage": "static_lint"
|
| 1370 |
+
}
|
| 1371 |
+
]
|
| 1372 |
+
}
|
| 1373 |
+
],
|
| 1374 |
+
"tests": [
|
| 1375 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[empty_string_arg]",
|
| 1376 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[help_flag]",
|
| 1377 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[long_argument]",
|
| 1378 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[many_positional]",
|
| 1379 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[no_args]",
|
| 1380 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[numeric_args]",
|
| 1381 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[short_help]",
|
| 1382 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[single_dash_arg]",
|
| 1383 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[single_dash_dash]",
|
| 1384 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[space_and_symbols]",
|
| 1385 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[unknown_flag]",
|
| 1386 |
+
"eval.tests.test_argv_invariance.test_output_invariant_across_argv[version_flag]",
|
| 1387 |
+
"eval.tests.test_argv_invariance.test_plain_run_matches_golden",
|
| 1388 |
+
"eval.tests.test_cross_section_consistency.test_aliased_objects_share_pre_write_coordinates",
|
| 1389 |
+
"eval.tests.test_cross_section_consistency.test_all_point_nodes_share_keys",
|
| 1390 |
+
"eval.tests.test_cross_section_consistency.test_distinct_point_coordinate_sets",
|
| 1391 |
+
"eval.tests.test_cross_section_consistency.test_roundtrip_value_appears_in_roundtrip_section_only",
|
| 1392 |
+
"eval.tests.test_cross_section_consistency.test_standalone_point_section_precedes_nested",
|
| 1393 |
+
"eval.tests.test_cross_section_consistency.test_vector_nodes_are_distinct_unit_coords",
|
| 1394 |
+
"eval.tests.test_dump_structure.test_coloredpoint_dump_closing",
|
| 1395 |
+
"eval.tests.test_dump_structure.test_coloredpoint_dump_color",
|
| 1396 |
+
"eval.tests.test_dump_structure.test_coloredpoint_dump_cstring_pointer",
|
| 1397 |
+
"eval.tests.test_dump_structure.test_coloredpoint_dump_has_nested_point",
|
| 1398 |
+
"eval.tests.test_dump_structure.test_object_dump_no_unserialized_children",
|
| 1399 |
+
"eval.tests.test_dump_structure.test_object_dump_pointer_member",
|
| 1400 |
+
"eval.tests.test_dump_structure.test_object_dump_points_array_empty",
|
| 1401 |
+
"eval.tests.test_dump_structure.test_point_dump_closes_brace",
|
| 1402 |
+
"eval.tests.test_dump_structure.test_point_dump_member_indentation",
|
| 1403 |
+
"eval.tests.test_dump_structure.test_point_dump_structure",
|
| 1404 |
+
"eval.tests.test_dump_structure.test_user_dump_close",
|
| 1405 |
+
"eval.tests.test_dump_structure.test_user_dump_fields",
|
| 1406 |
+
"eval.tests.test_dump_structure.test_user_dump_pets_vector",
|
| 1407 |
+
"eval.tests.test_dump_structure.test_vector_dump_element_values",
|
| 1408 |
+
"eval.tests.test_dump_structure.test_vector_dump_has_four_elements",
|
| 1409 |
+
"eval.tests.test_dump_structure.test_vector_dump_index_label_format",
|
| 1410 |
+
"eval.tests.test_dump_structure.test_vector_dump_single_element_values",
|
| 1411 |
+
"eval.tests.test_empty_containers.test_nonempty_vector_json_is_single_array",
|
| 1412 |
+
"eval.tests.test_empty_containers.test_object_c_array_dump_is_empty",
|
| 1413 |
+
"eval.tests.test_empty_containers.test_object_dump_omits_unserialized_members",
|
| 1414 |
+
"eval.tests.test_empty_containers.test_object_json_has_exactly_two_fields",
|
| 1415 |
+
"eval.tests.test_empty_containers.test_object_omits_unserialized_children",
|
| 1416 |
+
"eval.tests.test_empty_containers.test_object_points_json_is_empty_array",
|
| 1417 |
+
"eval.tests.test_empty_containers.test_vector_contrast_is_nonempty",
|
| 1418 |
+
"eval.tests.test_exact_json_lines.test_exactly_five_json_value_lines",
|
| 1419 |
+
"eval.tests.test_exact_json_lines.test_json_line_exact_bytes[coloredpoint]",
|
| 1420 |
+
"eval.tests.test_exact_json_lines.test_json_line_exact_bytes[object]",
|
| 1421 |
+
"eval.tests.test_exact_json_lines.test_json_line_exact_bytes[point]",
|
| 1422 |
+
"eval.tests.test_exact_json_lines.test_json_line_exact_bytes[user]",
|
| 1423 |
+
"eval.tests.test_exact_json_lines.test_json_line_exact_bytes[vector]",
|
| 1424 |
+
"eval.tests.test_exact_json_lines.test_json_lines_are_single_line_values",
|
| 1425 |
+
"eval.tests.test_exact_json_lines.test_no_json_value_has_interior_whitespace",
|
| 1426 |
+
"eval.tests.test_exact_json_lines.test_object_json_begins_with_type_hash[0-9962967977086807313]",
|
| 1427 |
+
"eval.tests.test_exact_json_lines.test_object_json_begins_with_type_hash[1-12357538589151270293]",
|
| 1428 |
+
"eval.tests.test_exact_json_lines.test_object_json_begins_with_type_hash[2-8287048469554089178]",
|
| 1429 |
+
"eval.tests.test_exact_json_lines.test_object_json_begins_with_type_hash[4-11857839211710813138]",
|
| 1430 |
+
"eval.tests.test_indentation_depth.test_coloredpoint_top_members_two_spaces",
|
| 1431 |
+
"eval.tests.test_indentation_depth.test_nested_class_members_use_exactly_four_spaces",
|
| 1432 |
+
"eval.tests.test_indentation_depth.test_nested_depth_two_lines_present",
|
| 1433 |
+
"eval.tests.test_indentation_depth.test_object_top_members_two_spaces",
|
| 1434 |
+
"eval.tests.test_indentation_depth.test_only_one_and_two_space_depths_in_trace",
|
| 1435 |
+
"eval.tests.test_indentation_depth.test_pets_vector_string_elements_depth_two",
|
| 1436 |
+
"eval.tests.test_indentation_depth.test_top_level_members_use_exactly_two_spaces",
|
| 1437 |
+
"eval.tests.test_indentation_depth.test_vector_element_members_are_depth_two",
|
| 1438 |
+
"eval.tests.test_inter_visitor_consistency.test_dump_and_json_values_agree[coloredpoint]",
|
| 1439 |
+
"eval.tests.test_inter_visitor_consistency.test_dump_and_json_values_agree[object]",
|
| 1440 |
+
"eval.tests.test_inter_visitor_consistency.test_dump_and_json_values_agree[point]",
|
| 1441 |
+
"eval.tests.test_inter_visitor_consistency.test_json_reflects_dump_field_count",
|
| 1442 |
+
"eval.tests.test_inter_visitor_consistency.test_user_dump_and_json_agree",
|
| 1443 |
+
"eval.tests.test_inter_visitor_consistency.test_vector_dump_and_json_agree",
|
| 1444 |
+
"eval.tests.test_json_structure.test_json_coloredpoint_exact_keys",
|
| 1445 |
+
"eval.tests.test_json_structure.test_json_coloredpoint_nested_point_keys",
|
| 1446 |
+
"eval.tests.test_json_structure.test_json_coloredpoint_type_and_fields",
|
| 1447 |
+
"eval.tests.test_json_structure.test_json_emission_order_point_before_object",
|
| 1448 |
+
"eval.tests.test_json_structure.test_json_object_has_only_visible_fields",
|
| 1449 |
+
"eval.tests.test_json_structure.test_json_object_points_is_empty_array",
|
| 1450 |
+
"eval.tests.test_json_structure.test_json_object_type_and_fields",
|
| 1451 |
+
"eval.tests.test_json_structure.test_json_point_has_exact_keys",
|
| 1452 |
+
"eval.tests.test_json_structure.test_json_point_type_and_fields",
|
| 1453 |
+
"eval.tests.test_json_structure.test_json_user_exact_keys",
|
| 1454 |
+
"eval.tests.test_json_structure.test_json_user_is_last_section",
|
| 1455 |
+
"eval.tests.test_json_structure.test_json_user_pets_list",
|
| 1456 |
+
"eval.tests.test_json_structure.test_json_user_type_and_fields",
|
| 1457 |
+
"eval.tests.test_json_structure.test_json_vector_element_coords",
|
| 1458 |
+
"eval.tests.test_json_structure.test_json_vector_is_array_of_four",
|
| 1459 |
+
"eval.tests.test_json_wellformedness.test_all_brace_lines_are_valid_json",
|
| 1460 |
+
"eval.tests.test_json_wellformedness.test_coloredpoint_json_field_separators",
|
| 1461 |
+
"eval.tests.test_json_wellformedness.test_json_lines_have_no_leading_comma",
|
| 1462 |
+
"eval.tests.test_json_wellformedness.test_json_lines_have_no_trailing_comma",
|
| 1463 |
+
"eval.tests.test_json_wellformedness.test_point_json_comma_separation",
|
| 1464 |
+
"eval.tests.test_json_wellformedness.test_user_json_pets_array",
|
| 1465 |
+
"eval.tests.test_json_wellformedness.test_vector_json_array_separators",
|
| 1466 |
+
"eval.tests.test_line_index_layout.test_coloredpoint_block_line_positions",
|
| 1467 |
+
"eval.tests.test_line_index_layout.test_dump_precedes_json_per_reflected_object",
|
| 1468 |
+
"eval.tests.test_line_index_layout.test_json_value_lines_indices",
|
| 1469 |
+
"eval.tests.test_line_index_layout.test_object_block_line_positions",
|
| 1470 |
+
"eval.tests.test_line_index_layout.test_point_block_line_positions",
|
| 1471 |
+
"eval.tests.test_line_index_layout.test_roundtrip_and_vector_line_positions",
|
| 1472 |
+
"eval.tests.test_line_index_layout.test_separators_strictly_ascending",
|
| 1473 |
+
"eval.tests.test_line_index_layout.test_vector_json_and_user_line_positions",
|
| 1474 |
+
"eval.tests.test_liveness.test_binary_completes_within_bounded_time",
|
| 1475 |
+
"eval.tests.test_liveness.test_binary_does_not_consume_stdin_and_exits",
|
| 1476 |
+
"eval.tests.test_liveness.test_repeated_runs_all_succeed",
|
| 1477 |
+
"eval.tests.test_numeric_precision.test_coordinate_numbers_are_exact_integers",
|
| 1478 |
+
"eval.tests.test_numeric_precision.test_expected_numeric_token_count",
|
| 1479 |
+
"eval.tests.test_numeric_precision.test_json_integer_roundtrip_exact[0-x-10]",
|
| 1480 |
+
"eval.tests.test_numeric_precision.test_json_integer_roundtrip_exact[1-color_rgb-4279533568]",
|
| 1481 |
+
"eval.tests.test_numeric_precision.test_json_integer_roundtrip_exact[4-id-42]",
|
| 1482 |
+
"eval.tests.test_numeric_precision.test_json_integer_roundtrip_exact[vec-0-1]",
|
| 1483 |
+
"eval.tests.test_numeric_precision.test_json_integer_roundtrip_exact[vec-3-4]",
|
| 1484 |
+
"eval.tests.test_numeric_precision.test_no_exponent_and_no_fraction_in_numeric_tokens",
|
| 1485 |
+
"eval.tests.test_numeric_precision.test_no_fractional_number_tokens",
|
| 1486 |
+
"eval.tests.test_numeric_precision.test_rgbcolor_word_exact",
|
| 1487 |
+
"eval.tests.test_numeric_precision.test_type_hashes_render_as_integers",
|
| 1488 |
+
"eval.tests.test_numeric_precision.test_vector_numbers_all_integer",
|
| 1489 |
+
"eval.tests.test_output_whitespace.test_blank_line_after_each_top_level_close",
|
| 1490 |
+
"eval.tests.test_output_whitespace.test_blank_line_positions[after_coloredpoint]",
|
| 1491 |
+
"eval.tests.test_output_whitespace.test_blank_line_positions[after_object]",
|
| 1492 |
+
"eval.tests.test_output_whitespace.test_blank_line_positions[after_point]",
|
| 1493 |
+
"eval.tests.test_output_whitespace.test_blank_line_positions[after_user]",
|
| 1494 |
+
"eval.tests.test_output_whitespace.test_blank_line_positions[after_vector]",
|
| 1495 |
+
"eval.tests.test_output_whitespace.test_exact_blank_line_count",
|
| 1496 |
+
"eval.tests.test_output_whitespace.test_no_carriage_return",
|
| 1497 |
+
"eval.tests.test_output_whitespace.test_no_line_has_trailing_whitespace",
|
| 1498 |
+
"eval.tests.test_output_whitespace.test_no_pair_of_blank_lines",
|
| 1499 |
+
"eval.tests.test_output_whitespace.test_section_separator_lines_are_exact",
|
| 1500 |
+
"eval.tests.test_qualifier_rendering.test_ampersand_abuts_type_not_value",
|
| 1501 |
+
"eval.tests.test_qualifier_rendering.test_exactly_two_ampersands_in_trace",
|
| 1502 |
+
"eval.tests.test_qualifier_rendering.test_no_ampersand_in_json_output",
|
| 1503 |
+
"eval.tests.test_qualifier_rendering.test_no_double_ampersand",
|
| 1504 |
+
"eval.tests.test_qualifier_rendering.test_non_pointer_members_have_no_marker",
|
| 1505 |
+
"eval.tests.test_qualifier_rendering.test_pointer_marker_presence_matches_serialized_pointer_arity",
|
| 1506 |
+
"eval.tests.test_qualifier_rendering.test_pointer_member_markers",
|
| 1507 |
+
"eval.tests.test_reflection_roundtrip.test_only_one_set_op",
|
| 1508 |
+
"eval.tests.test_reflection_roundtrip.test_roundtrip_final_read_reflects_write",
|
| 1509 |
+
"eval.tests.test_reflection_roundtrip.test_roundtrip_initial_read_matches_stored",
|
| 1510 |
+
"eval.tests.test_reflection_roundtrip.test_roundtrip_lines_appear_in_order",
|
| 1511 |
+
"eval.tests.test_reflection_roundtrip.test_roundtrip_set_line_present",
|
| 1512 |
+
"eval.tests.test_reflection_roundtrip.test_roundtrip_tightly_sequenced",
|
| 1513 |
+
"eval.tests.test_rgba_byte_decomposition.test_dump_renders_same_word",
|
| 1514 |
+
"eval.tests.test_rgba_byte_decomposition.test_exact_hex_word",
|
| 1515 |
+
"eval.tests.test_rgba_byte_decomposition.test_no_component_overflows_byte",
|
| 1516 |
+
"eval.tests.test_rgba_byte_decomposition.test_recovered_color_components_match_main_literals",
|
| 1517 |
+
"eval.tests.test_rgba_byte_decomposition.test_rgb_renders_as_unsigned_int_type_token",
|
| 1518 |
+
"eval.tests.test_rgba_byte_decomposition.test_rgb_word_exact_value",
|
| 1519 |
+
"eval.tests.test_roundtrip_isolation.test_fifty_appears_exactly_twice",
|
| 1520 |
+
"eval.tests.test_roundtrip_isolation.test_no_leak_into_dump_blocks",
|
| 1521 |
+
"eval.tests.test_roundtrip_isolation.test_no_leak_into_json_sections",
|
| 1522 |
+
"eval.tests.test_roundtrip_isolation.test_pre_write_value_still_ten_in_aliased_nodes",
|
| 1523 |
+
"eval.tests.test_roundtrip_isolation.test_roundtrip_block_is_exactly_three_lines",
|
| 1524 |
+
"eval.tests.test_roundtrip_isolation.test_roundtrip_read_back_equals_write",
|
| 1525 |
+
"eval.tests.test_roundtrip_isolation.test_value_fifty_appears_only_in_roundtrip_lines",
|
| 1526 |
+
"eval.tests.test_sections.test_class_order_sequence",
|
| 1527 |
+
"eval.tests.test_sections.test_each_object_block_has_json_suffix",
|
| 1528 |
+
"eval.tests.test_sections.test_exactly_three_separators",
|
| 1529 |
+
"eval.tests.test_sections.test_first_three_blocks_open_with_class_names",
|
| 1530 |
+
"eval.tests.test_sections.test_four_blocks",
|
| 1531 |
+
"eval.tests.test_sections.test_roundtrip_belongs_to_final_block",
|
| 1532 |
+
"eval.tests.test_state_invariance.test_no_files_created_in_cwd",
|
| 1533 |
+
"eval.tests.test_state_invariance.test_output_independent_of_cwd[a]",
|
| 1534 |
+
"eval.tests.test_state_invariance.test_output_independent_of_cwd[nested/dir]",
|
| 1535 |
+
"eval.tests.test_state_invariance.test_output_independent_of_cwd[with space]",
|
| 1536 |
+
"eval.tests.test_state_invariance.test_output_independent_of_stdin[binary_noise]",
|
| 1537 |
+
"eval.tests.test_state_invariance.test_output_independent_of_stdin[empty_stdin]",
|
| 1538 |
+
"eval.tests.test_state_invariance.test_output_independent_of_stdin[long_stdin]",
|
| 1539 |
+
"eval.tests.test_state_invariance.test_output_independent_of_stdin[short_text]",
|
| 1540 |
+
"eval.tests.test_stdout_invariants.test_exit_code_zero",
|
| 1541 |
+
"eval.tests.test_stdout_invariants.test_stderr_is_empty",
|
| 1542 |
+
"eval.tests.test_stdout_invariants.test_stdout_ends_with_trailing_newline",
|
| 1543 |
+
"eval.tests.test_stdout_invariants.test_stdout_has_expected_byte_length",
|
| 1544 |
+
"eval.tests.test_stdout_invariants.test_stdout_has_expected_line_count",
|
| 1545 |
+
"eval.tests.test_stdout_invariants.test_stdout_is_nonempty",
|
| 1546 |
+
"eval.tests.test_type_hashes.test_emitted_type_hash[ColoredPoint]",
|
| 1547 |
+
"eval.tests.test_type_hashes.test_emitted_type_hash[Object]",
|
| 1548 |
+
"eval.tests.test_type_hashes.test_emitted_type_hash[Point]",
|
| 1549 |
+
"eval.tests.test_type_hashes.test_emitted_type_hash[RGBColor]",
|
| 1550 |
+
"eval.tests.test_type_hashes.test_emitted_type_hash[User]",
|
| 1551 |
+
"eval.tests.test_type_hashes.test_hashes_are_distinct",
|
| 1552 |
+
"eval.tests.test_type_hashes.test_rgbcolor_hash_appears_nested_only",
|
| 1553 |
+
"eval.tests.test_type_hashes.test_standalone_hashes_appear_exactly_once_as_type_key",
|
| 1554 |
+
"eval.tests.test_type_token_vocabulary.test_int_token_appears_for_signed_coordinates",
|
| 1555 |
+
"eval.tests.test_type_token_vocabulary.test_no_unknown_value_tokens",
|
| 1556 |
+
"eval.tests.test_type_token_vocabulary.test_string_token_count",
|
| 1557 |
+
"eval.tests.test_type_token_vocabulary.test_unsigned_int_token_is_color_word",
|
| 1558 |
+
"eval.tests.test_type_token_vocabulary.test_unsigned_long_long_token_is_user_id",
|
| 1559 |
+
"eval.tests.test_type_token_vocabulary.test_unsigned_long_token_is_z",
|
| 1560 |
+
"eval.tests.test_type_token_vocabulary.test_value_token_vocabulary_exact",
|
| 1561 |
+
"eval.tests.test_type_tokens.test_coloredpoint_name_cstring_type",
|
| 1562 |
+
"eval.tests.test_type_tokens.test_dump_field_value_parity",
|
| 1563 |
+
"eval.tests.test_type_tokens.test_dump_type_token_braces_balanced",
|
| 1564 |
+
"eval.tests.test_type_tokens.test_point_x_and_y_are_int",
|
| 1565 |
+
"eval.tests.test_type_tokens.test_point_z_is_unsigned_long",
|
| 1566 |
+
"eval.tests.test_type_tokens.test_rgbcolor_rgb_is_unsigned_int",
|
| 1567 |
+
"eval.tests.test_type_tokens.test_user_id_is_unsigned_long_long",
|
| 1568 |
+
"eval.tests.test_unreachable_branch_contracts.test_dump_null_reflect_diagnostic_never_rendered",
|
| 1569 |
+
"eval.tests.test_unreachable_branch_contracts.test_dump_primitive_null_marker_never_rendered",
|
| 1570 |
+
"eval.tests.test_unreachable_branch_contracts.test_dump_scalar_tokens_stay_within_to_double_coverage",
|
| 1571 |
+
"eval.tests.test_unreachable_branch_contracts.test_dump_string_null_marker_never_rendered",
|
| 1572 |
+
"eval.tests.test_unreachable_branch_contracts.test_dump_strings_are_all_nonempty",
|
| 1573 |
+
"eval.tests.test_unreachable_branch_contracts.test_json_primitive_null_marker_never_rendered",
|
| 1574 |
+
"eval.tests.test_unreachable_branch_contracts.test_json_string_null_marker_never_rendered",
|
| 1575 |
+
"eval.tests.test_unreachable_branch_contracts.test_no_scalar_primitive_rendered_without_value",
|
| 1576 |
+
"eval.tests.test_unreachable_branch_contracts.test_scalar_json_numbers_are_all_integers",
|
| 1577 |
+
"eval.tests.test_vector_monotonic_ordering.test_all_elements_are_points",
|
| 1578 |
+
"eval.tests.test_vector_monotonic_ordering.test_dump_vector_order_matches_json",
|
| 1579 |
+
"eval.tests.test_vector_monotonic_ordering.test_vector_coordinates_strictly_increasing",
|
| 1580 |
+
"eval.tests.test_vector_monotonic_ordering.test_vector_elements_are_pairwise_distinct",
|
| 1581 |
+
"eval.tests.test_vector_monotonic_ordering.test_vector_elements_match_insertion",
|
| 1582 |
+
"eval.tests.test_vector_monotonic_ordering.test_vector_has_exactly_four_elements"
|
| 1583 |
+
]
|
| 1584 |
+
}
|
| 1585 |
+
},
|
| 1586 |
+
"commit": "0208fdd4fc0ea1081ae2ff4c3bfce161305a7423",
|
| 1587 |
+
"data_source": "synthetic_programgym",
|
| 1588 |
+
"difficulty": "easy",
|
| 1589 |
+
"difficulty_score": 1.4261858252445112,
|
| 1590 |
+
"eval_clean_hashes": [
|
| 1591 |
+
"576855db2709a4c3d620810e713ae4ca268498545fe0d97834187e4c32caf521"
|
| 1592 |
+
],
|
| 1593 |
+
"input_record": {
|
| 1594 |
+
"commit": "0208fdd4fc0ea1081ae2ff4c3bfce161305a7423",
|
| 1595 |
+
"difficulty": "easy",
|
| 1596 |
+
"difficulty_code_lines": 2668,
|
| 1597 |
+
"difficulty_has_tests": false,
|
| 1598 |
+
"difficulty_product_code_lines": 2668,
|
| 1599 |
+
"difficulty_runtime_deps": 0,
|
| 1600 |
+
"difficulty_score": 1.4261858252445112,
|
| 1601 |
+
"difficulty_test_code_lines": 82,
|
| 1602 |
+
"full_name": "Leandros/metareflect",
|
| 1603 |
+
"input_joern_zip": "cpp_joern/Leandros__metareflect.zip",
|
| 1604 |
+
"joern_status": true,
|
| 1605 |
+
"joern_time": 8.434252083068714,
|
| 1606 |
+
"language": "cpp",
|
| 1607 |
+
"pb_match": [
|
| 1608 |
+
{
|
| 1609 |
+
"pb_fullname": "ninja-build/ninja",
|
| 1610 |
+
"rank": 400,
|
| 1611 |
+
"similarity": 0.4534749984741211
|
| 1612 |
+
}
|
| 1613 |
+
],
|
| 1614 |
+
"repo_path": "cpp/Leandros__metareflect",
|
| 1615 |
+
"source": "commit:0208fdd4fc0ea1081ae2ff4c3bfce161305a7423",
|
| 1616 |
+
"status": "done",
|
| 1617 |
+
"url": "https://github.com/Leandros/metareflect"
|
| 1618 |
+
},
|
| 1619 |
+
"instance_id": "Leandros__metareflect.0208fdd",
|
| 1620 |
+
"language": "cpp",
|
| 1621 |
+
"module_iterations": [
|
| 1622 |
+
{
|
| 1623 |
+
"actual_iterations": 5,
|
| 1624 |
+
"branch_name": "generated_module_01",
|
| 1625 |
+
"iteration_limit": 5,
|
| 1626 |
+
"module_index": 1,
|
| 1627 |
+
"module_kind": "source",
|
| 1628 |
+
"termination_reason": "max_iterations"
|
| 1629 |
+
},
|
| 1630 |
+
{
|
| 1631 |
+
"actual_iterations": 5,
|
| 1632 |
+
"branch_name": "generated_module_02",
|
| 1633 |
+
"iteration_limit": 5,
|
| 1634 |
+
"module_index": 2,
|
| 1635 |
+
"module_kind": "source",
|
| 1636 |
+
"termination_reason": "max_iterations"
|
| 1637 |
+
},
|
| 1638 |
+
{
|
| 1639 |
+
"actual_iterations": 5,
|
| 1640 |
+
"branch_name": "generated_module_03",
|
| 1641 |
+
"iteration_limit": 5,
|
| 1642 |
+
"module_index": 3,
|
| 1643 |
+
"module_kind": "source",
|
| 1644 |
+
"termination_reason": "max_iterations"
|
| 1645 |
+
},
|
| 1646 |
+
{
|
| 1647 |
+
"actual_iterations": 5,
|
| 1648 |
+
"branch_name": "generated_module_04",
|
| 1649 |
+
"iteration_limit": 5,
|
| 1650 |
+
"module_index": 4,
|
| 1651 |
+
"module_kind": "source",
|
| 1652 |
+
"termination_reason": "max_iterations"
|
| 1653 |
+
}
|
| 1654 |
+
],
|
| 1655 |
+
"repository": "Leandros/metareflect"
|
| 1656 |
+
}
|
leandros--metareflect.0208fdd/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
|
leandros--metareflect.0208fdd/tests/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7efbabddd4feaa8760778b708ec63b80303458e9e90d15511dc475ad8bf246a4
|
| 3 |
+
size 15698
|
learning-rust--learning-rust.git/environment/Dockerfile
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM rust:1.97.1-bookworm
|
| 2 |
+
ENV DEBIAN_FRONTEND=noninteractive
|
| 3 |
+
ENV RUSTUP_DIST_SERVER="https://static.rust-lang.org"
|
| 4 |
+
ENV RUSTUP_UPDATE_ROOT="https://static.rust-lang.org/rustup"
|
| 5 |
+
ENV CARGO_REGISTRIES_CRATES_IO_PROTOCOL=sparse
|
| 6 |
+
ENV CARGO_REGISTRIES_CRATES_IO_INDEX="sparse+https://index.crates.io/"
|
| 7 |
+
ENV CARGO_NET_GIT_FETCH_WITH_CLI=true
|
| 8 |
+
ENV GOPROXY="https://proxy.golang.org,direct"
|
| 9 |
+
ENV GOSUMDB=sum.golang.google.cn
|
| 10 |
+
ENV GOTOOLCHAIN=auto
|
| 11 |
+
ENV UV_INSECURE_HOST=""
|
| 12 |
+
ENV UV_INDEX_URL="https://pypi.org/simple"
|
| 13 |
+
ENV UV_CACHE_DIR=/workspace/.cache/uv
|
| 14 |
+
ENV npm_config_registry="https://registry.npmjs.org/"
|
| 15 |
+
ENV npm_config_strict_ssl=false
|
| 16 |
+
ENV npm_config_cache=/workspace/.cache/npm
|
| 17 |
+
ENV PIP_INDEX_URL="https://pypi.org/simple"
|
| 18 |
+
ENV PIP_TRUSTED_HOST=""
|
| 19 |
+
ENV HOME=/workspace
|
| 20 |
+
ENV XDG_CACHE_HOME=/workspace/.cache
|
| 21 |
+
ENV PIP_CACHE_DIR=/workspace/.cache/pip
|
| 22 |
+
ENV PYTHONUSERBASE=/workspace/.local
|
| 23 |
+
ENV CARGO_HOME=/usr/local/cargo
|
| 24 |
+
ENV RUSTUP_HOME=/usr/local/rustup
|
| 25 |
+
ENV RUSTUP_TOOLCHAIN=1.97.1
|
| 26 |
+
ENV PROGRAMGYM_RUST_TOOLCHAIN=1.97.1
|
| 27 |
+
ENV PATH=/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
|
| 28 |
+
ENV PAGER=cat
|
| 29 |
+
ENV MANPAGER=cat
|
| 30 |
+
ENV LESS=-R
|
| 31 |
+
ENV TQDM_DISABLE=1
|
| 32 |
+
RUN apt-get update && apt-get install -y --no-install-recommends apt=2.6.1 bash=5.2.15-2+b13 build-essential=12.9 ca-certificates=20250419~deb12u1 cmake=3.25.1-1 git=1:2.39.5-0+deb12u3 make=4.3-4.1 pkg-config=1.8.1-1 python3=3.11.2-1+b1 python3-pip=23.0.1+dfsg-1 python3-dev=3.11.2-1+b1 autoconf=2.71-3 automake=1:1.16.5-1.3 gettext=0.21-12 file=1:5.44-3 binutils=2.40-2 libtool=2.4.7-7~deb12u1 libncurses-dev=6.4-4 meson=1.0.1-5 ninja-build=1.11.1-2~deb12u1 curl=7.88.1-10+deb12u15 wget=1.21.3-1+deb12u1 xz-utils=5.4.1-1+deb12u1 zstd=1.5.4+dfsg2-5 bzip2=1.0.8-5+b1 zip=3.0-13 unzip=6.0-28+deb12u1 patch=2.7.6-7 grep=3.8-5 python3-pytest python3-pytest-xdist python3-coverage && rm -rf /var/lib/apt/lists/*
|
| 33 |
+
RUN rustup component add llvm-tools-preview --toolchain 1.97.1
|
| 34 |
+
RUN RUST_SYSROOT="$(rustc --print sysroot)"; RUST_HOST="$(rustc -vV | sed -n 's/^host: //p')"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-profdata"; test -x "$RUST_SYSROOT/lib/rustlib/$RUST_HOST/bin/llvm-cov"
|
| 35 |
+
RUN rustc --version && cargo --version && rustup show active-toolchain
|
| 36 |
+
WORKDIR /workspace
|
| 37 |
+
ADD workspace.tar.gz /workspace/
|
| 38 |
+
COPY executable /workspace/executable
|
| 39 |
+
COPY download.sh /tmp/programgym-download.sh
|
| 40 |
+
RUN chmod 755 /tmp/programgym-download.sh
|
| 41 |
+
COPY harbor_prepare_download_env.sh /tmp/harbor_prepare_download_env.sh
|
| 42 |
+
RUN chmod 755 /tmp/harbor_prepare_download_env.sh \
|
| 43 |
+
&& /bin/bash /tmp/harbor_prepare_download_env.sh \
|
| 44 |
+
&& rm -f /tmp/programgym-download.sh \
|
| 45 |
+
&& rm -f /tmp/harbor_prepare_download_env.sh
|
| 46 |
+
ENV BASH_ENV=/etc/profile.d/programgym_download_env.sh
|
| 47 |
+
RUN chmod 111 /workspace/executable
|
| 48 |
+
WORKDIR /workspace
|
| 49 |
+
# Harbor synthetic ProgramGym adapter: run the agent as an unprivileged user.
|
| 50 |
+
# Keep tool/runtime state under /home/agent and reserve /workspace for the
|
| 51 |
+
# submission handed to the separate verifier. Keep the reference executable
|
| 52 |
+
# execute-only; the oracle temporarily restores owner read permission.
|
| 53 |
+
RUN id -u agent >/dev/null 2>&1 || useradd -m -s /bin/bash agent
|
| 54 |
+
RUN mkdir -p /home/agent \
|
| 55 |
+
&& chown -R agent:agent /home/agent /workspace \
|
| 56 |
+
&& chown agent:agent /workspace/executable \
|
| 57 |
+
&& chmod 111 /workspace/executable
|
| 58 |
+
ENV HOME=/home/agent
|
| 59 |
+
WORKDIR /workspace
|
learning-rust--learning-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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# download.sh for learning-rust/learning-rust.github.io
|
| 3 |
+
#
|
| 4 |
+
# ProgramGym download stage. Prepares everything needed for the offline
|
| 5 |
+
# cargo build of the image_generator tool:
|
| 6 |
+
# 1. Install the nasm x86 assembler (required to compile the C code bundled
|
| 7 |
+
# in the mozjpeg-sys crate at build time).
|
| 8 |
+
# 2. Generate a temporary Cargo manifest + Cargo.lock (same content as the
|
| 9 |
+
# repository's committed files) and run `cargo fetch --manifest-path`
|
| 10 |
+
# against it so the offline registry cache contains exactly the pinned
|
| 11 |
+
# crate versions that build.sh will resolve offline.
|
| 12 |
+
#
|
| 13 |
+
# This file must be source-able (executed via `source /source_ro/download.sh`),
|
| 14 |
+
# must not read any repository file, and must not compile anything.
|
| 15 |
+
|
| 16 |
+
# --- Locally scoped working directory for generated manifest/lock ----------
|
| 17 |
+
# Choose a scratch dir that survives into the build stage so build.sh could in
|
| 18 |
+
# principle rely on it; we primarily need it for cargo fetch here.
|
| 19 |
+
DOWNLOAD_WORKDIR="${DOWNLOAD_WORKDIR:-$(mktemp -d)}"
|
| 20 |
+
mkdir -p "${DOWNLOAD_WORKDIR}/image_generator/src"
|
| 21 |
+
|
| 22 |
+
# --- Ensure the nasm assembler is installed ---------------------------------
|
| 23 |
+
# mozjpeg-sys compiles the bundled libmozjpeg using nasm.
|
| 24 |
+
if [ -z "$(command -v nasm)" ]; then
|
| 25 |
+
apt-get update
|
| 26 |
+
apt-get install -y nasm
|
| 27 |
+
fi
|
| 28 |
+
|
| 29 |
+
# --- Generate the Cargo manifest inline (mirrors image_generator/Cargo.toml)
|
| 30 |
+
cat > "${DOWNLOAD_WORKDIR}/image_generator/Cargo.toml" <<'MANIFEST_EOF'
|
| 31 |
+
[package]
|
| 32 |
+
name = "image_generator"
|
| 33 |
+
version = "0.1.0"
|
| 34 |
+
edition = "2024"
|
| 35 |
+
|
| 36 |
+
[dependencies]
|
| 37 |
+
image = "0.24"
|
| 38 |
+
mozjpeg = "0.10"
|
| 39 |
+
imageproc = "0.23"
|
| 40 |
+
rusttype = "0.9"
|
| 41 |
+
anyhow = "1.0"
|
| 42 |
+
serde = { version = "1.0", features = ["derive"] }
|
| 43 |
+
serde_yaml = "0.9"
|
| 44 |
+
walkdir = "2"
|
| 45 |
+
MANIFEST_EOF
|
| 46 |
+
|
| 47 |
+
# Matching minimal stub so cargo can load the package manifest.
|
| 48 |
+
cat > "${DOWNLOAD_WORKDIR}/image_generator/src/main.rs" <<'STUB_EOF'
|
| 49 |
+
fn main() { println!("dependency prefetch stub"); }
|
| 50 |
+
STUB_EOF
|
| 51 |
+
|
| 52 |
+
# --- Generate the Cargo.lock inline (mirrors the committed image_generator/Cargo.lock)
|
| 53 |
+
cat > "${DOWNLOAD_WORKDIR}/image_generator/Cargo.lock" <<'LOCK_EOF'
|
| 54 |
+
# This file is automatically @generated by Cargo.
|
| 55 |
+
# It is not intended for manual editing.
|
| 56 |
+
version = 4
|
| 57 |
+
|
| 58 |
+
[[package]]
|
| 59 |
+
name = "ab_glyph_rasterizer"
|
| 60 |
+
version = "0.1.10"
|
| 61 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 62 |
+
checksum = "366ffbaa4442f4684d91e2cd7c5ea7c4ed8add41959a31447066e279e432b618"
|
| 63 |
+
|
| 64 |
+
[[package]]
|
| 65 |
+
name = "adler2"
|
| 66 |
+
version = "2.0.1"
|
| 67 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 68 |
+
checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
|
| 69 |
+
|
| 70 |
+
[[package]]
|
| 71 |
+
name = "anyhow"
|
| 72 |
+
version = "1.0.102"
|
| 73 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 74 |
+
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
| 75 |
+
|
| 76 |
+
[[package]]
|
| 77 |
+
name = "approx"
|
| 78 |
+
version = "0.5.1"
|
| 79 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 80 |
+
checksum = "cab112f0a86d568ea0e627cc1d6be74a1e9cd55214684db5561995f6dad897c6"
|
| 81 |
+
dependencies = [
|
| 82 |
+
"num-traits",
|
| 83 |
+
]
|
| 84 |
+
|
| 85 |
+
[[package]]
|
| 86 |
+
name = "arrayvec"
|
| 87 |
+
version = "0.7.6"
|
| 88 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 89 |
+
checksum = "7c02d123df017efcdfbd739ef81735b36c5ba83ec3c59c80a9d7ecc718f92e50"
|
| 90 |
+
|
| 91 |
+
[[package]]
|
| 92 |
+
name = "autocfg"
|
| 93 |
+
version = "1.5.0"
|
| 94 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 95 |
+
checksum = "c08606f8c3cbf4ce6ec8e28fb0014a2c086708fe954eaa885384a6165172e7e8"
|
| 96 |
+
|
| 97 |
+
[[package]]
|
| 98 |
+
name = "bit_field"
|
| 99 |
+
version = "0.10.3"
|
| 100 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 101 |
+
checksum = "1e4b40c7323adcfc0a41c4b88143ed58346ff65a288fc144329c5c45e05d70c6"
|
| 102 |
+
|
| 103 |
+
[[package]]
|
| 104 |
+
name = "bitflags"
|
| 105 |
+
version = "1.3.2"
|
| 106 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 107 |
+
checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
|
| 108 |
+
|
| 109 |
+
[[package]]
|
| 110 |
+
name = "bytemuck"
|
| 111 |
+
version = "1.25.0"
|
| 112 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 113 |
+
checksum = "c8efb64bd706a16a1bdde310ae86b351e4d21550d98d056f22f8a7f7a2183fec"
|
| 114 |
+
|
| 115 |
+
[[package]]
|
| 116 |
+
name = "byteorder"
|
| 117 |
+
version = "1.5.0"
|
| 118 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 119 |
+
checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
|
| 120 |
+
|
| 121 |
+
[[package]]
|
| 122 |
+
name = "cc"
|
| 123 |
+
version = "1.2.56"
|
| 124 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 125 |
+
checksum = "aebf35691d1bfb0ac386a69bac2fde4dd276fb618cf8bf4f5318fe285e821bb2"
|
| 126 |
+
dependencies = [
|
| 127 |
+
"find-msvc-tools",
|
| 128 |
+
"jobserver",
|
| 129 |
+
"libc",
|
| 130 |
+
"shlex",
|
| 131 |
+
]
|
| 132 |
+
|
| 133 |
+
[[package]]
|
| 134 |
+
name = "cfg-if"
|
| 135 |
+
version = "1.0.4"
|
| 136 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 137 |
+
checksum = "9330f8b2ff13f34540b44e946ef35111825727b38d33286ef986142615121801"
|
| 138 |
+
|
| 139 |
+
[[package]]
|
| 140 |
+
name = "color_quant"
|
| 141 |
+
version = "1.1.0"
|
| 142 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 143 |
+
checksum = "3d7b894f5411737b7867f4827955924d7c254fc9f4d91a6aad6b097804b1018b"
|
| 144 |
+
|
| 145 |
+
[[package]]
|
| 146 |
+
name = "conv"
|
| 147 |
+
version = "0.3.3"
|
| 148 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 149 |
+
checksum = "78ff10625fd0ac447827aa30ea8b861fead473bb60aeb73af6c1c58caf0d1299"
|
| 150 |
+
dependencies = [
|
| 151 |
+
"custom_derive",
|
| 152 |
+
]
|
| 153 |
+
|
| 154 |
+
[[package]]
|
| 155 |
+
name = "crc32fast"
|
| 156 |
+
version = "1.5.0"
|
| 157 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 158 |
+
checksum = "9481c1c90cbf2ac953f07c8d4a58aa3945c425b7185c9154d67a65e4230da511"
|
| 159 |
+
dependencies = [
|
| 160 |
+
"cfg-if",
|
| 161 |
+
]
|
| 162 |
+
|
| 163 |
+
[[package]]
|
| 164 |
+
name = "crossbeam-deque"
|
| 165 |
+
version = "0.8.6"
|
| 166 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 167 |
+
checksum = "9dd111b7b7f7d55b72c0a6ae361660ee5853c9af73f70c3c2ef6858b950e2e51"
|
| 168 |
+
dependencies = [
|
| 169 |
+
"crossbeam-epoch",
|
| 170 |
+
"crossbeam-utils",
|
| 171 |
+
]
|
| 172 |
+
|
| 173 |
+
[[package]]
|
| 174 |
+
name = "crossbeam-epoch"
|
| 175 |
+
version = "0.9.18"
|
| 176 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 177 |
+
checksum = "5b82ac4a3c2ca9c3460964f020e1402edd5753411d7737aa39c3714ad1b5420e"
|
| 178 |
+
dependencies = [
|
| 179 |
+
"crossbeam-utils",
|
| 180 |
+
]
|
| 181 |
+
|
| 182 |
+
[[package]]
|
| 183 |
+
name = "crossbeam-utils"
|
| 184 |
+
version = "0.8.21"
|
| 185 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 186 |
+
checksum = "d0a5c400df2834b80a4c3327b3aad3a4c4cd4de0629063962b03235697506a28"
|
| 187 |
+
|
| 188 |
+
[[package]]
|
| 189 |
+
name = "crunchy"
|
| 190 |
+
version = "0.2.4"
|
| 191 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 192 |
+
checksum = "460fbee9c2c2f33933d720630a6a0bac33ba7053db5344fac858d4b8952d77d5"
|
| 193 |
+
|
| 194 |
+
[[package]]
|
| 195 |
+
name = "custom_derive"
|
| 196 |
+
version = "0.1.7"
|
| 197 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 198 |
+
checksum = "ef8ae57c4978a2acd8b869ce6b9ca1dfe817bff704c220209fdef2c0b75a01b9"
|
| 199 |
+
|
| 200 |
+
[[package]]
|
| 201 |
+
name = "dunce"
|
| 202 |
+
version = "1.0.5"
|
| 203 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 204 |
+
checksum = "92773504d58c093f6de2459af4af33faa518c13451eb8f2b5698ed3d36e7c813"
|
| 205 |
+
|
| 206 |
+
[[package]]
|
| 207 |
+
name = "either"
|
| 208 |
+
version = "1.15.0"
|
| 209 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 210 |
+
checksum = "48c757948c5ede0e46177b7add2e67155f70e33c07fea8284df6576da70b3719"
|
| 211 |
+
|
| 212 |
+
[[package]]
|
| 213 |
+
name = "equivalent"
|
| 214 |
+
version = "1.0.2"
|
| 215 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 216 |
+
checksum = "877a4ace8713b0bcf2a4e7eec82529c029f1d0619886d18145fea96c3ffe5c0f"
|
| 217 |
+
|
| 218 |
+
[[package]]
|
| 219 |
+
name = "exr"
|
| 220 |
+
version = "1.74.0"
|
| 221 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 222 |
+
checksum = "4300e043a56aa2cb633c01af81ca8f699a321879a7854d3896a0ba89056363be"
|
| 223 |
+
dependencies = [
|
| 224 |
+
"bit_field",
|
| 225 |
+
"half",
|
| 226 |
+
"lebe",
|
| 227 |
+
"miniz_oxide",
|
| 228 |
+
"rayon-core",
|
| 229 |
+
"smallvec",
|
| 230 |
+
"zune-inflate",
|
| 231 |
+
]
|
| 232 |
+
|
| 233 |
+
[[package]]
|
| 234 |
+
name = "fdeflate"
|
| 235 |
+
version = "0.3.7"
|
| 236 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 237 |
+
checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
|
| 238 |
+
dependencies = [
|
| 239 |
+
"simd-adler32",
|
| 240 |
+
]
|
| 241 |
+
|
| 242 |
+
[[package]]
|
| 243 |
+
name = "find-msvc-tools"
|
| 244 |
+
version = "0.1.9"
|
| 245 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 246 |
+
checksum = "5baebc0774151f905a1a2cc41989300b1e6fbb29aff0ceffa1064fdd3088d582"
|
| 247 |
+
|
| 248 |
+
[[package]]
|
| 249 |
+
name = "flate2"
|
| 250 |
+
version = "1.1.9"
|
| 251 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 252 |
+
checksum = "843fba2746e448b37e26a819579957415c8cef339bf08564fe8b7ddbd959573c"
|
| 253 |
+
dependencies = [
|
| 254 |
+
"crc32fast",
|
| 255 |
+
"miniz_oxide",
|
| 256 |
+
]
|
| 257 |
+
|
| 258 |
+
[[package]]
|
| 259 |
+
name = "getrandom"
|
| 260 |
+
version = "0.1.16"
|
| 261 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 262 |
+
checksum = "8fc3cb4d91f53b50155bdcfd23f6a4c39ae1969c2ae85982b135750cccaf5fce"
|
| 263 |
+
dependencies = [
|
| 264 |
+
"cfg-if",
|
| 265 |
+
"libc",
|
| 266 |
+
"wasi",
|
| 267 |
+
]
|
| 268 |
+
|
| 269 |
+
[[package]]
|
| 270 |
+
name = "getrandom"
|
| 271 |
+
version = "0.3.4"
|
| 272 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 273 |
+
checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
|
| 274 |
+
dependencies = [
|
| 275 |
+
"cfg-if",
|
| 276 |
+
"libc",
|
| 277 |
+
"r-efi",
|
| 278 |
+
"wasip2",
|
| 279 |
+
]
|
| 280 |
+
|
| 281 |
+
[[package]]
|
| 282 |
+
name = "gif"
|
| 283 |
+
version = "0.13.3"
|
| 284 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 285 |
+
checksum = "4ae047235e33e2829703574b54fdec96bfbad892062d97fed2f76022287de61b"
|
| 286 |
+
dependencies = [
|
| 287 |
+
"color_quant",
|
| 288 |
+
"weezl",
|
| 289 |
+
]
|
| 290 |
+
|
| 291 |
+
[[package]]
|
| 292 |
+
name = "half"
|
| 293 |
+
version = "2.7.1"
|
| 294 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 295 |
+
checksum = "6ea2d84b969582b4b1864a92dc5d27cd2b77b622a8d79306834f1be5ba20d84b"
|
| 296 |
+
dependencies = [
|
| 297 |
+
"cfg-if",
|
| 298 |
+
"crunchy",
|
| 299 |
+
"zerocopy",
|
| 300 |
+
]
|
| 301 |
+
|
| 302 |
+
[[package]]
|
| 303 |
+
name = "hashbrown"
|
| 304 |
+
version = "0.16.1"
|
| 305 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 306 |
+
checksum = "841d1cc9bed7f9236f321df977030373f4a4163ae1a7dbfe1a51a2c1a51d9100"
|
| 307 |
+
|
| 308 |
+
[[package]]
|
| 309 |
+
name = "image"
|
| 310 |
+
version = "0.24.9"
|
| 311 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 312 |
+
checksum = "5690139d2f55868e080017335e4b94cb7414274c74f1669c84fb5feba2c9f69d"
|
| 313 |
+
dependencies = [
|
| 314 |
+
"bytemuck",
|
| 315 |
+
"byteorder",
|
| 316 |
+
"color_quant",
|
| 317 |
+
"exr",
|
| 318 |
+
"gif",
|
| 319 |
+
"jpeg-decoder",
|
| 320 |
+
"num-traits",
|
| 321 |
+
"png",
|
| 322 |
+
"qoi",
|
| 323 |
+
"tiff",
|
| 324 |
+
]
|
| 325 |
+
|
| 326 |
+
[[package]]
|
| 327 |
+
name = "image_generator"
|
| 328 |
+
version = "0.1.0"
|
| 329 |
+
dependencies = [
|
| 330 |
+
"anyhow",
|
| 331 |
+
"image",
|
| 332 |
+
"imageproc",
|
| 333 |
+
"mozjpeg",
|
| 334 |
+
"rusttype",
|
| 335 |
+
"serde",
|
| 336 |
+
"serde_yaml",
|
| 337 |
+
"walkdir",
|
| 338 |
+
]
|
| 339 |
+
|
| 340 |
+
[[package]]
|
| 341 |
+
name = "imageproc"
|
| 342 |
+
version = "0.23.0"
|
| 343 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 344 |
+
checksum = "b6aee993351d466301a29655d628bfc6f5a35a0d062b6160ca0808f425805fd7"
|
| 345 |
+
dependencies = [
|
| 346 |
+
"approx",
|
| 347 |
+
"conv",
|
| 348 |
+
"image",
|
| 349 |
+
"itertools",
|
| 350 |
+
"nalgebra",
|
| 351 |
+
"num",
|
| 352 |
+
"rand",
|
| 353 |
+
"rand_distr",
|
| 354 |
+
"rayon",
|
| 355 |
+
"rusttype",
|
| 356 |
+
]
|
| 357 |
+
|
| 358 |
+
[[package]]
|
| 359 |
+
name = "indexmap"
|
| 360 |
+
version = "2.13.0"
|
| 361 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 362 |
+
checksum = "7714e70437a7dc3ac8eb7e6f8df75fd8eb422675fc7678aff7364301092b1017"
|
| 363 |
+
dependencies = [
|
| 364 |
+
"equivalent",
|
| 365 |
+
"hashbrown",
|
| 366 |
+
]
|
| 367 |
+
|
| 368 |
+
[[package]]
|
| 369 |
+
name = "itertools"
|
| 370 |
+
version = "0.10.5"
|
| 371 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 372 |
+
checksum = "b0fd2260e829bddf4cb6ea802289de2f86d6a7a690192fbe91b3f46e0f2c8473"
|
| 373 |
+
dependencies = [
|
| 374 |
+
"either",
|
| 375 |
+
]
|
| 376 |
+
|
| 377 |
+
[[package]]
|
| 378 |
+
name = "itoa"
|
| 379 |
+
version = "1.0.17"
|
| 380 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 381 |
+
checksum = "92ecc6618181def0457392ccd0ee51198e065e016d1d527a7ac1b6dc7c1f09d2"
|
| 382 |
+
|
| 383 |
+
[[package]]
|
| 384 |
+
name = "jobserver"
|
| 385 |
+
version = "0.1.34"
|
| 386 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 387 |
+
checksum = "9afb3de4395d6b3e67a780b6de64b51c978ecf11cb9a462c66be7d4ca9039d33"
|
| 388 |
+
dependencies = [
|
| 389 |
+
"getrandom 0.3.4",
|
| 390 |
+
"libc",
|
| 391 |
+
]
|
| 392 |
+
|
| 393 |
+
[[package]]
|
| 394 |
+
name = "jpeg-decoder"
|
| 395 |
+
version = "0.3.2"
|
| 396 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 397 |
+
checksum = "00810f1d8b74be64b13dbf3db89ac67740615d6c891f0e7b6179326533011a07"
|
| 398 |
+
dependencies = [
|
| 399 |
+
"rayon",
|
| 400 |
+
]
|
| 401 |
+
|
| 402 |
+
[[package]]
|
| 403 |
+
name = "lebe"
|
| 404 |
+
version = "0.5.3"
|
| 405 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 406 |
+
checksum = "7a79a3332a6609480d7d0c9eab957bca6b455b91bb84e66d19f5ff66294b85b8"
|
| 407 |
+
|
| 408 |
+
[[package]]
|
| 409 |
+
name = "libc"
|
| 410 |
+
version = "0.2.182"
|
| 411 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 412 |
+
checksum = "6800badb6cb2082ffd7b6a67e6125bb39f18782f793520caee8cb8846be06112"
|
| 413 |
+
|
| 414 |
+
[[package]]
|
| 415 |
+
name = "log"
|
| 416 |
+
version = "0.4.29"
|
| 417 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 418 |
+
checksum = "5e5032e24019045c762d3c0f28f5b6b8bbf38563a65908389bf7978758920897"
|
| 419 |
+
|
| 420 |
+
[[package]]
|
| 421 |
+
name = "matrixmultiply"
|
| 422 |
+
version = "0.3.10"
|
| 423 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 424 |
+
checksum = "a06de3016e9fae57a36fd14dba131fccf49f74b40b7fbdb472f96e361ec71a08"
|
| 425 |
+
dependencies = [
|
| 426 |
+
"autocfg",
|
| 427 |
+
"rawpointer",
|
| 428 |
+
]
|
| 429 |
+
|
| 430 |
+
[[package]]
|
| 431 |
+
name = "miniz_oxide"
|
| 432 |
+
version = "0.8.9"
|
| 433 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 434 |
+
checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
|
| 435 |
+
dependencies = [
|
| 436 |
+
"adler2",
|
| 437 |
+
"simd-adler32",
|
| 438 |
+
]
|
| 439 |
+
|
| 440 |
+
[[package]]
|
| 441 |
+
name = "mozjpeg"
|
| 442 |
+
version = "0.10.13"
|
| 443 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 444 |
+
checksum = "b7891b80aaa86097d38d276eb98b3805d6280708c4e0a1e6f6aed9380c51fec9"
|
| 445 |
+
dependencies = [
|
| 446 |
+
"arrayvec",
|
| 447 |
+
"bytemuck",
|
| 448 |
+
"libc",
|
| 449 |
+
"mozjpeg-sys",
|
| 450 |
+
"rgb",
|
| 451 |
+
]
|
| 452 |
+
|
| 453 |
+
[[package]]
|
| 454 |
+
name = "mozjpeg-sys"
|
| 455 |
+
version = "2.2.3"
|
| 456 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 457 |
+
checksum = "7f0dc668bf9bf888c88e2fb1ab16a406d2c380f1d082b20d51dd540ab2aa70c1"
|
| 458 |
+
dependencies = [
|
| 459 |
+
"cc",
|
| 460 |
+
"dunce",
|
| 461 |
+
"libc",
|
| 462 |
+
"nasm-rs",
|
| 463 |
+
]
|
| 464 |
+
|
| 465 |
+
[[package]]
|
| 466 |
+
name = "nalgebra"
|
| 467 |
+
version = "0.30.1"
|
| 468 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 469 |
+
checksum = "4fb2d0de08694bed883320212c18ee3008576bfe8c306f4c3c4a58b4876998be"
|
| 470 |
+
dependencies = [
|
| 471 |
+
"approx",
|
| 472 |
+
"matrixmultiply",
|
| 473 |
+
"num-complex",
|
| 474 |
+
"num-rational",
|
| 475 |
+
"num-traits",
|
| 476 |
+
"simba",
|
| 477 |
+
"typenum",
|
| 478 |
+
]
|
| 479 |
+
|
| 480 |
+
[[package]]
|
| 481 |
+
name = "nasm-rs"
|
| 482 |
+
version = "0.3.2"
|
| 483 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 484 |
+
checksum = "706bf8a5e8c8ddb99128c3291d31bd21f4bcde17f0f4c20ec678d85c74faa149"
|
| 485 |
+
dependencies = [
|
| 486 |
+
"jobserver",
|
| 487 |
+
"log",
|
| 488 |
+
]
|
| 489 |
+
|
| 490 |
+
[[package]]
|
| 491 |
+
name = "num"
|
| 492 |
+
version = "0.4.3"
|
| 493 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 494 |
+
checksum = "35bd024e8b2ff75562e5f34e7f4905839deb4b22955ef5e73d2fea1b9813cb23"
|
| 495 |
+
dependencies = [
|
| 496 |
+
"num-bigint",
|
| 497 |
+
"num-complex",
|
| 498 |
+
"num-integer",
|
| 499 |
+
"num-iter",
|
| 500 |
+
"num-rational",
|
| 501 |
+
"num-traits",
|
| 502 |
+
]
|
| 503 |
+
|
| 504 |
+
[[package]]
|
| 505 |
+
name = "num-bigint"
|
| 506 |
+
version = "0.4.6"
|
| 507 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 508 |
+
checksum = "a5e44f723f1133c9deac646763579fdb3ac745e418f2a7af9cd0c431da1f20b9"
|
| 509 |
+
dependencies = [
|
| 510 |
+
"num-integer",
|
| 511 |
+
"num-traits",
|
| 512 |
+
]
|
| 513 |
+
|
| 514 |
+
[[package]]
|
| 515 |
+
name = "num-complex"
|
| 516 |
+
version = "0.4.6"
|
| 517 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 518 |
+
checksum = "73f88a1307638156682bada9d7604135552957b7818057dcef22705b4d509495"
|
| 519 |
+
dependencies = [
|
| 520 |
+
"num-traits",
|
| 521 |
+
]
|
| 522 |
+
|
| 523 |
+
[[package]]
|
| 524 |
+
name = "num-integer"
|
| 525 |
+
version = "0.1.46"
|
| 526 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 527 |
+
checksum = "7969661fd2958a5cb096e56c8e1ad0444ac2bbcd0061bd28660485a44879858f"
|
| 528 |
+
dependencies = [
|
| 529 |
+
"num-traits",
|
| 530 |
+
]
|
| 531 |
+
|
| 532 |
+
[[package]]
|
| 533 |
+
name = "num-iter"
|
| 534 |
+
version = "0.1.45"
|
| 535 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 536 |
+
checksum = "1429034a0490724d0075ebb2bc9e875d6503c3cf69e235a8941aa757d83ef5bf"
|
| 537 |
+
dependencies = [
|
| 538 |
+
"autocfg",
|
| 539 |
+
"num-integer",
|
| 540 |
+
"num-traits",
|
| 541 |
+
]
|
| 542 |
+
|
| 543 |
+
[[package]]
|
| 544 |
+
name = "num-rational"
|
| 545 |
+
version = "0.4.2"
|
| 546 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 547 |
+
checksum = "f83d14da390562dca69fc84082e73e548e1ad308d24accdedd2720017cb37824"
|
| 548 |
+
dependencies = [
|
| 549 |
+
"num-bigint",
|
| 550 |
+
"num-integer",
|
| 551 |
+
"num-traits",
|
| 552 |
+
]
|
| 553 |
+
|
| 554 |
+
[[package]]
|
| 555 |
+
name = "num-traits"
|
| 556 |
+
version = "0.2.19"
|
| 557 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 558 |
+
checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
|
| 559 |
+
dependencies = [
|
| 560 |
+
"autocfg",
|
| 561 |
+
]
|
| 562 |
+
|
| 563 |
+
[[package]]
|
| 564 |
+
name = "owned_ttf_parser"
|
| 565 |
+
version = "0.15.2"
|
| 566 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 567 |
+
checksum = "05e6affeb1632d6ff6a23d2cd40ffed138e82f1532571a26f527c8a284bb2fbb"
|
| 568 |
+
dependencies = [
|
| 569 |
+
"ttf-parser",
|
| 570 |
+
]
|
| 571 |
+
|
| 572 |
+
[[package]]
|
| 573 |
+
name = "paste"
|
| 574 |
+
version = "1.0.15"
|
| 575 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 576 |
+
checksum = "57c0d7b74b563b49d38dae00a0c37d4d6de9b432382b2892f0574ddcae73fd0a"
|
| 577 |
+
|
| 578 |
+
[[package]]
|
| 579 |
+
name = "png"
|
| 580 |
+
version = "0.17.16"
|
| 581 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 582 |
+
checksum = "82151a2fc869e011c153adc57cf2789ccb8d9906ce52c0b39a6b5697749d7526"
|
| 583 |
+
dependencies = [
|
| 584 |
+
"bitflags",
|
| 585 |
+
"crc32fast",
|
| 586 |
+
"fdeflate",
|
| 587 |
+
"flate2",
|
| 588 |
+
"miniz_oxide",
|
| 589 |
+
]
|
| 590 |
+
|
| 591 |
+
[[package]]
|
| 592 |
+
name = "ppv-lite86"
|
| 593 |
+
version = "0.2.21"
|
| 594 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 595 |
+
checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
|
| 596 |
+
dependencies = [
|
| 597 |
+
"zerocopy",
|
| 598 |
+
]
|
| 599 |
+
|
| 600 |
+
[[package]]
|
| 601 |
+
name = "proc-macro2"
|
| 602 |
+
version = "1.0.106"
|
| 603 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 604 |
+
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
| 605 |
+
dependencies = [
|
| 606 |
+
"unicode-ident",
|
| 607 |
+
]
|
| 608 |
+
|
| 609 |
+
[[package]]
|
| 610 |
+
name = "qoi"
|
| 611 |
+
version = "0.4.1"
|
| 612 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 613 |
+
checksum = "7f6d64c71eb498fe9eae14ce4ec935c555749aef511cca85b5568910d6e48001"
|
| 614 |
+
dependencies = [
|
| 615 |
+
"bytemuck",
|
| 616 |
+
]
|
| 617 |
+
|
| 618 |
+
[[package]]
|
| 619 |
+
name = "quote"
|
| 620 |
+
version = "1.0.45"
|
| 621 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 622 |
+
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
| 623 |
+
dependencies = [
|
| 624 |
+
"proc-macro2",
|
| 625 |
+
]
|
| 626 |
+
|
| 627 |
+
[[package]]
|
| 628 |
+
name = "r-efi"
|
| 629 |
+
version = "5.3.0"
|
| 630 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 631 |
+
checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
|
| 632 |
+
|
| 633 |
+
[[package]]
|
| 634 |
+
name = "rand"
|
| 635 |
+
version = "0.7.3"
|
| 636 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 637 |
+
checksum = "6a6b1679d49b24bbfe0c803429aa1874472f50d9b363131f0e89fc356b544d03"
|
| 638 |
+
dependencies = [
|
| 639 |
+
"getrandom 0.1.16",
|
| 640 |
+
"libc",
|
| 641 |
+
"rand_chacha",
|
| 642 |
+
"rand_core",
|
| 643 |
+
"rand_hc",
|
| 644 |
+
]
|
| 645 |
+
|
| 646 |
+
[[package]]
|
| 647 |
+
name = "rand_chacha"
|
| 648 |
+
version = "0.2.2"
|
| 649 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 650 |
+
checksum = "f4c8ed856279c9737206bf725bf36935d8666ead7aa69b52be55af369d193402"
|
| 651 |
+
dependencies = [
|
| 652 |
+
"ppv-lite86",
|
| 653 |
+
"rand_core",
|
| 654 |
+
]
|
| 655 |
+
|
| 656 |
+
[[package]]
|
| 657 |
+
name = "rand_core"
|
| 658 |
+
version = "0.5.1"
|
| 659 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 660 |
+
checksum = "90bde5296fc891b0cef12a6d03ddccc162ce7b2aff54160af9338f8d40df6d19"
|
| 661 |
+
dependencies = [
|
| 662 |
+
"getrandom 0.1.16",
|
| 663 |
+
]
|
| 664 |
+
|
| 665 |
+
[[package]]
|
| 666 |
+
name = "rand_distr"
|
| 667 |
+
version = "0.2.2"
|
| 668 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 669 |
+
checksum = "96977acbdd3a6576fb1d27391900035bf3863d4a16422973a409b488cf29ffb2"
|
| 670 |
+
dependencies = [
|
| 671 |
+
"rand",
|
| 672 |
+
]
|
| 673 |
+
|
| 674 |
+
[[package]]
|
| 675 |
+
name = "rand_hc"
|
| 676 |
+
version = "0.2.0"
|
| 677 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 678 |
+
checksum = "ca3129af7b92a17112d59ad498c6f81eaf463253766b90396d39ea7a39d6613c"
|
| 679 |
+
dependencies = [
|
| 680 |
+
"rand_core",
|
| 681 |
+
]
|
| 682 |
+
|
| 683 |
+
[[package]]
|
| 684 |
+
name = "rawpointer"
|
| 685 |
+
version = "0.2.1"
|
| 686 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 687 |
+
checksum = "60a357793950651c4ed0f3f52338f53b2f809f32d83a07f72909fa13e4c6c1e3"
|
| 688 |
+
|
| 689 |
+
[[package]]
|
| 690 |
+
name = "rayon"
|
| 691 |
+
version = "1.11.0"
|
| 692 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 693 |
+
checksum = "368f01d005bf8fd9b1206fb6fa653e6c4a81ceb1466406b81792d87c5677a58f"
|
| 694 |
+
dependencies = [
|
| 695 |
+
"either",
|
| 696 |
+
"rayon-core",
|
| 697 |
+
]
|
| 698 |
+
|
| 699 |
+
[[package]]
|
| 700 |
+
name = "rayon-core"
|
| 701 |
+
version = "1.13.0"
|
| 702 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 703 |
+
checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
|
| 704 |
+
dependencies = [
|
| 705 |
+
"crossbeam-deque",
|
| 706 |
+
"crossbeam-utils",
|
| 707 |
+
]
|
| 708 |
+
|
| 709 |
+
[[package]]
|
| 710 |
+
name = "rgb"
|
| 711 |
+
version = "0.8.53"
|
| 712 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 713 |
+
checksum = "47b34b781b31e5d73e9fbc8689c70551fd1ade9a19e3e28cfec8580a79290cc4"
|
| 714 |
+
dependencies = [
|
| 715 |
+
"bytemuck",
|
| 716 |
+
]
|
| 717 |
+
|
| 718 |
+
[[package]]
|
| 719 |
+
name = "rusttype"
|
| 720 |
+
version = "0.9.3"
|
| 721 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 722 |
+
checksum = "3ff8374aa04134254b7995b63ad3dc41c7f7236f69528b28553da7d72efaa967"
|
| 723 |
+
dependencies = [
|
| 724 |
+
"ab_glyph_rasterizer",
|
| 725 |
+
"owned_ttf_parser",
|
| 726 |
+
]
|
| 727 |
+
|
| 728 |
+
[[package]]
|
| 729 |
+
name = "ryu"
|
| 730 |
+
version = "1.0.23"
|
| 731 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 732 |
+
checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
|
| 733 |
+
|
| 734 |
+
[[package]]
|
| 735 |
+
name = "safe_arch"
|
| 736 |
+
version = "0.7.4"
|
| 737 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 738 |
+
checksum = "96b02de82ddbe1b636e6170c21be622223aea188ef2e139be0a5b219ec215323"
|
| 739 |
+
dependencies = [
|
| 740 |
+
"bytemuck",
|
| 741 |
+
]
|
| 742 |
+
|
| 743 |
+
[[package]]
|
| 744 |
+
name = "same-file"
|
| 745 |
+
version = "1.0.6"
|
| 746 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 747 |
+
checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
|
| 748 |
+
dependencies = [
|
| 749 |
+
"winapi-util",
|
| 750 |
+
]
|
| 751 |
+
|
| 752 |
+
[[package]]
|
| 753 |
+
name = "serde"
|
| 754 |
+
version = "1.0.228"
|
| 755 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 756 |
+
checksum = "9a8e94ea7f378bd32cbbd37198a4a91436180c5bb472411e48b5ec2e2124ae9e"
|
| 757 |
+
dependencies = [
|
| 758 |
+
"serde_core",
|
| 759 |
+
"serde_derive",
|
| 760 |
+
]
|
| 761 |
+
|
| 762 |
+
[[package]]
|
| 763 |
+
name = "serde_core"
|
| 764 |
+
version = "1.0.228"
|
| 765 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 766 |
+
checksum = "41d385c7d4ca58e59fc732af25c3983b67ac852c1a25000afe1175de458b67ad"
|
| 767 |
+
dependencies = [
|
| 768 |
+
"serde_derive",
|
| 769 |
+
]
|
| 770 |
+
|
| 771 |
+
[[package]]
|
| 772 |
+
name = "serde_derive"
|
| 773 |
+
version = "1.0.228"
|
| 774 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 775 |
+
checksum = "d540f220d3187173da220f885ab66608367b6574e925011a9353e4badda91d79"
|
| 776 |
+
dependencies = [
|
| 777 |
+
"proc-macro2",
|
| 778 |
+
"quote",
|
| 779 |
+
"syn",
|
| 780 |
+
]
|
| 781 |
+
|
| 782 |
+
[[package]]
|
| 783 |
+
name = "serde_yaml"
|
| 784 |
+
version = "0.9.34+deprecated"
|
| 785 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 786 |
+
checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
|
| 787 |
+
dependencies = [
|
| 788 |
+
"indexmap",
|
| 789 |
+
"itoa",
|
| 790 |
+
"ryu",
|
| 791 |
+
"serde",
|
| 792 |
+
"unsafe-libyaml",
|
| 793 |
+
]
|
| 794 |
+
|
| 795 |
+
[[package]]
|
| 796 |
+
name = "shlex"
|
| 797 |
+
version = "1.3.0"
|
| 798 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 799 |
+
checksum = "0fda2ff0d084019ba4d7c6f371c95d8fd75ce3524c3cb8fb653a3023f6323e64"
|
| 800 |
+
|
| 801 |
+
[[package]]
|
| 802 |
+
name = "simba"
|
| 803 |
+
version = "0.7.3"
|
| 804 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 805 |
+
checksum = "2f3fd720c48c53cace224ae62bef1bbff363a70c68c4802a78b5cc6159618176"
|
| 806 |
+
dependencies = [
|
| 807 |
+
"approx",
|
| 808 |
+
"num-complex",
|
| 809 |
+
"num-traits",
|
| 810 |
+
"paste",
|
| 811 |
+
"wide",
|
| 812 |
+
]
|
| 813 |
+
|
| 814 |
+
[[package]]
|
| 815 |
+
name = "simd-adler32"
|
| 816 |
+
version = "0.3.8"
|
| 817 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 818 |
+
checksum = "e320a6c5ad31d271ad523dcf3ad13e2767ad8b1cb8f047f75a8aeaf8da139da2"
|
| 819 |
+
|
| 820 |
+
[[package]]
|
| 821 |
+
name = "smallvec"
|
| 822 |
+
version = "1.15.1"
|
| 823 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 824 |
+
checksum = "67b1b7a3b5fe4f1376887184045fcf45c69e92af734b7aaddc05fb777b6fbd03"
|
| 825 |
+
|
| 826 |
+
[[package]]
|
| 827 |
+
name = "syn"
|
| 828 |
+
version = "2.0.117"
|
| 829 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 830 |
+
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
| 831 |
+
dependencies = [
|
| 832 |
+
"proc-macro2",
|
| 833 |
+
"quote",
|
| 834 |
+
"unicode-ident",
|
| 835 |
+
]
|
| 836 |
+
|
| 837 |
+
[[package]]
|
| 838 |
+
name = "tiff"
|
| 839 |
+
version = "0.9.1"
|
| 840 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 841 |
+
checksum = "ba1310fcea54c6a9a4fd1aad794ecc02c31682f6bfbecdf460bf19533eed1e3e"
|
| 842 |
+
dependencies = [
|
| 843 |
+
"flate2",
|
| 844 |
+
"jpeg-decoder",
|
| 845 |
+
"weezl",
|
| 846 |
+
]
|
| 847 |
+
|
| 848 |
+
[[package]]
|
| 849 |
+
name = "ttf-parser"
|
| 850 |
+
version = "0.15.2"
|
| 851 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 852 |
+
checksum = "7b3e06c9b9d80ed6b745c7159c40b311ad2916abb34a49e9be2653b90db0d8dd"
|
| 853 |
+
|
| 854 |
+
[[package]]
|
| 855 |
+
name = "typenum"
|
| 856 |
+
version = "1.19.0"
|
| 857 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 858 |
+
checksum = "562d481066bde0658276a35467c4af00bdc6ee726305698a55b86e61d7ad82bb"
|
| 859 |
+
|
| 860 |
+
[[package]]
|
| 861 |
+
name = "unicode-ident"
|
| 862 |
+
version = "1.0.24"
|
| 863 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 864 |
+
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
| 865 |
+
|
| 866 |
+
[[package]]
|
| 867 |
+
name = "unsafe-libyaml"
|
| 868 |
+
version = "0.2.11"
|
| 869 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 870 |
+
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
|
| 871 |
+
|
| 872 |
+
[[package]]
|
| 873 |
+
name = "walkdir"
|
| 874 |
+
version = "2.5.0"
|
| 875 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 876 |
+
checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
|
| 877 |
+
dependencies = [
|
| 878 |
+
"same-file",
|
| 879 |
+
"winapi-util",
|
| 880 |
+
]
|
| 881 |
+
|
| 882 |
+
[[package]]
|
| 883 |
+
name = "wasi"
|
| 884 |
+
version = "0.9.0+wasi-snapshot-preview1"
|
| 885 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 886 |
+
checksum = "cccddf32554fecc6acb585f82a32a72e28b48f8c4c1883ddfeeeaa96f7d8e519"
|
| 887 |
+
|
| 888 |
+
[[package]]
|
| 889 |
+
name = "wasip2"
|
| 890 |
+
version = "1.0.2+wasi-0.2.9"
|
| 891 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 892 |
+
checksum = "9517f9239f02c069db75e65f174b3da828fe5f5b945c4dd26bd25d89c03ebcf5"
|
| 893 |
+
dependencies = [
|
| 894 |
+
"wit-bindgen",
|
| 895 |
+
]
|
| 896 |
+
|
| 897 |
+
[[package]]
|
| 898 |
+
name = "weezl"
|
| 899 |
+
version = "0.1.12"
|
| 900 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 901 |
+
checksum = "a28ac98ddc8b9274cb41bb4d9d4d5c425b6020c50c46f25559911905610b4a88"
|
| 902 |
+
|
| 903 |
+
[[package]]
|
| 904 |
+
name = "wide"
|
| 905 |
+
version = "0.7.33"
|
| 906 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 907 |
+
checksum = "0ce5da8ecb62bcd8ec8b7ea19f69a51275e91299be594ea5cc6ef7819e16cd03"
|
| 908 |
+
dependencies = [
|
| 909 |
+
"bytemuck",
|
| 910 |
+
"safe_arch",
|
| 911 |
+
]
|
| 912 |
+
|
| 913 |
+
[[package]]
|
| 914 |
+
name = "winapi-util"
|
| 915 |
+
version = "0.1.11"
|
| 916 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 917 |
+
checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
|
| 918 |
+
dependencies = [
|
| 919 |
+
"windows-sys",
|
| 920 |
+
]
|
| 921 |
+
|
| 922 |
+
[[package]]
|
| 923 |
+
name = "windows-link"
|
| 924 |
+
version = "0.2.1"
|
| 925 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 926 |
+
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
| 927 |
+
|
| 928 |
+
[[package]]
|
| 929 |
+
name = "windows-sys"
|
| 930 |
+
version = "0.61.2"
|
| 931 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 932 |
+
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
| 933 |
+
dependencies = [
|
| 934 |
+
"windows-link",
|
| 935 |
+
]
|
| 936 |
+
|
| 937 |
+
[[package]]
|
| 938 |
+
name = "wit-bindgen"
|
| 939 |
+
version = "0.51.0"
|
| 940 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 941 |
+
checksum = "d7249219f66ced02969388cf2bb044a09756a083d0fab1e566056b04d9fbcaa5"
|
| 942 |
+
|
| 943 |
+
[[package]]
|
| 944 |
+
name = "zerocopy"
|
| 945 |
+
version = "0.8.40"
|
| 946 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 947 |
+
checksum = "a789c6e490b576db9f7e6b6d661bcc9799f7c0ac8352f56ea20193b2681532e5"
|
| 948 |
+
dependencies = [
|
| 949 |
+
"zerocopy-derive",
|
| 950 |
+
]
|
| 951 |
+
|
| 952 |
+
[[package]]
|
| 953 |
+
name = "zerocopy-derive"
|
| 954 |
+
version = "0.8.40"
|
| 955 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 956 |
+
checksum = "f65c489a7071a749c849713807783f70672b28094011623e200cb86dcb835953"
|
| 957 |
+
dependencies = [
|
| 958 |
+
"proc-macro2",
|
| 959 |
+
"quote",
|
| 960 |
+
"syn",
|
| 961 |
+
]
|
| 962 |
+
|
| 963 |
+
[[package]]
|
| 964 |
+
name = "zune-inflate"
|
| 965 |
+
version = "0.2.54"
|
| 966 |
+
source = "registry+https://github.com/rust-lang/crates.io-index"
|
| 967 |
+
checksum = "73ab332fe2f6680068f3582b16a24f90ad7096d5d39b974d1c0aff0125116f02"
|
| 968 |
+
dependencies = [
|
| 969 |
+
"simd-adler32",
|
| 970 |
+
]
|
| 971 |
+
LOCK_EOF
|
| 972 |
+
|
| 973 |
+
# --- Export the workdir + flags for the later build stage ---------------------
|
| 974 |
+
export DOWNLOAD_WORKDIR
|
| 975 |
+
export CARGO_NET_OFFLINE="false"
|
| 976 |
+
|
| 977 |
+
# --- Fetch all pinned dependencies into the offline cargo registry cache ----
|
| 978 |
+
cargo fetch --manifest-path "${DOWNLOAD_WORKDIR}/image_generator/Cargo.toml"
|
learning-rust--learning-rust.git/environment/executable
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f08532e05c79297bec4a409e41d7c412adc05ddab84261b431b79b201676075
|
| 3 |
+
size 3640120
|
learning-rust--learning-rust.git/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
|
learning-rust--learning-rust.git/environment/workspace.tar.gz
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f8ec8137227f41d5af4c8678a54fbbb2e85126fcb54bfb39c69cb14a0e50ca15
|
| 3 |
+
size 218820
|
learning-rust--learning-rust.git/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
|
learning-rust--learning-rust.git/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
|
learning-rust--learning-rust.git/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/learning-rust--learning-rust.git"
|
| 25 |
+
description = "Synthetic ProgramGym cleanroom reconstruction task for learning-rust/learning-rust.github.io"
|
| 26 |
+
authors = [{ name = "Harbor ProgramGym Synthetic Adapter" }]
|
| 27 |
+
keywords = ["programgym", "synthetic", "reverse-engineering", "cleanroom", "rust"]
|
| 28 |
+
|
| 29 |
+
[metadata]
|
| 30 |
+
source = "ProgramGym"
|
| 31 |
+
instance_id = "learning-rust__learning-rust.github.io.13ce5dc"
|
| 32 |
+
repository = "learning-rust/learning-rust.github.io"
|
| 33 |
+
commit = "13ce5dcd4185e41cae91440d807e2631e4d97fdb"
|
| 34 |
+
language = "rust"
|
| 35 |
+
difficulty = "easy"
|
| 36 |
+
difficulty_score = 1.207095540419218
|
| 37 |
+
test_branches = 1
|
| 38 |
+
test_count = 130
|
| 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"
|
learning-rust--learning-rust.git/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
|
learning-rust--learning-rust.git/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:6328304aa5392c447debbd160e1c78195af707931003964ac92b9f4c8db57aa6
|
| 3 |
+
size 226324
|