Datasets:
Publish PatchEval pilot-20
Browse filesFrozen 20-task validated release with parent sources, hidden grader patches, attestations, checksums, and miner source.
This view is limited to 50 files because it contains too many changes. See raw diff
- README.md +95 -0
- SHA256SUMS +62 -0
- attestations/attrs-1575.json +237 -0
- attestations/city2graph-121.json +170 -0
- attestations/click-2790.json +185 -0
- attestations/click-3360.json +185 -0
- attestations/click-3572.json +185 -0
- attestations/json-repair-191.json +193 -0
- attestations/json-repair-205.json +193 -0
- attestations/json-repair-207.json +193 -0
- attestations/narwhals-3864.json +292 -0
- attestations/pygments-2816.json +287 -0
- attestations/pygments-2828.json +287 -0
- attestations/pypdf-3587.json +324 -0
- attestations/pypdf-3878.json +324 -0
- attestations/pypdf-3982.json +324 -0
- attestations/sqlit-246.json +240 -0
- attestations/sqlit-260.json +240 -0
- attestations/structlog-710.json +250 -0
- attestations/tomlkit-440.json +226 -0
- attestations/tomlkit-542.json +226 -0
- attestations/typeguard-499.json +219 -0
- dataset.json +33 -0
- hidden-tests/attrs-1575.patch +36 -0
- hidden-tests/city2graph-121.patch +43 -0
- hidden-tests/click-2790.patch +82 -0
- hidden-tests/click-3360.patch +123 -0
- hidden-tests/click-3572.patch +61 -0
- hidden-tests/json-repair-191.patch +83 -0
- hidden-tests/json-repair-205.patch +40 -0
- hidden-tests/json-repair-207.patch +24 -0
- hidden-tests/narwhals-3864.patch +90 -0
- hidden-tests/pygments-2816.patch +41 -0
- hidden-tests/pygments-2828.patch +69 -0
- hidden-tests/pypdf-3587.patch +51 -0
- hidden-tests/pypdf-3878.patch +122 -0
- hidden-tests/pypdf-3982.patch +66 -0
- hidden-tests/sqlit-246.patch +60 -0
- hidden-tests/sqlit-260.patch +83 -0
- hidden-tests/structlog-710.patch +78 -0
- hidden-tests/tomlkit-440.patch +24 -0
- hidden-tests/tomlkit-542.patch +33 -0
- hidden-tests/typeguard-499.patch +49 -0
- miner/.gitignore +11 -0
- miner/.pytest_cache/.gitignore +2 -0
- miner/.pytest_cache/CACHEDIR.TAG +4 -0
- miner/.pytest_cache/README.md +8 -0
- miner/.pytest_cache/v/cache/nodeids +26 -0
- miner/README.md +76 -0
- miner/config/commands.toml +117 -0
README.md
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: other
|
| 3 |
+
task_categories:
|
| 4 |
+
- text-generation
|
| 5 |
+
language:
|
| 6 |
+
- en
|
| 7 |
+
tags:
|
| 8 |
+
- code
|
| 9 |
+
- software-engineering
|
| 10 |
+
- agentic-coding
|
| 11 |
+
- benchmark
|
| 12 |
+
pretty_name: PatchEval Pilot 20
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
---
|
| 16 |
+
|
| 17 |
+
# PatchEval Pilot 20
|
| 18 |
+
|
| 19 |
+
PatchEval is a frozen benchmark for agentic coding. Each task starts from the
|
| 20 |
+
parent of a real Python bug-fix commit whose regression test landed with the
|
| 21 |
+
fix. The agent receives the reviewed GitHub issue and parent source; scoring is
|
| 22 |
+
deterministic from hidden fail-to-pass and regression test exit codes.
|
| 23 |
+
|
| 24 |
+
This immutable `pilot-20` release contains 20 tasks mined from recent commits
|
| 25 |
+
and validated in four cells:
|
| 26 |
+
|
| 27 |
+
1. the hidden regression test fails on the parent;
|
| 28 |
+
2. the parent's previously passing regression suite stays green;
|
| 29 |
+
3. the hidden regression test passes on the original fix; and
|
| 30 |
+
4. the regression suite stays green after the original fix.
|
| 31 |
+
|
| 32 |
+
The release publishes no Docker images. BenchKit builds each task runtime
|
| 33 |
+
locally from its frozen recipe and removes its task-specific Docker resources
|
| 34 |
+
after the run.
|
| 35 |
+
|
| 36 |
+
## Contents
|
| 37 |
+
|
| 38 |
+
- `dataset.json`: release manifest and task IDs
|
| 39 |
+
- `tasks.jsonl`: prompts, commands, runtime recipes, artifact paths, and hashes
|
| 40 |
+
- `sources/`: deterministic parent-commit source archives without `.git`
|
| 41 |
+
- `hidden-tests/`: grader patches; these remain outside the agent sandbox
|
| 42 |
+
- `attestations/`: validation records produced before freezing
|
| 43 |
+
- `SHA256SUMS`: checksums for every frozen release artifact
|
| 44 |
+
- `miner/`: the source, configuration, schemas, tests, and documentation used
|
| 45 |
+
to mine, validate, review, and freeze the release
|
| 46 |
+
|
| 47 |
+
## Run with BenchKit
|
| 48 |
+
|
| 49 |
+
Download an immutable snapshot, point BenchKit at its root, and run the stock
|
| 50 |
+
Pi harness:
|
| 51 |
+
|
| 52 |
+
```console
|
| 53 |
+
export BENCHKIT_PATCHEVAL_DATASET=/path/to/PatchEval
|
| 54 |
+
uv run benchkit --headless --models MODEL --benchmarks patcheval \
|
| 55 |
+
--harness pi --repair-attempts 1
|
| 56 |
+
```
|
| 57 |
+
|
| 58 |
+
The agent sandbox contains only the checksummed parent source and a restricted
|
| 59 |
+
inference route. It has no Git history, network egress, hidden tests, gold
|
| 60 |
+
patch, host mount, or Docker socket. Hidden grader output is never returned to
|
| 61 |
+
the model; a repair attempt receives only generic feedback.
|
| 62 |
+
|
| 63 |
+
## Integrity
|
| 64 |
+
|
| 65 |
+
Verify the release after download:
|
| 66 |
+
|
| 67 |
+
```console
|
| 68 |
+
sha256sum --check SHA256SUMS
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
`dataset.json` additionally pins the SHA-256 of `tasks.jsonl`. A frozen release
|
| 72 |
+
is never regenerated or changed in place; a later mining window becomes a new
|
| 73 |
+
version.
|
| 74 |
+
|
| 75 |
+
## Reproduce the miner
|
| 76 |
+
|
| 77 |
+
The miner is intentionally separate from BenchKit. From `miner/`:
|
| 78 |
+
|
| 79 |
+
```console
|
| 80 |
+
uv sync
|
| 81 |
+
uv run patcheval-mine --help
|
| 82 |
+
uv run pytest
|
| 83 |
+
```
|
| 84 |
+
|
| 85 |
+
Discovery, automated validation, blind review, and freezing are separate
|
| 86 |
+
fail-closed gates. See `miner/README.md` and `miner/docs/review-policy.md` for
|
| 87 |
+
the complete method and publication boundary.
|
| 88 |
+
|
| 89 |
+
## Licensing
|
| 90 |
+
|
| 91 |
+
The miner does not currently declare a standalone software license. Source
|
| 92 |
+
snapshots, issue text, and regression-test patches originate from the named
|
| 93 |
+
upstream repositories and remain subject to their respective licenses. Consult
|
| 94 |
+
each task's `repository` field and upstream project before redistribution or
|
| 95 |
+
reuse.
|
SHA256SUMS
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
cdc3e8c3e6b97e8edcf95da4964abf1a7429a85446382849af63730e023c62d4 attestations/attrs-1575.json
|
| 2 |
+
13576335e11c03b56f3cf5ec5b17ae17f10a9ed5b73d8d3fbf23009aec9453f1 attestations/city2graph-121.json
|
| 3 |
+
5958771de03ca81cd68329fe5861b8243eb092c9d3f8184883ac525aadfaec07 attestations/click-2790.json
|
| 4 |
+
0edbc0168ee8d6dc52caa5530033d06cfc7fdb888e646086742ff6b5f656be67 attestations/click-3360.json
|
| 5 |
+
1f416f251b7bee20d0a2038320359bec63350142d7f4e28b67a37c5d71604646 attestations/click-3572.json
|
| 6 |
+
1414951cfa6fe71f5052de109cc10c7288da3d585d86a5e4ecf8335d1e45d17f attestations/json-repair-191.json
|
| 7 |
+
b4f9f6f7abca024dde04af926aa95894919820d20cc3f295b0d23fe411ac7d5c attestations/json-repair-205.json
|
| 8 |
+
9c724b0b62326465650613b5d169526e9bec14e92ff02eae4a23527492ae192e attestations/json-repair-207.json
|
| 9 |
+
52527e4188d5a11569c9773c46a0174f4f526be5e6c9ebe06ff30cb7354cafca attestations/narwhals-3864.json
|
| 10 |
+
9d059f7422972c85295b4a8e21e3d65b8933a590eda19301a0babea0adcdc1c5 attestations/pygments-2816.json
|
| 11 |
+
c98dd7dcb682d6102c973bd28f5559eadb5d560596da158ae4e2bcf569243747 attestations/pygments-2828.json
|
| 12 |
+
8a560fd8ea9dd98371ce8d19e30168fa00e12519dfbcc63cb5f328b077d0af5f attestations/pypdf-3587.json
|
| 13 |
+
138d2ef1a36b9aecc4f557b477cc5a0bea32785d097acae0c0dfd98b2c54a5ff attestations/pypdf-3878.json
|
| 14 |
+
b1b9045c4c7ffb65a5999c3370ae7f302d9d443da14864dcd9642f7dc4c014ed attestations/pypdf-3982.json
|
| 15 |
+
565af92d3f7f7dcef98c04a5f1ff1a1d86fd07379d09caf83e58a2841f6a2b1a attestations/sqlit-246.json
|
| 16 |
+
62d147fc02fd1b6a8a78dc6b335bc965b4e36fbd24ef5731a60f93e4ef33ef1d attestations/sqlit-260.json
|
| 17 |
+
3e9032f8c82f2d56ab341aea2db7b2d0646f0febd51711d3e4c8bf6461ef9360 attestations/structlog-710.json
|
| 18 |
+
deabc0fda5048062037ce5124a92e68b37b970453aca9d4cb4bd98f1acb9f003 attestations/tomlkit-440.json
|
| 19 |
+
31bf047ef761851beae820d532904eb229b41a2fda028809807a3f2eee6698a9 attestations/tomlkit-542.json
|
| 20 |
+
76226aca40f217b8d71036841292d94dd8b9877a428310c7137d37768a840190 attestations/typeguard-499.json
|
| 21 |
+
0f777f95565a12a4237beeb632449798f558141496c79d867fddf5d6c55fae98 dataset.json
|
| 22 |
+
544fb459fb354931c31c5963726d4ab8ed153d8c61fcfc518363300ec1ee327a hidden-tests/attrs-1575.patch
|
| 23 |
+
5d0b869d29071084acbc351447cc02a402b938b303d83b817b1a04aa3503d6e6 hidden-tests/city2graph-121.patch
|
| 24 |
+
95c637397e9eea58e200e3001f2882f0da4cf99df1e4f5ad3d2cbb1347cc51d3 hidden-tests/click-2790.patch
|
| 25 |
+
b492d89726576456570f5a4ec209c61e4e1cae524b470beae226b530f6629118 hidden-tests/click-3360.patch
|
| 26 |
+
d6a1ee42b73b16163fb9b35056355ce65749240b87ec3f862805780dc101edd8 hidden-tests/click-3572.patch
|
| 27 |
+
96b3b7a6fe4ae4f86f8f42e86af8aedadaa9cfe87b6d5409adf1df05e49a06b0 hidden-tests/json-repair-191.patch
|
| 28 |
+
ef001d5bffbb4e4dbd51620fd70532d3d1e6c4373abf7ca1c75e1171b49e68c4 hidden-tests/json-repair-205.patch
|
| 29 |
+
6a9e3a7f9307b102bc29764df8b4fe17c956f9227af6533015cb37105f1efbdb hidden-tests/json-repair-207.patch
|
| 30 |
+
543c57d1a118280d000165857c1bd5f9e67c0286e4e51dd6eaf364fbd2ce6655 hidden-tests/narwhals-3864.patch
|
| 31 |
+
85529df235553cfc030b00769f8a10c2683d12d3eaea0713a48f4716b5be2cd9 hidden-tests/pygments-2816.patch
|
| 32 |
+
ac9e1f7355dff0ff69e30c1ea43bdb3b082a0f7b8fb0bf00b0b34ba3ac95f02d hidden-tests/pygments-2828.patch
|
| 33 |
+
d7dbc9b6309ee54bbfbe2a7b9075c4320e704e46e3cbc703e7f94c72b546f24d hidden-tests/pypdf-3587.patch
|
| 34 |
+
1f35d4edd2497d3568cac113ae07fcb935b5e3454799094fc7180d2ed8b7ca05 hidden-tests/pypdf-3878.patch
|
| 35 |
+
24192fe8f49b136426596b99789ca659d4edfbf20542de86e2e2b109aebe8198 hidden-tests/pypdf-3982.patch
|
| 36 |
+
8c996d9f14192966e18f5dc48bd08f619ae44ab687594f2a769d57ce119c72c4 hidden-tests/sqlit-246.patch
|
| 37 |
+
6744a8637a2c5bfdf8784bba6d48bd1b1f2f8918d4fed945e965be7a6947be01 hidden-tests/sqlit-260.patch
|
| 38 |
+
4888a5dc77f47dde9a751411c5c27880ce5948c5e9c8b3648b618286779c9daa hidden-tests/structlog-710.patch
|
| 39 |
+
4f54de74b1893428d216906daa3c5d5e667b21a74d913da32cb374d6c06a9f96 hidden-tests/tomlkit-440.patch
|
| 40 |
+
483263ef19d363a1236c066b76997f78f1357daa721c28b0da098c1c79d0a054 hidden-tests/tomlkit-542.patch
|
| 41 |
+
89bba7c95533fbb25ba5d68804f6734e9b48ec2bae3e7352aca6e43fd0eba1d2 hidden-tests/typeguard-499.patch
|
| 42 |
+
64c20a8d14830dcd0a069d65b6bb86ca61251a981da11be7209917ce54bd1830 sources/attrs-1575.tar
|
| 43 |
+
baa7c30a4b2e214b7e2cf9b51128f39da05947b7d34f3528139b1a8b19b5db3f sources/city2graph-121.tar
|
| 44 |
+
bcf76b9cd560a2fad48982274e8b68ec8bd6a8dc22e48fe93df39d9ff8e89e4d sources/click-2790.tar
|
| 45 |
+
d250a5680a151864900ce3271a1dac8057e58ba4be84b8e70f6c418522a72f29 sources/click-3360.tar
|
| 46 |
+
a810395f18b7c9d84a7e97c027d312dfbacd8c5fcd9aca9e593fb187c2c93308 sources/click-3572.tar
|
| 47 |
+
b81ba71d4e10022a7dd8b0345094c88cf0129f5ed6fe7bd3000c5138260624ae sources/json-repair-191.tar
|
| 48 |
+
e87c1fdebeecd474d38376c95c83f625a63b35d5d4f840e47a495121961ef274 sources/json-repair-205.tar
|
| 49 |
+
b011f04bdc1346010cc83c3cbdbc48593b62942063464ce4c8db87495a735250 sources/json-repair-207.tar
|
| 50 |
+
58ec8ccfdd1e3b00d15715f665de6cb6796e4f9d456d8c0a55d3a9bad7ea25d2 sources/narwhals-3864.tar
|
| 51 |
+
ccba4fdd41fd6a2a9796292a27e62babe206910a84f1290391e824371b6e58c0 sources/pygments-2816.tar
|
| 52 |
+
c9f794937fa960ed50c1c943691c030b6943a28f075e06a3e8ce70adf0ab6a20 sources/pygments-2828.tar
|
| 53 |
+
09eddc9e1688d5cbded2b6e1a8a8a1ff394746af53bd1aa54578b0701d6164c5 sources/pypdf-3587.tar
|
| 54 |
+
c6853735f6f494b8202622393418d82192b2000bc91bf9fe133634619e6c47b9 sources/pypdf-3878.tar
|
| 55 |
+
5a49bc62c5c37a4aaf8796e82c0bb09ab7dc30b253991aeb9189a2e806cb7119 sources/pypdf-3982.tar
|
| 56 |
+
37e92cffd7649eebd9f247d6baaf7ce35b89a3b0e3eab48ed82e04defaf5282f sources/sqlit-246.tar
|
| 57 |
+
ad45cceffdbc5e3629a0b1ccd608266f0f0f1e7820fa86557bb51573b6da669f sources/sqlit-260.tar
|
| 58 |
+
29cbfb33035b772d26d8ebae36cae0e0e30e606ee228056f2c910b9c55e396a1 sources/structlog-710.tar
|
| 59 |
+
a0b40aef624c1113496e08365bc15e70796c2280b3a71df568ec74123d72fab7 sources/tomlkit-440.tar
|
| 60 |
+
803d7046ba0b462206c5059327664b75228fd7d00e78f598a62e76e09260b329 sources/tomlkit-542.tar
|
| 61 |
+
15eec682771f0af79ba05bae6a97ad7a09c27f45b4e5623261b5e430377361a7 sources/typeguard-499.tar
|
| 62 |
+
2efa2f1469aedf0c332ea8a93ff2045e9b49d2f383d4f740ed9afb300bfb4cbc tasks.jsonl
|
attestations/attrs-1575.json
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"--hypothesis-seed=0",
|
| 10 |
+
"tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"
|
| 11 |
+
],
|
| 12 |
+
"exit_code": 1,
|
| 13 |
+
"expected": "test-failure",
|
| 14 |
+
"output_sha256": "cf439ac6a59a93dc8b30ec1f96ddd297b24be4ad41e7fb18e7944d9c1b765b57",
|
| 15 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n______________ TestAnnotations.test_missing_classvar_import[True] ______________\n\nself = <tests.test_annotations.TestAnnotations object at 0x7f52fba73710>\nslots = True\n\n @pytest.mark.skipif(\n sys.version_info[:2] < (3, 14),\n reason=\"Python 3.14 changed annotation evaluation behavior.\",\n )\n def test_missing_classvar_import(self, slots):\n \"\"\"\n Unimported ClassVars are recognized as ForwardRefs.\n \"\"\"\n \n @attr.s(auto_attribs=True, slots=slots)\n class C:\n cls_var: ClassVar[str] # noqa: F821\n value: int = 1\n \n> assert \"cls_var\" not in attr.fields_dict(C)\nE AssertionError: assert 'cls_var' not in {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')}\nE + where {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')} = <function fields_dict at 0x7f52fbc3c040>(<class 'tests.test_annotations.TestAnnotations.test_missing_classvar_import.<locals>.C'>)\nE + where <function fields_dict at 0x7f52fbc3c040> = attr.fields_dict\n\ntests/test_annotations.py:451: AssertionError\n_____________ TestAnnotations.test_missing_classvar_import[False] ______________\n\nself = <tests.test_annotations.TestAnnotations object at 0x7f52fba72b70>\nslots = False\n\n @pytest.mark.skipif(\n sys.version_info[:2] < (3, 14),\n reason=\"Python 3.14 changed annotation evaluation behavior.\",\n )\n def test_missing_classvar_import(self, slots):\n \"\"\"\n Unimported ClassVars are recognized as ForwardRefs.\n \"\"\"\n \n @attr.s(auto_attribs=True, slots=slots)\n class C:\n cls_var: ClassVar[str] # noqa: F821\n value: int = 1\n \n> assert \"cls_var\" not in attr.fields_dict(C)\nE AssertionError: assert 'cls_var' not in {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')}\nE + where {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')} = <function fields_dict at 0x7f52fbc3c040>(<class 'tests.test_annotations.TestAnnotations.test_missing_classvar_import.<locals>.C'>)\nE + where <function fields_dict at 0x7f52fbc3c040> = attr.fields_dict\n\ntests/test_annotations.py:451: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_annotations.py::TestAnnotations::test_missing_classvar_import[True]\nFAILED tests/test_annotations.py::TestAnnotations::test_missing_classvar_import[False]\n2 failed in 0.09s",
|
| 16 |
+
"repeat": 1,
|
| 17 |
+
"state": "parent-hidden"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"command": [
|
| 21 |
+
"python",
|
| 22 |
+
"-m",
|
| 23 |
+
"pytest",
|
| 24 |
+
"-q",
|
| 25 |
+
"--hypothesis-seed=0",
|
| 26 |
+
"tests"
|
| 27 |
+
],
|
| 28 |
+
"exit_code": 0,
|
| 29 |
+
"expected": "zero",
|
| 30 |
+
"output_sha256": "444dc58ba99546185d89ba9b31778263601d4849f8f7af210d33b9968dcfe448",
|
| 31 |
+
"output_tail": "........................................................................ [ 5%]\n........................................................................ [ 10%]\n........................................................................ [ 15%]\n........................................................................ [ 20%]\n........................................................................ [ 25%]\n........................................................................ [ 30%]\n........................................................................ [ 36%]\n........................................................................ [ 41%]\n........................................................................ [ 46%]\n........................................................................ [ 51%]\n........................................................................ [ 56%]\n........................................................................ [ 61%]\n........................................................................ [ 67%]\n........................................................................ [ 72%]\n...............................................................s........ [ 77%]\n..............................................sss....................x.. [ 82%]\n..............................s...................x..................... [ 87%]\n........................................................................ [ 92%]\n........................................................................ [ 98%]\n.......................... [100%]\n=========================== short test summary info ============================\nSKIPPED [1] tests/test_make.py:3083: Pre-3.10 only.\nSKIPPED [1] tests/test_pyright.py:35: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:83: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:111: Requires pyright.\nSKIPPED [1] tests/test_slots.py:517: slots without weakref_slot should only work on PyPy\nXFAIL tests/test_setattr.py::TestSetAttr::test_slotted_confused\nXFAIL tests/test_slots.py::test_slots_cached_property_infers_type - 3.14 does not infer the type anymore.\n1387 passed, 5 skipped, 2 xfailed in 9.32s",
|
| 32 |
+
"repeat": 1,
|
| 33 |
+
"state": "parent-regression"
|
| 34 |
+
},
|
| 35 |
+
{
|
| 36 |
+
"command": [
|
| 37 |
+
"python",
|
| 38 |
+
"-m",
|
| 39 |
+
"pytest",
|
| 40 |
+
"-q",
|
| 41 |
+
"--hypothesis-seed=0",
|
| 42 |
+
"tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"
|
| 43 |
+
],
|
| 44 |
+
"exit_code": 0,
|
| 45 |
+
"expected": "zero",
|
| 46 |
+
"output_sha256": "d54e562b1b92bd01731ae365858c02df2a697800b44d9fb15cd997542bffcf41",
|
| 47 |
+
"output_tail": ".. [100%]\n2 passed in 0.06s",
|
| 48 |
+
"repeat": 1,
|
| 49 |
+
"state": "gold-hidden"
|
| 50 |
+
},
|
| 51 |
+
{
|
| 52 |
+
"command": [
|
| 53 |
+
"python",
|
| 54 |
+
"-m",
|
| 55 |
+
"pytest",
|
| 56 |
+
"-q",
|
| 57 |
+
"--hypothesis-seed=0",
|
| 58 |
+
"tests"
|
| 59 |
+
],
|
| 60 |
+
"exit_code": 0,
|
| 61 |
+
"expected": "zero",
|
| 62 |
+
"output_sha256": "25ed547cbeef24ccbdba7a99e110faf043992580f4007e9a9ddfa76a0547ddb3",
|
| 63 |
+
"output_tail": "........................................................................ [ 5%]\n........................................................................ [ 10%]\n........................................................................ [ 15%]\n........................................................................ [ 20%]\n........................................................................ [ 25%]\n........................................................................ [ 30%]\n........................................................................ [ 36%]\n........................................................................ [ 41%]\n........................................................................ [ 46%]\n........................................................................ [ 51%]\n........................................................................ [ 56%]\n........................................................................ [ 61%]\n........................................................................ [ 67%]\n........................................................................ [ 72%]\n...............................................................s........ [ 77%]\n..............................................sss....................x.. [ 82%]\n..............................s...................x..................... [ 87%]\n........................................................................ [ 92%]\n........................................................................ [ 98%]\n.......................... [100%]\n=========================== short test summary info ============================\nSKIPPED [1] tests/test_make.py:3083: Pre-3.10 only.\nSKIPPED [1] tests/test_pyright.py:35: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:83: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:111: Requires pyright.\nSKIPPED [1] tests/test_slots.py:517: slots without weakref_slot should only work on PyPy\nXFAIL tests/test_setattr.py::TestSetAttr::test_slotted_confused\nXFAIL tests/test_slots.py::test_slots_cached_property_infers_type - 3.14 does not infer the type anymore.\n1387 passed, 5 skipped, 2 xfailed in 9.38s",
|
| 64 |
+
"repeat": 1,
|
| 65 |
+
"state": "gold-regression"
|
| 66 |
+
},
|
| 67 |
+
{
|
| 68 |
+
"command": [
|
| 69 |
+
"python",
|
| 70 |
+
"-m",
|
| 71 |
+
"pytest",
|
| 72 |
+
"-q",
|
| 73 |
+
"--hypothesis-seed=0",
|
| 74 |
+
"tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"
|
| 75 |
+
],
|
| 76 |
+
"exit_code": 1,
|
| 77 |
+
"expected": "test-failure",
|
| 78 |
+
"output_sha256": "673e7f21a0e96c1ed0e473699c3e6cbca5d5ad537655153116158d85a67e6b98",
|
| 79 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n______________ TestAnnotations.test_missing_classvar_import[True] ______________\n\nself = <tests.test_annotations.TestAnnotations object at 0x7f8aa75b7710>\nslots = True\n\n @pytest.mark.skipif(\n sys.version_info[:2] < (3, 14),\n reason=\"Python 3.14 changed annotation evaluation behavior.\",\n )\n def test_missing_classvar_import(self, slots):\n \"\"\"\n Unimported ClassVars are recognized as ForwardRefs.\n \"\"\"\n \n @attr.s(auto_attribs=True, slots=slots)\n class C:\n cls_var: ClassVar[str] # noqa: F821\n value: int = 1\n \n> assert \"cls_var\" not in attr.fields_dict(C)\nE AssertionError: assert 'cls_var' not in {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')}\nE + where {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')} = <function fields_dict at 0x7f8aa7780040>(<class 'tests.test_annotations.TestAnnotations.test_missing_classvar_import.<locals>.C'>)\nE + where <function fields_dict at 0x7f8aa7780040> = attr.fields_dict\n\ntests/test_annotations.py:451: AssertionError\n_____________ TestAnnotations.test_missing_classvar_import[False] ______________\n\nself = <tests.test_annotations.TestAnnotations object at 0x7f8aa75b6b70>\nslots = False\n\n @pytest.mark.skipif(\n sys.version_info[:2] < (3, 14),\n reason=\"Python 3.14 changed annotation evaluation behavior.\",\n )\n def test_missing_classvar_import(self, slots):\n \"\"\"\n Unimported ClassVars are recognized as ForwardRefs.\n \"\"\"\n \n @attr.s(auto_attribs=True, slots=slots)\n class C:\n cls_var: ClassVar[str] # noqa: F821\n value: int = 1\n \n> assert \"cls_var\" not in attr.fields_dict(C)\nE AssertionError: assert 'cls_var' not in {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')}\nE + where {'cls_var': Attribute(name='cls_var', default=NOTHING, validator=None, repr=True, eq=True, eq_key=None, order=True, or...=mappingproxy({}), type=<class 'int'>, converter=None, kw_only=False, inherited=False, on_setattr=None, alias='value')} = <function fields_dict at 0x7f8aa7780040>(<class 'tests.test_annotations.TestAnnotations.test_missing_classvar_import.<locals>.C'>)\nE + where <function fields_dict at 0x7f8aa7780040> = attr.fields_dict\n\ntests/test_annotations.py:451: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_annotations.py::TestAnnotations::test_missing_classvar_import[True]\nFAILED tests/test_annotations.py::TestAnnotations::test_missing_classvar_import[False]\n2 failed in 0.09s",
|
| 80 |
+
"repeat": 2,
|
| 81 |
+
"state": "parent-hidden"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"command": [
|
| 85 |
+
"python",
|
| 86 |
+
"-m",
|
| 87 |
+
"pytest",
|
| 88 |
+
"-q",
|
| 89 |
+
"--hypothesis-seed=0",
|
| 90 |
+
"tests"
|
| 91 |
+
],
|
| 92 |
+
"exit_code": 0,
|
| 93 |
+
"expected": "zero",
|
| 94 |
+
"output_sha256": "25ed547cbeef24ccbdba7a99e110faf043992580f4007e9a9ddfa76a0547ddb3",
|
| 95 |
+
"output_tail": "........................................................................ [ 5%]\n........................................................................ [ 10%]\n........................................................................ [ 15%]\n........................................................................ [ 20%]\n........................................................................ [ 25%]\n........................................................................ [ 30%]\n........................................................................ [ 36%]\n........................................................................ [ 41%]\n........................................................................ [ 46%]\n........................................................................ [ 51%]\n........................................................................ [ 56%]\n........................................................................ [ 61%]\n........................................................................ [ 67%]\n........................................................................ [ 72%]\n...............................................................s........ [ 77%]\n..............................................sss....................x.. [ 82%]\n..............................s...................x..................... [ 87%]\n........................................................................ [ 92%]\n........................................................................ [ 98%]\n.......................... [100%]\n=========================== short test summary info ============================\nSKIPPED [1] tests/test_make.py:3083: Pre-3.10 only.\nSKIPPED [1] tests/test_pyright.py:35: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:83: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:111: Requires pyright.\nSKIPPED [1] tests/test_slots.py:517: slots without weakref_slot should only work on PyPy\nXFAIL tests/test_setattr.py::TestSetAttr::test_slotted_confused\nXFAIL tests/test_slots.py::test_slots_cached_property_infers_type - 3.14 does not infer the type anymore.\n1387 passed, 5 skipped, 2 xfailed in 9.38s",
|
| 96 |
+
"repeat": 2,
|
| 97 |
+
"state": "parent-regression"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"command": [
|
| 101 |
+
"python",
|
| 102 |
+
"-m",
|
| 103 |
+
"pytest",
|
| 104 |
+
"-q",
|
| 105 |
+
"--hypothesis-seed=0",
|
| 106 |
+
"tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"
|
| 107 |
+
],
|
| 108 |
+
"exit_code": 0,
|
| 109 |
+
"expected": "zero",
|
| 110 |
+
"output_sha256": "d54e562b1b92bd01731ae365858c02df2a697800b44d9fb15cd997542bffcf41",
|
| 111 |
+
"output_tail": ".. [100%]\n2 passed in 0.06s",
|
| 112 |
+
"repeat": 2,
|
| 113 |
+
"state": "gold-hidden"
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"command": [
|
| 117 |
+
"python",
|
| 118 |
+
"-m",
|
| 119 |
+
"pytest",
|
| 120 |
+
"-q",
|
| 121 |
+
"--hypothesis-seed=0",
|
| 122 |
+
"tests"
|
| 123 |
+
],
|
| 124 |
+
"exit_code": 0,
|
| 125 |
+
"expected": "zero",
|
| 126 |
+
"output_sha256": "ff705f1f36b20d718ab6d3fdac7661f7660ed6731658e5ff5531cf4c6050103f",
|
| 127 |
+
"output_tail": "........................................................................ [ 5%]\n........................................................................ [ 10%]\n........................................................................ [ 15%]\n........................................................................ [ 20%]\n........................................................................ [ 25%]\n........................................................................ [ 30%]\n........................................................................ [ 36%]\n........................................................................ [ 41%]\n........................................................................ [ 46%]\n........................................................................ [ 51%]\n........................................................................ [ 56%]\n........................................................................ [ 61%]\n........................................................................ [ 67%]\n........................................................................ [ 72%]\n...............................................................s........ [ 77%]\n..............................................sss....................x.. [ 82%]\n..............................s...................x..................... [ 87%]\n........................................................................ [ 92%]\n........................................................................ [ 98%]\n.......................... [100%]\n=========================== short test summary info ============================\nSKIPPED [1] tests/test_make.py:3083: Pre-3.10 only.\nSKIPPED [1] tests/test_pyright.py:35: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:83: Requires pyright.\nSKIPPED [1] tests/test_pyright.py:111: Requires pyright.\nSKIPPED [1] tests/test_slots.py:517: slots without weakref_slot should only work on PyPy\nXFAIL tests/test_setattr.py::TestSetAttr::test_slotted_confused\nXFAIL tests/test_slots.py::test_slots_cached_property_infers_type - 3.14 does not infer the type anymore.\n1387 passed, 5 skipped, 2 xfailed in 9.36s",
|
| 128 |
+
"repeat": 2,
|
| 129 |
+
"state": "gold-regression"
|
| 130 |
+
}
|
| 131 |
+
],
|
| 132 |
+
"fail_to_pass_command": [
|
| 133 |
+
"python",
|
| 134 |
+
"-m",
|
| 135 |
+
"pytest",
|
| 136 |
+
"-q",
|
| 137 |
+
"--hypothesis-seed=0",
|
| 138 |
+
"tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"
|
| 139 |
+
],
|
| 140 |
+
"fix_sha": "97f8d175656bc03c373a1c9038048a4d312c307c",
|
| 141 |
+
"local_image": "patcheval-validate:attrs-1575",
|
| 142 |
+
"local_image_id": "sha256:1ecf05dba183c31fdded4e1b92c73181e24d21926b6cb976b5b411ad8e8ba944",
|
| 143 |
+
"parent_sha": "6851ab593cd25f3c14393e9355d57d22bec2a074",
|
| 144 |
+
"regression_command": [
|
| 145 |
+
"python",
|
| 146 |
+
"-m",
|
| 147 |
+
"pytest",
|
| 148 |
+
"-q",
|
| 149 |
+
"--hypothesis-seed=0",
|
| 150 |
+
"tests"
|
| 151 |
+
],
|
| 152 |
+
"repeats": 2,
|
| 153 |
+
"repository": "python-attrs/attrs",
|
| 154 |
+
"runner_contract": {
|
| 155 |
+
"home": "/home/node",
|
| 156 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.47.3\nripgrep 14.1.1",
|
| 157 |
+
"smoke_output_sha256": "1f9f54eb0528523e3fe1a96cfad2629677cab32bb4348a4eaa6992145e8608fc",
|
| 158 |
+
"uid": "1000",
|
| 159 |
+
"user": "node"
|
| 160 |
+
},
|
| 161 |
+
"runtime_profile": {
|
| 162 |
+
"base_image": "ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim@sha256:dfe4069fefc02ee4d6097c26f31d0784df09c9b6242fb4a25ad31fbae74ec6aa",
|
| 163 |
+
"bootstrap_command": [
|
| 164 |
+
"uv",
|
| 165 |
+
"pip",
|
| 166 |
+
"install",
|
| 167 |
+
"--python",
|
| 168 |
+
"/opt/venv/bin/python",
|
| 169 |
+
"--only-binary",
|
| 170 |
+
":all:",
|
| 171 |
+
"hatchling==1.27.0",
|
| 172 |
+
"hatch-vcs==0.5.0",
|
| 173 |
+
"hatch-fancy-pypi-readme==25.1.0",
|
| 174 |
+
"setuptools-scm==9.2.0",
|
| 175 |
+
"editables==0.5"
|
| 176 |
+
],
|
| 177 |
+
"environment": [
|
| 178 |
+
"HOME=/home/node",
|
| 179 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 180 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 181 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 182 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 183 |
+
"PYTHONHASHSEED=0",
|
| 184 |
+
"PIP_NO_INDEX=1",
|
| 185 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 186 |
+
"UV_OFFLINE=1",
|
| 187 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0",
|
| 188 |
+
"LANG=C.UTF-8",
|
| 189 |
+
"LC_ALL=C.UTF-8",
|
| 190 |
+
"TZ=UTC",
|
| 191 |
+
"TERM=dumb",
|
| 192 |
+
"NO_COLOR=1",
|
| 193 |
+
"PYTHON_COLORS=0"
|
| 194 |
+
],
|
| 195 |
+
"fail_exit_codes": [
|
| 196 |
+
1
|
| 197 |
+
],
|
| 198 |
+
"regression_command": [
|
| 199 |
+
"python",
|
| 200 |
+
"-m",
|
| 201 |
+
"pytest",
|
| 202 |
+
"-q",
|
| 203 |
+
"--hypothesis-seed=0",
|
| 204 |
+
"tests"
|
| 205 |
+
],
|
| 206 |
+
"setup_command": [
|
| 207 |
+
"/bin/sh",
|
| 208 |
+
"-ec",
|
| 209 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 210 |
+
],
|
| 211 |
+
"sync_command": [
|
| 212 |
+
"uv",
|
| 213 |
+
"sync",
|
| 214 |
+
"--frozen",
|
| 215 |
+
"--no-default-groups",
|
| 216 |
+
"--group",
|
| 217 |
+
"tests",
|
| 218 |
+
"--no-install-project"
|
| 219 |
+
],
|
| 220 |
+
"test_command": [
|
| 221 |
+
"python",
|
| 222 |
+
"-m",
|
| 223 |
+
"pytest",
|
| 224 |
+
"-q",
|
| 225 |
+
"--hypothesis-seed=0"
|
| 226 |
+
],
|
| 227 |
+
"timeout_s": 900
|
| 228 |
+
},
|
| 229 |
+
"schema_version": 1,
|
| 230 |
+
"setup_command": [
|
| 231 |
+
"/bin/sh",
|
| 232 |
+
"-ec",
|
| 233 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 234 |
+
],
|
| 235 |
+
"task_id": "attrs-1575",
|
| 236 |
+
"validated": true
|
| 237 |
+
}
|
attestations/city2graph-121.json
ADDED
|
@@ -0,0 +1,170 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "47c68297c3f0046497fd21c3c1edf6454a3c43c806078870885254c92c1021e4",
|
| 12 |
+
"output_tail": "s: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 135 22% 82-110, 134, 165-181, 222-225, 251-279, 317-328, 516-549, 589-645, 690-700, 742-746, 784\ncity2graph/data.py 249 217 13% 183-229, 262-282, 337-370, 407-421, 489-561, 596-607, 640-671, 703-722, 757-796, 826-839, 870-894, 930-955, 988-1000\ncity2graph/graph.py 570 506 11% 145-150, 175-177, 215, 240-258, 282-337, 380-415, 439-494, 524-548, 573-610, 649-698, 726-728, 757-792, 823-867, 898-951, 975-979, 1012-1065, 1088-1105, 1129-1134, 1158-1182, 1216-1269, 1295-1308, 1326-1329, 1365-1378, 1414-1443, 1467-1491, 1512-1538, 1557-1561, 1585-1593, 1625-1642, 1767-1778, 1863-1864, 1942-1948, 2052-2058, 2110, 2149-2169, 2210-2265, 2293-2342, 2370-2430\ncity2graph/metapath.py 438 385 12% 124-159, 235-303, 355-413, 457-476, 495-497, 516-518, 543-549, 574-577, 602-605, 627-634, 655-659, 702-794, 822-831, 862-885, 922-958, 986-989, 1025-1036, 1075-1100, 1121-1125, 1169-1187, 1223-1238, 1272, 1314-1316, 1354-1396, 1442-1489, 1546-1598, 1629-1646, 1674-1692, 1745-1772\ncity2graph/mobility.py 272 236 13% 134-282, 309-327, 353-368, 393-400, 435-441, 464, 489-493, 528-537, 569-602, 632, 655-657, 704-730, 762-796, 832-849, 882-887, 921-948, 978-987, 1023-1042, 1065-1076, 1101-1104, 1151-1185, 1208-1235\ncity2graph/morphology.py 338 292 14% 178-233, 306-375, 451-515, 577-616, 701-754, 789-813, 844-846, 878-885, 925-961, 1007-1042, 1089-1159, 1191-1197, 1225-1242, 1279-1317, 1352-1389, 1422-1438, 1471-1487, 1516-1542, 1567-1588, 1614-1626, 1665-1714, 1748-1755, 1793-1801, 1833-1839, 1870\ncity2graph/proximity.py 625 542 13% 101-131, 177-183, 211-217, 241-245, 273-288, 308-310, 330, 350, 371-391, 429-435, 449-469, 478-480, 494-505, 524-555, 579-616, 635, 703-748, 817-834, 889-923, 978-1009, 1077-1105, 1187-1231, 1324-1348, 1379-1387, 1501-1556, 1637-1690, 1790-1828, 1901-1938, 1962-2006, 2026-2067, 2104-2141, 2161-2162, 2194-2204, 2243-2282, 2314-2330, 2354-2362, 2389-2392, 2414, 2448-2464\ncity2graph/transportation.py 245 214 13% 87, 117-126, 158-174, 208-217, 243-264, 309-372, 408-412, 448-465, 517-540, 577-604, 645-667, 700-709, 742-761, 810-850, 924-1004, 1036-1093\ncity2graph/utils.py 1036 859 17% 144, 206, 230, 279-301, 326-338, 357-362, 381-383, 427-440, 460-466, 495-510, 531-552, 578-611, 641-670, 706-719, 746-771, 805-822, 861-886, 918-936, 963-973, 1012-1024, 1065-1077, 1104-1120, 1143-1154, 1179-1186, 1213-1237, 1263-1278, 1305-1358, 1383-1402, 1429-1435, 1464-1471, 1496, 1518-1522, 1547-1552, 1577-1584, 1604, 1626-1637, 1665-1677, 1702-1708, 1788-1878, 1900-1914, 1936-1943, 1977-2017, 2125-2132, 2218-2251, 2315-2375, 2457-2492, 2523-2549, 2574-2582, 2613-2621, 2644-2655, 2675, 2706-2733, 2764-2772, 2798-2800, 2825-2828, 2856, 2881-2895, 2921-2927, 2946-2947, 2966, 2991-3028, 3075-3104, 3142-3175, 3209-3247, 3268-3269, 3294-3300, 3384-3409, 3454-3490, 3515-3518, 3546-3554, 3622-3695, 3743-3748, 3777-3817, 3846-3894, 4052-4053, 4057-4058, 4084, 4090, 4101, 4105, 4129-4133, 4164-4171, 4207, 4227-4228, 4252, 4359, 4395, 4414-4415, 4421, 4449-4473, 4490-4514, 4555-4618, 4642-4656, 4688-4723, 4758-4760, 4781-4788, 4818-4820, 4844-4851, 4882-4905, 4931-4958\n------------------------------------------------------------\nTOTAL 3960 3386 14%\n=========================== short test summary info ============================\nFAILED tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title\n1 failed, 3 warnings in 0.90s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"tests"
|
| 21 |
+
],
|
| 22 |
+
"exit_code": 0,
|
| 23 |
+
"expected": "zero",
|
| 24 |
+
"output_sha256": "f484523785ba56d570bb925ecb64ea26fcf22c09c61add92d0a500f8fff0ab3c",
|
| 25 |
+
"output_tail": "dexes\n /workspace/repo/city2graph/mobility.py:193: UserWarning: 1 labels in adjacency not present in zones_gdf; related edges will be dropped\n adj = _align_adjacency_zones(\n\ntests/test_mobility.py::TestODMatrixToGraph::test_missing_crs_emits_warning\n /workspace/repo/city2graph/mobility.py:135: UserWarning: zones_gdf has no CRS set; outputs will have undefined CRS (requirement 3.1)\n _validate_crs(zones_gdf)\n\ntests/test_morphology.py::TestMorphologicalGraphCore::test_contiguity_options[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_basic\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_networkx\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[queen]\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_duplicate_index\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestSpecialScenarios::test_group_column_functionality\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 64 disconnected components.\n There are 28 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 67 disconnected components.\n There are 30 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 31, 32, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestSpecialScenarios::test_empty_adjacency_data_handling\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 1, 2.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_proximity.py::test_contiguity_input_validation_and_empty_neighbors\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 0, 1.\n W.__init__(self, neighbors, ids=ids, **kw)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 0 100%\ncity2graph/data.py 249 3 99% 544, 646, 875\ncity2graph/graph.py 570 2 99% 1436-1437\ncity2graph/metapath.py 438 0 100%\ncity2graph/mobility.py 272 0 100%\ncity2graph/morphology.py 338 0 100%\ncity2graph/proximity.py 625 7 99% 123-128, 274-275\ncity2graph/transportation.py 245 0 100%\ncity2graph/utils.py 1036 15 99% 2490, 3000, 3479, 4345, 4580-4583, 4616, 4787-4788, 4847, 4851, 4939-4940, 4943\n------------------------------------------------------------\nTOTAL 3960 27 99%\n562 passed, 179 warnings in 26.96s",
|
| 26 |
+
"repeat": 1,
|
| 27 |
+
"state": "parent-regression"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"command": [
|
| 31 |
+
"pytest",
|
| 32 |
+
"-q",
|
| 33 |
+
"tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"
|
| 34 |
+
],
|
| 35 |
+
"exit_code": 0,
|
| 36 |
+
"expected": "zero",
|
| 37 |
+
"output_sha256": "fca3133b64d506df0cf416d09af88124cbef7ebca60d09935d7ae432ed97a4d2",
|
| 38 |
+
"output_tail": "y:1480\n /opt/venv/lib/python3.12/site-packages/torch/jit/_script.py:1480: DeprecationWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`.\n warnings.warn(\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 135 22% 82-110, 134, 165-181, 222-225, 251-279, 317-328, 516-549, 589-645, 690-700, 742-746, 784\ncity2graph/data.py 249 217 13% 183-229, 262-282, 337-370, 407-421, 489-561, 596-607, 640-671, 703-722, 757-796, 826-839, 870-894, 930-955, 988-1000\ncity2graph/graph.py 570 506 11% 145-150, 175-177, 215, 240-258, 282-337, 380-415, 439-494, 524-548, 573-610, 649-698, 726-728, 757-792, 823-867, 898-951, 975-979, 1012-1065, 1088-1105, 1129-1134, 1158-1182, 1216-1269, 1295-1308, 1326-1329, 1365-1378, 1414-1443, 1467-1491, 1512-1538, 1557-1561, 1585-1593, 1625-1642, 1767-1778, 1863-1864, 1942-1948, 2052-2058, 2110, 2149-2169, 2210-2265, 2293-2342, 2370-2430\ncity2graph/metapath.py 438 385 12% 124-159, 235-303, 355-413, 457-476, 495-497, 516-518, 543-549, 574-577, 602-605, 627-634, 655-659, 702-794, 822-831, 862-885, 922-958, 986-989, 1025-1036, 1075-1100, 1121-1125, 1169-1187, 1223-1238, 1272, 1314-1316, 1354-1396, 1442-1489, 1546-1598, 1629-1646, 1674-1692, 1745-1772\ncity2graph/mobility.py 272 236 13% 134-282, 309-327, 353-368, 393-400, 435-441, 464, 489-493, 528-537, 569-602, 632, 655-657, 704-730, 762-796, 832-849, 882-887, 921-948, 978-987, 1023-1042, 1065-1076, 1101-1104, 1151-1185, 1208-1235\ncity2graph/morphology.py 338 292 14% 178-233, 306-375, 451-515, 577-616, 701-754, 789-813, 844-846, 878-885, 925-961, 1007-1042, 1089-1159, 1191-1197, 1225-1242, 1279-1317, 1352-1389, 1422-1438, 1471-1487, 1516-1542, 1567-1588, 1614-1626, 1665-1714, 1748-1755, 1793-1801, 1833-1839, 1870\ncity2graph/proximity.py 625 542 13% 101-131, 177-183, 211-217, 241-245, 273-288, 308-310, 330, 350, 371-391, 429-435, 449-469, 478-480, 494-505, 524-555, 579-616, 635, 703-748, 817-834, 889-923, 978-1009, 1077-1105, 1187-1231, 1324-1348, 1379-1387, 1501-1556, 1637-1690, 1790-1828, 1901-1938, 1962-2006, 2026-2067, 2104-2141, 2161-2162, 2194-2204, 2243-2282, 2314-2330, 2354-2362, 2389-2392, 2414, 2448-2464\ncity2graph/transportation.py 245 214 13% 87, 117-126, 158-174, 208-217, 243-264, 309-372, 408-412, 448-465, 517-540, 577-604, 645-667, 700-709, 742-761, 810-850, 924-1004, 1036-1093\ncity2graph/utils.py 1047 852 19% 144, 206, 230, 279-301, 326-338, 357-362, 381-383, 427-440, 460-466, 495-510, 531-552, 578-611, 641-670, 706-719, 746-771, 805-822, 861-886, 918-936, 963-973, 1012-1024, 1065-1077, 1104-1120, 1143-1154, 1179-1186, 1213-1237, 1263-1278, 1305-1358, 1383-1402, 1429-1435, 1464-1471, 1496, 1518-1522, 1547-1552, 1577-1584, 1604, 1626-1637, 1665-1677, 1702-1708, 1788-1878, 1900-1914, 1936-1943, 1977-2017, 2125-2132, 2218-2251, 2315-2375, 2457-2492, 2523-2549, 2574-2582, 2613-2621, 2644-2655, 2675, 2706-2733, 2764-2772, 2798-2800, 2825-2828, 2856, 2881-2895, 2921-2927, 2946-2947, 2966, 2991-3028, 3075-3104, 3142-3175, 3209-3247, 3268-3269, 3294-3300, 3384-3409, 3454-3490, 3515-3518, 3546-3554, 3622-3695, 3743-3748, 3777-3817, 3846-3894, 4052-4053, 4057-4058, 4084, 4090, 4101, 4129-4133, 4164-4171, 4227-4228, 4252, 4348, 4398, 4424, 4452-4476, 4493-4517, 4558-4621, 4645-4659, 4691-4726, 4800-4807, 4837-4839, 4863-4870, 4901-4924, 4950-4977\n------------------------------------------------------------\nTOTAL 3971 3379 15%\n1 passed, 3 warnings in 0.54s",
|
| 39 |
+
"repeat": 1,
|
| 40 |
+
"state": "gold-hidden"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"command": [
|
| 44 |
+
"pytest",
|
| 45 |
+
"-q",
|
| 46 |
+
"tests"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "810759a79140b5c54b7d8685aae0a950745a445e51dcd86d969fb4e87332954a",
|
| 51 |
+
"output_tail": "/city2graph/mobility.py:193: UserWarning: 1 labels in adjacency not present in zones_gdf; related edges will be dropped\n adj = _align_adjacency_zones(\n\ntests/test_mobility.py::TestODMatrixToGraph::test_missing_crs_emits_warning\n /workspace/repo/city2graph/mobility.py:135: UserWarning: zones_gdf has no CRS set; outputs will have undefined CRS (requirement 3.1)\n _validate_crs(zones_gdf)\n\ntests/test_morphology.py::TestMorphologicalGraphCore::test_contiguity_options[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_basic\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_networkx\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[queen]\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_duplicate_index\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestSpecialScenarios::test_group_column_functionality\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 64 disconnected components.\n There are 28 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 67 disconnected components.\n There are 30 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 31, 32, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestSpecialScenarios::test_empty_adjacency_data_handling\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 1, 2.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_proximity.py::test_contiguity_input_validation_and_empty_neighbors\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 0, 1.\n W.__init__(self, neighbors, ids=ids, **kw)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 0 100%\ncity2graph/data.py 249 3 99% 544, 646, 875\ncity2graph/graph.py 570 2 99% 1436-1437\ncity2graph/metapath.py 438 0 100%\ncity2graph/mobility.py 272 0 100%\ncity2graph/morphology.py 338 0 100%\ncity2graph/proximity.py 625 7 99% 123-128, 274-275\ncity2graph/transportation.py 245 0 100%\ncity2graph/utils.py 1047 19 98% 2490, 3000, 3479, 4348, 4583-4586, 4619, 4769, 4771, 4775-4776, 4806-4807, 4866, 4870, 4958-4959, 4962\n------------------------------------------------------------\nTOTAL 3971 31 99%\n562 passed, 179 warnings in 27.13s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-regression"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"pytest",
|
| 58 |
+
"-q",
|
| 59 |
+
"tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"
|
| 60 |
+
],
|
| 61 |
+
"exit_code": 1,
|
| 62 |
+
"expected": "test-failure",
|
| 63 |
+
"output_sha256": "67a3e7eaad1e097091f0df97c2156229298b2959359f75eb5f15321f79d037be",
|
| 64 |
+
"output_tail": "s: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 135 22% 82-110, 134, 165-181, 222-225, 251-279, 317-328, 516-549, 589-645, 690-700, 742-746, 784\ncity2graph/data.py 249 217 13% 183-229, 262-282, 337-370, 407-421, 489-561, 596-607, 640-671, 703-722, 757-796, 826-839, 870-894, 930-955, 988-1000\ncity2graph/graph.py 570 506 11% 145-150, 175-177, 215, 240-258, 282-337, 380-415, 439-494, 524-548, 573-610, 649-698, 726-728, 757-792, 823-867, 898-951, 975-979, 1012-1065, 1088-1105, 1129-1134, 1158-1182, 1216-1269, 1295-1308, 1326-1329, 1365-1378, 1414-1443, 1467-1491, 1512-1538, 1557-1561, 1585-1593, 1625-1642, 1767-1778, 1863-1864, 1942-1948, 2052-2058, 2110, 2149-2169, 2210-2265, 2293-2342, 2370-2430\ncity2graph/metapath.py 438 385 12% 124-159, 235-303, 355-413, 457-476, 495-497, 516-518, 543-549, 574-577, 602-605, 627-634, 655-659, 702-794, 822-831, 862-885, 922-958, 986-989, 1025-1036, 1075-1100, 1121-1125, 1169-1187, 1223-1238, 1272, 1314-1316, 1354-1396, 1442-1489, 1546-1598, 1629-1646, 1674-1692, 1745-1772\ncity2graph/mobility.py 272 236 13% 134-282, 309-327, 353-368, 393-400, 435-441, 464, 489-493, 528-537, 569-602, 632, 655-657, 704-730, 762-796, 832-849, 882-887, 921-948, 978-987, 1023-1042, 1065-1076, 1101-1104, 1151-1185, 1208-1235\ncity2graph/morphology.py 338 292 14% 178-233, 306-375, 451-515, 577-616, 701-754, 789-813, 844-846, 878-885, 925-961, 1007-1042, 1089-1159, 1191-1197, 1225-1242, 1279-1317, 1352-1389, 1422-1438, 1471-1487, 1516-1542, 1567-1588, 1614-1626, 1665-1714, 1748-1755, 1793-1801, 1833-1839, 1870\ncity2graph/proximity.py 625 542 13% 101-131, 177-183, 211-217, 241-245, 273-288, 308-310, 330, 350, 371-391, 429-435, 449-469, 478-480, 494-505, 524-555, 579-616, 635, 703-748, 817-834, 889-923, 978-1009, 1077-1105, 1187-1231, 1324-1348, 1379-1387, 1501-1556, 1637-1690, 1790-1828, 1901-1938, 1962-2006, 2026-2067, 2104-2141, 2161-2162, 2194-2204, 2243-2282, 2314-2330, 2354-2362, 2389-2392, 2414, 2448-2464\ncity2graph/transportation.py 245 214 13% 87, 117-126, 158-174, 208-217, 243-264, 309-372, 408-412, 448-465, 517-540, 577-604, 645-667, 700-709, 742-761, 810-850, 924-1004, 1036-1093\ncity2graph/utils.py 1036 859 17% 144, 206, 230, 279-301, 326-338, 357-362, 381-383, 427-440, 460-466, 495-510, 531-552, 578-611, 641-670, 706-719, 746-771, 805-822, 861-886, 918-936, 963-973, 1012-1024, 1065-1077, 1104-1120, 1143-1154, 1179-1186, 1213-1237, 1263-1278, 1305-1358, 1383-1402, 1429-1435, 1464-1471, 1496, 1518-1522, 1547-1552, 1577-1584, 1604, 1626-1637, 1665-1677, 1702-1708, 1788-1878, 1900-1914, 1936-1943, 1977-2017, 2125-2132, 2218-2251, 2315-2375, 2457-2492, 2523-2549, 2574-2582, 2613-2621, 2644-2655, 2675, 2706-2733, 2764-2772, 2798-2800, 2825-2828, 2856, 2881-2895, 2921-2927, 2946-2947, 2966, 2991-3028, 3075-3104, 3142-3175, 3209-3247, 3268-3269, 3294-3300, 3384-3409, 3454-3490, 3515-3518, 3546-3554, 3622-3695, 3743-3748, 3777-3817, 3846-3894, 4052-4053, 4057-4058, 4084, 4090, 4101, 4105, 4129-4133, 4164-4171, 4207, 4227-4228, 4252, 4359, 4395, 4414-4415, 4421, 4449-4473, 4490-4514, 4555-4618, 4642-4656, 4688-4723, 4758-4760, 4781-4788, 4818-4820, 4844-4851, 4882-4905, 4931-4958\n------------------------------------------------------------\nTOTAL 3960 3386 14%\n=========================== short test summary info ============================\nFAILED tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title\n1 failed, 3 warnings in 0.91s",
|
| 65 |
+
"repeat": 2,
|
| 66 |
+
"state": "parent-hidden"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"command": [
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"tests"
|
| 73 |
+
],
|
| 74 |
+
"exit_code": 0,
|
| 75 |
+
"expected": "zero",
|
| 76 |
+
"output_sha256": "fbcccc53dd34efe2ac76e9679d1b6a26fd8925988797745f6ab234e641adacb4",
|
| 77 |
+
"output_tail": "dexes\n /workspace/repo/city2graph/mobility.py:193: UserWarning: 1 labels in adjacency not present in zones_gdf; related edges will be dropped\n adj = _align_adjacency_zones(\n\ntests/test_mobility.py::TestODMatrixToGraph::test_missing_crs_emits_warning\n /workspace/repo/city2graph/mobility.py:135: UserWarning: zones_gdf has no CRS set; outputs will have undefined CRS (requirement 3.1)\n _validate_crs(zones_gdf)\n\ntests/test_morphology.py::TestMorphologicalGraphCore::test_contiguity_options[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_basic\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_networkx\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[queen]\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_duplicate_index\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestSpecialScenarios::test_group_column_functionality\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 64 disconnected components.\n There are 28 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 67 disconnected components.\n There are 30 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 31, 32, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestSpecialScenarios::test_empty_adjacency_data_handling\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 1, 2.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_proximity.py::test_contiguity_input_validation_and_empty_neighbors\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 0, 1.\n W.__init__(self, neighbors, ids=ids, **kw)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 0 100%\ncity2graph/data.py 249 3 99% 544, 646, 875\ncity2graph/graph.py 570 2 99% 1436-1437\ncity2graph/metapath.py 438 0 100%\ncity2graph/mobility.py 272 0 100%\ncity2graph/morphology.py 338 0 100%\ncity2graph/proximity.py 625 7 99% 123-128, 274-275\ncity2graph/transportation.py 245 0 100%\ncity2graph/utils.py 1036 15 99% 2490, 3000, 3479, 4345, 4580-4583, 4616, 4787-4788, 4847, 4851, 4939-4940, 4943\n------------------------------------------------------------\nTOTAL 3960 27 99%\n562 passed, 179 warnings in 27.01s",
|
| 78 |
+
"repeat": 2,
|
| 79 |
+
"state": "parent-regression"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"command": [
|
| 83 |
+
"pytest",
|
| 84 |
+
"-q",
|
| 85 |
+
"tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"
|
| 86 |
+
],
|
| 87 |
+
"exit_code": 0,
|
| 88 |
+
"expected": "zero",
|
| 89 |
+
"output_sha256": "c9ddcf234416580fdc96fc14e4695450119b8b7adb603e683a9a8b9b18839133",
|
| 90 |
+
"output_tail": "y:1480\n /opt/venv/lib/python3.12/site-packages/torch/jit/_script.py:1480: DeprecationWarning: `torch.jit.script` is deprecated. Please switch to `torch.compile` or `torch.export`.\n warnings.warn(\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 135 22% 82-110, 134, 165-181, 222-225, 251-279, 317-328, 516-549, 589-645, 690-700, 742-746, 784\ncity2graph/data.py 249 217 13% 183-229, 262-282, 337-370, 407-421, 489-561, 596-607, 640-671, 703-722, 757-796, 826-839, 870-894, 930-955, 988-1000\ncity2graph/graph.py 570 506 11% 145-150, 175-177, 215, 240-258, 282-337, 380-415, 439-494, 524-548, 573-610, 649-698, 726-728, 757-792, 823-867, 898-951, 975-979, 1012-1065, 1088-1105, 1129-1134, 1158-1182, 1216-1269, 1295-1308, 1326-1329, 1365-1378, 1414-1443, 1467-1491, 1512-1538, 1557-1561, 1585-1593, 1625-1642, 1767-1778, 1863-1864, 1942-1948, 2052-2058, 2110, 2149-2169, 2210-2265, 2293-2342, 2370-2430\ncity2graph/metapath.py 438 385 12% 124-159, 235-303, 355-413, 457-476, 495-497, 516-518, 543-549, 574-577, 602-605, 627-634, 655-659, 702-794, 822-831, 862-885, 922-958, 986-989, 1025-1036, 1075-1100, 1121-1125, 1169-1187, 1223-1238, 1272, 1314-1316, 1354-1396, 1442-1489, 1546-1598, 1629-1646, 1674-1692, 1745-1772\ncity2graph/mobility.py 272 236 13% 134-282, 309-327, 353-368, 393-400, 435-441, 464, 489-493, 528-537, 569-602, 632, 655-657, 704-730, 762-796, 832-849, 882-887, 921-948, 978-987, 1023-1042, 1065-1076, 1101-1104, 1151-1185, 1208-1235\ncity2graph/morphology.py 338 292 14% 178-233, 306-375, 451-515, 577-616, 701-754, 789-813, 844-846, 878-885, 925-961, 1007-1042, 1089-1159, 1191-1197, 1225-1242, 1279-1317, 1352-1389, 1422-1438, 1471-1487, 1516-1542, 1567-1588, 1614-1626, 1665-1714, 1748-1755, 1793-1801, 1833-1839, 1870\ncity2graph/proximity.py 625 542 13% 101-131, 177-183, 211-217, 241-245, 273-288, 308-310, 330, 350, 371-391, 429-435, 449-469, 478-480, 494-505, 524-555, 579-616, 635, 703-748, 817-834, 889-923, 978-1009, 1077-1105, 1187-1231, 1324-1348, 1379-1387, 1501-1556, 1637-1690, 1790-1828, 1901-1938, 1962-2006, 2026-2067, 2104-2141, 2161-2162, 2194-2204, 2243-2282, 2314-2330, 2354-2362, 2389-2392, 2414, 2448-2464\ncity2graph/transportation.py 245 214 13% 87, 117-126, 158-174, 208-217, 243-264, 309-372, 408-412, 448-465, 517-540, 577-604, 645-667, 700-709, 742-761, 810-850, 924-1004, 1036-1093\ncity2graph/utils.py 1047 852 19% 144, 206, 230, 279-301, 326-338, 357-362, 381-383, 427-440, 460-466, 495-510, 531-552, 578-611, 641-670, 706-719, 746-771, 805-822, 861-886, 918-936, 963-973, 1012-1024, 1065-1077, 1104-1120, 1143-1154, 1179-1186, 1213-1237, 1263-1278, 1305-1358, 1383-1402, 1429-1435, 1464-1471, 1496, 1518-1522, 1547-1552, 1577-1584, 1604, 1626-1637, 1665-1677, 1702-1708, 1788-1878, 1900-1914, 1936-1943, 1977-2017, 2125-2132, 2218-2251, 2315-2375, 2457-2492, 2523-2549, 2574-2582, 2613-2621, 2644-2655, 2675, 2706-2733, 2764-2772, 2798-2800, 2825-2828, 2856, 2881-2895, 2921-2927, 2946-2947, 2966, 2991-3028, 3075-3104, 3142-3175, 3209-3247, 3268-3269, 3294-3300, 3384-3409, 3454-3490, 3515-3518, 3546-3554, 3622-3695, 3743-3748, 3777-3817, 3846-3894, 4052-4053, 4057-4058, 4084, 4090, 4101, 4129-4133, 4164-4171, 4227-4228, 4252, 4348, 4398, 4424, 4452-4476, 4493-4517, 4558-4621, 4645-4659, 4691-4726, 4800-4807, 4837-4839, 4863-4870, 4901-4924, 4950-4977\n------------------------------------------------------------\nTOTAL 3971 3379 15%\n1 passed, 3 warnings in 0.55s",
|
| 91 |
+
"repeat": 2,
|
| 92 |
+
"state": "gold-hidden"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"command": [
|
| 96 |
+
"pytest",
|
| 97 |
+
"-q",
|
| 98 |
+
"tests"
|
| 99 |
+
],
|
| 100 |
+
"exit_code": 0,
|
| 101 |
+
"expected": "zero",
|
| 102 |
+
"output_sha256": "3d51fff3dbfa77f561ee62adc8154ab208d553a937c98402e6632850e91fef28",
|
| 103 |
+
"output_tail": "/city2graph/mobility.py:193: UserWarning: 1 labels in adjacency not present in zones_gdf; related edges will be dropped\n adj = _align_adjacency_zones(\n\ntests/test_mobility.py::TestODMatrixToGraph::test_missing_crs_emits_warning\n /workspace/repo/city2graph/mobility.py:135: UserWarning: zones_gdf has no CRS set; outputs will have undefined CRS (requirement 3.1)\n _validate_crs(zones_gdf)\n\ntests/test_morphology.py::TestMorphologicalGraphCore::test_contiguity_options[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_basic\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_networkx\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[queen]\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_duplicate_index\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestIntegrationAndStress::test_function_consistency\ntests/test_morphology.py::TestSpecialScenarios::test_group_column_functionality\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 64 disconnected components.\n There are 28 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestIndividualGraphFunctions::test_private_to_private_contiguity[rook]\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:61: UserWarning: The weights matrix is not fully connected: \n There are 67 disconnected components.\n There are 30 islands with ids: 0, 1, 2, 3, 10, 18, 19, 20, 21, 31, 32, 34, 44, 65, 66, 82, 83, 84, 86, 91, 92, 93, 94, 96, 109, 135, 185, 251, 254, 255.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_morphology.py::TestSpecialScenarios::test_empty_adjacency_data_handling\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 1, 2.\n W.__init__(self, neighbors, ids=ids, **kw)\n\ntests/test_proximity.py::test_contiguity_input_validation_and_empty_neighbors\n /opt/venv/lib/python3.12/site-packages/libpysal/weights/contiguity.py:347: UserWarning: The weights matrix is not fully connected: \n There are 2 disconnected components.\n There are 2 islands with ids: 0, 1.\n W.__init__(self, neighbors, ids=ids, **kw)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n================================ tests coverage ================================\n_______________ coverage: platform linux, python 3.12.11-final-0 _______________\n\nName Stmts Miss Cover Missing\n------------------------------------------------------------\ncity2graph/__init__.py 14 0 100%\ncity2graph/base.py 173 0 100%\ncity2graph/data.py 249 3 99% 544, 646, 875\ncity2graph/graph.py 570 2 99% 1436-1437\ncity2graph/metapath.py 438 0 100%\ncity2graph/mobility.py 272 0 100%\ncity2graph/morphology.py 338 0 100%\ncity2graph/proximity.py 625 7 99% 123-128, 274-275\ncity2graph/transportation.py 245 0 100%\ncity2graph/utils.py 1047 19 98% 2490, 3000, 3479, 4348, 4583-4586, 4619, 4769, 4771, 4775-4776, 4806-4807, 4866, 4870, 4958-4959, 4962\n------------------------------------------------------------\nTOTAL 3971 31 99%\n562 passed, 179 warnings in 27.07s",
|
| 104 |
+
"repeat": 2,
|
| 105 |
+
"state": "gold-regression"
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"fail_to_pass_command": [
|
| 109 |
+
"pytest",
|
| 110 |
+
"-q",
|
| 111 |
+
"tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"
|
| 112 |
+
],
|
| 113 |
+
"fix_sha": "22f8f0342a913f65ff304677724c1bc36c3fd60e",
|
| 114 |
+
"local_image": "patcheval-validate:city2graph-121",
|
| 115 |
+
"local_image_id": "sha256:c16f243e23d570deb9b3b26f3abafb1450bbccff2550effa71d7fc1130221348",
|
| 116 |
+
"parent_sha": "d3b4ed8a2c2f160f70ff3809e0447b42d927bd41",
|
| 117 |
+
"regression_command": [
|
| 118 |
+
"pytest",
|
| 119 |
+
"-q",
|
| 120 |
+
"tests"
|
| 121 |
+
],
|
| 122 |
+
"repeats": 2,
|
| 123 |
+
"repository": "c2g-dev/city2graph",
|
| 124 |
+
"runner_contract": {
|
| 125 |
+
"home": "/home/node",
|
| 126 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 127 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 128 |
+
"uid": "1000",
|
| 129 |
+
"user": "node"
|
| 130 |
+
},
|
| 131 |
+
"runtime_profile": {
|
| 132 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm@sha256:6fb6f383deefbf9de105ce6d7a59fce0f8fa65c7afdf5a1222eafae14f81a27b",
|
| 133 |
+
"bootstrap_command": [],
|
| 134 |
+
"environment": [
|
| 135 |
+
"PYTHONPATH=/workspace/repo",
|
| 136 |
+
"MPLBACKEND=Agg",
|
| 137 |
+
"MPLCONFIGDIR=/tmp/matplotlib",
|
| 138 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 139 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 140 |
+
"UV_CACHE_DIR=/tmp/uv-cache"
|
| 141 |
+
],
|
| 142 |
+
"fail_exit_codes": [
|
| 143 |
+
1
|
| 144 |
+
],
|
| 145 |
+
"regression_command": [
|
| 146 |
+
"pytest",
|
| 147 |
+
"-q"
|
| 148 |
+
],
|
| 149 |
+
"setup_command": [],
|
| 150 |
+
"sync_command": [
|
| 151 |
+
"uv",
|
| 152 |
+
"sync",
|
| 153 |
+
"--frozen",
|
| 154 |
+
"--extra",
|
| 155 |
+
"cpu",
|
| 156 |
+
"--group",
|
| 157 |
+
"dev",
|
| 158 |
+
"--no-install-project"
|
| 159 |
+
],
|
| 160 |
+
"test_command": [
|
| 161 |
+
"pytest",
|
| 162 |
+
"-q"
|
| 163 |
+
],
|
| 164 |
+
"timeout_s": 1200
|
| 165 |
+
},
|
| 166 |
+
"schema_version": 1,
|
| 167 |
+
"setup_command": [],
|
| 168 |
+
"task_id": "city2graph-121",
|
| 169 |
+
"validated": true
|
| 170 |
+
}
|
attestations/click-2790.json
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "5e16fbfe30990c6cd31b703cd6c31868612a52324b3d743ea4331d48fdaba374",
|
| 12 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_ test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.] _\n\nrunner = <click.testing.CliRunner object at 0x7f6310cb3230>\nhelp_names = ['-h', '--help']\nextra_options = [<function option.<locals>.decorator at 0x7f6310985c60>]\nexpected_hint = \"Try 'cli foo --help' for help.\"\n\n @pytest.mark.parametrize(\n (\"help_names\", \"extra_options\", \"expected_hint\"),\n [\n # No shadowing, longest name is picked.\n ([\"-h\", \"--help\"], [], \"Try 'cli foo --help' for help.\"),\n # -h shadowed by a subcommand option, --help still available.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--host\", \"-h\")],\n \"Try 'cli foo --help' for help.\",\n ),\n # --help shadowed, -h still available.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--help-file\", \"--help\")],\n \"Try 'cli foo -h' for help.\",\n ),\n # Both names shadowed: no hint line at all.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--host\", \"-h\"), click.option(\"--help-file\", \"--help\")],\n None,\n ),\n # Single custom help name, not shadowed.\n ([\"--man\"], [], \"Try 'cli foo --man' for help.\"),\n # Three help names, one shadowed, longest survivor picked.\n (\n [\"-h\", \"--help\", \"--info\"],\n [click.option(\"--info-file\", \"--info\")],\n \"Try 'cli foo --help' for help.\",\n ),\n ],\n )\n def test_formatting_usage_error_help_hint(\n runner, help_names, extra_options, expected_hint\n ):\n \"\"\"The error hint should only show non-shadowed help option names,\n picking the longest for readability.\n \n https://github.com/pallets/click/issues/2790\n \"\"\"\n \n @click.group(context_settings={\"help_option_names\": help_names})\n def cli():\n pass\n \n @cli.command()\n @click.argument(\"required_arg\")\n def foo(required_arg, **kwargs):\n pass\n \n for option in extra_options:\n option(foo)\n \n result = runner.invoke(cli, [\"foo\"])\n assert result.exit_code == 2\n lines = result.output.splitlines()\n assert lines[0] == \"Usage: cli foo [OPTIONS] REQUIRED_ARG\"\n assert lines[-1] == \"Error: Missing argument 'REQUIRED_ARG'.\"\n if expected_hint is not None:\n> assert expected_hint in lines\nE assert \"Try 'cli foo --help' for help.\" in ['Usage: cli foo [OPTIONS] REQUIRED_ARG', \"Try 'cli foo -h' for help.\", '', \"Error: Missing argument 'REQUIRED_ARG'.\"]\n\ntests/test_formatting.py:311: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]\n1 failed in 0.04s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"-m",
|
| 21 |
+
"not stress",
|
| 22 |
+
"tests"
|
| 23 |
+
],
|
| 24 |
+
"exit_code": 0,
|
| 25 |
+
"expected": "zero",
|
| 26 |
+
"output_sha256": "cfccfb53f9ff1c403f2f55edb59950d2f61f3744d96dfdef315cbec84ef233c0",
|
| 27 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 9%]\n..................................................x..................... [ 14%]\n........................................................................ [ 19%]\n........................................................................ [ 24%]\n........................................................................ [ 29%]\n........................................................................ [ 34%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 49%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 64%]\n........................................................................ [ 69%]\n........................................................................ [ 73%]\n...sssssssssssssssssssss................ss.............................. [ 78%]\n........................................................................ [ 83%]\n........................................................................ [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 98%]\n.................... [100%]\n1436 passed, 23 skipped, 30000 deselected, 1 xfailed in 3.21s",
|
| 28 |
+
"repeat": 1,
|
| 29 |
+
"state": "parent-regression"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"command": [
|
| 33 |
+
"pytest",
|
| 34 |
+
"-q",
|
| 35 |
+
"tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"
|
| 36 |
+
],
|
| 37 |
+
"exit_code": 0,
|
| 38 |
+
"expected": "zero",
|
| 39 |
+
"output_sha256": "10b6a7fa10b95542fbd108177cacddf3c1b2fba55d5f67427577e9752f495a46",
|
| 40 |
+
"output_tail": ". [100%]\n1 passed in 0.02s",
|
| 41 |
+
"repeat": 1,
|
| 42 |
+
"state": "gold-hidden"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"command": [
|
| 46 |
+
"pytest",
|
| 47 |
+
"-q",
|
| 48 |
+
"-m",
|
| 49 |
+
"not stress",
|
| 50 |
+
"tests"
|
| 51 |
+
],
|
| 52 |
+
"exit_code": 0,
|
| 53 |
+
"expected": "zero",
|
| 54 |
+
"output_sha256": "cfccfb53f9ff1c403f2f55edb59950d2f61f3744d96dfdef315cbec84ef233c0",
|
| 55 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 9%]\n..................................................x..................... [ 14%]\n........................................................................ [ 19%]\n........................................................................ [ 24%]\n........................................................................ [ 29%]\n........................................................................ [ 34%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 49%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 64%]\n........................................................................ [ 69%]\n........................................................................ [ 73%]\n...sssssssssssssssssssss................ss.............................. [ 78%]\n........................................................................ [ 83%]\n........................................................................ [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 98%]\n.................... [100%]\n1436 passed, 23 skipped, 30000 deselected, 1 xfailed in 3.21s",
|
| 56 |
+
"repeat": 1,
|
| 57 |
+
"state": "gold-regression"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"command": [
|
| 61 |
+
"pytest",
|
| 62 |
+
"-q",
|
| 63 |
+
"tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"
|
| 64 |
+
],
|
| 65 |
+
"exit_code": 1,
|
| 66 |
+
"expected": "test-failure",
|
| 67 |
+
"output_sha256": "b507fb0e830a8d22839a029c8d6e1363858e43135ff39c38f0d6a687d6caa236",
|
| 68 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_ test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.] _\n\nrunner = <click.testing.CliRunner object at 0x7ff9d65b9eb0>\nhelp_names = ['-h', '--help']\nextra_options = [<function option.<locals>.decorator at 0x7ff9d5fb9c60>]\nexpected_hint = \"Try 'cli foo --help' for help.\"\n\n @pytest.mark.parametrize(\n (\"help_names\", \"extra_options\", \"expected_hint\"),\n [\n # No shadowing, longest name is picked.\n ([\"-h\", \"--help\"], [], \"Try 'cli foo --help' for help.\"),\n # -h shadowed by a subcommand option, --help still available.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--host\", \"-h\")],\n \"Try 'cli foo --help' for help.\",\n ),\n # --help shadowed, -h still available.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--help-file\", \"--help\")],\n \"Try 'cli foo -h' for help.\",\n ),\n # Both names shadowed: no hint line at all.\n (\n [\"-h\", \"--help\"],\n [click.option(\"--host\", \"-h\"), click.option(\"--help-file\", \"--help\")],\n None,\n ),\n # Single custom help name, not shadowed.\n ([\"--man\"], [], \"Try 'cli foo --man' for help.\"),\n # Three help names, one shadowed, longest survivor picked.\n (\n [\"-h\", \"--help\", \"--info\"],\n [click.option(\"--info-file\", \"--info\")],\n \"Try 'cli foo --help' for help.\",\n ),\n ],\n )\n def test_formatting_usage_error_help_hint(\n runner, help_names, extra_options, expected_hint\n ):\n \"\"\"The error hint should only show non-shadowed help option names,\n picking the longest for readability.\n \n https://github.com/pallets/click/issues/2790\n \"\"\"\n \n @click.group(context_settings={\"help_option_names\": help_names})\n def cli():\n pass\n \n @cli.command()\n @click.argument(\"required_arg\")\n def foo(required_arg, **kwargs):\n pass\n \n for option in extra_options:\n option(foo)\n \n result = runner.invoke(cli, [\"foo\"])\n assert result.exit_code == 2\n lines = result.output.splitlines()\n assert lines[0] == \"Usage: cli foo [OPTIONS] REQUIRED_ARG\"\n assert lines[-1] == \"Error: Missing argument 'REQUIRED_ARG'.\"\n if expected_hint is not None:\n> assert expected_hint in lines\nE assert \"Try 'cli foo --help' for help.\" in ['Usage: cli foo [OPTIONS] REQUIRED_ARG', \"Try 'cli foo -h' for help.\", '', \"Error: Missing argument 'REQUIRED_ARG'.\"]\n\ntests/test_formatting.py:311: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]\n1 failed in 0.04s",
|
| 69 |
+
"repeat": 2,
|
| 70 |
+
"state": "parent-hidden"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"command": [
|
| 74 |
+
"pytest",
|
| 75 |
+
"-q",
|
| 76 |
+
"-m",
|
| 77 |
+
"not stress",
|
| 78 |
+
"tests"
|
| 79 |
+
],
|
| 80 |
+
"exit_code": 0,
|
| 81 |
+
"expected": "zero",
|
| 82 |
+
"output_sha256": "01f914c951e28fd3f72068206aba405b14050ad3d83be4fd73c7414778af5504",
|
| 83 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 9%]\n..................................................x..................... [ 14%]\n........................................................................ [ 19%]\n........................................................................ [ 24%]\n........................................................................ [ 29%]\n........................................................................ [ 34%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 49%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 64%]\n........................................................................ [ 69%]\n........................................................................ [ 73%]\n...sssssssssssssssssssss................ss.............................. [ 78%]\n........................................................................ [ 83%]\n........................................................................ [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 98%]\n.................... [100%]\n1436 passed, 23 skipped, 30000 deselected, 1 xfailed in 3.25s",
|
| 84 |
+
"repeat": 2,
|
| 85 |
+
"state": "parent-regression"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"command": [
|
| 89 |
+
"pytest",
|
| 90 |
+
"-q",
|
| 91 |
+
"tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"
|
| 92 |
+
],
|
| 93 |
+
"exit_code": 0,
|
| 94 |
+
"expected": "zero",
|
| 95 |
+
"output_sha256": "0a92bf2f4f32022509e8ef6e5adb2bea698107939a090c62c855b099fad4e096",
|
| 96 |
+
"output_tail": ". [100%]\n1 passed in 0.03s",
|
| 97 |
+
"repeat": 2,
|
| 98 |
+
"state": "gold-hidden"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"command": [
|
| 102 |
+
"pytest",
|
| 103 |
+
"-q",
|
| 104 |
+
"-m",
|
| 105 |
+
"not stress",
|
| 106 |
+
"tests"
|
| 107 |
+
],
|
| 108 |
+
"exit_code": 0,
|
| 109 |
+
"expected": "zero",
|
| 110 |
+
"output_sha256": "01f914c951e28fd3f72068206aba405b14050ad3d83be4fd73c7414778af5504",
|
| 111 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 9%]\n..................................................x..................... [ 14%]\n........................................................................ [ 19%]\n........................................................................ [ 24%]\n........................................................................ [ 29%]\n........................................................................ [ 34%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 49%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 64%]\n........................................................................ [ 69%]\n........................................................................ [ 73%]\n...sssssssssssssssssssss................ss.............................. [ 78%]\n........................................................................ [ 83%]\n........................................................................ [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 98%]\n.................... [100%]\n1436 passed, 23 skipped, 30000 deselected, 1 xfailed in 3.25s",
|
| 112 |
+
"repeat": 2,
|
| 113 |
+
"state": "gold-regression"
|
| 114 |
+
}
|
| 115 |
+
],
|
| 116 |
+
"fail_to_pass_command": [
|
| 117 |
+
"pytest",
|
| 118 |
+
"-q",
|
| 119 |
+
"tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"
|
| 120 |
+
],
|
| 121 |
+
"fix_sha": "1241abaed4e441582a21f4bf90c8482de02b92df",
|
| 122 |
+
"local_image": "patcheval-validate:click-2790",
|
| 123 |
+
"local_image_id": "sha256:b9e4ff0e359dd307b96911dc0f60319cf933bdb0607e838e1696cf50e6e31e67",
|
| 124 |
+
"parent_sha": "f1f191ecd2c790b161187c78e7c88440e9524e5c",
|
| 125 |
+
"regression_command": [
|
| 126 |
+
"pytest",
|
| 127 |
+
"-q",
|
| 128 |
+
"-m",
|
| 129 |
+
"not stress",
|
| 130 |
+
"tests"
|
| 131 |
+
],
|
| 132 |
+
"repeats": 2,
|
| 133 |
+
"repository": "pallets/click",
|
| 134 |
+
"runner_contract": {
|
| 135 |
+
"home": "/home/node",
|
| 136 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 137 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 138 |
+
"uid": "1000",
|
| 139 |
+
"user": "node"
|
| 140 |
+
},
|
| 141 |
+
"runtime_profile": {
|
| 142 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 143 |
+
"bootstrap_command": [
|
| 144 |
+
"sh",
|
| 145 |
+
"-euxc",
|
| 146 |
+
"apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"
|
| 147 |
+
],
|
| 148 |
+
"environment": [
|
| 149 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 150 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 151 |
+
"PYTHONHASHSEED=0",
|
| 152 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 153 |
+
"LANG=C.UTF-8",
|
| 154 |
+
"LC_ALL=C.UTF-8",
|
| 155 |
+
"TZ=UTC",
|
| 156 |
+
"PIP_NO_INDEX=1",
|
| 157 |
+
"UV_OFFLINE=1"
|
| 158 |
+
],
|
| 159 |
+
"fail_exit_codes": [
|
| 160 |
+
1
|
| 161 |
+
],
|
| 162 |
+
"regression_command": [
|
| 163 |
+
"pytest",
|
| 164 |
+
"-q",
|
| 165 |
+
"-m",
|
| 166 |
+
"not stress",
|
| 167 |
+
"tests"
|
| 168 |
+
],
|
| 169 |
+
"setup_command": [],
|
| 170 |
+
"sync_command": [
|
| 171 |
+
"/bin/sh",
|
| 172 |
+
"-ec",
|
| 173 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"
|
| 174 |
+
],
|
| 175 |
+
"test_command": [
|
| 176 |
+
"pytest",
|
| 177 |
+
"-q"
|
| 178 |
+
],
|
| 179 |
+
"timeout_s": 300
|
| 180 |
+
},
|
| 181 |
+
"schema_version": 1,
|
| 182 |
+
"setup_command": [],
|
| 183 |
+
"task_id": "click-2790",
|
| 184 |
+
"validated": true
|
| 185 |
+
}
|
attestations/click-3360.json
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "8569a90244018c78bce3cc7b14c7e332cea4610051fe1c6a9c9fcaf43413a7ef",
|
| 12 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n__________ test_help_formatter_write_usage[empty-args-default-prefix] __________\n\nformatter_kwargs = {}, current_indent = 0, prog = 'Program', args = ''\nprefix = None, expected = 'Usage: Program\\n'\n\n @pytest.mark.parametrize(\n (\"formatter_kwargs\", \"current_indent\", \"prog\", \"args\", \"prefix\", \"expected\"),\n [\n # Issue #3360: the default prefix used to emit only\n # a blank line because ``wrap_text(\"\", initial_indent=usage_prefix)``\n # returned ``\"\"`` and discarded the prefix.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"\",\n None,\n \"Usage: Program\\n\",\n id=\"empty-args-default-prefix\",\n ),\n # A caller-supplied prefix is preserved verbatim.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"\",\n \"Run: \",\n \"Run: Program\\n\",\n id=\"empty-args-custom-prefix\",\n ),\n # ``current_indent`` is preserved even with no args to render.\n pytest.param(\n {},\n 4,\n \"Program\",\n \"\",\n None,\n \"Usage: Program\\n\",\n id=\"empty-args-indented\",\n ),\n # Prog too long to share a line with args: the wrap branch must not\n # emit a second line.\n pytest.param(\n {\"width\": 20},\n 0,\n \"VeryLongProgramName\",\n \"\",\n None,\n \"Usage: VeryLongProgramName\\n\",\n id=\"empty-args-long-prog\",\n ),\n # With non-empty args, the separator space between prog and args is preserved.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"[OPTIONS]\",\n None,\n \"Usage: Program [OPTIONS]\\n\",\n id=\"with-args-default-prefix\",\n ),\n ],\n )\n def test_help_formatter_write_usage(\n formatter_kwargs, current_indent, prog, args, prefix, expected\n ):\n \"\"\"``HelpFormatter.write_usage`` renders a single usage line whose\n trailing separator tracks whether ``args`` is non-empty.\n \"\"\"\n f = click.HelpFormatter(**formatter_kwargs)\n f.current_indent = current_indent\n if prefix is None:\n f.write_usage(prog, args)\n else:\n f.write_usage(prog, args, prefix=prefix)\n> assert f.getvalue() == expected\nE AssertionError: assert '\\n' == 'Usage: Program\\n'\nE \nE Strings contain only whitespace, escaping them using repr()\nE - 'Usage: Program\\n'\nE + '\\n'\n\ntests/test_formatting.py:574: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]\n1 failed in 0.05s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"-m",
|
| 21 |
+
"not stress",
|
| 22 |
+
"tests"
|
| 23 |
+
],
|
| 24 |
+
"exit_code": 0,
|
| 25 |
+
"expected": "zero",
|
| 26 |
+
"output_sha256": "fe50a81c1342a77ae3e91a2bbaaeb0d175276bfb6dc205f85b7a6df2c81ef22b",
|
| 27 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n..................................................x..................... [ 13%]\n........................................................................ [ 17%]\n........................................................................ [ 22%]\n........................................................................ [ 26%]\n........................................................................ [ 30%]\n........................................................................ [ 35%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 48%]\n........................................................................ [ 53%]\n........................................................................ [ 57%]\n........................................................................ [ 61%]\n........................................................................ [ 66%]\n........................................................................ [ 70%]\n................................................................ssssssss [ 75%]\nsssssssssssss................ss......................................... [ 79%]\n........................................................................ [ 84%]\n..........................................................s............. [ 88%]\n........................................................................ [ 92%]\n........................................................................ [ 97%]\n........................................... [100%]\n1602 passed, 24 skipped, 30000 deselected, 1 xfailed in 3.54s",
|
| 28 |
+
"repeat": 1,
|
| 29 |
+
"state": "parent-regression"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"command": [
|
| 33 |
+
"pytest",
|
| 34 |
+
"-q",
|
| 35 |
+
"tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"
|
| 36 |
+
],
|
| 37 |
+
"exit_code": 0,
|
| 38 |
+
"expected": "zero",
|
| 39 |
+
"output_sha256": "0a92bf2f4f32022509e8ef6e5adb2bea698107939a090c62c855b099fad4e096",
|
| 40 |
+
"output_tail": ". [100%]\n1 passed in 0.03s",
|
| 41 |
+
"repeat": 1,
|
| 42 |
+
"state": "gold-hidden"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"command": [
|
| 46 |
+
"pytest",
|
| 47 |
+
"-q",
|
| 48 |
+
"-m",
|
| 49 |
+
"not stress",
|
| 50 |
+
"tests"
|
| 51 |
+
],
|
| 52 |
+
"exit_code": 0,
|
| 53 |
+
"expected": "zero",
|
| 54 |
+
"output_sha256": "368a06796735e52d378e75586cdb45e4fcc6185f8b4afc731d115996f653e6eb",
|
| 55 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n..................................................x..................... [ 13%]\n........................................................................ [ 17%]\n........................................................................ [ 22%]\n........................................................................ [ 26%]\n........................................................................ [ 30%]\n........................................................................ [ 35%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 48%]\n........................................................................ [ 53%]\n........................................................................ [ 57%]\n........................................................................ [ 61%]\n........................................................................ [ 66%]\n........................................................................ [ 70%]\n................................................................ssssssss [ 75%]\nsssssssssssss................ss......................................... [ 79%]\n........................................................................ [ 84%]\n..........................................................s............. [ 88%]\n........................................................................ [ 92%]\n........................................................................ [ 97%]\n........................................... [100%]\n1602 passed, 24 skipped, 30000 deselected, 1 xfailed in 3.52s",
|
| 56 |
+
"repeat": 1,
|
| 57 |
+
"state": "gold-regression"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"command": [
|
| 61 |
+
"pytest",
|
| 62 |
+
"-q",
|
| 63 |
+
"tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"
|
| 64 |
+
],
|
| 65 |
+
"exit_code": 1,
|
| 66 |
+
"expected": "test-failure",
|
| 67 |
+
"output_sha256": "8569a90244018c78bce3cc7b14c7e332cea4610051fe1c6a9c9fcaf43413a7ef",
|
| 68 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n__________ test_help_formatter_write_usage[empty-args-default-prefix] __________\n\nformatter_kwargs = {}, current_indent = 0, prog = 'Program', args = ''\nprefix = None, expected = 'Usage: Program\\n'\n\n @pytest.mark.parametrize(\n (\"formatter_kwargs\", \"current_indent\", \"prog\", \"args\", \"prefix\", \"expected\"),\n [\n # Issue #3360: the default prefix used to emit only\n # a blank line because ``wrap_text(\"\", initial_indent=usage_prefix)``\n # returned ``\"\"`` and discarded the prefix.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"\",\n None,\n \"Usage: Program\\n\",\n id=\"empty-args-default-prefix\",\n ),\n # A caller-supplied prefix is preserved verbatim.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"\",\n \"Run: \",\n \"Run: Program\\n\",\n id=\"empty-args-custom-prefix\",\n ),\n # ``current_indent`` is preserved even with no args to render.\n pytest.param(\n {},\n 4,\n \"Program\",\n \"\",\n None,\n \"Usage: Program\\n\",\n id=\"empty-args-indented\",\n ),\n # Prog too long to share a line with args: the wrap branch must not\n # emit a second line.\n pytest.param(\n {\"width\": 20},\n 0,\n \"VeryLongProgramName\",\n \"\",\n None,\n \"Usage: VeryLongProgramName\\n\",\n id=\"empty-args-long-prog\",\n ),\n # With non-empty args, the separator space between prog and args is preserved.\n pytest.param(\n {},\n 0,\n \"Program\",\n \"[OPTIONS]\",\n None,\n \"Usage: Program [OPTIONS]\\n\",\n id=\"with-args-default-prefix\",\n ),\n ],\n )\n def test_help_formatter_write_usage(\n formatter_kwargs, current_indent, prog, args, prefix, expected\n ):\n \"\"\"``HelpFormatter.write_usage`` renders a single usage line whose\n trailing separator tracks whether ``args`` is non-empty.\n \"\"\"\n f = click.HelpFormatter(**formatter_kwargs)\n f.current_indent = current_indent\n if prefix is None:\n f.write_usage(prog, args)\n else:\n f.write_usage(prog, args, prefix=prefix)\n> assert f.getvalue() == expected\nE AssertionError: assert '\\n' == 'Usage: Program\\n'\nE \nE Strings contain only whitespace, escaping them using repr()\nE - 'Usage: Program\\n'\nE + '\\n'\n\ntests/test_formatting.py:574: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]\n1 failed in 0.05s",
|
| 69 |
+
"repeat": 2,
|
| 70 |
+
"state": "parent-hidden"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"command": [
|
| 74 |
+
"pytest",
|
| 75 |
+
"-q",
|
| 76 |
+
"-m",
|
| 77 |
+
"not stress",
|
| 78 |
+
"tests"
|
| 79 |
+
],
|
| 80 |
+
"exit_code": 0,
|
| 81 |
+
"expected": "zero",
|
| 82 |
+
"output_sha256": "b2145163a7f16996157a14b7bc3050c835fd8c1146a96721788c51c68856a3a0",
|
| 83 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n..................................................x..................... [ 13%]\n........................................................................ [ 17%]\n........................................................................ [ 22%]\n........................................................................ [ 26%]\n........................................................................ [ 30%]\n........................................................................ [ 35%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 48%]\n........................................................................ [ 53%]\n........................................................................ [ 57%]\n........................................................................ [ 61%]\n........................................................................ [ 66%]\n........................................................................ [ 70%]\n................................................................ssssssss [ 75%]\nsssssssssssss................ss......................................... [ 79%]\n........................................................................ [ 84%]\n..........................................................s............. [ 88%]\n........................................................................ [ 92%]\n........................................................................ [ 97%]\n........................................... [100%]\n1602 passed, 24 skipped, 30000 deselected, 1 xfailed in 3.55s",
|
| 84 |
+
"repeat": 2,
|
| 85 |
+
"state": "parent-regression"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"command": [
|
| 89 |
+
"pytest",
|
| 90 |
+
"-q",
|
| 91 |
+
"tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"
|
| 92 |
+
],
|
| 93 |
+
"exit_code": 0,
|
| 94 |
+
"expected": "zero",
|
| 95 |
+
"output_sha256": "0a92bf2f4f32022509e8ef6e5adb2bea698107939a090c62c855b099fad4e096",
|
| 96 |
+
"output_tail": ". [100%]\n1 passed in 0.03s",
|
| 97 |
+
"repeat": 2,
|
| 98 |
+
"state": "gold-hidden"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"command": [
|
| 102 |
+
"pytest",
|
| 103 |
+
"-q",
|
| 104 |
+
"-m",
|
| 105 |
+
"not stress",
|
| 106 |
+
"tests"
|
| 107 |
+
],
|
| 108 |
+
"exit_code": 0,
|
| 109 |
+
"expected": "zero",
|
| 110 |
+
"output_sha256": "54906c6075520e77903c58e3f9958bd6b61135c2b4c2f05ccfd1cbc80caf9d2a",
|
| 111 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n..................................................x..................... [ 13%]\n........................................................................ [ 17%]\n........................................................................ [ 22%]\n........................................................................ [ 26%]\n........................................................................ [ 30%]\n........................................................................ [ 35%]\n........................................................................ [ 39%]\n........................................................................ [ 44%]\n........................................................................ [ 48%]\n........................................................................ [ 53%]\n........................................................................ [ 57%]\n........................................................................ [ 61%]\n........................................................................ [ 66%]\n........................................................................ [ 70%]\n................................................................ssssssss [ 75%]\nsssssssssssss................ss......................................... [ 79%]\n........................................................................ [ 84%]\n..........................................................s............. [ 88%]\n........................................................................ [ 92%]\n........................................................................ [ 97%]\n........................................... [100%]\n1602 passed, 24 skipped, 30000 deselected, 1 xfailed in 3.53s",
|
| 112 |
+
"repeat": 2,
|
| 113 |
+
"state": "gold-regression"
|
| 114 |
+
}
|
| 115 |
+
],
|
| 116 |
+
"fail_to_pass_command": [
|
| 117 |
+
"pytest",
|
| 118 |
+
"-q",
|
| 119 |
+
"tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"
|
| 120 |
+
],
|
| 121 |
+
"fix_sha": "0551bf53588ae87f462d336f24f853a156fefe3a",
|
| 122 |
+
"local_image": "patcheval-validate:click-3360",
|
| 123 |
+
"local_image_id": "sha256:e808b6e5d9a870893ed8abb6d0eb7d06de485e30b00fc98dd05ed1b30702d983",
|
| 124 |
+
"parent_sha": "7c99ebe23b931f27562d926814423cce85fd9766",
|
| 125 |
+
"regression_command": [
|
| 126 |
+
"pytest",
|
| 127 |
+
"-q",
|
| 128 |
+
"-m",
|
| 129 |
+
"not stress",
|
| 130 |
+
"tests"
|
| 131 |
+
],
|
| 132 |
+
"repeats": 2,
|
| 133 |
+
"repository": "pallets/click",
|
| 134 |
+
"runner_contract": {
|
| 135 |
+
"home": "/home/node",
|
| 136 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 137 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 138 |
+
"uid": "1000",
|
| 139 |
+
"user": "node"
|
| 140 |
+
},
|
| 141 |
+
"runtime_profile": {
|
| 142 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 143 |
+
"bootstrap_command": [
|
| 144 |
+
"sh",
|
| 145 |
+
"-euxc",
|
| 146 |
+
"apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"
|
| 147 |
+
],
|
| 148 |
+
"environment": [
|
| 149 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 150 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 151 |
+
"PYTHONHASHSEED=0",
|
| 152 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 153 |
+
"LANG=C.UTF-8",
|
| 154 |
+
"LC_ALL=C.UTF-8",
|
| 155 |
+
"TZ=UTC",
|
| 156 |
+
"PIP_NO_INDEX=1",
|
| 157 |
+
"UV_OFFLINE=1"
|
| 158 |
+
],
|
| 159 |
+
"fail_exit_codes": [
|
| 160 |
+
1
|
| 161 |
+
],
|
| 162 |
+
"regression_command": [
|
| 163 |
+
"pytest",
|
| 164 |
+
"-q",
|
| 165 |
+
"-m",
|
| 166 |
+
"not stress",
|
| 167 |
+
"tests"
|
| 168 |
+
],
|
| 169 |
+
"setup_command": [],
|
| 170 |
+
"sync_command": [
|
| 171 |
+
"/bin/sh",
|
| 172 |
+
"-ec",
|
| 173 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"
|
| 174 |
+
],
|
| 175 |
+
"test_command": [
|
| 176 |
+
"pytest",
|
| 177 |
+
"-q"
|
| 178 |
+
],
|
| 179 |
+
"timeout_s": 300
|
| 180 |
+
},
|
| 181 |
+
"schema_version": 1,
|
| 182 |
+
"setup_command": [],
|
| 183 |
+
"task_id": "click-3360",
|
| 184 |
+
"validated": true
|
| 185 |
+
}
|
attestations/click-3572.json
ADDED
|
@@ -0,0 +1,185 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "e0b0938e4723a133b7bcc84b5d315cb409337bfaf58bbe4448087688743c2eb7",
|
| 12 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n________ test_prompt_and_confirm_ansi_respects_color[confirm-no-color] _________\n\nrunner = <click.testing.CliRunner object at 0x7fb98c8e4830>\ncall = <function <lambda> at 0x7fb98bf9d8a0>, user_input = 'y', color = False\nexpect = 'Hello World! [y/N]: y\\n'\n\n @pytest.mark.parametrize(\n (\"call\", \"user_input\", \"color\", \"expect\"),\n [\n pytest.param(\n lambda: click.confirm(click.style(\"Hello World!\", fg=\"green\")),\n \"y\",\n False,\n \"Hello World! [y/N]: y\\n\",\n id=\"confirm-no-color\",\n ),\n pytest.param(\n lambda: click.confirm(click.style(\"Hello World!\", fg=\"green\")),\n \"y\",\n True,\n \"\\x1b[32mHello World!\\x1b[0m [y/N]: y\\n\",\n id=\"confirm-color\",\n ),\n pytest.param(\n lambda: click.prompt(click.style(\"Name\", fg=\"green\")),\n \"Bob\",\n False,\n \"Name: Bob\\n\",\n id=\"prompt-no-color\",\n ),\n pytest.param(\n lambda: click.prompt(click.style(\"Name\", fg=\"green\")),\n \"Bob\",\n True,\n \"\\x1b[32mName\\x1b[0m: Bob\\n\",\n id=\"prompt-color\",\n ),\n ],\n )\n def test_prompt_and_confirm_ansi_respects_color(\n runner, call, user_input, color, expect\n ):\n \"\"\"``confirm`` and ``prompt`` strip ANSI color and style codes from the\n prompt when color is disabled and keep them when it is enabled, like\n ``echo``. The prompt is written by ``input`` rather than ``echo``, so it\n used to keep the codes regardless (issue 3572).\n \"\"\"\n \n @click.command()\n def cli():\n call()\n \n result = runner.invoke(cli, input=user_input, color=color)\n> assert result.output == expect\nE AssertionError: assert '\\x1b[32mHell...0m [y/N]: y\\n' == 'Hello World! [y/N]: y\\n'\nE \nE - Hello World! [y/N]: y\nE + \u001b[32mHello World!\u001b[0m [y/N]: y\nE ? +++++ ++++\n\ntests/test_termui.py:1072: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]\n1 failed in 0.16s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"-m",
|
| 21 |
+
"not stress",
|
| 22 |
+
"tests"
|
| 23 |
+
],
|
| 24 |
+
"exit_code": 0,
|
| 25 |
+
"expected": "zero",
|
| 26 |
+
"output_sha256": "60ecf2eb97ef2842ba13f49d9ae293ca64f0cc8b65ab977db00972435774e207",
|
| 27 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n........................................................................ [ 12%]\n.x...................................................................... [ 16%]\n........................................................................ [ 21%]\n........................................................................ [ 25%]\n........................................................................ [ 29%]\n........................................................................ [ 33%]\n........................................................................ [ 38%]\n........................................................................ [ 42%]\n........................................................................ [ 46%]\n........................................................................ [ 50%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 63%]\n........................................................................ [ 67%]\n........................................................................ [ 71%]\n.................................................sssssssssssssssssssss.. [ 76%]\n..............ss........................................................ [ 80%]\n........................................................................ [ 84%]\n............................................................s........... [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 97%]\n.............................................. [100%]\n1677 passed, 24 skipped, 31000 deselected, 1 xfailed in 3.71s",
|
| 28 |
+
"repeat": 1,
|
| 29 |
+
"state": "parent-regression"
|
| 30 |
+
},
|
| 31 |
+
{
|
| 32 |
+
"command": [
|
| 33 |
+
"pytest",
|
| 34 |
+
"-q",
|
| 35 |
+
"tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"
|
| 36 |
+
],
|
| 37 |
+
"exit_code": 0,
|
| 38 |
+
"expected": "zero",
|
| 39 |
+
"output_sha256": "0db7017d5cbd77907a7c53f6d21e104837cd02bba050eae238a13037fb3148ee",
|
| 40 |
+
"output_tail": ". [100%]\n1 passed in 0.14s",
|
| 41 |
+
"repeat": 1,
|
| 42 |
+
"state": "gold-hidden"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"command": [
|
| 46 |
+
"pytest",
|
| 47 |
+
"-q",
|
| 48 |
+
"-m",
|
| 49 |
+
"not stress",
|
| 50 |
+
"tests"
|
| 51 |
+
],
|
| 52 |
+
"exit_code": 0,
|
| 53 |
+
"expected": "zero",
|
| 54 |
+
"output_sha256": "8a405d07d89623474e34fa8371f9b1161071ed92cc43d184dec3d439eb6722fb",
|
| 55 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n........................................................................ [ 12%]\n.x...................................................................... [ 16%]\n........................................................................ [ 21%]\n........................................................................ [ 25%]\n........................................................................ [ 29%]\n........................................................................ [ 33%]\n........................................................................ [ 38%]\n........................................................................ [ 42%]\n........................................................................ [ 46%]\n........................................................................ [ 50%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 63%]\n........................................................................ [ 67%]\n........................................................................ [ 71%]\n.................................................sssssssssssssssssssss.. [ 76%]\n..............ss........................................................ [ 80%]\n........................................................................ [ 84%]\n............................................................s........... [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 97%]\n.............................................. [100%]\n1677 passed, 24 skipped, 31000 deselected, 1 xfailed in 3.74s",
|
| 56 |
+
"repeat": 1,
|
| 57 |
+
"state": "gold-regression"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"command": [
|
| 61 |
+
"pytest",
|
| 62 |
+
"-q",
|
| 63 |
+
"tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"
|
| 64 |
+
],
|
| 65 |
+
"exit_code": 1,
|
| 66 |
+
"expected": "test-failure",
|
| 67 |
+
"output_sha256": "0adec67afd4a6de8a5b732c05c6e543f6f57c5fb6d6b60fb07a7abd77fcac0d2",
|
| 68 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n________ test_prompt_and_confirm_ansi_respects_color[confirm-no-color] _________\n\nrunner = <click.testing.CliRunner object at 0x7f4a378291c0>\ncall = <function <lambda> at 0x7f4a36e398a0>, user_input = 'y', color = False\nexpect = 'Hello World! [y/N]: y\\n'\n\n @pytest.mark.parametrize(\n (\"call\", \"user_input\", \"color\", \"expect\"),\n [\n pytest.param(\n lambda: click.confirm(click.style(\"Hello World!\", fg=\"green\")),\n \"y\",\n False,\n \"Hello World! [y/N]: y\\n\",\n id=\"confirm-no-color\",\n ),\n pytest.param(\n lambda: click.confirm(click.style(\"Hello World!\", fg=\"green\")),\n \"y\",\n True,\n \"\\x1b[32mHello World!\\x1b[0m [y/N]: y\\n\",\n id=\"confirm-color\",\n ),\n pytest.param(\n lambda: click.prompt(click.style(\"Name\", fg=\"green\")),\n \"Bob\",\n False,\n \"Name: Bob\\n\",\n id=\"prompt-no-color\",\n ),\n pytest.param(\n lambda: click.prompt(click.style(\"Name\", fg=\"green\")),\n \"Bob\",\n True,\n \"\\x1b[32mName\\x1b[0m: Bob\\n\",\n id=\"prompt-color\",\n ),\n ],\n )\n def test_prompt_and_confirm_ansi_respects_color(\n runner, call, user_input, color, expect\n ):\n \"\"\"``confirm`` and ``prompt`` strip ANSI color and style codes from the\n prompt when color is disabled and keep them when it is enabled, like\n ``echo``. The prompt is written by ``input`` rather than ``echo``, so it\n used to keep the codes regardless (issue 3572).\n \"\"\"\n \n @click.command()\n def cli():\n call()\n \n result = runner.invoke(cli, input=user_input, color=color)\n> assert result.output == expect\nE AssertionError: assert '\\x1b[32mHell...0m [y/N]: y\\n' == 'Hello World! [y/N]: y\\n'\nE \nE - Hello World! [y/N]: y\nE + \u001b[32mHello World!\u001b[0m [y/N]: y\nE ? +++++ ++++\n\ntests/test_termui.py:1072: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]\n1 failed in 0.17s",
|
| 69 |
+
"repeat": 2,
|
| 70 |
+
"state": "parent-hidden"
|
| 71 |
+
},
|
| 72 |
+
{
|
| 73 |
+
"command": [
|
| 74 |
+
"pytest",
|
| 75 |
+
"-q",
|
| 76 |
+
"-m",
|
| 77 |
+
"not stress",
|
| 78 |
+
"tests"
|
| 79 |
+
],
|
| 80 |
+
"exit_code": 0,
|
| 81 |
+
"expected": "zero",
|
| 82 |
+
"output_sha256": "8a405d07d89623474e34fa8371f9b1161071ed92cc43d184dec3d439eb6722fb",
|
| 83 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n........................................................................ [ 12%]\n.x...................................................................... [ 16%]\n........................................................................ [ 21%]\n........................................................................ [ 25%]\n........................................................................ [ 29%]\n........................................................................ [ 33%]\n........................................................................ [ 38%]\n........................................................................ [ 42%]\n........................................................................ [ 46%]\n........................................................................ [ 50%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 63%]\n........................................................................ [ 67%]\n........................................................................ [ 71%]\n.................................................sssssssssssssssssssss.. [ 76%]\n..............ss........................................................ [ 80%]\n........................................................................ [ 84%]\n............................................................s........... [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 97%]\n.............................................. [100%]\n1677 passed, 24 skipped, 31000 deselected, 1 xfailed in 3.74s",
|
| 84 |
+
"repeat": 2,
|
| 85 |
+
"state": "parent-regression"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"command": [
|
| 89 |
+
"pytest",
|
| 90 |
+
"-q",
|
| 91 |
+
"tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"
|
| 92 |
+
],
|
| 93 |
+
"exit_code": 0,
|
| 94 |
+
"expected": "zero",
|
| 95 |
+
"output_sha256": "0db7017d5cbd77907a7c53f6d21e104837cd02bba050eae238a13037fb3148ee",
|
| 96 |
+
"output_tail": ". [100%]\n1 passed in 0.14s",
|
| 97 |
+
"repeat": 2,
|
| 98 |
+
"state": "gold-hidden"
|
| 99 |
+
},
|
| 100 |
+
{
|
| 101 |
+
"command": [
|
| 102 |
+
"pytest",
|
| 103 |
+
"-q",
|
| 104 |
+
"-m",
|
| 105 |
+
"not stress",
|
| 106 |
+
"tests"
|
| 107 |
+
],
|
| 108 |
+
"exit_code": 0,
|
| 109 |
+
"expected": "zero",
|
| 110 |
+
"output_sha256": "91d289c2bf3e9b0d4e4b18afac2fd090e1d710b9cd3fb3ceeaba581d8da95d6e",
|
| 111 |
+
"output_tail": "........................................................................ [ 4%]\n........................................................................ [ 8%]\n........................................................................ [ 12%]\n.x...................................................................... [ 16%]\n........................................................................ [ 21%]\n........................................................................ [ 25%]\n........................................................................ [ 29%]\n........................................................................ [ 33%]\n........................................................................ [ 38%]\n........................................................................ [ 42%]\n........................................................................ [ 46%]\n........................................................................ [ 50%]\n........................................................................ [ 54%]\n........................................................................ [ 59%]\n........................................................................ [ 63%]\n........................................................................ [ 67%]\n........................................................................ [ 71%]\n.................................................sssssssssssssssssssss.. [ 76%]\n..............ss........................................................ [ 80%]\n........................................................................ [ 84%]\n............................................................s........... [ 88%]\n........................................................................ [ 93%]\n........................................................................ [ 97%]\n.............................................. [100%]\n1677 passed, 24 skipped, 31000 deselected, 1 xfailed in 3.72s",
|
| 112 |
+
"repeat": 2,
|
| 113 |
+
"state": "gold-regression"
|
| 114 |
+
}
|
| 115 |
+
],
|
| 116 |
+
"fail_to_pass_command": [
|
| 117 |
+
"pytest",
|
| 118 |
+
"-q",
|
| 119 |
+
"tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"
|
| 120 |
+
],
|
| 121 |
+
"fix_sha": "93ba0075f4881b858b61f89a753c7c10e330027e",
|
| 122 |
+
"local_image": "patcheval-validate:click-3572",
|
| 123 |
+
"local_image_id": "sha256:d5311f3e92a76d82843c5640be8d60fc8245882900f2c6518787728a4cdc1abc",
|
| 124 |
+
"parent_sha": "240603f240a9ff179d834fede836060d897c6980",
|
| 125 |
+
"regression_command": [
|
| 126 |
+
"pytest",
|
| 127 |
+
"-q",
|
| 128 |
+
"-m",
|
| 129 |
+
"not stress",
|
| 130 |
+
"tests"
|
| 131 |
+
],
|
| 132 |
+
"repeats": 2,
|
| 133 |
+
"repository": "pallets/click",
|
| 134 |
+
"runner_contract": {
|
| 135 |
+
"home": "/home/node",
|
| 136 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 137 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 138 |
+
"uid": "1000",
|
| 139 |
+
"user": "node"
|
| 140 |
+
},
|
| 141 |
+
"runtime_profile": {
|
| 142 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 143 |
+
"bootstrap_command": [
|
| 144 |
+
"sh",
|
| 145 |
+
"-euxc",
|
| 146 |
+
"apt-get update && apt-get install -y --no-install-recommends less=590-2.1~deb12u2 && rm -rf /var/lib/apt/lists/*"
|
| 147 |
+
],
|
| 148 |
+
"environment": [
|
| 149 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 150 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 151 |
+
"PYTHONHASHSEED=0",
|
| 152 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 153 |
+
"LANG=C.UTF-8",
|
| 154 |
+
"LC_ALL=C.UTF-8",
|
| 155 |
+
"TZ=UTC",
|
| 156 |
+
"PIP_NO_INDEX=1",
|
| 157 |
+
"UV_OFFLINE=1"
|
| 158 |
+
],
|
| 159 |
+
"fail_exit_codes": [
|
| 160 |
+
1
|
| 161 |
+
],
|
| 162 |
+
"regression_command": [
|
| 163 |
+
"pytest",
|
| 164 |
+
"-q",
|
| 165 |
+
"-m",
|
| 166 |
+
"not stress",
|
| 167 |
+
"tests"
|
| 168 |
+
],
|
| 169 |
+
"setup_command": [],
|
| 170 |
+
"sync_command": [
|
| 171 |
+
"/bin/sh",
|
| 172 |
+
"-ec",
|
| 173 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_ATTRS=0.0.0 uv sync --frozen --no-default-groups --group tests --no-install-project"
|
| 174 |
+
],
|
| 175 |
+
"test_command": [
|
| 176 |
+
"pytest",
|
| 177 |
+
"-q"
|
| 178 |
+
],
|
| 179 |
+
"timeout_s": 300
|
| 180 |
+
},
|
| 181 |
+
"schema_version": 1,
|
| 182 |
+
"setup_command": [],
|
| 183 |
+
"task_id": "click-3572",
|
| 184 |
+
"validated": true
|
| 185 |
+
}
|
attestations/json-repair-191.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "67c151469e33dbbc4dce9530eae20f97a58173b167a97e86f632c918fb108575",
|
| 12 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_____________ test_parenthesized_prose_does_not_hijack_fenced_json _____________\n\n def test_parenthesized_prose_does_not_hijack_fenced_json():\n> assert (\n repair_json(\n \"\"\"\n **Decision**: bla, bla (some clarification):\n \n ```json\n {\n \"key\": \"value\"\n }\n ```\n \"\"\"\n )\n == '{\"key\": \"value\"}'\n )\nE assert '[\"some clari...\": \\\\\"value\"]' == '{\"key\": \"value\"}'\nE \nE - {\"key\": \"value\"}\nE + [\"some clarification):\\n\\n ```json\\n {\", \"key\\\": \\\"value\"]\n\ntests/test_json_repair.py:32: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json\n1 failed in 0.05s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"--ignore=tests/test_performance.py"
|
| 21 |
+
],
|
| 22 |
+
"exit_code": 0,
|
| 23 |
+
"expected": "zero",
|
| 24 |
+
"output_sha256": "7599751ef0dd8af52caf65d50dbc55e751878b97ab1a61e675e10c8fde894db4",
|
| 25 |
+
"output_tail": "........................................................................ [ 50%]\n....................................................................... [100%]\n143 passed, 1 skipped in 4.14s",
|
| 26 |
+
"repeat": 1,
|
| 27 |
+
"state": "parent-regression"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"command": [
|
| 31 |
+
"pytest",
|
| 32 |
+
"-q",
|
| 33 |
+
"tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"
|
| 34 |
+
],
|
| 35 |
+
"exit_code": 0,
|
| 36 |
+
"expected": "zero",
|
| 37 |
+
"output_sha256": "ea60679e80486d2dd025dd2b21a200bfb76524c9325eccbaf2a64477ec87e5ec",
|
| 38 |
+
"output_tail": ". [100%]\n1 passed in 0.05s",
|
| 39 |
+
"repeat": 1,
|
| 40 |
+
"state": "gold-hidden"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"command": [
|
| 44 |
+
"pytest",
|
| 45 |
+
"-q",
|
| 46 |
+
"--ignore=tests/test_performance.py"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "cde5720aa68a70520d400d3b468cb32e4c4b99558be1030df34517a966dc75d6",
|
| 51 |
+
"output_tail": "........................................................................ [ 50%]\n....................................................................... [100%]\n143 passed, 1 skipped in 4.07s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-regression"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"pytest",
|
| 58 |
+
"-q",
|
| 59 |
+
"tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"
|
| 60 |
+
],
|
| 61 |
+
"exit_code": 1,
|
| 62 |
+
"expected": "test-failure",
|
| 63 |
+
"output_sha256": "4331efea2a1f9141a25bf39c22422433be1bed6f673c6bf0dd76efb7c674a7c4",
|
| 64 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_____________ test_parenthesized_prose_does_not_hijack_fenced_json _____________\n\n def test_parenthesized_prose_does_not_hijack_fenced_json():\n> assert (\n repair_json(\n \"\"\"\n **Decision**: bla, bla (some clarification):\n \n ```json\n {\n \"key\": \"value\"\n }\n ```\n \"\"\"\n )\n == '{\"key\": \"value\"}'\n )\nE assert '[\"some clari...\": \\\\\"value\"]' == '{\"key\": \"value\"}'\nE \nE - {\"key\": \"value\"}\nE + [\"some clarification):\\n\\n ```json\\n {\", \"key\\\": \\\"value\"]\n\ntests/test_json_repair.py:32: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json\n1 failed in 0.06s",
|
| 65 |
+
"repeat": 2,
|
| 66 |
+
"state": "parent-hidden"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"command": [
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"--ignore=tests/test_performance.py"
|
| 73 |
+
],
|
| 74 |
+
"exit_code": 0,
|
| 75 |
+
"expected": "zero",
|
| 76 |
+
"output_sha256": "a1d4edb68e377a5a090732d02c59943be2e090ec536f3fcb8c6e8e52e0d122c5",
|
| 77 |
+
"output_tail": "........................................................................ [ 50%]\n....................................................................... [100%]\n143 passed, 1 skipped in 4.15s",
|
| 78 |
+
"repeat": 2,
|
| 79 |
+
"state": "parent-regression"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"command": [
|
| 83 |
+
"pytest",
|
| 84 |
+
"-q",
|
| 85 |
+
"tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"
|
| 86 |
+
],
|
| 87 |
+
"exit_code": 0,
|
| 88 |
+
"expected": "zero",
|
| 89 |
+
"output_sha256": "774412243a4dd9109d74cac1e88830db06a136051bbdbb28f78f1755be3ed12a",
|
| 90 |
+
"output_tail": ". [100%]\n1 passed in 0.04s",
|
| 91 |
+
"repeat": 2,
|
| 92 |
+
"state": "gold-hidden"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"command": [
|
| 96 |
+
"pytest",
|
| 97 |
+
"-q",
|
| 98 |
+
"--ignore=tests/test_performance.py"
|
| 99 |
+
],
|
| 100 |
+
"exit_code": 0,
|
| 101 |
+
"expected": "zero",
|
| 102 |
+
"output_sha256": "9487055e4424d25e8ed2ea5dff98af55b9e0ff67b28338ef224f5c6125acadb2",
|
| 103 |
+
"output_tail": "........................................................................ [ 50%]\n....................................................................... [100%]\n143 passed, 1 skipped in 4.11s",
|
| 104 |
+
"repeat": 2,
|
| 105 |
+
"state": "gold-regression"
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"fail_to_pass_command": [
|
| 109 |
+
"pytest",
|
| 110 |
+
"-q",
|
| 111 |
+
"tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"
|
| 112 |
+
],
|
| 113 |
+
"fix_sha": "cd94f1fb39a1479e2e4592727fc7c3e999e73919",
|
| 114 |
+
"local_image": "patcheval-validate:json-repair-191",
|
| 115 |
+
"local_image_id": "sha256:37c078cdd8a2a19f7e513262da2f0a9fb61d46c52551e4b13c4b2c73c1a2d783",
|
| 116 |
+
"parent_sha": "32e654ad979c93612d1af77a7798c03e80486eef",
|
| 117 |
+
"regression_command": [
|
| 118 |
+
"pytest",
|
| 119 |
+
"-q",
|
| 120 |
+
"--ignore=tests/test_performance.py"
|
| 121 |
+
],
|
| 122 |
+
"repeats": 2,
|
| 123 |
+
"repository": "mangiucugna/json_repair",
|
| 124 |
+
"runner_contract": {
|
| 125 |
+
"home": "/home/node",
|
| 126 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 127 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 128 |
+
"uid": "1000",
|
| 129 |
+
"user": "node"
|
| 130 |
+
},
|
| 131 |
+
"runtime_profile": {
|
| 132 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim@sha256:b91a10015a28c46501a39de9dd4899d65aea11f43be5960c1af9ee7fbe0727dc",
|
| 133 |
+
"bootstrap_command": [
|
| 134 |
+
"uv",
|
| 135 |
+
"pip",
|
| 136 |
+
"install",
|
| 137 |
+
"--python",
|
| 138 |
+
"/opt/venv/bin/python",
|
| 139 |
+
"setuptools==80.9.0"
|
| 140 |
+
],
|
| 141 |
+
"environment": [
|
| 142 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 143 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 144 |
+
"UV_CACHE_DIR=/tmp/uv-cache"
|
| 145 |
+
],
|
| 146 |
+
"fail_exit_codes": [
|
| 147 |
+
1
|
| 148 |
+
],
|
| 149 |
+
"regression_command": [
|
| 150 |
+
"pytest",
|
| 151 |
+
"-q"
|
| 152 |
+
],
|
| 153 |
+
"setup_command": [
|
| 154 |
+
"uv",
|
| 155 |
+
"pip",
|
| 156 |
+
"install",
|
| 157 |
+
"--offline",
|
| 158 |
+
"--python",
|
| 159 |
+
"/opt/venv/bin/python",
|
| 160 |
+
"--no-deps",
|
| 161 |
+
"--no-build-isolation",
|
| 162 |
+
"--editable",
|
| 163 |
+
"."
|
| 164 |
+
],
|
| 165 |
+
"sync_command": [
|
| 166 |
+
"uv",
|
| 167 |
+
"sync",
|
| 168 |
+
"--frozen",
|
| 169 |
+
"--all-groups",
|
| 170 |
+
"--no-install-project"
|
| 171 |
+
],
|
| 172 |
+
"test_command": [
|
| 173 |
+
"pytest",
|
| 174 |
+
"-q"
|
| 175 |
+
],
|
| 176 |
+
"timeout_s": 300
|
| 177 |
+
},
|
| 178 |
+
"schema_version": 1,
|
| 179 |
+
"setup_command": [
|
| 180 |
+
"uv",
|
| 181 |
+
"pip",
|
| 182 |
+
"install",
|
| 183 |
+
"--offline",
|
| 184 |
+
"--python",
|
| 185 |
+
"/opt/venv/bin/python",
|
| 186 |
+
"--no-deps",
|
| 187 |
+
"--no-build-isolation",
|
| 188 |
+
"--editable",
|
| 189 |
+
"."
|
| 190 |
+
],
|
| 191 |
+
"task_id": "json-repair-191",
|
| 192 |
+
"validated": true
|
| 193 |
+
}
|
attestations/json-repair-205.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "2cd31113bf44a2616c6a91494602d56feaec4217ca28b8dcfb6be332ff44dd50",
|
| 12 |
+
"output_tail": " \"value\": [{\"name\": \"example\"}]\n }\n\ntests/test_schema_guided_parse.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/json_repair/json_repair.py:204: in repair_json\n parsed_json = parser.parse_with_schema(repairer, schema_obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:108: in parse_with_schema\n return self._parse_top_level(lambda: self.parse_json(schema, \"$\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:113: in _parse_top_level\n json = parse_element()\n ^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:108: in <lambda>\n return self._parse_top_level(lambda: self.parse_json(schema, \"$\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:203: in parse_json\n value = self.parse_object(schema, path) if repairer else self.parse_object()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:42: in parse_object\n return _parse_object(self, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/parse_object.py:438: in parse_object\n value = _parse_object_value(self, schema_repairer, prop_schema, key_path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/parse_object.py:290: in _parse_object_value\n return self.parse_json(prop_schema, key_path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:209: in parse_json\n return self._finalize_parsed_value(value, repairer, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:257: in _finalize_parsed_value\n return repairer.repair_value(value, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/schema_repair.py:262: in repair_value\n return self._repair_union(value, schema[\"anyOf\"], path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/schema_repair.py:290: in _repair_union\n self.validate(candidate, subschema)\nsrc/json_repair/schema_repair.py:171: in validate\n validator.validate(value)\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:449: in validate\n for error in self.iter_errors(*args, **kwargs):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:383: in iter_errors\n for error in errors:\n ^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/_keywords.py:78: in items\n yield from validator.descend(\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:431: in descend\n for error in errors:\n ^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/_keywords.py:275: in ref\n yield from validator._validate_reference(ref=ref, instance=instance)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = Draft202012Validator(schema={'$ref': '#/$defs/Item'}, format_checker=None)\nref = '#/$defs/Item', instance = {'name': 'example'}\n\n def _validate_reference(self, ref, instance):\n if self._ref_resolver is None:\n try:\n resolved = self._resolver.lookup(ref)\n except referencing.exceptions.Unresolvable as err:\n> raise exceptions._WrappedReferencingError(err) from err\nE jsonschema.exceptions._WrappedReferencingError: PointerToNowhere: '/$defs/Item' does not exist within {'type': 'array', 'items': {'$ref': '#/$defs/Item'}}\n\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:464: _WrappedReferencingError\n=========================== short test summary info ============================\nFAILED tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair\n1 failed in 0.27s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"--ignore=tests/test_performance.py"
|
| 21 |
+
],
|
| 22 |
+
"exit_code": 0,
|
| 23 |
+
"expected": "zero",
|
| 24 |
+
"output_sha256": "f48eef489e044beb1c02ad3c6a8b5b294b2d6428c6f3051bf235ee9fd6d86bf2",
|
| 25 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 74%]\n........................................................................ [ 99%]\n. [100%]\n289 passed, 1 skipped in 4.31s",
|
| 26 |
+
"repeat": 1,
|
| 27 |
+
"state": "parent-regression"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"command": [
|
| 31 |
+
"pytest",
|
| 32 |
+
"-q",
|
| 33 |
+
"tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"
|
| 34 |
+
],
|
| 35 |
+
"exit_code": 0,
|
| 36 |
+
"expected": "zero",
|
| 37 |
+
"output_sha256": "019c1f60feeb685244145c4db56f611f8db2961b349fb3184403184794a3c16c",
|
| 38 |
+
"output_tail": ". [100%]\n1 passed in 0.15s",
|
| 39 |
+
"repeat": 1,
|
| 40 |
+
"state": "gold-hidden"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"command": [
|
| 44 |
+
"pytest",
|
| 45 |
+
"-q",
|
| 46 |
+
"--ignore=tests/test_performance.py"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "b4e1401eeea2f381b6716348695069a8ccc7adf682abd068209dcc085b3ba9bb",
|
| 51 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 74%]\n........................................................................ [ 99%]\n. [100%]\n289 passed, 1 skipped in 4.16s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-regression"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"pytest",
|
| 58 |
+
"-q",
|
| 59 |
+
"tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"
|
| 60 |
+
],
|
| 61 |
+
"exit_code": 1,
|
| 62 |
+
"expected": "test-failure",
|
| 63 |
+
"output_sha256": "c7c24425031e826555669216f425f95283e82468a830f7af89080cfa0f5ebb80",
|
| 64 |
+
"output_tail": " \"value\": [{\"name\": \"example\"}]\n }\n\ntests/test_schema_guided_parse.py:124: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \nsrc/json_repair/json_repair.py:204: in repair_json\n parsed_json = parser.parse_with_schema(repairer, schema_obj)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:108: in parse_with_schema\n return self._parse_top_level(lambda: self.parse_json(schema, \"$\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:113: in _parse_top_level\n json = parse_element()\n ^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:108: in <lambda>\n return self._parse_top_level(lambda: self.parse_json(schema, \"$\"))\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:203: in parse_json\n value = self.parse_object(schema, path) if repairer else self.parse_object()\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:42: in parse_object\n return _parse_object(self, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/parse_object.py:438: in parse_object\n value = _parse_object_value(self, schema_repairer, prop_schema, key_path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/parse_object.py:290: in _parse_object_value\n return self.parse_json(prop_schema, key_path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:209: in parse_json\n return self._finalize_parsed_value(value, repairer, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/json_parser.py:257: in _finalize_parsed_value\n return repairer.repair_value(value, schema, path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/schema_repair.py:262: in repair_value\n return self._repair_union(value, schema[\"anyOf\"], path)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nsrc/json_repair/schema_repair.py:290: in _repair_union\n self.validate(candidate, subschema)\nsrc/json_repair/schema_repair.py:171: in validate\n validator.validate(value)\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:449: in validate\n for error in self.iter_errors(*args, **kwargs):\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:383: in iter_errors\n for error in errors:\n ^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/_keywords.py:78: in items\n yield from validator.descend(\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:431: in descend\n for error in errors:\n ^^^^^^\n/opt/venv/lib/python3.13/site-packages/jsonschema/_keywords.py:275: in ref\n yield from validator._validate_reference(ref=ref, instance=instance)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = Draft202012Validator(schema={'$ref': '#/$defs/Item'}, format_checker=None)\nref = '#/$defs/Item', instance = {'name': 'example'}\n\n def _validate_reference(self, ref, instance):\n if self._ref_resolver is None:\n try:\n resolved = self._resolver.lookup(ref)\n except referencing.exceptions.Unresolvable as err:\n> raise exceptions._WrappedReferencingError(err) from err\nE jsonschema.exceptions._WrappedReferencingError: PointerToNowhere: '/$defs/Item' does not exist within {'type': 'array', 'items': {'$ref': '#/$defs/Item'}}\n\n/opt/venv/lib/python3.13/site-packages/jsonschema/validators.py:464: _WrappedReferencingError\n=========================== short test summary info ============================\nFAILED tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair\n1 failed in 0.25s",
|
| 65 |
+
"repeat": 2,
|
| 66 |
+
"state": "parent-hidden"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"command": [
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"--ignore=tests/test_performance.py"
|
| 73 |
+
],
|
| 74 |
+
"exit_code": 0,
|
| 75 |
+
"expected": "zero",
|
| 76 |
+
"output_sha256": "123d2c35babe83145879da127b0509a5670c603f1259dd00e86c2ee9ba60a457",
|
| 77 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 74%]\n........................................................................ [ 99%]\n. [100%]\n289 passed, 1 skipped in 4.17s",
|
| 78 |
+
"repeat": 2,
|
| 79 |
+
"state": "parent-regression"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"command": [
|
| 83 |
+
"pytest",
|
| 84 |
+
"-q",
|
| 85 |
+
"tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"
|
| 86 |
+
],
|
| 87 |
+
"exit_code": 0,
|
| 88 |
+
"expected": "zero",
|
| 89 |
+
"output_sha256": "019c1f60feeb685244145c4db56f611f8db2961b349fb3184403184794a3c16c",
|
| 90 |
+
"output_tail": ". [100%]\n1 passed in 0.15s",
|
| 91 |
+
"repeat": 2,
|
| 92 |
+
"state": "gold-hidden"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"command": [
|
| 96 |
+
"pytest",
|
| 97 |
+
"-q",
|
| 98 |
+
"--ignore=tests/test_performance.py"
|
| 99 |
+
],
|
| 100 |
+
"exit_code": 0,
|
| 101 |
+
"expected": "zero",
|
| 102 |
+
"output_sha256": "d451e61bcc107510ac16fe00a3395ea3ee05b461bbff3607aeea06594e2788ef",
|
| 103 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 74%]\n........................................................................ [ 99%]\n. [100%]\n289 passed, 1 skipped in 4.27s",
|
| 104 |
+
"repeat": 2,
|
| 105 |
+
"state": "gold-regression"
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"fail_to_pass_command": [
|
| 109 |
+
"pytest",
|
| 110 |
+
"-q",
|
| 111 |
+
"tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"
|
| 112 |
+
],
|
| 113 |
+
"fix_sha": "89815cf9c9675a2ff1bd3569f9418fd2be80af35",
|
| 114 |
+
"local_image": "patcheval-validate:json-repair-205",
|
| 115 |
+
"local_image_id": "sha256:ea7c33ccb2ed811ad43bc42e5b8eb7e48477efecd92bc4dd68102c94a9f88e0a",
|
| 116 |
+
"parent_sha": "c6b21d4f2a6513f027b25b5e03e40cf8b6969739",
|
| 117 |
+
"regression_command": [
|
| 118 |
+
"pytest",
|
| 119 |
+
"-q",
|
| 120 |
+
"--ignore=tests/test_performance.py"
|
| 121 |
+
],
|
| 122 |
+
"repeats": 2,
|
| 123 |
+
"repository": "mangiucugna/json_repair",
|
| 124 |
+
"runner_contract": {
|
| 125 |
+
"home": "/home/node",
|
| 126 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 127 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 128 |
+
"uid": "1000",
|
| 129 |
+
"user": "node"
|
| 130 |
+
},
|
| 131 |
+
"runtime_profile": {
|
| 132 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim@sha256:b91a10015a28c46501a39de9dd4899d65aea11f43be5960c1af9ee7fbe0727dc",
|
| 133 |
+
"bootstrap_command": [
|
| 134 |
+
"uv",
|
| 135 |
+
"pip",
|
| 136 |
+
"install",
|
| 137 |
+
"--python",
|
| 138 |
+
"/opt/venv/bin/python",
|
| 139 |
+
"setuptools==80.9.0"
|
| 140 |
+
],
|
| 141 |
+
"environment": [
|
| 142 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 143 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 144 |
+
"UV_CACHE_DIR=/tmp/uv-cache"
|
| 145 |
+
],
|
| 146 |
+
"fail_exit_codes": [
|
| 147 |
+
1
|
| 148 |
+
],
|
| 149 |
+
"regression_command": [
|
| 150 |
+
"pytest",
|
| 151 |
+
"-q"
|
| 152 |
+
],
|
| 153 |
+
"setup_command": [
|
| 154 |
+
"uv",
|
| 155 |
+
"pip",
|
| 156 |
+
"install",
|
| 157 |
+
"--offline",
|
| 158 |
+
"--python",
|
| 159 |
+
"/opt/venv/bin/python",
|
| 160 |
+
"--no-deps",
|
| 161 |
+
"--no-build-isolation",
|
| 162 |
+
"--editable",
|
| 163 |
+
"."
|
| 164 |
+
],
|
| 165 |
+
"sync_command": [
|
| 166 |
+
"uv",
|
| 167 |
+
"sync",
|
| 168 |
+
"--frozen",
|
| 169 |
+
"--all-groups",
|
| 170 |
+
"--no-install-project"
|
| 171 |
+
],
|
| 172 |
+
"test_command": [
|
| 173 |
+
"pytest",
|
| 174 |
+
"-q"
|
| 175 |
+
],
|
| 176 |
+
"timeout_s": 300
|
| 177 |
+
},
|
| 178 |
+
"schema_version": 1,
|
| 179 |
+
"setup_command": [
|
| 180 |
+
"uv",
|
| 181 |
+
"pip",
|
| 182 |
+
"install",
|
| 183 |
+
"--offline",
|
| 184 |
+
"--python",
|
| 185 |
+
"/opt/venv/bin/python",
|
| 186 |
+
"--no-deps",
|
| 187 |
+
"--no-build-isolation",
|
| 188 |
+
"--editable",
|
| 189 |
+
"."
|
| 190 |
+
],
|
| 191 |
+
"task_id": "json-repair-205",
|
| 192 |
+
"validated": true
|
| 193 |
+
}
|
attestations/json-repair-207.json
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"
|
| 8 |
+
],
|
| 9 |
+
"exit_code": 1,
|
| 10 |
+
"expected": "test-failure",
|
| 11 |
+
"output_sha256": "b15a9c11adc534b5a7a88710490264e50a5ab94345be06f17a3650b6df0ccf97",
|
| 12 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n_ test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}-a\\\\\\\\b\\\\\\\\c-{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}] _\n\nraw = '{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}', expected = 'a\\\\\\\\b\\\\\\\\c'\nserialized = '{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}'\n\n @pytest.mark.parametrize(\n (\"raw\", \"expected\", \"serialized\"),\n [\n (r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\",}', r\"a\\\\b\\\\c\", r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\"}'),\n (r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\",}', r\"1\\\\2\\\\3\", r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\"}'),\n ],\n )\n def test_parse_string_preserves_repeated_escaped_backslashes_during_repair(raw, expected, serialized):\n for skip_json_loads in (False, True):\n> assert repair_json(raw, return_objects=True, skip_json_loads=skip_json_loads) == {\"key\": expected}\nE AssertionError: assert {'key': 'a\\\\b\\\\c'} == {'key': 'a\\\\\\\\b\\\\\\\\c'}\nE \nE Differing items:\nE {'key': 'a\\\\b\\\\c'} != {'key': 'a\\\\\\\\b\\\\\\\\c'}\nE Use -v to get more diff\n\ntests/test_parse_string.py:476: AssertionError\n_ test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}-1\\\\\\\\2\\\\\\\\3-{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}] _\n\nraw = '{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}', expected = '1\\\\\\\\2\\\\\\\\3'\nserialized = '{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}'\n\n @pytest.mark.parametrize(\n (\"raw\", \"expected\", \"serialized\"),\n [\n (r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\",}', r\"a\\\\b\\\\c\", r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\"}'),\n (r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\",}', r\"1\\\\2\\\\3\", r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\"}'),\n ],\n )\n def test_parse_string_preserves_repeated_escaped_backslashes_during_repair(raw, expected, serialized):\n for skip_json_loads in (False, True):\n> assert repair_json(raw, return_objects=True, skip_json_loads=skip_json_loads) == {\"key\": expected}\nE AssertionError: assert {'key': '1\\\\2\\\\3'} == {'key': '1\\\\\\\\2\\\\\\\\3'}\nE \nE Differing items:\nE {'key': '1\\\\2\\\\3'} != {'key': '1\\\\\\\\2\\\\\\\\3'}\nE Use -v to get more diff\n\ntests/test_parse_string.py:476: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}-a\\\\\\\\b\\\\\\\\c-{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}]\nFAILED tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}-1\\\\\\\\2\\\\\\\\3-{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}]\n2 failed in 0.13s",
|
| 13 |
+
"repeat": 1,
|
| 14 |
+
"state": "parent-hidden"
|
| 15 |
+
},
|
| 16 |
+
{
|
| 17 |
+
"command": [
|
| 18 |
+
"pytest",
|
| 19 |
+
"-q",
|
| 20 |
+
"--ignore=tests/test_performance.py"
|
| 21 |
+
],
|
| 22 |
+
"exit_code": 0,
|
| 23 |
+
"expected": "zero",
|
| 24 |
+
"output_sha256": "058180272e889287c48d5ba8d65cdf3788a13385ed76bc6aeabc98f4401dc70f",
|
| 25 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 73%]\n........................................................................ [ 98%]\n..... [100%]\n293 passed, 1 skipped in 4.14s",
|
| 26 |
+
"repeat": 1,
|
| 27 |
+
"state": "parent-regression"
|
| 28 |
+
},
|
| 29 |
+
{
|
| 30 |
+
"command": [
|
| 31 |
+
"pytest",
|
| 32 |
+
"-q",
|
| 33 |
+
"tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"
|
| 34 |
+
],
|
| 35 |
+
"exit_code": 0,
|
| 36 |
+
"expected": "zero",
|
| 37 |
+
"output_sha256": "c1f28f9a3a8ffa423cf8036a6fdc9ee998bf0ee50a0c55088c2ab4eaa77b544c",
|
| 38 |
+
"output_tail": ".. [100%]\n2 passed in 0.10s",
|
| 39 |
+
"repeat": 1,
|
| 40 |
+
"state": "gold-hidden"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"command": [
|
| 44 |
+
"pytest",
|
| 45 |
+
"-q",
|
| 46 |
+
"--ignore=tests/test_performance.py"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "058180272e889287c48d5ba8d65cdf3788a13385ed76bc6aeabc98f4401dc70f",
|
| 51 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 73%]\n........................................................................ [ 98%]\n..... [100%]\n293 passed, 1 skipped in 4.14s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-regression"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"pytest",
|
| 58 |
+
"-q",
|
| 59 |
+
"tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"
|
| 60 |
+
],
|
| 61 |
+
"exit_code": 1,
|
| 62 |
+
"expected": "test-failure",
|
| 63 |
+
"output_sha256": "d6bcb048c2928c26fdef6b173061de30fb2217c21a7722673f9e50b610c50238",
|
| 64 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n_ test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}-a\\\\\\\\b\\\\\\\\c-{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}] _\n\nraw = '{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}', expected = 'a\\\\\\\\b\\\\\\\\c'\nserialized = '{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}'\n\n @pytest.mark.parametrize(\n (\"raw\", \"expected\", \"serialized\"),\n [\n (r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\",}', r\"a\\\\b\\\\c\", r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\"}'),\n (r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\",}', r\"1\\\\2\\\\3\", r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\"}'),\n ],\n )\n def test_parse_string_preserves_repeated_escaped_backslashes_during_repair(raw, expected, serialized):\n for skip_json_loads in (False, True):\n> assert repair_json(raw, return_objects=True, skip_json_loads=skip_json_loads) == {\"key\": expected}\nE AssertionError: assert {'key': 'a\\\\b\\\\c'} == {'key': 'a\\\\\\\\b\\\\\\\\c'}\nE \nE Differing items:\nE {'key': 'a\\\\b\\\\c'} != {'key': 'a\\\\\\\\b\\\\\\\\c'}\nE Use -v to get more diff\n\ntests/test_parse_string.py:476: AssertionError\n_ test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}-1\\\\\\\\2\\\\\\\\3-{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}] _\n\nraw = '{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}', expected = '1\\\\\\\\2\\\\\\\\3'\nserialized = '{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}'\n\n @pytest.mark.parametrize(\n (\"raw\", \"expected\", \"serialized\"),\n [\n (r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\",}', r\"a\\\\b\\\\c\", r'{\"key\": \"a\\\\\\\\b\\\\\\\\c\"}'),\n (r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\",}', r\"1\\\\2\\\\3\", r'{\"key\": \"1\\\\\\\\2\\\\\\\\3\"}'),\n ],\n )\n def test_parse_string_preserves_repeated_escaped_backslashes_during_repair(raw, expected, serialized):\n for skip_json_loads in (False, True):\n> assert repair_json(raw, return_objects=True, skip_json_loads=skip_json_loads) == {\"key\": expected}\nE AssertionError: assert {'key': '1\\\\2\\\\3'} == {'key': '1\\\\\\\\2\\\\\\\\3'}\nE \nE Differing items:\nE {'key': '1\\\\2\\\\3'} != {'key': '1\\\\\\\\2\\\\\\\\3'}\nE Use -v to get more diff\n\ntests/test_parse_string.py:476: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\",}-a\\\\\\\\b\\\\\\\\c-{\"key\": \"a\\\\\\\\\\\\\\\\b\\\\\\\\\\\\\\\\c\"}]\nFAILED tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair[{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\",}-1\\\\\\\\2\\\\\\\\3-{\"key\": \"1\\\\\\\\\\\\\\\\2\\\\\\\\\\\\\\\\3\"}]\n2 failed in 0.12s",
|
| 65 |
+
"repeat": 2,
|
| 66 |
+
"state": "parent-hidden"
|
| 67 |
+
},
|
| 68 |
+
{
|
| 69 |
+
"command": [
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"--ignore=tests/test_performance.py"
|
| 73 |
+
],
|
| 74 |
+
"exit_code": 0,
|
| 75 |
+
"expected": "zero",
|
| 76 |
+
"output_sha256": "4f8c0aa028a534b5c891460f51e7a422d1594ab6abb718b436ecbd326e121437",
|
| 77 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 73%]\n........................................................................ [ 98%]\n..... [100%]\n293 passed, 1 skipped in 4.23s",
|
| 78 |
+
"repeat": 2,
|
| 79 |
+
"state": "parent-regression"
|
| 80 |
+
},
|
| 81 |
+
{
|
| 82 |
+
"command": [
|
| 83 |
+
"pytest",
|
| 84 |
+
"-q",
|
| 85 |
+
"tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"
|
| 86 |
+
],
|
| 87 |
+
"exit_code": 0,
|
| 88 |
+
"expected": "zero",
|
| 89 |
+
"output_sha256": "c1f28f9a3a8ffa423cf8036a6fdc9ee998bf0ee50a0c55088c2ab4eaa77b544c",
|
| 90 |
+
"output_tail": ".. [100%]\n2 passed in 0.10s",
|
| 91 |
+
"repeat": 2,
|
| 92 |
+
"state": "gold-hidden"
|
| 93 |
+
},
|
| 94 |
+
{
|
| 95 |
+
"command": [
|
| 96 |
+
"pytest",
|
| 97 |
+
"-q",
|
| 98 |
+
"--ignore=tests/test_performance.py"
|
| 99 |
+
],
|
| 100 |
+
"exit_code": 0,
|
| 101 |
+
"expected": "zero",
|
| 102 |
+
"output_sha256": "32e570261e33de0508ce7071dc97ef3856784276fe6a4d5e66fd9b970d0a07af",
|
| 103 |
+
"output_tail": "........................................................................ [ 24%]\n........................................................................ [ 49%]\n........................................................................ [ 73%]\n........................................................................ [ 98%]\n..... [100%]\n293 passed, 1 skipped in 4.16s",
|
| 104 |
+
"repeat": 2,
|
| 105 |
+
"state": "gold-regression"
|
| 106 |
+
}
|
| 107 |
+
],
|
| 108 |
+
"fail_to_pass_command": [
|
| 109 |
+
"pytest",
|
| 110 |
+
"-q",
|
| 111 |
+
"tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"
|
| 112 |
+
],
|
| 113 |
+
"fix_sha": "600ede6be7d125d14812be3bbd7ef3e0b526a84e",
|
| 114 |
+
"local_image": "patcheval-validate:json-repair-207",
|
| 115 |
+
"local_image_id": "sha256:9af2333d3b408352ad1229ce272de91ee6e2fd9783e8d12d9fabd1e158cf298c",
|
| 116 |
+
"parent_sha": "ae582283b3ad27a4e407af9b1830220d07a16494",
|
| 117 |
+
"regression_command": [
|
| 118 |
+
"pytest",
|
| 119 |
+
"-q",
|
| 120 |
+
"--ignore=tests/test_performance.py"
|
| 121 |
+
],
|
| 122 |
+
"repeats": 2,
|
| 123 |
+
"repository": "mangiucugna/json_repair",
|
| 124 |
+
"runner_contract": {
|
| 125 |
+
"home": "/home/node",
|
| 126 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 127 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 128 |
+
"uid": "1000",
|
| 129 |
+
"user": "node"
|
| 130 |
+
},
|
| 131 |
+
"runtime_profile": {
|
| 132 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.13-bookworm-slim@sha256:b91a10015a28c46501a39de9dd4899d65aea11f43be5960c1af9ee7fbe0727dc",
|
| 133 |
+
"bootstrap_command": [
|
| 134 |
+
"uv",
|
| 135 |
+
"pip",
|
| 136 |
+
"install",
|
| 137 |
+
"--python",
|
| 138 |
+
"/opt/venv/bin/python",
|
| 139 |
+
"setuptools==80.9.0"
|
| 140 |
+
],
|
| 141 |
+
"environment": [
|
| 142 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 143 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 144 |
+
"UV_CACHE_DIR=/tmp/uv-cache"
|
| 145 |
+
],
|
| 146 |
+
"fail_exit_codes": [
|
| 147 |
+
1
|
| 148 |
+
],
|
| 149 |
+
"regression_command": [
|
| 150 |
+
"pytest",
|
| 151 |
+
"-q"
|
| 152 |
+
],
|
| 153 |
+
"setup_command": [
|
| 154 |
+
"uv",
|
| 155 |
+
"pip",
|
| 156 |
+
"install",
|
| 157 |
+
"--offline",
|
| 158 |
+
"--python",
|
| 159 |
+
"/opt/venv/bin/python",
|
| 160 |
+
"--no-deps",
|
| 161 |
+
"--no-build-isolation",
|
| 162 |
+
"--editable",
|
| 163 |
+
"."
|
| 164 |
+
],
|
| 165 |
+
"sync_command": [
|
| 166 |
+
"uv",
|
| 167 |
+
"sync",
|
| 168 |
+
"--frozen",
|
| 169 |
+
"--all-groups",
|
| 170 |
+
"--no-install-project"
|
| 171 |
+
],
|
| 172 |
+
"test_command": [
|
| 173 |
+
"pytest",
|
| 174 |
+
"-q"
|
| 175 |
+
],
|
| 176 |
+
"timeout_s": 300
|
| 177 |
+
},
|
| 178 |
+
"schema_version": 1,
|
| 179 |
+
"setup_command": [
|
| 180 |
+
"uv",
|
| 181 |
+
"pip",
|
| 182 |
+
"install",
|
| 183 |
+
"--offline",
|
| 184 |
+
"--python",
|
| 185 |
+
"/opt/venv/bin/python",
|
| 186 |
+
"--no-deps",
|
| 187 |
+
"--no-build-isolation",
|
| 188 |
+
"--editable",
|
| 189 |
+
"."
|
| 190 |
+
],
|
| 191 |
+
"task_id": "json-repair-207",
|
| 192 |
+
"validated": true
|
| 193 |
+
}
|
attestations/narwhals-3864.json
ADDED
|
@@ -0,0 +1,292 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"--randomly-seed=0",
|
| 10 |
+
"--hypothesis-seed=0",
|
| 11 |
+
"-o",
|
| 12 |
+
"cache_dir=/tmp/pytest-cache",
|
| 13 |
+
"--constructors=pandas,pandas[nullable]",
|
| 14 |
+
"tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"
|
| 15 |
+
],
|
| 16 |
+
"exit_code": 1,
|
| 17 |
+
"expected": "test-failure",
|
| 18 |
+
"output_sha256": "332ad326af6aa540517e190dcd8fb846bd50b2686c9fd5a9c9881b8c9462f4ee",
|
| 19 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ test_concat_horizontal_pandas_left_hand_rule _________________\n\n def test_concat_horizontal_pandas_left_hand_rule() -> None:\n # https://github.com/narwhals-dev/narwhals/issues/3864\n pytest.importorskip(\"pandas\")\n import pandas as pd\n \n df_left = nw.from_native(\n pd.DataFrame({\"a\": [1, 2, 3]}, index=[10, 20, 30]), eager_only=True\n )\n df_right = nw.from_native(\n pd.DataFrame({\"b\": [4, 5, 6]}, index=[0, 1, 2]), eager_only=True\n )\n \n result = nw.concat([df_left, df_right], how=\"horizontal\")\n \n # the index of the left-most argument is preserved, and the other\n # argument is aligned to it positionally, rather than by label.\n> assert result.to_native().index.tolist() == [10, 20, 30]\nE assert [10, 20, 30, 0, 1, 2] == [10, 20, 30]\nE \nE Left contains 3 more items, first extra item: 0\nE Use -v to get more diff\n\ntests/frame/concat_test.py:82: AssertionError\n=========================== short test summary info ============================\nFAILED tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule\n1 failed in 0.10s",
|
| 20 |
+
"repeat": 1,
|
| 21 |
+
"state": "parent-hidden"
|
| 22 |
+
},
|
| 23 |
+
{
|
| 24 |
+
"command": [
|
| 25 |
+
"python",
|
| 26 |
+
"-m",
|
| 27 |
+
"pytest",
|
| 28 |
+
"-q",
|
| 29 |
+
"--randomly-seed=0",
|
| 30 |
+
"--hypothesis-seed=0",
|
| 31 |
+
"-o",
|
| 32 |
+
"cache_dir=/tmp/pytest-cache",
|
| 33 |
+
"--runslow",
|
| 34 |
+
"--constructors=pandas,pandas[nullable]",
|
| 35 |
+
"tests"
|
| 36 |
+
],
|
| 37 |
+
"exit_code": 0,
|
| 38 |
+
"expected": "zero",
|
| 39 |
+
"output_sha256": "aeaf37e0ff7503cdb81efeb3cc37cfd25291e6f20f4e076c8268d00d2f15c8b1",
|
| 40 |
+
"output_tail": "......................... [ 30%]\n..........................................................s......s...... [ 31%]\n..ssss..s......ss..s....................ss..........s.........s.s...s... [ 33%]\n...................................sssss.s.ssss.......................s. [ 34%]\n.s..........xx..................................................s.....ss [ 36%]\n...ss...................................ss.............................. [ 37%]\n........................s.xs....s...sx.....s..........s.........s.s...ss [ 38%]\n.s..s.s.................s..s....s....s................s.....s.....s..... [ 40%]\n..s...xs.s...ss....s.s...ss..ss.s.ss........s..ss.......ss..ss........ss [ 41%]\n.ss..............s.ssss..s...s.s...ss.ss....s..s.s............ssssssssss [ 43%]\nssssssssssssssxxxxxxxx............x..................................... [ 44%]\n..............ss.s.ssssssssss........sss.s....s....s.............s...... [ 46%]\ns.s..s..s.s...sss............x.....x..................s...ss........s.s. [ 47%]\n..........s.......s......s...s.ss...ss.ss.....s.s....s.................. [ 48%]\n........................xx.....xx....................s..ssss............ [ 50%]\n........................................................................ [ 51%]\n................................sss.ss................s................. [ 53%]\n................................ssssssssssss....s..s.................... [ 54%]\n..x......xxx..........................................................s. [ 56%]\n...................................s...................s....ssssssss.... [ 57%]\nss..ss.ssss..s.s....................ssss................................ [ 59%]\n.................................s........ss.s..s.......ssssssss.ssss.ss [ 60%]\nsss.sssssssssss...........s............................................s [ 61%]\n...ss.ssss..sss......s.sss.ss..sss.s.ss...ssssss..s...................s. [ 63%]\ns.sss..sss.ssssssss...s.ssssssssss.sssssss..s.s.ss.ss.ss..sss.s.s.sss... [ 64%]\nss..s.s.sssss................................s..s.s..........s......s..s [ 66%]\n.........s..s.sss..s.ss...............................s.s...ss....s..s.. [ 67%]\n..s.s.sss...ss......s.....s..s.s.ss....s....s.s......sss......s.ss.....s [ 69%]\ns.......s.....s.ss.......s.............................................. [ 70%]\n........................................................................ [ 72%]\n......xxxx.........s.s.................x..xx.x.x..x.xx......x.x.xxxx..x. [ 73%]\nx...x..xx.x..x.x.xx.xx.x...x.....s.....s........s...s..s.......sss.ss... [ 74%]\n..s....sss..sss.s.s......s.............................................. [ 76%]\n...........................ssssssssssssssssssssssss.........s........... [ 77%]\n...........s..................................s.................s....... [ 79%]\n......................................................................s. [ 80%]\n............................................ss..ss...................... [ 82%]\n................s....................................................... [ 83%]\n...........................s...s...................................s.... [ 84%]\n..........s................s....s.............ss.ss.sss.ss.............. [ 86%]\n........................................s............................... [ 87%]\n....................................................s................... [ 89%]\n............s.........s..s.....sss..s..ss.s..ssss....s..ssssss.s.s...... [ 90%]\n......s...........ss.....sx.....xxx.x..x.......x.......x.x.xx...x...x.x. [ 92%]\n.....xxx.x.ss..............................ssssssssssss..x.x.....x...... [ 93%]\n.x.............x......x..x...x.................s...s.....sssssss..s..s.s [ 95%]\ns....s.....s..............sss...................s.....................ss [ 96%]\ns...s...........x.x..xxx.x..x.x...x...xxx.xxxx.....sssssssssssss.s..s... [ 97%]\nsssssss.ssssssssssssss.ssss..........................s.................. [ 99%]\n.......s......s............... [100%]\n4218 passed, 679 skipped, 123 xfailed in 17.65s",
|
| 41 |
+
"repeat": 1,
|
| 42 |
+
"state": "parent-regression"
|
| 43 |
+
},
|
| 44 |
+
{
|
| 45 |
+
"command": [
|
| 46 |
+
"python",
|
| 47 |
+
"-m",
|
| 48 |
+
"pytest",
|
| 49 |
+
"-q",
|
| 50 |
+
"--randomly-seed=0",
|
| 51 |
+
"--hypothesis-seed=0",
|
| 52 |
+
"-o",
|
| 53 |
+
"cache_dir=/tmp/pytest-cache",
|
| 54 |
+
"--constructors=pandas,pandas[nullable]",
|
| 55 |
+
"tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"
|
| 56 |
+
],
|
| 57 |
+
"exit_code": 0,
|
| 58 |
+
"expected": "zero",
|
| 59 |
+
"output_sha256": "8b9044c1bd388710d560ea9f2903a85e49075054ede761c63a9ff029fe8d100d",
|
| 60 |
+
"output_tail": ". [100%]\n1 passed in 0.06s",
|
| 61 |
+
"repeat": 1,
|
| 62 |
+
"state": "gold-hidden"
|
| 63 |
+
},
|
| 64 |
+
{
|
| 65 |
+
"command": [
|
| 66 |
+
"python",
|
| 67 |
+
"-m",
|
| 68 |
+
"pytest",
|
| 69 |
+
"-q",
|
| 70 |
+
"--randomly-seed=0",
|
| 71 |
+
"--hypothesis-seed=0",
|
| 72 |
+
"-o",
|
| 73 |
+
"cache_dir=/tmp/pytest-cache",
|
| 74 |
+
"--runslow",
|
| 75 |
+
"--constructors=pandas,pandas[nullable]",
|
| 76 |
+
"tests"
|
| 77 |
+
],
|
| 78 |
+
"exit_code": 0,
|
| 79 |
+
"expected": "zero",
|
| 80 |
+
"output_sha256": "f77abdf3400829834aa653c4d8f70d868a5d02c12754520bab57c33b5100bdef",
|
| 81 |
+
"output_tail": "......................... [ 30%]\n..........................................................s......s...... [ 31%]\n..ssss..s......ss..s....................ss..........s.........s.s...s... [ 33%]\n...................................sssss.s.ssss.......................s. [ 34%]\n.s..........xx..................................................s.....ss [ 36%]\n...ss...................................ss.............................. [ 37%]\n........................s.xs....s...sx.....s..........s.........s.s...ss [ 38%]\n.s..s.s.................s..s....s....s................s.....s.....s..... [ 40%]\n..s...xs.s...ss....s.s...ss..ss.s.ss........s..ss.......ss..ss........ss [ 41%]\n.ss..............s.ssss..s...s.s...ss.ss....s..s.s............ssssssssss [ 43%]\nssssssssssssssxxxxxxxx............x..................................... [ 44%]\n..............ss.s.ssssssssss........sss.s....s....s.............s...... [ 46%]\ns.s..s..s.s...sss............x.....x..................s...ss........s.s. [ 47%]\n..........s.......s......s...s.ss...ss.ss.....s.s....s.................. [ 48%]\n........................xx.....xx....................s..ssss............ [ 50%]\n........................................................................ [ 51%]\n................................sss.ss................s................. [ 53%]\n................................ssssssssssss....s..s.................... [ 54%]\n..x......xxx..........................................................s. [ 56%]\n...................................s...................s....ssssssss.... [ 57%]\nss..ss.ssss..s.s....................ssss................................ [ 59%]\n.................................s........ss.s..s.......ssssssss.ssss.ss [ 60%]\nsss.sssssssssss...........s............................................s [ 61%]\n...ss.ssss..sss......s.sss.ss..sss.s.ss...ssssss..s...................s. [ 63%]\ns.sss..sss.ssssssss...s.ssssssssss.sssssss..s.s.ss.ss.ss..sss.s.s.sss... [ 64%]\nss..s.s.sssss................................s..s.s..........s......s..s [ 66%]\n.........s..s.sss..s.ss...............................s.s...ss....s..s.. [ 67%]\n..s.s.sss...ss......s.....s..s.s.ss....s....s.s......sss......s.ss.....s [ 69%]\ns.......s.....s.ss.......s.............................................. [ 70%]\n........................................................................ [ 72%]\n......xxxx.........s.s.................x..xx.x.x..x.xx......x.x.xxxx..x. [ 73%]\nx...x..xx.x..x.x.xx.xx.x...x.....s.....s........s...s..s.......sss.ss... [ 74%]\n..s....sss..sss.s.s......s.............................................. [ 76%]\n...........................ssssssssssssssssssssssss.........s........... [ 77%]\n...........s..................................s.................s....... [ 79%]\n......................................................................s. [ 80%]\n............................................ss..ss...................... [ 82%]\n................s....................................................... [ 83%]\n...........................s...s...................................s.... [ 84%]\n..........s................s....s.............ss.ss.sss.ss.............. [ 86%]\n........................................s............................... [ 87%]\n....................................................s................... [ 89%]\n............s.........s..s.....sss..s..ss.s..ssss....s..ssssss.s.s...... [ 90%]\n......s...........ss.....sx.....xxx.x..x.......x.......x.x.xx...x...x.x. [ 92%]\n.....xxx.x.ss..............................ssssssssssss..x.x.....x...... [ 93%]\n.x.............x......x..x...x.................s...s.....sssssss..s..s.s [ 95%]\ns....s.....s..............sss...................s.....................ss [ 96%]\ns...s...........x.x..xxx.x..x.x...x...xxx.xxxx.....sssssssssssss.s..s... [ 97%]\nsssssss.ssssssssssssss.ssss..........................s.................. [ 99%]\n.......s......s............... [100%]\n4218 passed, 679 skipped, 123 xfailed in 17.98s",
|
| 82 |
+
"repeat": 1,
|
| 83 |
+
"state": "gold-regression"
|
| 84 |
+
},
|
| 85 |
+
{
|
| 86 |
+
"command": [
|
| 87 |
+
"python",
|
| 88 |
+
"-m",
|
| 89 |
+
"pytest",
|
| 90 |
+
"-q",
|
| 91 |
+
"--randomly-seed=0",
|
| 92 |
+
"--hypothesis-seed=0",
|
| 93 |
+
"-o",
|
| 94 |
+
"cache_dir=/tmp/pytest-cache",
|
| 95 |
+
"--constructors=pandas,pandas[nullable]",
|
| 96 |
+
"tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"
|
| 97 |
+
],
|
| 98 |
+
"exit_code": 1,
|
| 99 |
+
"expected": "test-failure",
|
| 100 |
+
"output_sha256": "332ad326af6aa540517e190dcd8fb846bd50b2686c9fd5a9c9881b8c9462f4ee",
|
| 101 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ test_concat_horizontal_pandas_left_hand_rule _________________\n\n def test_concat_horizontal_pandas_left_hand_rule() -> None:\n # https://github.com/narwhals-dev/narwhals/issues/3864\n pytest.importorskip(\"pandas\")\n import pandas as pd\n \n df_left = nw.from_native(\n pd.DataFrame({\"a\": [1, 2, 3]}, index=[10, 20, 30]), eager_only=True\n )\n df_right = nw.from_native(\n pd.DataFrame({\"b\": [4, 5, 6]}, index=[0, 1, 2]), eager_only=True\n )\n \n result = nw.concat([df_left, df_right], how=\"horizontal\")\n \n # the index of the left-most argument is preserved, and the other\n # argument is aligned to it positionally, rather than by label.\n> assert result.to_native().index.tolist() == [10, 20, 30]\nE assert [10, 20, 30, 0, 1, 2] == [10, 20, 30]\nE \nE Left contains 3 more items, first extra item: 0\nE Use -v to get more diff\n\ntests/frame/concat_test.py:82: AssertionError\n=========================== short test summary info ============================\nFAILED tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule\n1 failed in 0.10s",
|
| 102 |
+
"repeat": 2,
|
| 103 |
+
"state": "parent-hidden"
|
| 104 |
+
},
|
| 105 |
+
{
|
| 106 |
+
"command": [
|
| 107 |
+
"python",
|
| 108 |
+
"-m",
|
| 109 |
+
"pytest",
|
| 110 |
+
"-q",
|
| 111 |
+
"--randomly-seed=0",
|
| 112 |
+
"--hypothesis-seed=0",
|
| 113 |
+
"-o",
|
| 114 |
+
"cache_dir=/tmp/pytest-cache",
|
| 115 |
+
"--runslow",
|
| 116 |
+
"--constructors=pandas,pandas[nullable]",
|
| 117 |
+
"tests"
|
| 118 |
+
],
|
| 119 |
+
"exit_code": 0,
|
| 120 |
+
"expected": "zero",
|
| 121 |
+
"output_sha256": "c32af4b516bfb803f32c2aa733f76bd9a38f8d459879b3820f927f76cbae75c3",
|
| 122 |
+
"output_tail": "......................... [ 30%]\n..........................................................s......s...... [ 31%]\n..ssss..s......ss..s....................ss..........s.........s.s...s... [ 33%]\n...................................sssss.s.ssss.......................s. [ 34%]\n.s..........xx..................................................s.....ss [ 36%]\n...ss...................................ss.............................. [ 37%]\n........................s.xs....s...sx.....s..........s.........s.s...ss [ 38%]\n.s..s.s.................s..s....s....s................s.....s.....s..... [ 40%]\n..s...xs.s...ss....s.s...ss..ss.s.ss........s..ss.......ss..ss........ss [ 41%]\n.ss..............s.ssss..s...s.s...ss.ss....s..s.s............ssssssssss [ 43%]\nssssssssssssssxxxxxxxx............x..................................... [ 44%]\n..............ss.s.ssssssssss........sss.s....s....s.............s...... [ 46%]\ns.s..s..s.s...sss............x.....x..................s...ss........s.s. [ 47%]\n..........s.......s......s...s.ss...ss.ss.....s.s....s.................. [ 48%]\n........................xx.....xx....................s..ssss............ [ 50%]\n........................................................................ [ 51%]\n................................sss.ss................s................. [ 53%]\n................................ssssssssssss....s..s.................... [ 54%]\n..x......xxx..........................................................s. [ 56%]\n...................................s...................s....ssssssss.... [ 57%]\nss..ss.ssss..s.s....................ssss................................ [ 59%]\n.................................s........ss.s..s.......ssssssss.ssss.ss [ 60%]\nsss.sssssssssss...........s............................................s [ 61%]\n...ss.ssss..sss......s.sss.ss..sss.s.ss...ssssss..s...................s. [ 63%]\ns.sss..sss.ssssssss...s.ssssssssss.sssssss..s.s.ss.ss.ss..sss.s.s.sss... [ 64%]\nss..s.s.sssss................................s..s.s..........s......s..s [ 66%]\n.........s..s.sss..s.ss...............................s.s...ss....s..s.. [ 67%]\n..s.s.sss...ss......s.....s..s.s.ss....s....s.s......sss......s.ss.....s [ 69%]\ns.......s.....s.ss.......s.............................................. [ 70%]\n........................................................................ [ 72%]\n......xxxx.........s.s.................x..xx.x.x..x.xx......x.x.xxxx..x. [ 73%]\nx...x..xx.x..x.x.xx.xx.x...x.....s.....s........s...s..s.......sss.ss... [ 74%]\n..s....sss..sss.s.s......s.............................................. [ 76%]\n...........................ssssssssssssssssssssssss.........s........... [ 77%]\n...........s..................................s.................s....... [ 79%]\n......................................................................s. [ 80%]\n............................................ss..ss...................... [ 82%]\n................s....................................................... [ 83%]\n...........................s...s...................................s.... [ 84%]\n..........s................s....s.............ss.ss.sss.ss.............. [ 86%]\n........................................s............................... [ 87%]\n....................................................s................... [ 89%]\n............s.........s..s.....sss..s..ss.s..ssss....s..ssssss.s.s...... [ 90%]\n......s...........ss.....sx.....xxx.x..x.......x.......x.x.xx...x...x.x. [ 92%]\n.....xxx.x.ss..............................ssssssssssss..x.x.....x...... [ 93%]\n.x.............x......x..x...x.................s...s.....sssssss..s..s.s [ 95%]\ns....s.....s..............sss...................s.....................ss [ 96%]\ns...s...........x.x..xxx.x..x.x...x...xxx.xxxx.....sssssssssssss.s..s... [ 97%]\nsssssss.ssssssssssssss.ssss..........................s.................. [ 99%]\n.......s......s............... [100%]\n4218 passed, 679 skipped, 123 xfailed in 17.94s",
|
| 123 |
+
"repeat": 2,
|
| 124 |
+
"state": "parent-regression"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"command": [
|
| 128 |
+
"python",
|
| 129 |
+
"-m",
|
| 130 |
+
"pytest",
|
| 131 |
+
"-q",
|
| 132 |
+
"--randomly-seed=0",
|
| 133 |
+
"--hypothesis-seed=0",
|
| 134 |
+
"-o",
|
| 135 |
+
"cache_dir=/tmp/pytest-cache",
|
| 136 |
+
"--constructors=pandas,pandas[nullable]",
|
| 137 |
+
"tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"
|
| 138 |
+
],
|
| 139 |
+
"exit_code": 0,
|
| 140 |
+
"expected": "zero",
|
| 141 |
+
"output_sha256": "8b9044c1bd388710d560ea9f2903a85e49075054ede761c63a9ff029fe8d100d",
|
| 142 |
+
"output_tail": ". [100%]\n1 passed in 0.06s",
|
| 143 |
+
"repeat": 2,
|
| 144 |
+
"state": "gold-hidden"
|
| 145 |
+
},
|
| 146 |
+
{
|
| 147 |
+
"command": [
|
| 148 |
+
"python",
|
| 149 |
+
"-m",
|
| 150 |
+
"pytest",
|
| 151 |
+
"-q",
|
| 152 |
+
"--randomly-seed=0",
|
| 153 |
+
"--hypothesis-seed=0",
|
| 154 |
+
"-o",
|
| 155 |
+
"cache_dir=/tmp/pytest-cache",
|
| 156 |
+
"--runslow",
|
| 157 |
+
"--constructors=pandas,pandas[nullable]",
|
| 158 |
+
"tests"
|
| 159 |
+
],
|
| 160 |
+
"exit_code": 0,
|
| 161 |
+
"expected": "zero",
|
| 162 |
+
"output_sha256": "1311d3f760677fbd66afceabff5ce22989282d42d3daa56e6ce12be5a3947ca2",
|
| 163 |
+
"output_tail": "......................... [ 30%]\n..........................................................s......s...... [ 31%]\n..ssss..s......ss..s....................ss..........s.........s.s...s... [ 33%]\n...................................sssss.s.ssss.......................s. [ 34%]\n.s..........xx..................................................s.....ss [ 36%]\n...ss...................................ss.............................. [ 37%]\n........................s.xs....s...sx.....s..........s.........s.s...ss [ 38%]\n.s..s.s.................s..s....s....s................s.....s.....s..... [ 40%]\n..s...xs.s...ss....s.s...ss..ss.s.ss........s..ss.......ss..ss........ss [ 41%]\n.ss..............s.ssss..s...s.s...ss.ss....s..s.s............ssssssssss [ 43%]\nssssssssssssssxxxxxxxx............x..................................... [ 44%]\n..............ss.s.ssssssssss........sss.s....s....s.............s...... [ 46%]\ns.s..s..s.s...sss............x.....x..................s...ss........s.s. [ 47%]\n..........s.......s......s...s.ss...ss.ss.....s.s....s.................. [ 48%]\n........................xx.....xx....................s..ssss............ [ 50%]\n........................................................................ [ 51%]\n................................sss.ss................s................. [ 53%]\n................................ssssssssssss....s..s.................... [ 54%]\n..x......xxx..........................................................s. [ 56%]\n...................................s...................s....ssssssss.... [ 57%]\nss..ss.ssss..s.s....................ssss................................ [ 59%]\n.................................s........ss.s..s.......ssssssss.ssss.ss [ 60%]\nsss.sssssssssss...........s............................................s [ 61%]\n...ss.ssss..sss......s.sss.ss..sss.s.ss...ssssss..s...................s. [ 63%]\ns.sss..sss.ssssssss...s.ssssssssss.sssssss..s.s.ss.ss.ss..sss.s.s.sss... [ 64%]\nss..s.s.sssss................................s..s.s..........s......s..s [ 66%]\n.........s..s.sss..s.ss...............................s.s...ss....s..s.. [ 67%]\n..s.s.sss...ss......s.....s..s.s.ss....s....s.s......sss......s.ss.....s [ 69%]\ns.......s.....s.ss.......s.............................................. [ 70%]\n........................................................................ [ 72%]\n......xxxx.........s.s.................x..xx.x.x..x.xx......x.x.xxxx..x. [ 73%]\nx...x..xx.x..x.x.xx.xx.x...x.....s.....s........s...s..s.......sss.ss... [ 74%]\n..s....sss..sss.s.s......s.............................................. [ 76%]\n...........................ssssssssssssssssssssssss.........s........... [ 77%]\n...........s..................................s.................s....... [ 79%]\n......................................................................s. [ 80%]\n............................................ss..ss...................... [ 82%]\n................s....................................................... [ 83%]\n...........................s...s...................................s.... [ 84%]\n..........s................s....s.............ss.ss.sss.ss.............. [ 86%]\n........................................s............................... [ 87%]\n....................................................s................... [ 89%]\n............s.........s..s.....sss..s..ss.s..ssss....s..ssssss.s.s...... [ 90%]\n......s...........ss.....sx.....xxx.x..x.......x.......x.x.xx...x...x.x. [ 92%]\n.....xxx.x.ss..............................ssssssssssss..x.x.....x...... [ 93%]\n.x.............x......x..x...x.................s...s.....sssssss..s..s.s [ 95%]\ns....s.....s..............sss...................s.....................ss [ 96%]\ns...s...........x.x..xxx.x..x.x...x...xxx.xxxx.....sssssssssssss.s..s... [ 97%]\nsssssss.ssssssssssssss.ssss..........................s.................. [ 99%]\n.......s......s............... [100%]\n4218 passed, 679 skipped, 123 xfailed in 17.51s",
|
| 164 |
+
"repeat": 2,
|
| 165 |
+
"state": "gold-regression"
|
| 166 |
+
}
|
| 167 |
+
],
|
| 168 |
+
"fail_to_pass_command": [
|
| 169 |
+
"python",
|
| 170 |
+
"-m",
|
| 171 |
+
"pytest",
|
| 172 |
+
"-q",
|
| 173 |
+
"--randomly-seed=0",
|
| 174 |
+
"--hypothesis-seed=0",
|
| 175 |
+
"-o",
|
| 176 |
+
"cache_dir=/tmp/pytest-cache",
|
| 177 |
+
"--constructors=pandas,pandas[nullable]",
|
| 178 |
+
"tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"
|
| 179 |
+
],
|
| 180 |
+
"fix_sha": "bc34ee7ffd988f335e174075b6685059eef97280",
|
| 181 |
+
"local_image": "patcheval-validate:narwhals-3864",
|
| 182 |
+
"local_image_id": "sha256:01534111099b82f6647568531df96f2e0540c13f8c7e496450910b7543b26c27",
|
| 183 |
+
"parent_sha": "f5ba0911cc7033eaba05824e4d61fdcddd1fcf3e",
|
| 184 |
+
"regression_command": [
|
| 185 |
+
"python",
|
| 186 |
+
"-m",
|
| 187 |
+
"pytest",
|
| 188 |
+
"-q",
|
| 189 |
+
"--randomly-seed=0",
|
| 190 |
+
"--hypothesis-seed=0",
|
| 191 |
+
"-o",
|
| 192 |
+
"cache_dir=/tmp/pytest-cache",
|
| 193 |
+
"--runslow",
|
| 194 |
+
"--constructors=pandas,pandas[nullable]",
|
| 195 |
+
"tests"
|
| 196 |
+
],
|
| 197 |
+
"repeats": 2,
|
| 198 |
+
"repository": "narwhals-dev/narwhals",
|
| 199 |
+
"runner_contract": {
|
| 200 |
+
"home": "/home/node",
|
| 201 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.47.3\nripgrep 14.1.1",
|
| 202 |
+
"smoke_output_sha256": "1f9f54eb0528523e3fe1a96cfad2629677cab32bb4348a4eaa6992145e8608fc",
|
| 203 |
+
"uid": "1000",
|
| 204 |
+
"user": "node"
|
| 205 |
+
},
|
| 206 |
+
"runtime_profile": {
|
| 207 |
+
"base_image": "ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim@sha256:dfe4069fefc02ee4d6097c26f31d0784df09c9b6242fb4a25ad31fbae74ec6aa",
|
| 208 |
+
"bootstrap_command": [
|
| 209 |
+
"uv",
|
| 210 |
+
"pip",
|
| 211 |
+
"install",
|
| 212 |
+
"--python",
|
| 213 |
+
"/opt/venv/bin/python",
|
| 214 |
+
"--only-binary",
|
| 215 |
+
":all:",
|
| 216 |
+
"uv_build==0.11.0"
|
| 217 |
+
],
|
| 218 |
+
"environment": [
|
| 219 |
+
"HOME=/home/node",
|
| 220 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 221 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 222 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 223 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 224 |
+
"PYTHONUNBUFFERED=1",
|
| 225 |
+
"PYTHONHASHSEED=0",
|
| 226 |
+
"PIP_NO_INDEX=1",
|
| 227 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 228 |
+
"UV_OFFLINE=1",
|
| 229 |
+
"NARWHALS_DEFAULT_CONSTRUCTORS=pandas,pandas[nullable]",
|
| 230 |
+
"MODIN_ENGINE=python",
|
| 231 |
+
"PYARROW_IGNORE_TIMEZONE=1",
|
| 232 |
+
"TZ=UTC",
|
| 233 |
+
"LANG=C.UTF-8",
|
| 234 |
+
"LC_ALL=C.UTF-8",
|
| 235 |
+
"TERM=dumb",
|
| 236 |
+
"NO_COLOR=1",
|
| 237 |
+
"PYTHON_COLORS=0"
|
| 238 |
+
],
|
| 239 |
+
"fail_exit_codes": [
|
| 240 |
+
1
|
| 241 |
+
],
|
| 242 |
+
"regression_command": [
|
| 243 |
+
"python",
|
| 244 |
+
"-m",
|
| 245 |
+
"pytest",
|
| 246 |
+
"-q",
|
| 247 |
+
"--randomly-seed=0",
|
| 248 |
+
"--hypothesis-seed=0",
|
| 249 |
+
"-o",
|
| 250 |
+
"cache_dir=/tmp/pytest-cache",
|
| 251 |
+
"--runslow",
|
| 252 |
+
"--constructors=pandas,pandas[nullable]",
|
| 253 |
+
"tests"
|
| 254 |
+
],
|
| 255 |
+
"setup_command": [
|
| 256 |
+
"/bin/sh",
|
| 257 |
+
"-ec",
|
| 258 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 259 |
+
],
|
| 260 |
+
"sync_command": [
|
| 261 |
+
"uv",
|
| 262 |
+
"sync",
|
| 263 |
+
"--frozen",
|
| 264 |
+
"--no-default-groups",
|
| 265 |
+
"--group",
|
| 266 |
+
"tests",
|
| 267 |
+
"--extra",
|
| 268 |
+
"pandas",
|
| 269 |
+
"--no-install-project"
|
| 270 |
+
],
|
| 271 |
+
"test_command": [
|
| 272 |
+
"python",
|
| 273 |
+
"-m",
|
| 274 |
+
"pytest",
|
| 275 |
+
"-q",
|
| 276 |
+
"--randomly-seed=0",
|
| 277 |
+
"--hypothesis-seed=0",
|
| 278 |
+
"-o",
|
| 279 |
+
"cache_dir=/tmp/pytest-cache",
|
| 280 |
+
"--constructors=pandas,pandas[nullable]"
|
| 281 |
+
],
|
| 282 |
+
"timeout_s": 1800
|
| 283 |
+
},
|
| 284 |
+
"schema_version": 1,
|
| 285 |
+
"setup_command": [
|
| 286 |
+
"/bin/sh",
|
| 287 |
+
"-ec",
|
| 288 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 289 |
+
],
|
| 290 |
+
"task_id": "narwhals-3864",
|
| 291 |
+
"validated": true
|
| 292 |
+
}
|
attestations/pygments-2816.json
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-W",
|
| 10 |
+
"error",
|
| 11 |
+
"--cache-clear",
|
| 12 |
+
"--randomly-seed=0",
|
| 13 |
+
"-o",
|
| 14 |
+
"cache_dir=/tmp/pytest-cache",
|
| 15 |
+
"tests/snippets/jsx/test_apostrophe_text.txt"
|
| 16 |
+
],
|
| 17 |
+
"exit_code": 1,
|
| 18 |
+
"expected": "test-failure",
|
| 19 |
+
"output_sha256": "4e805939c8e9de365f5e417610f283025ba813b946d931a8cbc2af24d674537b",
|
| 20 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ tests/snippets/jsx/test_apostrophe_text.txt __________________\nThe tokens produced by the \"jsx\" lexer differ from the expected ones in the file \"tests/snippets/jsx/test_apostrophe_text.txt\".\nRun `tox -- tests/snippets --update-goldens` to update it.\n\n \n Skipping 414 identical leading characters in diff, use -v to show\n - Text\n + Error\n 'm' Name.Other\n ' ' Text.Whitespace\n 'the' Name.Other...\n \n ...Full output truncated (12 lines hidden), use '-vv' to show\n=========================== short test summary info ============================\nFAILED tests/snippets/jsx/test_apostrophe_text.txt::\n1 failed in 0.06s",
|
| 21 |
+
"repeat": 1,
|
| 22 |
+
"state": "parent-hidden"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"command": [
|
| 26 |
+
"python",
|
| 27 |
+
"-m",
|
| 28 |
+
"pytest",
|
| 29 |
+
"-q",
|
| 30 |
+
"-W",
|
| 31 |
+
"error",
|
| 32 |
+
"--cache-clear",
|
| 33 |
+
"--randomly-seed=0",
|
| 34 |
+
"-o",
|
| 35 |
+
"cache_dir=/tmp/pytest-cache",
|
| 36 |
+
"tests"
|
| 37 |
+
],
|
| 38 |
+
"exit_code": 0,
|
| 39 |
+
"expected": "zero",
|
| 40 |
+
"output_sha256": "588dec626a61a0229b017c38083640dabf288c5fe75aa06113e6175633a238f8",
|
| 41 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n............................................s........................... [ 59%]\n.........................................s.............................s [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n......................................................................s. [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.........................s.............................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...................................................s.................... [ 91%]\n.............................................s.......s.................. [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 95%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n...................................................................... [100%]\n5310 passed, 16 skipped in 15.85s",
|
| 42 |
+
"repeat": 1,
|
| 43 |
+
"state": "parent-regression"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"command": [
|
| 47 |
+
"python",
|
| 48 |
+
"-m",
|
| 49 |
+
"pytest",
|
| 50 |
+
"-q",
|
| 51 |
+
"-W",
|
| 52 |
+
"error",
|
| 53 |
+
"--cache-clear",
|
| 54 |
+
"--randomly-seed=0",
|
| 55 |
+
"-o",
|
| 56 |
+
"cache_dir=/tmp/pytest-cache",
|
| 57 |
+
"tests/snippets/jsx/test_apostrophe_text.txt"
|
| 58 |
+
],
|
| 59 |
+
"exit_code": 0,
|
| 60 |
+
"expected": "zero",
|
| 61 |
+
"output_sha256": "8b9044c1bd388710d560ea9f2903a85e49075054ede761c63a9ff029fe8d100d",
|
| 62 |
+
"output_tail": ". [100%]\n1 passed in 0.06s",
|
| 63 |
+
"repeat": 1,
|
| 64 |
+
"state": "gold-hidden"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"command": [
|
| 68 |
+
"python",
|
| 69 |
+
"-m",
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"-W",
|
| 73 |
+
"error",
|
| 74 |
+
"--cache-clear",
|
| 75 |
+
"--randomly-seed=0",
|
| 76 |
+
"-o",
|
| 77 |
+
"cache_dir=/tmp/pytest-cache",
|
| 78 |
+
"tests"
|
| 79 |
+
],
|
| 80 |
+
"exit_code": 0,
|
| 81 |
+
"expected": "zero",
|
| 82 |
+
"output_sha256": "6aea6c537f3d876a38b4c314a3f20ef359f0232a5c5c769b36ed501816b308a3",
|
| 83 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n............................................s........................... [ 59%]\n.........................................s.............................s [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n......................................................................s. [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.........................s.............................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...................................................s.................... [ 91%]\n.............................................s.......s.................. [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 95%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n...................................................................... [100%]\n5310 passed, 16 skipped in 15.67s",
|
| 84 |
+
"repeat": 1,
|
| 85 |
+
"state": "gold-regression"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"command": [
|
| 89 |
+
"python",
|
| 90 |
+
"-m",
|
| 91 |
+
"pytest",
|
| 92 |
+
"-q",
|
| 93 |
+
"-W",
|
| 94 |
+
"error",
|
| 95 |
+
"--cache-clear",
|
| 96 |
+
"--randomly-seed=0",
|
| 97 |
+
"-o",
|
| 98 |
+
"cache_dir=/tmp/pytest-cache",
|
| 99 |
+
"tests/snippets/jsx/test_apostrophe_text.txt"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 1,
|
| 102 |
+
"expected": "test-failure",
|
| 103 |
+
"output_sha256": "880b7028e99a19813ab280af415f8f0799ca103f46efd3c43611ad9917b269d0",
|
| 104 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ tests/snippets/jsx/test_apostrophe_text.txt __________________\nThe tokens produced by the \"jsx\" lexer differ from the expected ones in the file \"tests/snippets/jsx/test_apostrophe_text.txt\".\nRun `tox -- tests/snippets --update-goldens` to update it.\n\n \n Skipping 414 identical leading characters in diff, use -v to show\n - Text\n + Error\n 'm' Name.Other\n ' ' Text.Whitespace\n 'the' Name.Other...\n \n ...Full output truncated (12 lines hidden), use '-vv' to show\n=========================== short test summary info ============================\nFAILED tests/snippets/jsx/test_apostrophe_text.txt::\n1 failed in 0.07s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "parent-hidden"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"-W",
|
| 115 |
+
"error",
|
| 116 |
+
"--cache-clear",
|
| 117 |
+
"--randomly-seed=0",
|
| 118 |
+
"-o",
|
| 119 |
+
"cache_dir=/tmp/pytest-cache",
|
| 120 |
+
"tests"
|
| 121 |
+
],
|
| 122 |
+
"exit_code": 0,
|
| 123 |
+
"expected": "zero",
|
| 124 |
+
"output_sha256": "c6c88b9763398739b59f7a256c098fb55998462c9efe1ab30420a5a58b70684a",
|
| 125 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n............................................s........................... [ 59%]\n.........................................s.............................s [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n......................................................................s. [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.........................s.............................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...................................................s.................... [ 91%]\n.............................................s.......s.................. [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 95%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n...................................................................... [100%]\n5310 passed, 16 skipped in 15.76s",
|
| 126 |
+
"repeat": 2,
|
| 127 |
+
"state": "parent-regression"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"command": [
|
| 131 |
+
"python",
|
| 132 |
+
"-m",
|
| 133 |
+
"pytest",
|
| 134 |
+
"-q",
|
| 135 |
+
"-W",
|
| 136 |
+
"error",
|
| 137 |
+
"--cache-clear",
|
| 138 |
+
"--randomly-seed=0",
|
| 139 |
+
"-o",
|
| 140 |
+
"cache_dir=/tmp/pytest-cache",
|
| 141 |
+
"tests/snippets/jsx/test_apostrophe_text.txt"
|
| 142 |
+
],
|
| 143 |
+
"exit_code": 0,
|
| 144 |
+
"expected": "zero",
|
| 145 |
+
"output_sha256": "2a37651d36018936382bd94a8e3f17608135f2c9feef4137a2bb38c6ee82c899",
|
| 146 |
+
"output_tail": ". [100%]\n1 passed in 0.07s",
|
| 147 |
+
"repeat": 2,
|
| 148 |
+
"state": "gold-hidden"
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"command": [
|
| 152 |
+
"python",
|
| 153 |
+
"-m",
|
| 154 |
+
"pytest",
|
| 155 |
+
"-q",
|
| 156 |
+
"-W",
|
| 157 |
+
"error",
|
| 158 |
+
"--cache-clear",
|
| 159 |
+
"--randomly-seed=0",
|
| 160 |
+
"-o",
|
| 161 |
+
"cache_dir=/tmp/pytest-cache",
|
| 162 |
+
"tests"
|
| 163 |
+
],
|
| 164 |
+
"exit_code": 0,
|
| 165 |
+
"expected": "zero",
|
| 166 |
+
"output_sha256": "8b72142dc5a3c6747b1b713032d38af5a0a96181611e1fc2cc90fdafbe12ed74",
|
| 167 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n............................................s........................... [ 59%]\n.........................................s.............................s [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n......................................................................s. [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.........................s.............................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...................................................s.................... [ 91%]\n.............................................s.......s.................. [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 95%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n...................................................................... [100%]\n5310 passed, 16 skipped in 15.68s",
|
| 168 |
+
"repeat": 2,
|
| 169 |
+
"state": "gold-regression"
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"fail_to_pass_command": [
|
| 173 |
+
"python",
|
| 174 |
+
"-m",
|
| 175 |
+
"pytest",
|
| 176 |
+
"-q",
|
| 177 |
+
"-W",
|
| 178 |
+
"error",
|
| 179 |
+
"--cache-clear",
|
| 180 |
+
"--randomly-seed=0",
|
| 181 |
+
"-o",
|
| 182 |
+
"cache_dir=/tmp/pytest-cache",
|
| 183 |
+
"tests/snippets/jsx/test_apostrophe_text.txt"
|
| 184 |
+
],
|
| 185 |
+
"fix_sha": "5b57beacc2115ff748fdfb7d596faa4f055c51b5",
|
| 186 |
+
"local_image": "patcheval-validate:pygments-2816",
|
| 187 |
+
"local_image_id": "sha256:92f8b48aaa90917ea48508fecff4e683ae55e0a19bf902b5fa70dc1286bd769b",
|
| 188 |
+
"parent_sha": "57c372782935233c45b00c32cc9d40e6cc0a2949",
|
| 189 |
+
"regression_command": [
|
| 190 |
+
"python",
|
| 191 |
+
"-m",
|
| 192 |
+
"pytest",
|
| 193 |
+
"-q",
|
| 194 |
+
"-W",
|
| 195 |
+
"error",
|
| 196 |
+
"--cache-clear",
|
| 197 |
+
"--randomly-seed=0",
|
| 198 |
+
"-o",
|
| 199 |
+
"cache_dir=/tmp/pytest-cache",
|
| 200 |
+
"tests"
|
| 201 |
+
],
|
| 202 |
+
"repeats": 2,
|
| 203 |
+
"repository": "pygments/pygments",
|
| 204 |
+
"runner_contract": {
|
| 205 |
+
"home": "/home/node",
|
| 206 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 207 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 208 |
+
"uid": "1000",
|
| 209 |
+
"user": "node"
|
| 210 |
+
},
|
| 211 |
+
"runtime_profile": {
|
| 212 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm@sha256:6fb6f383deefbf9de105ce6d7a59fce0f8fa65c7afdf5a1222eafae14f81a27b",
|
| 213 |
+
"bootstrap_command": [
|
| 214 |
+
"/bin/sh",
|
| 215 |
+
"-ec",
|
| 216 |
+
"uv pip install --python /opt/venv/bin/python --only-binary=:all: 'hatchling==1.27.0' 'editables==0.5' && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: 'pytest==8.4.2' 'pytest-randomly==4.0.1' 'iniconfig==2.1.0' && uv pip install --python /opt/venv/bin/python --no-deps 'wcag-contrast-ratio==0.9' && uv pip freeze --python /opt/venv/bin/python > /opt/patcheval-requirements.txt"
|
| 217 |
+
],
|
| 218 |
+
"environment": [
|
| 219 |
+
"HOME=/home/node",
|
| 220 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 221 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 222 |
+
"UV_OFFLINE=1",
|
| 223 |
+
"PIP_NO_INDEX=1",
|
| 224 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 225 |
+
"PYTHONPATH=/workspace/repo",
|
| 226 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 227 |
+
"PYTHONUNBUFFERED=1",
|
| 228 |
+
"PYTHONHASHSEED=0",
|
| 229 |
+
"PYTHON_COLORS=0",
|
| 230 |
+
"NO_COLOR=1",
|
| 231 |
+
"TERM=dumb",
|
| 232 |
+
"COLUMNS=80",
|
| 233 |
+
"LANG=C.UTF-8",
|
| 234 |
+
"LC_ALL=C.UTF-8",
|
| 235 |
+
"TZ=UTC"
|
| 236 |
+
],
|
| 237 |
+
"fail_exit_codes": [
|
| 238 |
+
1
|
| 239 |
+
],
|
| 240 |
+
"regression_command": [
|
| 241 |
+
"python",
|
| 242 |
+
"-m",
|
| 243 |
+
"pytest",
|
| 244 |
+
"-q",
|
| 245 |
+
"-W",
|
| 246 |
+
"error",
|
| 247 |
+
"--cache-clear",
|
| 248 |
+
"--randomly-seed=0",
|
| 249 |
+
"-o",
|
| 250 |
+
"cache_dir=/tmp/pytest-cache",
|
| 251 |
+
"tests"
|
| 252 |
+
],
|
| 253 |
+
"setup_command": [
|
| 254 |
+
"/bin/sh",
|
| 255 |
+
"-ec",
|
| 256 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"
|
| 257 |
+
],
|
| 258 |
+
"sync_command": [
|
| 259 |
+
"uv",
|
| 260 |
+
"venv",
|
| 261 |
+
"--python",
|
| 262 |
+
"/usr/local/bin/python",
|
| 263 |
+
"/opt/venv"
|
| 264 |
+
],
|
| 265 |
+
"test_command": [
|
| 266 |
+
"python",
|
| 267 |
+
"-m",
|
| 268 |
+
"pytest",
|
| 269 |
+
"-q",
|
| 270 |
+
"-W",
|
| 271 |
+
"error",
|
| 272 |
+
"--cache-clear",
|
| 273 |
+
"--randomly-seed=0",
|
| 274 |
+
"-o",
|
| 275 |
+
"cache_dir=/tmp/pytest-cache"
|
| 276 |
+
],
|
| 277 |
+
"timeout_s": 900
|
| 278 |
+
},
|
| 279 |
+
"schema_version": 1,
|
| 280 |
+
"setup_command": [
|
| 281 |
+
"/bin/sh",
|
| 282 |
+
"-ec",
|
| 283 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"
|
| 284 |
+
],
|
| 285 |
+
"task_id": "pygments-2816",
|
| 286 |
+
"validated": true
|
| 287 |
+
}
|
attestations/pygments-2828.json
ADDED
|
@@ -0,0 +1,287 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-W",
|
| 10 |
+
"error",
|
| 11 |
+
"--cache-clear",
|
| 12 |
+
"--randomly-seed=0",
|
| 13 |
+
"-o",
|
| 14 |
+
"cache_dir=/tmp/pytest-cache",
|
| 15 |
+
"tests/snippets/jsonnet/test_array_slice.txt"
|
| 16 |
+
],
|
| 17 |
+
"exit_code": 1,
|
| 18 |
+
"expected": "test-failure",
|
| 19 |
+
"output_sha256": "429b206650869850f8fcdd4d6ca02aeb27deab6e05c15cc341dc314ec81da163",
|
| 20 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ tests/snippets/jsonnet/test_array_slice.txt __________________\nThe tokens produced by the \"jsonnet\" lexer differ from the expected ones in the file \"tests/snippets/jsonnet/test_array_slice.txt\".\nRun `tox -- tests/snippets --update-goldens` to update it.\n\n \n Skipping 1378 identical leading characters in diff, use -v to show\n - Operator\n ? ^^^ ^^\n + Error\n ? ^ ^\n - ':' Operator...\n \n ...Full output truncated (10 lines hidden), use '-vv' to show\n=========================== short test summary info ============================\nFAILED tests/snippets/jsonnet/test_array_slice.txt::\n1 failed in 0.05s",
|
| 21 |
+
"repeat": 1,
|
| 22 |
+
"state": "parent-hidden"
|
| 23 |
+
},
|
| 24 |
+
{
|
| 25 |
+
"command": [
|
| 26 |
+
"python",
|
| 27 |
+
"-m",
|
| 28 |
+
"pytest",
|
| 29 |
+
"-q",
|
| 30 |
+
"-W",
|
| 31 |
+
"error",
|
| 32 |
+
"--cache-clear",
|
| 33 |
+
"--randomly-seed=0",
|
| 34 |
+
"-o",
|
| 35 |
+
"cache_dir=/tmp/pytest-cache",
|
| 36 |
+
"tests"
|
| 37 |
+
],
|
| 38 |
+
"exit_code": 0,
|
| 39 |
+
"expected": "zero",
|
| 40 |
+
"output_sha256": "9e706827ceac6c38980f5faee3e107494588ce9e08e09fa87a239014445be3e1",
|
| 41 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n........................................s............................... [ 59%]\n.....................................s.............................s.... [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n..................................................................s..... [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.....................s.................................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...............................................s........................ [ 91%]\n.........................................s.......s...................... [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 96%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n.................................................................. [100%]\n5306 passed, 16 skipped in 15.83s",
|
| 42 |
+
"repeat": 1,
|
| 43 |
+
"state": "parent-regression"
|
| 44 |
+
},
|
| 45 |
+
{
|
| 46 |
+
"command": [
|
| 47 |
+
"python",
|
| 48 |
+
"-m",
|
| 49 |
+
"pytest",
|
| 50 |
+
"-q",
|
| 51 |
+
"-W",
|
| 52 |
+
"error",
|
| 53 |
+
"--cache-clear",
|
| 54 |
+
"--randomly-seed=0",
|
| 55 |
+
"-o",
|
| 56 |
+
"cache_dir=/tmp/pytest-cache",
|
| 57 |
+
"tests/snippets/jsonnet/test_array_slice.txt"
|
| 58 |
+
],
|
| 59 |
+
"exit_code": 0,
|
| 60 |
+
"expected": "zero",
|
| 61 |
+
"output_sha256": "ea60679e80486d2dd025dd2b21a200bfb76524c9325eccbaf2a64477ec87e5ec",
|
| 62 |
+
"output_tail": ". [100%]\n1 passed in 0.05s",
|
| 63 |
+
"repeat": 1,
|
| 64 |
+
"state": "gold-hidden"
|
| 65 |
+
},
|
| 66 |
+
{
|
| 67 |
+
"command": [
|
| 68 |
+
"python",
|
| 69 |
+
"-m",
|
| 70 |
+
"pytest",
|
| 71 |
+
"-q",
|
| 72 |
+
"-W",
|
| 73 |
+
"error",
|
| 74 |
+
"--cache-clear",
|
| 75 |
+
"--randomly-seed=0",
|
| 76 |
+
"-o",
|
| 77 |
+
"cache_dir=/tmp/pytest-cache",
|
| 78 |
+
"tests"
|
| 79 |
+
],
|
| 80 |
+
"exit_code": 0,
|
| 81 |
+
"expected": "zero",
|
| 82 |
+
"output_sha256": "deeb14d0c7d9e6295df34d68d95ebbd2dc2028a4dca173cb4bdbed6415402162",
|
| 83 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n........................................s............................... [ 59%]\n.....................................s.............................s.... [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n..................................................................s..... [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.....................s.................................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...............................................s........................ [ 91%]\n.........................................s.......s...................... [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 96%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n.................................................................. [100%]\n5306 passed, 16 skipped in 15.75s",
|
| 84 |
+
"repeat": 1,
|
| 85 |
+
"state": "gold-regression"
|
| 86 |
+
},
|
| 87 |
+
{
|
| 88 |
+
"command": [
|
| 89 |
+
"python",
|
| 90 |
+
"-m",
|
| 91 |
+
"pytest",
|
| 92 |
+
"-q",
|
| 93 |
+
"-W",
|
| 94 |
+
"error",
|
| 95 |
+
"--cache-clear",
|
| 96 |
+
"--randomly-seed=0",
|
| 97 |
+
"-o",
|
| 98 |
+
"cache_dir=/tmp/pytest-cache",
|
| 99 |
+
"tests/snippets/jsonnet/test_array_slice.txt"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 1,
|
| 102 |
+
"expected": "test-failure",
|
| 103 |
+
"output_sha256": "429b206650869850f8fcdd4d6ca02aeb27deab6e05c15cc341dc314ec81da163",
|
| 104 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ tests/snippets/jsonnet/test_array_slice.txt __________________\nThe tokens produced by the \"jsonnet\" lexer differ from the expected ones in the file \"tests/snippets/jsonnet/test_array_slice.txt\".\nRun `tox -- tests/snippets --update-goldens` to update it.\n\n \n Skipping 1378 identical leading characters in diff, use -v to show\n - Operator\n ? ^^^ ^^\n + Error\n ? ^ ^\n - ':' Operator...\n \n ...Full output truncated (10 lines hidden), use '-vv' to show\n=========================== short test summary info ============================\nFAILED tests/snippets/jsonnet/test_array_slice.txt::\n1 failed in 0.05s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "parent-hidden"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"-W",
|
| 115 |
+
"error",
|
| 116 |
+
"--cache-clear",
|
| 117 |
+
"--randomly-seed=0",
|
| 118 |
+
"-o",
|
| 119 |
+
"cache_dir=/tmp/pytest-cache",
|
| 120 |
+
"tests"
|
| 121 |
+
],
|
| 122 |
+
"exit_code": 0,
|
| 123 |
+
"expected": "zero",
|
| 124 |
+
"output_sha256": "aab97c6ad6bae62c9dd78296c2110190fb964908f83a584c98fecfed104ad938",
|
| 125 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n........................................s............................... [ 59%]\n.....................................s.............................s.... [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n..................................................................s..... [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.....................s.................................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...............................................s........................ [ 91%]\n.........................................s.......s...................... [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 96%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n.................................................................. [100%]\n5306 passed, 16 skipped in 15.90s",
|
| 126 |
+
"repeat": 2,
|
| 127 |
+
"state": "parent-regression"
|
| 128 |
+
},
|
| 129 |
+
{
|
| 130 |
+
"command": [
|
| 131 |
+
"python",
|
| 132 |
+
"-m",
|
| 133 |
+
"pytest",
|
| 134 |
+
"-q",
|
| 135 |
+
"-W",
|
| 136 |
+
"error",
|
| 137 |
+
"--cache-clear",
|
| 138 |
+
"--randomly-seed=0",
|
| 139 |
+
"-o",
|
| 140 |
+
"cache_dir=/tmp/pytest-cache",
|
| 141 |
+
"tests/snippets/jsonnet/test_array_slice.txt"
|
| 142 |
+
],
|
| 143 |
+
"exit_code": 0,
|
| 144 |
+
"expected": "zero",
|
| 145 |
+
"output_sha256": "ea60679e80486d2dd025dd2b21a200bfb76524c9325eccbaf2a64477ec87e5ec",
|
| 146 |
+
"output_tail": ". [100%]\n1 passed in 0.05s",
|
| 147 |
+
"repeat": 2,
|
| 148 |
+
"state": "gold-hidden"
|
| 149 |
+
},
|
| 150 |
+
{
|
| 151 |
+
"command": [
|
| 152 |
+
"python",
|
| 153 |
+
"-m",
|
| 154 |
+
"pytest",
|
| 155 |
+
"-q",
|
| 156 |
+
"-W",
|
| 157 |
+
"error",
|
| 158 |
+
"--cache-clear",
|
| 159 |
+
"--randomly-seed=0",
|
| 160 |
+
"-o",
|
| 161 |
+
"cache_dir=/tmp/pytest-cache",
|
| 162 |
+
"tests"
|
| 163 |
+
],
|
| 164 |
+
"exit_code": 0,
|
| 165 |
+
"expected": "zero",
|
| 166 |
+
"output_sha256": "b8e9c525fc187e1bb73991d7141bb1a50f505dd226bed789db187730e954d62d",
|
| 167 |
+
"output_tail": "....................................... [ 33%]\n........................................................................ [ 35%]\n........................................................................ [ 36%]\n........................................................................ [ 37%]\n........................................................................ [ 39%]\n........................................................................ [ 40%]\n........................................................................ [ 41%]\n........................................................................ [ 43%]\n........................................................................ [ 44%]\n........................................................................ [ 45%]\n........................................................................ [ 47%]\n........................................................................ [ 48%]\n........................................................................ [ 50%]\n........................................................................ [ 51%]\n........................................................................ [ 52%]\n........................................................................ [ 54%]\n........................................................................ [ 55%]\n........................................................................ [ 56%]\n........................................................................ [ 58%]\n........................................s............................... [ 59%]\n.....................................s.............................s.... [ 60%]\n........................................................................ [ 62%]\n........................................................................ [ 63%]\n..................................................................s..... [ 64%]\n........................................................................ [ 66%]\n........................................................................ [ 67%]\n........................................................................ [ 68%]\n........................................................................ [ 70%]\n........................................................................ [ 71%]\n........................................................................ [ 73%]\n........................................................................ [ 74%]\n........................................................................ [ 75%]\n........................................................................ [ 77%]\n........................................................................ [ 78%]\n........................................................................ [ 79%]\n........................................................................ [ 81%]\n........................................................................ [ 82%]\n........................................................................ [ 83%]\n........................................................................ [ 85%]\n.....................s.................................................. [ 86%]\n........................................................................ [ 87%]\n........................................................................ [ 89%]\n........................................................................ [ 90%]\n...............................................s........................ [ 91%]\n.........................................s.......s...................... [ 93%]\n........................................................................ [ 94%]\n........................................................................ [ 96%]\n........................................................................ [ 97%]\n........................................................................ [ 98%]\n.................................................................. [100%]\n5306 passed, 16 skipped in 15.85s",
|
| 168 |
+
"repeat": 2,
|
| 169 |
+
"state": "gold-regression"
|
| 170 |
+
}
|
| 171 |
+
],
|
| 172 |
+
"fail_to_pass_command": [
|
| 173 |
+
"python",
|
| 174 |
+
"-m",
|
| 175 |
+
"pytest",
|
| 176 |
+
"-q",
|
| 177 |
+
"-W",
|
| 178 |
+
"error",
|
| 179 |
+
"--cache-clear",
|
| 180 |
+
"--randomly-seed=0",
|
| 181 |
+
"-o",
|
| 182 |
+
"cache_dir=/tmp/pytest-cache",
|
| 183 |
+
"tests/snippets/jsonnet/test_array_slice.txt"
|
| 184 |
+
],
|
| 185 |
+
"fix_sha": "e1d0cd038c7e7d241ff1b0c7c5ee84c210ddbbd8",
|
| 186 |
+
"local_image": "patcheval-validate:pygments-2828",
|
| 187 |
+
"local_image_id": "sha256:b429995afa96421b6e14a4920c6afecfb07f9540ce5b33917bbdf1d17d201930",
|
| 188 |
+
"parent_sha": "86ee7c61a5333c9136f6e12e2b128e17d4f5ef16",
|
| 189 |
+
"regression_command": [
|
| 190 |
+
"python",
|
| 191 |
+
"-m",
|
| 192 |
+
"pytest",
|
| 193 |
+
"-q",
|
| 194 |
+
"-W",
|
| 195 |
+
"error",
|
| 196 |
+
"--cache-clear",
|
| 197 |
+
"--randomly-seed=0",
|
| 198 |
+
"-o",
|
| 199 |
+
"cache_dir=/tmp/pytest-cache",
|
| 200 |
+
"tests"
|
| 201 |
+
],
|
| 202 |
+
"repeats": 2,
|
| 203 |
+
"repository": "pygments/pygments",
|
| 204 |
+
"runner_contract": {
|
| 205 |
+
"home": "/home/node",
|
| 206 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 207 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 208 |
+
"uid": "1000",
|
| 209 |
+
"user": "node"
|
| 210 |
+
},
|
| 211 |
+
"runtime_profile": {
|
| 212 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm@sha256:6fb6f383deefbf9de105ce6d7a59fce0f8fa65c7afdf5a1222eafae14f81a27b",
|
| 213 |
+
"bootstrap_command": [
|
| 214 |
+
"/bin/sh",
|
| 215 |
+
"-ec",
|
| 216 |
+
"uv pip install --python /opt/venv/bin/python --only-binary=:all: 'hatchling==1.27.0' 'editables==0.5' && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: 'pytest==8.4.2' 'pytest-randomly==4.0.1' 'iniconfig==2.1.0' && uv pip install --python /opt/venv/bin/python --no-deps 'wcag-contrast-ratio==0.9' && uv pip freeze --python /opt/venv/bin/python > /opt/patcheval-requirements.txt"
|
| 217 |
+
],
|
| 218 |
+
"environment": [
|
| 219 |
+
"HOME=/home/node",
|
| 220 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 221 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 222 |
+
"UV_OFFLINE=1",
|
| 223 |
+
"PIP_NO_INDEX=1",
|
| 224 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 225 |
+
"PYTHONPATH=/workspace/repo",
|
| 226 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 227 |
+
"PYTHONUNBUFFERED=1",
|
| 228 |
+
"PYTHONHASHSEED=0",
|
| 229 |
+
"PYTHON_COLORS=0",
|
| 230 |
+
"NO_COLOR=1",
|
| 231 |
+
"TERM=dumb",
|
| 232 |
+
"COLUMNS=80",
|
| 233 |
+
"LANG=C.UTF-8",
|
| 234 |
+
"LC_ALL=C.UTF-8",
|
| 235 |
+
"TZ=UTC"
|
| 236 |
+
],
|
| 237 |
+
"fail_exit_codes": [
|
| 238 |
+
1
|
| 239 |
+
],
|
| 240 |
+
"regression_command": [
|
| 241 |
+
"python",
|
| 242 |
+
"-m",
|
| 243 |
+
"pytest",
|
| 244 |
+
"-q",
|
| 245 |
+
"-W",
|
| 246 |
+
"error",
|
| 247 |
+
"--cache-clear",
|
| 248 |
+
"--randomly-seed=0",
|
| 249 |
+
"-o",
|
| 250 |
+
"cache_dir=/tmp/pytest-cache",
|
| 251 |
+
"tests"
|
| 252 |
+
],
|
| 253 |
+
"setup_command": [
|
| 254 |
+
"/bin/sh",
|
| 255 |
+
"-ec",
|
| 256 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"
|
| 257 |
+
],
|
| 258 |
+
"sync_command": [
|
| 259 |
+
"uv",
|
| 260 |
+
"venv",
|
| 261 |
+
"--python",
|
| 262 |
+
"/usr/local/bin/python",
|
| 263 |
+
"/opt/venv"
|
| 264 |
+
],
|
| 265 |
+
"test_command": [
|
| 266 |
+
"python",
|
| 267 |
+
"-m",
|
| 268 |
+
"pytest",
|
| 269 |
+
"-q",
|
| 270 |
+
"-W",
|
| 271 |
+
"error",
|
| 272 |
+
"--cache-clear",
|
| 273 |
+
"--randomly-seed=0",
|
| 274 |
+
"-o",
|
| 275 |
+
"cache_dir=/tmp/pytest-cache"
|
| 276 |
+
],
|
| 277 |
+
"timeout_s": 900
|
| 278 |
+
},
|
| 279 |
+
"schema_version": 1,
|
| 280 |
+
"setup_command": [
|
| 281 |
+
"/bin/sh",
|
| 282 |
+
"-ec",
|
| 283 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable . && uv pip check --python /opt/venv/bin/python"
|
| 284 |
+
],
|
| 285 |
+
"task_id": "pygments-2828",
|
| 286 |
+
"validated": true
|
| 287 |
+
}
|
attestations/pypdf-3587.json
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-p",
|
| 10 |
+
"pytest_socket",
|
| 11 |
+
"-p",
|
| 12 |
+
"pytest_timeout",
|
| 13 |
+
"--timeout=60",
|
| 14 |
+
"-o",
|
| 15 |
+
"cache_dir=/tmp/pytest-cache",
|
| 16 |
+
"tests/generic/test_base.py::test_text_string_object__looks_like_bom"
|
| 17 |
+
],
|
| 18 |
+
"exit_code": 1,
|
| 19 |
+
"expected": "test-failure",
|
| 20 |
+
"output_sha256": "3373e2357c2a205a7913ee1abfec8af26e3aeee2eb05dbcd54121fd860acd7ca",
|
| 21 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n_________ test_text_string_object__looks_like_bom[<00FE00FF>-\\xfe\\xff] _________\n\nsource = b'<00FE00FF>', expected = '\u00fe\u00ff'\n\n @pytest.mark.parametrize(\n (\"source\", \"expected\"),\n [\n (b\"<00FE00FF>\", \"\\xfe\\xff\"),\n (b\"<00FE00FF00D6>\", \"\\xfe\\xff\\xd6\"),\n ]\n )\n def test_text_string_object__looks_like_bom(source: bytes, expected: str) -> None:\n stream = BytesIO(source)\n> result = read_hex_string_from_stream(stream)\n\ntests/generic/test_base.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \npypdf/generic/_utils.py:35: in read_hex_string_from_stream\n return create_string_object(bytes(arr), forced_encoding)\npypdf/generic/_utils.py:168: in create_string_object\n retval = TextStringObject(string.decode(\"utf-16be\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'pypdf.generic._base.TextStringObject'>, value = '\u00fe\u00ff'\n\n def __new__(cls, value: Any) -> \"TextStringObject\":\n org = None\n if isinstance(value, bytes):\n org = value\n value = value.decode(\"charmap\")\n o = str.__new__(cls, value)\n o._original_bytes = org\n o.autodetect_utf16 = False\n o.autodetect_pdfdocencoding = False\n o.utf16_bom = b\"\"\n if o.startswith((\"\\xfe\\xff\", \"\\xff\\xfe\")):\n> assert org is not None, \"mypy\"\nE AssertionError: mypy\n\npypdf/generic/_base.py:673: AssertionError\n_____ test_text_string_object__looks_like_bom[<00FE00FF00D6>-\\xfe\\xff\\xd6] _____\n\nsource = b'<00FE00FF00D6>', expected = '\u00fe\u00ff\u00d6'\n\n @pytest.mark.parametrize(\n (\"source\", \"expected\"),\n [\n (b\"<00FE00FF>\", \"\\xfe\\xff\"),\n (b\"<00FE00FF00D6>\", \"\\xfe\\xff\\xd6\"),\n ]\n )\n def test_text_string_object__looks_like_bom(source: bytes, expected: str) -> None:\n stream = BytesIO(source)\n> result = read_hex_string_from_stream(stream)\n\ntests/generic/test_base.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \npypdf/generic/_utils.py:35: in read_hex_string_from_stream\n return create_string_object(bytes(arr), forced_encoding)\npypdf/generic/_utils.py:168: in create_string_object\n retval = TextStringObject(string.decode(\"utf-16be\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'pypdf.generic._base.TextStringObject'>, value = '\u00fe\u00ff\u00d6'\n\n def __new__(cls, value: Any) -> \"TextStringObject\":\n org = None\n if isinstance(value, bytes):\n org = value\n value = value.decode(\"charmap\")\n o = str.__new__(cls, value)\n o._original_bytes = org\n o.autodetect_utf16 = False\n o.autodetect_pdfdocencoding = False\n o.utf16_bom = b\"\"\n if o.startswith((\"\\xfe\\xff\", \"\\xff\\xfe\")):\n> assert org is not None, \"mypy\"\nE AssertionError: mypy\n\npypdf/generic/_base.py:673: AssertionError\n=========================== short test summary info ============================\nFAILED tests/generic/test_base.py::test_text_string_object__looks_like_bom[<00FE00FF>-\\xfe\\xff]\nFAILED tests/generic/test_base.py::test_text_string_object__looks_like_bom[<00FE00FF00D6>-\\xfe\\xff\\xd6]\n2 failed in 0.05s",
|
| 22 |
+
"repeat": 1,
|
| 23 |
+
"state": "parent-hidden"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"command": [
|
| 27 |
+
"python",
|
| 28 |
+
"-m",
|
| 29 |
+
"pytest",
|
| 30 |
+
"-q",
|
| 31 |
+
"-p",
|
| 32 |
+
"pytest_socket",
|
| 33 |
+
"-p",
|
| 34 |
+
"pytest_timeout",
|
| 35 |
+
"--timeout=60",
|
| 36 |
+
"-o",
|
| 37 |
+
"cache_dir=/tmp/pytest-cache",
|
| 38 |
+
"-m",
|
| 39 |
+
"not enable_socket and not samples",
|
| 40 |
+
"tests"
|
| 41 |
+
],
|
| 42 |
+
"exit_code": 0,
|
| 43 |
+
"expected": "zero",
|
| 44 |
+
"output_sha256": "74f969dc2edff37d7c89d3f3f79e230d48cded9d737aba740f3680c973819650",
|
| 45 |
+
"output_tail": "s....................................................................... [ 10%]\ns......................s..............................................s. [ 21%]\n........................................................................ [ 32%]\n........................................................................ [ 42%]\n........................................................................ [ 53%]\n........................................................................ [ 64%]\n........................................................................ [ 74%]\n........................................................................ [ 85%]\n........................................................................ [ 96%]\n.......................... [100%]\n670 passed, 4 skipped, 420 deselected in 9.54s",
|
| 46 |
+
"repeat": 1,
|
| 47 |
+
"state": "parent-regression"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"command": [
|
| 51 |
+
"python",
|
| 52 |
+
"-m",
|
| 53 |
+
"pytest",
|
| 54 |
+
"-q",
|
| 55 |
+
"-p",
|
| 56 |
+
"pytest_socket",
|
| 57 |
+
"-p",
|
| 58 |
+
"pytest_timeout",
|
| 59 |
+
"--timeout=60",
|
| 60 |
+
"-o",
|
| 61 |
+
"cache_dir=/tmp/pytest-cache",
|
| 62 |
+
"tests/generic/test_base.py::test_text_string_object__looks_like_bom"
|
| 63 |
+
],
|
| 64 |
+
"exit_code": 0,
|
| 65 |
+
"expected": "zero",
|
| 66 |
+
"output_sha256": "2a65b3e70e6bfbb4eb9b9ffb91f4dcd6383e685bd1546efd5b451c200a907c28",
|
| 67 |
+
"output_tail": ".. [100%]\n2 passed in 0.01s",
|
| 68 |
+
"repeat": 1,
|
| 69 |
+
"state": "gold-hidden"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"command": [
|
| 73 |
+
"python",
|
| 74 |
+
"-m",
|
| 75 |
+
"pytest",
|
| 76 |
+
"-q",
|
| 77 |
+
"-p",
|
| 78 |
+
"pytest_socket",
|
| 79 |
+
"-p",
|
| 80 |
+
"pytest_timeout",
|
| 81 |
+
"--timeout=60",
|
| 82 |
+
"-o",
|
| 83 |
+
"cache_dir=/tmp/pytest-cache",
|
| 84 |
+
"-m",
|
| 85 |
+
"not enable_socket and not samples",
|
| 86 |
+
"tests"
|
| 87 |
+
],
|
| 88 |
+
"exit_code": 0,
|
| 89 |
+
"expected": "zero",
|
| 90 |
+
"output_sha256": "4d15e8291fb2727d0cf66049e01b80f8e02ac2f2556e776df0ace486064de6d5",
|
| 91 |
+
"output_tail": "s....................................................................... [ 10%]\ns......................s..............................................s. [ 21%]\n........................................................................ [ 32%]\n........................................................................ [ 42%]\n........................................................................ [ 53%]\n........................................................................ [ 64%]\n........................................................................ [ 74%]\n........................................................................ [ 85%]\n........................................................................ [ 96%]\n.......................... [100%]\n670 passed, 4 skipped, 420 deselected in 9.27s",
|
| 92 |
+
"repeat": 1,
|
| 93 |
+
"state": "gold-regression"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"command": [
|
| 97 |
+
"python",
|
| 98 |
+
"-m",
|
| 99 |
+
"pytest",
|
| 100 |
+
"-q",
|
| 101 |
+
"-p",
|
| 102 |
+
"pytest_socket",
|
| 103 |
+
"-p",
|
| 104 |
+
"pytest_timeout",
|
| 105 |
+
"--timeout=60",
|
| 106 |
+
"-o",
|
| 107 |
+
"cache_dir=/tmp/pytest-cache",
|
| 108 |
+
"tests/generic/test_base.py::test_text_string_object__looks_like_bom"
|
| 109 |
+
],
|
| 110 |
+
"exit_code": 1,
|
| 111 |
+
"expected": "test-failure",
|
| 112 |
+
"output_sha256": "3373e2357c2a205a7913ee1abfec8af26e3aeee2eb05dbcd54121fd860acd7ca",
|
| 113 |
+
"output_tail": "FF [100%]\n=================================== FAILURES ===================================\n_________ test_text_string_object__looks_like_bom[<00FE00FF>-\\xfe\\xff] _________\n\nsource = b'<00FE00FF>', expected = '\u00fe\u00ff'\n\n @pytest.mark.parametrize(\n (\"source\", \"expected\"),\n [\n (b\"<00FE00FF>\", \"\\xfe\\xff\"),\n (b\"<00FE00FF00D6>\", \"\\xfe\\xff\\xd6\"),\n ]\n )\n def test_text_string_object__looks_like_bom(source: bytes, expected: str) -> None:\n stream = BytesIO(source)\n> result = read_hex_string_from_stream(stream)\n\ntests/generic/test_base.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \npypdf/generic/_utils.py:35: in read_hex_string_from_stream\n return create_string_object(bytes(arr), forced_encoding)\npypdf/generic/_utils.py:168: in create_string_object\n retval = TextStringObject(string.decode(\"utf-16be\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'pypdf.generic._base.TextStringObject'>, value = '\u00fe\u00ff'\n\n def __new__(cls, value: Any) -> \"TextStringObject\":\n org = None\n if isinstance(value, bytes):\n org = value\n value = value.decode(\"charmap\")\n o = str.__new__(cls, value)\n o._original_bytes = org\n o.autodetect_utf16 = False\n o.autodetect_pdfdocencoding = False\n o.utf16_bom = b\"\"\n if o.startswith((\"\\xfe\\xff\", \"\\xff\\xfe\")):\n> assert org is not None, \"mypy\"\nE AssertionError: mypy\n\npypdf/generic/_base.py:673: AssertionError\n_____ test_text_string_object__looks_like_bom[<00FE00FF00D6>-\\xfe\\xff\\xd6] _____\n\nsource = b'<00FE00FF00D6>', expected = '\u00fe\u00ff\u00d6'\n\n @pytest.mark.parametrize(\n (\"source\", \"expected\"),\n [\n (b\"<00FE00FF>\", \"\\xfe\\xff\"),\n (b\"<00FE00FF00D6>\", \"\\xfe\\xff\\xd6\"),\n ]\n )\n def test_text_string_object__looks_like_bom(source: bytes, expected: str) -> None:\n stream = BytesIO(source)\n> result = read_hex_string_from_stream(stream)\n\ntests/generic/test_base.py:20: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \npypdf/generic/_utils.py:35: in read_hex_string_from_stream\n return create_string_object(bytes(arr), forced_encoding)\npypdf/generic/_utils.py:168: in create_string_object\n retval = TextStringObject(string.decode(\"utf-16be\"))\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\ncls = <class 'pypdf.generic._base.TextStringObject'>, value = '\u00fe\u00ff\u00d6'\n\n def __new__(cls, value: Any) -> \"TextStringObject\":\n org = None\n if isinstance(value, bytes):\n org = value\n value = value.decode(\"charmap\")\n o = str.__new__(cls, value)\n o._original_bytes = org\n o.autodetect_utf16 = False\n o.autodetect_pdfdocencoding = False\n o.utf16_bom = b\"\"\n if o.startswith((\"\\xfe\\xff\", \"\\xff\\xfe\")):\n> assert org is not None, \"mypy\"\nE AssertionError: mypy\n\npypdf/generic/_base.py:673: AssertionError\n=========================== short test summary info ============================\nFAILED tests/generic/test_base.py::test_text_string_object__looks_like_bom[<00FE00FF>-\\xfe\\xff]\nFAILED tests/generic/test_base.py::test_text_string_object__looks_like_bom[<00FE00FF00D6>-\\xfe\\xff\\xd6]\n2 failed in 0.05s",
|
| 114 |
+
"repeat": 2,
|
| 115 |
+
"state": "parent-hidden"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"command": [
|
| 119 |
+
"python",
|
| 120 |
+
"-m",
|
| 121 |
+
"pytest",
|
| 122 |
+
"-q",
|
| 123 |
+
"-p",
|
| 124 |
+
"pytest_socket",
|
| 125 |
+
"-p",
|
| 126 |
+
"pytest_timeout",
|
| 127 |
+
"--timeout=60",
|
| 128 |
+
"-o",
|
| 129 |
+
"cache_dir=/tmp/pytest-cache",
|
| 130 |
+
"-m",
|
| 131 |
+
"not enable_socket and not samples",
|
| 132 |
+
"tests"
|
| 133 |
+
],
|
| 134 |
+
"exit_code": 0,
|
| 135 |
+
"expected": "zero",
|
| 136 |
+
"output_sha256": "b71ccfdc049b2e4486cb732e649689654590303e2f68a22c7688e47dc5daad71",
|
| 137 |
+
"output_tail": "s....................................................................... [ 10%]\ns......................s..............................................s. [ 21%]\n........................................................................ [ 32%]\n........................................................................ [ 42%]\n........................................................................ [ 53%]\n........................................................................ [ 64%]\n........................................................................ [ 74%]\n........................................................................ [ 85%]\n........................................................................ [ 96%]\n.......................... [100%]\n670 passed, 4 skipped, 420 deselected in 9.29s",
|
| 138 |
+
"repeat": 2,
|
| 139 |
+
"state": "parent-regression"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"command": [
|
| 143 |
+
"python",
|
| 144 |
+
"-m",
|
| 145 |
+
"pytest",
|
| 146 |
+
"-q",
|
| 147 |
+
"-p",
|
| 148 |
+
"pytest_socket",
|
| 149 |
+
"-p",
|
| 150 |
+
"pytest_timeout",
|
| 151 |
+
"--timeout=60",
|
| 152 |
+
"-o",
|
| 153 |
+
"cache_dir=/tmp/pytest-cache",
|
| 154 |
+
"tests/generic/test_base.py::test_text_string_object__looks_like_bom"
|
| 155 |
+
],
|
| 156 |
+
"exit_code": 0,
|
| 157 |
+
"expected": "zero",
|
| 158 |
+
"output_sha256": "2a65b3e70e6bfbb4eb9b9ffb91f4dcd6383e685bd1546efd5b451c200a907c28",
|
| 159 |
+
"output_tail": ".. [100%]\n2 passed in 0.01s",
|
| 160 |
+
"repeat": 2,
|
| 161 |
+
"state": "gold-hidden"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"command": [
|
| 165 |
+
"python",
|
| 166 |
+
"-m",
|
| 167 |
+
"pytest",
|
| 168 |
+
"-q",
|
| 169 |
+
"-p",
|
| 170 |
+
"pytest_socket",
|
| 171 |
+
"-p",
|
| 172 |
+
"pytest_timeout",
|
| 173 |
+
"--timeout=60",
|
| 174 |
+
"-o",
|
| 175 |
+
"cache_dir=/tmp/pytest-cache",
|
| 176 |
+
"-m",
|
| 177 |
+
"not enable_socket and not samples",
|
| 178 |
+
"tests"
|
| 179 |
+
],
|
| 180 |
+
"exit_code": 0,
|
| 181 |
+
"expected": "zero",
|
| 182 |
+
"output_sha256": "2ed254912446d77e77b4a51e4abf654761b88c5869f62fadd9e227e961e51e74",
|
| 183 |
+
"output_tail": "s....................................................................... [ 10%]\ns......................s..............................................s. [ 21%]\n........................................................................ [ 32%]\n........................................................................ [ 42%]\n........................................................................ [ 53%]\n........................................................................ [ 64%]\n........................................................................ [ 74%]\n........................................................................ [ 85%]\n........................................................................ [ 96%]\n.......................... [100%]\n670 passed, 4 skipped, 420 deselected in 9.34s",
|
| 184 |
+
"repeat": 2,
|
| 185 |
+
"state": "gold-regression"
|
| 186 |
+
}
|
| 187 |
+
],
|
| 188 |
+
"fail_to_pass_command": [
|
| 189 |
+
"python",
|
| 190 |
+
"-m",
|
| 191 |
+
"pytest",
|
| 192 |
+
"-q",
|
| 193 |
+
"-p",
|
| 194 |
+
"pytest_socket",
|
| 195 |
+
"-p",
|
| 196 |
+
"pytest_timeout",
|
| 197 |
+
"--timeout=60",
|
| 198 |
+
"-o",
|
| 199 |
+
"cache_dir=/tmp/pytest-cache",
|
| 200 |
+
"tests/generic/test_base.py::test_text_string_object__looks_like_bom"
|
| 201 |
+
],
|
| 202 |
+
"fix_sha": "a29e5326f543f93c4c317cf9f92df54aff68c584",
|
| 203 |
+
"local_image": "patcheval-validate:pypdf-3587",
|
| 204 |
+
"local_image_id": "sha256:44e05bd6386f4917ead4a3183dfb5bd9db18629238559eefa9748c58b3cb6dcc",
|
| 205 |
+
"parent_sha": "d9ce594772717fdcfcd505d0309843461579bbf7",
|
| 206 |
+
"regression_command": [
|
| 207 |
+
"python",
|
| 208 |
+
"-m",
|
| 209 |
+
"pytest",
|
| 210 |
+
"-q",
|
| 211 |
+
"-p",
|
| 212 |
+
"pytest_socket",
|
| 213 |
+
"-p",
|
| 214 |
+
"pytest_timeout",
|
| 215 |
+
"--timeout=60",
|
| 216 |
+
"-o",
|
| 217 |
+
"cache_dir=/tmp/pytest-cache",
|
| 218 |
+
"-m",
|
| 219 |
+
"not enable_socket and not samples",
|
| 220 |
+
"tests"
|
| 221 |
+
],
|
| 222 |
+
"repeats": 2,
|
| 223 |
+
"repository": "py-pdf/pypdf",
|
| 224 |
+
"runner_contract": {
|
| 225 |
+
"home": "/home/node",
|
| 226 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 227 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 228 |
+
"uid": "1000",
|
| 229 |
+
"user": "node"
|
| 230 |
+
},
|
| 231 |
+
"runtime_profile": {
|
| 232 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim@sha256:c418e44ef43dd40b5b0c7f03f870271c53af58fce137201c0959386a631cb3a1",
|
| 233 |
+
"bootstrap_command": [
|
| 234 |
+
"uv",
|
| 235 |
+
"pip",
|
| 236 |
+
"install",
|
| 237 |
+
"--python",
|
| 238 |
+
"/opt/venv/bin/python",
|
| 239 |
+
"--no-deps",
|
| 240 |
+
"--only-binary",
|
| 241 |
+
":all:",
|
| 242 |
+
"flit_core==3.11.0",
|
| 243 |
+
"pygments==2.19.2"
|
| 244 |
+
],
|
| 245 |
+
"environment": [
|
| 246 |
+
"PYTHONPATH=/workspace/repo",
|
| 247 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 248 |
+
"PYTHONUNBUFFERED=1",
|
| 249 |
+
"PYTHONHASHSEED=0",
|
| 250 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 251 |
+
"PIP_NO_INDEX=1",
|
| 252 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 253 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 254 |
+
"TZ=UTC",
|
| 255 |
+
"LANG=C.UTF-8",
|
| 256 |
+
"LC_ALL=C.UTF-8"
|
| 257 |
+
],
|
| 258 |
+
"fail_exit_codes": [
|
| 259 |
+
1
|
| 260 |
+
],
|
| 261 |
+
"regression_command": [
|
| 262 |
+
"python",
|
| 263 |
+
"-m",
|
| 264 |
+
"pytest",
|
| 265 |
+
"-q",
|
| 266 |
+
"-p",
|
| 267 |
+
"pytest_socket",
|
| 268 |
+
"-p",
|
| 269 |
+
"pytest_timeout",
|
| 270 |
+
"--timeout=60",
|
| 271 |
+
"-o",
|
| 272 |
+
"cache_dir=/tmp/pytest-cache",
|
| 273 |
+
"-m",
|
| 274 |
+
"not enable_socket and not samples",
|
| 275 |
+
"tests"
|
| 276 |
+
],
|
| 277 |
+
"setup_command": [
|
| 278 |
+
"uv",
|
| 279 |
+
"pip",
|
| 280 |
+
"install",
|
| 281 |
+
"--offline",
|
| 282 |
+
"--python",
|
| 283 |
+
"/opt/venv/bin/python",
|
| 284 |
+
"--no-deps",
|
| 285 |
+
"--no-build-isolation",
|
| 286 |
+
"--editable",
|
| 287 |
+
"."
|
| 288 |
+
],
|
| 289 |
+
"sync_command": [
|
| 290 |
+
"/bin/sh",
|
| 291 |
+
"-c",
|
| 292 |
+
"python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"
|
| 293 |
+
],
|
| 294 |
+
"test_command": [
|
| 295 |
+
"python",
|
| 296 |
+
"-m",
|
| 297 |
+
"pytest",
|
| 298 |
+
"-q",
|
| 299 |
+
"-p",
|
| 300 |
+
"pytest_socket",
|
| 301 |
+
"-p",
|
| 302 |
+
"pytest_timeout",
|
| 303 |
+
"--timeout=60",
|
| 304 |
+
"-o",
|
| 305 |
+
"cache_dir=/tmp/pytest-cache"
|
| 306 |
+
],
|
| 307 |
+
"timeout_s": 1200
|
| 308 |
+
},
|
| 309 |
+
"schema_version": 1,
|
| 310 |
+
"setup_command": [
|
| 311 |
+
"uv",
|
| 312 |
+
"pip",
|
| 313 |
+
"install",
|
| 314 |
+
"--offline",
|
| 315 |
+
"--python",
|
| 316 |
+
"/opt/venv/bin/python",
|
| 317 |
+
"--no-deps",
|
| 318 |
+
"--no-build-isolation",
|
| 319 |
+
"--editable",
|
| 320 |
+
"."
|
| 321 |
+
],
|
| 322 |
+
"task_id": "pypdf-3587",
|
| 323 |
+
"validated": true
|
| 324 |
+
}
|
attestations/pypdf-3878.json
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-p",
|
| 10 |
+
"pytest_socket",
|
| 11 |
+
"-p",
|
| 12 |
+
"pytest_timeout",
|
| 13 |
+
"--timeout=60",
|
| 14 |
+
"-o",
|
| 15 |
+
"cache_dir=/tmp/pytest-cache",
|
| 16 |
+
"tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"
|
| 17 |
+
],
|
| 18 |
+
"exit_code": 1,
|
| 19 |
+
"expected": "test-failure",
|
| 20 |
+
"output_sha256": "a6e57e6690ca3ae2b3cae2b71b447f729ad7afb49fc7551b5de5404be72cbf48",
|
| 21 |
+
"output_tail": "[(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'Cover', '/Page': IndirectObject(3, 0, 139786617881488), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n______________ test_remove_from_tree_on_outline_item[1-expected1] ______________\n\nindex = 1, expected = ['Cover', 'End']\n\n @pytest.mark.parametrize(\n (\"index\", \"expected\"),\n [(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'Body', '/Page': IndirectObject(4, 0, 139786622383248), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n______________ test_remove_from_tree_on_outline_item[2-expected2] ______________\n\nindex = 2, expected = ['Cover', 'Body']\n\n @pytest.mark.parametrize(\n (\"index\", \"expected\"),\n [(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'End', '/Page': IndirectObject(6, 0, 139786617967440), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n=========================== short test summary info ============================\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[0-expected0]\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[1-expected1]\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[2-expected2]\n3 failed in 0.41s",
|
| 22 |
+
"repeat": 1,
|
| 23 |
+
"state": "parent-hidden"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"command": [
|
| 27 |
+
"python",
|
| 28 |
+
"-m",
|
| 29 |
+
"pytest",
|
| 30 |
+
"-q",
|
| 31 |
+
"-p",
|
| 32 |
+
"pytest_socket",
|
| 33 |
+
"-p",
|
| 34 |
+
"pytest_timeout",
|
| 35 |
+
"--timeout=60",
|
| 36 |
+
"-o",
|
| 37 |
+
"cache_dir=/tmp/pytest-cache",
|
| 38 |
+
"-m",
|
| 39 |
+
"not enable_socket and not samples",
|
| 40 |
+
"tests"
|
| 41 |
+
],
|
| 42 |
+
"exit_code": 0,
|
| 43 |
+
"expected": "zero",
|
| 44 |
+
"output_sha256": "b9926010f5784c3c3d28128e71a69d11effa82721d2eb0f7bd052bc076ac034c",
|
| 45 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n..................................s..................................... [ 35%]\n........................................................................ [ 42%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 71%]\n........................................................................ [ 78%]\n........................................................................ [ 85%]\n........................................................................ [ 92%]\n........................................................................ [100%]\n1004 passed, 4 skipped, 447 deselected in 18.57s",
|
| 46 |
+
"repeat": 1,
|
| 47 |
+
"state": "parent-regression"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"command": [
|
| 51 |
+
"python",
|
| 52 |
+
"-m",
|
| 53 |
+
"pytest",
|
| 54 |
+
"-q",
|
| 55 |
+
"-p",
|
| 56 |
+
"pytest_socket",
|
| 57 |
+
"-p",
|
| 58 |
+
"pytest_timeout",
|
| 59 |
+
"--timeout=60",
|
| 60 |
+
"-o",
|
| 61 |
+
"cache_dir=/tmp/pytest-cache",
|
| 62 |
+
"tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"
|
| 63 |
+
],
|
| 64 |
+
"exit_code": 0,
|
| 65 |
+
"expected": "zero",
|
| 66 |
+
"output_sha256": "68fe5029d7985751913631b7730a6e03897859b29a729a373d312d55f8290071",
|
| 67 |
+
"output_tail": "... [100%]\n3 passed in 0.29s",
|
| 68 |
+
"repeat": 1,
|
| 69 |
+
"state": "gold-hidden"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"command": [
|
| 73 |
+
"python",
|
| 74 |
+
"-m",
|
| 75 |
+
"pytest",
|
| 76 |
+
"-q",
|
| 77 |
+
"-p",
|
| 78 |
+
"pytest_socket",
|
| 79 |
+
"-p",
|
| 80 |
+
"pytest_timeout",
|
| 81 |
+
"--timeout=60",
|
| 82 |
+
"-o",
|
| 83 |
+
"cache_dir=/tmp/pytest-cache",
|
| 84 |
+
"-m",
|
| 85 |
+
"not enable_socket and not samples",
|
| 86 |
+
"tests"
|
| 87 |
+
],
|
| 88 |
+
"exit_code": 0,
|
| 89 |
+
"expected": "zero",
|
| 90 |
+
"output_sha256": "283847b152c768e2a04ed241cf594b2ed1b64a213eba3da23ef869a7b9c6c41e",
|
| 91 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n..................................s..................................... [ 35%]\n........................................................................ [ 42%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 71%]\n........................................................................ [ 78%]\n........................................................................ [ 85%]\n........................................................................ [ 92%]\n........................................................................ [100%]\n1004 passed, 4 skipped, 447 deselected in 17.87s",
|
| 92 |
+
"repeat": 1,
|
| 93 |
+
"state": "gold-regression"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"command": [
|
| 97 |
+
"python",
|
| 98 |
+
"-m",
|
| 99 |
+
"pytest",
|
| 100 |
+
"-q",
|
| 101 |
+
"-p",
|
| 102 |
+
"pytest_socket",
|
| 103 |
+
"-p",
|
| 104 |
+
"pytest_timeout",
|
| 105 |
+
"--timeout=60",
|
| 106 |
+
"-o",
|
| 107 |
+
"cache_dir=/tmp/pytest-cache",
|
| 108 |
+
"tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"
|
| 109 |
+
],
|
| 110 |
+
"exit_code": 1,
|
| 111 |
+
"expected": "test-failure",
|
| 112 |
+
"output_sha256": "395bcd494deb327fe8cdbfcfb0166900130170e60b9869903094b33df8776c67",
|
| 113 |
+
"output_tail": "[(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'Cover', '/Page': IndirectObject(3, 0, 139937189299088), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n______________ test_remove_from_tree_on_outline_item[1-expected1] ______________\n\nindex = 1, expected = ['Cover', 'End']\n\n @pytest.mark.parametrize(\n (\"index\", \"expected\"),\n [(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'Body', '/Page': IndirectObject(4, 0, 139937193800848), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n______________ test_remove_from_tree_on_outline_item[2-expected2] ______________\n\nindex = 2, expected = ['Cover', 'Body']\n\n @pytest.mark.parametrize(\n (\"index\", \"expected\"),\n [(0, [\"Body\", \"End\"]), (1, [\"Cover\", \"End\"]), (2, [\"Cover\", \"Body\"])],\n )\n def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:\n \"\"\"\n reader.outline and writer.outline yield detached copies which never carry\n /Parent, so removal has to act on the node they were built from.\n \"\"\"\n writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))\n \n> _flat_outline(writer.outline)[index].remove_from_tree()\n\ntests/generic/test_data_structures.py:535: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = {'/Title': 'End', '/Page': IndirectObject(6, 0, 139937189385040), '/Type': '/Fit', '/Count': 0, '/%is_open%': True}\n\n def remove_from_tree(self) -> None:\n \"\"\"Remove the object from the tree it is in.\"\"\"\n if NameObject(\"/Parent\") not in self:\n> raise ValueError(\"Removed child does not appear to be a tree item\")\nE ValueError: Removed child does not appear to be a tree item\n\npypdf/generic/_data_structures.py:934: ValueError\n=========================== short test summary info ============================\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[0-expected0]\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[1-expected1]\nFAILED tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item[2-expected2]\n3 failed in 0.40s",
|
| 114 |
+
"repeat": 2,
|
| 115 |
+
"state": "parent-hidden"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"command": [
|
| 119 |
+
"python",
|
| 120 |
+
"-m",
|
| 121 |
+
"pytest",
|
| 122 |
+
"-q",
|
| 123 |
+
"-p",
|
| 124 |
+
"pytest_socket",
|
| 125 |
+
"-p",
|
| 126 |
+
"pytest_timeout",
|
| 127 |
+
"--timeout=60",
|
| 128 |
+
"-o",
|
| 129 |
+
"cache_dir=/tmp/pytest-cache",
|
| 130 |
+
"-m",
|
| 131 |
+
"not enable_socket and not samples",
|
| 132 |
+
"tests"
|
| 133 |
+
],
|
| 134 |
+
"exit_code": 0,
|
| 135 |
+
"expected": "zero",
|
| 136 |
+
"output_sha256": "d67ca12e6e7248a387a87b93b2373ad56b84d3dfcec539ea644128d5a6c6c289",
|
| 137 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n..................................s..................................... [ 35%]\n........................................................................ [ 42%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 71%]\n........................................................................ [ 78%]\n........................................................................ [ 85%]\n........................................................................ [ 92%]\n........................................................................ [100%]\n1004 passed, 4 skipped, 447 deselected in 17.96s",
|
| 138 |
+
"repeat": 2,
|
| 139 |
+
"state": "parent-regression"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"command": [
|
| 143 |
+
"python",
|
| 144 |
+
"-m",
|
| 145 |
+
"pytest",
|
| 146 |
+
"-q",
|
| 147 |
+
"-p",
|
| 148 |
+
"pytest_socket",
|
| 149 |
+
"-p",
|
| 150 |
+
"pytest_timeout",
|
| 151 |
+
"--timeout=60",
|
| 152 |
+
"-o",
|
| 153 |
+
"cache_dir=/tmp/pytest-cache",
|
| 154 |
+
"tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"
|
| 155 |
+
],
|
| 156 |
+
"exit_code": 0,
|
| 157 |
+
"expected": "zero",
|
| 158 |
+
"output_sha256": "fd560e5ee111b94d747480462a3602a1a45e8a926e23368a84611992be100029",
|
| 159 |
+
"output_tail": "... [100%]\n3 passed in 0.30s",
|
| 160 |
+
"repeat": 2,
|
| 161 |
+
"state": "gold-hidden"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"command": [
|
| 165 |
+
"python",
|
| 166 |
+
"-m",
|
| 167 |
+
"pytest",
|
| 168 |
+
"-q",
|
| 169 |
+
"-p",
|
| 170 |
+
"pytest_socket",
|
| 171 |
+
"-p",
|
| 172 |
+
"pytest_timeout",
|
| 173 |
+
"--timeout=60",
|
| 174 |
+
"-o",
|
| 175 |
+
"cache_dir=/tmp/pytest-cache",
|
| 176 |
+
"-m",
|
| 177 |
+
"not enable_socket and not samples",
|
| 178 |
+
"tests"
|
| 179 |
+
],
|
| 180 |
+
"exit_code": 0,
|
| 181 |
+
"expected": "zero",
|
| 182 |
+
"output_sha256": "6fd3f6b19484aa3aa84a0f79e57912e68cda5c2ec6c980693a6aaa651668a1d1",
|
| 183 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n..................................s..................................... [ 35%]\n........................................................................ [ 42%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 71%]\n........................................................................ [ 78%]\n........................................................................ [ 85%]\n........................................................................ [ 92%]\n........................................................................ [100%]\n1004 passed, 4 skipped, 447 deselected in 18.05s",
|
| 184 |
+
"repeat": 2,
|
| 185 |
+
"state": "gold-regression"
|
| 186 |
+
}
|
| 187 |
+
],
|
| 188 |
+
"fail_to_pass_command": [
|
| 189 |
+
"python",
|
| 190 |
+
"-m",
|
| 191 |
+
"pytest",
|
| 192 |
+
"-q",
|
| 193 |
+
"-p",
|
| 194 |
+
"pytest_socket",
|
| 195 |
+
"-p",
|
| 196 |
+
"pytest_timeout",
|
| 197 |
+
"--timeout=60",
|
| 198 |
+
"-o",
|
| 199 |
+
"cache_dir=/tmp/pytest-cache",
|
| 200 |
+
"tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"
|
| 201 |
+
],
|
| 202 |
+
"fix_sha": "f6853ccd3ff492309c84060186aabc88ed472ffd",
|
| 203 |
+
"local_image": "patcheval-validate:pypdf-3878",
|
| 204 |
+
"local_image_id": "sha256:fd2cfcb1ccb83f5f69450ea7e38e06fd52c1304fb00d99634b8158457c0dc16b",
|
| 205 |
+
"parent_sha": "c6d38af1c561c629cd6965f611e8afad9b445ab0",
|
| 206 |
+
"regression_command": [
|
| 207 |
+
"python",
|
| 208 |
+
"-m",
|
| 209 |
+
"pytest",
|
| 210 |
+
"-q",
|
| 211 |
+
"-p",
|
| 212 |
+
"pytest_socket",
|
| 213 |
+
"-p",
|
| 214 |
+
"pytest_timeout",
|
| 215 |
+
"--timeout=60",
|
| 216 |
+
"-o",
|
| 217 |
+
"cache_dir=/tmp/pytest-cache",
|
| 218 |
+
"-m",
|
| 219 |
+
"not enable_socket and not samples",
|
| 220 |
+
"tests"
|
| 221 |
+
],
|
| 222 |
+
"repeats": 2,
|
| 223 |
+
"repository": "py-pdf/pypdf",
|
| 224 |
+
"runner_contract": {
|
| 225 |
+
"home": "/home/node",
|
| 226 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 227 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 228 |
+
"uid": "1000",
|
| 229 |
+
"user": "node"
|
| 230 |
+
},
|
| 231 |
+
"runtime_profile": {
|
| 232 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim@sha256:c418e44ef43dd40b5b0c7f03f870271c53af58fce137201c0959386a631cb3a1",
|
| 233 |
+
"bootstrap_command": [
|
| 234 |
+
"uv",
|
| 235 |
+
"pip",
|
| 236 |
+
"install",
|
| 237 |
+
"--python",
|
| 238 |
+
"/opt/venv/bin/python",
|
| 239 |
+
"--no-deps",
|
| 240 |
+
"--only-binary",
|
| 241 |
+
":all:",
|
| 242 |
+
"flit_core==3.11.0",
|
| 243 |
+
"pygments==2.19.2"
|
| 244 |
+
],
|
| 245 |
+
"environment": [
|
| 246 |
+
"PYTHONPATH=/workspace/repo",
|
| 247 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 248 |
+
"PYTHONUNBUFFERED=1",
|
| 249 |
+
"PYTHONHASHSEED=0",
|
| 250 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 251 |
+
"PIP_NO_INDEX=1",
|
| 252 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 253 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 254 |
+
"TZ=UTC",
|
| 255 |
+
"LANG=C.UTF-8",
|
| 256 |
+
"LC_ALL=C.UTF-8"
|
| 257 |
+
],
|
| 258 |
+
"fail_exit_codes": [
|
| 259 |
+
1
|
| 260 |
+
],
|
| 261 |
+
"regression_command": [
|
| 262 |
+
"python",
|
| 263 |
+
"-m",
|
| 264 |
+
"pytest",
|
| 265 |
+
"-q",
|
| 266 |
+
"-p",
|
| 267 |
+
"pytest_socket",
|
| 268 |
+
"-p",
|
| 269 |
+
"pytest_timeout",
|
| 270 |
+
"--timeout=60",
|
| 271 |
+
"-o",
|
| 272 |
+
"cache_dir=/tmp/pytest-cache",
|
| 273 |
+
"-m",
|
| 274 |
+
"not enable_socket and not samples",
|
| 275 |
+
"tests"
|
| 276 |
+
],
|
| 277 |
+
"setup_command": [
|
| 278 |
+
"uv",
|
| 279 |
+
"pip",
|
| 280 |
+
"install",
|
| 281 |
+
"--offline",
|
| 282 |
+
"--python",
|
| 283 |
+
"/opt/venv/bin/python",
|
| 284 |
+
"--no-deps",
|
| 285 |
+
"--no-build-isolation",
|
| 286 |
+
"--editable",
|
| 287 |
+
"."
|
| 288 |
+
],
|
| 289 |
+
"sync_command": [
|
| 290 |
+
"/bin/sh",
|
| 291 |
+
"-c",
|
| 292 |
+
"python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"
|
| 293 |
+
],
|
| 294 |
+
"test_command": [
|
| 295 |
+
"python",
|
| 296 |
+
"-m",
|
| 297 |
+
"pytest",
|
| 298 |
+
"-q",
|
| 299 |
+
"-p",
|
| 300 |
+
"pytest_socket",
|
| 301 |
+
"-p",
|
| 302 |
+
"pytest_timeout",
|
| 303 |
+
"--timeout=60",
|
| 304 |
+
"-o",
|
| 305 |
+
"cache_dir=/tmp/pytest-cache"
|
| 306 |
+
],
|
| 307 |
+
"timeout_s": 1200
|
| 308 |
+
},
|
| 309 |
+
"schema_version": 1,
|
| 310 |
+
"setup_command": [
|
| 311 |
+
"uv",
|
| 312 |
+
"pip",
|
| 313 |
+
"install",
|
| 314 |
+
"--offline",
|
| 315 |
+
"--python",
|
| 316 |
+
"/opt/venv/bin/python",
|
| 317 |
+
"--no-deps",
|
| 318 |
+
"--no-build-isolation",
|
| 319 |
+
"--editable",
|
| 320 |
+
"."
|
| 321 |
+
],
|
| 322 |
+
"task_id": "pypdf-3878",
|
| 323 |
+
"validated": true
|
| 324 |
+
}
|
attestations/pypdf-3982.json
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-p",
|
| 10 |
+
"pytest_socket",
|
| 11 |
+
"-p",
|
| 12 |
+
"pytest_timeout",
|
| 13 |
+
"--timeout=60",
|
| 14 |
+
"-o",
|
| 15 |
+
"cache_dir=/tmp/pytest-cache",
|
| 16 |
+
"tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"
|
| 17 |
+
],
|
| 18 |
+
"exit_code": 1,
|
| 19 |
+
"expected": "test-failure",
|
| 20 |
+
"output_sha256": "8602706ae3c2f48d818cc06857ff67480423052883cbaf3cd856df0f31823b85",
|
| 21 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ test_text_leading_is_not_scaled_by_font_size _________________\n\n def test_text_leading_is_not_scaled_by_font_size() -> None:\n \"\"\"Tests for #3982\"\"\"\n buffer = _page_with_helvetica(\n b\"BT /F1 12 Tf 1 0 0 1 72 700 Tm 14 TL \"\n b\"(Line one) Tj T* (Line two) Tj T* (Line three) Tj ET\"\n )\n \n positions = []\n \n def visitor_text(text, cm, tm, font_dict, font_size) -> None:\n if text.strip():\n positions.append(round(tm[5], 2))\n \n text = PdfReader(buffer).pages[0].extract_text(visitor_text=visitor_text)\n \n # T* moves down by the leading itself: 14 units, not 14 * 12 (the font size).\n> assert positions == [700.0, 686.0, 672.0]\nE assert [700.0, 532.0, 364.0] == [700.0, 686.0, 672.0]\nE \nE At index 1 diff: 532.0 != 686.0\nE Use -v to get more diff\n\ntests/test_text_extraction.py:976: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size\n1 failed in 0.37s",
|
| 22 |
+
"repeat": 1,
|
| 23 |
+
"state": "parent-hidden"
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"command": [
|
| 27 |
+
"python",
|
| 28 |
+
"-m",
|
| 29 |
+
"pytest",
|
| 30 |
+
"-q",
|
| 31 |
+
"-p",
|
| 32 |
+
"pytest_socket",
|
| 33 |
+
"-p",
|
| 34 |
+
"pytest_timeout",
|
| 35 |
+
"--timeout=60",
|
| 36 |
+
"-o",
|
| 37 |
+
"cache_dir=/tmp/pytest-cache",
|
| 38 |
+
"-m",
|
| 39 |
+
"not enable_socket and not samples",
|
| 40 |
+
"tests"
|
| 41 |
+
],
|
| 42 |
+
"exit_code": 0,
|
| 43 |
+
"expected": "zero",
|
| 44 |
+
"output_sha256": "5a44fc3b00b3c6960cc7dba5f683e6e58dae8bf379b1c2c3af69dbd0df5ab86a",
|
| 45 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n.............................s.......................................... [ 36%]\n........................................................................ [ 43%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 72%]\n........................................................................ [ 79%]\n........................................................................ [ 86%]\n........................................................................ [ 93%]\n................................................................ [100%]\n996 passed, 4 skipped, 447 deselected in 18.01s",
|
| 46 |
+
"repeat": 1,
|
| 47 |
+
"state": "parent-regression"
|
| 48 |
+
},
|
| 49 |
+
{
|
| 50 |
+
"command": [
|
| 51 |
+
"python",
|
| 52 |
+
"-m",
|
| 53 |
+
"pytest",
|
| 54 |
+
"-q",
|
| 55 |
+
"-p",
|
| 56 |
+
"pytest_socket",
|
| 57 |
+
"-p",
|
| 58 |
+
"pytest_timeout",
|
| 59 |
+
"--timeout=60",
|
| 60 |
+
"-o",
|
| 61 |
+
"cache_dir=/tmp/pytest-cache",
|
| 62 |
+
"tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"
|
| 63 |
+
],
|
| 64 |
+
"exit_code": 0,
|
| 65 |
+
"expected": "zero",
|
| 66 |
+
"output_sha256": "36f9b18cc90a30bad27a166700623fa5c161db333e6c7175147030ec70e79272",
|
| 67 |
+
"output_tail": ". [100%]\n1 passed in 0.31s",
|
| 68 |
+
"repeat": 1,
|
| 69 |
+
"state": "gold-hidden"
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"command": [
|
| 73 |
+
"python",
|
| 74 |
+
"-m",
|
| 75 |
+
"pytest",
|
| 76 |
+
"-q",
|
| 77 |
+
"-p",
|
| 78 |
+
"pytest_socket",
|
| 79 |
+
"-p",
|
| 80 |
+
"pytest_timeout",
|
| 81 |
+
"--timeout=60",
|
| 82 |
+
"-o",
|
| 83 |
+
"cache_dir=/tmp/pytest-cache",
|
| 84 |
+
"-m",
|
| 85 |
+
"not enable_socket and not samples",
|
| 86 |
+
"tests"
|
| 87 |
+
],
|
| 88 |
+
"exit_code": 0,
|
| 89 |
+
"expected": "zero",
|
| 90 |
+
"output_sha256": "2ae49189b262cdda53327498fcd26c643ad1da7aea280a9abb448cd74880abe9",
|
| 91 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n.............................s.......................................... [ 36%]\n........................................................................ [ 43%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 72%]\n........................................................................ [ 79%]\n........................................................................ [ 86%]\n........................................................................ [ 93%]\n................................................................ [100%]\n996 passed, 4 skipped, 447 deselected in 16.64s",
|
| 92 |
+
"repeat": 1,
|
| 93 |
+
"state": "gold-regression"
|
| 94 |
+
},
|
| 95 |
+
{
|
| 96 |
+
"command": [
|
| 97 |
+
"python",
|
| 98 |
+
"-m",
|
| 99 |
+
"pytest",
|
| 100 |
+
"-q",
|
| 101 |
+
"-p",
|
| 102 |
+
"pytest_socket",
|
| 103 |
+
"-p",
|
| 104 |
+
"pytest_timeout",
|
| 105 |
+
"--timeout=60",
|
| 106 |
+
"-o",
|
| 107 |
+
"cache_dir=/tmp/pytest-cache",
|
| 108 |
+
"tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"
|
| 109 |
+
],
|
| 110 |
+
"exit_code": 1,
|
| 111 |
+
"expected": "test-failure",
|
| 112 |
+
"output_sha256": "6db2d65a353149466dc95a3e2732186ef9f4e5b519c60c633da7e53c5ef810b9",
|
| 113 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_________________ test_text_leading_is_not_scaled_by_font_size _________________\n\n def test_text_leading_is_not_scaled_by_font_size() -> None:\n \"\"\"Tests for #3982\"\"\"\n buffer = _page_with_helvetica(\n b\"BT /F1 12 Tf 1 0 0 1 72 700 Tm 14 TL \"\n b\"(Line one) Tj T* (Line two) Tj T* (Line three) Tj ET\"\n )\n \n positions = []\n \n def visitor_text(text, cm, tm, font_dict, font_size) -> None:\n if text.strip():\n positions.append(round(tm[5], 2))\n \n text = PdfReader(buffer).pages[0].extract_text(visitor_text=visitor_text)\n \n # T* moves down by the leading itself: 14 units, not 14 * 12 (the font size).\n> assert positions == [700.0, 686.0, 672.0]\nE assert [700.0, 532.0, 364.0] == [700.0, 686.0, 672.0]\nE \nE At index 1 diff: 532.0 != 686.0\nE Use -v to get more diff\n\ntests/test_text_extraction.py:976: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size\n1 failed in 0.34s",
|
| 114 |
+
"repeat": 2,
|
| 115 |
+
"state": "parent-hidden"
|
| 116 |
+
},
|
| 117 |
+
{
|
| 118 |
+
"command": [
|
| 119 |
+
"python",
|
| 120 |
+
"-m",
|
| 121 |
+
"pytest",
|
| 122 |
+
"-q",
|
| 123 |
+
"-p",
|
| 124 |
+
"pytest_socket",
|
| 125 |
+
"-p",
|
| 126 |
+
"pytest_timeout",
|
| 127 |
+
"--timeout=60",
|
| 128 |
+
"-o",
|
| 129 |
+
"cache_dir=/tmp/pytest-cache",
|
| 130 |
+
"-m",
|
| 131 |
+
"not enable_socket and not samples",
|
| 132 |
+
"tests"
|
| 133 |
+
],
|
| 134 |
+
"exit_code": 0,
|
| 135 |
+
"expected": "zero",
|
| 136 |
+
"output_sha256": "2cb4c5b825a26eddb842bc30a3973826a04bbca1e2cae9ca00cd7ebe8bc183b4",
|
| 137 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n.............................s.......................................... [ 36%]\n........................................................................ [ 43%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 72%]\n........................................................................ [ 79%]\n........................................................................ [ 86%]\n........................................................................ [ 93%]\n................................................................ [100%]\n996 passed, 4 skipped, 447 deselected in 16.65s",
|
| 138 |
+
"repeat": 2,
|
| 139 |
+
"state": "parent-regression"
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"command": [
|
| 143 |
+
"python",
|
| 144 |
+
"-m",
|
| 145 |
+
"pytest",
|
| 146 |
+
"-q",
|
| 147 |
+
"-p",
|
| 148 |
+
"pytest_socket",
|
| 149 |
+
"-p",
|
| 150 |
+
"pytest_timeout",
|
| 151 |
+
"--timeout=60",
|
| 152 |
+
"-o",
|
| 153 |
+
"cache_dir=/tmp/pytest-cache",
|
| 154 |
+
"tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"
|
| 155 |
+
],
|
| 156 |
+
"exit_code": 0,
|
| 157 |
+
"expected": "zero",
|
| 158 |
+
"output_sha256": "36f9b18cc90a30bad27a166700623fa5c161db333e6c7175147030ec70e79272",
|
| 159 |
+
"output_tail": ". [100%]\n1 passed in 0.31s",
|
| 160 |
+
"repeat": 2,
|
| 161 |
+
"state": "gold-hidden"
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"command": [
|
| 165 |
+
"python",
|
| 166 |
+
"-m",
|
| 167 |
+
"pytest",
|
| 168 |
+
"-q",
|
| 169 |
+
"-p",
|
| 170 |
+
"pytest_socket",
|
| 171 |
+
"-p",
|
| 172 |
+
"pytest_timeout",
|
| 173 |
+
"--timeout=60",
|
| 174 |
+
"-o",
|
| 175 |
+
"cache_dir=/tmp/pytest-cache",
|
| 176 |
+
"-m",
|
| 177 |
+
"not enable_socket and not samples",
|
| 178 |
+
"tests"
|
| 179 |
+
],
|
| 180 |
+
"exit_code": 0,
|
| 181 |
+
"expected": "zero",
|
| 182 |
+
"output_sha256": "28297831dd311caea498ed8b48aa9de52cb9fcbba85d02fa1b361ec8defb9315",
|
| 183 |
+
"output_tail": ".....................s.................................................. [ 7%]\n........................................................................ [ 14%]\n...........................................s............................ [ 21%]\n................s....................................................... [ 28%]\n.............................s.......................................... [ 36%]\n........................................................................ [ 43%]\n........................................................................ [ 50%]\n........................................................................ [ 57%]\n........................................................................ [ 64%]\n........................................................................ [ 72%]\n........................................................................ [ 79%]\n........................................................................ [ 86%]\n........................................................................ [ 93%]\n................................................................ [100%]\n996 passed, 4 skipped, 447 deselected in 16.59s",
|
| 184 |
+
"repeat": 2,
|
| 185 |
+
"state": "gold-regression"
|
| 186 |
+
}
|
| 187 |
+
],
|
| 188 |
+
"fail_to_pass_command": [
|
| 189 |
+
"python",
|
| 190 |
+
"-m",
|
| 191 |
+
"pytest",
|
| 192 |
+
"-q",
|
| 193 |
+
"-p",
|
| 194 |
+
"pytest_socket",
|
| 195 |
+
"-p",
|
| 196 |
+
"pytest_timeout",
|
| 197 |
+
"--timeout=60",
|
| 198 |
+
"-o",
|
| 199 |
+
"cache_dir=/tmp/pytest-cache",
|
| 200 |
+
"tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"
|
| 201 |
+
],
|
| 202 |
+
"fix_sha": "31b32980f85a68c821349b006d7258044717a75e",
|
| 203 |
+
"local_image": "patcheval-validate:pypdf-3982",
|
| 204 |
+
"local_image_id": "sha256:c3215400dea9cdedbb4c4cc631bbaeb90d2c712a7409b11a892f7d8f1480912e",
|
| 205 |
+
"parent_sha": "7595da3201604309ab8d96afdc6f2e8bc661b3cd",
|
| 206 |
+
"regression_command": [
|
| 207 |
+
"python",
|
| 208 |
+
"-m",
|
| 209 |
+
"pytest",
|
| 210 |
+
"-q",
|
| 211 |
+
"-p",
|
| 212 |
+
"pytest_socket",
|
| 213 |
+
"-p",
|
| 214 |
+
"pytest_timeout",
|
| 215 |
+
"--timeout=60",
|
| 216 |
+
"-o",
|
| 217 |
+
"cache_dir=/tmp/pytest-cache",
|
| 218 |
+
"-m",
|
| 219 |
+
"not enable_socket and not samples",
|
| 220 |
+
"tests"
|
| 221 |
+
],
|
| 222 |
+
"repeats": 2,
|
| 223 |
+
"repository": "py-pdf/pypdf",
|
| 224 |
+
"runner_contract": {
|
| 225 |
+
"home": "/home/node",
|
| 226 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 227 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 228 |
+
"uid": "1000",
|
| 229 |
+
"user": "node"
|
| 230 |
+
},
|
| 231 |
+
"runtime_profile": {
|
| 232 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.11-bookworm-slim@sha256:c418e44ef43dd40b5b0c7f03f870271c53af58fce137201c0959386a631cb3a1",
|
| 233 |
+
"bootstrap_command": [
|
| 234 |
+
"uv",
|
| 235 |
+
"pip",
|
| 236 |
+
"install",
|
| 237 |
+
"--python",
|
| 238 |
+
"/opt/venv/bin/python",
|
| 239 |
+
"--no-deps",
|
| 240 |
+
"--only-binary",
|
| 241 |
+
":all:",
|
| 242 |
+
"flit_core==3.11.0",
|
| 243 |
+
"pygments==2.19.2"
|
| 244 |
+
],
|
| 245 |
+
"environment": [
|
| 246 |
+
"PYTHONPATH=/workspace/repo",
|
| 247 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 248 |
+
"PYTHONUNBUFFERED=1",
|
| 249 |
+
"PYTHONHASHSEED=0",
|
| 250 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 251 |
+
"PIP_NO_INDEX=1",
|
| 252 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 253 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 254 |
+
"TZ=UTC",
|
| 255 |
+
"LANG=C.UTF-8",
|
| 256 |
+
"LC_ALL=C.UTF-8"
|
| 257 |
+
],
|
| 258 |
+
"fail_exit_codes": [
|
| 259 |
+
1
|
| 260 |
+
],
|
| 261 |
+
"regression_command": [
|
| 262 |
+
"python",
|
| 263 |
+
"-m",
|
| 264 |
+
"pytest",
|
| 265 |
+
"-q",
|
| 266 |
+
"-p",
|
| 267 |
+
"pytest_socket",
|
| 268 |
+
"-p",
|
| 269 |
+
"pytest_timeout",
|
| 270 |
+
"--timeout=60",
|
| 271 |
+
"-o",
|
| 272 |
+
"cache_dir=/tmp/pytest-cache",
|
| 273 |
+
"-m",
|
| 274 |
+
"not enable_socket and not samples",
|
| 275 |
+
"tests"
|
| 276 |
+
],
|
| 277 |
+
"setup_command": [
|
| 278 |
+
"uv",
|
| 279 |
+
"pip",
|
| 280 |
+
"install",
|
| 281 |
+
"--offline",
|
| 282 |
+
"--python",
|
| 283 |
+
"/opt/venv/bin/python",
|
| 284 |
+
"--no-deps",
|
| 285 |
+
"--no-build-isolation",
|
| 286 |
+
"--editable",
|
| 287 |
+
"."
|
| 288 |
+
],
|
| 289 |
+
"sync_command": [
|
| 290 |
+
"/bin/sh",
|
| 291 |
+
"-c",
|
| 292 |
+
"python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary :all: -r requirements/ci-3.11.txt"
|
| 293 |
+
],
|
| 294 |
+
"test_command": [
|
| 295 |
+
"python",
|
| 296 |
+
"-m",
|
| 297 |
+
"pytest",
|
| 298 |
+
"-q",
|
| 299 |
+
"-p",
|
| 300 |
+
"pytest_socket",
|
| 301 |
+
"-p",
|
| 302 |
+
"pytest_timeout",
|
| 303 |
+
"--timeout=60",
|
| 304 |
+
"-o",
|
| 305 |
+
"cache_dir=/tmp/pytest-cache"
|
| 306 |
+
],
|
| 307 |
+
"timeout_s": 1200
|
| 308 |
+
},
|
| 309 |
+
"schema_version": 1,
|
| 310 |
+
"setup_command": [
|
| 311 |
+
"uv",
|
| 312 |
+
"pip",
|
| 313 |
+
"install",
|
| 314 |
+
"--offline",
|
| 315 |
+
"--python",
|
| 316 |
+
"/opt/venv/bin/python",
|
| 317 |
+
"--no-deps",
|
| 318 |
+
"--no-build-isolation",
|
| 319 |
+
"--editable",
|
| 320 |
+
"."
|
| 321 |
+
],
|
| 322 |
+
"task_id": "pypdf-3982",
|
| 323 |
+
"validated": true
|
| 324 |
+
}
|
attestations/sqlit-246.json
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"--timeout=60",
|
| 8 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings",
|
| 9 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings",
|
| 10 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"
|
| 11 |
+
],
|
| 12 |
+
"exit_code": 1,
|
| 13 |
+
"expected": "test-failure",
|
| 14 |
+
"output_sha256": "65e3b8057827b5083d99cfef635e8a8d40eb9c9114f2b790dc4c71b2eb542d5b",
|
| 15 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 3 items\n\ntests/unit/test_multi_statement.py FF. [100%]\n\n=================================== FAILURES ===================================\n__ TestStatementSplitting.test_preserves_semicolons_in_dollar_quoted_strings ___\n\nself = <tests.unit.test_multi_statement.TestStatementSplitting object at 0x7f17c9bc2ba0>\n\n def test_preserves_semicolons_in_dollar_quoted_strings(self):\n \"\"\"Should not split on semicolons inside dollar-quoted strings.\"\"\"\n from sqlit.domains.query.app.multi_statement import split_statements\n \n query = \"\"\"\n CREATE OR REPLACE FUNCTION example()\n RETURNS void AS $$\n BEGIN\n INSERT INTO t (x) VALUES ('a;b');\n END;\n $$ LANGUAGE plpgsql;\n SELECT 1;\n \"\"\"\n statements = split_statements(query)\n \n> assert len(statements) == 2\nE assert 4 == 2\nE + where 4 = len([\"CREATE OR REPLACE FUNCTION example()\\n RETURNS void AS $$\\n BEGIN\\n INSERT INTO t (x) VALUES ('a;b')\", 'END', '$$ LANGUAGE plpgsql', 'SELECT 1'])\n\ntests/unit/test_multi_statement.py:94: AssertionError\n_ TestStatementSplitting.test_preserves_semicolons_in_named_dollar_quoted_strings _\n\nself = <tests.unit.test_multi_statement.TestStatementSplitting object at 0x7f17c9bc21e0>\n\n def test_preserves_semicolons_in_named_dollar_quoted_strings(self):\n \"\"\"Should not split on semicolons inside named dollar-quoted strings.\"\"\"\n from sqlit.domains.query.app.multi_statement import split_statements\n \n query = \"\"\"\n CREATE OR REPLACE FUNCTION example()\n RETURNS void AS $func_tag$\n BEGIN\n INSERT INTO t (x) VALUES ('a;b');\n END;\n $func_tag$ LANGUAGE plpgsql;\n SELECT 1;\n \"\"\"\n statements = split_statements(query)\n \n> assert len(statements) == 2\nE assert 4 == 2\nE + where 4 = len([\"CREATE OR REPLACE FUNCTION example()\\n RETURNS void AS $func_tag$\\n BEGIN\\n INSERT INTO t (x) VALUES ('a;b')\", 'END', '$func_tag$ LANGUAGE plpgsql', 'SELECT 1'])\n\ntests/unit/test_multi_statement.py:113: AssertionError\n=========================== short test summary info ============================\nFAILED tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings\nFAILED tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings\n========================= 2 failed, 1 passed in 0.11s ==========================",
|
| 16 |
+
"repeat": 1,
|
| 17 |
+
"state": "parent-hidden"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"command": [
|
| 21 |
+
"pytest",
|
| 22 |
+
"-q",
|
| 23 |
+
"--timeout=60",
|
| 24 |
+
"tests/",
|
| 25 |
+
"--ignore=tests/test_mssql.py",
|
| 26 |
+
"--ignore=tests/test_postgresql.py",
|
| 27 |
+
"--ignore=tests/test_mysql.py",
|
| 28 |
+
"--ignore=tests/test_oracle.py",
|
| 29 |
+
"--ignore=tests/test_mariadb.py",
|
| 30 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 31 |
+
"--ignore=tests/test_turso.py",
|
| 32 |
+
"--ignore=tests/test_firebird.py",
|
| 33 |
+
"--ignore=tests/test_ssh.py",
|
| 34 |
+
"--ignore=tests/test_clickhouse.py"
|
| 35 |
+
],
|
| 36 |
+
"exit_code": 0,
|
| 37 |
+
"expected": "zero",
|
| 38 |
+
"output_sha256": "41b803858eae8b7c0414437a1500035b541f6eef55a6827f8becb82d911ad05d",
|
| 39 |
+
"output_tail": "ests/unit/test_connection_config_from_dict.py .......... [ 71%]\ntests/unit/test_connection_flow.py .. [ 71%]\ntests/unit/test_connection_mixin_edit.py . [ 71%]\ntests/unit/test_connection_picker_refresh.py ... [ 71%]\ntests/unit/test_docker_credential_parsing.py ........................... [ 72%]\n................................................... [ 75%]\ntests/unit/test_docker_tab_filtering.py ................ [ 76%]\ntests/unit/test_duckdb_data_files.py ................................... [ 78%]\n. [ 78%]\ntests/unit/test_editor_detection.py ........... [ 78%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 79%]\ntests/unit/test_extra_options_passthrough.py ....... [ 79%]\ntests/unit/test_flight_adapter.py ............................ [ 80%]\ntests/unit/test_history_store_file_backed.py ........................... [ 82%]\n [ 82%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 82%]\ntests/unit/test_install_strategy_uv.py ...... [ 82%]\ntests/unit/test_motherduck_adapter.py ........ [ 82%]\ntests/unit/test_mssql_adapter.py ........................... [ 84%]\ntests/unit/test_mssql_autocommit.py . [ 84%]\ntests/unit/test_multi_statement.py .......................... [ 85%]\ntests/unit/test_open_line.py ........ [ 86%]\ntests/unit/test_oracle_adapter.py .........s [ 86%]\ntests/unit/test_password_command.py ...... [ 86%]\ntests/unit/test_postgresql_adapter.py .. [ 87%]\ntests/unit/test_probe_port.py ..... [ 87%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 87%]\ntests/unit/test_project_dir_routing.py ........................ [ 88%]\ntests/unit/test_query_alerts.py ...... [ 89%]\ntests/unit/test_query_deletion.py ..... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 89%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1561 passed, 408 skipped in 159.81s (0:02:39) =================",
|
| 40 |
+
"repeat": 1,
|
| 41 |
+
"state": "parent-regression"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"command": [
|
| 45 |
+
"pytest",
|
| 46 |
+
"-q",
|
| 47 |
+
"--timeout=60",
|
| 48 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings",
|
| 49 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings",
|
| 50 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"
|
| 51 |
+
],
|
| 52 |
+
"exit_code": 0,
|
| 53 |
+
"expected": "zero",
|
| 54 |
+
"output_sha256": "6b466224bd7794c5b86e10e94f6450433e1d35b604c15568967a21f006d4ee94",
|
| 55 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 3 items\n\ntests/unit/test_multi_statement.py ... [100%]\n\n============================== 3 passed in 0.09s ===============================",
|
| 56 |
+
"repeat": 1,
|
| 57 |
+
"state": "gold-hidden"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"command": [
|
| 61 |
+
"pytest",
|
| 62 |
+
"-q",
|
| 63 |
+
"--timeout=60",
|
| 64 |
+
"tests/",
|
| 65 |
+
"--ignore=tests/test_mssql.py",
|
| 66 |
+
"--ignore=tests/test_postgresql.py",
|
| 67 |
+
"--ignore=tests/test_mysql.py",
|
| 68 |
+
"--ignore=tests/test_oracle.py",
|
| 69 |
+
"--ignore=tests/test_mariadb.py",
|
| 70 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 71 |
+
"--ignore=tests/test_turso.py",
|
| 72 |
+
"--ignore=tests/test_firebird.py",
|
| 73 |
+
"--ignore=tests/test_ssh.py",
|
| 74 |
+
"--ignore=tests/test_clickhouse.py"
|
| 75 |
+
],
|
| 76 |
+
"exit_code": 0,
|
| 77 |
+
"expected": "zero",
|
| 78 |
+
"output_sha256": "9015433579e57163ff836ee77f722de9bcad2cc4d4f5e5646ee787ea633133ff",
|
| 79 |
+
"output_tail": "ests/unit/test_connection_config_from_dict.py .......... [ 71%]\ntests/unit/test_connection_flow.py .. [ 71%]\ntests/unit/test_connection_mixin_edit.py . [ 71%]\ntests/unit/test_connection_picker_refresh.py ... [ 71%]\ntests/unit/test_docker_credential_parsing.py ........................... [ 72%]\n................................................... [ 75%]\ntests/unit/test_docker_tab_filtering.py ................ [ 76%]\ntests/unit/test_duckdb_data_files.py ................................... [ 78%]\n. [ 78%]\ntests/unit/test_editor_detection.py ........... [ 78%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 79%]\ntests/unit/test_extra_options_passthrough.py ....... [ 79%]\ntests/unit/test_flight_adapter.py ............................ [ 80%]\ntests/unit/test_history_store_file_backed.py ........................... [ 82%]\n [ 82%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 82%]\ntests/unit/test_install_strategy_uv.py ...... [ 82%]\ntests/unit/test_motherduck_adapter.py ........ [ 82%]\ntests/unit/test_mssql_adapter.py ........................... [ 84%]\ntests/unit/test_mssql_autocommit.py . [ 84%]\ntests/unit/test_multi_statement.py .......................... [ 85%]\ntests/unit/test_open_line.py ........ [ 86%]\ntests/unit/test_oracle_adapter.py .........s [ 86%]\ntests/unit/test_password_command.py ...... [ 86%]\ntests/unit/test_postgresql_adapter.py .. [ 87%]\ntests/unit/test_probe_port.py ..... [ 87%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 87%]\ntests/unit/test_project_dir_routing.py ........................ [ 88%]\ntests/unit/test_query_alerts.py ...... [ 89%]\ntests/unit/test_query_deletion.py ..... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 89%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1561 passed, 408 skipped in 156.64s (0:02:36) =================",
|
| 80 |
+
"repeat": 1,
|
| 81 |
+
"state": "gold-regression"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"command": [
|
| 85 |
+
"pytest",
|
| 86 |
+
"-q",
|
| 87 |
+
"--timeout=60",
|
| 88 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings",
|
| 89 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings",
|
| 90 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"
|
| 91 |
+
],
|
| 92 |
+
"exit_code": 1,
|
| 93 |
+
"expected": "test-failure",
|
| 94 |
+
"output_sha256": "e988815a93d2937f7bc4d6b680e6db05dffc8ebfb455cec6e7b17d3264c695d5",
|
| 95 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 3 items\n\ntests/unit/test_multi_statement.py FF. [100%]\n\n=================================== FAILURES ===================================\n__ TestStatementSplitting.test_preserves_semicolons_in_dollar_quoted_strings ___\n\nself = <tests.unit.test_multi_statement.TestStatementSplitting object at 0x7f71952fe870>\n\n def test_preserves_semicolons_in_dollar_quoted_strings(self):\n \"\"\"Should not split on semicolons inside dollar-quoted strings.\"\"\"\n from sqlit.domains.query.app.multi_statement import split_statements\n \n query = \"\"\"\n CREATE OR REPLACE FUNCTION example()\n RETURNS void AS $$\n BEGIN\n INSERT INTO t (x) VALUES ('a;b');\n END;\n $$ LANGUAGE plpgsql;\n SELECT 1;\n \"\"\"\n statements = split_statements(query)\n \n> assert len(statements) == 2\nE assert 4 == 2\nE + where 4 = len([\"CREATE OR REPLACE FUNCTION example()\\n RETURNS void AS $$\\n BEGIN\\n INSERT INTO t (x) VALUES ('a;b')\", 'END', '$$ LANGUAGE plpgsql', 'SELECT 1'])\n\ntests/unit/test_multi_statement.py:94: AssertionError\n_ TestStatementSplitting.test_preserves_semicolons_in_named_dollar_quoted_strings _\n\nself = <tests.unit.test_multi_statement.TestStatementSplitting object at 0x7f71952fdd60>\n\n def test_preserves_semicolons_in_named_dollar_quoted_strings(self):\n \"\"\"Should not split on semicolons inside named dollar-quoted strings.\"\"\"\n from sqlit.domains.query.app.multi_statement import split_statements\n \n query = \"\"\"\n CREATE OR REPLACE FUNCTION example()\n RETURNS void AS $func_tag$\n BEGIN\n INSERT INTO t (x) VALUES ('a;b');\n END;\n $func_tag$ LANGUAGE plpgsql;\n SELECT 1;\n \"\"\"\n statements = split_statements(query)\n \n> assert len(statements) == 2\nE assert 4 == 2\nE + where 4 = len([\"CREATE OR REPLACE FUNCTION example()\\n RETURNS void AS $func_tag$\\n BEGIN\\n INSERT INTO t (x) VALUES ('a;b')\", 'END', '$func_tag$ LANGUAGE plpgsql', 'SELECT 1'])\n\ntests/unit/test_multi_statement.py:113: AssertionError\n=========================== short test summary info ============================\nFAILED tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings\nFAILED tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings\n========================= 2 failed, 1 passed in 0.11s ==========================",
|
| 96 |
+
"repeat": 2,
|
| 97 |
+
"state": "parent-hidden"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"command": [
|
| 101 |
+
"pytest",
|
| 102 |
+
"-q",
|
| 103 |
+
"--timeout=60",
|
| 104 |
+
"tests/",
|
| 105 |
+
"--ignore=tests/test_mssql.py",
|
| 106 |
+
"--ignore=tests/test_postgresql.py",
|
| 107 |
+
"--ignore=tests/test_mysql.py",
|
| 108 |
+
"--ignore=tests/test_oracle.py",
|
| 109 |
+
"--ignore=tests/test_mariadb.py",
|
| 110 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 111 |
+
"--ignore=tests/test_turso.py",
|
| 112 |
+
"--ignore=tests/test_firebird.py",
|
| 113 |
+
"--ignore=tests/test_ssh.py",
|
| 114 |
+
"--ignore=tests/test_clickhouse.py"
|
| 115 |
+
],
|
| 116 |
+
"exit_code": 0,
|
| 117 |
+
"expected": "zero",
|
| 118 |
+
"output_sha256": "b0279395f719172365fd2873cbcd73ae1c71e0e38626d7af83b29a792d6c6569",
|
| 119 |
+
"output_tail": "ests/unit/test_connection_config_from_dict.py .......... [ 71%]\ntests/unit/test_connection_flow.py .. [ 71%]\ntests/unit/test_connection_mixin_edit.py . [ 71%]\ntests/unit/test_connection_picker_refresh.py ... [ 71%]\ntests/unit/test_docker_credential_parsing.py ........................... [ 72%]\n................................................... [ 75%]\ntests/unit/test_docker_tab_filtering.py ................ [ 76%]\ntests/unit/test_duckdb_data_files.py ................................... [ 78%]\n. [ 78%]\ntests/unit/test_editor_detection.py ........... [ 78%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 79%]\ntests/unit/test_extra_options_passthrough.py ....... [ 79%]\ntests/unit/test_flight_adapter.py ............................ [ 80%]\ntests/unit/test_history_store_file_backed.py ........................... [ 82%]\n [ 82%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 82%]\ntests/unit/test_install_strategy_uv.py ...... [ 82%]\ntests/unit/test_motherduck_adapter.py ........ [ 82%]\ntests/unit/test_mssql_adapter.py ........................... [ 84%]\ntests/unit/test_mssql_autocommit.py . [ 84%]\ntests/unit/test_multi_statement.py .......................... [ 85%]\ntests/unit/test_open_line.py ........ [ 86%]\ntests/unit/test_oracle_adapter.py .........s [ 86%]\ntests/unit/test_password_command.py ...... [ 86%]\ntests/unit/test_postgresql_adapter.py .. [ 87%]\ntests/unit/test_probe_port.py ..... [ 87%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 87%]\ntests/unit/test_project_dir_routing.py ........................ [ 88%]\ntests/unit/test_query_alerts.py ...... [ 89%]\ntests/unit/test_query_deletion.py ..... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 89%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1561 passed, 408 skipped in 157.65s (0:02:37) =================",
|
| 120 |
+
"repeat": 2,
|
| 121 |
+
"state": "parent-regression"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"command": [
|
| 125 |
+
"pytest",
|
| 126 |
+
"-q",
|
| 127 |
+
"--timeout=60",
|
| 128 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings",
|
| 129 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings",
|
| 130 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"
|
| 131 |
+
],
|
| 132 |
+
"exit_code": 0,
|
| 133 |
+
"expected": "zero",
|
| 134 |
+
"output_sha256": "6b466224bd7794c5b86e10e94f6450433e1d35b604c15568967a21f006d4ee94",
|
| 135 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 3 items\n\ntests/unit/test_multi_statement.py ... [100%]\n\n============================== 3 passed in 0.09s ===============================",
|
| 136 |
+
"repeat": 2,
|
| 137 |
+
"state": "gold-hidden"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"command": [
|
| 141 |
+
"pytest",
|
| 142 |
+
"-q",
|
| 143 |
+
"--timeout=60",
|
| 144 |
+
"tests/",
|
| 145 |
+
"--ignore=tests/test_mssql.py",
|
| 146 |
+
"--ignore=tests/test_postgresql.py",
|
| 147 |
+
"--ignore=tests/test_mysql.py",
|
| 148 |
+
"--ignore=tests/test_oracle.py",
|
| 149 |
+
"--ignore=tests/test_mariadb.py",
|
| 150 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 151 |
+
"--ignore=tests/test_turso.py",
|
| 152 |
+
"--ignore=tests/test_firebird.py",
|
| 153 |
+
"--ignore=tests/test_ssh.py",
|
| 154 |
+
"--ignore=tests/test_clickhouse.py"
|
| 155 |
+
],
|
| 156 |
+
"exit_code": 0,
|
| 157 |
+
"expected": "zero",
|
| 158 |
+
"output_sha256": "ac0f855337123cabbf23607f34002ef6197817b5ef32ff1df5bdadffb4dd094d",
|
| 159 |
+
"output_tail": "ests/unit/test_connection_config_from_dict.py .......... [ 71%]\ntests/unit/test_connection_flow.py .. [ 71%]\ntests/unit/test_connection_mixin_edit.py . [ 71%]\ntests/unit/test_connection_picker_refresh.py ... [ 71%]\ntests/unit/test_docker_credential_parsing.py ........................... [ 72%]\n................................................... [ 75%]\ntests/unit/test_docker_tab_filtering.py ................ [ 76%]\ntests/unit/test_duckdb_data_files.py ................................... [ 78%]\n. [ 78%]\ntests/unit/test_editor_detection.py ........... [ 78%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 79%]\ntests/unit/test_extra_options_passthrough.py ....... [ 79%]\ntests/unit/test_flight_adapter.py ............................ [ 80%]\ntests/unit/test_history_store_file_backed.py ........................... [ 82%]\n [ 82%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 82%]\ntests/unit/test_install_strategy_uv.py ...... [ 82%]\ntests/unit/test_motherduck_adapter.py ........ [ 82%]\ntests/unit/test_mssql_adapter.py ........................... [ 84%]\ntests/unit/test_mssql_autocommit.py . [ 84%]\ntests/unit/test_multi_statement.py .......................... [ 85%]\ntests/unit/test_open_line.py ........ [ 86%]\ntests/unit/test_oracle_adapter.py .........s [ 86%]\ntests/unit/test_password_command.py ...... [ 86%]\ntests/unit/test_postgresql_adapter.py .. [ 87%]\ntests/unit/test_probe_port.py ..... [ 87%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 87%]\ntests/unit/test_project_dir_routing.py ........................ [ 88%]\ntests/unit/test_query_alerts.py ...... [ 89%]\ntests/unit/test_query_deletion.py ..... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 89%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1561 passed, 408 skipped in 155.09s (0:02:35) =================",
|
| 160 |
+
"repeat": 2,
|
| 161 |
+
"state": "gold-regression"
|
| 162 |
+
}
|
| 163 |
+
],
|
| 164 |
+
"fail_to_pass_command": [
|
| 165 |
+
"pytest",
|
| 166 |
+
"-q",
|
| 167 |
+
"--timeout=60",
|
| 168 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings",
|
| 169 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings",
|
| 170 |
+
"tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"
|
| 171 |
+
],
|
| 172 |
+
"fix_sha": "61be617020d07111426383d9b1bb4867643619a8",
|
| 173 |
+
"local_image": "patcheval-validate:sqlit-246",
|
| 174 |
+
"local_image_id": "sha256:1a8ec5b63941aad43d2578566998a55306c1b67376c5cc8231b9a525c7d99f23",
|
| 175 |
+
"parent_sha": "73204ea65de23f43dde661efaf2174eb535c3a52",
|
| 176 |
+
"regression_command": [
|
| 177 |
+
"pytest",
|
| 178 |
+
"-q",
|
| 179 |
+
"--timeout=60",
|
| 180 |
+
"tests/",
|
| 181 |
+
"--ignore=tests/test_mssql.py",
|
| 182 |
+
"--ignore=tests/test_postgresql.py",
|
| 183 |
+
"--ignore=tests/test_mysql.py",
|
| 184 |
+
"--ignore=tests/test_oracle.py",
|
| 185 |
+
"--ignore=tests/test_mariadb.py",
|
| 186 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 187 |
+
"--ignore=tests/test_turso.py",
|
| 188 |
+
"--ignore=tests/test_firebird.py",
|
| 189 |
+
"--ignore=tests/test_ssh.py",
|
| 190 |
+
"--ignore=tests/test_clickhouse.py"
|
| 191 |
+
],
|
| 192 |
+
"repeats": 2,
|
| 193 |
+
"repository": "Maxteabag/sqlit",
|
| 194 |
+
"runner_contract": {
|
| 195 |
+
"home": "/home/node",
|
| 196 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 197 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 198 |
+
"uid": "1000",
|
| 199 |
+
"user": "node"
|
| 200 |
+
},
|
| 201 |
+
"runtime_profile": {
|
| 202 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 203 |
+
"bootstrap_command": [],
|
| 204 |
+
"environment": [
|
| 205 |
+
"PYTHONPATH=/workspace/repo",
|
| 206 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 207 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 208 |
+
"XDG_CONFIG_HOME=/tmp/patcheval-config",
|
| 209 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SQLIT_TUI=0.0.0"
|
| 210 |
+
],
|
| 211 |
+
"fail_exit_codes": [
|
| 212 |
+
1
|
| 213 |
+
],
|
| 214 |
+
"regression_command": [
|
| 215 |
+
"pytest",
|
| 216 |
+
"-q"
|
| 217 |
+
],
|
| 218 |
+
"setup_command": [],
|
| 219 |
+
"sync_command": [
|
| 220 |
+
"uv",
|
| 221 |
+
"sync",
|
| 222 |
+
"--frozen",
|
| 223 |
+
"--group",
|
| 224 |
+
"test",
|
| 225 |
+
"--no-dev",
|
| 226 |
+
"--extra",
|
| 227 |
+
"duckdb",
|
| 228 |
+
"--no-install-project"
|
| 229 |
+
],
|
| 230 |
+
"test_command": [
|
| 231 |
+
"pytest",
|
| 232 |
+
"-q"
|
| 233 |
+
],
|
| 234 |
+
"timeout_s": 900
|
| 235 |
+
},
|
| 236 |
+
"schema_version": 1,
|
| 237 |
+
"setup_command": [],
|
| 238 |
+
"task_id": "sqlit-246",
|
| 239 |
+
"validated": true
|
| 240 |
+
}
|
attestations/sqlit-260.json
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"pytest",
|
| 6 |
+
"-q",
|
| 7 |
+
"--timeout=60",
|
| 8 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator",
|
| 9 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator",
|
| 10 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"
|
| 11 |
+
],
|
| 12 |
+
"exit_code": 1,
|
| 13 |
+
"expected": "test-failure",
|
| 14 |
+
"output_sha256": "c5b1c0f3f3d67fcd2c11ac9a67f5152e3814297cd5ad0ad4de7758b53756e1b4",
|
| 15 |
+
"output_tail": " % (expected, actual))\n raise AssertionError(error_message)\n \n def _error_message():\n msg = self._format_mock_failure_message(args, kwargs)\n return msg\n expected = self._call_matcher(_Call((args, kwargs), two=True))\n actual = self._call_matcher(self.call_args)\n if actual != expected:\n cause = expected if isinstance(expected, Exception) else None\n> raise AssertionError(_error_message()) from cause\nE AssertionError: expected call not found.\nE Expected: execute('SELECT 1 FROM DUAL')\nE Actual: execute('SELECT 1 FROM DUAL; \\n')\n\n/usr/local/lib/python3.12/unittest/mock.py:949: AssertionError\n___________ test_execute_non_query_removes_sql_statement_terminator ____________\n\nadapter = <sqlit.domains.connections.providers.oracle.adapter.OracleAdapter object at 0x7f70c489c1a0>\nmock_conn = <MagicMock id='140122310426992'>\n\n def test_execute_non_query_removes_sql_statement_terminator(\n adapter: OracleAdapter,\n mock_conn: MagicMock,\n ) -> None:\n \"\"\"Issue #260: ALTER SESSION must reach python-oracledb without ``;``.\"\"\"\n adapter.execute_non_query(mock_conn, \"ALTER SESSION SET EDITION = V0;\")\n \n> mock_conn.cursor.return_value.execute.assert_called_once_with(\"ALTER SESSION SET EDITION = V0\")\n\ntests/connections/providers/oracle/test_statement_execution.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/local/lib/python3.12/unittest/mock.py:961: in assert_called_once_with\n return self.assert_called_with(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <MagicMock name='mock.cursor().execute' id='140122311397584'>\nargs = ('ALTER SESSION SET EDITION = V0',), kwargs = {}\nexpected = call('ALTER SESSION SET EDITION = V0')\nactual = call('ALTER SESSION SET EDITION = V0;')\n_error_message = <function NonCallableMock.assert_called_with.<locals>._error_message at 0x7f70c44e5b20>\ncause = None\n\n def assert_called_with(self, /, *args, **kwargs):\n \"\"\"assert that the last call was made with the specified arguments.\n \n Raises an AssertionError if the args and keyword args passed in are\n different to the last call to the mock.\"\"\"\n if self.call_args is None:\n expected = self._format_mock_call_signature(args, kwargs)\n actual = 'not called.'\n error_message = ('expected call not found.\\nExpected: %s\\n Actual: %s'\n % (expected, actual))\n raise AssertionError(error_message)\n \n def _error_message():\n msg = self._format_mock_failure_message(args, kwargs)\n return msg\n expected = self._call_matcher(_Call((args, kwargs), two=True))\n actual = self._call_matcher(self.call_args)\n if actual != expected:\n cause = expected if isinstance(expected, Exception) else None\n> raise AssertionError(_error_message()) from cause\nE AssertionError: expected call not found.\nE Expected: execute('ALTER SESSION SET EDITION = V0')\nE Actual: execute('ALTER SESSION SET EDITION = V0;')\n\n/usr/local/lib/python3.12/unittest/mock.py:949: AssertionError\n=========================== short test summary info ============================\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator[SELECT ';' AS value FROM DUAL;-SELECT ';' AS value FROM DUAL]\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator[SELECT 1 FROM DUAL; \\n-SELECT 1 FROM DUAL]\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator\n========================= 3 failed, 7 passed in 0.24s ==========================",
|
| 16 |
+
"repeat": 1,
|
| 17 |
+
"state": "parent-hidden"
|
| 18 |
+
},
|
| 19 |
+
{
|
| 20 |
+
"command": [
|
| 21 |
+
"pytest",
|
| 22 |
+
"-q",
|
| 23 |
+
"--timeout=60",
|
| 24 |
+
"tests/",
|
| 25 |
+
"--ignore=tests/test_mssql.py",
|
| 26 |
+
"--ignore=tests/test_postgresql.py",
|
| 27 |
+
"--ignore=tests/test_mysql.py",
|
| 28 |
+
"--ignore=tests/test_oracle.py",
|
| 29 |
+
"--ignore=tests/test_mariadb.py",
|
| 30 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 31 |
+
"--ignore=tests/test_turso.py",
|
| 32 |
+
"--ignore=tests/test_firebird.py",
|
| 33 |
+
"--ignore=tests/test_ssh.py",
|
| 34 |
+
"--ignore=tests/test_clickhouse.py"
|
| 35 |
+
],
|
| 36 |
+
"exit_code": 0,
|
| 37 |
+
"expected": "zero",
|
| 38 |
+
"output_sha256": "b7d78daff8e959426ab997b38cd95232008140016d28d093377d4f93ed9d5af0",
|
| 39 |
+
"output_tail": "ests/unit/test_duckdb_data_files.py ................................... [ 76%]\n. [ 76%]\ntests/unit/test_editor_detection.py ........... [ 77%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 77%]\ntests/unit/test_extra_options_passthrough.py ....... [ 77%]\ntests/unit/test_flight_adapter.py ............................ [ 79%]\ntests/unit/test_history_store_file_backed.py ........................... [ 80%]\n [ 80%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 80%]\ntests/unit/test_install_strategy_uv.py ...... [ 80%]\ntests/unit/test_motherduck_adapter.py ........ [ 81%]\ntests/unit/test_mssql_adapter.py ........................... [ 82%]\ntests/unit/test_mssql_autocommit.py . [ 82%]\ntests/unit/test_multi_statement.py ............................. [ 83%]\ntests/unit/test_open_line.py ........ [ 84%]\ntests/unit/test_oracle_adapter.py .........s [ 84%]\ntests/unit/test_password_command.py ...... [ 85%]\ntests/unit/test_postgresql_adapter.py .. [ 85%]\ntests/unit/test_probe_port.py ..... [ 85%]\ntests/unit/test_process_worker_fallback.py .... [ 85%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 85%]\ntests/unit/test_process_worker_statement_validation.py .. [ 85%]\ntests/unit/test_project_dir_routing.py ........................ [ 86%]\ntests/unit/test_query_alerts.py ...... [ 87%]\ntests/unit/test_query_alerts_hierarchy.py ................... [ 88%]\ntests/unit/test_query_confirm_integration.py ......... [ 88%]\ntests/unit/test_query_deletion.py ..... [ 88%]\ntests/unit/test_query_tab.py ....... [ 89%]\ntests/unit/test_results_copy_markup.py ....... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 90%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_stdin_secret.py .......... [ 92%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1686 passed, 420 skipped in 158.45s (0:02:38) =================",
|
| 40 |
+
"repeat": 1,
|
| 41 |
+
"state": "parent-regression"
|
| 42 |
+
},
|
| 43 |
+
{
|
| 44 |
+
"command": [
|
| 45 |
+
"pytest",
|
| 46 |
+
"-q",
|
| 47 |
+
"--timeout=60",
|
| 48 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator",
|
| 49 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator",
|
| 50 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"
|
| 51 |
+
],
|
| 52 |
+
"exit_code": 0,
|
| 53 |
+
"expected": "zero",
|
| 54 |
+
"output_sha256": "920c0ba25ce4adb1e99a3c57cd98d618c4d7e1e9290f9b2cbd3f7e191f9c6344",
|
| 55 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 10 items\n\ntests/connections/providers/oracle/test_statement_execution.py ......... [ 90%]\n. [100%]\n\n============================== 10 passed in 0.08s ==============================",
|
| 56 |
+
"repeat": 1,
|
| 57 |
+
"state": "gold-hidden"
|
| 58 |
+
},
|
| 59 |
+
{
|
| 60 |
+
"command": [
|
| 61 |
+
"pytest",
|
| 62 |
+
"-q",
|
| 63 |
+
"--timeout=60",
|
| 64 |
+
"tests/",
|
| 65 |
+
"--ignore=tests/test_mssql.py",
|
| 66 |
+
"--ignore=tests/test_postgresql.py",
|
| 67 |
+
"--ignore=tests/test_mysql.py",
|
| 68 |
+
"--ignore=tests/test_oracle.py",
|
| 69 |
+
"--ignore=tests/test_mariadb.py",
|
| 70 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 71 |
+
"--ignore=tests/test_turso.py",
|
| 72 |
+
"--ignore=tests/test_firebird.py",
|
| 73 |
+
"--ignore=tests/test_ssh.py",
|
| 74 |
+
"--ignore=tests/test_clickhouse.py"
|
| 75 |
+
],
|
| 76 |
+
"exit_code": 0,
|
| 77 |
+
"expected": "zero",
|
| 78 |
+
"output_sha256": "7b701fc64616285bf19b475659c8ea5b61f1477f177148bee312c39c27683a72",
|
| 79 |
+
"output_tail": "ests/unit/test_duckdb_data_files.py ................................... [ 76%]\n. [ 76%]\ntests/unit/test_editor_detection.py ........... [ 77%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 77%]\ntests/unit/test_extra_options_passthrough.py ....... [ 77%]\ntests/unit/test_flight_adapter.py ............................ [ 79%]\ntests/unit/test_history_store_file_backed.py ........................... [ 80%]\n [ 80%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 80%]\ntests/unit/test_install_strategy_uv.py ...... [ 80%]\ntests/unit/test_motherduck_adapter.py ........ [ 81%]\ntests/unit/test_mssql_adapter.py ........................... [ 82%]\ntests/unit/test_mssql_autocommit.py . [ 82%]\ntests/unit/test_multi_statement.py ............................. [ 83%]\ntests/unit/test_open_line.py ........ [ 84%]\ntests/unit/test_oracle_adapter.py .........s [ 84%]\ntests/unit/test_password_command.py ...... [ 85%]\ntests/unit/test_postgresql_adapter.py .. [ 85%]\ntests/unit/test_probe_port.py ..... [ 85%]\ntests/unit/test_process_worker_fallback.py .... [ 85%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 85%]\ntests/unit/test_process_worker_statement_validation.py .. [ 85%]\ntests/unit/test_project_dir_routing.py ........................ [ 86%]\ntests/unit/test_query_alerts.py ...... [ 87%]\ntests/unit/test_query_alerts_hierarchy.py ................... [ 88%]\ntests/unit/test_query_confirm_integration.py ......... [ 88%]\ntests/unit/test_query_deletion.py ..... [ 88%]\ntests/unit/test_query_tab.py ....... [ 89%]\ntests/unit/test_results_copy_markup.py ....... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 90%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_stdin_secret.py .......... [ 92%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1686 passed, 420 skipped in 159.98s (0:02:39) =================",
|
| 80 |
+
"repeat": 1,
|
| 81 |
+
"state": "gold-regression"
|
| 82 |
+
},
|
| 83 |
+
{
|
| 84 |
+
"command": [
|
| 85 |
+
"pytest",
|
| 86 |
+
"-q",
|
| 87 |
+
"--timeout=60",
|
| 88 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator",
|
| 89 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator",
|
| 90 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"
|
| 91 |
+
],
|
| 92 |
+
"exit_code": 1,
|
| 93 |
+
"expected": "test-failure",
|
| 94 |
+
"output_sha256": "bc1eca060de371f886d8e45149e0ac723f7b573caa637a67fa670ccbc52ea640",
|
| 95 |
+
"output_tail": " % (expected, actual))\n raise AssertionError(error_message)\n \n def _error_message():\n msg = self._format_mock_failure_message(args, kwargs)\n return msg\n expected = self._call_matcher(_Call((args, kwargs), two=True))\n actual = self._call_matcher(self.call_args)\n if actual != expected:\n cause = expected if isinstance(expected, Exception) else None\n> raise AssertionError(_error_message()) from cause\nE AssertionError: expected call not found.\nE Expected: execute('SELECT 1 FROM DUAL')\nE Actual: execute('SELECT 1 FROM DUAL; \\n')\n\n/usr/local/lib/python3.12/unittest/mock.py:949: AssertionError\n___________ test_execute_non_query_removes_sql_statement_terminator ____________\n\nadapter = <sqlit.domains.connections.providers.oracle.adapter.OracleAdapter object at 0x7f2508bccc20>\nmock_conn = <MagicMock id='139797037108208'>\n\n def test_execute_non_query_removes_sql_statement_terminator(\n adapter: OracleAdapter,\n mock_conn: MagicMock,\n ) -> None:\n \"\"\"Issue #260: ALTER SESSION must reach python-oracledb without ``;``.\"\"\"\n adapter.execute_non_query(mock_conn, \"ALTER SESSION SET EDITION = V0;\")\n \n> mock_conn.cursor.return_value.execute.assert_called_once_with(\"ALTER SESSION SET EDITION = V0\")\n\ntests/connections/providers/oracle/test_statement_execution.py:53: \n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n/usr/local/lib/python3.12/unittest/mock.py:961: in assert_called_once_with\n return self.assert_called_with(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ \n\nself = <MagicMock name='mock.cursor().execute' id='139797038092736'>\nargs = ('ALTER SESSION SET EDITION = V0',), kwargs = {}\nexpected = call('ALTER SESSION SET EDITION = V0')\nactual = call('ALTER SESSION SET EDITION = V0;')\n_error_message = <function NonCallableMock.assert_called_with.<locals>._error_message at 0x7f2508b65b20>\ncause = None\n\n def assert_called_with(self, /, *args, **kwargs):\n \"\"\"assert that the last call was made with the specified arguments.\n \n Raises an AssertionError if the args and keyword args passed in are\n different to the last call to the mock.\"\"\"\n if self.call_args is None:\n expected = self._format_mock_call_signature(args, kwargs)\n actual = 'not called.'\n error_message = ('expected call not found.\\nExpected: %s\\n Actual: %s'\n % (expected, actual))\n raise AssertionError(error_message)\n \n def _error_message():\n msg = self._format_mock_failure_message(args, kwargs)\n return msg\n expected = self._call_matcher(_Call((args, kwargs), two=True))\n actual = self._call_matcher(self.call_args)\n if actual != expected:\n cause = expected if isinstance(expected, Exception) else None\n> raise AssertionError(_error_message()) from cause\nE AssertionError: expected call not found.\nE Expected: execute('ALTER SESSION SET EDITION = V0')\nE Actual: execute('ALTER SESSION SET EDITION = V0;')\n\n/usr/local/lib/python3.12/unittest/mock.py:949: AssertionError\n=========================== short test summary info ============================\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator[SELECT ';' AS value FROM DUAL;-SELECT ';' AS value FROM DUAL]\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator[SELECT 1 FROM DUAL; \\n-SELECT 1 FROM DUAL]\nFAILED tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator\n========================= 3 failed, 7 passed in 0.21s ==========================",
|
| 96 |
+
"repeat": 2,
|
| 97 |
+
"state": "parent-hidden"
|
| 98 |
+
},
|
| 99 |
+
{
|
| 100 |
+
"command": [
|
| 101 |
+
"pytest",
|
| 102 |
+
"-q",
|
| 103 |
+
"--timeout=60",
|
| 104 |
+
"tests/",
|
| 105 |
+
"--ignore=tests/test_mssql.py",
|
| 106 |
+
"--ignore=tests/test_postgresql.py",
|
| 107 |
+
"--ignore=tests/test_mysql.py",
|
| 108 |
+
"--ignore=tests/test_oracle.py",
|
| 109 |
+
"--ignore=tests/test_mariadb.py",
|
| 110 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 111 |
+
"--ignore=tests/test_turso.py",
|
| 112 |
+
"--ignore=tests/test_firebird.py",
|
| 113 |
+
"--ignore=tests/test_ssh.py",
|
| 114 |
+
"--ignore=tests/test_clickhouse.py"
|
| 115 |
+
],
|
| 116 |
+
"exit_code": 0,
|
| 117 |
+
"expected": "zero",
|
| 118 |
+
"output_sha256": "955fddb860bdf84eb4e0c3d1845331f0fec401a3acf9f08e07666c1ebd0343af",
|
| 119 |
+
"output_tail": "ests/unit/test_duckdb_data_files.py ................................... [ 76%]\n. [ 76%]\ntests/unit/test_editor_detection.py ........... [ 77%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 77%]\ntests/unit/test_extra_options_passthrough.py ....... [ 77%]\ntests/unit/test_flight_adapter.py ............................ [ 79%]\ntests/unit/test_history_store_file_backed.py ........................... [ 80%]\n [ 80%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 80%]\ntests/unit/test_install_strategy_uv.py ...... [ 80%]\ntests/unit/test_motherduck_adapter.py ........ [ 81%]\ntests/unit/test_mssql_adapter.py ........................... [ 82%]\ntests/unit/test_mssql_autocommit.py . [ 82%]\ntests/unit/test_multi_statement.py ............................. [ 83%]\ntests/unit/test_open_line.py ........ [ 84%]\ntests/unit/test_oracle_adapter.py .........s [ 84%]\ntests/unit/test_password_command.py ...... [ 85%]\ntests/unit/test_postgresql_adapter.py .. [ 85%]\ntests/unit/test_probe_port.py ..... [ 85%]\ntests/unit/test_process_worker_fallback.py .... [ 85%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 85%]\ntests/unit/test_process_worker_statement_validation.py .. [ 85%]\ntests/unit/test_project_dir_routing.py ........................ [ 86%]\ntests/unit/test_query_alerts.py ...... [ 87%]\ntests/unit/test_query_alerts_hierarchy.py ................... [ 88%]\ntests/unit/test_query_confirm_integration.py ......... [ 88%]\ntests/unit/test_query_deletion.py ..... [ 88%]\ntests/unit/test_query_tab.py ....... [ 89%]\ntests/unit/test_results_copy_markup.py ....... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 90%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_stdin_secret.py .......... [ 92%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1686 passed, 420 skipped in 160.27s (0:02:40) =================",
|
| 120 |
+
"repeat": 2,
|
| 121 |
+
"state": "parent-regression"
|
| 122 |
+
},
|
| 123 |
+
{
|
| 124 |
+
"command": [
|
| 125 |
+
"pytest",
|
| 126 |
+
"-q",
|
| 127 |
+
"--timeout=60",
|
| 128 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator",
|
| 129 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator",
|
| 130 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"
|
| 131 |
+
],
|
| 132 |
+
"exit_code": 0,
|
| 133 |
+
"expected": "zero",
|
| 134 |
+
"output_sha256": "96a173a0c6e59f1ac983801fdec98f1e48f874be4c00990bdbb27185cc10c75c",
|
| 135 |
+
"output_tail": "============================= test session starts ==============================\nplatform linux -- Python 3.12.11, pytest-9.0.2, pluggy-1.6.0\nrootdir: /workspace/repo\nconfigfile: pyproject.toml\nplugins: asyncio-1.3.0, timeout-2.4.0, cov-7.0.0\nasyncio: mode=Mode.AUTO, debug=False, asyncio_default_fixture_loop_scope=function, asyncio_default_test_loop_scope=function\ntimeout: 60.0s\ntimeout method: signal\ntimeout func_only: False\ncollected 10 items\n\ntests/connections/providers/oracle/test_statement_execution.py ......... [ 90%]\n. [100%]\n\n============================== 10 passed in 0.09s ==============================",
|
| 136 |
+
"repeat": 2,
|
| 137 |
+
"state": "gold-hidden"
|
| 138 |
+
},
|
| 139 |
+
{
|
| 140 |
+
"command": [
|
| 141 |
+
"pytest",
|
| 142 |
+
"-q",
|
| 143 |
+
"--timeout=60",
|
| 144 |
+
"tests/",
|
| 145 |
+
"--ignore=tests/test_mssql.py",
|
| 146 |
+
"--ignore=tests/test_postgresql.py",
|
| 147 |
+
"--ignore=tests/test_mysql.py",
|
| 148 |
+
"--ignore=tests/test_oracle.py",
|
| 149 |
+
"--ignore=tests/test_mariadb.py",
|
| 150 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 151 |
+
"--ignore=tests/test_turso.py",
|
| 152 |
+
"--ignore=tests/test_firebird.py",
|
| 153 |
+
"--ignore=tests/test_ssh.py",
|
| 154 |
+
"--ignore=tests/test_clickhouse.py"
|
| 155 |
+
],
|
| 156 |
+
"exit_code": 0,
|
| 157 |
+
"expected": "zero",
|
| 158 |
+
"output_sha256": "23f5ff0399e0f9f92656ff7f6941d98a00243885f40f8e0b0b4e91eeb3164438",
|
| 159 |
+
"output_tail": "ests/unit/test_duckdb_data_files.py ................................... [ 76%]\n. [ 76%]\ntests/unit/test_editor_detection.py ........... [ 77%]\ntests/unit/test_executor_reset_on_connection_switch.py ....... [ 77%]\ntests/unit/test_extra_options_passthrough.py ....... [ 77%]\ntests/unit/test_flight_adapter.py ............................ [ 79%]\ntests/unit/test_history_store_file_backed.py ........................... [ 80%]\n [ 80%]\ntests/unit/test_incremental_rendering_numeric_range.py . [ 80%]\ntests/unit/test_install_strategy_uv.py ...... [ 80%]\ntests/unit/test_motherduck_adapter.py ........ [ 81%]\ntests/unit/test_mssql_adapter.py ........................... [ 82%]\ntests/unit/test_mssql_autocommit.py . [ 82%]\ntests/unit/test_multi_statement.py ............................. [ 83%]\ntests/unit/test_open_line.py ........ [ 84%]\ntests/unit/test_oracle_adapter.py .........s [ 84%]\ntests/unit/test_password_command.py ...... [ 85%]\ntests/unit/test_postgresql_adapter.py .. [ 85%]\ntests/unit/test_probe_port.py ..... [ 85%]\ntests/unit/test_process_worker_fallback.py .... [ 85%]\ntests/unit/test_process_worker_pickle_safety.py .... [ 85%]\ntests/unit/test_process_worker_statement_validation.py .. [ 85%]\ntests/unit/test_project_dir_routing.py ........................ [ 86%]\ntests/unit/test_query_alerts.py ...... [ 87%]\ntests/unit/test_query_alerts_hierarchy.py ................... [ 88%]\ntests/unit/test_query_confirm_integration.py ......... [ 88%]\ntests/unit/test_query_deletion.py ..... [ 88%]\ntests/unit/test_query_tab.py ....... [ 89%]\ntests/unit/test_results_copy_markup.py ....... [ 89%]\ntests/unit/test_sanitize_row.py .... [ 89%]\ntests/unit/test_schema_config_validator.py ... [ 89%]\ntests/unit/test_select_all.py .... [ 90%]\ntests/unit/test_single_statement_execution.py ............. [ 90%]\ntests/unit/test_snowflake_adapter.py ....... [ 90%]\ntests/unit/test_sqlite_returning.py ..... [ 91%]\ntests/unit/test_starred.py ............... [ 91%]\ntests/unit/test_stdin_secret.py .......... [ 92%]\ntests/unit/test_text_object_menu.py ...... [ 92%]\ntests/unit/test_tls_adapters.py .... [ 92%]\ntests/unit/test_transaction_executor.py .. [ 92%]\ntests/unit/test_transaction_state.py .................. [ 93%]\ntests/unit/test_tunnel_paramiko_version.py .. [ 93%]\ntests/unit/test_undo_history.py ............ [ 94%]\ntests/unit/test_url_parser.py .. [ 94%]\ntests/unit/test_vim_motions.py ......................................... [ 96%]\n.... [ 96%]\ntests/unit/test_vim_operators.py ................. [ 97%]\ntests/unit/test_vim_text_objects.py .............................. [ 98%]\ntests/unit/test_vim_visual_mode.py ...................... [100%]\n\n================ 1686 passed, 420 skipped in 160.70s (0:02:40) =================",
|
| 160 |
+
"repeat": 2,
|
| 161 |
+
"state": "gold-regression"
|
| 162 |
+
}
|
| 163 |
+
],
|
| 164 |
+
"fail_to_pass_command": [
|
| 165 |
+
"pytest",
|
| 166 |
+
"-q",
|
| 167 |
+
"--timeout=60",
|
| 168 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator",
|
| 169 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator",
|
| 170 |
+
"tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"
|
| 171 |
+
],
|
| 172 |
+
"fix_sha": "15835dce61c8a57671ae87061f95c362e5d59d49",
|
| 173 |
+
"local_image": "patcheval-validate:sqlit-260",
|
| 174 |
+
"local_image_id": "sha256:d75d54f60c7826281fe5a18ddb4600a04409f0c080607d1b5ffdc2bc65272036",
|
| 175 |
+
"parent_sha": "74dea205d2f9dac94218df26ac45bad8a6c73e5f",
|
| 176 |
+
"regression_command": [
|
| 177 |
+
"pytest",
|
| 178 |
+
"-q",
|
| 179 |
+
"--timeout=60",
|
| 180 |
+
"tests/",
|
| 181 |
+
"--ignore=tests/test_mssql.py",
|
| 182 |
+
"--ignore=tests/test_postgresql.py",
|
| 183 |
+
"--ignore=tests/test_mysql.py",
|
| 184 |
+
"--ignore=tests/test_oracle.py",
|
| 185 |
+
"--ignore=tests/test_mariadb.py",
|
| 186 |
+
"--ignore=tests/test_cockroachdb.py",
|
| 187 |
+
"--ignore=tests/test_turso.py",
|
| 188 |
+
"--ignore=tests/test_firebird.py",
|
| 189 |
+
"--ignore=tests/test_ssh.py",
|
| 190 |
+
"--ignore=tests/test_clickhouse.py"
|
| 191 |
+
],
|
| 192 |
+
"repeats": 2,
|
| 193 |
+
"repository": "Maxteabag/sqlit",
|
| 194 |
+
"runner_contract": {
|
| 195 |
+
"home": "/home/node",
|
| 196 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 197 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 198 |
+
"uid": "1000",
|
| 199 |
+
"user": "node"
|
| 200 |
+
},
|
| 201 |
+
"runtime_profile": {
|
| 202 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 203 |
+
"bootstrap_command": [],
|
| 204 |
+
"environment": [
|
| 205 |
+
"PYTHONPATH=/workspace/repo",
|
| 206 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 207 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 208 |
+
"XDG_CONFIG_HOME=/tmp/patcheval-config",
|
| 209 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_SQLIT_TUI=0.0.0"
|
| 210 |
+
],
|
| 211 |
+
"fail_exit_codes": [
|
| 212 |
+
1
|
| 213 |
+
],
|
| 214 |
+
"regression_command": [
|
| 215 |
+
"pytest",
|
| 216 |
+
"-q"
|
| 217 |
+
],
|
| 218 |
+
"setup_command": [],
|
| 219 |
+
"sync_command": [
|
| 220 |
+
"uv",
|
| 221 |
+
"sync",
|
| 222 |
+
"--frozen",
|
| 223 |
+
"--group",
|
| 224 |
+
"test",
|
| 225 |
+
"--no-dev",
|
| 226 |
+
"--extra",
|
| 227 |
+
"duckdb",
|
| 228 |
+
"--no-install-project"
|
| 229 |
+
],
|
| 230 |
+
"test_command": [
|
| 231 |
+
"pytest",
|
| 232 |
+
"-q"
|
| 233 |
+
],
|
| 234 |
+
"timeout_s": 900
|
| 235 |
+
},
|
| 236 |
+
"schema_version": 1,
|
| 237 |
+
"setup_command": [],
|
| 238 |
+
"task_id": "sqlit-260",
|
| 239 |
+
"validated": true
|
| 240 |
+
}
|
attestations/structlog-710.json
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-p",
|
| 10 |
+
"no:randomly",
|
| 11 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async",
|
| 12 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"
|
| 13 |
+
],
|
| 14 |
+
"exit_code": 1,
|
| 15 |
+
"expected": "test-failure",
|
| 16 |
+
"output_sha256": "d2bec03cfba5507a3e5280aba4ffce59120ed5840086c79b48bd6ff41f096239",
|
| 17 |
+
"output_tail": "ect.\n Thread information is now correctly captured before async bridge.\n \"\"\"\n string_io = StringIO()\n \n class StringIOLogger(structlog.PrintLogger):\n def __init__(self):\n super().__init__(file=string_io)\n \n processor = self.make_processor(None, [\"concurrent\", \"threading\"])\n structlog.configure(\n processors=[processor, JSONRenderer()],\n logger_factory=StringIOLogger,\n wrapper_class=wrapper_class,\n cache_logger_on_first_use=True,\n )\n \n logger = structlog.stdlib.get_logger()\n \n # Capture thread info before async call\n expected_thread = threading.get_ident()\n expected_thread_name = threading.current_thread().name\n \n callsite_params = self.get_callsite_parameters()\n await getattr(logger, method_name)(\"baz\")\n logger_params = json.loads(string_io.getvalue())\n \n> assert expected_thread == logger_params[\"thread\"]\nE assert 140060441699200 == 140060396824256\n\ntests/processors/test_processors.py:408: AssertionError\n_____________ TestCallsiteParameterAdder.test_async_native_logger ______________\n\nself = <tests.processors.test_processors.TestCallsiteParameterAdder object at 0x7f625aebd480>\n\n @pytest.mark.asyncio\n async def test_async_native_logger(self) -> None:\n \"\"\"\n Callsite thread information for native async invocations is correct.\n \"\"\"\n cf = CapturingLoggerFactory()\n structlog.configure(\n processors=[\n CallsiteParameterAdder(\n parameters=[\n CallsiteParameter.THREAD,\n CallsiteParameter.THREAD_NAME,\n ]\n ),\n ],\n logger_factory=cf,\n wrapper_class=structlog._native.BoundLoggerFilteringAtInfo,\n cache_logger_on_first_use=True,\n )\n \n logger = structlog.get_logger()\n \n expected_thread = threading.get_ident()\n expected_thread_name = threading.current_thread().name\n \n await logger.ainfo(\"test native async\")\n \n captured = cf.logger.calls[0].kwargs\n \n> assert expected_thread == captured[\"thread\"]\nE assert 140060441699200 == 140060406265536\n\ntests/processors/test_processors.py:447: AssertionError\n=============================== warnings summary ===============================\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_processor, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_e2e, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n=========================== short test summary info ============================\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async[BoundLogger-ainfo]\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async[AsyncBoundLogger-info]\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger\n3 failed, 2 warnings in 0.08s",
|
| 18 |
+
"repeat": 1,
|
| 19 |
+
"state": "parent-hidden"
|
| 20 |
+
},
|
| 21 |
+
{
|
| 22 |
+
"command": [
|
| 23 |
+
"python",
|
| 24 |
+
"-m",
|
| 25 |
+
"pytest",
|
| 26 |
+
"-q",
|
| 27 |
+
"-p",
|
| 28 |
+
"no:randomly",
|
| 29 |
+
"tests"
|
| 30 |
+
],
|
| 31 |
+
"exit_code": 0,
|
| 32 |
+
"expected": "zero",
|
| 33 |
+
"output_sha256": "2f382bee69a3fb0fd2a01650df384f87ed08230036a357dd0efbe57aef402faf",
|
| 34 |
+
"output_tail": "urceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_10/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestLoggers::test_pickle_not_stdout_stderr[PrintLogger-5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_11/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[0]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_12/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[1]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_13/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[2]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_14/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[3]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_15/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[4]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_16/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_17/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n880 passed, 37 skipped, 20 warnings in 1.40s",
|
| 35 |
+
"repeat": 1,
|
| 36 |
+
"state": "parent-regression"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"command": [
|
| 40 |
+
"python",
|
| 41 |
+
"-m",
|
| 42 |
+
"pytest",
|
| 43 |
+
"-q",
|
| 44 |
+
"-p",
|
| 45 |
+
"no:randomly",
|
| 46 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async",
|
| 47 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"
|
| 48 |
+
],
|
| 49 |
+
"exit_code": 0,
|
| 50 |
+
"expected": "zero",
|
| 51 |
+
"output_sha256": "fe519a57baadae40bd4ec358a308fa6f07063800fcefa9232953828e36d896e5",
|
| 52 |
+
"output_tail": "... [100%]\n=============================== warnings summary ===============================\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_processor, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_e2e, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n3 passed, 2 warnings in 0.06s",
|
| 53 |
+
"repeat": 1,
|
| 54 |
+
"state": "gold-hidden"
|
| 55 |
+
},
|
| 56 |
+
{
|
| 57 |
+
"command": [
|
| 58 |
+
"python",
|
| 59 |
+
"-m",
|
| 60 |
+
"pytest",
|
| 61 |
+
"-q",
|
| 62 |
+
"-p",
|
| 63 |
+
"no:randomly",
|
| 64 |
+
"tests"
|
| 65 |
+
],
|
| 66 |
+
"exit_code": 0,
|
| 67 |
+
"expected": "zero",
|
| 68 |
+
"output_sha256": "0d3fffdc2e3bf46c29fce29b1ca416a959c77b8e17d56fe16581b84f8a81e64e",
|
| 69 |
+
"output_tail": "urceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_10/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestLoggers::test_pickle_not_stdout_stderr[PrintLogger-5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_11/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[0]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_12/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[1]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_13/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[2]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_14/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[3]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_15/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[4]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_16/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_17/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n880 passed, 37 skipped, 20 warnings in 1.39s",
|
| 70 |
+
"repeat": 1,
|
| 71 |
+
"state": "gold-regression"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"command": [
|
| 75 |
+
"python",
|
| 76 |
+
"-m",
|
| 77 |
+
"pytest",
|
| 78 |
+
"-q",
|
| 79 |
+
"-p",
|
| 80 |
+
"no:randomly",
|
| 81 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async",
|
| 82 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"
|
| 83 |
+
],
|
| 84 |
+
"exit_code": 1,
|
| 85 |
+
"expected": "test-failure",
|
| 86 |
+
"output_sha256": "39c7c98abc3c8118c034a0713626708e3c1f56f0c583dc87d5157de53d057226",
|
| 87 |
+
"output_tail": "ect.\n Thread information is now correctly captured before async bridge.\n \"\"\"\n string_io = StringIO()\n \n class StringIOLogger(structlog.PrintLogger):\n def __init__(self):\n super().__init__(file=string_io)\n \n processor = self.make_processor(None, [\"concurrent\", \"threading\"])\n structlog.configure(\n processors=[processor, JSONRenderer()],\n logger_factory=StringIOLogger,\n wrapper_class=wrapper_class,\n cache_logger_on_first_use=True,\n )\n \n logger = structlog.stdlib.get_logger()\n \n # Capture thread info before async call\n expected_thread = threading.get_ident()\n expected_thread_name = threading.current_thread().name\n \n callsite_params = self.get_callsite_parameters()\n await getattr(logger, method_name)(\"baz\")\n logger_params = json.loads(string_io.getvalue())\n \n> assert expected_thread == logger_params[\"thread\"]\nE assert 140025025811328 == 140024980936384\n\ntests/processors/test_processors.py:408: AssertionError\n_____________ TestCallsiteParameterAdder.test_async_native_logger ______________\n\nself = <tests.processors.test_processors.TestCallsiteParameterAdder object at 0x7f5a1bf65480>\n\n @pytest.mark.asyncio\n async def test_async_native_logger(self) -> None:\n \"\"\"\n Callsite thread information for native async invocations is correct.\n \"\"\"\n cf = CapturingLoggerFactory()\n structlog.configure(\n processors=[\n CallsiteParameterAdder(\n parameters=[\n CallsiteParameter.THREAD,\n CallsiteParameter.THREAD_NAME,\n ]\n ),\n ],\n logger_factory=cf,\n wrapper_class=structlog._native.BoundLoggerFilteringAtInfo,\n cache_logger_on_first_use=True,\n )\n \n logger = structlog.get_logger()\n \n expected_thread = threading.get_ident()\n expected_thread_name = threading.current_thread().name\n \n await logger.ainfo(\"test native async\")\n \n captured = cf.logger.calls[0].kwargs\n \n> assert expected_thread == captured[\"thread\"]\nE assert 140025025811328 == 140024990377664\n\ntests/processors/test_processors.py:447: AssertionError\n=============================== warnings summary ===============================\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_processor, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_e2e, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n=========================== short test summary info ============================\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async[BoundLogger-ainfo]\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async[AsyncBoundLogger-info]\nFAILED tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger\n3 failed, 2 warnings in 0.08s",
|
| 88 |
+
"repeat": 2,
|
| 89 |
+
"state": "parent-hidden"
|
| 90 |
+
},
|
| 91 |
+
{
|
| 92 |
+
"command": [
|
| 93 |
+
"python",
|
| 94 |
+
"-m",
|
| 95 |
+
"pytest",
|
| 96 |
+
"-q",
|
| 97 |
+
"-p",
|
| 98 |
+
"no:randomly",
|
| 99 |
+
"tests"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 0,
|
| 102 |
+
"expected": "zero",
|
| 103 |
+
"output_sha256": "44cd6a86296f78d8587b911e31ec6be42a68c4a33a9f1c9799282b009a6135fe",
|
| 104 |
+
"output_tail": "urceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_10/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestLoggers::test_pickle_not_stdout_stderr[PrintLogger-5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_11/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[0]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_12/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[1]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_13/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[2]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_14/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[3]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_15/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[4]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_16/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_17/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n880 passed, 37 skipped, 20 warnings in 1.45s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "parent-regression"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"-p",
|
| 115 |
+
"no:randomly",
|
| 116 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async",
|
| 117 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"
|
| 118 |
+
],
|
| 119 |
+
"exit_code": 0,
|
| 120 |
+
"expected": "zero",
|
| 121 |
+
"output_sha256": "fe519a57baadae40bd4ec358a308fa6f07063800fcefa9232953828e36d896e5",
|
| 122 |
+
"output_tail": "... [100%]\n=============================== warnings summary ===============================\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_processor, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n../../opt/venv/lib/python3.14/site-packages/_pytest/python.py:124\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:124: PytestRemovedIn10Warning: Passing a non-Collection iterable to parametrize is deprecated.\n Test: tests/processors/test_processors.py::TestCallsiteParameterAdder::test_e2e, argvalues type: product\n Please convert to a list or tuple.\n See https://docs.pytest.org/en/stable/deprecations.html#parametrize-iterators\n metafunc.parametrize(*marker.args, **marker.kwargs, _param_mark=marker)\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n3 passed, 2 warnings in 0.06s",
|
| 123 |
+
"repeat": 2,
|
| 124 |
+
"state": "gold-hidden"
|
| 125 |
+
},
|
| 126 |
+
{
|
| 127 |
+
"command": [
|
| 128 |
+
"python",
|
| 129 |
+
"-m",
|
| 130 |
+
"pytest",
|
| 131 |
+
"-q",
|
| 132 |
+
"-p",
|
| 133 |
+
"no:randomly",
|
| 134 |
+
"tests"
|
| 135 |
+
],
|
| 136 |
+
"exit_code": 0,
|
| 137 |
+
"expected": "zero",
|
| 138 |
+
"output_sha256": "0d3fffdc2e3bf46c29fce29b1ca416a959c77b8e17d56fe16581b84f8a81e64e",
|
| 139 |
+
"output_tail": "urceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_10/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestLoggers::test_pickle_not_stdout_stderr[PrintLogger-5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_11/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[0]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_12/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[1]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_13/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[2]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_14/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[3]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_15/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[4]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_16/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\ntests/test_output.py::TestBytesLogger::test_pickle_not_stdout_stderr[5]\n /opt/venv/lib/python3.14/site-packages/_pytest/python.py:167: ResourceWarning: unclosed file <_io.TextIOWrapper name='/tmp/pytest-of-node/pytest-0/test_pickle_not_stdout_stderr_17/file.log' mode='r' encoding='UTF-8'>\n result = testfunction(**testargs)\n Enable tracemalloc to get traceback where the object was allocated.\n See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.\n\n-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html\n880 passed, 37 skipped, 20 warnings in 1.39s",
|
| 140 |
+
"repeat": 2,
|
| 141 |
+
"state": "gold-regression"
|
| 142 |
+
}
|
| 143 |
+
],
|
| 144 |
+
"fail_to_pass_command": [
|
| 145 |
+
"python",
|
| 146 |
+
"-m",
|
| 147 |
+
"pytest",
|
| 148 |
+
"-q",
|
| 149 |
+
"-p",
|
| 150 |
+
"no:randomly",
|
| 151 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async",
|
| 152 |
+
"tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"
|
| 153 |
+
],
|
| 154 |
+
"fix_sha": "ba04ac275291ea1754aba24643d17cb8e5638c66",
|
| 155 |
+
"local_image": "patcheval-validate:structlog-710",
|
| 156 |
+
"local_image_id": "sha256:313184fa5e1ce56d73c81913fe2c1a0bdb793e1a533e80df97c13335800f00d2",
|
| 157 |
+
"parent_sha": "c6e7cad18ffe91febf2b97dac03a465134b1a5d1",
|
| 158 |
+
"regression_command": [
|
| 159 |
+
"python",
|
| 160 |
+
"-m",
|
| 161 |
+
"pytest",
|
| 162 |
+
"-q",
|
| 163 |
+
"-p",
|
| 164 |
+
"no:randomly",
|
| 165 |
+
"tests"
|
| 166 |
+
],
|
| 167 |
+
"repeats": 2,
|
| 168 |
+
"repository": "hynek/structlog",
|
| 169 |
+
"runner_contract": {
|
| 170 |
+
"home": "/home/node",
|
| 171 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.47.3\nripgrep 14.1.1",
|
| 172 |
+
"smoke_output_sha256": "1f9f54eb0528523e3fe1a96cfad2629677cab32bb4348a4eaa6992145e8608fc",
|
| 173 |
+
"uid": "1000",
|
| 174 |
+
"user": "node"
|
| 175 |
+
},
|
| 176 |
+
"runtime_profile": {
|
| 177 |
+
"base_image": "ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim@sha256:dfe4069fefc02ee4d6097c26f31d0784df09c9b6242fb4a25ad31fbae74ec6aa",
|
| 178 |
+
"bootstrap_command": [
|
| 179 |
+
"uv",
|
| 180 |
+
"pip",
|
| 181 |
+
"install",
|
| 182 |
+
"--python",
|
| 183 |
+
"/opt/venv/bin/python",
|
| 184 |
+
"--only-binary",
|
| 185 |
+
":all:",
|
| 186 |
+
"hatchling==1.27.0",
|
| 187 |
+
"hatch-vcs==0.5.0",
|
| 188 |
+
"hatch-fancy-pypi-readme==25.1.0",
|
| 189 |
+
"setuptools-scm==9.2.0",
|
| 190 |
+
"editables==0.5"
|
| 191 |
+
],
|
| 192 |
+
"environment": [
|
| 193 |
+
"HOME=/home/node",
|
| 194 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 195 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 196 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 197 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 198 |
+
"PYTHONHASHSEED=0",
|
| 199 |
+
"PIP_NO_INDEX=1",
|
| 200 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 201 |
+
"UV_OFFLINE=1",
|
| 202 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_STRUCTLOG=0.0.0",
|
| 203 |
+
"LANG=C.UTF-8",
|
| 204 |
+
"LC_ALL=C.UTF-8",
|
| 205 |
+
"TZ=UTC",
|
| 206 |
+
"TERM=dumb",
|
| 207 |
+
"NO_COLOR=1",
|
| 208 |
+
"PYTHON_COLORS=0"
|
| 209 |
+
],
|
| 210 |
+
"fail_exit_codes": [
|
| 211 |
+
1
|
| 212 |
+
],
|
| 213 |
+
"regression_command": [
|
| 214 |
+
"python",
|
| 215 |
+
"-m",
|
| 216 |
+
"pytest",
|
| 217 |
+
"-q",
|
| 218 |
+
"-p",
|
| 219 |
+
"no:randomly",
|
| 220 |
+
"tests"
|
| 221 |
+
],
|
| 222 |
+
"setup_command": [
|
| 223 |
+
"/bin/sh",
|
| 224 |
+
"-ec",
|
| 225 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 226 |
+
],
|
| 227 |
+
"sync_command": [
|
| 228 |
+
"/bin/sh",
|
| 229 |
+
"-ec",
|
| 230 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_STRUCTLOG=0.0.0 uv sync --no-default-groups --group tests --no-install-project"
|
| 231 |
+
],
|
| 232 |
+
"test_command": [
|
| 233 |
+
"python",
|
| 234 |
+
"-m",
|
| 235 |
+
"pytest",
|
| 236 |
+
"-q",
|
| 237 |
+
"-p",
|
| 238 |
+
"no:randomly"
|
| 239 |
+
],
|
| 240 |
+
"timeout_s": 900
|
| 241 |
+
},
|
| 242 |
+
"schema_version": 1,
|
| 243 |
+
"setup_command": [
|
| 244 |
+
"/bin/sh",
|
| 245 |
+
"-ec",
|
| 246 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 247 |
+
],
|
| 248 |
+
"task_id": "structlog-710",
|
| 249 |
+
"validated": true
|
| 250 |
+
}
|
attestations/tomlkit-440.json
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-o",
|
| 10 |
+
"cache_dir=/tmp/pytest-cache",
|
| 11 |
+
"tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"
|
| 12 |
+
],
|
| 13 |
+
"exit_code": 1,
|
| 14 |
+
"expected": "test-failure",
|
| 15 |
+
"output_sha256": "7fd36babf9353dd82171d58db7e95c71d2932ef5c3b76b9507840e8ddf0eada4",
|
| 16 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n________ test_add_key_after_dotted_inline_table_without_ending_newline _________\n\n def test_add_key_after_dotted_inline_table_without_ending_newline() -> None:\n content = \"[x]\\na.b = {}\"\n doc = parse(content)\n doc[\"x\"][\"c\"] = 3\n \n> assert doc.as_string() == \"[x]\\na.b = {}\\nc = 3\\n\"\nE AssertionError: assert '[x]\\na.b = {}c = 3\\n' == '[x]\\na.b = {}\\nc = 3\\n'\nE [x]\nE - a.b = {}\nE + a.b = {}c = 3\nE ? +++++\nE - c = 3\n\ntests/test_toml_document.py:1536: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline\n1 failed in 0.12s",
|
| 17 |
+
"repeat": 1,
|
| 18 |
+
"state": "parent-hidden"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"command": [
|
| 22 |
+
"python",
|
| 23 |
+
"-m",
|
| 24 |
+
"pytest",
|
| 25 |
+
"-q",
|
| 26 |
+
"-o",
|
| 27 |
+
"cache_dir=/tmp/pytest-cache",
|
| 28 |
+
"tests",
|
| 29 |
+
"--ignore=tests/test_toml_tests.py"
|
| 30 |
+
],
|
| 31 |
+
"exit_code": 0,
|
| 32 |
+
"expected": "zero",
|
| 33 |
+
"output_sha256": "a1ed32ed1c1f35f0475861c6efc7c5ec6676c05680c84b1c38e11cc5bfc2ac1f",
|
| 34 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 61%]\n........................................................................ [ 81%]\n.................................................................. [100%]\n354 passed in 0.69s",
|
| 35 |
+
"repeat": 1,
|
| 36 |
+
"state": "parent-regression"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"command": [
|
| 40 |
+
"python",
|
| 41 |
+
"-m",
|
| 42 |
+
"pytest",
|
| 43 |
+
"-q",
|
| 44 |
+
"-o",
|
| 45 |
+
"cache_dir=/tmp/pytest-cache",
|
| 46 |
+
"tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "c1ff6fa3d412a24d2a636251f6dbcf1c16422151ed81d9ddba0bb844bd647d7b",
|
| 51 |
+
"output_tail": ". [100%]\n1 passed in 0.10s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-hidden"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"python",
|
| 58 |
+
"-m",
|
| 59 |
+
"pytest",
|
| 60 |
+
"-q",
|
| 61 |
+
"-o",
|
| 62 |
+
"cache_dir=/tmp/pytest-cache",
|
| 63 |
+
"tests",
|
| 64 |
+
"--ignore=tests/test_toml_tests.py"
|
| 65 |
+
],
|
| 66 |
+
"exit_code": 0,
|
| 67 |
+
"expected": "zero",
|
| 68 |
+
"output_sha256": "10bf14087d9a4a102dc08e4f6155095424097cc7e501a8e18edd7177d0863c89",
|
| 69 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 61%]\n........................................................................ [ 81%]\n.................................................................. [100%]\n354 passed in 0.67s",
|
| 70 |
+
"repeat": 1,
|
| 71 |
+
"state": "gold-regression"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"command": [
|
| 75 |
+
"python",
|
| 76 |
+
"-m",
|
| 77 |
+
"pytest",
|
| 78 |
+
"-q",
|
| 79 |
+
"-o",
|
| 80 |
+
"cache_dir=/tmp/pytest-cache",
|
| 81 |
+
"tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"
|
| 82 |
+
],
|
| 83 |
+
"exit_code": 1,
|
| 84 |
+
"expected": "test-failure",
|
| 85 |
+
"output_sha256": "7fd36babf9353dd82171d58db7e95c71d2932ef5c3b76b9507840e8ddf0eada4",
|
| 86 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n________ test_add_key_after_dotted_inline_table_without_ending_newline _________\n\n def test_add_key_after_dotted_inline_table_without_ending_newline() -> None:\n content = \"[x]\\na.b = {}\"\n doc = parse(content)\n doc[\"x\"][\"c\"] = 3\n \n> assert doc.as_string() == \"[x]\\na.b = {}\\nc = 3\\n\"\nE AssertionError: assert '[x]\\na.b = {}c = 3\\n' == '[x]\\na.b = {}\\nc = 3\\n'\nE [x]\nE - a.b = {}\nE + a.b = {}c = 3\nE ? +++++\nE - c = 3\n\ntests/test_toml_document.py:1536: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline\n1 failed in 0.12s",
|
| 87 |
+
"repeat": 2,
|
| 88 |
+
"state": "parent-hidden"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"command": [
|
| 92 |
+
"python",
|
| 93 |
+
"-m",
|
| 94 |
+
"pytest",
|
| 95 |
+
"-q",
|
| 96 |
+
"-o",
|
| 97 |
+
"cache_dir=/tmp/pytest-cache",
|
| 98 |
+
"tests",
|
| 99 |
+
"--ignore=tests/test_toml_tests.py"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 0,
|
| 102 |
+
"expected": "zero",
|
| 103 |
+
"output_sha256": "10bf14087d9a4a102dc08e4f6155095424097cc7e501a8e18edd7177d0863c89",
|
| 104 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 61%]\n........................................................................ [ 81%]\n.................................................................. [100%]\n354 passed in 0.67s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "parent-regression"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"-o",
|
| 115 |
+
"cache_dir=/tmp/pytest-cache",
|
| 116 |
+
"tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"
|
| 117 |
+
],
|
| 118 |
+
"exit_code": 0,
|
| 119 |
+
"expected": "zero",
|
| 120 |
+
"output_sha256": "c1ff6fa3d412a24d2a636251f6dbcf1c16422151ed81d9ddba0bb844bd647d7b",
|
| 121 |
+
"output_tail": ". [100%]\n1 passed in 0.10s",
|
| 122 |
+
"repeat": 2,
|
| 123 |
+
"state": "gold-hidden"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"command": [
|
| 127 |
+
"python",
|
| 128 |
+
"-m",
|
| 129 |
+
"pytest",
|
| 130 |
+
"-q",
|
| 131 |
+
"-o",
|
| 132 |
+
"cache_dir=/tmp/pytest-cache",
|
| 133 |
+
"tests",
|
| 134 |
+
"--ignore=tests/test_toml_tests.py"
|
| 135 |
+
],
|
| 136 |
+
"exit_code": 0,
|
| 137 |
+
"expected": "zero",
|
| 138 |
+
"output_sha256": "feffe5a43defff9d9b742d4c0be2b3d2fe2040d0c00a889f5abc699190585ef1",
|
| 139 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 61%]\n........................................................................ [ 81%]\n.................................................................. [100%]\n354 passed in 0.70s",
|
| 140 |
+
"repeat": 2,
|
| 141 |
+
"state": "gold-regression"
|
| 142 |
+
}
|
| 143 |
+
],
|
| 144 |
+
"fail_to_pass_command": [
|
| 145 |
+
"python",
|
| 146 |
+
"-m",
|
| 147 |
+
"pytest",
|
| 148 |
+
"-q",
|
| 149 |
+
"-o",
|
| 150 |
+
"cache_dir=/tmp/pytest-cache",
|
| 151 |
+
"tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"
|
| 152 |
+
],
|
| 153 |
+
"fix_sha": "43668ddebc3f082bf385d328aceed18d26976897",
|
| 154 |
+
"local_image": "patcheval-validate:tomlkit-440",
|
| 155 |
+
"local_image_id": "sha256:30626141da9c50ff0651069c5afcc2806ef54211c29c3a9ed0da526fa352605c",
|
| 156 |
+
"parent_sha": "d3c76f0bbe90af4b12a3b83bd8e59bc9061dfe85",
|
| 157 |
+
"regression_command": [
|
| 158 |
+
"python",
|
| 159 |
+
"-m",
|
| 160 |
+
"pytest",
|
| 161 |
+
"-q",
|
| 162 |
+
"-o",
|
| 163 |
+
"cache_dir=/tmp/pytest-cache",
|
| 164 |
+
"tests",
|
| 165 |
+
"--ignore=tests/test_toml_tests.py"
|
| 166 |
+
],
|
| 167 |
+
"repeats": 2,
|
| 168 |
+
"repository": "python-poetry/tomlkit",
|
| 169 |
+
"runner_contract": {
|
| 170 |
+
"home": "/home/node",
|
| 171 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 172 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 173 |
+
"uid": "1000",
|
| 174 |
+
"user": "node"
|
| 175 |
+
},
|
| 176 |
+
"runtime_profile": {
|
| 177 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 178 |
+
"bootstrap_command": [],
|
| 179 |
+
"environment": [
|
| 180 |
+
"HOME=/home/node",
|
| 181 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 182 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 183 |
+
"PYTHONPATH=/workspace/repo",
|
| 184 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 185 |
+
"PYTHONUNBUFFERED=1",
|
| 186 |
+
"PYTHONHASHSEED=0",
|
| 187 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 188 |
+
"PIP_NO_INDEX=1",
|
| 189 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 190 |
+
"UV_OFFLINE=1",
|
| 191 |
+
"TZ=UTC",
|
| 192 |
+
"LANG=C.UTF-8",
|
| 193 |
+
"LC_ALL=C.UTF-8",
|
| 194 |
+
"TERM=dumb",
|
| 195 |
+
"NO_COLOR=1",
|
| 196 |
+
"PYTHON_COLORS=0"
|
| 197 |
+
],
|
| 198 |
+
"fail_exit_codes": [
|
| 199 |
+
1
|
| 200 |
+
],
|
| 201 |
+
"regression_command": [
|
| 202 |
+
"python",
|
| 203 |
+
"-m",
|
| 204 |
+
"pytest",
|
| 205 |
+
"-q",
|
| 206 |
+
"tests"
|
| 207 |
+
],
|
| 208 |
+
"setup_command": [],
|
| 209 |
+
"sync_command": [
|
| 210 |
+
"/bin/sh",
|
| 211 |
+
"-ec",
|
| 212 |
+
"python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: pytest==7.4.4 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0"
|
| 213 |
+
],
|
| 214 |
+
"test_command": [
|
| 215 |
+
"python",
|
| 216 |
+
"-m",
|
| 217 |
+
"pytest",
|
| 218 |
+
"-q"
|
| 219 |
+
],
|
| 220 |
+
"timeout_s": 300
|
| 221 |
+
},
|
| 222 |
+
"schema_version": 1,
|
| 223 |
+
"setup_command": [],
|
| 224 |
+
"task_id": "tomlkit-440",
|
| 225 |
+
"validated": true
|
| 226 |
+
}
|
attestations/tomlkit-542.json
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"-o",
|
| 10 |
+
"cache_dir=/tmp/pytest-cache",
|
| 11 |
+
"tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"
|
| 12 |
+
],
|
| 13 |
+
"exit_code": 1,
|
| 14 |
+
"expected": "test-failure",
|
| 15 |
+
"output_sha256": "b9b96c533925c5773c5c050c079a34928567bd7c49c8e911b9546e7530404658",
|
| 16 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n___________ test_replace_dotted_key_with_aot_keeps_following_sibling ___________\n\n def test_replace_dotted_key_with_aot_keeps_following_sibling() -> None:\n # https://github.com/python-poetry/tomlkit/issues/542\n content = \"\"\"a.b = 1\n c.d = 2\n \"\"\"\n doc = parse(content)\n arr = tomlkit.aot()\n tbl = tomlkit.table()\n tbl[\"x\"] = 9\n arr.append(tbl)\n doc[\"a\"] = arr\n> assert (\n doc.as_string()\n == \"\"\"c.d = 2\n \n [[a]]\n x = 9\n \"\"\"\n )\nE AssertionError: assert '[[a]]\\nx = 9\\nc.d = 2\\n' == 'c.d = 2\\n\\n[[a]]\\nx = 9\\n'\nE - c.d = 2\nE - \nE [[a]]\nE x = 9\nE + c.d = 2\n\ntests/test_toml_document.py:1184: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling\n1 failed in 0.13s",
|
| 17 |
+
"repeat": 1,
|
| 18 |
+
"state": "parent-hidden"
|
| 19 |
+
},
|
| 20 |
+
{
|
| 21 |
+
"command": [
|
| 22 |
+
"python",
|
| 23 |
+
"-m",
|
| 24 |
+
"pytest",
|
| 25 |
+
"-q",
|
| 26 |
+
"-o",
|
| 27 |
+
"cache_dir=/tmp/pytest-cache",
|
| 28 |
+
"tests",
|
| 29 |
+
"--ignore=tests/test_toml_tests.py"
|
| 30 |
+
],
|
| 31 |
+
"exit_code": 0,
|
| 32 |
+
"expected": "zero",
|
| 33 |
+
"output_sha256": "1e15c07f75f3ffcda30fd8a032e9f20d592fb677bb77e5674ea17bc77173c6aa",
|
| 34 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 60%]\n........................................................................ [ 80%]\n........................................................................ [100%]\n360 passed in 0.74s",
|
| 35 |
+
"repeat": 1,
|
| 36 |
+
"state": "parent-regression"
|
| 37 |
+
},
|
| 38 |
+
{
|
| 39 |
+
"command": [
|
| 40 |
+
"python",
|
| 41 |
+
"-m",
|
| 42 |
+
"pytest",
|
| 43 |
+
"-q",
|
| 44 |
+
"-o",
|
| 45 |
+
"cache_dir=/tmp/pytest-cache",
|
| 46 |
+
"tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"
|
| 47 |
+
],
|
| 48 |
+
"exit_code": 0,
|
| 49 |
+
"expected": "zero",
|
| 50 |
+
"output_sha256": "52101d72c088045af4d065abe4ecef9b401dfeeb96a0c410254523c28377359a",
|
| 51 |
+
"output_tail": ". [100%]\n1 passed in 0.12s",
|
| 52 |
+
"repeat": 1,
|
| 53 |
+
"state": "gold-hidden"
|
| 54 |
+
},
|
| 55 |
+
{
|
| 56 |
+
"command": [
|
| 57 |
+
"python",
|
| 58 |
+
"-m",
|
| 59 |
+
"pytest",
|
| 60 |
+
"-q",
|
| 61 |
+
"-o",
|
| 62 |
+
"cache_dir=/tmp/pytest-cache",
|
| 63 |
+
"tests",
|
| 64 |
+
"--ignore=tests/test_toml_tests.py"
|
| 65 |
+
],
|
| 66 |
+
"exit_code": 0,
|
| 67 |
+
"expected": "zero",
|
| 68 |
+
"output_sha256": "c09301e5a2a0acf195ec48a1a02eb81d4dc68a15b0d060aec5c0f1361b1c23ba",
|
| 69 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 60%]\n........................................................................ [ 80%]\n........................................................................ [100%]\n360 passed in 0.72s",
|
| 70 |
+
"repeat": 1,
|
| 71 |
+
"state": "gold-regression"
|
| 72 |
+
},
|
| 73 |
+
{
|
| 74 |
+
"command": [
|
| 75 |
+
"python",
|
| 76 |
+
"-m",
|
| 77 |
+
"pytest",
|
| 78 |
+
"-q",
|
| 79 |
+
"-o",
|
| 80 |
+
"cache_dir=/tmp/pytest-cache",
|
| 81 |
+
"tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"
|
| 82 |
+
],
|
| 83 |
+
"exit_code": 1,
|
| 84 |
+
"expected": "test-failure",
|
| 85 |
+
"output_sha256": "a95e8ee6febfb0cf34bf9f57ea9c577556321961424d0677992d98b5dc0fd358",
|
| 86 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n___________ test_replace_dotted_key_with_aot_keeps_following_sibling ___________\n\n def test_replace_dotted_key_with_aot_keeps_following_sibling() -> None:\n # https://github.com/python-poetry/tomlkit/issues/542\n content = \"\"\"a.b = 1\n c.d = 2\n \"\"\"\n doc = parse(content)\n arr = tomlkit.aot()\n tbl = tomlkit.table()\n tbl[\"x\"] = 9\n arr.append(tbl)\n doc[\"a\"] = arr\n> assert (\n doc.as_string()\n == \"\"\"c.d = 2\n \n [[a]]\n x = 9\n \"\"\"\n )\nE AssertionError: assert '[[a]]\\nx = 9\\nc.d = 2\\n' == 'c.d = 2\\n\\n[[a]]\\nx = 9\\n'\nE - c.d = 2\nE - \nE [[a]]\nE x = 9\nE + c.d = 2\n\ntests/test_toml_document.py:1184: AssertionError\n=========================== short test summary info ============================\nFAILED tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling\n1 failed in 0.12s",
|
| 87 |
+
"repeat": 2,
|
| 88 |
+
"state": "parent-hidden"
|
| 89 |
+
},
|
| 90 |
+
{
|
| 91 |
+
"command": [
|
| 92 |
+
"python",
|
| 93 |
+
"-m",
|
| 94 |
+
"pytest",
|
| 95 |
+
"-q",
|
| 96 |
+
"-o",
|
| 97 |
+
"cache_dir=/tmp/pytest-cache",
|
| 98 |
+
"tests",
|
| 99 |
+
"--ignore=tests/test_toml_tests.py"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 0,
|
| 102 |
+
"expected": "zero",
|
| 103 |
+
"output_sha256": "1e15c07f75f3ffcda30fd8a032e9f20d592fb677bb77e5674ea17bc77173c6aa",
|
| 104 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 60%]\n........................................................................ [ 80%]\n........................................................................ [100%]\n360 passed in 0.74s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "parent-regression"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"-o",
|
| 115 |
+
"cache_dir=/tmp/pytest-cache",
|
| 116 |
+
"tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"
|
| 117 |
+
],
|
| 118 |
+
"exit_code": 0,
|
| 119 |
+
"expected": "zero",
|
| 120 |
+
"output_sha256": "6ef9d4050462918cdf35d353527ef4e32568dadc63888db9cf1294f67af38b0d",
|
| 121 |
+
"output_tail": ". [100%]\n1 passed in 0.11s",
|
| 122 |
+
"repeat": 2,
|
| 123 |
+
"state": "gold-hidden"
|
| 124 |
+
},
|
| 125 |
+
{
|
| 126 |
+
"command": [
|
| 127 |
+
"python",
|
| 128 |
+
"-m",
|
| 129 |
+
"pytest",
|
| 130 |
+
"-q",
|
| 131 |
+
"-o",
|
| 132 |
+
"cache_dir=/tmp/pytest-cache",
|
| 133 |
+
"tests",
|
| 134 |
+
"--ignore=tests/test_toml_tests.py"
|
| 135 |
+
],
|
| 136 |
+
"exit_code": 0,
|
| 137 |
+
"expected": "zero",
|
| 138 |
+
"output_sha256": "9a06da342a55ac0226dcd8c62d91e54d81eb3cfadd4c635f5ad00cf43fca93e7",
|
| 139 |
+
"output_tail": "........................................................................ [ 20%]\n........................................................................ [ 40%]\n........................................................................ [ 60%]\n........................................................................ [ 80%]\n........................................................................ [100%]\n360 passed in 0.68s",
|
| 140 |
+
"repeat": 2,
|
| 141 |
+
"state": "gold-regression"
|
| 142 |
+
}
|
| 143 |
+
],
|
| 144 |
+
"fail_to_pass_command": [
|
| 145 |
+
"python",
|
| 146 |
+
"-m",
|
| 147 |
+
"pytest",
|
| 148 |
+
"-q",
|
| 149 |
+
"-o",
|
| 150 |
+
"cache_dir=/tmp/pytest-cache",
|
| 151 |
+
"tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"
|
| 152 |
+
],
|
| 153 |
+
"fix_sha": "67d3e86502706df2a9ed67114ab67e25bcdcbbb7",
|
| 154 |
+
"local_image": "patcheval-validate:tomlkit-542",
|
| 155 |
+
"local_image_id": "sha256:59e453e378f0288c5890ffbcdf9a4ca8b5edf3b5406b8a75bcf75d10279a17ac",
|
| 156 |
+
"parent_sha": "e23a25438c6cc9b8cc28b6dcf76dc52f9c7a33e3",
|
| 157 |
+
"regression_command": [
|
| 158 |
+
"python",
|
| 159 |
+
"-m",
|
| 160 |
+
"pytest",
|
| 161 |
+
"-q",
|
| 162 |
+
"-o",
|
| 163 |
+
"cache_dir=/tmp/pytest-cache",
|
| 164 |
+
"tests",
|
| 165 |
+
"--ignore=tests/test_toml_tests.py"
|
| 166 |
+
],
|
| 167 |
+
"repeats": 2,
|
| 168 |
+
"repository": "python-poetry/tomlkit",
|
| 169 |
+
"runner_contract": {
|
| 170 |
+
"home": "/home/node",
|
| 171 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.39.5\nripgrep 13.0.0",
|
| 172 |
+
"smoke_output_sha256": "cd2d951d78a7455f9ce30e0928d73f92e9138fdad73c9626b9bd0991124e3a0a",
|
| 173 |
+
"uid": "1000",
|
| 174 |
+
"user": "node"
|
| 175 |
+
},
|
| 176 |
+
"runtime_profile": {
|
| 177 |
+
"base_image": "ghcr.io/astral-sh/uv:0.8.14-python3.12-bookworm-slim@sha256:b748a09ec61c993083278020a84e16f0c81485c5349b30c64dd29d6a22da7462",
|
| 178 |
+
"bootstrap_command": [],
|
| 179 |
+
"environment": [
|
| 180 |
+
"HOME=/home/node",
|
| 181 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 182 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 183 |
+
"PYTHONPATH=/workspace/repo",
|
| 184 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 185 |
+
"PYTHONUNBUFFERED=1",
|
| 186 |
+
"PYTHONHASHSEED=0",
|
| 187 |
+
"PYTEST_DISABLE_PLUGIN_AUTOLOAD=1",
|
| 188 |
+
"PIP_NO_INDEX=1",
|
| 189 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 190 |
+
"UV_OFFLINE=1",
|
| 191 |
+
"TZ=UTC",
|
| 192 |
+
"LANG=C.UTF-8",
|
| 193 |
+
"LC_ALL=C.UTF-8",
|
| 194 |
+
"TERM=dumb",
|
| 195 |
+
"NO_COLOR=1",
|
| 196 |
+
"PYTHON_COLORS=0"
|
| 197 |
+
],
|
| 198 |
+
"fail_exit_codes": [
|
| 199 |
+
1
|
| 200 |
+
],
|
| 201 |
+
"regression_command": [
|
| 202 |
+
"python",
|
| 203 |
+
"-m",
|
| 204 |
+
"pytest",
|
| 205 |
+
"-q",
|
| 206 |
+
"tests"
|
| 207 |
+
],
|
| 208 |
+
"setup_command": [],
|
| 209 |
+
"sync_command": [
|
| 210 |
+
"/bin/sh",
|
| 211 |
+
"-ec",
|
| 212 |
+
"python -m venv /opt/venv && uv pip install --python /opt/venv/bin/python --no-deps --only-binary=:all: pytest==7.4.4 iniconfig==2.0.0 packaging==24.0 pluggy==1.2.0"
|
| 213 |
+
],
|
| 214 |
+
"test_command": [
|
| 215 |
+
"python",
|
| 216 |
+
"-m",
|
| 217 |
+
"pytest",
|
| 218 |
+
"-q"
|
| 219 |
+
],
|
| 220 |
+
"timeout_s": 300
|
| 221 |
+
},
|
| 222 |
+
"schema_version": 1,
|
| 223 |
+
"setup_command": [],
|
| 224 |
+
"task_id": "tomlkit-542",
|
| 225 |
+
"validated": true
|
| 226 |
+
}
|
attestations/typeguard-499.json
ADDED
|
@@ -0,0 +1,219 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"cells": [
|
| 3 |
+
{
|
| 4 |
+
"command": [
|
| 5 |
+
"python",
|
| 6 |
+
"-m",
|
| 7 |
+
"pytest",
|
| 8 |
+
"-q",
|
| 9 |
+
"tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"
|
| 10 |
+
],
|
| 11 |
+
"exit_code": 1,
|
| 12 |
+
"expected": "test-failure",
|
| 13 |
+
"output_sha256": "ac83948c95a3ed01fb84a5c620834254d0ac155106da9cebca9611a63b44a853",
|
| 14 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_____ TestProtocol.test_class_against_protocol_ignores_instance_attributes _____\ntests/test_checkers.py:1357: in test_class_against_protocol_ignores_instance_attributes\n check_type(Foo, type[MyProtocol])\nsrc/typeguard/_functions.py:108: in check_type\n check_type_internal(value, expected_type, memo)\nsrc/typeguard/_checkers.py:986: in check_type_internal\n checker(value, origin_type, args, memo)\nsrc/typeguard/_checkers.py:496: in check_class\n check_protocol(value, expected_class, (), memo)\nsrc/typeguard/_checkers.py:843: in check_protocol\n raise TypeCheckError(\nE typeguard.TypeCheckError: class tests.test_checkers.TestProtocol.test_class_against_protocol_ignores_instance_attributes.<locals>.Foo is not compatible with the TestProtocol.test_class_against_protocol_ignores_instance_attributes.<locals>.MyProtocol protocol because it has no attribute named 'foo'\n=========================== short test summary info ============================\nFAILED tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes\n1 failed in 0.10s",
|
| 15 |
+
"repeat": 1,
|
| 16 |
+
"state": "parent-hidden"
|
| 17 |
+
},
|
| 18 |
+
{
|
| 19 |
+
"command": [
|
| 20 |
+
"python",
|
| 21 |
+
"-m",
|
| 22 |
+
"pytest",
|
| 23 |
+
"-q",
|
| 24 |
+
"tests"
|
| 25 |
+
],
|
| 26 |
+
"exit_code": 0,
|
| 27 |
+
"expected": "zero",
|
| 28 |
+
"output_sha256": "6afc83c348f6277caf8cb78de76ced4d6d4db03ec3257359457e5d2aced725aa",
|
| 29 |
+
"output_tail": "..sss................................................................... [ 13%]\n.........s.s............................................................ [ 26%]\n.............................................xxx........................ [ 40%]\n.........................................xxx............................ [ 53%]\n..............................xxx....................................... [ 67%]\n.......................................................................s [ 80%]\n........................................................................ [ 94%]\n.............................. [100%]\n519 passed, 6 skipped, 9 xfailed in 3.83s",
|
| 30 |
+
"repeat": 1,
|
| 31 |
+
"state": "parent-regression"
|
| 32 |
+
},
|
| 33 |
+
{
|
| 34 |
+
"command": [
|
| 35 |
+
"python",
|
| 36 |
+
"-m",
|
| 37 |
+
"pytest",
|
| 38 |
+
"-q",
|
| 39 |
+
"tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"
|
| 40 |
+
],
|
| 41 |
+
"exit_code": 0,
|
| 42 |
+
"expected": "zero",
|
| 43 |
+
"output_sha256": "774412243a4dd9109d74cac1e88830db06a136051bbdbb28f78f1755be3ed12a",
|
| 44 |
+
"output_tail": ". [100%]\n1 passed in 0.04s",
|
| 45 |
+
"repeat": 1,
|
| 46 |
+
"state": "gold-hidden"
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"command": [
|
| 50 |
+
"python",
|
| 51 |
+
"-m",
|
| 52 |
+
"pytest",
|
| 53 |
+
"-q",
|
| 54 |
+
"tests"
|
| 55 |
+
],
|
| 56 |
+
"exit_code": 0,
|
| 57 |
+
"expected": "zero",
|
| 58 |
+
"output_sha256": "e3a652816d14305628a860e22bfbff651cd4b0d1066f1d2f4e186bd72ac755f9",
|
| 59 |
+
"output_tail": "..sss................................................................... [ 13%]\n.........s.s............................................................ [ 26%]\n.............................................xxx........................ [ 40%]\n.........................................xxx............................ [ 53%]\n..............................xxx....................................... [ 67%]\n.......................................................................s [ 80%]\n........................................................................ [ 94%]\n.............................. [100%]\n519 passed, 6 skipped, 9 xfailed in 3.77s",
|
| 60 |
+
"repeat": 1,
|
| 61 |
+
"state": "gold-regression"
|
| 62 |
+
},
|
| 63 |
+
{
|
| 64 |
+
"command": [
|
| 65 |
+
"python",
|
| 66 |
+
"-m",
|
| 67 |
+
"pytest",
|
| 68 |
+
"-q",
|
| 69 |
+
"tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"
|
| 70 |
+
],
|
| 71 |
+
"exit_code": 1,
|
| 72 |
+
"expected": "test-failure",
|
| 73 |
+
"output_sha256": "df2659a716fb6ba1c9b852f3a81abcebfde500c085aa5527628483932d553a02",
|
| 74 |
+
"output_tail": "F [100%]\n=================================== FAILURES ===================================\n_____ TestProtocol.test_class_against_protocol_ignores_instance_attributes _____\ntests/test_checkers.py:1357: in test_class_against_protocol_ignores_instance_attributes\n check_type(Foo, type[MyProtocol])\nsrc/typeguard/_functions.py:108: in check_type\n check_type_internal(value, expected_type, memo)\nsrc/typeguard/_checkers.py:986: in check_type_internal\n checker(value, origin_type, args, memo)\nsrc/typeguard/_checkers.py:496: in check_class\n check_protocol(value, expected_class, (), memo)\nsrc/typeguard/_checkers.py:843: in check_protocol\n raise TypeCheckError(\nE typeguard.TypeCheckError: class tests.test_checkers.TestProtocol.test_class_against_protocol_ignores_instance_attributes.<locals>.Foo is not compatible with the TestProtocol.test_class_against_protocol_ignores_instance_attributes.<locals>.MyProtocol protocol because it has no attribute named 'foo'\n=========================== short test summary info ============================\nFAILED tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes\n1 failed in 0.09s",
|
| 75 |
+
"repeat": 2,
|
| 76 |
+
"state": "parent-hidden"
|
| 77 |
+
},
|
| 78 |
+
{
|
| 79 |
+
"command": [
|
| 80 |
+
"python",
|
| 81 |
+
"-m",
|
| 82 |
+
"pytest",
|
| 83 |
+
"-q",
|
| 84 |
+
"tests"
|
| 85 |
+
],
|
| 86 |
+
"exit_code": 0,
|
| 87 |
+
"expected": "zero",
|
| 88 |
+
"output_sha256": "0d2e61e0c11b9dfc570f651e7f06e51567820bee6968070ca325cc5538e9178a",
|
| 89 |
+
"output_tail": "..sss................................................................... [ 13%]\n.........s.s............................................................ [ 26%]\n.............................................xxx........................ [ 40%]\n.........................................xxx............................ [ 53%]\n..............................xxx....................................... [ 67%]\n.......................................................................s [ 80%]\n........................................................................ [ 94%]\n.............................. [100%]\n519 passed, 6 skipped, 9 xfailed in 3.80s",
|
| 90 |
+
"repeat": 2,
|
| 91 |
+
"state": "parent-regression"
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"command": [
|
| 95 |
+
"python",
|
| 96 |
+
"-m",
|
| 97 |
+
"pytest",
|
| 98 |
+
"-q",
|
| 99 |
+
"tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"
|
| 100 |
+
],
|
| 101 |
+
"exit_code": 0,
|
| 102 |
+
"expected": "zero",
|
| 103 |
+
"output_sha256": "774412243a4dd9109d74cac1e88830db06a136051bbdbb28f78f1755be3ed12a",
|
| 104 |
+
"output_tail": ". [100%]\n1 passed in 0.04s",
|
| 105 |
+
"repeat": 2,
|
| 106 |
+
"state": "gold-hidden"
|
| 107 |
+
},
|
| 108 |
+
{
|
| 109 |
+
"command": [
|
| 110 |
+
"python",
|
| 111 |
+
"-m",
|
| 112 |
+
"pytest",
|
| 113 |
+
"-q",
|
| 114 |
+
"tests"
|
| 115 |
+
],
|
| 116 |
+
"exit_code": 0,
|
| 117 |
+
"expected": "zero",
|
| 118 |
+
"output_sha256": "10b44c659f66509c060f16b5f2af67a2699049a3ae9df4429b1079a9705963a8",
|
| 119 |
+
"output_tail": "..sss................................................................... [ 13%]\n.........s.s............................................................ [ 26%]\n.............................................xxx........................ [ 40%]\n.........................................xxx............................ [ 53%]\n..............................xxx....................................... [ 67%]\n.......................................................................s [ 80%]\n........................................................................ [ 94%]\n.............................. [100%]\n519 passed, 6 skipped, 9 xfailed in 3.81s",
|
| 120 |
+
"repeat": 2,
|
| 121 |
+
"state": "gold-regression"
|
| 122 |
+
}
|
| 123 |
+
],
|
| 124 |
+
"fail_to_pass_command": [
|
| 125 |
+
"python",
|
| 126 |
+
"-m",
|
| 127 |
+
"pytest",
|
| 128 |
+
"-q",
|
| 129 |
+
"tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"
|
| 130 |
+
],
|
| 131 |
+
"fix_sha": "f1007ef36a10b5fed8268f5620d03fd19300a7b6",
|
| 132 |
+
"local_image": "patcheval-validate:typeguard-499",
|
| 133 |
+
"local_image_id": "sha256:2614c695b4692e98ca2d43646a8afdada4e7e76ab6792ba6a9d8c4aef2a0b06b",
|
| 134 |
+
"parent_sha": "32e7c85f74d12be72acd5856869e5110a7d4549e",
|
| 135 |
+
"regression_command": [
|
| 136 |
+
"python",
|
| 137 |
+
"-m",
|
| 138 |
+
"pytest",
|
| 139 |
+
"-q",
|
| 140 |
+
"tests"
|
| 141 |
+
],
|
| 142 |
+
"repeats": 2,
|
| 143 |
+
"repository": "agronholm/typeguard",
|
| 144 |
+
"runner_contract": {
|
| 145 |
+
"home": "/home/node",
|
| 146 |
+
"smoke_output": "v24.19.0\n11.17.0\ngit version 2.47.3\nripgrep 14.1.1",
|
| 147 |
+
"smoke_output_sha256": "1f9f54eb0528523e3fe1a96cfad2629677cab32bb4348a4eaa6992145e8608fc",
|
| 148 |
+
"uid": "1000",
|
| 149 |
+
"user": "node"
|
| 150 |
+
},
|
| 151 |
+
"runtime_profile": {
|
| 152 |
+
"base_image": "ghcr.io/astral-sh/uv:0.12.1-python3.14-trixie-slim@sha256:dfe4069fefc02ee4d6097c26f31d0784df09c9b6242fb4a25ad31fbae74ec6aa",
|
| 153 |
+
"bootstrap_command": [
|
| 154 |
+
"uv",
|
| 155 |
+
"pip",
|
| 156 |
+
"install",
|
| 157 |
+
"--python",
|
| 158 |
+
"/opt/venv/bin/python",
|
| 159 |
+
"--only-binary",
|
| 160 |
+
":all:",
|
| 161 |
+
"setuptools==80.9.0",
|
| 162 |
+
"setuptools-scm==9.2.0",
|
| 163 |
+
"wheel==0.45.1"
|
| 164 |
+
],
|
| 165 |
+
"environment": [
|
| 166 |
+
"HOME=/home/node",
|
| 167 |
+
"XDG_CACHE_HOME=/tmp/xdg-cache",
|
| 168 |
+
"UV_CACHE_DIR=/tmp/uv-cache",
|
| 169 |
+
"PYTHONPATH=/workspace/repo/src",
|
| 170 |
+
"PYTHONDONTWRITEBYTECODE=1",
|
| 171 |
+
"PYTHONHASHSEED=0",
|
| 172 |
+
"PIP_NO_INDEX=1",
|
| 173 |
+
"PIP_DISABLE_PIP_VERSION_CHECK=1",
|
| 174 |
+
"UV_OFFLINE=1",
|
| 175 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TYPEGUARD=0.0.0",
|
| 176 |
+
"LANG=C.UTF-8",
|
| 177 |
+
"LC_ALL=C.UTF-8",
|
| 178 |
+
"TZ=UTC",
|
| 179 |
+
"TERM=dumb",
|
| 180 |
+
"NO_COLOR=1",
|
| 181 |
+
"PYTHON_COLORS=0"
|
| 182 |
+
],
|
| 183 |
+
"fail_exit_codes": [
|
| 184 |
+
1
|
| 185 |
+
],
|
| 186 |
+
"regression_command": [
|
| 187 |
+
"python",
|
| 188 |
+
"-m",
|
| 189 |
+
"pytest",
|
| 190 |
+
"-q",
|
| 191 |
+
"tests"
|
| 192 |
+
],
|
| 193 |
+
"setup_command": [
|
| 194 |
+
"/bin/sh",
|
| 195 |
+
"-ec",
|
| 196 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 197 |
+
],
|
| 198 |
+
"sync_command": [
|
| 199 |
+
"/bin/sh",
|
| 200 |
+
"-ec",
|
| 201 |
+
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_TYPEGUARD=0.0.0 uv sync --no-default-groups --group test --no-install-project"
|
| 202 |
+
],
|
| 203 |
+
"test_command": [
|
| 204 |
+
"python",
|
| 205 |
+
"-m",
|
| 206 |
+
"pytest",
|
| 207 |
+
"-q"
|
| 208 |
+
],
|
| 209 |
+
"timeout_s": 900
|
| 210 |
+
},
|
| 211 |
+
"schema_version": 1,
|
| 212 |
+
"setup_command": [
|
| 213 |
+
"/bin/sh",
|
| 214 |
+
"-ec",
|
| 215 |
+
"mkdir -p \"$HOME\" \"$XDG_CACHE_HOME\" \"$UV_CACHE_DIR\" && uv pip install --offline --python /opt/venv/bin/python --no-deps --no-build-isolation --editable ."
|
| 216 |
+
],
|
| 217 |
+
"task_id": "typeguard-499",
|
| 218 |
+
"validated": true
|
| 219 |
+
}
|
dataset.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"checksums_file": "SHA256SUMS",
|
| 3 |
+
"name": "PatchEval",
|
| 4 |
+
"prompt_policy": "full-issue-body-unchanged",
|
| 5 |
+
"release": "pilot-20",
|
| 6 |
+
"schema_version": 1,
|
| 7 |
+
"task_count": 20,
|
| 8 |
+
"task_ids": [
|
| 9 |
+
"sqlit-246",
|
| 10 |
+
"sqlit-260",
|
| 11 |
+
"narwhals-3864",
|
| 12 |
+
"city2graph-121",
|
| 13 |
+
"json-repair-207",
|
| 14 |
+
"json-repair-191",
|
| 15 |
+
"json-repair-205",
|
| 16 |
+
"click-3572",
|
| 17 |
+
"click-3360",
|
| 18 |
+
"click-2790",
|
| 19 |
+
"pypdf-3982",
|
| 20 |
+
"pypdf-3878",
|
| 21 |
+
"pypdf-3587",
|
| 22 |
+
"attrs-1575",
|
| 23 |
+
"typeguard-499",
|
| 24 |
+
"structlog-710",
|
| 25 |
+
"pygments-2816",
|
| 26 |
+
"pygments-2828",
|
| 27 |
+
"tomlkit-440",
|
| 28 |
+
"tomlkit-542"
|
| 29 |
+
],
|
| 30 |
+
"tasks_file": "tasks.jsonl",
|
| 31 |
+
"tasks_sha256": "2efa2f1469aedf0c332ea8a93ff2045e9b49d2f383d4f740ed9afb300bfb4cbc",
|
| 32 |
+
"version": "pilot"
|
| 33 |
+
}
|
hidden-tests/attrs-1575.patch
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_annotations.py b/tests/test_annotations.py
|
| 2 |
+
index e193d4ba..de3d1058 100644
|
| 3 |
+
--- a/tests/test_annotations.py
|
| 4 |
+
+++ b/tests/test_annotations.py
|
| 5 |
+
@@ -434,6 +434,23 @@ class TestAnnotations:
|
| 6 |
+
|
| 7 |
+
assert_init_annotations(C)
|
| 8 |
+
|
| 9 |
+
+ @pytest.mark.skipif(
|
| 10 |
+
+ sys.version_info[:2] < (3, 14),
|
| 11 |
+
+ reason="Python 3.14 changed annotation evaluation behavior.",
|
| 12 |
+
+ )
|
| 13 |
+
+ def test_missing_classvar_import(self, slots):
|
| 14 |
+
+ """
|
| 15 |
+
+ Unimported ClassVars are recognized as ForwardRefs.
|
| 16 |
+
+ """
|
| 17 |
+
+
|
| 18 |
+
+ @attr.s(auto_attribs=True, slots=slots)
|
| 19 |
+
+ class C:
|
| 20 |
+
+ cls_var: ClassVar[str] # noqa: F821
|
| 21 |
+
+ value: int = 1
|
| 22 |
+
+
|
| 23 |
+
+ assert "cls_var" not in attr.fields_dict(C)
|
| 24 |
+
+ assert 1 == C().value
|
| 25 |
+
+
|
| 26 |
+
def test_keyword_only_auto_attribs(self):
|
| 27 |
+
"""
|
| 28 |
+
`kw_only` propagates to attributes defined via `auto_attribs`.
|
| 29 |
+
@@ -691,6 +708,7 @@ class TestAnnotations:
|
| 30 |
+
"typing.ClassVar",
|
| 31 |
+
"'typing.ClassVar[dict]'",
|
| 32 |
+
"t.ClassVar[int]",
|
| 33 |
+
+ typing.ForwardRef("ClassVar[str]"),
|
| 34 |
+
],
|
| 35 |
+
)
|
| 36 |
+
def test_is_class_var(annot):
|
hidden-tests/city2graph-121.patch
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_utils.py b/tests/test_utils.py
|
| 2 |
+
index 70a0b00..08f9213 100644
|
| 3 |
+
--- a/tests/test_utils.py
|
| 4 |
+
+++ b/tests/test_utils.py
|
| 5 |
+
@@ -2151,6 +2151,38 @@ class TestPlotting(BaseGraphTest):
|
| 6 |
+
finally:
|
| 7 |
+
plt.close(fig)
|
| 8 |
+
|
| 9 |
+
+ def test_plot_graph_homo_with_legend_kwargs_and_title(
|
| 10 |
+
+ self,
|
| 11 |
+
+ sample_nodes_gdf: gpd.GeoDataFrame,
|
| 12 |
+
+ sample_edges_gdf: gpd.GeoDataFrame,
|
| 13 |
+
+ ) -> None:
|
| 14 |
+
+ """Homogeneous plotting should support legend kwargs and title."""
|
| 15 |
+
+ if not utils.MATPLOTLIB_AVAILABLE:
|
| 16 |
+
+ pytest.skip("matplotlib not available")
|
| 17 |
+
+
|
| 18 |
+
+ nodes = sample_nodes_gdf.copy()
|
| 19 |
+
+ nodes["centrality_quantile"] = range(len(nodes))
|
| 20 |
+
+
|
| 21 |
+
+ edge_linewidth = pd.Series([1.0] * len(sample_edges_gdf), index=sample_edges_gdf.index)
|
| 22 |
+
+ fig, ax = plt.subplots(figsize=(5, 5))
|
| 23 |
+
+ try:
|
| 24 |
+
+ utils.plot_graph(
|
| 25 |
+
+ nodes=nodes,
|
| 26 |
+
+ edges=sample_edges_gdf,
|
| 27 |
+
+ node_color="centrality_quantile",
|
| 28 |
+
+ edge_color="#bbbbbb",
|
| 29 |
+
+ edge_linewidth=edge_linewidth,
|
| 30 |
+
+ legend=True,
|
| 31 |
+
+ legend_kwargs={"label": "Betweenness Centrality", "orientation": "horizontal"},
|
| 32 |
+
+ title="Central London Transit Network Betweenness Centrality of Stops",
|
| 33 |
+
+ ax=ax,
|
| 34 |
+
+ )
|
| 35 |
+
+ assert (
|
| 36 |
+
+ ax.get_title() == "Central London Transit Network Betweenness Centrality of Stops"
|
| 37 |
+
+ )
|
| 38 |
+
+ finally:
|
| 39 |
+
+ plt.close(fig)
|
| 40 |
+
+
|
| 41 |
+
@pytest.mark.skipif(not MATPLOTLIB_AVAILABLE, reason="Matplotlib not available")
|
| 42 |
+
def test_plot_empty_gdf(self, empty_gdf: gpd.GeoDataFrame) -> None:
|
| 43 |
+
"""Test _plot_gdf with empty GeoDataFrame (line 3246)."""
|
hidden-tests/click-2790.patch
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_formatting.py b/tests/test_formatting.py
|
| 2 |
+
index c79f6577..c74b53a3 100644
|
| 3 |
+
--- a/tests/test_formatting.py
|
| 4 |
+
+++ b/tests/test_formatting.py
|
| 5 |
+
@@ -1,3 +1,5 @@
|
| 6 |
+
+import pytest
|
| 7 |
+
+
|
| 8 |
+
import click
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
@@ -246,6 +248,71 @@ def test_formatting_usage_custom_help(runner):
|
| 12 |
+
]
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
+@pytest.mark.parametrize(
|
| 16 |
+
+ ("help_names", "extra_options", "expected_hint"),
|
| 17 |
+
+ [
|
| 18 |
+
+ # No shadowing, longest name is picked.
|
| 19 |
+
+ (["-h", "--help"], [], "Try 'cli foo --help' for help."),
|
| 20 |
+
+ # -h shadowed by a subcommand option, --help still available.
|
| 21 |
+
+ (
|
| 22 |
+
+ ["-h", "--help"],
|
| 23 |
+
+ [click.option("--host", "-h")],
|
| 24 |
+
+ "Try 'cli foo --help' for help.",
|
| 25 |
+
+ ),
|
| 26 |
+
+ # --help shadowed, -h still available.
|
| 27 |
+
+ (
|
| 28 |
+
+ ["-h", "--help"],
|
| 29 |
+
+ [click.option("--help-file", "--help")],
|
| 30 |
+
+ "Try 'cli foo -h' for help.",
|
| 31 |
+
+ ),
|
| 32 |
+
+ # Both names shadowed: no hint line at all.
|
| 33 |
+
+ (
|
| 34 |
+
+ ["-h", "--help"],
|
| 35 |
+
+ [click.option("--host", "-h"), click.option("--help-file", "--help")],
|
| 36 |
+
+ None,
|
| 37 |
+
+ ),
|
| 38 |
+
+ # Single custom help name, not shadowed.
|
| 39 |
+
+ (["--man"], [], "Try 'cli foo --man' for help."),
|
| 40 |
+
+ # Three help names, one shadowed, longest survivor picked.
|
| 41 |
+
+ (
|
| 42 |
+
+ ["-h", "--help", "--info"],
|
| 43 |
+
+ [click.option("--info-file", "--info")],
|
| 44 |
+
+ "Try 'cli foo --help' for help.",
|
| 45 |
+
+ ),
|
| 46 |
+
+ ],
|
| 47 |
+
+)
|
| 48 |
+
+def test_formatting_usage_error_help_hint(
|
| 49 |
+
+ runner, help_names, extra_options, expected_hint
|
| 50 |
+
+):
|
| 51 |
+
+ """The error hint should only show non-shadowed help option names,
|
| 52 |
+
+ picking the longest for readability.
|
| 53 |
+
+
|
| 54 |
+
+ https://github.com/pallets/click/issues/2790
|
| 55 |
+
+ """
|
| 56 |
+
+
|
| 57 |
+
+ @click.group(context_settings={"help_option_names": help_names})
|
| 58 |
+
+ def cli():
|
| 59 |
+
+ pass
|
| 60 |
+
+
|
| 61 |
+
+ @cli.command()
|
| 62 |
+
+ @click.argument("required_arg")
|
| 63 |
+
+ def foo(required_arg, **kwargs):
|
| 64 |
+
+ pass
|
| 65 |
+
+
|
| 66 |
+
+ for option in extra_options:
|
| 67 |
+
+ option(foo)
|
| 68 |
+
+
|
| 69 |
+
+ result = runner.invoke(cli, ["foo"])
|
| 70 |
+
+ assert result.exit_code == 2
|
| 71 |
+
+ lines = result.output.splitlines()
|
| 72 |
+
+ assert lines[0] == "Usage: cli foo [OPTIONS] REQUIRED_ARG"
|
| 73 |
+
+ assert lines[-1] == "Error: Missing argument 'REQUIRED_ARG'."
|
| 74 |
+
+ if expected_hint is not None:
|
| 75 |
+
+ assert expected_hint in lines
|
| 76 |
+
+ else:
|
| 77 |
+
+ assert not any(line.startswith("Try ") for line in lines)
|
| 78 |
+
+
|
| 79 |
+
+
|
| 80 |
+
def test_formatting_custom_type_metavar(runner):
|
| 81 |
+
class MyType(click.ParamType):
|
| 82 |
+
def get_metavar(self, param: click.Parameter, ctx: click.Context):
|
hidden-tests/click-3360.patch
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_formatting.py b/tests/test_formatting.py
|
| 2 |
+
index 3e856885..a351cbef 100644
|
| 3 |
+
--- a/tests/test_formatting.py
|
| 4 |
+
+++ b/tests/test_formatting.py
|
| 5 |
+
@@ -499,3 +499,118 @@ def test_write_usage_styled_prefix_keeps_options_on_one_line():
|
| 6 |
+
|
| 7 |
+
visible = strip_ansi(rendered)
|
| 8 |
+
assert visible == "Usage: cli [OPTIONS]\n"
|
| 9 |
+
+
|
| 10 |
+
+
|
| 11 |
+
+@pytest.mark.parametrize(
|
| 12 |
+
+ ("formatter_kwargs", "current_indent", "prog", "args", "prefix", "expected"),
|
| 13 |
+
+ [
|
| 14 |
+
+ # Issue #3360: the default prefix used to emit only
|
| 15 |
+
+ # a blank line because ``wrap_text("", initial_indent=usage_prefix)``
|
| 16 |
+
+ # returned ``""`` and discarded the prefix.
|
| 17 |
+
+ pytest.param(
|
| 18 |
+
+ {},
|
| 19 |
+
+ 0,
|
| 20 |
+
+ "Program",
|
| 21 |
+
+ "",
|
| 22 |
+
+ None,
|
| 23 |
+
+ "Usage: Program\n",
|
| 24 |
+
+ id="empty-args-default-prefix",
|
| 25 |
+
+ ),
|
| 26 |
+
+ # A caller-supplied prefix is preserved verbatim.
|
| 27 |
+
+ pytest.param(
|
| 28 |
+
+ {},
|
| 29 |
+
+ 0,
|
| 30 |
+
+ "Program",
|
| 31 |
+
+ "",
|
| 32 |
+
+ "Run: ",
|
| 33 |
+
+ "Run: Program\n",
|
| 34 |
+
+ id="empty-args-custom-prefix",
|
| 35 |
+
+ ),
|
| 36 |
+
+ # ``current_indent`` is preserved even with no args to render.
|
| 37 |
+
+ pytest.param(
|
| 38 |
+
+ {},
|
| 39 |
+
+ 4,
|
| 40 |
+
+ "Program",
|
| 41 |
+
+ "",
|
| 42 |
+
+ None,
|
| 43 |
+
+ "Usage: Program\n",
|
| 44 |
+
+ id="empty-args-indented",
|
| 45 |
+
+ ),
|
| 46 |
+
+ # Prog too long to share a line with args: the wrap branch must not
|
| 47 |
+
+ # emit a second line.
|
| 48 |
+
+ pytest.param(
|
| 49 |
+
+ {"width": 20},
|
| 50 |
+
+ 0,
|
| 51 |
+
+ "VeryLongProgramName",
|
| 52 |
+
+ "",
|
| 53 |
+
+ None,
|
| 54 |
+
+ "Usage: VeryLongProgramName\n",
|
| 55 |
+
+ id="empty-args-long-prog",
|
| 56 |
+
+ ),
|
| 57 |
+
+ # With non-empty args, the separator space between prog and args is preserved.
|
| 58 |
+
+ pytest.param(
|
| 59 |
+
+ {},
|
| 60 |
+
+ 0,
|
| 61 |
+
+ "Program",
|
| 62 |
+
+ "[OPTIONS]",
|
| 63 |
+
+ None,
|
| 64 |
+
+ "Usage: Program [OPTIONS]\n",
|
| 65 |
+
+ id="with-args-default-prefix",
|
| 66 |
+
+ ),
|
| 67 |
+
+ ],
|
| 68 |
+
+)
|
| 69 |
+
+def test_help_formatter_write_usage(
|
| 70 |
+
+ formatter_kwargs, current_indent, prog, args, prefix, expected
|
| 71 |
+
+):
|
| 72 |
+
+ """``HelpFormatter.write_usage`` renders a single usage line whose
|
| 73 |
+
+ trailing separator tracks whether ``args`` is non-empty.
|
| 74 |
+
+ """
|
| 75 |
+
+ f = click.HelpFormatter(**formatter_kwargs)
|
| 76 |
+
+ f.current_indent = current_indent
|
| 77 |
+
+ if prefix is None:
|
| 78 |
+
+ f.write_usage(prog, args)
|
| 79 |
+
+ else:
|
| 80 |
+
+ f.write_usage(prog, args, prefix=prefix)
|
| 81 |
+
+ assert f.getvalue() == expected
|
| 82 |
+
+
|
| 83 |
+
+
|
| 84 |
+
+def test_help_formatter_write_usage_without_args_styled_prefix():
|
| 85 |
+
+ """A downstream-styled prefix is preserved when ``args`` is empty:
|
| 86 |
+
+ the ANSI escape sequences survive, only the trailing separator is
|
| 87 |
+
+ removed.
|
| 88 |
+
+ """
|
| 89 |
+
+ styled_prefix = "\x1b[38;2;38;139;210m\x1b[1mUsage:\x1b[0m "
|
| 90 |
+
+ f = click.HelpFormatter()
|
| 91 |
+
+ f.write_usage("cli", prefix=styled_prefix)
|
| 92 |
+
+ rendered = f.getvalue()
|
| 93 |
+
+ assert strip_ansi(rendered) == "Usage: cli\n"
|
| 94 |
+
+ assert "\x1b[" in rendered
|
| 95 |
+
+
|
| 96 |
+
+
|
| 97 |
+
+@pytest.mark.parametrize(
|
| 98 |
+
+ ("command_kwargs", "expected_usage_line"),
|
| 99 |
+
+ [
|
| 100 |
+
+ # End-to-end regression for #3360: an empty ``options_metavar`` with
|
| 101 |
+
+ # no parameters used to render a blank usage line.
|
| 102 |
+
+ pytest.param(
|
| 103 |
+
+ {"options_metavar": ""},
|
| 104 |
+
+ "Usage: cli",
|
| 105 |
+
+ id="empty-options-metavar-no-params",
|
| 106 |
+
+ ),
|
| 107 |
+
+ # End-to-end regression: ``options_metavar=None`` is the documented
|
| 108 |
+
+ # way to suppress the ``[OPTIONS]`` slot entirely.
|
| 109 |
+
+ pytest.param(
|
| 110 |
+
+ {"options_metavar": None},
|
| 111 |
+
+ "Usage: cli",
|
| 112 |
+
+ id="none-options-metavar-no-params",
|
| 113 |
+
+ ),
|
| 114 |
+
+ ],
|
| 115 |
+
+)
|
| 116 |
+
+def test_command_write_usage_no_args(runner, command_kwargs, expected_usage_line):
|
| 117 |
+
+ """End-to-end: a command with no parameters and an empty or absent
|
| 118 |
+
+ ``options_metavar`` renders a usage line with just the program name,
|
| 119 |
+
+ no trailing space.
|
| 120 |
+
+ """
|
| 121 |
+
+ cli = click.Command("cli", **command_kwargs)
|
| 122 |
+
+ result = runner.invoke(cli, ["--help"])
|
| 123 |
+
+ assert result.output.splitlines()[0] == expected_usage_line
|
hidden-tests/click-3572.patch
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_termui.py b/tests/test_termui.py
|
| 2 |
+
index ce974f0c..98e25774 100644
|
| 3 |
+
--- a/tests/test_termui.py
|
| 4 |
+
+++ b/tests/test_termui.py
|
| 5 |
+
@@ -1022,6 +1022,56 @@ def test_confirmation_prompt(runner, prompt, input, default, expect):
|
| 6 |
+
assert "Confirm Password: " in result.output
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+@pytest.mark.parametrize(
|
| 10 |
+
+ ("call", "user_input", "color", "expect"),
|
| 11 |
+
+ [
|
| 12 |
+
+ pytest.param(
|
| 13 |
+
+ lambda: click.confirm(click.style("Hello World!", fg="green")),
|
| 14 |
+
+ "y",
|
| 15 |
+
+ False,
|
| 16 |
+
+ "Hello World! [y/N]: y\n",
|
| 17 |
+
+ id="confirm-no-color",
|
| 18 |
+
+ ),
|
| 19 |
+
+ pytest.param(
|
| 20 |
+
+ lambda: click.confirm(click.style("Hello World!", fg="green")),
|
| 21 |
+
+ "y",
|
| 22 |
+
+ True,
|
| 23 |
+
+ "\x1b[32mHello World!\x1b[0m [y/N]: y\n",
|
| 24 |
+
+ id="confirm-color",
|
| 25 |
+
+ ),
|
| 26 |
+
+ pytest.param(
|
| 27 |
+
+ lambda: click.prompt(click.style("Name", fg="green")),
|
| 28 |
+
+ "Bob",
|
| 29 |
+
+ False,
|
| 30 |
+
+ "Name: Bob\n",
|
| 31 |
+
+ id="prompt-no-color",
|
| 32 |
+
+ ),
|
| 33 |
+
+ pytest.param(
|
| 34 |
+
+ lambda: click.prompt(click.style("Name", fg="green")),
|
| 35 |
+
+ "Bob",
|
| 36 |
+
+ True,
|
| 37 |
+
+ "\x1b[32mName\x1b[0m: Bob\n",
|
| 38 |
+
+ id="prompt-color",
|
| 39 |
+
+ ),
|
| 40 |
+
+ ],
|
| 41 |
+
+)
|
| 42 |
+
+def test_prompt_and_confirm_ansi_respects_color(
|
| 43 |
+
+ runner, call, user_input, color, expect
|
| 44 |
+
+):
|
| 45 |
+
+ """``confirm`` and ``prompt`` strip ANSI color and style codes from the
|
| 46 |
+
+ prompt when color is disabled and keep them when it is enabled, like
|
| 47 |
+
+ ``echo``. The prompt is written by ``input`` rather than ``echo``, so it
|
| 48 |
+
+ used to keep the codes regardless (issue 3572).
|
| 49 |
+
+ """
|
| 50 |
+
+
|
| 51 |
+
+ @click.command()
|
| 52 |
+
+ def cli():
|
| 53 |
+
+ call()
|
| 54 |
+
+
|
| 55 |
+
+ result = runner.invoke(cli, input=user_input, color=color)
|
| 56 |
+
+ assert result.output == expect
|
| 57 |
+
+
|
| 58 |
+
+
|
| 59 |
+
def test_false_show_default_cause_no_default_display_in_prompt(runner):
|
| 60 |
+
@click.command()
|
| 61 |
+
@click.option("--arg1", show_default=False, prompt=True, default="my-default-value")
|
hidden-tests/json-repair-191.patch
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_json_repair.py b/tests/test_json_repair.py
|
| 2 |
+
index 696aff9..a3223b1 100644
|
| 3 |
+
--- a/tests/test_json_repair.py
|
| 4 |
+
+++ b/tests/test_json_repair.py
|
| 5 |
+
@@ -28,6 +28,53 @@ def test_multiple_jsons():
|
| 6 |
+
assert repair_json('[{"key":"value"}][{"key":"value_after"}]') == '[{"key": "value_after"}]'
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+def test_parenthesized_prose_does_not_hijack_fenced_json():
|
| 10 |
+
+ assert (
|
| 11 |
+
+ repair_json(
|
| 12 |
+
+ """
|
| 13 |
+
+ **Decision**: bla, bla (some clarification):
|
| 14 |
+
+
|
| 15 |
+
+ ```json
|
| 16 |
+
+ {
|
| 17 |
+
+ "key": "value"
|
| 18 |
+
+ }
|
| 19 |
+
+ ```
|
| 20 |
+
+ """
|
| 21 |
+
+ )
|
| 22 |
+
+ == '{"key": "value"}'
|
| 23 |
+
+ )
|
| 24 |
+
+
|
| 25 |
+
+
|
| 26 |
+
+def test_numbered_prose_line_does_not_hijack_fenced_json():
|
| 27 |
+
+ assert (
|
| 28 |
+
+ repair_json(
|
| 29 |
+
+ """
|
| 30 |
+
+ (1) Keep this note in the explanation.
|
| 31 |
+
+
|
| 32 |
+
+ ```json
|
| 33 |
+
+ {
|
| 34 |
+
+ "key": "value"
|
| 35 |
+
+ }
|
| 36 |
+
+ ```
|
| 37 |
+
+ """
|
| 38 |
+
+ )
|
| 39 |
+
+ == '{"key": "value"}'
|
| 40 |
+
+ )
|
| 41 |
+
+
|
| 42 |
+
+
|
| 43 |
+
+def test_parenthesized_tuple_still_parses_when_it_is_the_fenced_json_payload():
|
| 44 |
+
+ assert repair_json(
|
| 45 |
+
+ """
|
| 46 |
+
+ Here is the tuple payload:
|
| 47 |
+
+
|
| 48 |
+
+ ```json
|
| 49 |
+
+ (1, 2)
|
| 50 |
+
+ ```
|
| 51 |
+
+ """,
|
| 52 |
+
+ return_objects=True,
|
| 53 |
+
+ ) == [1, 2]
|
| 54 |
+
+
|
| 55 |
+
+
|
| 56 |
+
def test_repair_json_with_objects():
|
| 57 |
+
# Test with valid JSON strings
|
| 58 |
+
assert repair_json("[]", return_objects=True) == []
|
| 59 |
+
diff --git a/tests/test_parse_array.py b/tests/test_parse_array.py
|
| 60 |
+
index 8c9aa08..e9c825e 100644
|
| 61 |
+
--- a/tests/test_parse_array.py
|
| 62 |
+
+++ b/tests/test_parse_array.py
|
| 63 |
+
@@ -79,6 +79,20 @@ def test_parenthesized_tuple_classifier_handles_nested_delimiters_and_missing_cl
|
| 64 |
+
assert parser.parenthesized_is_explicit_tuple() is False
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
+def test_top_level_parenthesized_value_gate_rejects_prose_and_accepts_standalone_jsonish_values():
|
| 68 |
+
+ parser = JSONParser("(", None, False)
|
| 69 |
+
+ assert parser.top_level_parenthesized_can_start_value() is False
|
| 70 |
+
+
|
| 71 |
+
+ parser = JSONParser('(note)\n{"key": 1}', None, False)
|
| 72 |
+
+ assert parser.top_level_parenthesized_can_start_value() is False
|
| 73 |
+
+
|
| 74 |
+
+ parser = JSONParser("(1", None, False)
|
| 75 |
+
+ assert parser.top_level_parenthesized_can_start_value() is True
|
| 76 |
+
+
|
| 77 |
+
+ parser = JSONParser('(["a\\\\b"], {"k": 1})\n', None, False)
|
| 78 |
+
+ assert parser.top_level_parenthesized_can_start_value() is True
|
| 79 |
+
+
|
| 80 |
+
+
|
| 81 |
+
def test_parse_array_missing_quotes():
|
| 82 |
+
assert repair_json('["value1" value2", "value3"]') == '["value1", "value2", "value3"]'
|
| 83 |
+
assert (
|
hidden-tests/json-repair-205.patch
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_schema_guided_parse.py b/tests/test_schema_guided_parse.py
|
| 2 |
+
index 3d9c9dc..598fb1f 100644
|
| 3 |
+
--- a/tests/test_schema_guided_parse.py
|
| 4 |
+
+++ b/tests/test_schema_guided_parse.py
|
| 5 |
+
@@ -99,6 +99,35 @@ def test_schema_applies_to_valid_json_without_skip_json_loads():
|
| 6 |
+
repair_json('"bbb"', schema={"type": "string", "pattern": "^a+$"}, return_objects=True)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+def test_schema_union_branch_keeps_root_defs_scope_during_repair():
|
| 10 |
+
+ pytest.importorskip("jsonschema")
|
| 11 |
+
+ schema = {
|
| 12 |
+
+ "$defs": {
|
| 13 |
+
+ "Item": {
|
| 14 |
+
+ "type": "object",
|
| 15 |
+
+ "properties": {"name": {"type": "string", "pattern": "^example$"}},
|
| 16 |
+
+ "required": ["name"],
|
| 17 |
+
+ }
|
| 18 |
+
+ },
|
| 19 |
+
+ "type": "object",
|
| 20 |
+
+ "properties": {
|
| 21 |
+
+ "value": {
|
| 22 |
+
+ "anyOf": [
|
| 23 |
+
+ {"type": "array", "items": {"$ref": "#/$defs/Item"}},
|
| 24 |
+
+ {"type": "null"},
|
| 25 |
+
+ ]
|
| 26 |
+
+ }
|
| 27 |
+
+ },
|
| 28 |
+
+ "required": ["value"],
|
| 29 |
+
+ }
|
| 30 |
+
+
|
| 31 |
+
+ assert repair_json('{"value": [{"name": "example"}],}', schema=schema, return_objects=True) == {
|
| 32 |
+
+ "value": [{"name": "example"}]
|
| 33 |
+
+ }
|
| 34 |
+
+ with pytest.raises(ValueError, match="Expected null"):
|
| 35 |
+
+ repair_json('{"value": [{"name": "invalid"}],}', schema=schema, return_objects=True)
|
| 36 |
+
+
|
| 37 |
+
+
|
| 38 |
+
def test_schema_valid_fast_path_keeps_logging_empty():
|
| 39 |
+
pytest.importorskip("jsonschema")
|
| 40 |
+
schema = {
|
hidden-tests/json-repair-207.patch
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_parse_string.py b/tests/test_parse_string.py
|
| 2 |
+
index 49ff260..13cab7c 100644
|
| 3 |
+
--- a/tests/test_parse_string.py
|
| 4 |
+
+++ b/tests/test_parse_string.py
|
| 5 |
+
@@ -464,6 +464,19 @@ def test_parse_string_preserves_escaped_braces_after_comma_group():
|
| 6 |
+
assert repair_json(raw, return_objects=True, skip_json_loads=True) == {"key": r"\{1,2\} \{3\}"}
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+@pytest.mark.parametrize(
|
| 10 |
+
+ ("raw", "expected", "serialized"),
|
| 11 |
+
+ [
|
| 12 |
+
+ (r'{"key": "a\\\\b\\\\c",}', r"a\\b\\c", r'{"key": "a\\\\b\\\\c"}'),
|
| 13 |
+
+ (r'{"key": "1\\\\2\\\\3",}', r"1\\2\\3", r'{"key": "1\\\\2\\\\3"}'),
|
| 14 |
+
+ ],
|
| 15 |
+
+)
|
| 16 |
+
+def test_parse_string_preserves_repeated_escaped_backslashes_during_repair(raw, expected, serialized):
|
| 17 |
+
+ for skip_json_loads in (False, True):
|
| 18 |
+
+ assert repair_json(raw, return_objects=True, skip_json_loads=skip_json_loads) == {"key": expected}
|
| 19 |
+
+ assert repair_json(raw, skip_json_loads=skip_json_loads) == serialized
|
| 20 |
+
+
|
| 21 |
+
+
|
| 22 |
+
def test_parse_string_preserves_latex_command_after_bracketed_comma():
|
| 23 |
+
raw = r'{ "key": "x [0,2] f(-\\frac{3}{4})" }'
|
| 24 |
+
|
hidden-tests/narwhals-3864.patch
ADDED
|
@@ -0,0 +1,90 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/expr_and_series/corr_test.py b/tests/expr_and_series/corr_test.py
|
| 2 |
+
index 4617e52ec..d81f23327 100644
|
| 3 |
+
--- a/tests/expr_and_series/corr_test.py
|
| 4 |
+
+++ b/tests/expr_and_series/corr_test.py
|
| 5 |
+
@@ -142,6 +142,24 @@ def test_corr_over(constructor: Constructor) -> None:
|
| 6 |
+
assert_equal_data(result, expected)
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+def test_corr_series_foreign_index() -> None:
|
| 10 |
+
+ # https://github.com/narwhals-dev/narwhals/issues/3864
|
| 11 |
+
+ # A `Series` with an index unrelated to `df`'s own must be aligned
|
| 12 |
+
+ # positionally (left-hand-rule), not by pandas' automatic label join.
|
| 13 |
+
+ pytest.importorskip("pandas")
|
| 14 |
+
+ import pandas as pd
|
| 15 |
+
+
|
| 16 |
+
+ df = nw.from_native(
|
| 17 |
+
+ pd.DataFrame({"a": [1, 2, 3], "b": [10, 20, 30]}), eager_only=True
|
| 18 |
+
+ )
|
| 19 |
+
+ foreign = nw.from_native(
|
| 20 |
+
+ pd.Series([3, 1, 2], index=[5, 6, 7], name="a"), series_only=True
|
| 21 |
+
+ )
|
| 22 |
+
+ result = df.select(nw.corr(foreign, nw.col("b")).round(2))
|
| 23 |
+
+ expected = {"a": [-0.5]}
|
| 24 |
+
+ assert_equal_data(result, expected)
|
| 25 |
+
+
|
| 26 |
+
+
|
| 27 |
+
def test_corr_pairwise_nulls(
|
| 28 |
+
constructor: Constructor, request: pytest.FixtureRequest
|
| 29 |
+
) -> None:
|
| 30 |
+
diff --git a/tests/expr_and_series/cov_test.py b/tests/expr_and_series/cov_test.py
|
| 31 |
+
index 69be34787..e691ceed8 100644
|
| 32 |
+
--- a/tests/expr_and_series/cov_test.py
|
| 33 |
+
+++ b/tests/expr_and_series/cov_test.py
|
| 34 |
+
@@ -99,6 +99,24 @@ def test_cov_over(constructor: Constructor) -> None:
|
| 35 |
+
assert_equal_data(result, expected)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
+def test_cov_series_foreign_index() -> None:
|
| 39 |
+
+ # https://github.com/narwhals-dev/narwhals/issues/3864
|
| 40 |
+
+ # A `Series` with an index unrelated to `df`'s own must be aligned
|
| 41 |
+
+ # positionally (left-hand-rule), not by pandas' automatic label join.
|
| 42 |
+
+ pytest.importorskip("pandas")
|
| 43 |
+
+ import pandas as pd
|
| 44 |
+
+
|
| 45 |
+
+ df = nw.from_native(
|
| 46 |
+
+ pd.DataFrame({"a": [1, 2, 3], "b": [10, 20, 30]}), eager_only=True
|
| 47 |
+
+ )
|
| 48 |
+
+ foreign = nw.from_native(
|
| 49 |
+
+ pd.Series([3, 1, 2], index=[5, 6, 7], name="a"), series_only=True
|
| 50 |
+
+ )
|
| 51 |
+
+ result = df.select(nw.cov(foreign, nw.col("b")))
|
| 52 |
+
+ expected = {"a": [-5.0]}
|
| 53 |
+
+ assert_equal_data(result, expected)
|
| 54 |
+
+
|
| 55 |
+
+
|
| 56 |
+
def test_cov_series(constructor_eager: ConstructorEager) -> None:
|
| 57 |
+
df = nw.from_native(constructor_eager(data), eager_only=True)
|
| 58 |
+
result = df.select(
|
| 59 |
+
diff --git a/tests/frame/concat_test.py b/tests/frame/concat_test.py
|
| 60 |
+
index 08c95bdb7..61c7fb584 100644
|
| 61 |
+
--- a/tests/frame/concat_test.py
|
| 62 |
+
+++ b/tests/frame/concat_test.py
|
| 63 |
+
@@ -63,6 +63,27 @@ def test_concat_horizontal_mismatched(
|
| 64 |
+
assert_equal_data(result, expected)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
+def test_concat_horizontal_pandas_left_hand_rule() -> None:
|
| 68 |
+
+ # https://github.com/narwhals-dev/narwhals/issues/3864
|
| 69 |
+
+ pytest.importorskip("pandas")
|
| 70 |
+
+ import pandas as pd
|
| 71 |
+
+
|
| 72 |
+
+ df_left = nw.from_native(
|
| 73 |
+
+ pd.DataFrame({"a": [1, 2, 3]}, index=[10, 20, 30]), eager_only=True
|
| 74 |
+
+ )
|
| 75 |
+
+ df_right = nw.from_native(
|
| 76 |
+
+ pd.DataFrame({"b": [4, 5, 6]}, index=[0, 1, 2]), eager_only=True
|
| 77 |
+
+ )
|
| 78 |
+
+
|
| 79 |
+
+ result = nw.concat([df_left, df_right], how="horizontal")
|
| 80 |
+
+
|
| 81 |
+
+ # the index of the left-most argument is preserved, and the other
|
| 82 |
+
+ # argument is aligned to it positionally, rather than by label.
|
| 83 |
+
+ assert result.to_native().index.tolist() == [10, 20, 30]
|
| 84 |
+
+ expected = {"a": [1, 2, 3], "b": [4, 5, 6]}
|
| 85 |
+
+ assert_equal_data(result, expected)
|
| 86 |
+
+
|
| 87 |
+
+
|
| 88 |
+
def test_concat_vertical(constructor: Constructor) -> None:
|
| 89 |
+
data = {"a": [1, 3, 2], "b": [4, 4, 6], "z": [7.0, 8.0, 9.0]}
|
| 90 |
+
df_left = (
|
hidden-tests/pygments-2816.patch
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/snippets/jsx/test_apostrophe_text.txt b/tests/snippets/jsx/test_apostrophe_text.txt
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 000000000..953214c2d
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/tests/snippets/jsx/test_apostrophe_text.txt
|
| 6 |
+
@@ -0,0 +1,35 @@
|
| 7 |
+
+---input---
|
| 8 |
+
+const View = () => <div>I'm the Block view component!</div>;
|
| 9 |
+
+
|
| 10 |
+
+---tokens---
|
| 11 |
+
+'const' Keyword.Declaration
|
| 12 |
+
+' ' Text.Whitespace
|
| 13 |
+
+'View' Name.Other
|
| 14 |
+
+' ' Text.Whitespace
|
| 15 |
+
+'=' Operator
|
| 16 |
+
+' ' Text.Whitespace
|
| 17 |
+
+'(' Punctuation
|
| 18 |
+
+')' Punctuation
|
| 19 |
+
+' ' Text.Whitespace
|
| 20 |
+
+'=>' Punctuation
|
| 21 |
+
+' ' Text.Whitespace
|
| 22 |
+
+'<' Punctuation
|
| 23 |
+
+'div' Name.Tag
|
| 24 |
+
+'>' Punctuation
|
| 25 |
+
+'I' Name.Other
|
| 26 |
+
+"'" Text
|
| 27 |
+
+'m' Name.Other
|
| 28 |
+
+' ' Text.Whitespace
|
| 29 |
+
+'the' Name.Other
|
| 30 |
+
+' ' Text.Whitespace
|
| 31 |
+
+'Block' Name.Other
|
| 32 |
+
+' ' Text.Whitespace
|
| 33 |
+
+'view' Name.Other
|
| 34 |
+
+' ' Text.Whitespace
|
| 35 |
+
+'component' Name.Other
|
| 36 |
+
+'!' Operator
|
| 37 |
+
+'</' Punctuation
|
| 38 |
+
+'div' Name.Tag
|
| 39 |
+
+'>' Punctuation
|
| 40 |
+
+';' Punctuation
|
| 41 |
+
+'\n' Text.Whitespace
|
hidden-tests/pygments-2828.patch
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/snippets/jsonnet/test_array_slice.txt b/tests/snippets/jsonnet/test_array_slice.txt
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 000000000..de1dd316a
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/tests/snippets/jsonnet/test_array_slice.txt
|
| 6 |
+
@@ -0,0 +1,63 @@
|
| 7 |
+
+---input---
|
| 8 |
+
+{
|
| 9 |
+
+ local numbers = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
|
| 10 |
+
+ even_numbers: numbers[1::2],
|
| 11 |
+
+}
|
| 12 |
+
+
|
| 13 |
+
+---tokens---
|
| 14 |
+
+'{' Punctuation
|
| 15 |
+
+'\n ' Text.Whitespace
|
| 16 |
+
+'local' Keyword
|
| 17 |
+
+' ' Text.Whitespace
|
| 18 |
+
+'numbers' Name.Variable
|
| 19 |
+
+' ' Text.Whitespace
|
| 20 |
+
+'=' Operator
|
| 21 |
+
+' ' Text.Whitespace
|
| 22 |
+
+'[' Punctuation
|
| 23 |
+
+'1' Literal.Number.Float
|
| 24 |
+
+',' Punctuation
|
| 25 |
+
+' ' Text.Whitespace
|
| 26 |
+
+'2' Literal.Number.Float
|
| 27 |
+
+',' Punctuation
|
| 28 |
+
+' ' Text.Whitespace
|
| 29 |
+
+'3' Literal.Number.Float
|
| 30 |
+
+',' Punctuation
|
| 31 |
+
+' ' Text.Whitespace
|
| 32 |
+
+'4' Literal.Number.Float
|
| 33 |
+
+',' Punctuation
|
| 34 |
+
+' ' Text.Whitespace
|
| 35 |
+
+'5' Literal.Number.Float
|
| 36 |
+
+',' Punctuation
|
| 37 |
+
+' ' Text.Whitespace
|
| 38 |
+
+'6' Literal.Number.Float
|
| 39 |
+
+',' Punctuation
|
| 40 |
+
+' ' Text.Whitespace
|
| 41 |
+
+'7' Literal.Number.Float
|
| 42 |
+
+',' Punctuation
|
| 43 |
+
+' ' Text.Whitespace
|
| 44 |
+
+'8' Literal.Number.Float
|
| 45 |
+
+',' Punctuation
|
| 46 |
+
+' ' Text.Whitespace
|
| 47 |
+
+'9' Literal.Number.Float
|
| 48 |
+
+',' Punctuation
|
| 49 |
+
+' ' Text.Whitespace
|
| 50 |
+
+'10' Literal.Number.Float
|
| 51 |
+
+']' Punctuation
|
| 52 |
+
+',' Punctuation
|
| 53 |
+
+'\n ' Text.Whitespace
|
| 54 |
+
+'' Text
|
| 55 |
+
+'even_numbers' Name.Variable
|
| 56 |
+
+':' Punctuation
|
| 57 |
+
+' ' Text.Whitespace
|
| 58 |
+
+'numbers' Name.Variable
|
| 59 |
+
+'[' Punctuation
|
| 60 |
+
+'1' Literal.Number.Float
|
| 61 |
+
+':' Operator
|
| 62 |
+
+':' Operator
|
| 63 |
+
+'2' Literal.Number.Float
|
| 64 |
+
+']' Punctuation
|
| 65 |
+
+',' Punctuation
|
| 66 |
+
+'\n' Text.Whitespace
|
| 67 |
+
+
|
| 68 |
+
+'}' Punctuation
|
| 69 |
+
+'\n' Text.Whitespace
|
hidden-tests/pypdf-3587.patch
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/generic/test_base.py b/tests/generic/test_base.py
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 00000000..e6387d36
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/tests/generic/test_base.py
|
| 6 |
+
@@ -0,0 +1,45 @@
|
| 7 |
+
+"""Test the pypdf.generic._base module."""
|
| 8 |
+
+from io import BytesIO
|
| 9 |
+
+
|
| 10 |
+
+import pytest
|
| 11 |
+
+
|
| 12 |
+
+from pypdf import PdfReader, PdfWriter
|
| 13 |
+
+from pypdf.generic import read_hex_string_from_stream
|
| 14 |
+
+from tests import get_data_from_url
|
| 15 |
+
+
|
| 16 |
+
+
|
| 17 |
+
+@pytest.mark.parametrize(
|
| 18 |
+
+ ("source", "expected"),
|
| 19 |
+
+ [
|
| 20 |
+
+ (b"<00FE00FF>", "\xfe\xff"),
|
| 21 |
+
+ (b"<00FE00FF00D6>", "\xfe\xff\xd6"),
|
| 22 |
+
+ ]
|
| 23 |
+
+)
|
| 24 |
+
+def test_text_string_object__looks_like_bom(source: bytes, expected: str) -> None:
|
| 25 |
+
+ stream = BytesIO(source)
|
| 26 |
+
+ result = read_hex_string_from_stream(stream)
|
| 27 |
+
+ assert result == expected
|
| 28 |
+
+
|
| 29 |
+
+
|
| 30 |
+
+@pytest.mark.enable_socket
|
| 31 |
+
+def test_text_string_object__wrongly_detected_bom():
|
| 32 |
+
+ url = "https://github.com/user-attachments/files/24401507/minimal.pdf"
|
| 33 |
+
+ name = "issue3587.pdf"
|
| 34 |
+
+ reader = PdfReader(BytesIO(get_data_from_url(url, name=name)))
|
| 35 |
+
+ reader_page = reader.pages[0]
|
| 36 |
+
+
|
| 37 |
+
+ writer = PdfWriter()
|
| 38 |
+
+ for page in reader.pages:
|
| 39 |
+
+ writer_page = writer.add_blank_page(reader_page.mediabox.width, reader_page.mediabox.height)
|
| 40 |
+
+ writer_page.merge_page(page)
|
| 41 |
+
+
|
| 42 |
+
+ assert writer_page.extract_text() == (
|
| 43 |
+
+ "无译形带 r的参 z慧队手行 c要枪互工先调 uC一在你 k该方导最 xT况 M味政没出 v大同团\n"
|
| 44 |
+
+ "想急压游这体构主 m基重张预另做内已织程术并 U种规被中应 s过小立就公测和 F更为 BS\n"
|
| 45 |
+
+ "把强型 w利 qfJ现能您关文)己个言 VW是 Z亲社 y。说准密令 K络通自力 i诸旦明量放及 I\n"
|
| 46 |
+
+ "成战康养 d都蜂多开 pE次提朋动比台有培愿 A确 l充计标去人如么 b灵 N它 g弃语看 X;j\n"
|
| 47 |
+
+ "轮 HG采共由地友入(器 Y果感建切理情从集德翻 a单第识任 Q模 eh目经相哪受起时着 DR\n"
|
| 48 |
+
+ "用好 o备划付信、度解效作协读 O讨高具击始者意群治扩到 P才兰网认 t马倒来本整 L们 n\n"
|
| 49 |
+
+ "系可论,步各之但\n"
|
| 50 |
+
+ "12"
|
| 51 |
+
+ )
|
hidden-tests/pypdf-3878.patch
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/generic/test_data_structures.py b/tests/generic/test_data_structures.py
|
| 2 |
+
index f7ca7f18..78378f91 100644
|
| 3 |
+
--- a/tests/generic/test_data_structures.py
|
| 4 |
+
+++ b/tests/generic/test_data_structures.py
|
| 5 |
+
@@ -15,6 +15,7 @@ from pypdf.generic import (
|
| 6 |
+
ArrayObject,
|
| 7 |
+
ByteStringObject,
|
| 8 |
+
ContentStream,
|
| 9 |
+
+ Destination,
|
| 10 |
+
DictionaryObject,
|
| 11 |
+
NameObject,
|
| 12 |
+
NullObject,
|
| 13 |
+
@@ -24,6 +25,7 @@ from pypdf.generic import (
|
| 14 |
+
TextStringObject,
|
| 15 |
+
TreeObject,
|
| 16 |
+
)
|
| 17 |
+
+from pypdf.types import OutlineType
|
| 18 |
+
from tests import RESOURCE_ROOT, get_data_from_url
|
| 19 |
+
|
| 20 |
+
try:
|
| 21 |
+
@@ -493,3 +495,101 @@ def test_tree_object__insert_child__cycle() -> None:
|
| 22 |
+
before=None,
|
| 23 |
+
pdf=writer,
|
| 24 |
+
)
|
| 25 |
+
+
|
| 26 |
+
+
|
| 27 |
+
+def _outlined_pdf(nested: bool = False) -> BytesIO:
|
| 28 |
+
+ writer = PdfWriter()
|
| 29 |
+
+ for _ in range(4):
|
| 30 |
+
+ writer.add_blank_page(200, 200)
|
| 31 |
+
+ cover = writer.add_outline_item("Cover", 0)
|
| 32 |
+
+ writer.add_outline_item("Body", 1)
|
| 33 |
+
+ if nested:
|
| 34 |
+
+ writer.add_outline_item("Sub", 2, parent=cover)
|
| 35 |
+
+ writer.add_outline_item("End", 3)
|
| 36 |
+
+ stream = BytesIO()
|
| 37 |
+
+ writer.write(stream)
|
| 38 |
+
+ stream.seek(0)
|
| 39 |
+
+ return stream
|
| 40 |
+
+
|
| 41 |
+
+
|
| 42 |
+
+def _flat_outline(outline: OutlineType) -> list[Destination]:
|
| 43 |
+
+ """The outline items, asserting the outline holds no nested children."""
|
| 44 |
+
+ items = []
|
| 45 |
+
+ for entry in outline:
|
| 46 |
+
+ assert isinstance(entry, Destination), f"unexpected nested entry: {entry!r}"
|
| 47 |
+
+ items.append(entry)
|
| 48 |
+
+ return items
|
| 49 |
+
+
|
| 50 |
+
+
|
| 51 |
+
+@pytest.mark.parametrize(
|
| 52 |
+
+ ("index", "expected"),
|
| 53 |
+
+ [(0, ["Body", "End"]), (1, ["Cover", "End"]), (2, ["Cover", "Body"])],
|
| 54 |
+
+)
|
| 55 |
+
+def test_remove_from_tree_on_outline_item(index: int, expected: list[str]) -> None:
|
| 56 |
+
+ """
|
| 57 |
+
+ reader.outline and writer.outline yield detached copies which never carry
|
| 58 |
+
+ /Parent, so removal has to act on the node they were built from.
|
| 59 |
+
+ """
|
| 60 |
+
+ writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))
|
| 61 |
+
+
|
| 62 |
+
+ _flat_outline(writer.outline)[index].remove_from_tree()
|
| 63 |
+
+
|
| 64 |
+
+ assert [item.title for item in _flat_outline(writer.outline)] == expected
|
| 65 |
+
+ stream = BytesIO()
|
| 66 |
+
+ writer.write(stream)
|
| 67 |
+
+ stream.seek(0)
|
| 68 |
+
+ assert [item.title for item in _flat_outline(PdfReader(stream).outline)] == expected
|
| 69 |
+
+
|
| 70 |
+
+
|
| 71 |
+
+def test_remove_from_tree_on_outline_item_without_clone() -> None:
|
| 72 |
+
+ writer = PdfWriter()
|
| 73 |
+
+ for _ in range(3):
|
| 74 |
+
+ writer.add_blank_page(200, 200)
|
| 75 |
+
+ for page_number, title in enumerate(["Cover", "Body", "End"]):
|
| 76 |
+
+ writer.add_outline_item(title, page_number)
|
| 77 |
+
+
|
| 78 |
+
+ _flat_outline(writer.outline)[0].remove_from_tree()
|
| 79 |
+
+
|
| 80 |
+
+ assert [item.title for item in _flat_outline(writer.outline)] == ["Body", "End"]
|
| 81 |
+
+
|
| 82 |
+
+
|
| 83 |
+
+def test_remove_from_tree_on_nested_outline_item() -> None:
|
| 84 |
+
+ writer = PdfWriter(clone_from=PdfReader(_outlined_pdf(nested=True)))
|
| 85 |
+
+ children = writer.outline[1]
|
| 86 |
+
+ assert isinstance(children, list)
|
| 87 |
+
+ sub = children[0]
|
| 88 |
+
+ assert isinstance(sub, Destination)
|
| 89 |
+
+ assert sub.title == "Sub"
|
| 90 |
+
+
|
| 91 |
+
+ sub.remove_from_tree()
|
| 92 |
+
+
|
| 93 |
+
+ assert [item.title for item in _flat_outline(writer.outline)] == [
|
| 94 |
+
+ "Cover",
|
| 95 |
+
+ "Body",
|
| 96 |
+
+ "End",
|
| 97 |
+
+ ]
|
| 98 |
+
+
|
| 99 |
+
+
|
| 100 |
+
+def test_remove_from_tree_on_destination_without_node() -> None:
|
| 101 |
+
+ """A destination carrying no node falls back to the plain tree behaviour."""
|
| 102 |
+
+ writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))
|
| 103 |
+
+ item = _flat_outline(writer.outline)[0]
|
| 104 |
+
+ item.node = None
|
| 105 |
+
+
|
| 106 |
+
+ with pytest.raises(
|
| 107 |
+
+ ValueError, match=r"^Removed child does not appear to be a tree item$"
|
| 108 |
+
+ ):
|
| 109 |
+
+ item.remove_from_tree()
|
| 110 |
+
+
|
| 111 |
+
+
|
| 112 |
+
+def test_remove_from_tree_on_node_already_detached() -> None:
|
| 113 |
+
+ """A node whose /Parent has gone is no longer part of any tree."""
|
| 114 |
+
+ writer = PdfWriter(clone_from=PdfReader(_outlined_pdf()))
|
| 115 |
+
+ item = _flat_outline(writer.outline)[0]
|
| 116 |
+
+ assert item.node is not None
|
| 117 |
+
+ del item.node[NameObject("/Parent")]
|
| 118 |
+
+
|
| 119 |
+
+ with pytest.raises(
|
| 120 |
+
+ ValueError, match=r"^Removed child does not appear to be a tree item$"
|
| 121 |
+
+ ):
|
| 122 |
+
+ item.remove_from_tree()
|
hidden-tests/pypdf-3982.patch
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_text_extraction.py b/tests/test_text_extraction.py
|
| 2 |
+
index 633d71dc..43bf0124 100644
|
| 3 |
+
--- a/tests/test_text_extraction.py
|
| 4 |
+
+++ b/tests/test_text_extraction.py
|
| 5 |
+
@@ -930,3 +930,61 @@ def test_extract_text__form_xobject__limit(caplog) -> None:
|
| 6 |
+
assert caplog.messages == [
|
| 7 |
+
"Exceeded 100 form XObject invocations while extracting text; further form content is skipped."
|
| 8 |
+
]
|
| 9 |
+
+
|
| 10 |
+
+
|
| 11 |
+
+def _page_with_helvetica(content_stream: bytes) -> BytesIO:
|
| 12 |
+
+ """Build a single page using /F1 (Helvetica) and the given content stream."""
|
| 13 |
+
+ writer = PdfWriter()
|
| 14 |
+
+ page = writer.add_blank_page(width=612, height=792)
|
| 15 |
+
+
|
| 16 |
+
+ helvetica = DictionaryObject()
|
| 17 |
+
+ helvetica[NameObject("/Type")] = NameObject("/Font")
|
| 18 |
+
+ helvetica[NameObject("/Subtype")] = NameObject("/Type1")
|
| 19 |
+
+ helvetica[NameObject("/BaseFont")] = NameObject("/Helvetica")
|
| 20 |
+
+ font_resources = DictionaryObject()
|
| 21 |
+
+ font_resources[NameObject("/F1")] = writer._add_object(helvetica)
|
| 22 |
+
+ resources = DictionaryObject()
|
| 23 |
+
+ resources[NameObject("/Font")] = font_resources
|
| 24 |
+
+ page[NameObject("/Resources")] = resources
|
| 25 |
+
+
|
| 26 |
+
+ content = DecodedStreamObject()
|
| 27 |
+
+ content.set_data(content_stream)
|
| 28 |
+
+ page[NameObject("/Contents")] = writer._add_object(content)
|
| 29 |
+
+
|
| 30 |
+
+ buffer = BytesIO()
|
| 31 |
+
+ writer.write(buffer)
|
| 32 |
+
+ buffer.seek(0)
|
| 33 |
+
+ return buffer
|
| 34 |
+
+
|
| 35 |
+
+
|
| 36 |
+
+def test_text_leading_is_not_scaled_by_font_size() -> None:
|
| 37 |
+
+ """Tests for #3982"""
|
| 38 |
+
+ buffer = _page_with_helvetica(
|
| 39 |
+
+ b"BT /F1 12 Tf 1 0 0 1 72 700 Tm 14 TL "
|
| 40 |
+
+ b"(Line one) Tj T* (Line two) Tj T* (Line three) Tj ET"
|
| 41 |
+
+ )
|
| 42 |
+
+
|
| 43 |
+
+ positions = []
|
| 44 |
+
+
|
| 45 |
+
+ def visitor_text(text, cm, tm, font_dict, font_size) -> None:
|
| 46 |
+
+ if text.strip():
|
| 47 |
+
+ positions.append(round(tm[5], 2))
|
| 48 |
+
+
|
| 49 |
+
+ text = PdfReader(buffer).pages[0].extract_text(visitor_text=visitor_text)
|
| 50 |
+
+
|
| 51 |
+
+ # T* moves down by the leading itself: 14 units, not 14 * 12 (the font size).
|
| 52 |
+
+ assert positions == [700.0, 686.0, 672.0]
|
| 53 |
+
+ assert text == "Line one\nLine two\nLine three"
|
| 54 |
+
+
|
| 55 |
+
+
|
| 56 |
+
+def test_line_breaks_with_scaled_current_matrix() -> None:
|
| 57 |
+
+ """Tests for #2262: the line height has to be compared in the same space."""
|
| 58 |
+
+ # The lines are 240 units apart in text space, which the CTM scales down to
|
| 59 |
+
+ # 12 units, matching a 200 pt font scaled down to 10 pt.
|
| 60 |
+
+ buffer = _page_with_helvetica(
|
| 61 |
+
+ b"q 0.05 0 0 0.05 0 0 cm "
|
| 62 |
+
+ b"BT /F1 200 Tf 1 0 0 1 200 14000 Tm (Line one) Tj "
|
| 63 |
+
+ b"1 0 0 1 200 13760 Tm (Line two) Tj ET Q"
|
| 64 |
+
+ )
|
| 65 |
+
+
|
| 66 |
+
+ assert PdfReader(buffer).pages[0].extract_text() == "Line one\nLine two"
|
hidden-tests/sqlit-246.patch
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/unit/test_multi_statement.py b/tests/unit/test_multi_statement.py
|
| 2 |
+
index 21e3307..617abb2 100644
|
| 3 |
+
--- a/tests/unit/test_multi_statement.py
|
| 4 |
+
+++ b/tests/unit/test_multi_statement.py
|
| 5 |
+
@@ -76,6 +76,55 @@ class TestStatementSplitting:
|
| 6 |
+
|
| 7 |
+
assert len(statements) == 2
|
| 8 |
+
|
| 9 |
+
+ def test_preserves_semicolons_in_dollar_quoted_strings(self):
|
| 10 |
+
+ """Should not split on semicolons inside dollar-quoted strings."""
|
| 11 |
+
+ from sqlit.domains.query.app.multi_statement import split_statements
|
| 12 |
+
+
|
| 13 |
+
+ query = """
|
| 14 |
+
+ CREATE OR REPLACE FUNCTION example()
|
| 15 |
+
+ RETURNS void AS $$
|
| 16 |
+
+ BEGIN
|
| 17 |
+
+ INSERT INTO t (x) VALUES ('a;b');
|
| 18 |
+
+ END;
|
| 19 |
+
+ $$ LANGUAGE plpgsql;
|
| 20 |
+
+ SELECT 1;
|
| 21 |
+
+ """
|
| 22 |
+
+ statements = split_statements(query)
|
| 23 |
+
+
|
| 24 |
+
+ assert len(statements) == 2
|
| 25 |
+
+ assert "CREATE OR REPLACE FUNCTION" in statements[0]
|
| 26 |
+
+ assert "SELECT 1" in statements[1]
|
| 27 |
+
+
|
| 28 |
+
+ def test_preserves_semicolons_in_named_dollar_quoted_strings(self):
|
| 29 |
+
+ """Should not split on semicolons inside named dollar-quoted strings."""
|
| 30 |
+
+ from sqlit.domains.query.app.multi_statement import split_statements
|
| 31 |
+
+
|
| 32 |
+
+ query = """
|
| 33 |
+
+ CREATE OR REPLACE FUNCTION example()
|
| 34 |
+
+ RETURNS void AS $func_tag$
|
| 35 |
+
+ BEGIN
|
| 36 |
+
+ INSERT INTO t (x) VALUES ('a;b');
|
| 37 |
+
+ END;
|
| 38 |
+
+ $func_tag$ LANGUAGE plpgsql;
|
| 39 |
+
+ SELECT 1;
|
| 40 |
+
+ """
|
| 41 |
+
+ statements = split_statements(query)
|
| 42 |
+
+
|
| 43 |
+
+ assert len(statements) == 2
|
| 44 |
+
+ assert "CREATE OR REPLACE FUNCTION" in statements[0]
|
| 45 |
+
+ assert "SELECT 1" in statements[1]
|
| 46 |
+
+
|
| 47 |
+
+ def test_dollar_quotes_inside_standard_strings_are_ignored(self):
|
| 48 |
+
+ """Should ignore dollar quote delimiters when inside standard string literals."""
|
| 49 |
+
+ from sqlit.domains.query.app.multi_statement import split_statements
|
| 50 |
+
+
|
| 51 |
+
+ query = "INSERT INTO t (x) VALUES ('$$'); SELECT 1"
|
| 52 |
+
+ statements = split_statements(query)
|
| 53 |
+
+
|
| 54 |
+
+ assert len(statements) == 2
|
| 55 |
+
+ assert "INSERT" in statements[0]
|
| 56 |
+
+ assert "SELECT 1" in statements[1]
|
| 57 |
+
+
|
| 58 |
+
|
| 59 |
+
class TestMultiStatementResult:
|
| 60 |
+
"""Tests for MultiStatementResult data structure."""
|
hidden-tests/sqlit-260.patch
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/connections/providers/oracle/test_statement_execution.py b/tests/connections/providers/oracle/test_statement_execution.py
|
| 2 |
+
new file mode 100644
|
| 3 |
+
index 0000000..73eda73
|
| 4 |
+
--- /dev/null
|
| 5 |
+
+++ b/tests/connections/providers/oracle/test_statement_execution.py
|
| 6 |
+
@@ -0,0 +1,77 @@
|
| 7 |
+
+"""Oracle-specific statement execution behavior."""
|
| 8 |
+
+
|
| 9 |
+
+from __future__ import annotations
|
| 10 |
+
+
|
| 11 |
+
+from unittest.mock import MagicMock
|
| 12 |
+
+
|
| 13 |
+
+import pytest
|
| 14 |
+
+
|
| 15 |
+
+from sqlit.domains.connections.providers.oracle.adapter import OracleAdapter
|
| 16 |
+
+
|
| 17 |
+
+
|
| 18 |
+
+@pytest.fixture
|
| 19 |
+
+def adapter() -> OracleAdapter:
|
| 20 |
+
+ return OracleAdapter()
|
| 21 |
+
+
|
| 22 |
+
+
|
| 23 |
+
+@pytest.fixture
|
| 24 |
+
+def mock_conn() -> MagicMock:
|
| 25 |
+
+ conn = MagicMock()
|
| 26 |
+
+ cursor = conn.cursor.return_value
|
| 27 |
+
+ cursor.description = None
|
| 28 |
+
+ cursor.rowcount = 0
|
| 29 |
+
+ return conn
|
| 30 |
+
+
|
| 31 |
+
+
|
| 32 |
+
+@pytest.mark.parametrize(
|
| 33 |
+
+ ("query", "expected"),
|
| 34 |
+
+ [
|
| 35 |
+
+ ("SELECT ';' AS value FROM DUAL;", "SELECT ';' AS value FROM DUAL"),
|
| 36 |
+
+ ("SELECT 1 FROM DUAL; \n", "SELECT 1 FROM DUAL"),
|
| 37 |
+
+ ("SELECT 1 FROM DUAL", "SELECT 1 FROM DUAL"),
|
| 38 |
+
+ ],
|
| 39 |
+
+)
|
| 40 |
+
+def test_execute_query_removes_sql_statement_terminator(
|
| 41 |
+
+ adapter: OracleAdapter,
|
| 42 |
+
+ mock_conn: MagicMock,
|
| 43 |
+
+ query: str,
|
| 44 |
+
+ expected: str,
|
| 45 |
+
+) -> None:
|
| 46 |
+
+ """python-oracledb rejects SQL statements ending in a semicolon."""
|
| 47 |
+
+ adapter.execute_query(mock_conn, query)
|
| 48 |
+
+
|
| 49 |
+
+ mock_conn.cursor.return_value.execute.assert_called_once_with(expected)
|
| 50 |
+
+
|
| 51 |
+
+
|
| 52 |
+
+def test_execute_non_query_removes_sql_statement_terminator(
|
| 53 |
+
+ adapter: OracleAdapter,
|
| 54 |
+
+ mock_conn: MagicMock,
|
| 55 |
+
+) -> None:
|
| 56 |
+
+ """Issue #260: ALTER SESSION must reach python-oracledb without ``;``."""
|
| 57 |
+
+ adapter.execute_non_query(mock_conn, "ALTER SESSION SET EDITION = V0;")
|
| 58 |
+
+
|
| 59 |
+
+ mock_conn.cursor.return_value.execute.assert_called_once_with("ALTER SESSION SET EDITION = V0")
|
| 60 |
+
+
|
| 61 |
+
+
|
| 62 |
+
+@pytest.mark.parametrize(
|
| 63 |
+
+ "statement",
|
| 64 |
+
+ [
|
| 65 |
+
+ "BEGIN NULL; END;",
|
| 66 |
+
+ "DECLARE value NUMBER := 1; BEGIN NULL; END;",
|
| 67 |
+
+ "CREATE OR REPLACE PROCEDURE p AS BEGIN NULL; END;",
|
| 68 |
+
+ "-- setup\nBEGIN NULL; END;",
|
| 69 |
+
+ "/* setup */ CREATE OR REPLACE EDITIONABLE FUNCTION f RETURN NUMBER "
|
| 70 |
+
+ "AS BEGIN RETURN 1; END;",
|
| 71 |
+
+ "CREATE OR REPLACE TYPE BODY t AS MEMBER PROCEDURE p IS "
|
| 72 |
+
+ "BEGIN NULL; END; END;",
|
| 73 |
+
+ ],
|
| 74 |
+
+)
|
| 75 |
+
+def test_execute_non_query_preserves_plsql_terminator(
|
| 76 |
+
+ adapter: OracleAdapter,
|
| 77 |
+
+ mock_conn: MagicMock,
|
| 78 |
+
+ statement: str,
|
| 79 |
+
+) -> None:
|
| 80 |
+
+ """The final semicolon is part of PL/SQL syntax, not a client terminator."""
|
| 81 |
+
+ adapter.execute_non_query(mock_conn, statement)
|
| 82 |
+
+
|
| 83 |
+
+ mock_conn.cursor.return_value.execute.assert_called_once_with(statement)
|
hidden-tests/structlog-710.patch
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/processors/test_processors.py b/tests/processors/test_processors.py
|
| 2 |
+
index e43485e..99516b4 100644
|
| 3 |
+
--- a/tests/processors/test_processors.py
|
| 4 |
+
+++ b/tests/processors/test_processors.py
|
| 5 |
+
@@ -36,6 +36,7 @@ from structlog.processors import (
|
| 6 |
+
format_exc_info,
|
| 7 |
+
)
|
| 8 |
+
from structlog.stdlib import ProcessorFormatter
|
| 9 |
+
+from structlog.testing import CapturingLoggerFactory
|
| 10 |
+
from structlog.typing import EventDict, ExcInfo
|
| 11 |
+
|
| 12 |
+
from ..additional_frame import additional_frame
|
| 13 |
+
@@ -378,6 +379,7 @@ class TestCallsiteParameterAdder:
|
| 14 |
+
async def test_async(self, wrapper_class, method_name) -> None:
|
| 15 |
+
"""
|
| 16 |
+
Callsite information for async invocations are correct.
|
| 17 |
+
+ Thread information is now correctly captured before async bridge.
|
| 18 |
+
"""
|
| 19 |
+
string_io = StringIO()
|
| 20 |
+
|
| 21 |
+
@@ -395,17 +397,56 @@ class TestCallsiteParameterAdder:
|
| 22 |
+
|
| 23 |
+
logger = structlog.stdlib.get_logger()
|
| 24 |
+
|
| 25 |
+
+ # Capture thread info before async call
|
| 26 |
+
+ expected_thread = threading.get_ident()
|
| 27 |
+
+ expected_thread_name = threading.current_thread().name
|
| 28 |
+
+
|
| 29 |
+
callsite_params = self.get_callsite_parameters()
|
| 30 |
+
await getattr(logger, method_name)("baz")
|
| 31 |
+
logger_params = json.loads(string_io.getvalue())
|
| 32 |
+
|
| 33 |
+
- # These are different when running under async
|
| 34 |
+
+ assert expected_thread == logger_params["thread"]
|
| 35 |
+
+ assert expected_thread_name == logger_params["thread_name"]
|
| 36 |
+
+
|
| 37 |
+
+ # Remove thread info from comparison for remaining params
|
| 38 |
+
for key in ["thread", "thread_name"]:
|
| 39 |
+
callsite_params.pop(key)
|
| 40 |
+
logger_params.pop(key)
|
| 41 |
+
|
| 42 |
+
assert {"event": "baz", **callsite_params} == logger_params
|
| 43 |
+
|
| 44 |
+
+ @pytest.mark.asyncio
|
| 45 |
+
+ async def test_async_native_logger(self) -> None:
|
| 46 |
+
+ """
|
| 47 |
+
+ Callsite thread information for native async invocations is correct.
|
| 48 |
+
+ """
|
| 49 |
+
+ cf = CapturingLoggerFactory()
|
| 50 |
+
+ structlog.configure(
|
| 51 |
+
+ processors=[
|
| 52 |
+
+ CallsiteParameterAdder(
|
| 53 |
+
+ parameters=[
|
| 54 |
+
+ CallsiteParameter.THREAD,
|
| 55 |
+
+ CallsiteParameter.THREAD_NAME,
|
| 56 |
+
+ ]
|
| 57 |
+
+ ),
|
| 58 |
+
+ ],
|
| 59 |
+
+ logger_factory=cf,
|
| 60 |
+
+ wrapper_class=structlog._native.BoundLoggerFilteringAtInfo,
|
| 61 |
+
+ cache_logger_on_first_use=True,
|
| 62 |
+
+ )
|
| 63 |
+
+
|
| 64 |
+
+ logger = structlog.get_logger()
|
| 65 |
+
+
|
| 66 |
+
+ expected_thread = threading.get_ident()
|
| 67 |
+
+ expected_thread_name = threading.current_thread().name
|
| 68 |
+
+
|
| 69 |
+
+ await logger.ainfo("test native async")
|
| 70 |
+
+
|
| 71 |
+
+ captured = cf.logger.calls[0].kwargs
|
| 72 |
+
+
|
| 73 |
+
+ assert expected_thread == captured["thread"]
|
| 74 |
+
+ assert expected_thread_name == captured["thread_name"]
|
| 75 |
+
+
|
| 76 |
+
def test_additional_ignores(self, monkeypatch: pytest.MonkeyPatch) -> None:
|
| 77 |
+
"""
|
| 78 |
+
Stack frames from modules with names that start with values in
|
hidden-tests/tomlkit-440.patch
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_toml_document.py b/tests/test_toml_document.py
|
| 2 |
+
index a3fd566..0ee5ed8 100644
|
| 3 |
+
--- a/tests/test_toml_document.py
|
| 4 |
+
+++ b/tests/test_toml_document.py
|
| 5 |
+
@@ -1528,6 +1528,19 @@ name = "Nail"
|
| 6 |
+
}
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+def test_add_key_after_dotted_inline_table_without_ending_newline() -> None:
|
| 10 |
+
+ content = "[x]\na.b = {}"
|
| 11 |
+
+ doc = parse(content)
|
| 12 |
+
+ doc["x"]["c"] = 3
|
| 13 |
+
+
|
| 14 |
+
+ assert doc.as_string() == "[x]\na.b = {}\nc = 3\n"
|
| 15 |
+
+
|
| 16 |
+
+ doc = parse(f"{content}\n")
|
| 17 |
+
+ doc["x"]["c"] = 3
|
| 18 |
+
+
|
| 19 |
+
+ assert doc.as_string() == "[x]\na.b = {}\nc = 3\n"
|
| 20 |
+
+
|
| 21 |
+
+
|
| 22 |
+
def test_appending_to_super_table() -> None:
|
| 23 |
+
content = """\
|
| 24 |
+
[a.b]
|
hidden-tests/tomlkit-542.patch
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_toml_document.py b/tests/test_toml_document.py
|
| 2 |
+
index 0e950cb..769c919 100644
|
| 3 |
+
--- a/tests/test_toml_document.py
|
| 4 |
+
+++ b/tests/test_toml_document.py
|
| 5 |
+
@@ -1170,6 +1170,28 @@ x = 9
|
| 6 |
+
assert parse(doc.as_string()) == {"c": {"d": 2}, "a": {"x": 9}}
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
+def test_replace_dotted_key_with_aot_keeps_following_sibling() -> None:
|
| 10 |
+
+ # https://github.com/python-poetry/tomlkit/issues/542
|
| 11 |
+
+ content = """a.b = 1
|
| 12 |
+
+c.d = 2
|
| 13 |
+
+"""
|
| 14 |
+
+ doc = parse(content)
|
| 15 |
+
+ arr = tomlkit.aot()
|
| 16 |
+
+ tbl = tomlkit.table()
|
| 17 |
+
+ tbl["x"] = 9
|
| 18 |
+
+ arr.append(tbl)
|
| 19 |
+
+ doc["a"] = arr
|
| 20 |
+
+ assert (
|
| 21 |
+
+ doc.as_string()
|
| 22 |
+
+ == """c.d = 2
|
| 23 |
+
+
|
| 24 |
+
+[[a]]
|
| 25 |
+
+x = 9
|
| 26 |
+
+"""
|
| 27 |
+
+ )
|
| 28 |
+
+ assert parse(doc.as_string()) == {"c": {"d": 2}, "a": [{"x": 9}]}
|
| 29 |
+
+
|
| 30 |
+
+
|
| 31 |
+
def test_replace_value_with_table_keeps_following_dotted_sibling() -> None:
|
| 32 |
+
# A plain value turning into a table must likewise clear the inline region
|
| 33 |
+
# (including dotted keys) before emitting its header.
|
hidden-tests/typeguard-499.patch
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/tests/test_checkers.py b/tests/test_checkers.py
|
| 2 |
+
index 4c96cf8..5f77898 100644
|
| 3 |
+
--- a/tests/test_checkers.py
|
| 4 |
+
+++ b/tests/test_checkers.py
|
| 5 |
+
@@ -14,6 +14,7 @@ from typing import (
|
| 6 |
+
AnyStr,
|
| 7 |
+
BinaryIO,
|
| 8 |
+
Callable,
|
| 9 |
+
+ ClassVar,
|
| 10 |
+
Collection,
|
| 11 |
+
Concatenate,
|
| 12 |
+
ContextManager,
|
| 13 |
+
@@ -1342,6 +1343,36 @@ class TestProtocol:
|
| 14 |
+
f"'member'"
|
| 15 |
+
)
|
| 16 |
+
|
| 17 |
+
+ def test_class_against_protocol_ignores_instance_attributes(self) -> None:
|
| 18 |
+
+ # Checking a class (not an instance) against type[Protocol] must not
|
| 19 |
+
+ # flag instance attributes as missing; only ClassVar members are
|
| 20 |
+
+ # required on the class itself. See issue #499.
|
| 21 |
+
+ class MyProtocol(Protocol):
|
| 22 |
+
+ foo: str
|
| 23 |
+
+
|
| 24 |
+
+ class Foo:
|
| 25 |
+
+ def __init__(self) -> None:
|
| 26 |
+
+ self.foo = "bar"
|
| 27 |
+
+
|
| 28 |
+
+ check_type(Foo, type[MyProtocol])
|
| 29 |
+
+
|
| 30 |
+
+ def test_class_against_protocol_requires_classvar(self) -> None:
|
| 31 |
+
+ class MyProtocol(Protocol):
|
| 32 |
+
+ bar: ClassVar[int]
|
| 33 |
+
+
|
| 34 |
+
+ class Missing:
|
| 35 |
+
+ pass
|
| 36 |
+
+
|
| 37 |
+
+ pytest.raises(TypeCheckError, check_type, Missing, type[MyProtocol]).match(
|
| 38 |
+
+ f"is not compatible with the {MyProtocol.__qualname__} protocol "
|
| 39 |
+
+ f"because it has no attribute named 'bar'"
|
| 40 |
+
+ )
|
| 41 |
+
+
|
| 42 |
+
+ class Present:
|
| 43 |
+
+ bar = 3
|
| 44 |
+
+
|
| 45 |
+
+ check_type(Present, type[MyProtocol])
|
| 46 |
+
+
|
| 47 |
+
def test_missing_method(self) -> None:
|
| 48 |
+
class MyProtocol(Protocol):
|
| 49 |
+
def meth(self) -> None:
|
miner/.gitignore
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.venv/
|
| 2 |
+
__pycache__/
|
| 3 |
+
.pytest_cache/
|
| 4 |
+
.ruff_cache/
|
| 5 |
+
*.pyc
|
| 6 |
+
build/
|
| 7 |
+
dist/
|
| 8 |
+
work/
|
| 9 |
+
data/*candidates*.jsonl
|
| 10 |
+
data/artifacts/
|
| 11 |
+
data/reviews/*/
|
miner/.pytest_cache/.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Created by pytest automatically.
|
| 2 |
+
*
|
miner/.pytest_cache/CACHEDIR.TAG
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Signature: 8a477f597d28d172789f06886806bc55
|
| 2 |
+
# This file is a cache directory tag created by pytest.
|
| 3 |
+
# For information about cache directory tags, see:
|
| 4 |
+
# https://bford.info/cachedir/spec.html
|
miner/.pytest_cache/README.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# pytest cache directory #
|
| 2 |
+
|
| 3 |
+
This directory contains data from the pytest's cache plugin,
|
| 4 |
+
which provides the `--lf` and `--ff` options, as well as the `cache` fixture.
|
| 5 |
+
|
| 6 |
+
**Do not** commit this to version control.
|
| 7 |
+
|
| 8 |
+
See [the docs](https://docs.pytest.org/en/stable/how-to/cache.html) for more information.
|
miner/.pytest_cache/v/cache/nodeids
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_classify.py::test_bug_label_can_supply_signal",
|
| 3 |
+
"tests/test_classify.py::test_eligible_fix_and_test",
|
| 4 |
+
"tests/test_classify.py::test_feature_without_bug_label_is_rejected",
|
| 5 |
+
"tests/test_classify.py::test_path_classification",
|
| 6 |
+
"tests/test_classify.py::test_rejections_are_explicit_and_additive",
|
| 7 |
+
"tests/test_freeze.py::test_freeze_accepts_and_normalizes_known_legacy_smoke_hash",
|
| 8 |
+
"tests/test_freeze.py::test_freeze_fails_closed_without_validation",
|
| 9 |
+
"tests/test_freeze.py::test_freeze_is_deterministic_and_dereferences_source_links",
|
| 10 |
+
"tests/test_freeze.py::test_freeze_publishes_version_tag_from_older_digest_attestation",
|
| 11 |
+
"tests/test_freeze.py::test_freeze_rechecks_four_cell_proof_and_validated_decision",
|
| 12 |
+
"tests/test_freeze.py::test_freeze_rejects_false_runner_smoke_hash",
|
| 13 |
+
"tests/test_freeze.py::test_freeze_rejects_nonversioned_runtime_recipe[bad image:1]",
|
| 14 |
+
"tests/test_freeze.py::test_freeze_rejects_nonversioned_runtime_recipe[python:latest]",
|
| 15 |
+
"tests/test_freeze.py::test_freeze_rejects_nonversioned_runtime_recipe[python@sha256:aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa]",
|
| 16 |
+
"tests/test_freeze.py::test_freeze_rejects_nonversioned_runtime_recipe[python]",
|
| 17 |
+
"tests/test_freeze.py::test_freeze_requires_exact_explicit_count",
|
| 18 |
+
"tests/test_io.py::test_candidate_jsonl_round_trip",
|
| 19 |
+
"tests/test_prepare.py::test_leakage_flags[Here is the proposed fix: change x to y-solution-language]",
|
| 20 |
+
"tests/test_prepare.py::test_leakage_flags[Reproduction only-None]",
|
| 21 |
+
"tests/test_prepare.py::test_leakage_flags[The traceback points at src/mod.py-mentions-production-path:src/mod.py]",
|
| 22 |
+
"tests/test_prepare.py::test_pilot_nominations_are_unique_and_balanced",
|
| 23 |
+
"tests/test_prepare.py::test_review_decisions_cover_every_nomination",
|
| 24 |
+
"tests/test_validate.py::test_json_repair_runtime_is_network_buildable_and_offline_runnable",
|
| 25 |
+
"tests/test_validate.py::test_reviewed_task_commands_are_focused"
|
| 26 |
+
]
|
miner/README.md
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# PatchEval miner
|
| 2 |
+
|
| 3 |
+
This repository mines and validates frozen PatchEval tasks. It is deliberately
|
| 4 |
+
separate from BenchKit: BenchKit contains the public runner and grader, while
|
| 5 |
+
this project records how each immutable dataset release was produced.
|
| 6 |
+
|
| 7 |
+
The pilot release targets 20 Python bug-fix tasks from 2025-12-23 through
|
| 8 |
+
2026-08-23. A candidate is only eligible when one pull request:
|
| 9 |
+
|
| 10 |
+
- links a public GitHub issue;
|
| 11 |
+
- changes Python production code and regression tests together;
|
| 12 |
+
- has a single-parent fix commit, so the starting state is unambiguous; and
|
| 13 |
+
- can later be proven to fail at the parent and pass at the fix without
|
| 14 |
+
regressing the repository's previously passing suite.
|
| 15 |
+
|
| 16 |
+
Discovery is not validation. The `collect` command only builds an auditable raw
|
| 17 |
+
candidate ledger. Container builds, repeated fail/pass validation, blind review,
|
| 18 |
+
and final freezing are separate gates.
|
| 19 |
+
|
| 20 |
+
## Discovery
|
| 21 |
+
|
| 22 |
+
Authenticate the GitHub CLI, then run:
|
| 23 |
+
|
| 24 |
+
```console
|
| 25 |
+
patcheval-mine collect --config config/pilot.toml --output data/candidates.jsonl
|
| 26 |
+
patcheval-mine summarize data/candidates.jsonl
|
| 27 |
+
```
|
| 28 |
+
|
| 29 |
+
The collector uses GitHub's public API through `gh`; it does not clone
|
| 30 |
+
repositories or download gold patches.
|
| 31 |
+
|
| 32 |
+
## Publication boundary
|
| 33 |
+
|
| 34 |
+
Raw review files may contain fix metadata and are not dataset artifacts. A
|
| 35 |
+
published task contains only its parent source archive, issue prompt, pinned
|
| 36 |
+
runtime build recipe, hidden-test patch, commands, checksums, and validation
|
| 37 |
+
attestation. PatchEval publishes no Docker images. Gold source patches and
|
| 38 |
+
repository history are never shipped to the agent sandbox.
|
| 39 |
+
|
| 40 |
+
## Freeze a validated release
|
| 41 |
+
|
| 42 |
+
Freezing is the final, fail-closed publication gate. It only accepts tasks whose
|
| 43 |
+
entry in `review-decisions.toml` is `decision = "validated"`, whose packet has a
|
| 44 |
+
successful repeated four-cell `validation.json`. Each task records the
|
| 45 |
+
versioned upstream base tag, dependency sync command, optional bootstrap
|
| 46 |
+
command, and runtime environment used by validation. BenchKit turns that recipe
|
| 47 |
+
into a local Docker image at run time and removes all PatchEval Docker resources
|
| 48 |
+
after the run. Version tags and package registries can drift; the release
|
| 49 |
+
deliberately freezes the recipe and source rather than a built image.
|
| 50 |
+
|
| 51 |
+
Freeze an explicit set:
|
| 52 |
+
|
| 53 |
+
```console
|
| 54 |
+
patcheval-mine freeze \
|
| 55 |
+
--decisions config/review-decisions.toml \
|
| 56 |
+
--packets work/review-packets \
|
| 57 |
+
--cache work/repositories \
|
| 58 |
+
--output dist/patcheval-pilot \
|
| 59 |
+
--count 20 \
|
| 60 |
+
--task sqlit-246 \
|
| 61 |
+
--task sqlit-260
|
| 62 |
+
# Repeat --task exactly 20 times. Without --task, validated entries are selected
|
| 63 |
+
# in review-decisions.toml order.
|
| 64 |
+
```
|
| 65 |
+
|
| 66 |
+
The output is written atomically and contains deterministic regular-file-only
|
| 67 |
+
parent tar archives, copied hidden-test patches and validation attestations,
|
| 68 |
+
`tasks.jsonl`, `dataset.json`, and a sorted `SHA256SUMS`. Safe repository
|
| 69 |
+
symlinks are dereferenced; escaping, cyclic, missing-target, hardlink, device,
|
| 70 |
+
and other special archive entries abort the freeze. Empty `setup_command` and
|
| 71 |
+
empty optional fields are omitted for BenchKit schema compatibility.
|
| 72 |
+
|
| 73 |
+
The freezer refuses missing or contradictory validation cells, packet/checksum
|
| 74 |
+
mismatches, ambiguous parents, missing mirrors, an existing output directory,
|
| 75 |
+
malformed runtime recipes, mutable `latest` base tags, and invalid environment
|
| 76 |
+
entries. A failed run never leaves a partial release at `--output`.
|
miner/config/commands.toml
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
schema_version = 1
|
| 2 |
+
|
| 3 |
+
[tasks."json-repair-207"]
|
| 4 |
+
fail_to_pass = ["pytest", "-q", "tests/test_parse_string.py::test_parse_string_preserves_repeated_escaped_backslashes_during_repair"]
|
| 5 |
+
regression = ["pytest", "-q", "--ignore=tests/test_performance.py"]
|
| 6 |
+
|
| 7 |
+
[tasks."json-repair-191"]
|
| 8 |
+
fail_to_pass = ["pytest", "-q", "tests/test_json_repair.py::test_parenthesized_prose_does_not_hijack_fenced_json"]
|
| 9 |
+
regression = ["pytest", "-q", "--ignore=tests/test_performance.py"]
|
| 10 |
+
|
| 11 |
+
[tasks."json-repair-205"]
|
| 12 |
+
fail_to_pass = ["pytest", "-q", "tests/test_schema_guided_parse.py::test_schema_union_branch_keeps_root_defs_scope_during_repair"]
|
| 13 |
+
regression = ["pytest", "-q", "--ignore=tests/test_performance.py"]
|
| 14 |
+
|
| 15 |
+
[tasks."json-repair-194"]
|
| 16 |
+
fail_to_pass = ["pytest", "-q", "tests/test_parse_comment.py::test_line_comment_brackets_do_not_close_array_items"]
|
| 17 |
+
regression = ["pytest", "-q", "--ignore=tests/test_performance.py"]
|
| 18 |
+
|
| 19 |
+
[tasks."sqlit-246"]
|
| 20 |
+
fail_to_pass = ["pytest", "-q", "--timeout=60", "tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_dollar_quoted_strings", "tests/unit/test_multi_statement.py::TestStatementSplitting::test_preserves_semicolons_in_named_dollar_quoted_strings", "tests/unit/test_multi_statement.py::TestStatementSplitting::test_dollar_quotes_inside_standard_strings_are_ignored"]
|
| 21 |
+
regression = ["pytest", "-q", "--timeout=60", "tests/", "--ignore=tests/test_mssql.py", "--ignore=tests/test_postgresql.py", "--ignore=tests/test_mysql.py", "--ignore=tests/test_oracle.py", "--ignore=tests/test_mariadb.py", "--ignore=tests/test_cockroachdb.py", "--ignore=tests/test_turso.py", "--ignore=tests/test_firebird.py", "--ignore=tests/test_ssh.py", "--ignore=tests/test_clickhouse.py"]
|
| 22 |
+
|
| 23 |
+
[tasks."sqlit-260"]
|
| 24 |
+
fail_to_pass = ["pytest", "-q", "--timeout=60", "tests/connections/providers/oracle/test_statement_execution.py::test_execute_query_removes_sql_statement_terminator", "tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_removes_sql_statement_terminator", "tests/connections/providers/oracle/test_statement_execution.py::test_execute_non_query_preserves_plsql_terminator"]
|
| 25 |
+
regression = ["pytest", "-q", "--timeout=60", "tests/", "--ignore=tests/test_mssql.py", "--ignore=tests/test_postgresql.py", "--ignore=tests/test_mysql.py", "--ignore=tests/test_oracle.py", "--ignore=tests/test_mariadb.py", "--ignore=tests/test_cockroachdb.py", "--ignore=tests/test_turso.py", "--ignore=tests/test_firebird.py", "--ignore=tests/test_ssh.py", "--ignore=tests/test_clickhouse.py"]
|
| 26 |
+
|
| 27 |
+
[tasks."city2graph-121"]
|
| 28 |
+
fail_to_pass = ["pytest", "-q", "tests/test_utils.py::TestPlotting::test_plot_graph_homo_with_legend_kwargs_and_title"]
|
| 29 |
+
regression = ["pytest", "-q", "tests"]
|
| 30 |
+
|
| 31 |
+
[tasks."city2graph-156"]
|
| 32 |
+
fail_to_pass = ["pytest", "-q", "tests/test_graph.py::TestUndirectedEdgeHandling::test_every_edge_has_reverse"]
|
| 33 |
+
regression = ["pytest", "-q", "tests"]
|
| 34 |
+
|
| 35 |
+
[tasks."click-3572"]
|
| 36 |
+
fail_to_pass = ["pytest", "-q", "tests/test_termui.py::test_prompt_and_confirm_ansi_respects_color[confirm-no-color]"]
|
| 37 |
+
regression = ["pytest", "-q", "-m", "not stress", "tests"]
|
| 38 |
+
|
| 39 |
+
[tasks."click-3360"]
|
| 40 |
+
fail_to_pass = ["pytest", "-q", "tests/test_formatting.py::test_help_formatter_write_usage[empty-args-default-prefix]"]
|
| 41 |
+
regression = ["pytest", "-q", "-m", "not stress", "tests"]
|
| 42 |
+
|
| 43 |
+
[tasks."click-2790"]
|
| 44 |
+
fail_to_pass = ["pytest", "-q", "tests/test_formatting.py::test_formatting_usage_error_help_hint[help_names1-extra_options1-Try 'cli foo --help' for help.]"]
|
| 45 |
+
regression = ["pytest", "-q", "-m", "not stress", "tests"]
|
| 46 |
+
|
| 47 |
+
[tasks."click-3121"]
|
| 48 |
+
fail_to_pass = ["pytest", "-q", "tests/test_options.py::test_callable_flag_value_not_instantiated[opt_params0-args0-Class1]"]
|
| 49 |
+
regression = ["pytest", "-q", "-m", "not stress", "tests"]
|
| 50 |
+
|
| 51 |
+
[tasks."pypdf-3982"]
|
| 52 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "tests/test_text_extraction.py::test_text_leading_is_not_scaled_by_font_size"]
|
| 53 |
+
regression = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "-m", "not enable_socket and not samples", "tests"]
|
| 54 |
+
|
| 55 |
+
[tasks."pypdf-3878"]
|
| 56 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "tests/generic/test_data_structures.py::test_remove_from_tree_on_outline_item"]
|
| 57 |
+
regression = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "-m", "not enable_socket and not samples", "tests"]
|
| 58 |
+
|
| 59 |
+
[tasks."pypdf-3587"]
|
| 60 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "tests/generic/test_base.py::test_text_string_object__looks_like_bom"]
|
| 61 |
+
regression = ["python", "-m", "pytest", "-q", "-p", "pytest_socket", "-p", "pytest_timeout", "--timeout=60", "-o", "cache_dir=/tmp/pytest-cache", "-m", "not enable_socket and not samples", "tests"]
|
| 62 |
+
|
| 63 |
+
[tasks."coverage-2157"]
|
| 64 |
+
fail_to_pass = ["python", "igor.py", "test_with_core", "ctrace", "-n", "0", "--cache-clear", "tests/test_process.py::EnvironmentTest::test_coverage_in_symlink_is_like_python"]
|
| 65 |
+
regression = ["python", "igor.py", "test_with_core", "ctrace", "-n", "0", "--cache-clear", "tests"]
|
| 66 |
+
|
| 67 |
+
[tasks."pytest-14195"]
|
| 68 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "--cache-clear", "testing/test_subtests.py::TestUnittestSubTest::test_msg_not_a_string"]
|
| 69 |
+
regression = ["python", "-m", "pytest", "-q", "--cache-clear", "testing"]
|
| 70 |
+
|
| 71 |
+
[tasks."pytest-12444"]
|
| 72 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "--cache-clear", "testing/python/approx.py::TestApprox::test_approx_on_unordered_mapping_with_mismatch"]
|
| 73 |
+
regression = ["python", "-m", "pytest", "-q", "--cache-clear", "testing"]
|
| 74 |
+
|
| 75 |
+
[tasks."pygments-2928"]
|
| 76 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests/snippets/cpp/test_function_after_namespace.txt", "tests/examplefiles/cpp/namespace.cpp"]
|
| 77 |
+
regression = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests"]
|
| 78 |
+
|
| 79 |
+
[tasks."pygments-2816"]
|
| 80 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests/snippets/jsx/test_apostrophe_text.txt"]
|
| 81 |
+
regression = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests"]
|
| 82 |
+
|
| 83 |
+
[tasks."pygments-2828"]
|
| 84 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests/snippets/jsonnet/test_array_slice.txt"]
|
| 85 |
+
regression = ["python", "-m", "pytest", "-q", "-W", "error", "--cache-clear", "--randomly-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "tests"]
|
| 86 |
+
|
| 87 |
+
[tasks."attrs-1575"]
|
| 88 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "--hypothesis-seed=0", "tests/test_annotations.py::TestAnnotations::test_missing_classvar_import"]
|
| 89 |
+
regression = ["python", "-m", "pytest", "-q", "--hypothesis-seed=0", "tests"]
|
| 90 |
+
|
| 91 |
+
[tasks."typeguard-499"]
|
| 92 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "tests/test_checkers.py::TestProtocol::test_class_against_protocol_ignores_instance_attributes"]
|
| 93 |
+
regression = ["python", "-m", "pytest", "-q", "tests"]
|
| 94 |
+
|
| 95 |
+
[tasks."structlog-710"]
|
| 96 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-p", "no:randomly", "tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async", "tests/processors/test_processors.py::TestCallsiteParameterAdder::test_async_native_logger"]
|
| 97 |
+
regression = ["python", "-m", "pytest", "-q", "-p", "no:randomly", "tests"]
|
| 98 |
+
|
| 99 |
+
[tasks."narwhals-3864"]
|
| 100 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "--randomly-seed=0", "--hypothesis-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "--constructors=pandas,pandas[nullable]", "tests/frame/concat_test.py::test_concat_horizontal_pandas_left_hand_rule"]
|
| 101 |
+
regression = ["python", "-m", "pytest", "-q", "--randomly-seed=0", "--hypothesis-seed=0", "-o", "cache_dir=/tmp/pytest-cache", "--runslow", "--constructors=pandas,pandas[nullable]", "tests"]
|
| 102 |
+
|
| 103 |
+
[tasks."pluggy-431"]
|
| 104 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "testing/test_pluginmanager.py::test_unregister_plugin_with_multi_hookimpls"]
|
| 105 |
+
regression = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "testing"]
|
| 106 |
+
|
| 107 |
+
[tasks."tomlkit-440"]
|
| 108 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests/test_toml_document.py::test_add_key_after_dotted_inline_table_without_ending_newline"]
|
| 109 |
+
regression = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests", "--ignore=tests/test_toml_tests.py"]
|
| 110 |
+
|
| 111 |
+
[tasks."tomlkit-542"]
|
| 112 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests/test_toml_document.py::test_replace_dotted_key_with_aot_keeps_following_sibling"]
|
| 113 |
+
regression = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests", "--ignore=tests/test_toml_tests.py"]
|
| 114 |
+
|
| 115 |
+
[tasks."babel-1245"]
|
| 116 |
+
fail_to_pass = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests/test_smoke.py::test_smoke_numbers[nl]", "tests/test_smoke.py::test_smoke_numbers[nl_BE]", "tests/test_smoke.py::test_smoke_numbers[nl_NL]"]
|
| 117 |
+
regression = ["python", "-m", "pytest", "-q", "-o", "cache_dir=/tmp/pytest-cache", "tests"]
|