release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 5)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- heldout_pool/codereverser__casparser-ede19d2e304e/tests/test.sh +82 -0
- heldout_pool/codereverser__casparser-ede19d2e304e/tests/verifier.py +475 -0
- heldout_pool/codereverser__casparser-f960976ba489/environment/Dockerfile +36 -0
- heldout_pool/codereverser__casparser-f960976ba489/environment/docker-compose.yaml +16 -0
- heldout_pool/codereverser__casparser-f960976ba489/instruction.md +10 -0
- heldout_pool/codereverser__casparser-f960976ba489/solution/patch.diff +48 -0
- heldout_pool/codereverser__casparser-f960976ba489/solution/solve.sh +6 -0
- heldout_pool/codereverser__casparser-f960976ba489/task.toml +104 -0
- heldout_pool/codereverser__casparser-f960976ba489/tests/f2p.json +3 -0
- heldout_pool/codereverser__casparser-f960976ba489/tests/p2p.json +31 -0
- heldout_pool/codereverser__casparser-f960976ba489/tests/test.sh +64 -0
- heldout_pool/codereverser__casparser-f960976ba489/tests/verifier.py +475 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/environment/Dockerfile +36 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/environment/docker-compose.yaml +16 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/instruction.md +10 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/solution/patch.diff +107 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/solution/solve.sh +6 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/task.toml +81 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/f2p.json +3 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/p2p.json +8 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/test.sh +57 -0
- heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/verifier.py +475 -0
- heldout_pool/frostming__marko-7b31460c08f9/environment/Dockerfile +36 -0
- heldout_pool/frostming__marko-7b31460c08f9/environment/docker-compose.yaml +16 -0
- heldout_pool/frostming__marko-7b31460c08f9/instruction.md +10 -0
- heldout_pool/frostming__marko-7b31460c08f9/solution/patch.diff +26 -0
- heldout_pool/frostming__marko-7b31460c08f9/solution/solve.sh +6 -0
- heldout_pool/frostming__marko-7b31460c08f9/task.toml +87 -0
- heldout_pool/frostming__marko-7b31460c08f9/tests/f2p.json +3 -0
- heldout_pool/frostming__marko-7b31460c08f9/tests/p2p.json +14 -0
- heldout_pool/frostming__marko-7b31460c08f9/tests/test.sh +75 -0
- heldout_pool/frostming__marko-7b31460c08f9/tests/verifier.py +475 -0
- heldout_pool/frostming__marko-88e65f1f51c1/environment/Dockerfile +36 -0
- heldout_pool/frostming__marko-88e65f1f51c1/environment/docker-compose.yaml +16 -0
- heldout_pool/frostming__marko-88e65f1f51c1/instruction.md +15 -0
- heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff +48 -0
- heldout_pool/frostming__marko-88e65f1f51c1/solution/solve.sh +6 -0
- heldout_pool/frostming__marko-88e65f1f51c1/task.toml +96 -0
- heldout_pool/frostming__marko-88e65f1f51c1/tests/f2p.json +7 -0
- heldout_pool/frostming__marko-88e65f1f51c1/tests/p2p.json +19 -0
- heldout_pool/frostming__marko-88e65f1f51c1/tests/test.sh +73 -0
- heldout_pool/frostming__marko-88e65f1f51c1/tests/verifier.py +475 -0
- heldout_pool/frostming__marko-b5a628f28dbd/environment/Dockerfile +36 -0
- heldout_pool/frostming__marko-b5a628f28dbd/environment/docker-compose.yaml +16 -0
- heldout_pool/frostming__marko-b5a628f28dbd/instruction.md +10 -0
- heldout_pool/frostming__marko-b5a628f28dbd/solution/patch.diff +34 -0
- heldout_pool/frostming__marko-b5a628f28dbd/solution/solve.sh +6 -0
- heldout_pool/frostming__marko-b5a628f28dbd/task.toml +776 -0
- heldout_pool/frostming__marko-b5a628f28dbd/tests/f2p.json +654 -0
- heldout_pool/frostming__marko-b5a628f28dbd/tests/p2p.json +52 -0
heldout_pool/codereverser__casparser-ede19d2e304e/tests/test.sh
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
git config --global --add safe.directory /workspace
|
| 6 |
+
mkdir -p /logs/verifier
|
| 7 |
+
git checkout 31b743b0e8ba5b6188cbdcc86eeb56a16afd4c77 -- tests/test_demat_units.py || true
|
| 8 |
+
git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH'
|
| 9 |
+
diff --git a/tests/test_demat_units.py b/tests/test_demat_units.py
|
| 10 |
+
index 9512c48..d9ef327 100644
|
| 11 |
+
--- a/tests/test_demat_units.py
|
| 12 |
+
+++ b/tests/test_demat_units.py
|
| 13 |
+
@@ -1408,3 +1408,54 @@ class TestNPS:
|
| 14 |
+
_block(_cell("INE000A01001", 20, 75, 50, 10), _cell("SOME EQUITY", 80, 200, 50, 10)),
|
| 15 |
+
]
|
| 16 |
+
assert cdsl_p._parse_nps(blocks) is None
|
| 17 |
+
+
|
| 18 |
+
+ def test_parse_nps_scheme_spanning_page_break(self):
|
| 19 |
+
+ """A scheme row straddling a page break must not absorb the next
|
| 20 |
+
+ page's furniture (bank header, tab bar, investor name, column header,
|
| 21 |
+
+ footer), and the scheme/fund-manager split must not depend on a fixed
|
| 22 |
+
+ x (fund manager here sits at x=1000, below the old threshold)."""
|
| 23 |
+
+ blocks = [
|
| 24 |
+
+ _block(_cell("HOLDING STATEMENT AS ON 31-05-2026", 2044, 4000, 700, 660)),
|
| 25 |
+
+ # scheme line 1 (name @200, fund-manager @1000) + units/nav
|
| 26 |
+
+ _block(
|
| 27 |
+
+ _cell("NPS TRUST A/C HDFC PENSION FUND", 200, 900, 600, 560),
|
| 28 |
+
+ _cell("HDFC PENSION FUND MANAGEMENT", 1000, 1800, 600, 560),
|
| 29 |
+
+ ),
|
| 30 |
+
+ _block(
|
| 31 |
+
+ _cell("45,982.3138", 4000, 4600, 555, 515), _cell("27.6140", 5000, 5400, 555, 515)
|
| 32 |
+
+ ),
|
| 33 |
+
+ # --- page break: furniture that must be skipped ---
|
| 34 |
+
+ _block(_cell("Central Depository Services (India) Limited", 2000, 3500, 550, 510)),
|
| 35 |
+
+ _block(
|
| 36 |
+
+ _cell(
|
| 37 |
+
+ "CONSOLIDATED ACCOUNT STATEMENT (CAS) FOR SECURITIES HELD IN DEMAT",
|
| 38 |
+
+ 800,
|
| 39 |
+
+ 4000,
|
| 40 |
+
+ 540,
|
| 41 |
+
+ 500,
|
| 42 |
+
+ )
|
| 43 |
+
+ ),
|
| 44 |
+
+ _block(_cell("VINEET MENON", 250, 900, 530, 490)),
|
| 45 |
+
+ _block(
|
| 46 |
+
+ _cell("Scheme Name", 800, 1500, 520, 480),
|
| 47 |
+
+ _cell("Fund Manager", 2000, 2800, 520, 480),
|
| 48 |
+
+ ),
|
| 49 |
+
+ _block(_cell("Page 18 of 21", 500, 900, 510, 470)),
|
| 50 |
+
+ # scheme line 2 (continuation) + fund-manager line 2
|
| 51 |
+
+ _block(
|
| 52 |
+
+ _cell("MANAGEMENT LIMITED SCHEME G - TIER I GS", 200, 900, 500, 460),
|
| 53 |
+
+ _cell("LIMITED", 1000, 1400, 500, 460),
|
| 54 |
+
+ ),
|
| 55 |
+
+ _block(_cell("Portfolio Value ` 12,69,755.61 as on 31-05-2026", 239, 3000, 440, 400)),
|
| 56 |
+
+ ]
|
| 57 |
+
+ nps = cdsl_p._parse_nps(blocks)
|
| 58 |
+
+ assert nps is not None
|
| 59 |
+
+ assert len(nps.schemes) == 1
|
| 60 |
+
+ s = nps.schemes[0]
|
| 61 |
+
+ assert s.scheme == "NPS TRUST A/C HDFC PENSION FUND MANAGEMENT LIMITED SCHEME G - TIER I GS"
|
| 62 |
+
+ assert s.fund_manager == "HDFC PENSION FUND MANAGEMENT LIMITED"
|
| 63 |
+
+ assert s.asset_class == "G" and s.tier == "I"
|
| 64 |
+
+ assert s.units == Decimal("45982.3138") and s.nav == Decimal("27.6140")
|
| 65 |
+
+ # no page furniture leaked into the scheme name
|
| 66 |
+
+ for junk in ("VINEET", "Central", "Page", "CONSOLIDATED", "Scheme Name"):
|
| 67 |
+
+ assert junk not in s.scheme
|
| 68 |
+
|
| 69 |
+
EOF_R2E_TEST_PATCH
|
| 70 |
+
R2E_APPLY_RC=$?
|
| 71 |
+
if [ "$R2E_APPLY_RC" -ne 0 ]; then
|
| 72 |
+
echo "0.000000" > /logs/verifier/reward.txt
|
| 73 |
+
printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json
|
| 74 |
+
echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2
|
| 75 |
+
exit 0
|
| 76 |
+
fi
|
| 77 |
+
( python -m pytest -v tests/test_demat_units.py ) > /logs/verifier/test_output.log 2>&1
|
| 78 |
+
TEST_EXIT_CODE=$?
|
| 79 |
+
cat /logs/verifier/test_output.log
|
| 80 |
+
python3 "$SCRIPT_DIR/verifier.py" --log /logs/verifier/test_output.log --f2p "$SCRIPT_DIR/f2p.json" --p2p "$SCRIPT_DIR/p2p.json" --test-cmds 'python -m pytest -v tests/test_demat_units.py' --exit-code "$TEST_EXIT_CODE" --out-dir /logs/verifier || { [ "$TEST_EXIT_CODE" -eq 0 ] && echo "1.0" > /logs/verifier/reward.txt || echo "0.0" > /logs/verifier/reward.txt; }
|
| 81 |
+
git checkout 31b743b0e8ba5b6188cbdcc86eeb56a16afd4c77 -- tests/test_demat_units.py || true
|
| 82 |
+
exit 0
|
heldout_pool/codereverser__casparser-ede19d2e304e/tests/verifier.py
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_runtime tasks (graded F2P/P2P reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. It is read as
|
| 5 |
+
source at generation time, base64-encoded, and embedded into
|
| 6 |
+
``tests/test.sh``. At run time the container decodes it back to a file
|
| 7 |
+
and invokes it after the test suite has run.
|
| 8 |
+
|
| 9 |
+
Why a graded reward instead of binary pass/fail
|
| 10 |
+
------------------------------------------------
|
| 11 |
+
SWE-bench resolution is binary: a patch "resolves" the issue iff ALL
|
| 12 |
+
FAIL_TO_PASS tests pass AND ALL PASS_TO_PASS tests still pass. That's
|
| 13 |
+
the right signal for an eval leaderboard, but a terrible gradient for
|
| 14 |
+
RL training — an agent that fixes 4 of 5 failing tests scores the same
|
| 15 |
+
0.0 as one that fixes nothing.
|
| 16 |
+
|
| 17 |
+
So this verifier emits BOTH:
|
| 18 |
+
* /logs/verifier/reward.txt — the GRADED scalar (training signal,
|
| 19 |
+
which Harbor reads): reward = f2p_rate * p2p_factor
|
| 20 |
+
* /logs/verifier/reward-details.json — carries the strict SWE-bench
|
| 21 |
+
``resolved`` bool (eval signal) PLUS the full breakdown.
|
| 22 |
+
|
| 23 |
+
Refs: SWE-bench (F2P/P2P semantics), SWE-RL / SWE-Gym (dense reward for
|
| 24 |
+
RL), UTBoost (weak-test coverage lets wrong patches pass — hence we
|
| 25 |
+
record p2p_count so consumers can judge regression-guard strength).
|
| 26 |
+
|
| 27 |
+
Scoring
|
| 28 |
+
-------
|
| 29 |
+
Given the baked FAIL_TO_PASS / PASS_TO_PASS test-name lists (computed by
|
| 30 |
+
the generation-time two-stage validation) and the agent-run test log:
|
| 31 |
+
|
| 32 |
+
f2p_rate = (# F2P tests now PASSED) / (# F2P tests)
|
| 33 |
+
p2p_rate = (# P2P tests still PASSED) / (# P2P tests) [1.0 if no P2P]
|
| 34 |
+
p2p_factor = p2p_rate # regressions scale the reward down
|
| 35 |
+
reward = f2p_rate * p2p_factor
|
| 36 |
+
resolved = (all F2P pass) AND (all P2P pass) # strict SWE-bench
|
| 37 |
+
|
| 38 |
+
Oracle invariant: the gold patch flips every F2P and keeps every P2P,
|
| 39 |
+
so f2p_rate=1.0, p2p_rate=1.0 -> reward=1.0 and resolved=True. This is
|
| 40 |
+
what the T3 oracle gate (reward == 1.0) relies on.
|
| 41 |
+
|
| 42 |
+
Graceful degradation: if the log can't be parsed into per-test
|
| 43 |
+
statuses (unrecognized runner output), fall back to the exit-code
|
| 44 |
+
reward (1.0 if the suite exited 0, else 0.0) and stamp
|
| 45 |
+
``parse_status="fallback_exitcode"`` — never crash, never silently
|
| 46 |
+
zero out a real fix.
|
| 47 |
+
|
| 48 |
+
Pure stdlib — uses only ``argparse``, ``json``, ``os``, ``re``, ``sys``.
|
| 49 |
+
The 4 per-runner parsers are condensed ports of
|
| 50 |
+
``repo2rlenv.log_parsers.*`` kept in lockstep via the unit tests under
|
| 51 |
+
``tests/test_pr_runtime_verifier.py``.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
from __future__ import annotations
|
| 55 |
+
|
| 56 |
+
import argparse
|
| 57 |
+
import json
|
| 58 |
+
import os
|
| 59 |
+
import re
|
| 60 |
+
import sys
|
| 61 |
+
|
| 62 |
+
# Canonical statuses. (Plain strings — no typing.Literal so the baked
|
| 63 |
+
# module stays import-light when decoded standalone in the container.)
|
| 64 |
+
PASSED = "PASSED"
|
| 65 |
+
FAILED = "FAILED"
|
| 66 |
+
SKIPPED = "SKIPPED"
|
| 67 |
+
ERROR = "ERROR"
|
| 68 |
+
|
| 69 |
+
# ---------------------------------------------------------------------------
|
| 70 |
+
# Per-runner log parsers (condensed ports of repo2rlenv.log_parsers.*)
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
|
| 73 |
+
_PYTEST_STATUSES = (PASSED, FAILED, SKIPPED, ERROR)
|
| 74 |
+
# Keep these patterns in sync with log_parsers/pytest_parser.py. This module
|
| 75 |
+
# also runs standalone inside task containers, without a repo2rlenv install.
|
| 76 |
+
_PYTEST_PROGRESS = (
|
| 77 |
+
r"\[\s*\d+%\]|\[\s*\d+\s*/\s*\d+\s*\]"
|
| 78 |
+
r"|\d+(?:\.\d+)?(?:us|ms|s)|\d+m \d+s|\d+h \d+m"
|
| 79 |
+
)
|
| 80 |
+
_PYTEST_VERBOSE_RE = re.compile(
|
| 81 |
+
r"^(?P<name>.+?(?:\[.*?\])?)\s+(?P<status>PASSED|FAILED|SKIPPED|ERROR)"
|
| 82 |
+
rf"(?:\s+\(.*\))?(?:\s+(?:{_PYTEST_PROGRESS}))?$"
|
| 83 |
+
)
|
| 84 |
+
_PYTEST_SUMMARY_NAME_RE = re.compile(r"^(?P<name>.+?(?:\[.*?\])?)(?: - .*)?$")
|
| 85 |
+
# pytest-xdist worker label, e.g. `[gw1] [ 20%] PASSED tests/foo.py::test_x`.
|
| 86 |
+
_PYTEST_XDIST_PREFIX_RE = re.compile(rf"^\[gw\d+\]\s+(?:(?:{_PYTEST_PROGRESS})\s+)?")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def parse_pytest(log: str) -> dict[str, str]:
|
| 90 |
+
"""{test_name -> status} from pytest output (verbose or summary)."""
|
| 91 |
+
out: dict[str, str] = {}
|
| 92 |
+
if not log:
|
| 93 |
+
return out
|
| 94 |
+
for raw in log.split("\n"):
|
| 95 |
+
line = raw.strip()
|
| 96 |
+
if not line:
|
| 97 |
+
continue
|
| 98 |
+
line = _PYTEST_XDIST_PREFIX_RE.sub("", line, count=1)
|
| 99 |
+
# Summary lines (STATUS first), preserving the full node ID.
|
| 100 |
+
leading = None
|
| 101 |
+
for st in _PYTEST_STATUSES:
|
| 102 |
+
if line.startswith(st + " ") or line == st:
|
| 103 |
+
leading = st
|
| 104 |
+
break
|
| 105 |
+
if leading is not None:
|
| 106 |
+
work = line[len(leading) :].strip()
|
| 107 |
+
if leading == SKIPPED and re.match(r"^\[\d+\](?:\s|$)", work):
|
| 108 |
+
# Folded skips report a file location, not a parametrized ID.
|
| 109 |
+
tokens = work.split(maxsplit=2)
|
| 110 |
+
if len(tokens) < 2:
|
| 111 |
+
continue
|
| 112 |
+
out[tokens[1]] = leading
|
| 113 |
+
elif m := _PYTEST_SUMMARY_NAME_RE.match(work):
|
| 114 |
+
out[m.group("name")] = leading
|
| 115 |
+
continue
|
| 116 |
+
# Verbose progress (NAME first, STATUS after)
|
| 117 |
+
# Filter non-test output before attempting the backtracking regex.
|
| 118 |
+
head = line.split(None, 1)[0]
|
| 119 |
+
if "::" not in head and not head.endswith(".py"):
|
| 120 |
+
continue
|
| 121 |
+
m = _PYTEST_VERBOSE_RE.match(line)
|
| 122 |
+
if m:
|
| 123 |
+
name = m.group("name")
|
| 124 |
+
if "::" in name or name.endswith(".py"):
|
| 125 |
+
out[name] = m.group("status")
|
| 126 |
+
return out
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
_GO_TEST_RE = re.compile(r"^\s*---\s+(?P<status>PASS|FAIL|SKIP):\s+(?P<name>\S+)")
|
| 130 |
+
_GO_STATUS = {"PASS": PASSED, "FAIL": FAILED, "SKIP": SKIPPED}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_go_test(log: str) -> dict[str, str]:
|
| 134 |
+
"""{test_name -> status} from `go test -v` output."""
|
| 135 |
+
out: dict[str, str] = {}
|
| 136 |
+
if not log:
|
| 137 |
+
return out
|
| 138 |
+
for raw in log.split("\n"):
|
| 139 |
+
m = _GO_TEST_RE.match(raw)
|
| 140 |
+
if m:
|
| 141 |
+
out[m.group("name")] = _GO_STATUS[m.group("status")]
|
| 142 |
+
return out
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Keep these patterns in sync with log_parsers/cargo_parser.py.
|
| 146 |
+
_CARGO_TEST_RE = re.compile(r"^test\s+(?P<name>\S.*?) \.\.\. (?P<status>ok|FAILED|ignored)\b")
|
| 147 |
+
_CARGO_MODE_RE = re.compile(r" - (?:should panic|compile fail|compile)$")
|
| 148 |
+
_CARGO_DOCTEST_RE = re.compile(r"^(?P<file>\S+) - (?:(?P<item>.+?) )?\(line \d+\)$")
|
| 149 |
+
_CARGO_STATUS = {"ok": PASSED, "FAILED": FAILED, "ignored": SKIPPED}
|
| 150 |
+
_CARGO_DOCTEST_RANK = {SKIPPED: 0, PASSED: 1, FAILED: 2}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def parse_cargo_test(log: str) -> dict[str, str]:
|
| 154 |
+
"""{test_name -> status} from `cargo test` output.
|
| 155 |
+
|
| 156 |
+
Test modes (` - should panic`) are dropped from names, and doctests are
|
| 157 |
+
keyed without their `(line N)` so line shifts don't change identity; the
|
| 158 |
+
worst status among an item's doctests wins.
|
| 159 |
+
"""
|
| 160 |
+
out: dict[str, str] = {}
|
| 161 |
+
if not log:
|
| 162 |
+
return out
|
| 163 |
+
for raw in log.split("\n"):
|
| 164 |
+
m = _CARGO_TEST_RE.match(raw)
|
| 165 |
+
if not m:
|
| 166 |
+
continue
|
| 167 |
+
name = _CARGO_MODE_RE.sub("", m.group("name")).rstrip()
|
| 168 |
+
status = _CARGO_STATUS[m.group("status")]
|
| 169 |
+
doctest = _CARGO_DOCTEST_RE.match(name)
|
| 170 |
+
if doctest:
|
| 171 |
+
item = doctest.group("item")
|
| 172 |
+
name = f"{doctest.group('file')} - {item}" if item else doctest.group("file")
|
| 173 |
+
if name in out and _CARGO_DOCTEST_RANK[out[name]] > _CARGO_DOCTEST_RANK[status]:
|
| 174 |
+
continue
|
| 175 |
+
out[name] = status
|
| 176 |
+
return out
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_JEST_FILE_RE = re.compile(r"^ ?(?:PASS|FAIL)\s+(?P<path>\S+\.(?:ts|tsx|js|jsx|mjs|cjs))\b")
|
| 180 |
+
_JEST_TEST_RE = re.compile(
|
| 181 |
+
r"^(?P<indent>\s*)(?P<glyph>✓|√|✕|×|✗|○|◯)\s+(?P<name>.+?)(?:\s+\(\d+(?:\.\d+)?\s*m?s\))?$"
|
| 182 |
+
)
|
| 183 |
+
_JEST_GLYPH = {
|
| 184 |
+
"✓": PASSED,
|
| 185 |
+
"√": PASSED,
|
| 186 |
+
"✕": FAILED,
|
| 187 |
+
"×": FAILED,
|
| 188 |
+
"✗": FAILED,
|
| 189 |
+
"○": SKIPPED,
|
| 190 |
+
"◯": SKIPPED,
|
| 191 |
+
}
|
| 192 |
+
# Keep these patterns in sync with log_parsers/jest_parser.py.
|
| 193 |
+
_ANSI_RE = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
|
| 194 |
+
_VITEST_MARKER_RE = re.compile(r"^\s*(?:RUN\s+v\d+\.\d+|Test Files\s+\d)", re.MULTILINE)
|
| 195 |
+
_VITEST_TEST_RE = re.compile(
|
| 196 |
+
r"^\s*(?P<glyph>[✓×↓□]) (?:\|(?P<project>[^|]+)\| | (?P<label>\S+) )?"
|
| 197 |
+
r"(?P<name>\S+ > .+?)(?P<duration> \d{1,9}ms)?"
|
| 198 |
+
r"(?: \(retry x\d{1,9}\))?(?: \(repeat x\d{1,9}\))?(?: \d{1,9} MB heap used)?(?: \[[^\[\]]*\])?$"
|
| 199 |
+
)
|
| 200 |
+
_VITEST_STATUS = {"✓": PASSED, "×": FAILED, "↓": SKIPPED, "□": SKIPPED}
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _parse_vitest(log: str) -> dict[str, str]:
|
| 204 |
+
"""{test_name -> status} from vitest `--reporter=verbose` lines only."""
|
| 205 |
+
out: dict[str, str] = {}
|
| 206 |
+
for raw in log.split("\n"):
|
| 207 |
+
m = _VITEST_TEST_RE.match(raw.rstrip())
|
| 208 |
+
if not m:
|
| 209 |
+
continue
|
| 210 |
+
glyph, name = m.group("glyph"), m.group("name")
|
| 211 |
+
if glyph in "↓□" and m.group("duration"):
|
| 212 |
+
name += m.group("duration")
|
| 213 |
+
project = m.group("project") or m.group("label")
|
| 214 |
+
out[f"|{project}| {name}" if project else name] = _VITEST_STATUS[glyph]
|
| 215 |
+
return out
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def parse_jest(log: str) -> dict[str, str]:
|
| 219 |
+
"""{test_name -> status} from Jest / Mocha / Vitest output."""
|
| 220 |
+
out: dict[str, str] = {}
|
| 221 |
+
if not log:
|
| 222 |
+
return out
|
| 223 |
+
log = _ANSI_RE.sub("", log)
|
| 224 |
+
if _VITEST_MARKER_RE.search(log):
|
| 225 |
+
return _parse_vitest(log)
|
| 226 |
+
current_file: str | None = None
|
| 227 |
+
describe_stack: list[tuple[int, str]] = []
|
| 228 |
+
last_test_indent: int | None = None
|
| 229 |
+
for raw in log.split("\n"):
|
| 230 |
+
line = raw.rstrip()
|
| 231 |
+
if not line:
|
| 232 |
+
continue
|
| 233 |
+
m = _JEST_FILE_RE.match(line)
|
| 234 |
+
if m:
|
| 235 |
+
current_file = m.group("path")
|
| 236 |
+
describe_stack = []
|
| 237 |
+
last_test_indent = None
|
| 238 |
+
continue
|
| 239 |
+
m = _JEST_TEST_RE.match(line)
|
| 240 |
+
if m:
|
| 241 |
+
indent = len(m.group("indent"))
|
| 242 |
+
name = re.sub(r"^(?:skipped|todo):\s*", "", m.group("name").strip())
|
| 243 |
+
describes = [d for ind, d in describe_stack if ind < indent]
|
| 244 |
+
parts = ([current_file] if current_file else []) + describes + [name]
|
| 245 |
+
out[" > ".join(parts)] = _JEST_GLYPH[m.group("glyph")]
|
| 246 |
+
last_test_indent = indent
|
| 247 |
+
continue
|
| 248 |
+
stripped = line.lstrip()
|
| 249 |
+
if not stripped or stripped.startswith(
|
| 250 |
+
("Tests:", "Test Suites:", "Snapshots:", "Time:", "Ran all", "●", "→", "✗:")
|
| 251 |
+
):
|
| 252 |
+
continue
|
| 253 |
+
indent_here = len(line) - len(stripped)
|
| 254 |
+
if current_file and (last_test_indent is None or indent_here < last_test_indent):
|
| 255 |
+
describe_stack = [(i, d) for i, d in describe_stack if i < indent_here]
|
| 256 |
+
describe_stack.append((indent_here, stripped))
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _detect_runner(test_cmds: str) -> str:
|
| 261 |
+
joined = test_cmds.lower()
|
| 262 |
+
if "pytest" in joined:
|
| 263 |
+
return "pytest"
|
| 264 |
+
if re.search(r"\bgo\s+test\b", joined):
|
| 265 |
+
return "go"
|
| 266 |
+
if re.search(r"\bcargo\s+test\b", joined):
|
| 267 |
+
return "cargo"
|
| 268 |
+
if any(k in joined for k in ("jest", "mocha", "vitest", "npm test", "yarn test", "pnpm test")):
|
| 269 |
+
return "jest"
|
| 270 |
+
return "unknown"
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def parse_logs(runner: str, log: str) -> dict[str, str]:
|
| 274 |
+
"""Dispatch to the right per-runner parser. Empty dict if unknown."""
|
| 275 |
+
if runner == "pytest":
|
| 276 |
+
return parse_pytest(log)
|
| 277 |
+
if runner == "go":
|
| 278 |
+
return parse_go_test(log)
|
| 279 |
+
if runner == "cargo":
|
| 280 |
+
return parse_cargo_test(log)
|
| 281 |
+
if runner == "jest":
|
| 282 |
+
return parse_jest(log)
|
| 283 |
+
return {}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
# ---------------------------------------------------------------------------
|
| 287 |
+
# Grading
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
def _has_go_parent(name: str, status_map: dict[str, str]) -> bool:
|
| 290 |
+
"""Return True if a Go test has an ancestor represented in the status map."""
|
| 291 |
+
parts = name.split("/")
|
| 292 |
+
|
| 293 |
+
for i in range(1, len(parts)):
|
| 294 |
+
parent = "/".join(parts[:i])
|
| 295 |
+
if status_map.get(parent) == FAILED:
|
| 296 |
+
return True
|
| 297 |
+
|
| 298 |
+
return False
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def grade(
|
| 302 |
+
fail_to_pass: list[str],
|
| 303 |
+
pass_to_pass: list[str],
|
| 304 |
+
status_map: dict[str, str],
|
| 305 |
+
runner: str | None = None,
|
| 306 |
+
) -> dict:
|
| 307 |
+
"""Compute the graded reward + strict resolved bool from a status map.
|
| 308 |
+
|
| 309 |
+
f2p_rate = (# F2P now PASSED) / (# F2P)
|
| 310 |
+
p2p_rate = (# P2P still PASSED) / (# P2P) [1.0 when no P2P]
|
| 311 |
+
reward = f2p_rate * p2p_rate (dense training signal)
|
| 312 |
+
resolved = all F2P pass AND all P2P pass (SWE-bench TRACKED resolution —
|
| 313 |
+
the gold patch always satisfies this, preserving the oracle
|
| 314 |
+
invariant)
|
| 315 |
+
|
| 316 |
+
Two distinct EVAL signals (see the audit's "tracked vs command resolved"):
|
| 317 |
+
* `resolved` — tracked resolution (above). Gold patch -> True.
|
| 318 |
+
* `command_resolved` — stricter: tracked resolution AND the selected test
|
| 319 |
+
command had NO failures outside F2P/P2P AND exit
|
| 320 |
+
code 0. Computed in main() where the exit code is
|
| 321 |
+
known. A benchmark that wants "the whole command
|
| 322 |
+
passed cleanly" gates on this; SWE-bench-style
|
| 323 |
+
scoring uses `resolved`.
|
| 324 |
+
|
| 325 |
+
`untracked_failed` are FAILED tests in the run that are neither F2P nor
|
| 326 |
+
P2P (e.g. always-failing/flaky tests pulled in by running a whole test
|
| 327 |
+
file). They don't change the graded `reward` or tracked `resolved`, but
|
| 328 |
+
they block `command_resolved` and are recorded for transparency.
|
| 329 |
+
"""
|
| 330 |
+
f2p_total = len(fail_to_pass)
|
| 331 |
+
p2p_total = len(pass_to_pass)
|
| 332 |
+
f2p_set = set(fail_to_pass)
|
| 333 |
+
p2p_set = set(pass_to_pass)
|
| 334 |
+
f2p_passed = sum(1 for t in fail_to_pass if status_map.get(t) == PASSED)
|
| 335 |
+
p2p_passed = sum(1 for t in pass_to_pass if status_map.get(t) == PASSED)
|
| 336 |
+
# Tests that should have stayed green but regressed (PASS->not-pass).
|
| 337 |
+
regressions = [t for t in pass_to_pass if status_map.get(t) != PASSED]
|
| 338 |
+
|
| 339 |
+
# FAILED tests outside the tracked sets — the selected command isn't clean.
|
| 340 |
+
if runner == "go":
|
| 341 |
+
failed_tests = {
|
| 342 |
+
t
|
| 343 |
+
for t, s in status_map.items()
|
| 344 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
untracked_failed = sorted(t for t in failed_tests if not _has_go_parent(t, status_map))
|
| 348 |
+
else:
|
| 349 |
+
untracked_failed = sorted(
|
| 350 |
+
t
|
| 351 |
+
for t, s in status_map.items()
|
| 352 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 353 |
+
)
|
| 354 |
+
|
| 355 |
+
f2p_rate = (f2p_passed / f2p_total) if f2p_total else 0.0
|
| 356 |
+
p2p_rate = (p2p_passed / p2p_total) if p2p_total else 1.0
|
| 357 |
+
reward = f2p_rate * p2p_rate
|
| 358 |
+
resolved = f2p_total > 0 and f2p_passed == f2p_total and p2p_passed == p2p_total
|
| 359 |
+
|
| 360 |
+
return {
|
| 361 |
+
"reward": round(max(0.0, min(1.0, reward)), 6),
|
| 362 |
+
"resolved": resolved,
|
| 363 |
+
"f2p_total": f2p_total,
|
| 364 |
+
"f2p_passed": f2p_passed,
|
| 365 |
+
"f2p_rate": round(f2p_rate, 6),
|
| 366 |
+
"p2p_total": p2p_total,
|
| 367 |
+
"p2p_passed": p2p_passed,
|
| 368 |
+
"p2p_rate": round(p2p_rate, 6),
|
| 369 |
+
"regressions": sorted(regressions),
|
| 370 |
+
"untracked_failed_count": len(untracked_failed),
|
| 371 |
+
"untracked_failed": untracked_failed[:20], # cap the list
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
# ---------------------------------------------------------------------------
|
| 376 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 377 |
+
# ---------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _read_json_list(path: str) -> list[str]:
|
| 381 |
+
try:
|
| 382 |
+
with open(path, encoding="utf-8") as f:
|
| 383 |
+
data = json.load(f)
|
| 384 |
+
return [str(x) for x in data] if isinstance(data, list) else []
|
| 385 |
+
except (OSError, ValueError):
|
| 386 |
+
return []
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def _read_text(path: str) -> str:
|
| 390 |
+
try:
|
| 391 |
+
with open(path, encoding="utf-8") as f:
|
| 392 |
+
return f.read()
|
| 393 |
+
except (OSError, UnicodeDecodeError):
|
| 394 |
+
return ""
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def main(argv: list[str] | None = None) -> int:
|
| 398 |
+
p = argparse.ArgumentParser(description="pr_runtime graded F2P/P2P verifier")
|
| 399 |
+
p.add_argument("--log", required=True, help="captured test-run log file")
|
| 400 |
+
p.add_argument("--f2p", required=True, help="JSON file: FAIL_TO_PASS test names")
|
| 401 |
+
p.add_argument("--p2p", required=True, help="JSON file: PASS_TO_PASS test names")
|
| 402 |
+
p.add_argument("--runner", default="", help="pytest|go|cargo|jest (else auto-detect)")
|
| 403 |
+
p.add_argument("--test-cmds", default="", help="test command string (runner auto-detect)")
|
| 404 |
+
p.add_argument("--exit-code", type=int, default=1, help="test suite exit code (fallback)")
|
| 405 |
+
p.add_argument("--out-dir", default="/logs/verifier", help="where to write reward.{txt,json}")
|
| 406 |
+
args = p.parse_args(argv)
|
| 407 |
+
|
| 408 |
+
log = _read_text(args.log)
|
| 409 |
+
f2p = _read_json_list(args.f2p)
|
| 410 |
+
p2p = _read_json_list(args.p2p)
|
| 411 |
+
runner = args.runner.strip() or _detect_runner(args.test_cmds)
|
| 412 |
+
|
| 413 |
+
status_map = parse_logs(runner, log)
|
| 414 |
+
|
| 415 |
+
if not status_map:
|
| 416 |
+
# Unparseable runner output → fall back to the binary exit-code reward
|
| 417 |
+
# (a coarse TRAINING signal) so we never silently zero a real fix on an
|
| 418 |
+
# unrecognized format. But `resolved` is the strict EVAL signal: without
|
| 419 |
+
# parsed per-test status we have NO evidence the declared FAIL_TO_PASS
|
| 420 |
+
# tests passed, so when an F2P oracle exists we must NOT claim resolved.
|
| 421 |
+
# (resolved stays exit-code-based only when there's no declared oracle,
|
| 422 |
+
# e.g. --skip-validation.)
|
| 423 |
+
reward = 1.0 if args.exit_code == 0 else 0.0
|
| 424 |
+
has_oracle = len(f2p) > 0
|
| 425 |
+
resolved = (args.exit_code == 0) and not has_oracle
|
| 426 |
+
breakdown = {
|
| 427 |
+
"reward": reward,
|
| 428 |
+
"resolved": resolved,
|
| 429 |
+
"command_resolved": bool(resolved and args.exit_code == 0),
|
| 430 |
+
"parse_status": "fallback_exitcode",
|
| 431 |
+
"eval_trustworthy": not has_oracle,
|
| 432 |
+
"runner": runner,
|
| 433 |
+
"f2p_total": len(f2p),
|
| 434 |
+
"p2p_total": len(p2p),
|
| 435 |
+
"exit_code": args.exit_code,
|
| 436 |
+
}
|
| 437 |
+
else:
|
| 438 |
+
breakdown = grade(f2p, p2p, status_map, runner)
|
| 439 |
+
breakdown["parse_status"] = "ok"
|
| 440 |
+
breakdown["runner"] = runner
|
| 441 |
+
breakdown["tests_parsed"] = len(status_map)
|
| 442 |
+
breakdown["exit_code"] = args.exit_code
|
| 443 |
+
# Strict eval signal: tracked resolution AND a clean command (no
|
| 444 |
+
# untracked failures, exit code 0). Benchmarks wanting "the whole test
|
| 445 |
+
# command passed" gate on this; SWE-bench-style scoring uses `resolved`.
|
| 446 |
+
breakdown["command_resolved"] = bool(
|
| 447 |
+
breakdown["resolved"]
|
| 448 |
+
and breakdown["untracked_failed_count"] == 0
|
| 449 |
+
and args.exit_code == 0
|
| 450 |
+
)
|
| 451 |
+
reward = breakdown["reward"]
|
| 452 |
+
|
| 453 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 454 |
+
with open(os.path.join(args.out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 455 |
+
f.write(f"{reward:.6f}\n")
|
| 456 |
+
with open(os.path.join(args.out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 457 |
+
json.dump(breakdown, f, indent=2)
|
| 458 |
+
|
| 459 |
+
print(json.dumps(breakdown, indent=2))
|
| 460 |
+
return 0
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
sys.exit(main())
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
__all__ = [
|
| 468 |
+
"grade",
|
| 469 |
+
"main",
|
| 470 |
+
"parse_cargo_test",
|
| 471 |
+
"parse_go_test",
|
| 472 |
+
"parse_jest",
|
| 473 |
+
"parse_logs",
|
| 474 |
+
"parse_pytest",
|
| 475 |
+
]
|
heldout_pool/codereverser__casparser-f960976ba489/environment/Dockerfile
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_runtime
|
| 2 |
+
FROM local/codereverser__casparser
|
| 3 |
+
WORKDIR /workspace
|
| 4 |
+
# Defensive: ensure git is on PATH at build time. Bootstrap base
|
| 5 |
+
# images vary — some (Python slim) don't ship git; some agents
|
| 6 |
+
# install it; others don't. Re-installing is a no-op when already
|
| 7 |
+
# present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine).
|
| 8 |
+
# Install git + ca-certificates. Minimal images (node:alpine) ship
|
| 9 |
+
# without CA certs, so HTTPS git fetch fails verification.
|
| 10 |
+
RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \
|
| 11 |
+
(apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 13 |
+
(apk add --no-cache git ca-certificates && update-ca-certificates) || true
|
| 14 |
+
# Defensive: the graded F2P/P2P verifier is Python.
|
| 15 |
+
# Language-specific bootstrap images (Go/Rust/Node) may not
|
| 16 |
+
# ship python3 — install it so test.sh can score F2P/P2P. No-op when
|
| 17 |
+
# python3 is already present (every Python-repo image has it).
|
| 18 |
+
RUN command -v python3 >/dev/null 2>&1 || \
|
| 19 |
+
(apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 21 |
+
apk add --no-cache python3 || true
|
| 22 |
+
# Position the working tree at the PR's base commit so subsequent
|
| 23 |
+
# model-patch applications align with the line context the patch
|
| 24 |
+
# was authored against. The fetch is a no-op if the commit is
|
| 25 |
+
# already in the shallow clone.
|
| 26 |
+
RUN git config --global --add safe.directory /workspace \
|
| 27 |
+
&& git fetch --depth 1 origin dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd 2>/dev/null \
|
| 28 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 29 |
+
RUN git reset --hard dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache
|
| 30 |
+
RUN git checkout -q -B base dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd \
|
| 31 |
+
&& git remote remove origin 2>/dev/null || true
|
| 32 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 33 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 34 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 35 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 36 |
+
&& git gc --prune=now 2>/dev/null || true
|
heldout_pool/codereverser__casparser-f960976ba489/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv: anti-contamination egress guard.
|
| 2 |
+
# Blackholes the hosts that serve this repo's published fix and hidden
|
| 3 |
+
# tests, so an agent cannot fetch the answer (pip download / git fetch /
|
| 4 |
+
# WebFetch against these fail). General internet stays up so the agent
|
| 5 |
+
# can install itself and reach its model API. See pipelines/_env_guard.py.
|
| 6 |
+
services:
|
| 7 |
+
main:
|
| 8 |
+
extra_hosts:
|
| 9 |
+
- "pypi.org:0.0.0.0"
|
| 10 |
+
- "pypi.python.org:0.0.0.0"
|
| 11 |
+
- "files.pythonhosted.org:0.0.0.0"
|
| 12 |
+
- "github.com:0.0.0.0"
|
| 13 |
+
- "api.github.com:0.0.0.0"
|
| 14 |
+
- "raw.githubusercontent.com:0.0.0.0"
|
| 15 |
+
- "codeload.github.com:0.0.0.0"
|
| 16 |
+
- "objects.githubusercontent.com:0.0.0.0"
|
heldout_pool/codereverser__casparser-f960976ba489/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** CDSL/NSDL parser misclassifies leading-dot decimal numbers
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
When parsing CDSL or NSDL statements, numeric values that begin with a decimal point (e.g., `.196` instead of `0.196`) are incorrectly classified as text. This causes the row layout to shift unexpectedly and leads to an incorrect sum of holdings (Σholdings) that does not match the actual balance. Expected behavior is for these leading-dot decimals to be recognized as valid numbers and parsed correctly, ensuring accurate balance calculations.
|
| 7 |
+
|
| 8 |
+
## Task
|
| 9 |
+
|
| 10 |
+
Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit `dc6b4bad9a9d` and running the modified tests.
|
heldout_pool/codereverser__casparser-f960976ba489/solution/patch.diff
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
| 2 |
+
index 687c157..019724e 100644
|
| 3 |
+
--- a/CHANGELOG.md
|
| 4 |
+
+++ b/CHANGELOG.md
|
| 5 |
+
@@ -74,6 +74,11 @@ parser tuned to their template family.
|
| 6 |
+
page 8, dropping holdings sections that landed on pages 4-7.
|
| 7 |
+
- **CDSL MF holdings** rows with `DIRECT` (or any non-`ARN-XXXX`
|
| 8 |
+
distribution-mode token) now correctly populate `pnl` and `return_`.
|
| 9 |
+
+- **Leading-dot decimals** (`.196`, `-.5`) are now recognised as
|
| 10 |
+
+ numeric by the NSDL / CDSL cell classifier. CDSL occasionally
|
| 11 |
+
+ drops the leading zero on sub-unit balances; under the old regex
|
| 12 |
+
+ those cells were mis-bucketed as text, shifting the row layout
|
| 13 |
+
+ and producing a silent `Σholdings ≠ balance` mismatch.
|
| 14 |
+
|
| 15 |
+
## 0.9.0 - 2026-05-22
|
| 16 |
+
- Add support for CDSL statements
|
| 17 |
+
diff --git a/casparser/parsers/cdsl.py b/casparser/parsers/cdsl.py
|
| 18 |
+
index 2ce58e8..0b82d30 100644
|
| 19 |
+
--- a/casparser/parsers/cdsl.py
|
| 20 |
+
+++ b/casparser/parsers/cdsl.py
|
| 21 |
+
@@ -55,7 +55,10 @@ from .pageobj import Block
|
| 22 |
+
ISIN_RE = re.compile(r"^[A-Z]{2}[0-9A-Z]{9}\d$")
|
| 23 |
+
INF_ISIN_RE = re.compile(r"^INF[0-9A-Z]{8}\d$")
|
| 24 |
+
INE_ISIN_RE = re.compile(r"^IN[E9][0-9A-Z]{8}\d$")
|
| 25 |
+
-NUMERIC_RE = re.compile(r"^-?[\d,]+(?:\.\d+)?$")
|
| 26 |
+
+# CDSL sometimes drops the leading zero on fractional values (e.g. a
|
| 27 |
+
+# `0.196` unit balance prints as `.196`), so the integer part is
|
| 28 |
+
+# optional when a decimal part is present.
|
| 29 |
+
+NUMERIC_RE = re.compile(r"^-?(?:[\d,]+(?:\.\d+)?|\.\d+)$")
|
| 30 |
+
|
| 31 |
+
PERIOD_RE = re.compile(
|
| 32 |
+
r"(?:for\s+the\s+period\s+from|statement\s+for\s+the\s+period\s+from)\s+"
|
| 33 |
+
diff --git a/casparser/parsers/nsdl.py b/casparser/parsers/nsdl.py
|
| 34 |
+
index aa123b2..25707b7 100644
|
| 35 |
+
--- a/casparser/parsers/nsdl.py
|
| 36 |
+
+++ b/casparser/parsers/nsdl.py
|
| 37 |
+
@@ -56,7 +56,10 @@ from .pageobj import Block, Cell
|
| 38 |
+
ISIN_RE = re.compile(r"^[A-Z]{2}[0-9A-Z]{9}\d$")
|
| 39 |
+
INF_ISIN_RE = re.compile(r"^INF[0-9A-Z]{8}\d$")
|
| 40 |
+
INE_ISIN_RE = re.compile(r"^IN[E9][0-9A-Z]{8}\d$")
|
| 41 |
+
-NUMERIC_RE = re.compile(r"^-?[\d,]+(?:\.\d+)?$")
|
| 42 |
+
+# Some templates drop the leading zero on fractional values (e.g. a
|
| 43 |
+
+# `0.196` unit balance prints as `.196`), so the integer part is
|
| 44 |
+
+# optional when a decimal part is present.
|
| 45 |
+
+NUMERIC_RE = re.compile(r"^-?(?:[\d,]+(?:\.\d+)?|\.\d+)$")
|
| 46 |
+
|
| 47 |
+
PERIOD_RE = re.compile(
|
| 48 |
+
r"(?:for\s+the\s+period\s+from|statement\s+for\s+the\s+period\s+from)\s+"
|
heldout_pool/codereverser__casparser-f960976ba489/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
heldout_pool/codereverser__casparser-f960976ba489/task.toml
ADDED
|
@@ -0,0 +1,104 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "commit-runtime/codereverser__casparser-f960976ba489"
|
| 5 |
+
description = "Fix NUMERIC_RE to accept leading-dot decimals in NSDL/CDSL parsers"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "small"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"casparser",
|
| 12 |
+
"commit_runtime",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "commit_runtime"
|
| 17 |
+
pipeline_version = "0.8.3"
|
| 18 |
+
repo = "codereverser/casparser"
|
| 19 |
+
ref = "dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd"
|
| 20 |
+
reference = "https://github.com/codereverser/casparser/commit/f960976ba4895a2225e6d7b3f3985d53445aea91"
|
| 21 |
+
source_access = "public"
|
| 22 |
+
built_at = "2026-09-24T13:12:19.162103+00:00"
|
| 23 |
+
synthesis_llm = "gemini/gemini-2.5-flash"
|
| 24 |
+
reward_kinds = [
|
| 25 |
+
"test_execution",
|
| 26 |
+
"diff_similarity",
|
| 27 |
+
]
|
| 28 |
+
spec_version = "0.2.0"
|
| 29 |
+
content_hash = "sha256:8a882eb5408e1686feb78ef66dcce993266caf876b3dd81efe8d7f3c1897921a"
|
| 30 |
+
|
| 31 |
+
[metadata.repo2env.commit_runtime]
|
| 32 |
+
commit_sha = "f960976ba4895a2225e6d7b3f3985d53445aea91"
|
| 33 |
+
parent_sha = "dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd"
|
| 34 |
+
authored_at = "2026-05-28T12:44:45+10:00"
|
| 35 |
+
author_email = "codereverser@gmail.com"
|
| 36 |
+
subject = "Fix NUMERIC_RE to accept leading-dot decimals in NSDL/CDSL parsers"
|
| 37 |
+
fail_to_pass = [
|
| 38 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_looks_numeric_leading_dot",
|
| 39 |
+
]
|
| 40 |
+
pass_to_pass = [
|
| 41 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_account_key_normalises",
|
| 42 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_full_type_format",
|
| 43 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_looks_numeric",
|
| 44 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_cdsl",
|
| 45 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_invalid_length",
|
| 46 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_nsdl",
|
| 47 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_unrecognised",
|
| 48 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_parses_value[casparser.parsers.cdsl]",
|
| 49 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_parses_value[casparser.parsers.nsdl]",
|
| 50 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_returns_none_on_placeholders[casparser.parsers.cdsl]",
|
| 51 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_returns_none_on_placeholders[casparser.parsers.nsdl]",
|
| 52 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_none[casparser.parsers.cdsl]",
|
| 53 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_none[casparser.parsers.nsdl]",
|
| 54 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[ -casparser.parsers.cdsl]",
|
| 55 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[ -casparser.parsers.nsdl]",
|
| 56 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[---casparser.parsers.cdsl]",
|
| 57 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[---casparser.parsers.nsdl]",
|
| 58 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[--casparser.parsers.cdsl]",
|
| 59 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[--casparser.parsers.nsdl]",
|
| 60 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[-casparser.parsers.cdsl]",
|
| 61 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[-casparser.parsers.nsdl]",
|
| 62 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[N.A-casparser.parsers.cdsl]",
|
| 63 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[N.A-casparser.parsers.nsdl]",
|
| 64 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[NA-casparser.parsers.cdsl]",
|
| 65 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[NA-casparser.parsers.nsdl]",
|
| 66 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_strips_commas[casparser.parsers.cdsl]",
|
| 67 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_strips_commas[casparser.parsers.nsdl]",
|
| 68 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_swallows_invalid[casparser.parsers.cdsl]",
|
| 69 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_swallows_invalid[casparser.parsers.nsdl]",
|
| 70 |
+
]
|
| 71 |
+
validation_status = "verified"
|
| 72 |
+
bootstrap_image = "local-venv:codereverser__casparser"
|
| 73 |
+
instruction_synthesized = true
|
| 74 |
+
llm_cost_usd = 0.010387
|
| 75 |
+
|
| 76 |
+
[metadata.repo2env.reward_calibration]
|
| 77 |
+
f2p_count = 1
|
| 78 |
+
p2p_count = 29
|
| 79 |
+
source_files = 3
|
| 80 |
+
loc_changed = 15
|
| 81 |
+
difficulty = "small"
|
| 82 |
+
|
| 83 |
+
[metadata.repo2env.evaluation]
|
| 84 |
+
schema_version = "1"
|
| 85 |
+
status = "unverified"
|
| 86 |
+
stage = "generation"
|
| 87 |
+
reason_codes = [
|
| 88 |
+
"validation_not_run",
|
| 89 |
+
]
|
| 90 |
+
detail = "Generated task; validation has not been established."
|
| 91 |
+
provenance = "unknown"
|
| 92 |
+
evidence = []
|
| 93 |
+
|
| 94 |
+
[metadata.repo2env.reproducibility]
|
| 95 |
+
mode = "local_only"
|
| 96 |
+
image_ref = "local/codereverser__casparser"
|
| 97 |
+
image_tag = "local/codereverser__casparser"
|
| 98 |
+
image_visibility = "private"
|
| 99 |
+
|
| 100 |
+
[agent]
|
| 101 |
+
timeout_sec = 1800.0
|
| 102 |
+
|
| 103 |
+
[verifier]
|
| 104 |
+
timeout_sec = 300.0
|
heldout_pool/codereverser__casparser-f960976ba489/tests/f2p.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_looks_numeric_leading_dot"
|
| 3 |
+
]
|
heldout_pool/codereverser__casparser-f960976ba489/tests/p2p.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_account_key_normalises",
|
| 3 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_full_type_format",
|
| 4 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_looks_numeric",
|
| 5 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_cdsl",
|
| 6 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_invalid_length",
|
| 7 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_nsdl",
|
| 8 |
+
"tests/test_demat_units.py::TestCDSLHelpers::test_split_bo_id_unrecognised",
|
| 9 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_parses_value[casparser.parsers.cdsl]",
|
| 10 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_parses_value[casparser.parsers.nsdl]",
|
| 11 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_returns_none_on_placeholders[casparser.parsers.cdsl]",
|
| 12 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_opt_decimal_returns_none_on_placeholders[casparser.parsers.nsdl]",
|
| 13 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_none[casparser.parsers.cdsl]",
|
| 14 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_none[casparser.parsers.nsdl]",
|
| 15 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[ -casparser.parsers.cdsl]",
|
| 16 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[ -casparser.parsers.nsdl]",
|
| 17 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[---casparser.parsers.cdsl]",
|
| 18 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[---casparser.parsers.nsdl]",
|
| 19 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[--casparser.parsers.cdsl]",
|
| 20 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[--casparser.parsers.nsdl]",
|
| 21 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[-casparser.parsers.cdsl]",
|
| 22 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[-casparser.parsers.nsdl]",
|
| 23 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[N.A-casparser.parsers.cdsl]",
|
| 24 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[N.A-casparser.parsers.nsdl]",
|
| 25 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[NA-casparser.parsers.cdsl]",
|
| 26 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_handles_placeholders[NA-casparser.parsers.nsdl]",
|
| 27 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_strips_commas[casparser.parsers.cdsl]",
|
| 28 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_strips_commas[casparser.parsers.nsdl]",
|
| 29 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_swallows_invalid[casparser.parsers.cdsl]",
|
| 30 |
+
"tests/test_demat_units.py::TestDecimalHelpers::test_to_decimal_swallows_invalid[casparser.parsers.nsdl]"
|
| 31 |
+
]
|
heldout_pool/codereverser__casparser-f960976ba489/tests/test.sh
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
git config --global --add safe.directory /workspace
|
| 6 |
+
mkdir -p /logs/verifier
|
| 7 |
+
git checkout dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd -- tests/test_demat_units.py || true
|
| 8 |
+
git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH'
|
| 9 |
+
diff --git a/tests/test_demat_units.py b/tests/test_demat_units.py
|
| 10 |
+
index 1cbdba6..42b28c7 100644
|
| 11 |
+
--- a/tests/test_demat_units.py
|
| 12 |
+
+++ b/tests/test_demat_units.py
|
| 13 |
+
@@ -115,6 +115,19 @@ class TestCDSLHelpers:
|
| 14 |
+
assert not cdsl_p._looks_numeric("DIRECT")
|
| 15 |
+
assert not cdsl_p._looks_numeric("")
|
| 16 |
+
|
| 17 |
+
+ def test_looks_numeric_leading_dot(self):
|
| 18 |
+
+ """CDSL drops the leading zero on small fractional balances
|
| 19 |
+
+ (`0.196` -> `.196`); the classifier must still treat them as
|
| 20 |
+
+ numeric, otherwise the cell mis-buckets and the row layout
|
| 21 |
+
+ shifts silently."""
|
| 22 |
+
+ assert cdsl_p._looks_numeric(".196")
|
| 23 |
+
+ assert cdsl_p._looks_numeric(".69")
|
| 24 |
+
+ assert cdsl_p._looks_numeric("-.5")
|
| 25 |
+
+ assert cdsl_p._looks_numeric("0.196")
|
| 26 |
+
+ # naked separators must still fail
|
| 27 |
+
+ assert not cdsl_p._looks_numeric(".")
|
| 28 |
+
+ assert not cdsl_p._looks_numeric("-")
|
| 29 |
+
+
|
| 30 |
+
def test_is_total_row(self):
|
| 31 |
+
block = _block(_cell("Sub Total"), _cell("100.00"))
|
| 32 |
+
assert cdsl_p._is_total_row(block)
|
| 33 |
+
@@ -465,6 +478,16 @@ class TestNSDLHelpers:
|
| 34 |
+
assert not cdsl_p._looks_numeric("")
|
| 35 |
+
assert not cdsl_p._looks_numeric(" ")
|
| 36 |
+
|
| 37 |
+
+ def test_looks_numeric_leading_dot_both(self):
|
| 38 |
+
+ """Sub-unit balances rendered without the leading zero
|
| 39 |
+
+ (`.196`, `-.5`) must be recognised as numeric in BOTH NSDL and
|
| 40 |
+
+ CDSL classifiers; the parsers share the regex shape."""
|
| 41 |
+
+ for fn in (nsdl_p._looks_numeric, cdsl_p._looks_numeric):
|
| 42 |
+
+ assert fn(".196")
|
| 43 |
+
+ assert fn("-.5")
|
| 44 |
+
+ # naked dot must still fail
|
| 45 |
+
+ assert not fn(".")
|
| 46 |
+
+
|
| 47 |
+
def test_per_account_header_joint_form(self):
|
| 48 |
+
"""The NSDL joint-account section header is split across THREE
|
| 49 |
+
blocks: `NSDL Demat Account / ACCOUNT HOLDERS`, broker + first
|
| 50 |
+
|
| 51 |
+
EOF_R2E_TEST_PATCH
|
| 52 |
+
R2E_APPLY_RC=$?
|
| 53 |
+
if [ "$R2E_APPLY_RC" -ne 0 ]; then
|
| 54 |
+
echo "0.000000" > /logs/verifier/reward.txt
|
| 55 |
+
printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json
|
| 56 |
+
echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2
|
| 57 |
+
exit 0
|
| 58 |
+
fi
|
| 59 |
+
( python -m pytest -v tests/test_demat_units.py ) > /logs/verifier/test_output.log 2>&1
|
| 60 |
+
TEST_EXIT_CODE=$?
|
| 61 |
+
cat /logs/verifier/test_output.log
|
| 62 |
+
python3 "$SCRIPT_DIR/verifier.py" --log /logs/verifier/test_output.log --f2p "$SCRIPT_DIR/f2p.json" --p2p "$SCRIPT_DIR/p2p.json" --test-cmds 'python -m pytest -v tests/test_demat_units.py' --exit-code "$TEST_EXIT_CODE" --out-dir /logs/verifier || { [ "$TEST_EXIT_CODE" -eq 0 ] && echo "1.0" > /logs/verifier/reward.txt || echo "0.0" > /logs/verifier/reward.txt; }
|
| 63 |
+
git checkout dc6b4bad9a9d10e298fad1f3708587e4eea5f1fd -- tests/test_demat_units.py || true
|
| 64 |
+
exit 0
|
heldout_pool/codereverser__casparser-f960976ba489/tests/verifier.py
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_runtime tasks (graded F2P/P2P reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. It is read as
|
| 5 |
+
source at generation time, base64-encoded, and embedded into
|
| 6 |
+
``tests/test.sh``. At run time the container decodes it back to a file
|
| 7 |
+
and invokes it after the test suite has run.
|
| 8 |
+
|
| 9 |
+
Why a graded reward instead of binary pass/fail
|
| 10 |
+
------------------------------------------------
|
| 11 |
+
SWE-bench resolution is binary: a patch "resolves" the issue iff ALL
|
| 12 |
+
FAIL_TO_PASS tests pass AND ALL PASS_TO_PASS tests still pass. That's
|
| 13 |
+
the right signal for an eval leaderboard, but a terrible gradient for
|
| 14 |
+
RL training — an agent that fixes 4 of 5 failing tests scores the same
|
| 15 |
+
0.0 as one that fixes nothing.
|
| 16 |
+
|
| 17 |
+
So this verifier emits BOTH:
|
| 18 |
+
* /logs/verifier/reward.txt — the GRADED scalar (training signal,
|
| 19 |
+
which Harbor reads): reward = f2p_rate * p2p_factor
|
| 20 |
+
* /logs/verifier/reward-details.json — carries the strict SWE-bench
|
| 21 |
+
``resolved`` bool (eval signal) PLUS the full breakdown.
|
| 22 |
+
|
| 23 |
+
Refs: SWE-bench (F2P/P2P semantics), SWE-RL / SWE-Gym (dense reward for
|
| 24 |
+
RL), UTBoost (weak-test coverage lets wrong patches pass — hence we
|
| 25 |
+
record p2p_count so consumers can judge regression-guard strength).
|
| 26 |
+
|
| 27 |
+
Scoring
|
| 28 |
+
-------
|
| 29 |
+
Given the baked FAIL_TO_PASS / PASS_TO_PASS test-name lists (computed by
|
| 30 |
+
the generation-time two-stage validation) and the agent-run test log:
|
| 31 |
+
|
| 32 |
+
f2p_rate = (# F2P tests now PASSED) / (# F2P tests)
|
| 33 |
+
p2p_rate = (# P2P tests still PASSED) / (# P2P tests) [1.0 if no P2P]
|
| 34 |
+
p2p_factor = p2p_rate # regressions scale the reward down
|
| 35 |
+
reward = f2p_rate * p2p_factor
|
| 36 |
+
resolved = (all F2P pass) AND (all P2P pass) # strict SWE-bench
|
| 37 |
+
|
| 38 |
+
Oracle invariant: the gold patch flips every F2P and keeps every P2P,
|
| 39 |
+
so f2p_rate=1.0, p2p_rate=1.0 -> reward=1.0 and resolved=True. This is
|
| 40 |
+
what the T3 oracle gate (reward == 1.0) relies on.
|
| 41 |
+
|
| 42 |
+
Graceful degradation: if the log can't be parsed into per-test
|
| 43 |
+
statuses (unrecognized runner output), fall back to the exit-code
|
| 44 |
+
reward (1.0 if the suite exited 0, else 0.0) and stamp
|
| 45 |
+
``parse_status="fallback_exitcode"`` — never crash, never silently
|
| 46 |
+
zero out a real fix.
|
| 47 |
+
|
| 48 |
+
Pure stdlib — uses only ``argparse``, ``json``, ``os``, ``re``, ``sys``.
|
| 49 |
+
The 4 per-runner parsers are condensed ports of
|
| 50 |
+
``repo2rlenv.log_parsers.*`` kept in lockstep via the unit tests under
|
| 51 |
+
``tests/test_pr_runtime_verifier.py``.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
from __future__ import annotations
|
| 55 |
+
|
| 56 |
+
import argparse
|
| 57 |
+
import json
|
| 58 |
+
import os
|
| 59 |
+
import re
|
| 60 |
+
import sys
|
| 61 |
+
|
| 62 |
+
# Canonical statuses. (Plain strings — no typing.Literal so the baked
|
| 63 |
+
# module stays import-light when decoded standalone in the container.)
|
| 64 |
+
PASSED = "PASSED"
|
| 65 |
+
FAILED = "FAILED"
|
| 66 |
+
SKIPPED = "SKIPPED"
|
| 67 |
+
ERROR = "ERROR"
|
| 68 |
+
|
| 69 |
+
# ---------------------------------------------------------------------------
|
| 70 |
+
# Per-runner log parsers (condensed ports of repo2rlenv.log_parsers.*)
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
|
| 73 |
+
_PYTEST_STATUSES = (PASSED, FAILED, SKIPPED, ERROR)
|
| 74 |
+
# Keep these patterns in sync with log_parsers/pytest_parser.py. This module
|
| 75 |
+
# also runs standalone inside task containers, without a repo2rlenv install.
|
| 76 |
+
_PYTEST_PROGRESS = (
|
| 77 |
+
r"\[\s*\d+%\]|\[\s*\d+\s*/\s*\d+\s*\]"
|
| 78 |
+
r"|\d+(?:\.\d+)?(?:us|ms|s)|\d+m \d+s|\d+h \d+m"
|
| 79 |
+
)
|
| 80 |
+
_PYTEST_VERBOSE_RE = re.compile(
|
| 81 |
+
r"^(?P<name>.+?(?:\[.*?\])?)\s+(?P<status>PASSED|FAILED|SKIPPED|ERROR)"
|
| 82 |
+
rf"(?:\s+\(.*\))?(?:\s+(?:{_PYTEST_PROGRESS}))?$"
|
| 83 |
+
)
|
| 84 |
+
_PYTEST_SUMMARY_NAME_RE = re.compile(r"^(?P<name>.+?(?:\[.*?\])?)(?: - .*)?$")
|
| 85 |
+
# pytest-xdist worker label, e.g. `[gw1] [ 20%] PASSED tests/foo.py::test_x`.
|
| 86 |
+
_PYTEST_XDIST_PREFIX_RE = re.compile(rf"^\[gw\d+\]\s+(?:(?:{_PYTEST_PROGRESS})\s+)?")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def parse_pytest(log: str) -> dict[str, str]:
|
| 90 |
+
"""{test_name -> status} from pytest output (verbose or summary)."""
|
| 91 |
+
out: dict[str, str] = {}
|
| 92 |
+
if not log:
|
| 93 |
+
return out
|
| 94 |
+
for raw in log.split("\n"):
|
| 95 |
+
line = raw.strip()
|
| 96 |
+
if not line:
|
| 97 |
+
continue
|
| 98 |
+
line = _PYTEST_XDIST_PREFIX_RE.sub("", line, count=1)
|
| 99 |
+
# Summary lines (STATUS first), preserving the full node ID.
|
| 100 |
+
leading = None
|
| 101 |
+
for st in _PYTEST_STATUSES:
|
| 102 |
+
if line.startswith(st + " ") or line == st:
|
| 103 |
+
leading = st
|
| 104 |
+
break
|
| 105 |
+
if leading is not None:
|
| 106 |
+
work = line[len(leading) :].strip()
|
| 107 |
+
if leading == SKIPPED and re.match(r"^\[\d+\](?:\s|$)", work):
|
| 108 |
+
# Folded skips report a file location, not a parametrized ID.
|
| 109 |
+
tokens = work.split(maxsplit=2)
|
| 110 |
+
if len(tokens) < 2:
|
| 111 |
+
continue
|
| 112 |
+
out[tokens[1]] = leading
|
| 113 |
+
elif m := _PYTEST_SUMMARY_NAME_RE.match(work):
|
| 114 |
+
out[m.group("name")] = leading
|
| 115 |
+
continue
|
| 116 |
+
# Verbose progress (NAME first, STATUS after)
|
| 117 |
+
# Filter non-test output before attempting the backtracking regex.
|
| 118 |
+
head = line.split(None, 1)[0]
|
| 119 |
+
if "::" not in head and not head.endswith(".py"):
|
| 120 |
+
continue
|
| 121 |
+
m = _PYTEST_VERBOSE_RE.match(line)
|
| 122 |
+
if m:
|
| 123 |
+
name = m.group("name")
|
| 124 |
+
if "::" in name or name.endswith(".py"):
|
| 125 |
+
out[name] = m.group("status")
|
| 126 |
+
return out
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
_GO_TEST_RE = re.compile(r"^\s*---\s+(?P<status>PASS|FAIL|SKIP):\s+(?P<name>\S+)")
|
| 130 |
+
_GO_STATUS = {"PASS": PASSED, "FAIL": FAILED, "SKIP": SKIPPED}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_go_test(log: str) -> dict[str, str]:
|
| 134 |
+
"""{test_name -> status} from `go test -v` output."""
|
| 135 |
+
out: dict[str, str] = {}
|
| 136 |
+
if not log:
|
| 137 |
+
return out
|
| 138 |
+
for raw in log.split("\n"):
|
| 139 |
+
m = _GO_TEST_RE.match(raw)
|
| 140 |
+
if m:
|
| 141 |
+
out[m.group("name")] = _GO_STATUS[m.group("status")]
|
| 142 |
+
return out
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Keep these patterns in sync with log_parsers/cargo_parser.py.
|
| 146 |
+
_CARGO_TEST_RE = re.compile(r"^test\s+(?P<name>\S.*?) \.\.\. (?P<status>ok|FAILED|ignored)\b")
|
| 147 |
+
_CARGO_MODE_RE = re.compile(r" - (?:should panic|compile fail|compile)$")
|
| 148 |
+
_CARGO_DOCTEST_RE = re.compile(r"^(?P<file>\S+) - (?:(?P<item>.+?) )?\(line \d+\)$")
|
| 149 |
+
_CARGO_STATUS = {"ok": PASSED, "FAILED": FAILED, "ignored": SKIPPED}
|
| 150 |
+
_CARGO_DOCTEST_RANK = {SKIPPED: 0, PASSED: 1, FAILED: 2}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def parse_cargo_test(log: str) -> dict[str, str]:
|
| 154 |
+
"""{test_name -> status} from `cargo test` output.
|
| 155 |
+
|
| 156 |
+
Test modes (` - should panic`) are dropped from names, and doctests are
|
| 157 |
+
keyed without their `(line N)` so line shifts don't change identity; the
|
| 158 |
+
worst status among an item's doctests wins.
|
| 159 |
+
"""
|
| 160 |
+
out: dict[str, str] = {}
|
| 161 |
+
if not log:
|
| 162 |
+
return out
|
| 163 |
+
for raw in log.split("\n"):
|
| 164 |
+
m = _CARGO_TEST_RE.match(raw)
|
| 165 |
+
if not m:
|
| 166 |
+
continue
|
| 167 |
+
name = _CARGO_MODE_RE.sub("", m.group("name")).rstrip()
|
| 168 |
+
status = _CARGO_STATUS[m.group("status")]
|
| 169 |
+
doctest = _CARGO_DOCTEST_RE.match(name)
|
| 170 |
+
if doctest:
|
| 171 |
+
item = doctest.group("item")
|
| 172 |
+
name = f"{doctest.group('file')} - {item}" if item else doctest.group("file")
|
| 173 |
+
if name in out and _CARGO_DOCTEST_RANK[out[name]] > _CARGO_DOCTEST_RANK[status]:
|
| 174 |
+
continue
|
| 175 |
+
out[name] = status
|
| 176 |
+
return out
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_JEST_FILE_RE = re.compile(r"^ ?(?:PASS|FAIL)\s+(?P<path>\S+\.(?:ts|tsx|js|jsx|mjs|cjs))\b")
|
| 180 |
+
_JEST_TEST_RE = re.compile(
|
| 181 |
+
r"^(?P<indent>\s*)(?P<glyph>✓|√|✕|×|✗|○|◯)\s+(?P<name>.+?)(?:\s+\(\d+(?:\.\d+)?\s*m?s\))?$"
|
| 182 |
+
)
|
| 183 |
+
_JEST_GLYPH = {
|
| 184 |
+
"✓": PASSED,
|
| 185 |
+
"√": PASSED,
|
| 186 |
+
"✕": FAILED,
|
| 187 |
+
"×": FAILED,
|
| 188 |
+
"✗": FAILED,
|
| 189 |
+
"○": SKIPPED,
|
| 190 |
+
"◯": SKIPPED,
|
| 191 |
+
}
|
| 192 |
+
# Keep these patterns in sync with log_parsers/jest_parser.py.
|
| 193 |
+
_ANSI_RE = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
|
| 194 |
+
_VITEST_MARKER_RE = re.compile(r"^\s*(?:RUN\s+v\d+\.\d+|Test Files\s+\d)", re.MULTILINE)
|
| 195 |
+
_VITEST_TEST_RE = re.compile(
|
| 196 |
+
r"^\s*(?P<glyph>[✓×↓□]) (?:\|(?P<project>[^|]+)\| | (?P<label>\S+) )?"
|
| 197 |
+
r"(?P<name>\S+ > .+?)(?P<duration> \d{1,9}ms)?"
|
| 198 |
+
r"(?: \(retry x\d{1,9}\))?(?: \(repeat x\d{1,9}\))?(?: \d{1,9} MB heap used)?(?: \[[^\[\]]*\])?$"
|
| 199 |
+
)
|
| 200 |
+
_VITEST_STATUS = {"✓": PASSED, "×": FAILED, "↓": SKIPPED, "□": SKIPPED}
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _parse_vitest(log: str) -> dict[str, str]:
|
| 204 |
+
"""{test_name -> status} from vitest `--reporter=verbose` lines only."""
|
| 205 |
+
out: dict[str, str] = {}
|
| 206 |
+
for raw in log.split("\n"):
|
| 207 |
+
m = _VITEST_TEST_RE.match(raw.rstrip())
|
| 208 |
+
if not m:
|
| 209 |
+
continue
|
| 210 |
+
glyph, name = m.group("glyph"), m.group("name")
|
| 211 |
+
if glyph in "↓□" and m.group("duration"):
|
| 212 |
+
name += m.group("duration")
|
| 213 |
+
project = m.group("project") or m.group("label")
|
| 214 |
+
out[f"|{project}| {name}" if project else name] = _VITEST_STATUS[glyph]
|
| 215 |
+
return out
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def parse_jest(log: str) -> dict[str, str]:
|
| 219 |
+
"""{test_name -> status} from Jest / Mocha / Vitest output."""
|
| 220 |
+
out: dict[str, str] = {}
|
| 221 |
+
if not log:
|
| 222 |
+
return out
|
| 223 |
+
log = _ANSI_RE.sub("", log)
|
| 224 |
+
if _VITEST_MARKER_RE.search(log):
|
| 225 |
+
return _parse_vitest(log)
|
| 226 |
+
current_file: str | None = None
|
| 227 |
+
describe_stack: list[tuple[int, str]] = []
|
| 228 |
+
last_test_indent: int | None = None
|
| 229 |
+
for raw in log.split("\n"):
|
| 230 |
+
line = raw.rstrip()
|
| 231 |
+
if not line:
|
| 232 |
+
continue
|
| 233 |
+
m = _JEST_FILE_RE.match(line)
|
| 234 |
+
if m:
|
| 235 |
+
current_file = m.group("path")
|
| 236 |
+
describe_stack = []
|
| 237 |
+
last_test_indent = None
|
| 238 |
+
continue
|
| 239 |
+
m = _JEST_TEST_RE.match(line)
|
| 240 |
+
if m:
|
| 241 |
+
indent = len(m.group("indent"))
|
| 242 |
+
name = re.sub(r"^(?:skipped|todo):\s*", "", m.group("name").strip())
|
| 243 |
+
describes = [d for ind, d in describe_stack if ind < indent]
|
| 244 |
+
parts = ([current_file] if current_file else []) + describes + [name]
|
| 245 |
+
out[" > ".join(parts)] = _JEST_GLYPH[m.group("glyph")]
|
| 246 |
+
last_test_indent = indent
|
| 247 |
+
continue
|
| 248 |
+
stripped = line.lstrip()
|
| 249 |
+
if not stripped or stripped.startswith(
|
| 250 |
+
("Tests:", "Test Suites:", "Snapshots:", "Time:", "Ran all", "●", "→", "✗:")
|
| 251 |
+
):
|
| 252 |
+
continue
|
| 253 |
+
indent_here = len(line) - len(stripped)
|
| 254 |
+
if current_file and (last_test_indent is None or indent_here < last_test_indent):
|
| 255 |
+
describe_stack = [(i, d) for i, d in describe_stack if i < indent_here]
|
| 256 |
+
describe_stack.append((indent_here, stripped))
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _detect_runner(test_cmds: str) -> str:
|
| 261 |
+
joined = test_cmds.lower()
|
| 262 |
+
if "pytest" in joined:
|
| 263 |
+
return "pytest"
|
| 264 |
+
if re.search(r"\bgo\s+test\b", joined):
|
| 265 |
+
return "go"
|
| 266 |
+
if re.search(r"\bcargo\s+test\b", joined):
|
| 267 |
+
return "cargo"
|
| 268 |
+
if any(k in joined for k in ("jest", "mocha", "vitest", "npm test", "yarn test", "pnpm test")):
|
| 269 |
+
return "jest"
|
| 270 |
+
return "unknown"
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def parse_logs(runner: str, log: str) -> dict[str, str]:
|
| 274 |
+
"""Dispatch to the right per-runner parser. Empty dict if unknown."""
|
| 275 |
+
if runner == "pytest":
|
| 276 |
+
return parse_pytest(log)
|
| 277 |
+
if runner == "go":
|
| 278 |
+
return parse_go_test(log)
|
| 279 |
+
if runner == "cargo":
|
| 280 |
+
return parse_cargo_test(log)
|
| 281 |
+
if runner == "jest":
|
| 282 |
+
return parse_jest(log)
|
| 283 |
+
return {}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
# ---------------------------------------------------------------------------
|
| 287 |
+
# Grading
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
def _has_go_parent(name: str, status_map: dict[str, str]) -> bool:
|
| 290 |
+
"""Return True if a Go test has an ancestor represented in the status map."""
|
| 291 |
+
parts = name.split("/")
|
| 292 |
+
|
| 293 |
+
for i in range(1, len(parts)):
|
| 294 |
+
parent = "/".join(parts[:i])
|
| 295 |
+
if status_map.get(parent) == FAILED:
|
| 296 |
+
return True
|
| 297 |
+
|
| 298 |
+
return False
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def grade(
|
| 302 |
+
fail_to_pass: list[str],
|
| 303 |
+
pass_to_pass: list[str],
|
| 304 |
+
status_map: dict[str, str],
|
| 305 |
+
runner: str | None = None,
|
| 306 |
+
) -> dict:
|
| 307 |
+
"""Compute the graded reward + strict resolved bool from a status map.
|
| 308 |
+
|
| 309 |
+
f2p_rate = (# F2P now PASSED) / (# F2P)
|
| 310 |
+
p2p_rate = (# P2P still PASSED) / (# P2P) [1.0 when no P2P]
|
| 311 |
+
reward = f2p_rate * p2p_rate (dense training signal)
|
| 312 |
+
resolved = all F2P pass AND all P2P pass (SWE-bench TRACKED resolution —
|
| 313 |
+
the gold patch always satisfies this, preserving the oracle
|
| 314 |
+
invariant)
|
| 315 |
+
|
| 316 |
+
Two distinct EVAL signals (see the audit's "tracked vs command resolved"):
|
| 317 |
+
* `resolved` — tracked resolution (above). Gold patch -> True.
|
| 318 |
+
* `command_resolved` — stricter: tracked resolution AND the selected test
|
| 319 |
+
command had NO failures outside F2P/P2P AND exit
|
| 320 |
+
code 0. Computed in main() where the exit code is
|
| 321 |
+
known. A benchmark that wants "the whole command
|
| 322 |
+
passed cleanly" gates on this; SWE-bench-style
|
| 323 |
+
scoring uses `resolved`.
|
| 324 |
+
|
| 325 |
+
`untracked_failed` are FAILED tests in the run that are neither F2P nor
|
| 326 |
+
P2P (e.g. always-failing/flaky tests pulled in by running a whole test
|
| 327 |
+
file). They don't change the graded `reward` or tracked `resolved`, but
|
| 328 |
+
they block `command_resolved` and are recorded for transparency.
|
| 329 |
+
"""
|
| 330 |
+
f2p_total = len(fail_to_pass)
|
| 331 |
+
p2p_total = len(pass_to_pass)
|
| 332 |
+
f2p_set = set(fail_to_pass)
|
| 333 |
+
p2p_set = set(pass_to_pass)
|
| 334 |
+
f2p_passed = sum(1 for t in fail_to_pass if status_map.get(t) == PASSED)
|
| 335 |
+
p2p_passed = sum(1 for t in pass_to_pass if status_map.get(t) == PASSED)
|
| 336 |
+
# Tests that should have stayed green but regressed (PASS->not-pass).
|
| 337 |
+
regressions = [t for t in pass_to_pass if status_map.get(t) != PASSED]
|
| 338 |
+
|
| 339 |
+
# FAILED tests outside the tracked sets — the selected command isn't clean.
|
| 340 |
+
if runner == "go":
|
| 341 |
+
failed_tests = {
|
| 342 |
+
t
|
| 343 |
+
for t, s in status_map.items()
|
| 344 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
untracked_failed = sorted(t for t in failed_tests if not _has_go_parent(t, status_map))
|
| 348 |
+
else:
|
| 349 |
+
untracked_failed = sorted(
|
| 350 |
+
t
|
| 351 |
+
for t, s in status_map.items()
|
| 352 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 353 |
+
)
|
| 354 |
+
|
| 355 |
+
f2p_rate = (f2p_passed / f2p_total) if f2p_total else 0.0
|
| 356 |
+
p2p_rate = (p2p_passed / p2p_total) if p2p_total else 1.0
|
| 357 |
+
reward = f2p_rate * p2p_rate
|
| 358 |
+
resolved = f2p_total > 0 and f2p_passed == f2p_total and p2p_passed == p2p_total
|
| 359 |
+
|
| 360 |
+
return {
|
| 361 |
+
"reward": round(max(0.0, min(1.0, reward)), 6),
|
| 362 |
+
"resolved": resolved,
|
| 363 |
+
"f2p_total": f2p_total,
|
| 364 |
+
"f2p_passed": f2p_passed,
|
| 365 |
+
"f2p_rate": round(f2p_rate, 6),
|
| 366 |
+
"p2p_total": p2p_total,
|
| 367 |
+
"p2p_passed": p2p_passed,
|
| 368 |
+
"p2p_rate": round(p2p_rate, 6),
|
| 369 |
+
"regressions": sorted(regressions),
|
| 370 |
+
"untracked_failed_count": len(untracked_failed),
|
| 371 |
+
"untracked_failed": untracked_failed[:20], # cap the list
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
# ---------------------------------------------------------------------------
|
| 376 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 377 |
+
# ---------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _read_json_list(path: str) -> list[str]:
|
| 381 |
+
try:
|
| 382 |
+
with open(path, encoding="utf-8") as f:
|
| 383 |
+
data = json.load(f)
|
| 384 |
+
return [str(x) for x in data] if isinstance(data, list) else []
|
| 385 |
+
except (OSError, ValueError):
|
| 386 |
+
return []
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def _read_text(path: str) -> str:
|
| 390 |
+
try:
|
| 391 |
+
with open(path, encoding="utf-8") as f:
|
| 392 |
+
return f.read()
|
| 393 |
+
except (OSError, UnicodeDecodeError):
|
| 394 |
+
return ""
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def main(argv: list[str] | None = None) -> int:
|
| 398 |
+
p = argparse.ArgumentParser(description="pr_runtime graded F2P/P2P verifier")
|
| 399 |
+
p.add_argument("--log", required=True, help="captured test-run log file")
|
| 400 |
+
p.add_argument("--f2p", required=True, help="JSON file: FAIL_TO_PASS test names")
|
| 401 |
+
p.add_argument("--p2p", required=True, help="JSON file: PASS_TO_PASS test names")
|
| 402 |
+
p.add_argument("--runner", default="", help="pytest|go|cargo|jest (else auto-detect)")
|
| 403 |
+
p.add_argument("--test-cmds", default="", help="test command string (runner auto-detect)")
|
| 404 |
+
p.add_argument("--exit-code", type=int, default=1, help="test suite exit code (fallback)")
|
| 405 |
+
p.add_argument("--out-dir", default="/logs/verifier", help="where to write reward.{txt,json}")
|
| 406 |
+
args = p.parse_args(argv)
|
| 407 |
+
|
| 408 |
+
log = _read_text(args.log)
|
| 409 |
+
f2p = _read_json_list(args.f2p)
|
| 410 |
+
p2p = _read_json_list(args.p2p)
|
| 411 |
+
runner = args.runner.strip() or _detect_runner(args.test_cmds)
|
| 412 |
+
|
| 413 |
+
status_map = parse_logs(runner, log)
|
| 414 |
+
|
| 415 |
+
if not status_map:
|
| 416 |
+
# Unparseable runner output → fall back to the binary exit-code reward
|
| 417 |
+
# (a coarse TRAINING signal) so we never silently zero a real fix on an
|
| 418 |
+
# unrecognized format. But `resolved` is the strict EVAL signal: without
|
| 419 |
+
# parsed per-test status we have NO evidence the declared FAIL_TO_PASS
|
| 420 |
+
# tests passed, so when an F2P oracle exists we must NOT claim resolved.
|
| 421 |
+
# (resolved stays exit-code-based only when there's no declared oracle,
|
| 422 |
+
# e.g. --skip-validation.)
|
| 423 |
+
reward = 1.0 if args.exit_code == 0 else 0.0
|
| 424 |
+
has_oracle = len(f2p) > 0
|
| 425 |
+
resolved = (args.exit_code == 0) and not has_oracle
|
| 426 |
+
breakdown = {
|
| 427 |
+
"reward": reward,
|
| 428 |
+
"resolved": resolved,
|
| 429 |
+
"command_resolved": bool(resolved and args.exit_code == 0),
|
| 430 |
+
"parse_status": "fallback_exitcode",
|
| 431 |
+
"eval_trustworthy": not has_oracle,
|
| 432 |
+
"runner": runner,
|
| 433 |
+
"f2p_total": len(f2p),
|
| 434 |
+
"p2p_total": len(p2p),
|
| 435 |
+
"exit_code": args.exit_code,
|
| 436 |
+
}
|
| 437 |
+
else:
|
| 438 |
+
breakdown = grade(f2p, p2p, status_map, runner)
|
| 439 |
+
breakdown["parse_status"] = "ok"
|
| 440 |
+
breakdown["runner"] = runner
|
| 441 |
+
breakdown["tests_parsed"] = len(status_map)
|
| 442 |
+
breakdown["exit_code"] = args.exit_code
|
| 443 |
+
# Strict eval signal: tracked resolution AND a clean command (no
|
| 444 |
+
# untracked failures, exit code 0). Benchmarks wanting "the whole test
|
| 445 |
+
# command passed" gate on this; SWE-bench-style scoring uses `resolved`.
|
| 446 |
+
breakdown["command_resolved"] = bool(
|
| 447 |
+
breakdown["resolved"]
|
| 448 |
+
and breakdown["untracked_failed_count"] == 0
|
| 449 |
+
and args.exit_code == 0
|
| 450 |
+
)
|
| 451 |
+
reward = breakdown["reward"]
|
| 452 |
+
|
| 453 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 454 |
+
with open(os.path.join(args.out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 455 |
+
f.write(f"{reward:.6f}\n")
|
| 456 |
+
with open(os.path.join(args.out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 457 |
+
json.dump(breakdown, f, indent=2)
|
| 458 |
+
|
| 459 |
+
print(json.dumps(breakdown, indent=2))
|
| 460 |
+
return 0
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
sys.exit(main())
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
__all__ = [
|
| 468 |
+
"grade",
|
| 469 |
+
"main",
|
| 470 |
+
"parse_cargo_test",
|
| 471 |
+
"parse_go_test",
|
| 472 |
+
"parse_jest",
|
| 473 |
+
"parse_logs",
|
| 474 |
+
"parse_pytest",
|
| 475 |
+
]
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/environment/Dockerfile
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_runtime
|
| 2 |
+
FROM local/cx-lukas-salkauskas-x__InAppPy
|
| 3 |
+
WORKDIR /workspace
|
| 4 |
+
# Defensive: ensure git is on PATH at build time. Bootstrap base
|
| 5 |
+
# images vary — some (Python slim) don't ship git; some agents
|
| 6 |
+
# install it; others don't. Re-installing is a no-op when already
|
| 7 |
+
# present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine).
|
| 8 |
+
# Install git + ca-certificates. Minimal images (node:alpine) ship
|
| 9 |
+
# without CA certs, so HTTPS git fetch fails verification.
|
| 10 |
+
RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \
|
| 11 |
+
(apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 13 |
+
(apk add --no-cache git ca-certificates && update-ca-certificates) || true
|
| 14 |
+
# Defensive: the graded F2P/P2P verifier is Python.
|
| 15 |
+
# Language-specific bootstrap images (Go/Rust/Node) may not
|
| 16 |
+
# ship python3 — install it so test.sh can score F2P/P2P. No-op when
|
| 17 |
+
# python3 is already present (every Python-repo image has it).
|
| 18 |
+
RUN command -v python3 >/dev/null 2>&1 || \
|
| 19 |
+
(apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 21 |
+
apk add --no-cache python3 || true
|
| 22 |
+
# Position the working tree at the PR's base commit so subsequent
|
| 23 |
+
# model-patch applications align with the line context the patch
|
| 24 |
+
# was authored against. The fetch is a no-op if the commit is
|
| 25 |
+
# already in the shallow clone.
|
| 26 |
+
RUN git config --global --add safe.directory /workspace \
|
| 27 |
+
&& git fetch --depth 1 origin 4c6d971b70b62e94d43944062c72590a8e1db313 2>/dev/null \
|
| 28 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 29 |
+
RUN git reset --hard 4c6d971b70b62e94d43944062c72590a8e1db313 && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache
|
| 30 |
+
RUN git checkout -q -B base 4c6d971b70b62e94d43944062c72590a8e1db313 \
|
| 31 |
+
&& git remote remove origin 2>/dev/null || true
|
| 32 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 33 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 34 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 35 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 36 |
+
&& git gc --prune=now 2>/dev/null || true
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv: anti-contamination egress guard.
|
| 2 |
+
# Blackholes the hosts that serve this repo's published fix and hidden
|
| 3 |
+
# tests, so an agent cannot fetch the answer (pip download / git fetch /
|
| 4 |
+
# WebFetch against these fail). General internet stays up so the agent
|
| 5 |
+
# can install itself and reach its model API. See pipelines/_env_guard.py.
|
| 6 |
+
services:
|
| 7 |
+
main:
|
| 8 |
+
extra_hosts:
|
| 9 |
+
- "pypi.org:0.0.0.0"
|
| 10 |
+
- "pypi.python.org:0.0.0.0"
|
| 11 |
+
- "files.pythonhosted.org:0.0.0.0"
|
| 12 |
+
- "github.com:0.0.0.0"
|
| 13 |
+
- "api.github.com:0.0.0.0"
|
| 14 |
+
- "raw.githubusercontent.com:0.0.0.0"
|
| 15 |
+
- "codeload.github.com:0.0.0.0"
|
| 16 |
+
- "objects.githubusercontent.com:0.0.0.0"
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Requests fail immediately when targeting the wrong environment
|
| 4 |
+
## Description
|
| 5 |
+
When a request is made that targets an incorrect environment, the operation fails outright. This forces users to manually re-initiate the request after identifying and correcting the environment.
|
| 6 |
+
Expected behavior: The system should automatically detect requests targeting the wrong environment and attempt to retry them, potentially after adjusting to the correct environment.
|
| 7 |
+
|
| 8 |
+
## Task
|
| 9 |
+
|
| 10 |
+
Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit `4c6d971b70b6` and running the modified tests.
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/solution/patch.diff
ADDED
|
@@ -0,0 +1,107 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/inapppy/appstore.py b/inapppy/appstore.py
|
| 2 |
+
index 84bbc2e..96599c1 100644
|
| 3 |
+
--- a/inapppy/appstore.py
|
| 4 |
+
+++ b/inapppy/appstore.py
|
| 5 |
+
@@ -3,7 +3,8 @@ from inapppy.errors import InAppPyValidationError
|
| 6 |
+
from requests.exceptions import RequestException
|
| 7 |
+
import requests
|
| 8 |
+
|
| 9 |
+
-
|
| 10 |
+
+# https://developer.apple.com/library/content/releasenotes/General/ValidateAppStoreReceipt/Chapters/ValidateRemotely.html
|
| 11 |
+
+# `Table 2-1 Status codes`
|
| 12 |
+
api_result_ok = 0
|
| 13 |
+
api_result_errors = {
|
| 14 |
+
21000: InAppPyValidationError('Bad json'),
|
| 15 |
+
@@ -12,6 +13,8 @@ api_result_errors = {
|
| 16 |
+
21004: InAppPyValidationError('Shared secret mismatch'),
|
| 17 |
+
21005: InAppPyValidationError('Server is unavailable'),
|
| 18 |
+
21006: InAppPyValidationError('Subscription has expired'),
|
| 19 |
+
+
|
| 20 |
+
+ # two following errors can use auto_retry_wrong_env_request.
|
| 21 |
+
21007: InAppPyValidationError('Sandbox receipt was sent to the production env'),
|
| 22 |
+
21008: InAppPyValidationError('Production receipt was sent to the sandbox env'),
|
| 23 |
+
}
|
| 24 |
+
@@ -21,14 +24,23 @@ class AppStoreValidator(object):
|
| 25 |
+
bundle_id = None
|
| 26 |
+
sandbox = None
|
| 27 |
+
url = None
|
| 28 |
+
+ auto_retry_wrong_env_request = False
|
| 29 |
+
|
| 30 |
+
- def __init__(self, bundle_id, sandbox=False):
|
| 31 |
+
+ def __init__(self, bundle_id, sandbox=False, auto_retry_wrong_env_request=False):
|
| 32 |
+
+ """ Constructor for AppStoreValidator
|
| 33 |
+
+
|
| 34 |
+
+ :param bundle_id: apple bundle id
|
| 35 |
+
+ :param sandbox: sandbox mode ?
|
| 36 |
+
+ :param auto_retry_wrong_env_request: auto retry on wrong env ?
|
| 37 |
+
+ """
|
| 38 |
+
self.bundle_id = bundle_id
|
| 39 |
+
self.sandbox = sandbox
|
| 40 |
+
|
| 41 |
+
if not self.bundle_id:
|
| 42 |
+
raise InAppPyValidationError('`bundle_id` cannot be empty')
|
| 43 |
+
|
| 44 |
+
+ self.auto_retry_wrong_env_request = auto_retry_wrong_env_request
|
| 45 |
+
+
|
| 46 |
+
self._change_url_by_sandbox()
|
| 47 |
+
|
| 48 |
+
def _change_url_by_sandbox(self):
|
| 49 |
+
@@ -38,21 +50,35 @@ class AppStoreValidator(object):
|
| 50 |
+
def post_json(self, request_json):
|
| 51 |
+
self._change_url_by_sandbox()
|
| 52 |
+
|
| 53 |
+
- return requests.post(self.url, json=request_json).json()
|
| 54 |
+
-
|
| 55 |
+
- def validate(self, receipt, shared_secret=None):
|
| 56 |
+
- receipt_json = {'receipt-data': receipt}
|
| 57 |
+
-
|
| 58 |
+
- # if shared secret is provided, attach it as `password`.
|
| 59 |
+
- if shared_secret:
|
| 60 |
+
- receipt_json['password'] = shared_secret
|
| 61 |
+
-
|
| 62 |
+
try:
|
| 63 |
+
- api_response = self.post_json(receipt_json)
|
| 64 |
+
+ return requests.post(self.url, json=request_json).json()
|
| 65 |
+
except (ValueError, RequestException):
|
| 66 |
+
raise InAppPyValidationError('HTTP error')
|
| 67 |
+
|
| 68 |
+
+ def validate(self, receipt, shared_secret=None):
|
| 69 |
+
+ """ Validates receipt against apple services.
|
| 70 |
+
+
|
| 71 |
+
+ :param receipt: receipt
|
| 72 |
+
+ :param shared_secret: optional shared secret.
|
| 73 |
+
+ :return: validation result or exception.
|
| 74 |
+
+ """
|
| 75 |
+
+ receipt_json = {'receipt-data': receipt}
|
| 76 |
+
+
|
| 77 |
+
+ if shared_secret:
|
| 78 |
+
+ receipt_json['password'] = shared_secret
|
| 79 |
+
+
|
| 80 |
+
+ # Do a request.
|
| 81 |
+
+ api_response = self.post_json(receipt_json)
|
| 82 |
+
status = api_response['status']
|
| 83 |
+
+
|
| 84 |
+
+ # Check retry case.
|
| 85 |
+
+ if self.auto_retry_wrong_env_request and status in [21007, 21008]:
|
| 86 |
+
+ # switch environment
|
| 87 |
+
+ self.sandbox = not self.sandbox
|
| 88 |
+
+
|
| 89 |
+
+ api_response = self.post_json(receipt_json)
|
| 90 |
+
+ status = api_response['status']
|
| 91 |
+
+
|
| 92 |
+
if status != api_result_ok:
|
| 93 |
+
error = api_result_errors.get(status, InAppPyValidationError('Unknown API status'))
|
| 94 |
+
error.raw_response = api_response
|
| 95 |
+
diff --git a/setup.py b/setup.py
|
| 96 |
+
index 8fab1fd..df0ca90 100644
|
| 97 |
+
--- a/setup.py
|
| 98 |
+
+++ b/setup.py
|
| 99 |
+
@@ -3,7 +3,7 @@ from setuptools import setup
|
| 100 |
+
|
| 101 |
+
setup(
|
| 102 |
+
name='inapppy',
|
| 103 |
+
- version='0.4',
|
| 104 |
+
+ version='0.5',
|
| 105 |
+
packages=['inapppy'],
|
| 106 |
+
install_requires=['rsa', 'requests'],
|
| 107 |
+
description="In-app purchase validation library for Apple AppStore and GooglePlay.",
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/task.toml
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "commit-runtime/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb"
|
| 5 |
+
description = "added ability to auto retry on wrong environment request."
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "medium"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"InAppPy",
|
| 12 |
+
"commit_runtime",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "commit_runtime"
|
| 17 |
+
pipeline_version = "0.8.3"
|
| 18 |
+
repo = "cx-lukas-salkauskas-x/InAppPy"
|
| 19 |
+
ref = "4c6d971b70b62e94d43944062c72590a8e1db313"
|
| 20 |
+
reference = "https://github.com/cx-lukas-salkauskas-x/InAppPy/commit/5cbdd002e4eb1adb0f5055e0ef1bf3374c6132d4"
|
| 21 |
+
source_access = "public"
|
| 22 |
+
built_at = "2026-09-24T13:11:52.992916+00:00"
|
| 23 |
+
synthesis_llm = "gemini/gemini-2.5-flash"
|
| 24 |
+
reward_kinds = [
|
| 25 |
+
"test_execution",
|
| 26 |
+
"diff_similarity",
|
| 27 |
+
]
|
| 28 |
+
spec_version = "0.2.0"
|
| 29 |
+
content_hash = "sha256:dc3b8939fe1a87f177810dfd7b49f937a486acbfae8cb5ed52cac5c8a02bc94e"
|
| 30 |
+
|
| 31 |
+
[metadata.repo2env.commit_runtime]
|
| 32 |
+
commit_sha = "5cbdd002e4eb1adb0f5055e0ef1bf3374c6132d4"
|
| 33 |
+
parent_sha = "4c6d971b70b62e94d43944062c72590a8e1db313"
|
| 34 |
+
authored_at = "2017-02-07T13:21:59+02:00"
|
| 35 |
+
author_email = "halfas.online@gmail.com"
|
| 36 |
+
subject = "added ability to auto retry on wrong environment request."
|
| 37 |
+
fail_to_pass = [
|
| 38 |
+
"tests/test_appstore.py::test_appstore_auto_retry_wrong_env_request",
|
| 39 |
+
]
|
| 40 |
+
pass_to_pass = [
|
| 41 |
+
"tests/test_appstore.py::test_appstore_validate_attach_raw_response_to_the_exception",
|
| 42 |
+
"tests/test_appstore.py::test_appstore_validate_sandbox",
|
| 43 |
+
"tests/test_appstore.py::test_appstore_validate_simple",
|
| 44 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_raises_if_no_bundle_id",
|
| 45 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_sandbox",
|
| 46 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_simple",
|
| 47 |
+
]
|
| 48 |
+
validation_status = "verified"
|
| 49 |
+
bootstrap_image = "local-venv:cx-lukas-salkauskas-x__InAppPy"
|
| 50 |
+
instruction_synthesized = true
|
| 51 |
+
llm_cost_usd = 0.0
|
| 52 |
+
|
| 53 |
+
[metadata.repo2env.reward_calibration]
|
| 54 |
+
f2p_count = 1
|
| 55 |
+
p2p_count = 6
|
| 56 |
+
source_files = 2
|
| 57 |
+
loc_changed = 52
|
| 58 |
+
difficulty = "medium"
|
| 59 |
+
|
| 60 |
+
[metadata.repo2env.evaluation]
|
| 61 |
+
schema_version = "1"
|
| 62 |
+
status = "unverified"
|
| 63 |
+
stage = "generation"
|
| 64 |
+
reason_codes = [
|
| 65 |
+
"validation_not_run",
|
| 66 |
+
]
|
| 67 |
+
detail = "Generated task; validation has not been established."
|
| 68 |
+
provenance = "unknown"
|
| 69 |
+
evidence = []
|
| 70 |
+
|
| 71 |
+
[metadata.repo2env.reproducibility]
|
| 72 |
+
mode = "local_only"
|
| 73 |
+
image_ref = "local/cx-lukas-salkauskas-x__InAppPy"
|
| 74 |
+
image_tag = "local/cx-lukas-salkauskas-x__InAppPy"
|
| 75 |
+
image_visibility = "private"
|
| 76 |
+
|
| 77 |
+
[agent]
|
| 78 |
+
timeout_sec = 1800.0
|
| 79 |
+
|
| 80 |
+
[verifier]
|
| 81 |
+
timeout_sec = 300.0
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/f2p.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_appstore.py::test_appstore_auto_retry_wrong_env_request"
|
| 3 |
+
]
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/p2p.json
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_appstore.py::test_appstore_validate_attach_raw_response_to_the_exception",
|
| 3 |
+
"tests/test_appstore.py::test_appstore_validate_sandbox",
|
| 4 |
+
"tests/test_appstore.py::test_appstore_validate_simple",
|
| 5 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_raises_if_no_bundle_id",
|
| 6 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_sandbox",
|
| 7 |
+
"tests/test_appstore.py::test_appstore_validator_initiation_simple"
|
| 8 |
+
]
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/test.sh
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
git config --global --add safe.directory /workspace
|
| 6 |
+
mkdir -p /logs/verifier
|
| 7 |
+
git checkout 4c6d971b70b62e94d43944062c72590a8e1db313 -- tests/test_appstore.py || true
|
| 8 |
+
git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH'
|
| 9 |
+
diff --git a/tests/test_appstore.py b/tests/test_appstore.py
|
| 10 |
+
index b75ef19..4605e52 100644
|
| 11 |
+
--- a/tests/test_appstore.py
|
| 12 |
+
+++ b/tests/test_appstore.py
|
| 13 |
+
@@ -70,3 +70,29 @@ def test_appstore_validate_attach_raw_response_to_the_exception():
|
| 14 |
+
assert mock_method.call_args[0][0] == {'receipt-data': 'test-receipt', 'password': 'shared-secret'}
|
| 15 |
+
assert ex.raw_response is not None
|
| 16 |
+
assert ex.raw_response == raw_response
|
| 17 |
+
+
|
| 18 |
+
+
|
| 19 |
+
+def test_appstore_auto_retry_wrong_env_request():
|
| 20 |
+
+ validator = AppStoreValidator(bundle_id='test-bundle-id', sandbox=False, auto_retry_wrong_env_request=True)
|
| 21 |
+
+ assert validator is not None
|
| 22 |
+
+ assert not validator.sandbox
|
| 23 |
+
+ assert validator.auto_retry_wrong_env_request
|
| 24 |
+
+
|
| 25 |
+
+ raw_response = {'status': 21007, 'foo': 'bar'}
|
| 26 |
+
+ with pytest.raises(InAppPyValidationError):
|
| 27 |
+
+ with patch.object(AppStoreValidator, 'post_json', return_value=raw_response) as mock_method:
|
| 28 |
+
+ validator.validate(receipt='test-receipt', shared_secret='shared-secret')
|
| 29 |
+
+ assert mock_method.call_count == 1
|
| 30 |
+
+ assert validator.url == 'https://buy.itunes.apple.com/verifyReceipt'
|
| 31 |
+
+ assert mock_method.call_args[0][0] == {'receipt-data': 'test-receipt', 'password': 'shared-secret'}
|
| 32 |
+
+ assert validator.sandbox is True
|
| 33 |
+
+
|
| 34 |
+
+ raw_response = {'status': 21008, 'foo': 'bar'}
|
| 35 |
+
+ with pytest.raises(InAppPyValidationError):
|
| 36 |
+
+ with patch.object(AppStoreValidator, 'post_json', return_value=raw_response) as mock_method:
|
| 37 |
+
+ validator.validate(receipt='test-receipt', shared_secret='shared-secret')
|
| 38 |
+
+ assert validator.sandbox is False
|
| 39 |
+
+ assert mock_method.call_count == 1
|
| 40 |
+
+ assert validator.url == 'https://buy.itunes.apple.com/verifyReceipt'
|
| 41 |
+
+ assert mock_method.call_args[0][0] == {'receipt-data': 'test-receipt', 'password': 'shared-secret'}
|
| 42 |
+
+
|
| 43 |
+
|
| 44 |
+
EOF_R2E_TEST_PATCH
|
| 45 |
+
R2E_APPLY_RC=$?
|
| 46 |
+
if [ "$R2E_APPLY_RC" -ne 0 ]; then
|
| 47 |
+
echo "0.000000" > /logs/verifier/reward.txt
|
| 48 |
+
printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json
|
| 49 |
+
echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2
|
| 50 |
+
exit 0
|
| 51 |
+
fi
|
| 52 |
+
( python -m pytest -v tests/test_appstore.py ) > /logs/verifier/test_output.log 2>&1
|
| 53 |
+
TEST_EXIT_CODE=$?
|
| 54 |
+
cat /logs/verifier/test_output.log
|
| 55 |
+
python3 "$SCRIPT_DIR/verifier.py" --log /logs/verifier/test_output.log --f2p "$SCRIPT_DIR/f2p.json" --p2p "$SCRIPT_DIR/p2p.json" --test-cmds 'python -m pytest -v tests/test_appstore.py' --exit-code "$TEST_EXIT_CODE" --out-dir /logs/verifier || { [ "$TEST_EXIT_CODE" -eq 0 ] && echo "1.0" > /logs/verifier/reward.txt || echo "0.0" > /logs/verifier/reward.txt; }
|
| 56 |
+
git checkout 4c6d971b70b62e94d43944062c72590a8e1db313 -- tests/test_appstore.py || true
|
| 57 |
+
exit 0
|
heldout_pool/cx-lukas-salkauskas-x__InAppPy-5cbdd002e4eb/tests/verifier.py
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_runtime tasks (graded F2P/P2P reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. It is read as
|
| 5 |
+
source at generation time, base64-encoded, and embedded into
|
| 6 |
+
``tests/test.sh``. At run time the container decodes it back to a file
|
| 7 |
+
and invokes it after the test suite has run.
|
| 8 |
+
|
| 9 |
+
Why a graded reward instead of binary pass/fail
|
| 10 |
+
------------------------------------------------
|
| 11 |
+
SWE-bench resolution is binary: a patch "resolves" the issue iff ALL
|
| 12 |
+
FAIL_TO_PASS tests pass AND ALL PASS_TO_PASS tests still pass. That's
|
| 13 |
+
the right signal for an eval leaderboard, but a terrible gradient for
|
| 14 |
+
RL training — an agent that fixes 4 of 5 failing tests scores the same
|
| 15 |
+
0.0 as one that fixes nothing.
|
| 16 |
+
|
| 17 |
+
So this verifier emits BOTH:
|
| 18 |
+
* /logs/verifier/reward.txt — the GRADED scalar (training signal,
|
| 19 |
+
which Harbor reads): reward = f2p_rate * p2p_factor
|
| 20 |
+
* /logs/verifier/reward-details.json — carries the strict SWE-bench
|
| 21 |
+
``resolved`` bool (eval signal) PLUS the full breakdown.
|
| 22 |
+
|
| 23 |
+
Refs: SWE-bench (F2P/P2P semantics), SWE-RL / SWE-Gym (dense reward for
|
| 24 |
+
RL), UTBoost (weak-test coverage lets wrong patches pass — hence we
|
| 25 |
+
record p2p_count so consumers can judge regression-guard strength).
|
| 26 |
+
|
| 27 |
+
Scoring
|
| 28 |
+
-------
|
| 29 |
+
Given the baked FAIL_TO_PASS / PASS_TO_PASS test-name lists (computed by
|
| 30 |
+
the generation-time two-stage validation) and the agent-run test log:
|
| 31 |
+
|
| 32 |
+
f2p_rate = (# F2P tests now PASSED) / (# F2P tests)
|
| 33 |
+
p2p_rate = (# P2P tests still PASSED) / (# P2P tests) [1.0 if no P2P]
|
| 34 |
+
p2p_factor = p2p_rate # regressions scale the reward down
|
| 35 |
+
reward = f2p_rate * p2p_factor
|
| 36 |
+
resolved = (all F2P pass) AND (all P2P pass) # strict SWE-bench
|
| 37 |
+
|
| 38 |
+
Oracle invariant: the gold patch flips every F2P and keeps every P2P,
|
| 39 |
+
so f2p_rate=1.0, p2p_rate=1.0 -> reward=1.0 and resolved=True. This is
|
| 40 |
+
what the T3 oracle gate (reward == 1.0) relies on.
|
| 41 |
+
|
| 42 |
+
Graceful degradation: if the log can't be parsed into per-test
|
| 43 |
+
statuses (unrecognized runner output), fall back to the exit-code
|
| 44 |
+
reward (1.0 if the suite exited 0, else 0.0) and stamp
|
| 45 |
+
``parse_status="fallback_exitcode"`` — never crash, never silently
|
| 46 |
+
zero out a real fix.
|
| 47 |
+
|
| 48 |
+
Pure stdlib — uses only ``argparse``, ``json``, ``os``, ``re``, ``sys``.
|
| 49 |
+
The 4 per-runner parsers are condensed ports of
|
| 50 |
+
``repo2rlenv.log_parsers.*`` kept in lockstep via the unit tests under
|
| 51 |
+
``tests/test_pr_runtime_verifier.py``.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
from __future__ import annotations
|
| 55 |
+
|
| 56 |
+
import argparse
|
| 57 |
+
import json
|
| 58 |
+
import os
|
| 59 |
+
import re
|
| 60 |
+
import sys
|
| 61 |
+
|
| 62 |
+
# Canonical statuses. (Plain strings — no typing.Literal so the baked
|
| 63 |
+
# module stays import-light when decoded standalone in the container.)
|
| 64 |
+
PASSED = "PASSED"
|
| 65 |
+
FAILED = "FAILED"
|
| 66 |
+
SKIPPED = "SKIPPED"
|
| 67 |
+
ERROR = "ERROR"
|
| 68 |
+
|
| 69 |
+
# ---------------------------------------------------------------------------
|
| 70 |
+
# Per-runner log parsers (condensed ports of repo2rlenv.log_parsers.*)
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
|
| 73 |
+
_PYTEST_STATUSES = (PASSED, FAILED, SKIPPED, ERROR)
|
| 74 |
+
# Keep these patterns in sync with log_parsers/pytest_parser.py. This module
|
| 75 |
+
# also runs standalone inside task containers, without a repo2rlenv install.
|
| 76 |
+
_PYTEST_PROGRESS = (
|
| 77 |
+
r"\[\s*\d+%\]|\[\s*\d+\s*/\s*\d+\s*\]"
|
| 78 |
+
r"|\d+(?:\.\d+)?(?:us|ms|s)|\d+m \d+s|\d+h \d+m"
|
| 79 |
+
)
|
| 80 |
+
_PYTEST_VERBOSE_RE = re.compile(
|
| 81 |
+
r"^(?P<name>.+?(?:\[.*?\])?)\s+(?P<status>PASSED|FAILED|SKIPPED|ERROR)"
|
| 82 |
+
rf"(?:\s+\(.*\))?(?:\s+(?:{_PYTEST_PROGRESS}))?$"
|
| 83 |
+
)
|
| 84 |
+
_PYTEST_SUMMARY_NAME_RE = re.compile(r"^(?P<name>.+?(?:\[.*?\])?)(?: - .*)?$")
|
| 85 |
+
# pytest-xdist worker label, e.g. `[gw1] [ 20%] PASSED tests/foo.py::test_x`.
|
| 86 |
+
_PYTEST_XDIST_PREFIX_RE = re.compile(rf"^\[gw\d+\]\s+(?:(?:{_PYTEST_PROGRESS})\s+)?")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def parse_pytest(log: str) -> dict[str, str]:
|
| 90 |
+
"""{test_name -> status} from pytest output (verbose or summary)."""
|
| 91 |
+
out: dict[str, str] = {}
|
| 92 |
+
if not log:
|
| 93 |
+
return out
|
| 94 |
+
for raw in log.split("\n"):
|
| 95 |
+
line = raw.strip()
|
| 96 |
+
if not line:
|
| 97 |
+
continue
|
| 98 |
+
line = _PYTEST_XDIST_PREFIX_RE.sub("", line, count=1)
|
| 99 |
+
# Summary lines (STATUS first), preserving the full node ID.
|
| 100 |
+
leading = None
|
| 101 |
+
for st in _PYTEST_STATUSES:
|
| 102 |
+
if line.startswith(st + " ") or line == st:
|
| 103 |
+
leading = st
|
| 104 |
+
break
|
| 105 |
+
if leading is not None:
|
| 106 |
+
work = line[len(leading) :].strip()
|
| 107 |
+
if leading == SKIPPED and re.match(r"^\[\d+\](?:\s|$)", work):
|
| 108 |
+
# Folded skips report a file location, not a parametrized ID.
|
| 109 |
+
tokens = work.split(maxsplit=2)
|
| 110 |
+
if len(tokens) < 2:
|
| 111 |
+
continue
|
| 112 |
+
out[tokens[1]] = leading
|
| 113 |
+
elif m := _PYTEST_SUMMARY_NAME_RE.match(work):
|
| 114 |
+
out[m.group("name")] = leading
|
| 115 |
+
continue
|
| 116 |
+
# Verbose progress (NAME first, STATUS after)
|
| 117 |
+
# Filter non-test output before attempting the backtracking regex.
|
| 118 |
+
head = line.split(None, 1)[0]
|
| 119 |
+
if "::" not in head and not head.endswith(".py"):
|
| 120 |
+
continue
|
| 121 |
+
m = _PYTEST_VERBOSE_RE.match(line)
|
| 122 |
+
if m:
|
| 123 |
+
name = m.group("name")
|
| 124 |
+
if "::" in name or name.endswith(".py"):
|
| 125 |
+
out[name] = m.group("status")
|
| 126 |
+
return out
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
_GO_TEST_RE = re.compile(r"^\s*---\s+(?P<status>PASS|FAIL|SKIP):\s+(?P<name>\S+)")
|
| 130 |
+
_GO_STATUS = {"PASS": PASSED, "FAIL": FAILED, "SKIP": SKIPPED}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_go_test(log: str) -> dict[str, str]:
|
| 134 |
+
"""{test_name -> status} from `go test -v` output."""
|
| 135 |
+
out: dict[str, str] = {}
|
| 136 |
+
if not log:
|
| 137 |
+
return out
|
| 138 |
+
for raw in log.split("\n"):
|
| 139 |
+
m = _GO_TEST_RE.match(raw)
|
| 140 |
+
if m:
|
| 141 |
+
out[m.group("name")] = _GO_STATUS[m.group("status")]
|
| 142 |
+
return out
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Keep these patterns in sync with log_parsers/cargo_parser.py.
|
| 146 |
+
_CARGO_TEST_RE = re.compile(r"^test\s+(?P<name>\S.*?) \.\.\. (?P<status>ok|FAILED|ignored)\b")
|
| 147 |
+
_CARGO_MODE_RE = re.compile(r" - (?:should panic|compile fail|compile)$")
|
| 148 |
+
_CARGO_DOCTEST_RE = re.compile(r"^(?P<file>\S+) - (?:(?P<item>.+?) )?\(line \d+\)$")
|
| 149 |
+
_CARGO_STATUS = {"ok": PASSED, "FAILED": FAILED, "ignored": SKIPPED}
|
| 150 |
+
_CARGO_DOCTEST_RANK = {SKIPPED: 0, PASSED: 1, FAILED: 2}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def parse_cargo_test(log: str) -> dict[str, str]:
|
| 154 |
+
"""{test_name -> status} from `cargo test` output.
|
| 155 |
+
|
| 156 |
+
Test modes (` - should panic`) are dropped from names, and doctests are
|
| 157 |
+
keyed without their `(line N)` so line shifts don't change identity; the
|
| 158 |
+
worst status among an item's doctests wins.
|
| 159 |
+
"""
|
| 160 |
+
out: dict[str, str] = {}
|
| 161 |
+
if not log:
|
| 162 |
+
return out
|
| 163 |
+
for raw in log.split("\n"):
|
| 164 |
+
m = _CARGO_TEST_RE.match(raw)
|
| 165 |
+
if not m:
|
| 166 |
+
continue
|
| 167 |
+
name = _CARGO_MODE_RE.sub("", m.group("name")).rstrip()
|
| 168 |
+
status = _CARGO_STATUS[m.group("status")]
|
| 169 |
+
doctest = _CARGO_DOCTEST_RE.match(name)
|
| 170 |
+
if doctest:
|
| 171 |
+
item = doctest.group("item")
|
| 172 |
+
name = f"{doctest.group('file')} - {item}" if item else doctest.group("file")
|
| 173 |
+
if name in out and _CARGO_DOCTEST_RANK[out[name]] > _CARGO_DOCTEST_RANK[status]:
|
| 174 |
+
continue
|
| 175 |
+
out[name] = status
|
| 176 |
+
return out
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_JEST_FILE_RE = re.compile(r"^ ?(?:PASS|FAIL)\s+(?P<path>\S+\.(?:ts|tsx|js|jsx|mjs|cjs))\b")
|
| 180 |
+
_JEST_TEST_RE = re.compile(
|
| 181 |
+
r"^(?P<indent>\s*)(?P<glyph>✓|√|✕|×|✗|○|◯)\s+(?P<name>.+?)(?:\s+\(\d+(?:\.\d+)?\s*m?s\))?$"
|
| 182 |
+
)
|
| 183 |
+
_JEST_GLYPH = {
|
| 184 |
+
"✓": PASSED,
|
| 185 |
+
"√": PASSED,
|
| 186 |
+
"✕": FAILED,
|
| 187 |
+
"×": FAILED,
|
| 188 |
+
"✗": FAILED,
|
| 189 |
+
"○": SKIPPED,
|
| 190 |
+
"◯": SKIPPED,
|
| 191 |
+
}
|
| 192 |
+
# Keep these patterns in sync with log_parsers/jest_parser.py.
|
| 193 |
+
_ANSI_RE = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
|
| 194 |
+
_VITEST_MARKER_RE = re.compile(r"^\s*(?:RUN\s+v\d+\.\d+|Test Files\s+\d)", re.MULTILINE)
|
| 195 |
+
_VITEST_TEST_RE = re.compile(
|
| 196 |
+
r"^\s*(?P<glyph>[✓×↓□]) (?:\|(?P<project>[^|]+)\| | (?P<label>\S+) )?"
|
| 197 |
+
r"(?P<name>\S+ > .+?)(?P<duration> \d{1,9}ms)?"
|
| 198 |
+
r"(?: \(retry x\d{1,9}\))?(?: \(repeat x\d{1,9}\))?(?: \d{1,9} MB heap used)?(?: \[[^\[\]]*\])?$"
|
| 199 |
+
)
|
| 200 |
+
_VITEST_STATUS = {"✓": PASSED, "×": FAILED, "↓": SKIPPED, "□": SKIPPED}
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _parse_vitest(log: str) -> dict[str, str]:
|
| 204 |
+
"""{test_name -> status} from vitest `--reporter=verbose` lines only."""
|
| 205 |
+
out: dict[str, str] = {}
|
| 206 |
+
for raw in log.split("\n"):
|
| 207 |
+
m = _VITEST_TEST_RE.match(raw.rstrip())
|
| 208 |
+
if not m:
|
| 209 |
+
continue
|
| 210 |
+
glyph, name = m.group("glyph"), m.group("name")
|
| 211 |
+
if glyph in "↓□" and m.group("duration"):
|
| 212 |
+
name += m.group("duration")
|
| 213 |
+
project = m.group("project") or m.group("label")
|
| 214 |
+
out[f"|{project}| {name}" if project else name] = _VITEST_STATUS[glyph]
|
| 215 |
+
return out
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def parse_jest(log: str) -> dict[str, str]:
|
| 219 |
+
"""{test_name -> status} from Jest / Mocha / Vitest output."""
|
| 220 |
+
out: dict[str, str] = {}
|
| 221 |
+
if not log:
|
| 222 |
+
return out
|
| 223 |
+
log = _ANSI_RE.sub("", log)
|
| 224 |
+
if _VITEST_MARKER_RE.search(log):
|
| 225 |
+
return _parse_vitest(log)
|
| 226 |
+
current_file: str | None = None
|
| 227 |
+
describe_stack: list[tuple[int, str]] = []
|
| 228 |
+
last_test_indent: int | None = None
|
| 229 |
+
for raw in log.split("\n"):
|
| 230 |
+
line = raw.rstrip()
|
| 231 |
+
if not line:
|
| 232 |
+
continue
|
| 233 |
+
m = _JEST_FILE_RE.match(line)
|
| 234 |
+
if m:
|
| 235 |
+
current_file = m.group("path")
|
| 236 |
+
describe_stack = []
|
| 237 |
+
last_test_indent = None
|
| 238 |
+
continue
|
| 239 |
+
m = _JEST_TEST_RE.match(line)
|
| 240 |
+
if m:
|
| 241 |
+
indent = len(m.group("indent"))
|
| 242 |
+
name = re.sub(r"^(?:skipped|todo):\s*", "", m.group("name").strip())
|
| 243 |
+
describes = [d for ind, d in describe_stack if ind < indent]
|
| 244 |
+
parts = ([current_file] if current_file else []) + describes + [name]
|
| 245 |
+
out[" > ".join(parts)] = _JEST_GLYPH[m.group("glyph")]
|
| 246 |
+
last_test_indent = indent
|
| 247 |
+
continue
|
| 248 |
+
stripped = line.lstrip()
|
| 249 |
+
if not stripped or stripped.startswith(
|
| 250 |
+
("Tests:", "Test Suites:", "Snapshots:", "Time:", "Ran all", "●", "→", "✗:")
|
| 251 |
+
):
|
| 252 |
+
continue
|
| 253 |
+
indent_here = len(line) - len(stripped)
|
| 254 |
+
if current_file and (last_test_indent is None or indent_here < last_test_indent):
|
| 255 |
+
describe_stack = [(i, d) for i, d in describe_stack if i < indent_here]
|
| 256 |
+
describe_stack.append((indent_here, stripped))
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _detect_runner(test_cmds: str) -> str:
|
| 261 |
+
joined = test_cmds.lower()
|
| 262 |
+
if "pytest" in joined:
|
| 263 |
+
return "pytest"
|
| 264 |
+
if re.search(r"\bgo\s+test\b", joined):
|
| 265 |
+
return "go"
|
| 266 |
+
if re.search(r"\bcargo\s+test\b", joined):
|
| 267 |
+
return "cargo"
|
| 268 |
+
if any(k in joined for k in ("jest", "mocha", "vitest", "npm test", "yarn test", "pnpm test")):
|
| 269 |
+
return "jest"
|
| 270 |
+
return "unknown"
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def parse_logs(runner: str, log: str) -> dict[str, str]:
|
| 274 |
+
"""Dispatch to the right per-runner parser. Empty dict if unknown."""
|
| 275 |
+
if runner == "pytest":
|
| 276 |
+
return parse_pytest(log)
|
| 277 |
+
if runner == "go":
|
| 278 |
+
return parse_go_test(log)
|
| 279 |
+
if runner == "cargo":
|
| 280 |
+
return parse_cargo_test(log)
|
| 281 |
+
if runner == "jest":
|
| 282 |
+
return parse_jest(log)
|
| 283 |
+
return {}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
# ---------------------------------------------------------------------------
|
| 287 |
+
# Grading
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
def _has_go_parent(name: str, status_map: dict[str, str]) -> bool:
|
| 290 |
+
"""Return True if a Go test has an ancestor represented in the status map."""
|
| 291 |
+
parts = name.split("/")
|
| 292 |
+
|
| 293 |
+
for i in range(1, len(parts)):
|
| 294 |
+
parent = "/".join(parts[:i])
|
| 295 |
+
if status_map.get(parent) == FAILED:
|
| 296 |
+
return True
|
| 297 |
+
|
| 298 |
+
return False
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def grade(
|
| 302 |
+
fail_to_pass: list[str],
|
| 303 |
+
pass_to_pass: list[str],
|
| 304 |
+
status_map: dict[str, str],
|
| 305 |
+
runner: str | None = None,
|
| 306 |
+
) -> dict:
|
| 307 |
+
"""Compute the graded reward + strict resolved bool from a status map.
|
| 308 |
+
|
| 309 |
+
f2p_rate = (# F2P now PASSED) / (# F2P)
|
| 310 |
+
p2p_rate = (# P2P still PASSED) / (# P2P) [1.0 when no P2P]
|
| 311 |
+
reward = f2p_rate * p2p_rate (dense training signal)
|
| 312 |
+
resolved = all F2P pass AND all P2P pass (SWE-bench TRACKED resolution —
|
| 313 |
+
the gold patch always satisfies this, preserving the oracle
|
| 314 |
+
invariant)
|
| 315 |
+
|
| 316 |
+
Two distinct EVAL signals (see the audit's "tracked vs command resolved"):
|
| 317 |
+
* `resolved` — tracked resolution (above). Gold patch -> True.
|
| 318 |
+
* `command_resolved` — stricter: tracked resolution AND the selected test
|
| 319 |
+
command had NO failures outside F2P/P2P AND exit
|
| 320 |
+
code 0. Computed in main() where the exit code is
|
| 321 |
+
known. A benchmark that wants "the whole command
|
| 322 |
+
passed cleanly" gates on this; SWE-bench-style
|
| 323 |
+
scoring uses `resolved`.
|
| 324 |
+
|
| 325 |
+
`untracked_failed` are FAILED tests in the run that are neither F2P nor
|
| 326 |
+
P2P (e.g. always-failing/flaky tests pulled in by running a whole test
|
| 327 |
+
file). They don't change the graded `reward` or tracked `resolved`, but
|
| 328 |
+
they block `command_resolved` and are recorded for transparency.
|
| 329 |
+
"""
|
| 330 |
+
f2p_total = len(fail_to_pass)
|
| 331 |
+
p2p_total = len(pass_to_pass)
|
| 332 |
+
f2p_set = set(fail_to_pass)
|
| 333 |
+
p2p_set = set(pass_to_pass)
|
| 334 |
+
f2p_passed = sum(1 for t in fail_to_pass if status_map.get(t) == PASSED)
|
| 335 |
+
p2p_passed = sum(1 for t in pass_to_pass if status_map.get(t) == PASSED)
|
| 336 |
+
# Tests that should have stayed green but regressed (PASS->not-pass).
|
| 337 |
+
regressions = [t for t in pass_to_pass if status_map.get(t) != PASSED]
|
| 338 |
+
|
| 339 |
+
# FAILED tests outside the tracked sets — the selected command isn't clean.
|
| 340 |
+
if runner == "go":
|
| 341 |
+
failed_tests = {
|
| 342 |
+
t
|
| 343 |
+
for t, s in status_map.items()
|
| 344 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
untracked_failed = sorted(t for t in failed_tests if not _has_go_parent(t, status_map))
|
| 348 |
+
else:
|
| 349 |
+
untracked_failed = sorted(
|
| 350 |
+
t
|
| 351 |
+
for t, s in status_map.items()
|
| 352 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 353 |
+
)
|
| 354 |
+
|
| 355 |
+
f2p_rate = (f2p_passed / f2p_total) if f2p_total else 0.0
|
| 356 |
+
p2p_rate = (p2p_passed / p2p_total) if p2p_total else 1.0
|
| 357 |
+
reward = f2p_rate * p2p_rate
|
| 358 |
+
resolved = f2p_total > 0 and f2p_passed == f2p_total and p2p_passed == p2p_total
|
| 359 |
+
|
| 360 |
+
return {
|
| 361 |
+
"reward": round(max(0.0, min(1.0, reward)), 6),
|
| 362 |
+
"resolved": resolved,
|
| 363 |
+
"f2p_total": f2p_total,
|
| 364 |
+
"f2p_passed": f2p_passed,
|
| 365 |
+
"f2p_rate": round(f2p_rate, 6),
|
| 366 |
+
"p2p_total": p2p_total,
|
| 367 |
+
"p2p_passed": p2p_passed,
|
| 368 |
+
"p2p_rate": round(p2p_rate, 6),
|
| 369 |
+
"regressions": sorted(regressions),
|
| 370 |
+
"untracked_failed_count": len(untracked_failed),
|
| 371 |
+
"untracked_failed": untracked_failed[:20], # cap the list
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
# ---------------------------------------------------------------------------
|
| 376 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 377 |
+
# ---------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _read_json_list(path: str) -> list[str]:
|
| 381 |
+
try:
|
| 382 |
+
with open(path, encoding="utf-8") as f:
|
| 383 |
+
data = json.load(f)
|
| 384 |
+
return [str(x) for x in data] if isinstance(data, list) else []
|
| 385 |
+
except (OSError, ValueError):
|
| 386 |
+
return []
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def _read_text(path: str) -> str:
|
| 390 |
+
try:
|
| 391 |
+
with open(path, encoding="utf-8") as f:
|
| 392 |
+
return f.read()
|
| 393 |
+
except (OSError, UnicodeDecodeError):
|
| 394 |
+
return ""
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def main(argv: list[str] | None = None) -> int:
|
| 398 |
+
p = argparse.ArgumentParser(description="pr_runtime graded F2P/P2P verifier")
|
| 399 |
+
p.add_argument("--log", required=True, help="captured test-run log file")
|
| 400 |
+
p.add_argument("--f2p", required=True, help="JSON file: FAIL_TO_PASS test names")
|
| 401 |
+
p.add_argument("--p2p", required=True, help="JSON file: PASS_TO_PASS test names")
|
| 402 |
+
p.add_argument("--runner", default="", help="pytest|go|cargo|jest (else auto-detect)")
|
| 403 |
+
p.add_argument("--test-cmds", default="", help="test command string (runner auto-detect)")
|
| 404 |
+
p.add_argument("--exit-code", type=int, default=1, help="test suite exit code (fallback)")
|
| 405 |
+
p.add_argument("--out-dir", default="/logs/verifier", help="where to write reward.{txt,json}")
|
| 406 |
+
args = p.parse_args(argv)
|
| 407 |
+
|
| 408 |
+
log = _read_text(args.log)
|
| 409 |
+
f2p = _read_json_list(args.f2p)
|
| 410 |
+
p2p = _read_json_list(args.p2p)
|
| 411 |
+
runner = args.runner.strip() or _detect_runner(args.test_cmds)
|
| 412 |
+
|
| 413 |
+
status_map = parse_logs(runner, log)
|
| 414 |
+
|
| 415 |
+
if not status_map:
|
| 416 |
+
# Unparseable runner output → fall back to the binary exit-code reward
|
| 417 |
+
# (a coarse TRAINING signal) so we never silently zero a real fix on an
|
| 418 |
+
# unrecognized format. But `resolved` is the strict EVAL signal: without
|
| 419 |
+
# parsed per-test status we have NO evidence the declared FAIL_TO_PASS
|
| 420 |
+
# tests passed, so when an F2P oracle exists we must NOT claim resolved.
|
| 421 |
+
# (resolved stays exit-code-based only when there's no declared oracle,
|
| 422 |
+
# e.g. --skip-validation.)
|
| 423 |
+
reward = 1.0 if args.exit_code == 0 else 0.0
|
| 424 |
+
has_oracle = len(f2p) > 0
|
| 425 |
+
resolved = (args.exit_code == 0) and not has_oracle
|
| 426 |
+
breakdown = {
|
| 427 |
+
"reward": reward,
|
| 428 |
+
"resolved": resolved,
|
| 429 |
+
"command_resolved": bool(resolved and args.exit_code == 0),
|
| 430 |
+
"parse_status": "fallback_exitcode",
|
| 431 |
+
"eval_trustworthy": not has_oracle,
|
| 432 |
+
"runner": runner,
|
| 433 |
+
"f2p_total": len(f2p),
|
| 434 |
+
"p2p_total": len(p2p),
|
| 435 |
+
"exit_code": args.exit_code,
|
| 436 |
+
}
|
| 437 |
+
else:
|
| 438 |
+
breakdown = grade(f2p, p2p, status_map, runner)
|
| 439 |
+
breakdown["parse_status"] = "ok"
|
| 440 |
+
breakdown["runner"] = runner
|
| 441 |
+
breakdown["tests_parsed"] = len(status_map)
|
| 442 |
+
breakdown["exit_code"] = args.exit_code
|
| 443 |
+
# Strict eval signal: tracked resolution AND a clean command (no
|
| 444 |
+
# untracked failures, exit code 0). Benchmarks wanting "the whole test
|
| 445 |
+
# command passed" gate on this; SWE-bench-style scoring uses `resolved`.
|
| 446 |
+
breakdown["command_resolved"] = bool(
|
| 447 |
+
breakdown["resolved"]
|
| 448 |
+
and breakdown["untracked_failed_count"] == 0
|
| 449 |
+
and args.exit_code == 0
|
| 450 |
+
)
|
| 451 |
+
reward = breakdown["reward"]
|
| 452 |
+
|
| 453 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 454 |
+
with open(os.path.join(args.out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 455 |
+
f.write(f"{reward:.6f}\n")
|
| 456 |
+
with open(os.path.join(args.out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 457 |
+
json.dump(breakdown, f, indent=2)
|
| 458 |
+
|
| 459 |
+
print(json.dumps(breakdown, indent=2))
|
| 460 |
+
return 0
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
sys.exit(main())
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
__all__ = [
|
| 468 |
+
"grade",
|
| 469 |
+
"main",
|
| 470 |
+
"parse_cargo_test",
|
| 471 |
+
"parse_go_test",
|
| 472 |
+
"parse_jest",
|
| 473 |
+
"parse_logs",
|
| 474 |
+
"parse_pytest",
|
| 475 |
+
]
|
heldout_pool/frostming__marko-7b31460c08f9/environment/Dockerfile
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_runtime
|
| 2 |
+
FROM local/frostming__marko
|
| 3 |
+
WORKDIR /workspace
|
| 4 |
+
# Defensive: ensure git is on PATH at build time. Bootstrap base
|
| 5 |
+
# images vary — some (Python slim) don't ship git; some agents
|
| 6 |
+
# install it; others don't. Re-installing is a no-op when already
|
| 7 |
+
# present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine).
|
| 8 |
+
# Install git + ca-certificates. Minimal images (node:alpine) ship
|
| 9 |
+
# without CA certs, so HTTPS git fetch fails verification.
|
| 10 |
+
RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \
|
| 11 |
+
(apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 13 |
+
(apk add --no-cache git ca-certificates && update-ca-certificates) || true
|
| 14 |
+
# Defensive: the graded F2P/P2P verifier is Python.
|
| 15 |
+
# Language-specific bootstrap images (Go/Rust/Node) may not
|
| 16 |
+
# ship python3 — install it so test.sh can score F2P/P2P. No-op when
|
| 17 |
+
# python3 is already present (every Python-repo image has it).
|
| 18 |
+
RUN command -v python3 >/dev/null 2>&1 || \
|
| 19 |
+
(apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 21 |
+
apk add --no-cache python3 || true
|
| 22 |
+
# Position the working tree at the PR's base commit so subsequent
|
| 23 |
+
# model-patch applications align with the line context the patch
|
| 24 |
+
# was authored against. The fetch is a no-op if the commit is
|
| 25 |
+
# already in the shallow clone.
|
| 26 |
+
RUN git config --global --add safe.directory /workspace \
|
| 27 |
+
&& git fetch --depth 1 origin 0a870ce8485cc2067f077f8485bccf9f0aba05ed 2>/dev/null \
|
| 28 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 29 |
+
RUN git reset --hard 0a870ce8485cc2067f077f8485bccf9f0aba05ed && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache
|
| 30 |
+
RUN git checkout -q -B base 0a870ce8485cc2067f077f8485bccf9f0aba05ed \
|
| 31 |
+
&& git remote remove origin 2>/dev/null || true
|
| 32 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 33 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 34 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 35 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 36 |
+
&& git gc --prune=now 2>/dev/null || true
|
heldout_pool/frostming__marko-7b31460c08f9/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv: anti-contamination egress guard.
|
| 2 |
+
# Blackholes the hosts that serve this repo's published fix and hidden
|
| 3 |
+
# tests, so an agent cannot fetch the answer (pip download / git fetch /
|
| 4 |
+
# WebFetch against these fail). General internet stays up so the agent
|
| 5 |
+
# can install itself and reach its model API. See pipelines/_env_guard.py.
|
| 6 |
+
services:
|
| 7 |
+
main:
|
| 8 |
+
extra_hosts:
|
| 9 |
+
- "pypi.org:0.0.0.0"
|
| 10 |
+
- "pypi.python.org:0.0.0.0"
|
| 11 |
+
- "files.pythonhosted.org:0.0.0.0"
|
| 12 |
+
- "github.com:0.0.0.0"
|
| 13 |
+
- "api.github.com:0.0.0.0"
|
| 14 |
+
- "raw.githubusercontent.com:0.0.0.0"
|
| 15 |
+
- "codeload.github.com:0.0.0.0"
|
| 16 |
+
- "objects.githubusercontent.com:0.0.0.0"
|
heldout_pool/frostming__marko-7b31460c08f9/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Strikethrough formatting is not applied correctly when nested with other formatting
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
When text includes strikethrough formatting nested with other inline formatting (e.g., italic or bold), the strikethrough is sometimes ignored or rendered incorrectly. For instance, `~~*italic text*~~` might display as only *italic text* without the strikethrough. The expected behavior is for the strikethrough to be applied, taking precedence over the nested formatting.
|
| 7 |
+
|
| 8 |
+
## Task
|
| 9 |
+
|
| 10 |
+
Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit `0a870ce8485c` and running the modified tests.
|
heldout_pool/frostming__marko-7b31460c08f9/solution/patch.diff
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/marko/ext/gfm/elements.py b/marko/ext/gfm/elements.py
|
| 2 |
+
index ee81cc6..f2b0886 100644
|
| 3 |
+
--- a/marko/ext/gfm/elements.py
|
| 4 |
+
+++ b/marko/ext/gfm/elements.py
|
| 5 |
+
@@ -35,7 +35,7 @@ class InlineHTML(inline.InlineHTML):
|
| 6 |
+
class Strikethrough(inline.InlineElement):
|
| 7 |
+
|
| 8 |
+
pattern = re.compile(r"~~([^~]+)~~")
|
| 9 |
+
- priority = 4
|
| 10 |
+
+ priority = 5
|
| 11 |
+
parse_children = True
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
diff --git a/noxfile.py b/noxfile.py
|
| 15 |
+
index e7f0ea1..a5047e9 100644
|
| 16 |
+
--- a/noxfile.py
|
| 17 |
+
+++ b/noxfile.py
|
| 18 |
+
@@ -5,7 +5,7 @@ import nox
|
| 19 |
+
os.environ.update(PDM_IGNORE_SAVED_PYTHON="1")
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
-@nox.session(python=["3.6", "3.8", "3.9", "3.10"])
|
| 23 |
+
+@nox.session(python=["3.6", "3.8", "3.9", "3.10", "3.11"])
|
| 24 |
+
def tests(session):
|
| 25 |
+
session.run("pdm", "install", "-d", external=True)
|
| 26 |
+
session.run("pytest", "tests/")
|
heldout_pool/frostming__marko-7b31460c08f9/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
heldout_pool/frostming__marko-7b31460c08f9/task.toml
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "commit-runtime/frostming__marko-7b31460c08f9"
|
| 5 |
+
description = "Make strikethrough precedence the default; add strikethrough tests (#136)"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "trivial"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"marko",
|
| 12 |
+
"commit_runtime",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "commit_runtime"
|
| 17 |
+
pipeline_version = "0.8.3"
|
| 18 |
+
repo = "frostming/marko"
|
| 19 |
+
ref = "0a870ce8485cc2067f077f8485bccf9f0aba05ed"
|
| 20 |
+
reference = "https://github.com/frostming/marko/commit/7b31460c08f913bf67bb24464c26c606b8739e3f"
|
| 21 |
+
source_access = "public"
|
| 22 |
+
built_at = "2026-09-24T13:20:02.080635+00:00"
|
| 23 |
+
synthesis_llm = "gemini/gemini-2.5-flash"
|
| 24 |
+
reward_kinds = [
|
| 25 |
+
"test_execution",
|
| 26 |
+
"diff_similarity",
|
| 27 |
+
]
|
| 28 |
+
spec_version = "0.2.0"
|
| 29 |
+
content_hash = "sha256:e7060ed0277e6447f079f1dc783b8d1eeabb1e0aae6a5f3ddc50312e0238006e"
|
| 30 |
+
|
| 31 |
+
[metadata.repo2env.commit_runtime]
|
| 32 |
+
commit_sha = "7b31460c08f913bf67bb24464c26c606b8739e3f"
|
| 33 |
+
parent_sha = "0a870ce8485cc2067f077f8485bccf9f0aba05ed"
|
| 34 |
+
authored_at = "2023-01-28T02:43:41-05:00"
|
| 35 |
+
author_email = "github@kevinmgranger.me"
|
| 36 |
+
subject = "fix: Make strikethrough precedence the default; add strikethrough tests (#136)"
|
| 37 |
+
fail_to_pass = [
|
| 38 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_link",
|
| 39 |
+
]
|
| 40 |
+
pass_to_pass = [
|
| 41 |
+
"tests/test_ext.py::TestCodeHilite::test_codehilite_options",
|
| 42 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block",
|
| 43 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block_with_extra",
|
| 44 |
+
"tests/test_ext.py::TestCodeHilite::test_render_fenced_code",
|
| 45 |
+
"tests/test_ext.py::TestFootnote::test_footnote",
|
| 46 |
+
"tests/test_ext.py::TestFootnote::test_non_footnote",
|
| 47 |
+
"tests/test_ext.py::TestGFM::test_gfm_autolink",
|
| 48 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_inside_link",
|
| 49 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_spec_new_paragraph",
|
| 50 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_spec_standard",
|
| 51 |
+
"tests/test_ext.py::TestPangu::test_chinese_punctuations",
|
| 52 |
+
"tests/test_ext.py::TestPangu::test_render_pangu",
|
| 53 |
+
]
|
| 54 |
+
validation_status = "verified"
|
| 55 |
+
bootstrap_image = "local-venv:frostming__marko"
|
| 56 |
+
instruction_synthesized = true
|
| 57 |
+
llm_cost_usd = 0.007009
|
| 58 |
+
|
| 59 |
+
[metadata.repo2env.reward_calibration]
|
| 60 |
+
f2p_count = 1
|
| 61 |
+
p2p_count = 12
|
| 62 |
+
source_files = 2
|
| 63 |
+
loc_changed = 4
|
| 64 |
+
difficulty = "trivial"
|
| 65 |
+
|
| 66 |
+
[metadata.repo2env.evaluation]
|
| 67 |
+
schema_version = "1"
|
| 68 |
+
status = "unverified"
|
| 69 |
+
stage = "generation"
|
| 70 |
+
reason_codes = [
|
| 71 |
+
"validation_not_run",
|
| 72 |
+
]
|
| 73 |
+
detail = "Generated task; validation has not been established."
|
| 74 |
+
provenance = "unknown"
|
| 75 |
+
evidence = []
|
| 76 |
+
|
| 77 |
+
[metadata.repo2env.reproducibility]
|
| 78 |
+
mode = "local_only"
|
| 79 |
+
image_ref = "local/frostming__marko"
|
| 80 |
+
image_tag = "local/frostming__marko"
|
| 81 |
+
image_visibility = "private"
|
| 82 |
+
|
| 83 |
+
[agent]
|
| 84 |
+
timeout_sec = 1800.0
|
| 85 |
+
|
| 86 |
+
[verifier]
|
| 87 |
+
timeout_sec = 300.0
|
heldout_pool/frostming__marko-7b31460c08f9/tests/f2p.json
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_link"
|
| 3 |
+
]
|
heldout_pool/frostming__marko-7b31460c08f9/tests/p2p.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_ext.py::TestCodeHilite::test_codehilite_options",
|
| 3 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block",
|
| 4 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block_with_extra",
|
| 5 |
+
"tests/test_ext.py::TestCodeHilite::test_render_fenced_code",
|
| 6 |
+
"tests/test_ext.py::TestFootnote::test_footnote",
|
| 7 |
+
"tests/test_ext.py::TestFootnote::test_non_footnote",
|
| 8 |
+
"tests/test_ext.py::TestGFM::test_gfm_autolink",
|
| 9 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_inside_link",
|
| 10 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_spec_new_paragraph",
|
| 11 |
+
"tests/test_ext.py::TestGFM::test_strikethrough_spec_standard",
|
| 12 |
+
"tests/test_ext.py::TestPangu::test_chinese_punctuations",
|
| 13 |
+
"tests/test_ext.py::TestPangu::test_render_pangu"
|
| 14 |
+
]
|
heldout_pool/frostming__marko-7b31460c08f9/tests/test.sh
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
git config --global --add safe.directory /workspace
|
| 6 |
+
mkdir -p /logs/verifier
|
| 7 |
+
git checkout 0a870ce8485cc2067f077f8485bccf9f0aba05ed -- tests/test_ext.py || true
|
| 8 |
+
git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH'
|
| 9 |
+
diff --git a/tests/test_ext.py b/tests/test_ext.py
|
| 10 |
+
index a239883..0ed6382 100644
|
| 11 |
+
--- a/tests/test_ext.py
|
| 12 |
+
+++ b/tests/test_ext.py
|
| 13 |
+
@@ -1,5 +1,7 @@
|
| 14 |
+
#! -*- coding: utf-8 -*-
|
| 15 |
+
|
| 16 |
+
+import pytest
|
| 17 |
+
+
|
| 18 |
+
from marko import Markdown
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
@@ -76,6 +78,39 @@ class TestGFM:
|
| 22 |
+
def setup_method(self):
|
| 23 |
+
self.markdown = Markdown(extensions=["gfm"])
|
| 24 |
+
|
| 25 |
+
+ def test_strikethrough_link(self):
|
| 26 |
+
+ content = "~~[google](https://google.com)~~"
|
| 27 |
+
+ assert (
|
| 28 |
+
+ self.markdown(content).strip()
|
| 29 |
+
+ == '<p><del><a href="https://google.com">google</a></del></p>'
|
| 30 |
+
+ )
|
| 31 |
+
+
|
| 32 |
+
+ def test_strikethrough_inside_link(self):
|
| 33 |
+
+ content = "[~~google~~](https://google.com)"
|
| 34 |
+
+ assert (
|
| 35 |
+
+ self.markdown(content).strip()
|
| 36 |
+
+ == '<p><a href="https://google.com"><del>google</del></a></p>'
|
| 37 |
+
+ )
|
| 38 |
+
+
|
| 39 |
+
+ def test_strikethrough_spec_standard(self):
|
| 40 |
+
+ content = "~~Hi~~ Hello, world!"
|
| 41 |
+
+ expected = "<p><del>Hi</del> Hello, world!</p>"
|
| 42 |
+
+ assert self.markdown(content).strip() == expected
|
| 43 |
+
+
|
| 44 |
+
+ def test_strikethrough_spec_new_paragraph(self):
|
| 45 |
+
+ content = """This ~~has a
|
| 46 |
+
+
|
| 47 |
+
+new paragraph~~."""
|
| 48 |
+
+ expected = """<p>This ~~has a</p>
|
| 49 |
+
+<p>new paragraph~~.</p>"""
|
| 50 |
+
+ assert self.markdown(content).strip() == expected
|
| 51 |
+
+
|
| 52 |
+
+ @pytest.mark.skip(reason="existing GFM won't-strike bug")
|
| 53 |
+
+ def test_strikethrough_spec_wont_strike(self):
|
| 54 |
+
+ content = "This will ~~~not~~~ strike."
|
| 55 |
+
+ expected = "<p>This will ~~~not~~~ strike.</p>"
|
| 56 |
+
+ assert self.markdown(content).strip() == expected
|
| 57 |
+
+
|
| 58 |
+
def test_gfm_autolink(self):
|
| 59 |
+
content = "地址:https://google.com"
|
| 60 |
+
assert (
|
| 61 |
+
|
| 62 |
+
EOF_R2E_TEST_PATCH
|
| 63 |
+
R2E_APPLY_RC=$?
|
| 64 |
+
if [ "$R2E_APPLY_RC" -ne 0 ]; then
|
| 65 |
+
echo "0.000000" > /logs/verifier/reward.txt
|
| 66 |
+
printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json
|
| 67 |
+
echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2
|
| 68 |
+
exit 0
|
| 69 |
+
fi
|
| 70 |
+
( python -m pytest -v tests/test_ext.py ) > /logs/verifier/test_output.log 2>&1
|
| 71 |
+
TEST_EXIT_CODE=$?
|
| 72 |
+
cat /logs/verifier/test_output.log
|
| 73 |
+
python3 "$SCRIPT_DIR/verifier.py" --log /logs/verifier/test_output.log --f2p "$SCRIPT_DIR/f2p.json" --p2p "$SCRIPT_DIR/p2p.json" --test-cmds 'python -m pytest -v tests/test_ext.py' --exit-code "$TEST_EXIT_CODE" --out-dir /logs/verifier || { [ "$TEST_EXIT_CODE" -eq 0 ] && echo "1.0" > /logs/verifier/reward.txt || echo "0.0" > /logs/verifier/reward.txt; }
|
| 74 |
+
git checkout 0a870ce8485cc2067f077f8485bccf9f0aba05ed -- tests/test_ext.py || true
|
| 75 |
+
exit 0
|
heldout_pool/frostming__marko-7b31460c08f9/tests/verifier.py
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_runtime tasks (graded F2P/P2P reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. It is read as
|
| 5 |
+
source at generation time, base64-encoded, and embedded into
|
| 6 |
+
``tests/test.sh``. At run time the container decodes it back to a file
|
| 7 |
+
and invokes it after the test suite has run.
|
| 8 |
+
|
| 9 |
+
Why a graded reward instead of binary pass/fail
|
| 10 |
+
------------------------------------------------
|
| 11 |
+
SWE-bench resolution is binary: a patch "resolves" the issue iff ALL
|
| 12 |
+
FAIL_TO_PASS tests pass AND ALL PASS_TO_PASS tests still pass. That's
|
| 13 |
+
the right signal for an eval leaderboard, but a terrible gradient for
|
| 14 |
+
RL training — an agent that fixes 4 of 5 failing tests scores the same
|
| 15 |
+
0.0 as one that fixes nothing.
|
| 16 |
+
|
| 17 |
+
So this verifier emits BOTH:
|
| 18 |
+
* /logs/verifier/reward.txt — the GRADED scalar (training signal,
|
| 19 |
+
which Harbor reads): reward = f2p_rate * p2p_factor
|
| 20 |
+
* /logs/verifier/reward-details.json — carries the strict SWE-bench
|
| 21 |
+
``resolved`` bool (eval signal) PLUS the full breakdown.
|
| 22 |
+
|
| 23 |
+
Refs: SWE-bench (F2P/P2P semantics), SWE-RL / SWE-Gym (dense reward for
|
| 24 |
+
RL), UTBoost (weak-test coverage lets wrong patches pass — hence we
|
| 25 |
+
record p2p_count so consumers can judge regression-guard strength).
|
| 26 |
+
|
| 27 |
+
Scoring
|
| 28 |
+
-------
|
| 29 |
+
Given the baked FAIL_TO_PASS / PASS_TO_PASS test-name lists (computed by
|
| 30 |
+
the generation-time two-stage validation) and the agent-run test log:
|
| 31 |
+
|
| 32 |
+
f2p_rate = (# F2P tests now PASSED) / (# F2P tests)
|
| 33 |
+
p2p_rate = (# P2P tests still PASSED) / (# P2P tests) [1.0 if no P2P]
|
| 34 |
+
p2p_factor = p2p_rate # regressions scale the reward down
|
| 35 |
+
reward = f2p_rate * p2p_factor
|
| 36 |
+
resolved = (all F2P pass) AND (all P2P pass) # strict SWE-bench
|
| 37 |
+
|
| 38 |
+
Oracle invariant: the gold patch flips every F2P and keeps every P2P,
|
| 39 |
+
so f2p_rate=1.0, p2p_rate=1.0 -> reward=1.0 and resolved=True. This is
|
| 40 |
+
what the T3 oracle gate (reward == 1.0) relies on.
|
| 41 |
+
|
| 42 |
+
Graceful degradation: if the log can't be parsed into per-test
|
| 43 |
+
statuses (unrecognized runner output), fall back to the exit-code
|
| 44 |
+
reward (1.0 if the suite exited 0, else 0.0) and stamp
|
| 45 |
+
``parse_status="fallback_exitcode"`` — never crash, never silently
|
| 46 |
+
zero out a real fix.
|
| 47 |
+
|
| 48 |
+
Pure stdlib — uses only ``argparse``, ``json``, ``os``, ``re``, ``sys``.
|
| 49 |
+
The 4 per-runner parsers are condensed ports of
|
| 50 |
+
``repo2rlenv.log_parsers.*`` kept in lockstep via the unit tests under
|
| 51 |
+
``tests/test_pr_runtime_verifier.py``.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
from __future__ import annotations
|
| 55 |
+
|
| 56 |
+
import argparse
|
| 57 |
+
import json
|
| 58 |
+
import os
|
| 59 |
+
import re
|
| 60 |
+
import sys
|
| 61 |
+
|
| 62 |
+
# Canonical statuses. (Plain strings — no typing.Literal so the baked
|
| 63 |
+
# module stays import-light when decoded standalone in the container.)
|
| 64 |
+
PASSED = "PASSED"
|
| 65 |
+
FAILED = "FAILED"
|
| 66 |
+
SKIPPED = "SKIPPED"
|
| 67 |
+
ERROR = "ERROR"
|
| 68 |
+
|
| 69 |
+
# ---------------------------------------------------------------------------
|
| 70 |
+
# Per-runner log parsers (condensed ports of repo2rlenv.log_parsers.*)
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
|
| 73 |
+
_PYTEST_STATUSES = (PASSED, FAILED, SKIPPED, ERROR)
|
| 74 |
+
# Keep these patterns in sync with log_parsers/pytest_parser.py. This module
|
| 75 |
+
# also runs standalone inside task containers, without a repo2rlenv install.
|
| 76 |
+
_PYTEST_PROGRESS = (
|
| 77 |
+
r"\[\s*\d+%\]|\[\s*\d+\s*/\s*\d+\s*\]"
|
| 78 |
+
r"|\d+(?:\.\d+)?(?:us|ms|s)|\d+m \d+s|\d+h \d+m"
|
| 79 |
+
)
|
| 80 |
+
_PYTEST_VERBOSE_RE = re.compile(
|
| 81 |
+
r"^(?P<name>.+?(?:\[.*?\])?)\s+(?P<status>PASSED|FAILED|SKIPPED|ERROR)"
|
| 82 |
+
rf"(?:\s+\(.*\))?(?:\s+(?:{_PYTEST_PROGRESS}))?$"
|
| 83 |
+
)
|
| 84 |
+
_PYTEST_SUMMARY_NAME_RE = re.compile(r"^(?P<name>.+?(?:\[.*?\])?)(?: - .*)?$")
|
| 85 |
+
# pytest-xdist worker label, e.g. `[gw1] [ 20%] PASSED tests/foo.py::test_x`.
|
| 86 |
+
_PYTEST_XDIST_PREFIX_RE = re.compile(rf"^\[gw\d+\]\s+(?:(?:{_PYTEST_PROGRESS})\s+)?")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def parse_pytest(log: str) -> dict[str, str]:
|
| 90 |
+
"""{test_name -> status} from pytest output (verbose or summary)."""
|
| 91 |
+
out: dict[str, str] = {}
|
| 92 |
+
if not log:
|
| 93 |
+
return out
|
| 94 |
+
for raw in log.split("\n"):
|
| 95 |
+
line = raw.strip()
|
| 96 |
+
if not line:
|
| 97 |
+
continue
|
| 98 |
+
line = _PYTEST_XDIST_PREFIX_RE.sub("", line, count=1)
|
| 99 |
+
# Summary lines (STATUS first), preserving the full node ID.
|
| 100 |
+
leading = None
|
| 101 |
+
for st in _PYTEST_STATUSES:
|
| 102 |
+
if line.startswith(st + " ") or line == st:
|
| 103 |
+
leading = st
|
| 104 |
+
break
|
| 105 |
+
if leading is not None:
|
| 106 |
+
work = line[len(leading) :].strip()
|
| 107 |
+
if leading == SKIPPED and re.match(r"^\[\d+\](?:\s|$)", work):
|
| 108 |
+
# Folded skips report a file location, not a parametrized ID.
|
| 109 |
+
tokens = work.split(maxsplit=2)
|
| 110 |
+
if len(tokens) < 2:
|
| 111 |
+
continue
|
| 112 |
+
out[tokens[1]] = leading
|
| 113 |
+
elif m := _PYTEST_SUMMARY_NAME_RE.match(work):
|
| 114 |
+
out[m.group("name")] = leading
|
| 115 |
+
continue
|
| 116 |
+
# Verbose progress (NAME first, STATUS after)
|
| 117 |
+
# Filter non-test output before attempting the backtracking regex.
|
| 118 |
+
head = line.split(None, 1)[0]
|
| 119 |
+
if "::" not in head and not head.endswith(".py"):
|
| 120 |
+
continue
|
| 121 |
+
m = _PYTEST_VERBOSE_RE.match(line)
|
| 122 |
+
if m:
|
| 123 |
+
name = m.group("name")
|
| 124 |
+
if "::" in name or name.endswith(".py"):
|
| 125 |
+
out[name] = m.group("status")
|
| 126 |
+
return out
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
_GO_TEST_RE = re.compile(r"^\s*---\s+(?P<status>PASS|FAIL|SKIP):\s+(?P<name>\S+)")
|
| 130 |
+
_GO_STATUS = {"PASS": PASSED, "FAIL": FAILED, "SKIP": SKIPPED}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_go_test(log: str) -> dict[str, str]:
|
| 134 |
+
"""{test_name -> status} from `go test -v` output."""
|
| 135 |
+
out: dict[str, str] = {}
|
| 136 |
+
if not log:
|
| 137 |
+
return out
|
| 138 |
+
for raw in log.split("\n"):
|
| 139 |
+
m = _GO_TEST_RE.match(raw)
|
| 140 |
+
if m:
|
| 141 |
+
out[m.group("name")] = _GO_STATUS[m.group("status")]
|
| 142 |
+
return out
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Keep these patterns in sync with log_parsers/cargo_parser.py.
|
| 146 |
+
_CARGO_TEST_RE = re.compile(r"^test\s+(?P<name>\S.*?) \.\.\. (?P<status>ok|FAILED|ignored)\b")
|
| 147 |
+
_CARGO_MODE_RE = re.compile(r" - (?:should panic|compile fail|compile)$")
|
| 148 |
+
_CARGO_DOCTEST_RE = re.compile(r"^(?P<file>\S+) - (?:(?P<item>.+?) )?\(line \d+\)$")
|
| 149 |
+
_CARGO_STATUS = {"ok": PASSED, "FAILED": FAILED, "ignored": SKIPPED}
|
| 150 |
+
_CARGO_DOCTEST_RANK = {SKIPPED: 0, PASSED: 1, FAILED: 2}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def parse_cargo_test(log: str) -> dict[str, str]:
|
| 154 |
+
"""{test_name -> status} from `cargo test` output.
|
| 155 |
+
|
| 156 |
+
Test modes (` - should panic`) are dropped from names, and doctests are
|
| 157 |
+
keyed without their `(line N)` so line shifts don't change identity; the
|
| 158 |
+
worst status among an item's doctests wins.
|
| 159 |
+
"""
|
| 160 |
+
out: dict[str, str] = {}
|
| 161 |
+
if not log:
|
| 162 |
+
return out
|
| 163 |
+
for raw in log.split("\n"):
|
| 164 |
+
m = _CARGO_TEST_RE.match(raw)
|
| 165 |
+
if not m:
|
| 166 |
+
continue
|
| 167 |
+
name = _CARGO_MODE_RE.sub("", m.group("name")).rstrip()
|
| 168 |
+
status = _CARGO_STATUS[m.group("status")]
|
| 169 |
+
doctest = _CARGO_DOCTEST_RE.match(name)
|
| 170 |
+
if doctest:
|
| 171 |
+
item = doctest.group("item")
|
| 172 |
+
name = f"{doctest.group('file')} - {item}" if item else doctest.group("file")
|
| 173 |
+
if name in out and _CARGO_DOCTEST_RANK[out[name]] > _CARGO_DOCTEST_RANK[status]:
|
| 174 |
+
continue
|
| 175 |
+
out[name] = status
|
| 176 |
+
return out
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_JEST_FILE_RE = re.compile(r"^ ?(?:PASS|FAIL)\s+(?P<path>\S+\.(?:ts|tsx|js|jsx|mjs|cjs))\b")
|
| 180 |
+
_JEST_TEST_RE = re.compile(
|
| 181 |
+
r"^(?P<indent>\s*)(?P<glyph>✓|√|✕|×|✗|○|◯)\s+(?P<name>.+?)(?:\s+\(\d+(?:\.\d+)?\s*m?s\))?$"
|
| 182 |
+
)
|
| 183 |
+
_JEST_GLYPH = {
|
| 184 |
+
"✓": PASSED,
|
| 185 |
+
"√": PASSED,
|
| 186 |
+
"✕": FAILED,
|
| 187 |
+
"×": FAILED,
|
| 188 |
+
"✗": FAILED,
|
| 189 |
+
"○": SKIPPED,
|
| 190 |
+
"◯": SKIPPED,
|
| 191 |
+
}
|
| 192 |
+
# Keep these patterns in sync with log_parsers/jest_parser.py.
|
| 193 |
+
_ANSI_RE = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
|
| 194 |
+
_VITEST_MARKER_RE = re.compile(r"^\s*(?:RUN\s+v\d+\.\d+|Test Files\s+\d)", re.MULTILINE)
|
| 195 |
+
_VITEST_TEST_RE = re.compile(
|
| 196 |
+
r"^\s*(?P<glyph>[✓×↓□]) (?:\|(?P<project>[^|]+)\| | (?P<label>\S+) )?"
|
| 197 |
+
r"(?P<name>\S+ > .+?)(?P<duration> \d{1,9}ms)?"
|
| 198 |
+
r"(?: \(retry x\d{1,9}\))?(?: \(repeat x\d{1,9}\))?(?: \d{1,9} MB heap used)?(?: \[[^\[\]]*\])?$"
|
| 199 |
+
)
|
| 200 |
+
_VITEST_STATUS = {"✓": PASSED, "×": FAILED, "↓": SKIPPED, "□": SKIPPED}
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _parse_vitest(log: str) -> dict[str, str]:
|
| 204 |
+
"""{test_name -> status} from vitest `--reporter=verbose` lines only."""
|
| 205 |
+
out: dict[str, str] = {}
|
| 206 |
+
for raw in log.split("\n"):
|
| 207 |
+
m = _VITEST_TEST_RE.match(raw.rstrip())
|
| 208 |
+
if not m:
|
| 209 |
+
continue
|
| 210 |
+
glyph, name = m.group("glyph"), m.group("name")
|
| 211 |
+
if glyph in "↓□" and m.group("duration"):
|
| 212 |
+
name += m.group("duration")
|
| 213 |
+
project = m.group("project") or m.group("label")
|
| 214 |
+
out[f"|{project}| {name}" if project else name] = _VITEST_STATUS[glyph]
|
| 215 |
+
return out
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def parse_jest(log: str) -> dict[str, str]:
|
| 219 |
+
"""{test_name -> status} from Jest / Mocha / Vitest output."""
|
| 220 |
+
out: dict[str, str] = {}
|
| 221 |
+
if not log:
|
| 222 |
+
return out
|
| 223 |
+
log = _ANSI_RE.sub("", log)
|
| 224 |
+
if _VITEST_MARKER_RE.search(log):
|
| 225 |
+
return _parse_vitest(log)
|
| 226 |
+
current_file: str | None = None
|
| 227 |
+
describe_stack: list[tuple[int, str]] = []
|
| 228 |
+
last_test_indent: int | None = None
|
| 229 |
+
for raw in log.split("\n"):
|
| 230 |
+
line = raw.rstrip()
|
| 231 |
+
if not line:
|
| 232 |
+
continue
|
| 233 |
+
m = _JEST_FILE_RE.match(line)
|
| 234 |
+
if m:
|
| 235 |
+
current_file = m.group("path")
|
| 236 |
+
describe_stack = []
|
| 237 |
+
last_test_indent = None
|
| 238 |
+
continue
|
| 239 |
+
m = _JEST_TEST_RE.match(line)
|
| 240 |
+
if m:
|
| 241 |
+
indent = len(m.group("indent"))
|
| 242 |
+
name = re.sub(r"^(?:skipped|todo):\s*", "", m.group("name").strip())
|
| 243 |
+
describes = [d for ind, d in describe_stack if ind < indent]
|
| 244 |
+
parts = ([current_file] if current_file else []) + describes + [name]
|
| 245 |
+
out[" > ".join(parts)] = _JEST_GLYPH[m.group("glyph")]
|
| 246 |
+
last_test_indent = indent
|
| 247 |
+
continue
|
| 248 |
+
stripped = line.lstrip()
|
| 249 |
+
if not stripped or stripped.startswith(
|
| 250 |
+
("Tests:", "Test Suites:", "Snapshots:", "Time:", "Ran all", "●", "→", "✗:")
|
| 251 |
+
):
|
| 252 |
+
continue
|
| 253 |
+
indent_here = len(line) - len(stripped)
|
| 254 |
+
if current_file and (last_test_indent is None or indent_here < last_test_indent):
|
| 255 |
+
describe_stack = [(i, d) for i, d in describe_stack if i < indent_here]
|
| 256 |
+
describe_stack.append((indent_here, stripped))
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _detect_runner(test_cmds: str) -> str:
|
| 261 |
+
joined = test_cmds.lower()
|
| 262 |
+
if "pytest" in joined:
|
| 263 |
+
return "pytest"
|
| 264 |
+
if re.search(r"\bgo\s+test\b", joined):
|
| 265 |
+
return "go"
|
| 266 |
+
if re.search(r"\bcargo\s+test\b", joined):
|
| 267 |
+
return "cargo"
|
| 268 |
+
if any(k in joined for k in ("jest", "mocha", "vitest", "npm test", "yarn test", "pnpm test")):
|
| 269 |
+
return "jest"
|
| 270 |
+
return "unknown"
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def parse_logs(runner: str, log: str) -> dict[str, str]:
|
| 274 |
+
"""Dispatch to the right per-runner parser. Empty dict if unknown."""
|
| 275 |
+
if runner == "pytest":
|
| 276 |
+
return parse_pytest(log)
|
| 277 |
+
if runner == "go":
|
| 278 |
+
return parse_go_test(log)
|
| 279 |
+
if runner == "cargo":
|
| 280 |
+
return parse_cargo_test(log)
|
| 281 |
+
if runner == "jest":
|
| 282 |
+
return parse_jest(log)
|
| 283 |
+
return {}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
# ---------------------------------------------------------------------------
|
| 287 |
+
# Grading
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
def _has_go_parent(name: str, status_map: dict[str, str]) -> bool:
|
| 290 |
+
"""Return True if a Go test has an ancestor represented in the status map."""
|
| 291 |
+
parts = name.split("/")
|
| 292 |
+
|
| 293 |
+
for i in range(1, len(parts)):
|
| 294 |
+
parent = "/".join(parts[:i])
|
| 295 |
+
if status_map.get(parent) == FAILED:
|
| 296 |
+
return True
|
| 297 |
+
|
| 298 |
+
return False
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def grade(
|
| 302 |
+
fail_to_pass: list[str],
|
| 303 |
+
pass_to_pass: list[str],
|
| 304 |
+
status_map: dict[str, str],
|
| 305 |
+
runner: str | None = None,
|
| 306 |
+
) -> dict:
|
| 307 |
+
"""Compute the graded reward + strict resolved bool from a status map.
|
| 308 |
+
|
| 309 |
+
f2p_rate = (# F2P now PASSED) / (# F2P)
|
| 310 |
+
p2p_rate = (# P2P still PASSED) / (# P2P) [1.0 when no P2P]
|
| 311 |
+
reward = f2p_rate * p2p_rate (dense training signal)
|
| 312 |
+
resolved = all F2P pass AND all P2P pass (SWE-bench TRACKED resolution —
|
| 313 |
+
the gold patch always satisfies this, preserving the oracle
|
| 314 |
+
invariant)
|
| 315 |
+
|
| 316 |
+
Two distinct EVAL signals (see the audit's "tracked vs command resolved"):
|
| 317 |
+
* `resolved` — tracked resolution (above). Gold patch -> True.
|
| 318 |
+
* `command_resolved` — stricter: tracked resolution AND the selected test
|
| 319 |
+
command had NO failures outside F2P/P2P AND exit
|
| 320 |
+
code 0. Computed in main() where the exit code is
|
| 321 |
+
known. A benchmark that wants "the whole command
|
| 322 |
+
passed cleanly" gates on this; SWE-bench-style
|
| 323 |
+
scoring uses `resolved`.
|
| 324 |
+
|
| 325 |
+
`untracked_failed` are FAILED tests in the run that are neither F2P nor
|
| 326 |
+
P2P (e.g. always-failing/flaky tests pulled in by running a whole test
|
| 327 |
+
file). They don't change the graded `reward` or tracked `resolved`, but
|
| 328 |
+
they block `command_resolved` and are recorded for transparency.
|
| 329 |
+
"""
|
| 330 |
+
f2p_total = len(fail_to_pass)
|
| 331 |
+
p2p_total = len(pass_to_pass)
|
| 332 |
+
f2p_set = set(fail_to_pass)
|
| 333 |
+
p2p_set = set(pass_to_pass)
|
| 334 |
+
f2p_passed = sum(1 for t in fail_to_pass if status_map.get(t) == PASSED)
|
| 335 |
+
p2p_passed = sum(1 for t in pass_to_pass if status_map.get(t) == PASSED)
|
| 336 |
+
# Tests that should have stayed green but regressed (PASS->not-pass).
|
| 337 |
+
regressions = [t for t in pass_to_pass if status_map.get(t) != PASSED]
|
| 338 |
+
|
| 339 |
+
# FAILED tests outside the tracked sets — the selected command isn't clean.
|
| 340 |
+
if runner == "go":
|
| 341 |
+
failed_tests = {
|
| 342 |
+
t
|
| 343 |
+
for t, s in status_map.items()
|
| 344 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
untracked_failed = sorted(t for t in failed_tests if not _has_go_parent(t, status_map))
|
| 348 |
+
else:
|
| 349 |
+
untracked_failed = sorted(
|
| 350 |
+
t
|
| 351 |
+
for t, s in status_map.items()
|
| 352 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 353 |
+
)
|
| 354 |
+
|
| 355 |
+
f2p_rate = (f2p_passed / f2p_total) if f2p_total else 0.0
|
| 356 |
+
p2p_rate = (p2p_passed / p2p_total) if p2p_total else 1.0
|
| 357 |
+
reward = f2p_rate * p2p_rate
|
| 358 |
+
resolved = f2p_total > 0 and f2p_passed == f2p_total and p2p_passed == p2p_total
|
| 359 |
+
|
| 360 |
+
return {
|
| 361 |
+
"reward": round(max(0.0, min(1.0, reward)), 6),
|
| 362 |
+
"resolved": resolved,
|
| 363 |
+
"f2p_total": f2p_total,
|
| 364 |
+
"f2p_passed": f2p_passed,
|
| 365 |
+
"f2p_rate": round(f2p_rate, 6),
|
| 366 |
+
"p2p_total": p2p_total,
|
| 367 |
+
"p2p_passed": p2p_passed,
|
| 368 |
+
"p2p_rate": round(p2p_rate, 6),
|
| 369 |
+
"regressions": sorted(regressions),
|
| 370 |
+
"untracked_failed_count": len(untracked_failed),
|
| 371 |
+
"untracked_failed": untracked_failed[:20], # cap the list
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
# ---------------------------------------------------------------------------
|
| 376 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 377 |
+
# ---------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _read_json_list(path: str) -> list[str]:
|
| 381 |
+
try:
|
| 382 |
+
with open(path, encoding="utf-8") as f:
|
| 383 |
+
data = json.load(f)
|
| 384 |
+
return [str(x) for x in data] if isinstance(data, list) else []
|
| 385 |
+
except (OSError, ValueError):
|
| 386 |
+
return []
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def _read_text(path: str) -> str:
|
| 390 |
+
try:
|
| 391 |
+
with open(path, encoding="utf-8") as f:
|
| 392 |
+
return f.read()
|
| 393 |
+
except (OSError, UnicodeDecodeError):
|
| 394 |
+
return ""
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def main(argv: list[str] | None = None) -> int:
|
| 398 |
+
p = argparse.ArgumentParser(description="pr_runtime graded F2P/P2P verifier")
|
| 399 |
+
p.add_argument("--log", required=True, help="captured test-run log file")
|
| 400 |
+
p.add_argument("--f2p", required=True, help="JSON file: FAIL_TO_PASS test names")
|
| 401 |
+
p.add_argument("--p2p", required=True, help="JSON file: PASS_TO_PASS test names")
|
| 402 |
+
p.add_argument("--runner", default="", help="pytest|go|cargo|jest (else auto-detect)")
|
| 403 |
+
p.add_argument("--test-cmds", default="", help="test command string (runner auto-detect)")
|
| 404 |
+
p.add_argument("--exit-code", type=int, default=1, help="test suite exit code (fallback)")
|
| 405 |
+
p.add_argument("--out-dir", default="/logs/verifier", help="where to write reward.{txt,json}")
|
| 406 |
+
args = p.parse_args(argv)
|
| 407 |
+
|
| 408 |
+
log = _read_text(args.log)
|
| 409 |
+
f2p = _read_json_list(args.f2p)
|
| 410 |
+
p2p = _read_json_list(args.p2p)
|
| 411 |
+
runner = args.runner.strip() or _detect_runner(args.test_cmds)
|
| 412 |
+
|
| 413 |
+
status_map = parse_logs(runner, log)
|
| 414 |
+
|
| 415 |
+
if not status_map:
|
| 416 |
+
# Unparseable runner output → fall back to the binary exit-code reward
|
| 417 |
+
# (a coarse TRAINING signal) so we never silently zero a real fix on an
|
| 418 |
+
# unrecognized format. But `resolved` is the strict EVAL signal: without
|
| 419 |
+
# parsed per-test status we have NO evidence the declared FAIL_TO_PASS
|
| 420 |
+
# tests passed, so when an F2P oracle exists we must NOT claim resolved.
|
| 421 |
+
# (resolved stays exit-code-based only when there's no declared oracle,
|
| 422 |
+
# e.g. --skip-validation.)
|
| 423 |
+
reward = 1.0 if args.exit_code == 0 else 0.0
|
| 424 |
+
has_oracle = len(f2p) > 0
|
| 425 |
+
resolved = (args.exit_code == 0) and not has_oracle
|
| 426 |
+
breakdown = {
|
| 427 |
+
"reward": reward,
|
| 428 |
+
"resolved": resolved,
|
| 429 |
+
"command_resolved": bool(resolved and args.exit_code == 0),
|
| 430 |
+
"parse_status": "fallback_exitcode",
|
| 431 |
+
"eval_trustworthy": not has_oracle,
|
| 432 |
+
"runner": runner,
|
| 433 |
+
"f2p_total": len(f2p),
|
| 434 |
+
"p2p_total": len(p2p),
|
| 435 |
+
"exit_code": args.exit_code,
|
| 436 |
+
}
|
| 437 |
+
else:
|
| 438 |
+
breakdown = grade(f2p, p2p, status_map, runner)
|
| 439 |
+
breakdown["parse_status"] = "ok"
|
| 440 |
+
breakdown["runner"] = runner
|
| 441 |
+
breakdown["tests_parsed"] = len(status_map)
|
| 442 |
+
breakdown["exit_code"] = args.exit_code
|
| 443 |
+
# Strict eval signal: tracked resolution AND a clean command (no
|
| 444 |
+
# untracked failures, exit code 0). Benchmarks wanting "the whole test
|
| 445 |
+
# command passed" gate on this; SWE-bench-style scoring uses `resolved`.
|
| 446 |
+
breakdown["command_resolved"] = bool(
|
| 447 |
+
breakdown["resolved"]
|
| 448 |
+
and breakdown["untracked_failed_count"] == 0
|
| 449 |
+
and args.exit_code == 0
|
| 450 |
+
)
|
| 451 |
+
reward = breakdown["reward"]
|
| 452 |
+
|
| 453 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 454 |
+
with open(os.path.join(args.out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 455 |
+
f.write(f"{reward:.6f}\n")
|
| 456 |
+
with open(os.path.join(args.out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 457 |
+
json.dump(breakdown, f, indent=2)
|
| 458 |
+
|
| 459 |
+
print(json.dumps(breakdown, indent=2))
|
| 460 |
+
return 0
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
sys.exit(main())
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
__all__ = [
|
| 468 |
+
"grade",
|
| 469 |
+
"main",
|
| 470 |
+
"parse_cargo_test",
|
| 471 |
+
"parse_go_test",
|
| 472 |
+
"parse_jest",
|
| 473 |
+
"parse_logs",
|
| 474 |
+
"parse_pytest",
|
| 475 |
+
]
|
heldout_pool/frostming__marko-88e65f1f51c1/environment/Dockerfile
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_runtime
|
| 2 |
+
FROM local/frostming__marko
|
| 3 |
+
WORKDIR /workspace
|
| 4 |
+
# Defensive: ensure git is on PATH at build time. Bootstrap base
|
| 5 |
+
# images vary — some (Python slim) don't ship git; some agents
|
| 6 |
+
# install it; others don't. Re-installing is a no-op when already
|
| 7 |
+
# present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine).
|
| 8 |
+
# Install git + ca-certificates. Minimal images (node:alpine) ship
|
| 9 |
+
# without CA certs, so HTTPS git fetch fails verification.
|
| 10 |
+
RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \
|
| 11 |
+
(apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 13 |
+
(apk add --no-cache git ca-certificates && update-ca-certificates) || true
|
| 14 |
+
# Defensive: the graded F2P/P2P verifier is Python.
|
| 15 |
+
# Language-specific bootstrap images (Go/Rust/Node) may not
|
| 16 |
+
# ship python3 — install it so test.sh can score F2P/P2P. No-op when
|
| 17 |
+
# python3 is already present (every Python-repo image has it).
|
| 18 |
+
RUN command -v python3 >/dev/null 2>&1 || \
|
| 19 |
+
(apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 21 |
+
apk add --no-cache python3 || true
|
| 22 |
+
# Position the working tree at the PR's base commit so subsequent
|
| 23 |
+
# model-patch applications align with the line context the patch
|
| 24 |
+
# was authored against. The fetch is a no-op if the commit is
|
| 25 |
+
# already in the shallow clone.
|
| 26 |
+
RUN git config --global --add safe.directory /workspace \
|
| 27 |
+
&& git fetch --depth 1 origin e34793226fc0ab80142d23cef2078ab0035a6104 2>/dev/null \
|
| 28 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 29 |
+
RUN git reset --hard e34793226fc0ab80142d23cef2078ab0035a6104 && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache
|
| 30 |
+
RUN git checkout -q -B base e34793226fc0ab80142d23cef2078ab0035a6104 \
|
| 31 |
+
&& git remote remove origin 2>/dev/null || true
|
| 32 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 33 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 34 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 35 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 36 |
+
&& git gc --prune=now 2>/dev/null || true
|
heldout_pool/frostming__marko-88e65f1f51c1/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv: anti-contamination egress guard.
|
| 2 |
+
# Blackholes the hosts that serve this repo's published fix and hidden
|
| 3 |
+
# tests, so an agent cannot fetch the answer (pip download / git fetch /
|
| 4 |
+
# WebFetch against these fail). General internet stays up so the agent
|
| 5 |
+
# can install itself and reach its model API. See pipelines/_env_guard.py.
|
| 6 |
+
services:
|
| 7 |
+
main:
|
| 8 |
+
extra_hosts:
|
| 9 |
+
- "pypi.org:0.0.0.0"
|
| 10 |
+
- "pypi.python.org:0.0.0.0"
|
| 11 |
+
- "files.pythonhosted.org:0.0.0.0"
|
| 12 |
+
- "github.com:0.0.0.0"
|
| 13 |
+
- "api.github.com:0.0.0.0"
|
| 14 |
+
- "raw.githubusercontent.com:0.0.0.0"
|
| 15 |
+
- "codeload.github.com:0.0.0.0"
|
| 16 |
+
- "objects.githubusercontent.com:0.0.0.0"
|
heldout_pool/frostming__marko-88e65f1f51c1/instruction.md
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** GFM Alerts not parsed correctly with extra header content or mixed-case types
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
When parsing GitHub Flavored Markdown (GFM) alert blocks, two issues are observed:
|
| 7 |
+
|
| 8 |
+
1. **Extra content on header line:** An alert block is incorrectly recognized even when there is additional text on the same line as the alert type declaration. For example, `> [!NOTE] Some extra text` is currently parsed as a valid alert header.
|
| 9 |
+
* **Expected behavior:** Lines containing any text after the `[!TYPE]` declaration should not be recognized as a GFM alert header.
|
| 10 |
+
2. **Case-sensitive alert types:** Alert blocks are not recognized if the alert type (e.g., `NOTE`, `WARNING`) is not in all uppercase. For example, `> [!note]` or `> [!Warning]` are currently ignored.
|
| 11 |
+
* **Expected behavior:** GFM
|
| 12 |
+
|
| 13 |
+
## Task
|
| 14 |
+
|
| 15 |
+
Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit `e34793226fc0` and running the modified tests.
|
heldout_pool/frostming__marko-88e65f1f51c1/solution/patch.diff
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
| 2 |
+
index 0346323..9aa152c 100644
|
| 3 |
+
--- a/CHANGELOG.md
|
| 4 |
+
+++ b/CHANGELOG.md
|
| 5 |
+
@@ -1,3 +1,10 @@
|
| 6 |
+
+## v2.2.2(2026-01-05)
|
| 7 |
+
+
|
| 8 |
+
+### Fixed
|
| 9 |
+
+
|
| 10 |
+
+- Fix a bug in GFM alert block parsing where alert types were case-sensitive.
|
| 11 |
+
+- Fix GFM alert regex to disallow content on header line.
|
| 12 |
+
+
|
| 13 |
+
## v2.2.1(2025-10-13)
|
| 14 |
+
|
| 15 |
+
### Changed
|
| 16 |
+
diff --git a/marko/__init__.py b/marko/__init__.py
|
| 17 |
+
index 4aae580..a21e6dd 100644
|
| 18 |
+
--- a/marko/__init__.py
|
| 19 |
+
+++ b/marko/__init__.py
|
| 20 |
+
@@ -23,7 +23,7 @@ if TYPE_CHECKING:
|
| 21 |
+
from .block import Document
|
| 22 |
+
from .parser import ElementType
|
| 23 |
+
|
| 24 |
+
-__version__ = "2.2.1"
|
| 25 |
+
+__version__ = "2.2.2"
|
| 26 |
+
|
| 27 |
+
|
| 28 |
+
class SetupDone(Exception):
|
| 29 |
+
diff --git a/marko/ext/gfm/elements.py b/marko/ext/gfm/elements.py
|
| 30 |
+
index fa98289..2edcaeb 100644
|
| 31 |
+
--- a/marko/ext/gfm/elements.py
|
| 32 |
+
+++ b/marko/ext/gfm/elements.py
|
| 33 |
+
@@ -225,11 +225,13 @@ class Alert(block.Quote):
|
| 34 |
+
|
| 35 |
+
@classmethod
|
| 36 |
+
def match(cls, source):
|
| 37 |
+
- return source.expect_re(r" {,3}>\s*\[\!(WARNING|NOTE|TIP|IMPORTANT|CAUTION)\]")
|
| 38 |
+
+ return source.expect_re(
|
| 39 |
+
+ r"(?im) {,3}>\s*\[\!(WARNING|NOTE|TIP|IMPORTANT|CAUTION)\]\s*$"
|
| 40 |
+
+ )
|
| 41 |
+
|
| 42 |
+
@classmethod
|
| 43 |
+
def parse(cls, source):
|
| 44 |
+
- alert_type = source.match.group(1)
|
| 45 |
+
+ alert_type = source.match.group(1).upper()
|
| 46 |
+
source.next_line(require_prefix=False)
|
| 47 |
+
source.consume()
|
| 48 |
+
state = cls(alert_type)
|
heldout_pool/frostming__marko-88e65f1f51c1/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
heldout_pool/frostming__marko-88e65f1f51c1/task.toml
ADDED
|
@@ -0,0 +1,96 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "commit-runtime/frostming__marko-88e65f1f51c1"
|
| 5 |
+
description = "Update GFM alert regex to disallow content on header line (#252)"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "small"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"marko",
|
| 12 |
+
"commit_runtime",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "commit_runtime"
|
| 17 |
+
pipeline_version = "0.8.3"
|
| 18 |
+
repo = "frostming/marko"
|
| 19 |
+
ref = "e34793226fc0ab80142d23cef2078ab0035a6104"
|
| 20 |
+
reference = "https://github.com/frostming/marko/commit/88e65f1f51c1e88e9e06a8f0b855200122578b28"
|
| 21 |
+
source_access = "public"
|
| 22 |
+
built_at = "2026-09-24T13:19:45.243670+00:00"
|
| 23 |
+
synthesis_llm = "gemini/gemini-2.5-flash"
|
| 24 |
+
reward_kinds = [
|
| 25 |
+
"test_execution",
|
| 26 |
+
"diff_similarity",
|
| 27 |
+
]
|
| 28 |
+
spec_version = "0.2.0"
|
| 29 |
+
content_hash = "sha256:4f757b95b49545b2d37cd22bebac5475195d38a6d62d53e4ca3e178bbf7cf529"
|
| 30 |
+
|
| 31 |
+
[metadata.repo2env.commit_runtime]
|
| 32 |
+
commit_sha = "88e65f1f51c1e88e9e06a8f0b855200122578b28"
|
| 33 |
+
parent_sha = "e34793226fc0ab80142d23cef2078ab0035a6104"
|
| 34 |
+
authored_at = "2026-01-05T19:01:56+08:00"
|
| 35 |
+
author_email = "me@frostming.com"
|
| 36 |
+
subject = "fix: Update GFM alert regex to disallow content on header line (#252)"
|
| 37 |
+
fail_to_pass = [
|
| 38 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[Caution]",
|
| 39 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[warning]",
|
| 40 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_disallow_content_on_header_line",
|
| 41 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[Caution]",
|
| 42 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[warning]",
|
| 43 |
+
]
|
| 44 |
+
pass_to_pass = [
|
| 45 |
+
"tests/test_ext.py::TestCodeHilite::test_codehilite_options",
|
| 46 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block",
|
| 47 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block_with_extra",
|
| 48 |
+
"tests/test_ext.py::TestCodeHilite::test_render_fenced_code",
|
| 49 |
+
"tests/test_ext.py::TestFootnote::test_footnote",
|
| 50 |
+
"tests/test_ext.py::TestFootnote::test_non_footnote",
|
| 51 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[CAUTION]",
|
| 52 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[TIP]",
|
| 53 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[WARNING]",
|
| 54 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[CAUTION]",
|
| 55 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[TIP]",
|
| 56 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[WARNING]",
|
| 57 |
+
"tests/test_ext.py::TestPangu::test_chinese_punctuations",
|
| 58 |
+
"tests/test_ext.py::TestPangu::test_render_pangu",
|
| 59 |
+
"tests/test_ext.py::TestToc::test_render_toc",
|
| 60 |
+
"tests/test_ext.py::TestToc::test_render_toc_exceeding_maxdepth",
|
| 61 |
+
"tests/test_ext.py::TestToc::test_render_toc_replace_tags",
|
| 62 |
+
]
|
| 63 |
+
validation_status = "verified"
|
| 64 |
+
bootstrap_image = "local-venv:frostming__marko"
|
| 65 |
+
instruction_synthesized = true
|
| 66 |
+
llm_cost_usd = 0.002596
|
| 67 |
+
|
| 68 |
+
[metadata.repo2env.reward_calibration]
|
| 69 |
+
f2p_count = 5
|
| 70 |
+
p2p_count = 17
|
| 71 |
+
source_files = 3
|
| 72 |
+
loc_changed = 15
|
| 73 |
+
difficulty = "small"
|
| 74 |
+
|
| 75 |
+
[metadata.repo2env.evaluation]
|
| 76 |
+
schema_version = "1"
|
| 77 |
+
status = "unverified"
|
| 78 |
+
stage = "generation"
|
| 79 |
+
reason_codes = [
|
| 80 |
+
"validation_not_run",
|
| 81 |
+
]
|
| 82 |
+
detail = "Generated task; validation has not been established."
|
| 83 |
+
provenance = "unknown"
|
| 84 |
+
evidence = []
|
| 85 |
+
|
| 86 |
+
[metadata.repo2env.reproducibility]
|
| 87 |
+
mode = "local_only"
|
| 88 |
+
image_ref = "local/frostming__marko"
|
| 89 |
+
image_tag = "local/frostming__marko"
|
| 90 |
+
image_visibility = "private"
|
| 91 |
+
|
| 92 |
+
[agent]
|
| 93 |
+
timeout_sec = 1800.0
|
| 94 |
+
|
| 95 |
+
[verifier]
|
| 96 |
+
timeout_sec = 300.0
|
heldout_pool/frostming__marko-88e65f1f51c1/tests/f2p.json
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[Caution]",
|
| 3 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[warning]",
|
| 4 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_disallow_content_on_header_line",
|
| 5 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[Caution]",
|
| 6 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[warning]"
|
| 7 |
+
]
|
heldout_pool/frostming__marko-88e65f1f51c1/tests/p2p.json
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_ext.py::TestCodeHilite::test_codehilite_options",
|
| 3 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block",
|
| 4 |
+
"tests/test_ext.py::TestCodeHilite::test_render_code_block_with_extra",
|
| 5 |
+
"tests/test_ext.py::TestCodeHilite::test_render_fenced_code",
|
| 6 |
+
"tests/test_ext.py::TestFootnote::test_footnote",
|
| 7 |
+
"tests/test_ext.py::TestFootnote::test_non_footnote",
|
| 8 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[CAUTION]",
|
| 9 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[TIP]",
|
| 10 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_ast[WARNING]",
|
| 11 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[CAUTION]",
|
| 12 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[TIP]",
|
| 13 |
+
"tests/test_ext.py::TestGFMAlert::test_alert_html[WARNING]",
|
| 14 |
+
"tests/test_ext.py::TestPangu::test_chinese_punctuations",
|
| 15 |
+
"tests/test_ext.py::TestPangu::test_render_pangu",
|
| 16 |
+
"tests/test_ext.py::TestToc::test_render_toc",
|
| 17 |
+
"tests/test_ext.py::TestToc::test_render_toc_exceeding_maxdepth",
|
| 18 |
+
"tests/test_ext.py::TestToc::test_render_toc_replace_tags"
|
| 19 |
+
]
|
heldout_pool/frostming__marko-88e65f1f51c1/tests/test.sh
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -uxo pipefail
|
| 3 |
+
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
| 4 |
+
cd /workspace
|
| 5 |
+
git config --global --add safe.directory /workspace
|
| 6 |
+
mkdir -p /logs/verifier
|
| 7 |
+
git checkout e34793226fc0ab80142d23cef2078ab0035a6104 -- tests/test_ext.py || true
|
| 8 |
+
git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH'
|
| 9 |
+
diff --git a/tests/test_ext.py b/tests/test_ext.py
|
| 10 |
+
index d20e2db..0b3f04e 100644
|
| 11 |
+
--- a/tests/test_ext.py
|
| 12 |
+
+++ b/tests/test_ext.py
|
| 13 |
+
@@ -1,3 +1,5 @@
|
| 14 |
+
+import pytest
|
| 15 |
+
+
|
| 16 |
+
from marko import Markdown
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
@@ -106,20 +108,32 @@ class TestGFMAlert:
|
| 20 |
+
self.md_ast = Markdown(renderer=ASTRenderer, extensions=[GFM])
|
| 21 |
+
self.md_html = Markdown(extensions=[GFM])
|
| 22 |
+
|
| 23 |
+
- def test_alert_ast(self):
|
| 24 |
+
- text = "> [!WARNING]\n> Foo bar\n> Bar\n"
|
| 25 |
+
+ @pytest.mark.parametrize(
|
| 26 |
+
+ "alert_type", ["WARNING", "CAUTION", "TIP", "warning", "Caution"]
|
| 27 |
+
+ )
|
| 28 |
+
+ def test_alert_ast(self, alert_type):
|
| 29 |
+
+ text = f"> [!{alert_type}]\n> Foo bar\n> Bar\n"
|
| 30 |
+
ast = self.md_ast(text)
|
| 31 |
+
admon = ast["children"][0]
|
| 32 |
+
assert admon["element"] == "alert"
|
| 33 |
+
- assert admon["alert_type"] == "WARNING"
|
| 34 |
+
+ assert admon["alert_type"] == alert_type.upper()
|
| 35 |
+
inner = admon["children"][0]["children"]
|
| 36 |
+
assert inner[0]["children"] == "Foo bar"
|
| 37 |
+
assert inner[1]["element"] == "line_break"
|
| 38 |
+
assert inner[2]["children"] == "Bar"
|
| 39 |
+
|
| 40 |
+
- def test_alert_html(self):
|
| 41 |
+
- text = "> [!WARNING]\n> Foo bar\n> Bar\n"
|
| 42 |
+
+ @pytest.mark.parametrize(
|
| 43 |
+
+ "alert_type", ["WARNING", "CAUTION", "TIP", "warning", "Caution"]
|
| 44 |
+
+ )
|
| 45 |
+
+ def test_alert_html(self, alert_type):
|
| 46 |
+
+ text = f"> [!{alert_type}]\n> Foo bar\n> Bar\n"
|
| 47 |
+
html = self.md_html(text)
|
| 48 |
+
- assert '<blockquote class="alert alert-warning">' in html
|
| 49 |
+
- assert "<p>Warning</p>" in html
|
| 50 |
+
+ assert f'<blockquote class="alert alert-{alert_type.lower()}">' in html
|
| 51 |
+
+ assert f"<p>{alert_type.title()}</p>" in html
|
| 52 |
+
assert "<p>Foo bar\nBar</p>" in html
|
| 53 |
+
+
|
| 54 |
+
+ def test_alert_disallow_content_on_header_line(self):
|
| 55 |
+
+ text = "> [!NOTE] This is not allowed.\n> Foo bar\n"
|
| 56 |
+
+ html = self.md_html(text)
|
| 57 |
+
+ # Should be treated as a normal blockquote.
|
| 58 |
+
+ assert "<blockquote>\n<p>[!NOTE] This is not allowed." in html
|
| 59 |
+
|
| 60 |
+
EOF_R2E_TEST_PATCH
|
| 61 |
+
R2E_APPLY_RC=$?
|
| 62 |
+
if [ "$R2E_APPLY_RC" -ne 0 ]; then
|
| 63 |
+
echo "0.000000" > /logs/verifier/reward.txt
|
| 64 |
+
printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json
|
| 65 |
+
echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2
|
| 66 |
+
exit 0
|
| 67 |
+
fi
|
| 68 |
+
( python -m pytest -v tests/test_ext.py ) > /logs/verifier/test_output.log 2>&1
|
| 69 |
+
TEST_EXIT_CODE=$?
|
| 70 |
+
cat /logs/verifier/test_output.log
|
| 71 |
+
python3 "$SCRIPT_DIR/verifier.py" --log /logs/verifier/test_output.log --f2p "$SCRIPT_DIR/f2p.json" --p2p "$SCRIPT_DIR/p2p.json" --test-cmds 'python -m pytest -v tests/test_ext.py' --exit-code "$TEST_EXIT_CODE" --out-dir /logs/verifier || { [ "$TEST_EXIT_CODE" -eq 0 ] && echo "1.0" > /logs/verifier/reward.txt || echo "0.0" > /logs/verifier/reward.txt; }
|
| 72 |
+
git checkout e34793226fc0ab80142d23cef2078ab0035a6104 -- tests/test_ext.py || true
|
| 73 |
+
exit 0
|
heldout_pool/frostming__marko-88e65f1f51c1/tests/verifier.py
ADDED
|
@@ -0,0 +1,475 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""In-container verifier for pr_runtime tasks (graded F2P/P2P reward).
|
| 2 |
+
|
| 3 |
+
This module is the **standalone verifier** that runs inside the task's
|
| 4 |
+
Docker container, NOT a helper used at generation time. It is read as
|
| 5 |
+
source at generation time, base64-encoded, and embedded into
|
| 6 |
+
``tests/test.sh``. At run time the container decodes it back to a file
|
| 7 |
+
and invokes it after the test suite has run.
|
| 8 |
+
|
| 9 |
+
Why a graded reward instead of binary pass/fail
|
| 10 |
+
------------------------------------------------
|
| 11 |
+
SWE-bench resolution is binary: a patch "resolves" the issue iff ALL
|
| 12 |
+
FAIL_TO_PASS tests pass AND ALL PASS_TO_PASS tests still pass. That's
|
| 13 |
+
the right signal for an eval leaderboard, but a terrible gradient for
|
| 14 |
+
RL training — an agent that fixes 4 of 5 failing tests scores the same
|
| 15 |
+
0.0 as one that fixes nothing.
|
| 16 |
+
|
| 17 |
+
So this verifier emits BOTH:
|
| 18 |
+
* /logs/verifier/reward.txt — the GRADED scalar (training signal,
|
| 19 |
+
which Harbor reads): reward = f2p_rate * p2p_factor
|
| 20 |
+
* /logs/verifier/reward-details.json — carries the strict SWE-bench
|
| 21 |
+
``resolved`` bool (eval signal) PLUS the full breakdown.
|
| 22 |
+
|
| 23 |
+
Refs: SWE-bench (F2P/P2P semantics), SWE-RL / SWE-Gym (dense reward for
|
| 24 |
+
RL), UTBoost (weak-test coverage lets wrong patches pass — hence we
|
| 25 |
+
record p2p_count so consumers can judge regression-guard strength).
|
| 26 |
+
|
| 27 |
+
Scoring
|
| 28 |
+
-------
|
| 29 |
+
Given the baked FAIL_TO_PASS / PASS_TO_PASS test-name lists (computed by
|
| 30 |
+
the generation-time two-stage validation) and the agent-run test log:
|
| 31 |
+
|
| 32 |
+
f2p_rate = (# F2P tests now PASSED) / (# F2P tests)
|
| 33 |
+
p2p_rate = (# P2P tests still PASSED) / (# P2P tests) [1.0 if no P2P]
|
| 34 |
+
p2p_factor = p2p_rate # regressions scale the reward down
|
| 35 |
+
reward = f2p_rate * p2p_factor
|
| 36 |
+
resolved = (all F2P pass) AND (all P2P pass) # strict SWE-bench
|
| 37 |
+
|
| 38 |
+
Oracle invariant: the gold patch flips every F2P and keeps every P2P,
|
| 39 |
+
so f2p_rate=1.0, p2p_rate=1.0 -> reward=1.0 and resolved=True. This is
|
| 40 |
+
what the T3 oracle gate (reward == 1.0) relies on.
|
| 41 |
+
|
| 42 |
+
Graceful degradation: if the log can't be parsed into per-test
|
| 43 |
+
statuses (unrecognized runner output), fall back to the exit-code
|
| 44 |
+
reward (1.0 if the suite exited 0, else 0.0) and stamp
|
| 45 |
+
``parse_status="fallback_exitcode"`` — never crash, never silently
|
| 46 |
+
zero out a real fix.
|
| 47 |
+
|
| 48 |
+
Pure stdlib — uses only ``argparse``, ``json``, ``os``, ``re``, ``sys``.
|
| 49 |
+
The 4 per-runner parsers are condensed ports of
|
| 50 |
+
``repo2rlenv.log_parsers.*`` kept in lockstep via the unit tests under
|
| 51 |
+
``tests/test_pr_runtime_verifier.py``.
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
+
from __future__ import annotations
|
| 55 |
+
|
| 56 |
+
import argparse
|
| 57 |
+
import json
|
| 58 |
+
import os
|
| 59 |
+
import re
|
| 60 |
+
import sys
|
| 61 |
+
|
| 62 |
+
# Canonical statuses. (Plain strings — no typing.Literal so the baked
|
| 63 |
+
# module stays import-light when decoded standalone in the container.)
|
| 64 |
+
PASSED = "PASSED"
|
| 65 |
+
FAILED = "FAILED"
|
| 66 |
+
SKIPPED = "SKIPPED"
|
| 67 |
+
ERROR = "ERROR"
|
| 68 |
+
|
| 69 |
+
# ---------------------------------------------------------------------------
|
| 70 |
+
# Per-runner log parsers (condensed ports of repo2rlenv.log_parsers.*)
|
| 71 |
+
# ---------------------------------------------------------------------------
|
| 72 |
+
|
| 73 |
+
_PYTEST_STATUSES = (PASSED, FAILED, SKIPPED, ERROR)
|
| 74 |
+
# Keep these patterns in sync with log_parsers/pytest_parser.py. This module
|
| 75 |
+
# also runs standalone inside task containers, without a repo2rlenv install.
|
| 76 |
+
_PYTEST_PROGRESS = (
|
| 77 |
+
r"\[\s*\d+%\]|\[\s*\d+\s*/\s*\d+\s*\]"
|
| 78 |
+
r"|\d+(?:\.\d+)?(?:us|ms|s)|\d+m \d+s|\d+h \d+m"
|
| 79 |
+
)
|
| 80 |
+
_PYTEST_VERBOSE_RE = re.compile(
|
| 81 |
+
r"^(?P<name>.+?(?:\[.*?\])?)\s+(?P<status>PASSED|FAILED|SKIPPED|ERROR)"
|
| 82 |
+
rf"(?:\s+\(.*\))?(?:\s+(?:{_PYTEST_PROGRESS}))?$"
|
| 83 |
+
)
|
| 84 |
+
_PYTEST_SUMMARY_NAME_RE = re.compile(r"^(?P<name>.+?(?:\[.*?\])?)(?: - .*)?$")
|
| 85 |
+
# pytest-xdist worker label, e.g. `[gw1] [ 20%] PASSED tests/foo.py::test_x`.
|
| 86 |
+
_PYTEST_XDIST_PREFIX_RE = re.compile(rf"^\[gw\d+\]\s+(?:(?:{_PYTEST_PROGRESS})\s+)?")
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def parse_pytest(log: str) -> dict[str, str]:
|
| 90 |
+
"""{test_name -> status} from pytest output (verbose or summary)."""
|
| 91 |
+
out: dict[str, str] = {}
|
| 92 |
+
if not log:
|
| 93 |
+
return out
|
| 94 |
+
for raw in log.split("\n"):
|
| 95 |
+
line = raw.strip()
|
| 96 |
+
if not line:
|
| 97 |
+
continue
|
| 98 |
+
line = _PYTEST_XDIST_PREFIX_RE.sub("", line, count=1)
|
| 99 |
+
# Summary lines (STATUS first), preserving the full node ID.
|
| 100 |
+
leading = None
|
| 101 |
+
for st in _PYTEST_STATUSES:
|
| 102 |
+
if line.startswith(st + " ") or line == st:
|
| 103 |
+
leading = st
|
| 104 |
+
break
|
| 105 |
+
if leading is not None:
|
| 106 |
+
work = line[len(leading) :].strip()
|
| 107 |
+
if leading == SKIPPED and re.match(r"^\[\d+\](?:\s|$)", work):
|
| 108 |
+
# Folded skips report a file location, not a parametrized ID.
|
| 109 |
+
tokens = work.split(maxsplit=2)
|
| 110 |
+
if len(tokens) < 2:
|
| 111 |
+
continue
|
| 112 |
+
out[tokens[1]] = leading
|
| 113 |
+
elif m := _PYTEST_SUMMARY_NAME_RE.match(work):
|
| 114 |
+
out[m.group("name")] = leading
|
| 115 |
+
continue
|
| 116 |
+
# Verbose progress (NAME first, STATUS after)
|
| 117 |
+
# Filter non-test output before attempting the backtracking regex.
|
| 118 |
+
head = line.split(None, 1)[0]
|
| 119 |
+
if "::" not in head and not head.endswith(".py"):
|
| 120 |
+
continue
|
| 121 |
+
m = _PYTEST_VERBOSE_RE.match(line)
|
| 122 |
+
if m:
|
| 123 |
+
name = m.group("name")
|
| 124 |
+
if "::" in name or name.endswith(".py"):
|
| 125 |
+
out[name] = m.group("status")
|
| 126 |
+
return out
|
| 127 |
+
|
| 128 |
+
|
| 129 |
+
_GO_TEST_RE = re.compile(r"^\s*---\s+(?P<status>PASS|FAIL|SKIP):\s+(?P<name>\S+)")
|
| 130 |
+
_GO_STATUS = {"PASS": PASSED, "FAIL": FAILED, "SKIP": SKIPPED}
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
def parse_go_test(log: str) -> dict[str, str]:
|
| 134 |
+
"""{test_name -> status} from `go test -v` output."""
|
| 135 |
+
out: dict[str, str] = {}
|
| 136 |
+
if not log:
|
| 137 |
+
return out
|
| 138 |
+
for raw in log.split("\n"):
|
| 139 |
+
m = _GO_TEST_RE.match(raw)
|
| 140 |
+
if m:
|
| 141 |
+
out[m.group("name")] = _GO_STATUS[m.group("status")]
|
| 142 |
+
return out
|
| 143 |
+
|
| 144 |
+
|
| 145 |
+
# Keep these patterns in sync with log_parsers/cargo_parser.py.
|
| 146 |
+
_CARGO_TEST_RE = re.compile(r"^test\s+(?P<name>\S.*?) \.\.\. (?P<status>ok|FAILED|ignored)\b")
|
| 147 |
+
_CARGO_MODE_RE = re.compile(r" - (?:should panic|compile fail|compile)$")
|
| 148 |
+
_CARGO_DOCTEST_RE = re.compile(r"^(?P<file>\S+) - (?:(?P<item>.+?) )?\(line \d+\)$")
|
| 149 |
+
_CARGO_STATUS = {"ok": PASSED, "FAILED": FAILED, "ignored": SKIPPED}
|
| 150 |
+
_CARGO_DOCTEST_RANK = {SKIPPED: 0, PASSED: 1, FAILED: 2}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
def parse_cargo_test(log: str) -> dict[str, str]:
|
| 154 |
+
"""{test_name -> status} from `cargo test` output.
|
| 155 |
+
|
| 156 |
+
Test modes (` - should panic`) are dropped from names, and doctests are
|
| 157 |
+
keyed without their `(line N)` so line shifts don't change identity; the
|
| 158 |
+
worst status among an item's doctests wins.
|
| 159 |
+
"""
|
| 160 |
+
out: dict[str, str] = {}
|
| 161 |
+
if not log:
|
| 162 |
+
return out
|
| 163 |
+
for raw in log.split("\n"):
|
| 164 |
+
m = _CARGO_TEST_RE.match(raw)
|
| 165 |
+
if not m:
|
| 166 |
+
continue
|
| 167 |
+
name = _CARGO_MODE_RE.sub("", m.group("name")).rstrip()
|
| 168 |
+
status = _CARGO_STATUS[m.group("status")]
|
| 169 |
+
doctest = _CARGO_DOCTEST_RE.match(name)
|
| 170 |
+
if doctest:
|
| 171 |
+
item = doctest.group("item")
|
| 172 |
+
name = f"{doctest.group('file')} - {item}" if item else doctest.group("file")
|
| 173 |
+
if name in out and _CARGO_DOCTEST_RANK[out[name]] > _CARGO_DOCTEST_RANK[status]:
|
| 174 |
+
continue
|
| 175 |
+
out[name] = status
|
| 176 |
+
return out
|
| 177 |
+
|
| 178 |
+
|
| 179 |
+
_JEST_FILE_RE = re.compile(r"^ ?(?:PASS|FAIL)\s+(?P<path>\S+\.(?:ts|tsx|js|jsx|mjs|cjs))\b")
|
| 180 |
+
_JEST_TEST_RE = re.compile(
|
| 181 |
+
r"^(?P<indent>\s*)(?P<glyph>✓|√|✕|×|✗|○|◯)\s+(?P<name>.+?)(?:\s+\(\d+(?:\.\d+)?\s*m?s\))?$"
|
| 182 |
+
)
|
| 183 |
+
_JEST_GLYPH = {
|
| 184 |
+
"✓": PASSED,
|
| 185 |
+
"√": PASSED,
|
| 186 |
+
"✕": FAILED,
|
| 187 |
+
"×": FAILED,
|
| 188 |
+
"✗": FAILED,
|
| 189 |
+
"○": SKIPPED,
|
| 190 |
+
"◯": SKIPPED,
|
| 191 |
+
}
|
| 192 |
+
# Keep these patterns in sync with log_parsers/jest_parser.py.
|
| 193 |
+
_ANSI_RE = re.compile(r"\x1b\[[0-9;?]*[A-Za-z]")
|
| 194 |
+
_VITEST_MARKER_RE = re.compile(r"^\s*(?:RUN\s+v\d+\.\d+|Test Files\s+\d)", re.MULTILINE)
|
| 195 |
+
_VITEST_TEST_RE = re.compile(
|
| 196 |
+
r"^\s*(?P<glyph>[✓×↓□]) (?:\|(?P<project>[^|]+)\| | (?P<label>\S+) )?"
|
| 197 |
+
r"(?P<name>\S+ > .+?)(?P<duration> \d{1,9}ms)?"
|
| 198 |
+
r"(?: \(retry x\d{1,9}\))?(?: \(repeat x\d{1,9}\))?(?: \d{1,9} MB heap used)?(?: \[[^\[\]]*\])?$"
|
| 199 |
+
)
|
| 200 |
+
_VITEST_STATUS = {"✓": PASSED, "×": FAILED, "↓": SKIPPED, "□": SKIPPED}
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
def _parse_vitest(log: str) -> dict[str, str]:
|
| 204 |
+
"""{test_name -> status} from vitest `--reporter=verbose` lines only."""
|
| 205 |
+
out: dict[str, str] = {}
|
| 206 |
+
for raw in log.split("\n"):
|
| 207 |
+
m = _VITEST_TEST_RE.match(raw.rstrip())
|
| 208 |
+
if not m:
|
| 209 |
+
continue
|
| 210 |
+
glyph, name = m.group("glyph"), m.group("name")
|
| 211 |
+
if glyph in "↓□" and m.group("duration"):
|
| 212 |
+
name += m.group("duration")
|
| 213 |
+
project = m.group("project") or m.group("label")
|
| 214 |
+
out[f"|{project}| {name}" if project else name] = _VITEST_STATUS[glyph]
|
| 215 |
+
return out
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
def parse_jest(log: str) -> dict[str, str]:
|
| 219 |
+
"""{test_name -> status} from Jest / Mocha / Vitest output."""
|
| 220 |
+
out: dict[str, str] = {}
|
| 221 |
+
if not log:
|
| 222 |
+
return out
|
| 223 |
+
log = _ANSI_RE.sub("", log)
|
| 224 |
+
if _VITEST_MARKER_RE.search(log):
|
| 225 |
+
return _parse_vitest(log)
|
| 226 |
+
current_file: str | None = None
|
| 227 |
+
describe_stack: list[tuple[int, str]] = []
|
| 228 |
+
last_test_indent: int | None = None
|
| 229 |
+
for raw in log.split("\n"):
|
| 230 |
+
line = raw.rstrip()
|
| 231 |
+
if not line:
|
| 232 |
+
continue
|
| 233 |
+
m = _JEST_FILE_RE.match(line)
|
| 234 |
+
if m:
|
| 235 |
+
current_file = m.group("path")
|
| 236 |
+
describe_stack = []
|
| 237 |
+
last_test_indent = None
|
| 238 |
+
continue
|
| 239 |
+
m = _JEST_TEST_RE.match(line)
|
| 240 |
+
if m:
|
| 241 |
+
indent = len(m.group("indent"))
|
| 242 |
+
name = re.sub(r"^(?:skipped|todo):\s*", "", m.group("name").strip())
|
| 243 |
+
describes = [d for ind, d in describe_stack if ind < indent]
|
| 244 |
+
parts = ([current_file] if current_file else []) + describes + [name]
|
| 245 |
+
out[" > ".join(parts)] = _JEST_GLYPH[m.group("glyph")]
|
| 246 |
+
last_test_indent = indent
|
| 247 |
+
continue
|
| 248 |
+
stripped = line.lstrip()
|
| 249 |
+
if not stripped or stripped.startswith(
|
| 250 |
+
("Tests:", "Test Suites:", "Snapshots:", "Time:", "Ran all", "●", "→", "✗:")
|
| 251 |
+
):
|
| 252 |
+
continue
|
| 253 |
+
indent_here = len(line) - len(stripped)
|
| 254 |
+
if current_file and (last_test_indent is None or indent_here < last_test_indent):
|
| 255 |
+
describe_stack = [(i, d) for i, d in describe_stack if i < indent_here]
|
| 256 |
+
describe_stack.append((indent_here, stripped))
|
| 257 |
+
return out
|
| 258 |
+
|
| 259 |
+
|
| 260 |
+
def _detect_runner(test_cmds: str) -> str:
|
| 261 |
+
joined = test_cmds.lower()
|
| 262 |
+
if "pytest" in joined:
|
| 263 |
+
return "pytest"
|
| 264 |
+
if re.search(r"\bgo\s+test\b", joined):
|
| 265 |
+
return "go"
|
| 266 |
+
if re.search(r"\bcargo\s+test\b", joined):
|
| 267 |
+
return "cargo"
|
| 268 |
+
if any(k in joined for k in ("jest", "mocha", "vitest", "npm test", "yarn test", "pnpm test")):
|
| 269 |
+
return "jest"
|
| 270 |
+
return "unknown"
|
| 271 |
+
|
| 272 |
+
|
| 273 |
+
def parse_logs(runner: str, log: str) -> dict[str, str]:
|
| 274 |
+
"""Dispatch to the right per-runner parser. Empty dict if unknown."""
|
| 275 |
+
if runner == "pytest":
|
| 276 |
+
return parse_pytest(log)
|
| 277 |
+
if runner == "go":
|
| 278 |
+
return parse_go_test(log)
|
| 279 |
+
if runner == "cargo":
|
| 280 |
+
return parse_cargo_test(log)
|
| 281 |
+
if runner == "jest":
|
| 282 |
+
return parse_jest(log)
|
| 283 |
+
return {}
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
# ---------------------------------------------------------------------------
|
| 287 |
+
# Grading
|
| 288 |
+
# ---------------------------------------------------------------------------
|
| 289 |
+
def _has_go_parent(name: str, status_map: dict[str, str]) -> bool:
|
| 290 |
+
"""Return True if a Go test has an ancestor represented in the status map."""
|
| 291 |
+
parts = name.split("/")
|
| 292 |
+
|
| 293 |
+
for i in range(1, len(parts)):
|
| 294 |
+
parent = "/".join(parts[:i])
|
| 295 |
+
if status_map.get(parent) == FAILED:
|
| 296 |
+
return True
|
| 297 |
+
|
| 298 |
+
return False
|
| 299 |
+
|
| 300 |
+
|
| 301 |
+
def grade(
|
| 302 |
+
fail_to_pass: list[str],
|
| 303 |
+
pass_to_pass: list[str],
|
| 304 |
+
status_map: dict[str, str],
|
| 305 |
+
runner: str | None = None,
|
| 306 |
+
) -> dict:
|
| 307 |
+
"""Compute the graded reward + strict resolved bool from a status map.
|
| 308 |
+
|
| 309 |
+
f2p_rate = (# F2P now PASSED) / (# F2P)
|
| 310 |
+
p2p_rate = (# P2P still PASSED) / (# P2P) [1.0 when no P2P]
|
| 311 |
+
reward = f2p_rate * p2p_rate (dense training signal)
|
| 312 |
+
resolved = all F2P pass AND all P2P pass (SWE-bench TRACKED resolution —
|
| 313 |
+
the gold patch always satisfies this, preserving the oracle
|
| 314 |
+
invariant)
|
| 315 |
+
|
| 316 |
+
Two distinct EVAL signals (see the audit's "tracked vs command resolved"):
|
| 317 |
+
* `resolved` — tracked resolution (above). Gold patch -> True.
|
| 318 |
+
* `command_resolved` — stricter: tracked resolution AND the selected test
|
| 319 |
+
command had NO failures outside F2P/P2P AND exit
|
| 320 |
+
code 0. Computed in main() where the exit code is
|
| 321 |
+
known. A benchmark that wants "the whole command
|
| 322 |
+
passed cleanly" gates on this; SWE-bench-style
|
| 323 |
+
scoring uses `resolved`.
|
| 324 |
+
|
| 325 |
+
`untracked_failed` are FAILED tests in the run that are neither F2P nor
|
| 326 |
+
P2P (e.g. always-failing/flaky tests pulled in by running a whole test
|
| 327 |
+
file). They don't change the graded `reward` or tracked `resolved`, but
|
| 328 |
+
they block `command_resolved` and are recorded for transparency.
|
| 329 |
+
"""
|
| 330 |
+
f2p_total = len(fail_to_pass)
|
| 331 |
+
p2p_total = len(pass_to_pass)
|
| 332 |
+
f2p_set = set(fail_to_pass)
|
| 333 |
+
p2p_set = set(pass_to_pass)
|
| 334 |
+
f2p_passed = sum(1 for t in fail_to_pass if status_map.get(t) == PASSED)
|
| 335 |
+
p2p_passed = sum(1 for t in pass_to_pass if status_map.get(t) == PASSED)
|
| 336 |
+
# Tests that should have stayed green but regressed (PASS->not-pass).
|
| 337 |
+
regressions = [t for t in pass_to_pass if status_map.get(t) != PASSED]
|
| 338 |
+
|
| 339 |
+
# FAILED tests outside the tracked sets — the selected command isn't clean.
|
| 340 |
+
if runner == "go":
|
| 341 |
+
failed_tests = {
|
| 342 |
+
t
|
| 343 |
+
for t, s in status_map.items()
|
| 344 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 345 |
+
}
|
| 346 |
+
|
| 347 |
+
untracked_failed = sorted(t for t in failed_tests if not _has_go_parent(t, status_map))
|
| 348 |
+
else:
|
| 349 |
+
untracked_failed = sorted(
|
| 350 |
+
t
|
| 351 |
+
for t, s in status_map.items()
|
| 352 |
+
if s == FAILED and t not in f2p_set and t not in p2p_set
|
| 353 |
+
)
|
| 354 |
+
|
| 355 |
+
f2p_rate = (f2p_passed / f2p_total) if f2p_total else 0.0
|
| 356 |
+
p2p_rate = (p2p_passed / p2p_total) if p2p_total else 1.0
|
| 357 |
+
reward = f2p_rate * p2p_rate
|
| 358 |
+
resolved = f2p_total > 0 and f2p_passed == f2p_total and p2p_passed == p2p_total
|
| 359 |
+
|
| 360 |
+
return {
|
| 361 |
+
"reward": round(max(0.0, min(1.0, reward)), 6),
|
| 362 |
+
"resolved": resolved,
|
| 363 |
+
"f2p_total": f2p_total,
|
| 364 |
+
"f2p_passed": f2p_passed,
|
| 365 |
+
"f2p_rate": round(f2p_rate, 6),
|
| 366 |
+
"p2p_total": p2p_total,
|
| 367 |
+
"p2p_passed": p2p_passed,
|
| 368 |
+
"p2p_rate": round(p2p_rate, 6),
|
| 369 |
+
"regressions": sorted(regressions),
|
| 370 |
+
"untracked_failed_count": len(untracked_failed),
|
| 371 |
+
"untracked_failed": untracked_failed[:20], # cap the list
|
| 372 |
+
}
|
| 373 |
+
|
| 374 |
+
|
| 375 |
+
# ---------------------------------------------------------------------------
|
| 376 |
+
# Entry point (invoked by tests/test.sh inside the container)
|
| 377 |
+
# ---------------------------------------------------------------------------
|
| 378 |
+
|
| 379 |
+
|
| 380 |
+
def _read_json_list(path: str) -> list[str]:
|
| 381 |
+
try:
|
| 382 |
+
with open(path, encoding="utf-8") as f:
|
| 383 |
+
data = json.load(f)
|
| 384 |
+
return [str(x) for x in data] if isinstance(data, list) else []
|
| 385 |
+
except (OSError, ValueError):
|
| 386 |
+
return []
|
| 387 |
+
|
| 388 |
+
|
| 389 |
+
def _read_text(path: str) -> str:
|
| 390 |
+
try:
|
| 391 |
+
with open(path, encoding="utf-8") as f:
|
| 392 |
+
return f.read()
|
| 393 |
+
except (OSError, UnicodeDecodeError):
|
| 394 |
+
return ""
|
| 395 |
+
|
| 396 |
+
|
| 397 |
+
def main(argv: list[str] | None = None) -> int:
|
| 398 |
+
p = argparse.ArgumentParser(description="pr_runtime graded F2P/P2P verifier")
|
| 399 |
+
p.add_argument("--log", required=True, help="captured test-run log file")
|
| 400 |
+
p.add_argument("--f2p", required=True, help="JSON file: FAIL_TO_PASS test names")
|
| 401 |
+
p.add_argument("--p2p", required=True, help="JSON file: PASS_TO_PASS test names")
|
| 402 |
+
p.add_argument("--runner", default="", help="pytest|go|cargo|jest (else auto-detect)")
|
| 403 |
+
p.add_argument("--test-cmds", default="", help="test command string (runner auto-detect)")
|
| 404 |
+
p.add_argument("--exit-code", type=int, default=1, help="test suite exit code (fallback)")
|
| 405 |
+
p.add_argument("--out-dir", default="/logs/verifier", help="where to write reward.{txt,json}")
|
| 406 |
+
args = p.parse_args(argv)
|
| 407 |
+
|
| 408 |
+
log = _read_text(args.log)
|
| 409 |
+
f2p = _read_json_list(args.f2p)
|
| 410 |
+
p2p = _read_json_list(args.p2p)
|
| 411 |
+
runner = args.runner.strip() or _detect_runner(args.test_cmds)
|
| 412 |
+
|
| 413 |
+
status_map = parse_logs(runner, log)
|
| 414 |
+
|
| 415 |
+
if not status_map:
|
| 416 |
+
# Unparseable runner output → fall back to the binary exit-code reward
|
| 417 |
+
# (a coarse TRAINING signal) so we never silently zero a real fix on an
|
| 418 |
+
# unrecognized format. But `resolved` is the strict EVAL signal: without
|
| 419 |
+
# parsed per-test status we have NO evidence the declared FAIL_TO_PASS
|
| 420 |
+
# tests passed, so when an F2P oracle exists we must NOT claim resolved.
|
| 421 |
+
# (resolved stays exit-code-based only when there's no declared oracle,
|
| 422 |
+
# e.g. --skip-validation.)
|
| 423 |
+
reward = 1.0 if args.exit_code == 0 else 0.0
|
| 424 |
+
has_oracle = len(f2p) > 0
|
| 425 |
+
resolved = (args.exit_code == 0) and not has_oracle
|
| 426 |
+
breakdown = {
|
| 427 |
+
"reward": reward,
|
| 428 |
+
"resolved": resolved,
|
| 429 |
+
"command_resolved": bool(resolved and args.exit_code == 0),
|
| 430 |
+
"parse_status": "fallback_exitcode",
|
| 431 |
+
"eval_trustworthy": not has_oracle,
|
| 432 |
+
"runner": runner,
|
| 433 |
+
"f2p_total": len(f2p),
|
| 434 |
+
"p2p_total": len(p2p),
|
| 435 |
+
"exit_code": args.exit_code,
|
| 436 |
+
}
|
| 437 |
+
else:
|
| 438 |
+
breakdown = grade(f2p, p2p, status_map, runner)
|
| 439 |
+
breakdown["parse_status"] = "ok"
|
| 440 |
+
breakdown["runner"] = runner
|
| 441 |
+
breakdown["tests_parsed"] = len(status_map)
|
| 442 |
+
breakdown["exit_code"] = args.exit_code
|
| 443 |
+
# Strict eval signal: tracked resolution AND a clean command (no
|
| 444 |
+
# untracked failures, exit code 0). Benchmarks wanting "the whole test
|
| 445 |
+
# command passed" gate on this; SWE-bench-style scoring uses `resolved`.
|
| 446 |
+
breakdown["command_resolved"] = bool(
|
| 447 |
+
breakdown["resolved"]
|
| 448 |
+
and breakdown["untracked_failed_count"] == 0
|
| 449 |
+
and args.exit_code == 0
|
| 450 |
+
)
|
| 451 |
+
reward = breakdown["reward"]
|
| 452 |
+
|
| 453 |
+
os.makedirs(args.out_dir, exist_ok=True)
|
| 454 |
+
with open(os.path.join(args.out_dir, "reward.txt"), "w", encoding="utf-8") as f:
|
| 455 |
+
f.write(f"{reward:.6f}\n")
|
| 456 |
+
with open(os.path.join(args.out_dir, "reward-details.json"), "w", encoding="utf-8") as f:
|
| 457 |
+
json.dump(breakdown, f, indent=2)
|
| 458 |
+
|
| 459 |
+
print(json.dumps(breakdown, indent=2))
|
| 460 |
+
return 0
|
| 461 |
+
|
| 462 |
+
|
| 463 |
+
if __name__ == "__main__":
|
| 464 |
+
sys.exit(main())
|
| 465 |
+
|
| 466 |
+
|
| 467 |
+
__all__ = [
|
| 468 |
+
"grade",
|
| 469 |
+
"main",
|
| 470 |
+
"parse_cargo_test",
|
| 471 |
+
"parse_go_test",
|
| 472 |
+
"parse_jest",
|
| 473 |
+
"parse_logs",
|
| 474 |
+
"parse_pytest",
|
| 475 |
+
]
|
heldout_pool/frostming__marko-b5a628f28dbd/environment/Dockerfile
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv pr_runtime
|
| 2 |
+
FROM local/frostming__marko
|
| 3 |
+
WORKDIR /workspace
|
| 4 |
+
# Defensive: ensure git is on PATH at build time. Bootstrap base
|
| 5 |
+
# images vary — some (Python slim) don't ship git; some agents
|
| 6 |
+
# install it; others don't. Re-installing is a no-op when already
|
| 7 |
+
# present. Tries apt-get first (Debian/Ubuntu), then apk (Alpine).
|
| 8 |
+
# Install git + ca-certificates. Minimal images (node:alpine) ship
|
| 9 |
+
# without CA certs, so HTTPS git fetch fails verification.
|
| 10 |
+
RUN (command -v git >/dev/null 2>&1 && [ -e /etc/ssl/certs/ca-certificates.crt ]) || \
|
| 11 |
+
(apt-get update && apt-get install -y --no-install-recommends git ca-certificates \
|
| 12 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 13 |
+
(apk add --no-cache git ca-certificates && update-ca-certificates) || true
|
| 14 |
+
# Defensive: the graded F2P/P2P verifier is Python.
|
| 15 |
+
# Language-specific bootstrap images (Go/Rust/Node) may not
|
| 16 |
+
# ship python3 — install it so test.sh can score F2P/P2P. No-op when
|
| 17 |
+
# python3 is already present (every Python-repo image has it).
|
| 18 |
+
RUN command -v python3 >/dev/null 2>&1 || \
|
| 19 |
+
(apt-get update && apt-get install -y --no-install-recommends python3 \
|
| 20 |
+
&& rm -rf /var/lib/apt/lists/*) || \
|
| 21 |
+
apk add --no-cache python3 || true
|
| 22 |
+
# Position the working tree at the PR's base commit so subsequent
|
| 23 |
+
# model-patch applications align with the line context the patch
|
| 24 |
+
# was authored against. The fetch is a no-op if the commit is
|
| 25 |
+
# already in the shallow clone.
|
| 26 |
+
RUN git config --global --add safe.directory /workspace \
|
| 27 |
+
&& git fetch --depth 1 origin 3a39989a01d34324809898243eb78c102174efd8 2>/dev/null \
|
| 28 |
+
|| git fetch --unshallow origin 2>/dev/null || true
|
| 29 |
+
RUN git reset --hard 3a39989a01d34324809898243eb78c102174efd8 && git clean -fdx -e .venv -e venv -e __pycache__ -e .tox -e node_modules -e target -e vendor -e .gradle -e .next -e .pytest_cache
|
| 30 |
+
RUN git checkout -q -B base 3a39989a01d34324809898243eb78c102174efd8 \
|
| 31 |
+
&& git remote remove origin 2>/dev/null || true
|
| 32 |
+
RUN for ref in $(git branch --format='%(refname:short)' | grep -vx base); do git branch -D "$ref" 2>/dev/null || true; done \
|
| 33 |
+
&& git tag -l | xargs -r git tag -d >/dev/null 2>&1 || true \
|
| 34 |
+
&& git for-each-ref --format='%(refname)' refs/remotes 2>/dev/null | xargs -r -n1 git update-ref -d 2>/dev/null || true \
|
| 35 |
+
&& git reflog expire --expire=now --all 2>/dev/null || true \
|
| 36 |
+
&& git gc --prune=now 2>/dev/null || true
|
heldout_pool/frostming__marko-b5a628f28dbd/environment/docker-compose.yaml
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Auto-generated by Repo2RLEnv: anti-contamination egress guard.
|
| 2 |
+
# Blackholes the hosts that serve this repo's published fix and hidden
|
| 3 |
+
# tests, so an agent cannot fetch the answer (pip download / git fetch /
|
| 4 |
+
# WebFetch against these fail). General internet stays up so the agent
|
| 5 |
+
# can install itself and reach its model API. See pipelines/_env_guard.py.
|
| 6 |
+
services:
|
| 7 |
+
main:
|
| 8 |
+
extra_hosts:
|
| 9 |
+
- "pypi.org:0.0.0.0"
|
| 10 |
+
- "pypi.python.org:0.0.0.0"
|
| 11 |
+
- "files.pythonhosted.org:0.0.0.0"
|
| 12 |
+
- "github.com:0.0.0.0"
|
| 13 |
+
- "api.github.com:0.0.0.0"
|
| 14 |
+
- "raw.githubusercontent.com:0.0.0.0"
|
| 15 |
+
- "codeload.github.com:0.0.0.0"
|
| 16 |
+
- "objects.githubusercontent.com:0.0.0.0"
|
heldout_pool/frostming__marko-b5a628f28dbd/instruction.md
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Issue
|
| 2 |
+
|
| 3 |
+
**Title:** Links with line breaks in their text do not render correctly
|
| 4 |
+
|
| 5 |
+
## Description
|
| 6 |
+
When a Markdown link's display text contains a line break, the link fails to render as a single, clickable entity. For example, `[This is a\nmulti-line link text](https://example.com)` results in a broken or partially rendered link. The expected behavior is for the entire text, including the line break, to form a single, clickable link to the specified URL.
|
| 7 |
+
|
| 8 |
+
## Task
|
| 9 |
+
|
| 10 |
+
Modify the repository so that the issue described above is resolved. The task's test suite verifies your patch by applying it on top of the base commit `3a39989a01d3` and running the modified tests.
|
heldout_pool/frostming__marko-b5a628f28dbd/solution/patch.diff
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
diff --git a/CHANGELOG.md b/CHANGELOG.md
|
| 2 |
+
index a39481c..a338c44 100644
|
| 3 |
+
--- a/CHANGELOG.md
|
| 4 |
+
+++ b/CHANGELOG.md
|
| 5 |
+
@@ -1,3 +1,7 @@
|
| 6 |
+
+## Unreleased
|
| 7 |
+
+
|
| 8 |
+
+- Fix a rendering bug when line breaks exist in a link text. [#126](https://github.com/frostming/marko/issue/126)
|
| 9 |
+
+
|
| 10 |
+
## v1.2.2(2022-09-22)
|
| 11 |
+
|
| 12 |
+
- Fix a bug of markdown renderer, the ordered list index isn't increasing. [#112](https://github.com/frostming/marko/pull/112)
|
| 13 |
+
diff --git a/marko/inline.py b/marko/inline.py
|
| 14 |
+
index f497132..a1fc175 100644
|
| 15 |
+
--- a/marko/inline.py
|
| 16 |
+
+++ b/marko/inline.py
|
| 17 |
+
@@ -80,6 +80,7 @@ class LineBreak(InlineElement):
|
| 18 |
+
|
| 19 |
+
def __init__(self, match: "_Match") -> None:
|
| 20 |
+
self.soft = not match.group(1).startswith((" ", "\\"))
|
| 21 |
+
+ self.children = "\n"
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
class InlineHTML(InlineElement):
|
| 25 |
+
@@ -190,9 +191,6 @@ class RawText(InlineElement):
|
| 26 |
+
|
| 27 |
+
virtual = True
|
| 28 |
+
|
| 29 |
+
- if TYPE_CHECKING:
|
| 30 |
+
- children: str
|
| 31 |
+
-
|
| 32 |
+
def __init__(self, match: str, escape: bool = True) -> None:
|
| 33 |
+
self.children = match
|
| 34 |
+
self.escape = escape
|
heldout_pool/frostming__marko-b5a628f28dbd/solution/solve.sh
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/bin/bash
|
| 2 |
+
set -euxo pipefail
|
| 3 |
+
cd /workspace
|
| 4 |
+
git config --global --add safe.directory /workspace
|
| 5 |
+
PATCH="$(dirname "$0")/patch.diff"
|
| 6 |
+
git apply --verbose --reject "$PATCH"
|
heldout_pool/frostming__marko-b5a628f28dbd/task.toml
ADDED
|
@@ -0,0 +1,776 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version = "1.0"
|
| 2 |
+
|
| 3 |
+
[task]
|
| 4 |
+
name = "commit-runtime/frostming__marko-b5a628f28dbd"
|
| 5 |
+
description = "rendering link with line breaks in the link text Fix #126"
|
| 6 |
+
|
| 7 |
+
[metadata]
|
| 8 |
+
difficulty = "small"
|
| 9 |
+
category = "bugfix"
|
| 10 |
+
keywords = [
|
| 11 |
+
"marko",
|
| 12 |
+
"commit_runtime",
|
| 13 |
+
]
|
| 14 |
+
|
| 15 |
+
[metadata.repo2env]
|
| 16 |
+
pipeline = "commit_runtime"
|
| 17 |
+
pipeline_version = "0.8.3"
|
| 18 |
+
repo = "frostming/marko"
|
| 19 |
+
ref = "3a39989a01d34324809898243eb78c102174efd8"
|
| 20 |
+
reference = "https://github.com/frostming/marko/commit/b5a628f28dbd2957b5263fd76839eacb3eee001f"
|
| 21 |
+
source_access = "public"
|
| 22 |
+
built_at = "2026-09-24T13:20:09.271533+00:00"
|
| 23 |
+
synthesis_llm = "gemini/gemini-2.5-flash"
|
| 24 |
+
reward_kinds = [
|
| 25 |
+
"test_execution",
|
| 26 |
+
"diff_similarity",
|
| 27 |
+
]
|
| 28 |
+
spec_version = "0.2.0"
|
| 29 |
+
content_hash = "sha256:a76f48ab97bc7b381ccc8c39895eac40aa914cb6f91d9334ef3e98bb654590b1"
|
| 30 |
+
|
| 31 |
+
[metadata.repo2env.commit_runtime]
|
| 32 |
+
commit_sha = "b5a628f28dbd2957b5263fd76839eacb3eee001f"
|
| 33 |
+
parent_sha = "3a39989a01d34324809898243eb78c102174efd8"
|
| 34 |
+
authored_at = "2022-12-02T10:06:06+08:00"
|
| 35 |
+
author_email = "me@frostming.com"
|
| 36 |
+
subject = "fix: rendering link with line breaks in the link text Fix #126"
|
| 37 |
+
fail_to_pass = [
|
| 38 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_001",
|
| 39 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_002",
|
| 40 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_003",
|
| 41 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_004",
|
| 42 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_005",
|
| 43 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_006",
|
| 44 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_007",
|
| 45 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_008",
|
| 46 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_009",
|
| 47 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_010",
|
| 48 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_011",
|
| 49 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_012",
|
| 50 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_013",
|
| 51 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_014",
|
| 52 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_015",
|
| 53 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_016",
|
| 54 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_017",
|
| 55 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_018",
|
| 56 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_001",
|
| 57 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_002",
|
| 58 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_003",
|
| 59 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_004",
|
| 60 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_005",
|
| 61 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_006",
|
| 62 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_007",
|
| 63 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_008",
|
| 64 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_009",
|
| 65 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_010",
|
| 66 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_011",
|
| 67 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_012",
|
| 68 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_013",
|
| 69 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_014",
|
| 70 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_015",
|
| 71 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_016",
|
| 72 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_017",
|
| 73 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_018",
|
| 74 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_019",
|
| 75 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_001",
|
| 76 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_002",
|
| 77 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_003",
|
| 78 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_004",
|
| 79 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_005",
|
| 80 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_006",
|
| 81 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_007",
|
| 82 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_008",
|
| 83 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_009",
|
| 84 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_010",
|
| 85 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_011",
|
| 86 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_012",
|
| 87 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_013",
|
| 88 |
+
"tests/test_spec.py::TestCommonMark::test_blank_lines_001",
|
| 89 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_001",
|
| 90 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_002",
|
| 91 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_003",
|
| 92 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_004",
|
| 93 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_005",
|
| 94 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_006",
|
| 95 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_007",
|
| 96 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_008",
|
| 97 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_009",
|
| 98 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_010",
|
| 99 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_011",
|
| 100 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_012",
|
| 101 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_013",
|
| 102 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_014",
|
| 103 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_015",
|
| 104 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_016",
|
| 105 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_017",
|
| 106 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_018",
|
| 107 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_019",
|
| 108 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_020",
|
| 109 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_021",
|
| 110 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_022",
|
| 111 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_023",
|
| 112 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_024",
|
| 113 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_025",
|
| 114 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_001",
|
| 115 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_002",
|
| 116 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_003",
|
| 117 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_004",
|
| 118 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_005",
|
| 119 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_006",
|
| 120 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_007",
|
| 121 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_008",
|
| 122 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_009",
|
| 123 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_010",
|
| 124 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_011",
|
| 125 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_012",
|
| 126 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_013",
|
| 127 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_014",
|
| 128 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_015",
|
| 129 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_016",
|
| 130 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_017",
|
| 131 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_018",
|
| 132 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_019",
|
| 133 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_020",
|
| 134 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_021",
|
| 135 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_022",
|
| 136 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_001",
|
| 137 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_002",
|
| 138 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_003",
|
| 139 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_004",
|
| 140 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_005",
|
| 141 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_006",
|
| 142 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_007",
|
| 143 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_008",
|
| 144 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_009",
|
| 145 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_010",
|
| 146 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_011",
|
| 147 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_012",
|
| 148 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_013",
|
| 149 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_014",
|
| 150 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_015",
|
| 151 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_016",
|
| 152 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_017",
|
| 153 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_018",
|
| 154 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_019",
|
| 155 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_020",
|
| 156 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_021",
|
| 157 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_022",
|
| 158 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_023",
|
| 159 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_024",
|
| 160 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_025",
|
| 161 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_026",
|
| 162 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_027",
|
| 163 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_028",
|
| 164 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_029",
|
| 165 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_030",
|
| 166 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_031",
|
| 167 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_032",
|
| 168 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_033",
|
| 169 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_034",
|
| 170 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_035",
|
| 171 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_036",
|
| 172 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_037",
|
| 173 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_038",
|
| 174 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_039",
|
| 175 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_040",
|
| 176 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_041",
|
| 177 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_042",
|
| 178 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_043",
|
| 179 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_044",
|
| 180 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_045",
|
| 181 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_046",
|
| 182 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_047",
|
| 183 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_048",
|
| 184 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_049",
|
| 185 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_050",
|
| 186 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_051",
|
| 187 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_052",
|
| 188 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_053",
|
| 189 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_054",
|
| 190 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_055",
|
| 191 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_056",
|
| 192 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_057",
|
| 193 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_058",
|
| 194 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_059",
|
| 195 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_060",
|
| 196 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_061",
|
| 197 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_062",
|
| 198 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_063",
|
| 199 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_064",
|
| 200 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_065",
|
| 201 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_066",
|
| 202 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_067",
|
| 203 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_068",
|
| 204 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_069",
|
| 205 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_070",
|
| 206 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_071",
|
| 207 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_072",
|
| 208 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_073",
|
| 209 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_074",
|
| 210 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_075",
|
| 211 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_076",
|
| 212 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_077",
|
| 213 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_078",
|
| 214 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_079",
|
| 215 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_080",
|
| 216 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_081",
|
| 217 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_082",
|
| 218 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_083",
|
| 219 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_084",
|
| 220 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_085",
|
| 221 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_086",
|
| 222 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_087",
|
| 223 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_088",
|
| 224 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_089",
|
| 225 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_090",
|
| 226 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_091",
|
| 227 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_092",
|
| 228 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_093",
|
| 229 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_094",
|
| 230 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_095",
|
| 231 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_096",
|
| 232 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_097",
|
| 233 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_098",
|
| 234 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_099",
|
| 235 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_100",
|
| 236 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_101",
|
| 237 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_102",
|
| 238 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_103",
|
| 239 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_104",
|
| 240 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_105",
|
| 241 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_106",
|
| 242 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_107",
|
| 243 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_108",
|
| 244 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_109",
|
| 245 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_110",
|
| 246 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_111",
|
| 247 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_112",
|
| 248 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_113",
|
| 249 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_114",
|
| 250 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_115",
|
| 251 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_116",
|
| 252 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_117",
|
| 253 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_118",
|
| 254 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_119",
|
| 255 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_120",
|
| 256 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_121",
|
| 257 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_122",
|
| 258 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_123",
|
| 259 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_124",
|
| 260 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_125",
|
| 261 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_126",
|
| 262 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_127",
|
| 263 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_128",
|
| 264 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_129",
|
| 265 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_130",
|
| 266 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_131",
|
| 267 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_001",
|
| 268 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_002",
|
| 269 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_003",
|
| 270 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_004",
|
| 271 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_005",
|
| 272 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_006",
|
| 273 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_007",
|
| 274 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_008",
|
| 275 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_009",
|
| 276 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_010",
|
| 277 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_011",
|
| 278 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_012",
|
| 279 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_013",
|
| 280 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_014",
|
| 281 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_015",
|
| 282 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_016",
|
| 283 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_017",
|
| 284 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_001",
|
| 285 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_002",
|
| 286 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_003",
|
| 287 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_004",
|
| 288 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_005",
|
| 289 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_006",
|
| 290 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_007",
|
| 291 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_008",
|
| 292 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_009",
|
| 293 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_010",
|
| 294 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_011",
|
| 295 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_012",
|
| 296 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_013",
|
| 297 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_014",
|
| 298 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_015",
|
| 299 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_016",
|
| 300 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_017",
|
| 301 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_018",
|
| 302 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_019",
|
| 303 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_020",
|
| 304 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_021",
|
| 305 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_022",
|
| 306 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_023",
|
| 307 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_024",
|
| 308 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_025",
|
| 309 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_026",
|
| 310 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_027",
|
| 311 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_028",
|
| 312 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_029",
|
| 313 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_001",
|
| 314 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_002",
|
| 315 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_003",
|
| 316 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_004",
|
| 317 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_005",
|
| 318 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_006",
|
| 319 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_007",
|
| 320 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_008",
|
| 321 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_009",
|
| 322 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_010",
|
| 323 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_011",
|
| 324 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_012",
|
| 325 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_013",
|
| 326 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_014",
|
| 327 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_015",
|
| 328 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_001",
|
| 329 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_002",
|
| 330 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_003",
|
| 331 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_004",
|
| 332 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_005",
|
| 333 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_006",
|
| 334 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_007",
|
| 335 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_008",
|
| 336 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_009",
|
| 337 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_010",
|
| 338 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_011",
|
| 339 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_012",
|
| 340 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_013",
|
| 341 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_014",
|
| 342 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_015",
|
| 343 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_016",
|
| 344 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_017",
|
| 345 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_018",
|
| 346 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_019",
|
| 347 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_020",
|
| 348 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_021",
|
| 349 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_022",
|
| 350 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_023",
|
| 351 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_024",
|
| 352 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_025",
|
| 353 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_026",
|
| 354 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_027",
|
| 355 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_028",
|
| 356 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_029",
|
| 357 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_030",
|
| 358 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_031",
|
| 359 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_032",
|
| 360 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_033",
|
| 361 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_034",
|
| 362 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_035",
|
| 363 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_036",
|
| 364 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_037",
|
| 365 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_038",
|
| 366 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_039",
|
| 367 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_040",
|
| 368 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_041",
|
| 369 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_042",
|
| 370 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_043",
|
| 371 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_044",
|
| 372 |
+
"tests/test_spec.py::TestCommonMark::test_images_001",
|
| 373 |
+
"tests/test_spec.py::TestCommonMark::test_images_002",
|
| 374 |
+
"tests/test_spec.py::TestCommonMark::test_images_003",
|
| 375 |
+
"tests/test_spec.py::TestCommonMark::test_images_004",
|
| 376 |
+
"tests/test_spec.py::TestCommonMark::test_images_005",
|
| 377 |
+
"tests/test_spec.py::TestCommonMark::test_images_006",
|
| 378 |
+
"tests/test_spec.py::TestCommonMark::test_images_007",
|
| 379 |
+
"tests/test_spec.py::TestCommonMark::test_images_008",
|
| 380 |
+
"tests/test_spec.py::TestCommonMark::test_images_009",
|
| 381 |
+
"tests/test_spec.py::TestCommonMark::test_images_010",
|
| 382 |
+
"tests/test_spec.py::TestCommonMark::test_images_011",
|
| 383 |
+
"tests/test_spec.py::TestCommonMark::test_images_012",
|
| 384 |
+
"tests/test_spec.py::TestCommonMark::test_images_013",
|
| 385 |
+
"tests/test_spec.py::TestCommonMark::test_images_014",
|
| 386 |
+
"tests/test_spec.py::TestCommonMark::test_images_015",
|
| 387 |
+
"tests/test_spec.py::TestCommonMark::test_images_016",
|
| 388 |
+
"tests/test_spec.py::TestCommonMark::test_images_017",
|
| 389 |
+
"tests/test_spec.py::TestCommonMark::test_images_018",
|
| 390 |
+
"tests/test_spec.py::TestCommonMark::test_images_019",
|
| 391 |
+
"tests/test_spec.py::TestCommonMark::test_images_020",
|
| 392 |
+
"tests/test_spec.py::TestCommonMark::test_images_021",
|
| 393 |
+
"tests/test_spec.py::TestCommonMark::test_images_022",
|
| 394 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_001",
|
| 395 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_002",
|
| 396 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_003",
|
| 397 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_004",
|
| 398 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_005",
|
| 399 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_006",
|
| 400 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_007",
|
| 401 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_008",
|
| 402 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_009",
|
| 403 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_010",
|
| 404 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_011",
|
| 405 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_012",
|
| 406 |
+
"tests/test_spec.py::TestCommonMark::test_inlines_001",
|
| 407 |
+
"tests/test_spec.py::TestCommonMark::test_line_break_in_link_text",
|
| 408 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_001",
|
| 409 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_002",
|
| 410 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_003",
|
| 411 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_004",
|
| 412 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_005",
|
| 413 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_006",
|
| 414 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_007",
|
| 415 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_008",
|
| 416 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_009",
|
| 417 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_010",
|
| 418 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_011",
|
| 419 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_012",
|
| 420 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_013",
|
| 421 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_014",
|
| 422 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_015",
|
| 423 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_016",
|
| 424 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_017",
|
| 425 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_018",
|
| 426 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_019",
|
| 427 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_020",
|
| 428 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_021",
|
| 429 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_022",
|
| 430 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_023",
|
| 431 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_024",
|
| 432 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_025",
|
| 433 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_026",
|
| 434 |
+
"tests/test_spec.py::TestCommonMark::test_links_001",
|
| 435 |
+
"tests/test_spec.py::TestCommonMark::test_links_002",
|
| 436 |
+
"tests/test_spec.py::TestCommonMark::test_links_003",
|
| 437 |
+
"tests/test_spec.py::TestCommonMark::test_links_004",
|
| 438 |
+
"tests/test_spec.py::TestCommonMark::test_links_005",
|
| 439 |
+
"tests/test_spec.py::TestCommonMark::test_links_006",
|
| 440 |
+
"tests/test_spec.py::TestCommonMark::test_links_007",
|
| 441 |
+
"tests/test_spec.py::TestCommonMark::test_links_008",
|
| 442 |
+
"tests/test_spec.py::TestCommonMark::test_links_009",
|
| 443 |
+
"tests/test_spec.py::TestCommonMark::test_links_010",
|
| 444 |
+
"tests/test_spec.py::TestCommonMark::test_links_011",
|
| 445 |
+
"tests/test_spec.py::TestCommonMark::test_links_012",
|
| 446 |
+
"tests/test_spec.py::TestCommonMark::test_links_013",
|
| 447 |
+
"tests/test_spec.py::TestCommonMark::test_links_014",
|
| 448 |
+
"tests/test_spec.py::TestCommonMark::test_links_015",
|
| 449 |
+
"tests/test_spec.py::TestCommonMark::test_links_016",
|
| 450 |
+
"tests/test_spec.py::TestCommonMark::test_links_017",
|
| 451 |
+
"tests/test_spec.py::TestCommonMark::test_links_018",
|
| 452 |
+
"tests/test_spec.py::TestCommonMark::test_links_019",
|
| 453 |
+
"tests/test_spec.py::TestCommonMark::test_links_020",
|
| 454 |
+
"tests/test_spec.py::TestCommonMark::test_links_021",
|
| 455 |
+
"tests/test_spec.py::TestCommonMark::test_links_022",
|
| 456 |
+
"tests/test_spec.py::TestCommonMark::test_links_023",
|
| 457 |
+
"tests/test_spec.py::TestCommonMark::test_links_024",
|
| 458 |
+
"tests/test_spec.py::TestCommonMark::test_links_025",
|
| 459 |
+
"tests/test_spec.py::TestCommonMark::test_links_026",
|
| 460 |
+
"tests/test_spec.py::TestCommonMark::test_links_027",
|
| 461 |
+
"tests/test_spec.py::TestCommonMark::test_links_028",
|
| 462 |
+
"tests/test_spec.py::TestCommonMark::test_links_029",
|
| 463 |
+
"tests/test_spec.py::TestCommonMark::test_links_030",
|
| 464 |
+
"tests/test_spec.py::TestCommonMark::test_links_031",
|
| 465 |
+
"tests/test_spec.py::TestCommonMark::test_links_032",
|
| 466 |
+
"tests/test_spec.py::TestCommonMark::test_links_033",
|
| 467 |
+
"tests/test_spec.py::TestCommonMark::test_links_034",
|
| 468 |
+
"tests/test_spec.py::TestCommonMark::test_links_035",
|
| 469 |
+
"tests/test_spec.py::TestCommonMark::test_links_036",
|
| 470 |
+
"tests/test_spec.py::TestCommonMark::test_links_037",
|
| 471 |
+
"tests/test_spec.py::TestCommonMark::test_links_038",
|
| 472 |
+
"tests/test_spec.py::TestCommonMark::test_links_039",
|
| 473 |
+
"tests/test_spec.py::TestCommonMark::test_links_040",
|
| 474 |
+
"tests/test_spec.py::TestCommonMark::test_links_041",
|
| 475 |
+
"tests/test_spec.py::TestCommonMark::test_links_042",
|
| 476 |
+
"tests/test_spec.py::TestCommonMark::test_links_043",
|
| 477 |
+
"tests/test_spec.py::TestCommonMark::test_links_044",
|
| 478 |
+
"tests/test_spec.py::TestCommonMark::test_links_045",
|
| 479 |
+
"tests/test_spec.py::TestCommonMark::test_links_046",
|
| 480 |
+
"tests/test_spec.py::TestCommonMark::test_links_047",
|
| 481 |
+
"tests/test_spec.py::TestCommonMark::test_links_048",
|
| 482 |
+
"tests/test_spec.py::TestCommonMark::test_links_049",
|
| 483 |
+
"tests/test_spec.py::TestCommonMark::test_links_050",
|
| 484 |
+
"tests/test_spec.py::TestCommonMark::test_links_051",
|
| 485 |
+
"tests/test_spec.py::TestCommonMark::test_links_052",
|
| 486 |
+
"tests/test_spec.py::TestCommonMark::test_links_053",
|
| 487 |
+
"tests/test_spec.py::TestCommonMark::test_links_054",
|
| 488 |
+
"tests/test_spec.py::TestCommonMark::test_links_055",
|
| 489 |
+
"tests/test_spec.py::TestCommonMark::test_links_056",
|
| 490 |
+
"tests/test_spec.py::TestCommonMark::test_links_057",
|
| 491 |
+
"tests/test_spec.py::TestCommonMark::test_links_058",
|
| 492 |
+
"tests/test_spec.py::TestCommonMark::test_links_059",
|
| 493 |
+
"tests/test_spec.py::TestCommonMark::test_links_060",
|
| 494 |
+
"tests/test_spec.py::TestCommonMark::test_links_061",
|
| 495 |
+
"tests/test_spec.py::TestCommonMark::test_links_062",
|
| 496 |
+
"tests/test_spec.py::TestCommonMark::test_links_063",
|
| 497 |
+
"tests/test_spec.py::TestCommonMark::test_links_064",
|
| 498 |
+
"tests/test_spec.py::TestCommonMark::test_links_065",
|
| 499 |
+
"tests/test_spec.py::TestCommonMark::test_links_066",
|
| 500 |
+
"tests/test_spec.py::TestCommonMark::test_links_067",
|
| 501 |
+
"tests/test_spec.py::TestCommonMark::test_links_068",
|
| 502 |
+
"tests/test_spec.py::TestCommonMark::test_links_069",
|
| 503 |
+
"tests/test_spec.py::TestCommonMark::test_links_070",
|
| 504 |
+
"tests/test_spec.py::TestCommonMark::test_links_071",
|
| 505 |
+
"tests/test_spec.py::TestCommonMark::test_links_072",
|
| 506 |
+
"tests/test_spec.py::TestCommonMark::test_links_073",
|
| 507 |
+
"tests/test_spec.py::TestCommonMark::test_links_074",
|
| 508 |
+
"tests/test_spec.py::TestCommonMark::test_links_075",
|
| 509 |
+
"tests/test_spec.py::TestCommonMark::test_links_076",
|
| 510 |
+
"tests/test_spec.py::TestCommonMark::test_links_077",
|
| 511 |
+
"tests/test_spec.py::TestCommonMark::test_links_078",
|
| 512 |
+
"tests/test_spec.py::TestCommonMark::test_links_079",
|
| 513 |
+
"tests/test_spec.py::TestCommonMark::test_links_080",
|
| 514 |
+
"tests/test_spec.py::TestCommonMark::test_links_081",
|
| 515 |
+
"tests/test_spec.py::TestCommonMark::test_links_082",
|
| 516 |
+
"tests/test_spec.py::TestCommonMark::test_links_083",
|
| 517 |
+
"tests/test_spec.py::TestCommonMark::test_links_084",
|
| 518 |
+
"tests/test_spec.py::TestCommonMark::test_links_085",
|
| 519 |
+
"tests/test_spec.py::TestCommonMark::test_links_086",
|
| 520 |
+
"tests/test_spec.py::TestCommonMark::test_links_087",
|
| 521 |
+
"tests/test_spec.py::TestCommonMark::test_links_088",
|
| 522 |
+
"tests/test_spec.py::TestCommonMark::test_links_089",
|
| 523 |
+
"tests/test_spec.py::TestCommonMark::test_links_090",
|
| 524 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_001",
|
| 525 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_002",
|
| 526 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_003",
|
| 527 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_004",
|
| 528 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_005",
|
| 529 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_006",
|
| 530 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_007",
|
| 531 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_008",
|
| 532 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_009",
|
| 533 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_010",
|
| 534 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_011",
|
| 535 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_012",
|
| 536 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_013",
|
| 537 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_014",
|
| 538 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_015",
|
| 539 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_016",
|
| 540 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_017",
|
| 541 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_018",
|
| 542 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_019",
|
| 543 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_020",
|
| 544 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_021",
|
| 545 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_022",
|
| 546 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_023",
|
| 547 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_024",
|
| 548 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_025",
|
| 549 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_026",
|
| 550 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_027",
|
| 551 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_028",
|
| 552 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_029",
|
| 553 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_030",
|
| 554 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_031",
|
| 555 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_032",
|
| 556 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_033",
|
| 557 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_034",
|
| 558 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_035",
|
| 559 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_036",
|
| 560 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_037",
|
| 561 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_038",
|
| 562 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_039",
|
| 563 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_040",
|
| 564 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_041",
|
| 565 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_042",
|
| 566 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_043",
|
| 567 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_044",
|
| 568 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_045",
|
| 569 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_046",
|
| 570 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_047",
|
| 571 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_048",
|
| 572 |
+
"tests/test_spec.py::TestCommonMark::test_lists_001",
|
| 573 |
+
"tests/test_spec.py::TestCommonMark::test_lists_002",
|
| 574 |
+
"tests/test_spec.py::TestCommonMark::test_lists_003",
|
| 575 |
+
"tests/test_spec.py::TestCommonMark::test_lists_004",
|
| 576 |
+
"tests/test_spec.py::TestCommonMark::test_lists_005",
|
| 577 |
+
"tests/test_spec.py::TestCommonMark::test_lists_006",
|
| 578 |
+
"tests/test_spec.py::TestCommonMark::test_lists_007",
|
| 579 |
+
"tests/test_spec.py::TestCommonMark::test_lists_008",
|
| 580 |
+
"tests/test_spec.py::TestCommonMark::test_lists_009",
|
| 581 |
+
"tests/test_spec.py::TestCommonMark::test_lists_010",
|
| 582 |
+
"tests/test_spec.py::TestCommonMark::test_lists_011",
|
| 583 |
+
"tests/test_spec.py::TestCommonMark::test_lists_012",
|
| 584 |
+
"tests/test_spec.py::TestCommonMark::test_lists_013",
|
| 585 |
+
"tests/test_spec.py::TestCommonMark::test_lists_014",
|
| 586 |
+
"tests/test_spec.py::TestCommonMark::test_lists_015",
|
| 587 |
+
"tests/test_spec.py::TestCommonMark::test_lists_016",
|
| 588 |
+
"tests/test_spec.py::TestCommonMark::test_lists_017",
|
| 589 |
+
"tests/test_spec.py::TestCommonMark::test_lists_018",
|
| 590 |
+
"tests/test_spec.py::TestCommonMark::test_lists_019",
|
| 591 |
+
"tests/test_spec.py::TestCommonMark::test_lists_020",
|
| 592 |
+
"tests/test_spec.py::TestCommonMark::test_lists_021",
|
| 593 |
+
"tests/test_spec.py::TestCommonMark::test_lists_022",
|
| 594 |
+
"tests/test_spec.py::TestCommonMark::test_lists_023",
|
| 595 |
+
"tests/test_spec.py::TestCommonMark::test_lists_024",
|
| 596 |
+
"tests/test_spec.py::TestCommonMark::test_lists_025",
|
| 597 |
+
"tests/test_spec.py::TestCommonMark::test_lists_026",
|
| 598 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_001",
|
| 599 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_002",
|
| 600 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_003",
|
| 601 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_004",
|
| 602 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_005",
|
| 603 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_006",
|
| 604 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_007",
|
| 605 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_008",
|
| 606 |
+
"tests/test_spec.py::TestCommonMark::test_precedence_001",
|
| 607 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_001",
|
| 608 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_002",
|
| 609 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_003",
|
| 610 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_004",
|
| 611 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_005",
|
| 612 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_006",
|
| 613 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_007",
|
| 614 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_008",
|
| 615 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_009",
|
| 616 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_010",
|
| 617 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_011",
|
| 618 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_012",
|
| 619 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_013",
|
| 620 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_014",
|
| 621 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_015",
|
| 622 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_016",
|
| 623 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_017",
|
| 624 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_018",
|
| 625 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_019",
|
| 626 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_020",
|
| 627 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_021",
|
| 628 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_001",
|
| 629 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_002",
|
| 630 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_003",
|
| 631 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_004",
|
| 632 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_005",
|
| 633 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_006",
|
| 634 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_007",
|
| 635 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_008",
|
| 636 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_009",
|
| 637 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_010",
|
| 638 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_011",
|
| 639 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_012",
|
| 640 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_013",
|
| 641 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_014",
|
| 642 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_015",
|
| 643 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_016",
|
| 644 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_017",
|
| 645 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_018",
|
| 646 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_019",
|
| 647 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_020",
|
| 648 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_021",
|
| 649 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_022",
|
| 650 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_023",
|
| 651 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_024",
|
| 652 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_025",
|
| 653 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_026",
|
| 654 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_027",
|
| 655 |
+
"tests/test_spec.py::TestCommonMark::test_soft_line_breaks_001",
|
| 656 |
+
"tests/test_spec.py::TestCommonMark::test_soft_line_breaks_002",
|
| 657 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_001",
|
| 658 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_002",
|
| 659 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_003",
|
| 660 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_004",
|
| 661 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_005",
|
| 662 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_006",
|
| 663 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_007",
|
| 664 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_008",
|
| 665 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_009",
|
| 666 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_010",
|
| 667 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_011",
|
| 668 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_001",
|
| 669 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_002",
|
| 670 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_003",
|
| 671 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_001",
|
| 672 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_002",
|
| 673 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_003",
|
| 674 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_004",
|
| 675 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_005",
|
| 676 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_006",
|
| 677 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_007",
|
| 678 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_008",
|
| 679 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_009",
|
| 680 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_010",
|
| 681 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_011",
|
| 682 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_012",
|
| 683 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_013",
|
| 684 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_014",
|
| 685 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_015",
|
| 686 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_016",
|
| 687 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_017",
|
| 688 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_018",
|
| 689 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_019",
|
| 690 |
+
]
|
| 691 |
+
pass_to_pass = [
|
| 692 |
+
"tests/test_spec.py::TestCommonMark::test_greedy_consume_prefix",
|
| 693 |
+
"tests/test_spec.py::TestCommonMark::test_mixed_tab_space_in_list_item",
|
| 694 |
+
"tests/test_spec.py::TestCommonMark::test_parse_nbsp_no_crash",
|
| 695 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_001",
|
| 696 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_002",
|
| 697 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_003",
|
| 698 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_004",
|
| 699 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_005",
|
| 700 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_006",
|
| 701 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_007",
|
| 702 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_008",
|
| 703 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_009",
|
| 704 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_010",
|
| 705 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_011",
|
| 706 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_012",
|
| 707 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_013",
|
| 708 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_014",
|
| 709 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_015",
|
| 710 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_016",
|
| 711 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_017",
|
| 712 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_018",
|
| 713 |
+
"tests/test_spec.py::TestGFM::test_autolinks_001",
|
| 714 |
+
"tests/test_spec.py::TestGFM::test_autolinks_002",
|
| 715 |
+
"tests/test_spec.py::TestGFM::test_autolinks_003",
|
| 716 |
+
"tests/test_spec.py::TestGFM::test_autolinks_004",
|
| 717 |
+
"tests/test_spec.py::TestGFM::test_autolinks_005",
|
| 718 |
+
"tests/test_spec.py::TestGFM::test_autolinks_006",
|
| 719 |
+
"tests/test_spec.py::TestGFM::test_autolinks_007",
|
| 720 |
+
"tests/test_spec.py::TestGFM::test_autolinks_008",
|
| 721 |
+
"tests/test_spec.py::TestGFM::test_autolinks_009",
|
| 722 |
+
"tests/test_spec.py::TestGFM::test_autolinks_010",
|
| 723 |
+
"tests/test_spec.py::TestGFM::test_autolinks_011",
|
| 724 |
+
"tests/test_spec.py::TestGFM::test_autolinks_012",
|
| 725 |
+
"tests/test_spec.py::TestGFM::test_autolinks_013",
|
| 726 |
+
"tests/test_spec.py::TestGFM::test_autolinks_014",
|
| 727 |
+
"tests/test_spec.py::TestGFM::test_autolinks_016",
|
| 728 |
+
"tests/test_spec.py::TestGFM::test_autolinks_017",
|
| 729 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_001",
|
| 730 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_002",
|
| 731 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_003",
|
| 732 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_004",
|
| 733 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_005",
|
| 734 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_006",
|
| 735 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_007",
|
| 736 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_008",
|
| 737 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_009",
|
| 738 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_010",
|
| 739 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_011",
|
| 740 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_012",
|
| 741 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_013",
|
| 742 |
+
]
|
| 743 |
+
validation_status = "verified"
|
| 744 |
+
bootstrap_image = "local-venv:frostming__marko"
|
| 745 |
+
instruction_synthesized = true
|
| 746 |
+
llm_cost_usd = 0.008464
|
| 747 |
+
|
| 748 |
+
[metadata.repo2env.reward_calibration]
|
| 749 |
+
f2p_count = 652
|
| 750 |
+
p2p_count = 50
|
| 751 |
+
source_files = 2
|
| 752 |
+
loc_changed = 8
|
| 753 |
+
difficulty = "small"
|
| 754 |
+
|
| 755 |
+
[metadata.repo2env.evaluation]
|
| 756 |
+
schema_version = "1"
|
| 757 |
+
status = "unverified"
|
| 758 |
+
stage = "generation"
|
| 759 |
+
reason_codes = [
|
| 760 |
+
"validation_not_run",
|
| 761 |
+
]
|
| 762 |
+
detail = "Generated task; validation has not been established."
|
| 763 |
+
provenance = "unknown"
|
| 764 |
+
evidence = []
|
| 765 |
+
|
| 766 |
+
[metadata.repo2env.reproducibility]
|
| 767 |
+
mode = "local_only"
|
| 768 |
+
image_ref = "local/frostming__marko"
|
| 769 |
+
image_tag = "local/frostming__marko"
|
| 770 |
+
image_visibility = "private"
|
| 771 |
+
|
| 772 |
+
[agent]
|
| 773 |
+
timeout_sec = 1800.0
|
| 774 |
+
|
| 775 |
+
[verifier]
|
| 776 |
+
timeout_sec = 300.0
|
heldout_pool/frostming__marko-b5a628f28dbd/tests/f2p.json
ADDED
|
@@ -0,0 +1,654 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_001",
|
| 3 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_002",
|
| 4 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_003",
|
| 5 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_004",
|
| 6 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_005",
|
| 7 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_006",
|
| 8 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_007",
|
| 9 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_008",
|
| 10 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_009",
|
| 11 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_010",
|
| 12 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_011",
|
| 13 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_012",
|
| 14 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_013",
|
| 15 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_014",
|
| 16 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_015",
|
| 17 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_016",
|
| 18 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_017",
|
| 19 |
+
"tests/test_spec.py::TestCommonMark::test_atx_headings_018",
|
| 20 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_001",
|
| 21 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_002",
|
| 22 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_003",
|
| 23 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_004",
|
| 24 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_005",
|
| 25 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_006",
|
| 26 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_007",
|
| 27 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_008",
|
| 28 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_009",
|
| 29 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_010",
|
| 30 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_011",
|
| 31 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_012",
|
| 32 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_013",
|
| 33 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_014",
|
| 34 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_015",
|
| 35 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_016",
|
| 36 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_017",
|
| 37 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_018",
|
| 38 |
+
"tests/test_spec.py::TestCommonMark::test_autolinks_019",
|
| 39 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_001",
|
| 40 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_002",
|
| 41 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_003",
|
| 42 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_004",
|
| 43 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_005",
|
| 44 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_006",
|
| 45 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_007",
|
| 46 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_008",
|
| 47 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_009",
|
| 48 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_010",
|
| 49 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_011",
|
| 50 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_012",
|
| 51 |
+
"tests/test_spec.py::TestCommonMark::test_backslash_escapes_013",
|
| 52 |
+
"tests/test_spec.py::TestCommonMark::test_blank_lines_001",
|
| 53 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_001",
|
| 54 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_002",
|
| 55 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_003",
|
| 56 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_004",
|
| 57 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_005",
|
| 58 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_006",
|
| 59 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_007",
|
| 60 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_008",
|
| 61 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_009",
|
| 62 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_010",
|
| 63 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_011",
|
| 64 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_012",
|
| 65 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_013",
|
| 66 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_014",
|
| 67 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_015",
|
| 68 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_016",
|
| 69 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_017",
|
| 70 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_018",
|
| 71 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_019",
|
| 72 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_020",
|
| 73 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_021",
|
| 74 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_022",
|
| 75 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_023",
|
| 76 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_024",
|
| 77 |
+
"tests/test_spec.py::TestCommonMark::test_block_quotes_025",
|
| 78 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_001",
|
| 79 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_002",
|
| 80 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_003",
|
| 81 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_004",
|
| 82 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_005",
|
| 83 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_006",
|
| 84 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_007",
|
| 85 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_008",
|
| 86 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_009",
|
| 87 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_010",
|
| 88 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_011",
|
| 89 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_012",
|
| 90 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_013",
|
| 91 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_014",
|
| 92 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_015",
|
| 93 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_016",
|
| 94 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_017",
|
| 95 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_018",
|
| 96 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_019",
|
| 97 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_020",
|
| 98 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_021",
|
| 99 |
+
"tests/test_spec.py::TestCommonMark::test_code_spans_022",
|
| 100 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_001",
|
| 101 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_002",
|
| 102 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_003",
|
| 103 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_004",
|
| 104 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_005",
|
| 105 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_006",
|
| 106 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_007",
|
| 107 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_008",
|
| 108 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_009",
|
| 109 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_010",
|
| 110 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_011",
|
| 111 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_012",
|
| 112 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_013",
|
| 113 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_014",
|
| 114 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_015",
|
| 115 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_016",
|
| 116 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_017",
|
| 117 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_018",
|
| 118 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_019",
|
| 119 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_020",
|
| 120 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_021",
|
| 121 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_022",
|
| 122 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_023",
|
| 123 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_024",
|
| 124 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_025",
|
| 125 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_026",
|
| 126 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_027",
|
| 127 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_028",
|
| 128 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_029",
|
| 129 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_030",
|
| 130 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_031",
|
| 131 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_032",
|
| 132 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_033",
|
| 133 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_034",
|
| 134 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_035",
|
| 135 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_036",
|
| 136 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_037",
|
| 137 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_038",
|
| 138 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_039",
|
| 139 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_040",
|
| 140 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_041",
|
| 141 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_042",
|
| 142 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_043",
|
| 143 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_044",
|
| 144 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_045",
|
| 145 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_046",
|
| 146 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_047",
|
| 147 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_048",
|
| 148 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_049",
|
| 149 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_050",
|
| 150 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_051",
|
| 151 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_052",
|
| 152 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_053",
|
| 153 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_054",
|
| 154 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_055",
|
| 155 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_056",
|
| 156 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_057",
|
| 157 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_058",
|
| 158 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_059",
|
| 159 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_060",
|
| 160 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_061",
|
| 161 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_062",
|
| 162 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_063",
|
| 163 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_064",
|
| 164 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_065",
|
| 165 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_066",
|
| 166 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_067",
|
| 167 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_068",
|
| 168 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_069",
|
| 169 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_070",
|
| 170 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_071",
|
| 171 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_072",
|
| 172 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_073",
|
| 173 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_074",
|
| 174 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_075",
|
| 175 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_076",
|
| 176 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_077",
|
| 177 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_078",
|
| 178 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_079",
|
| 179 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_080",
|
| 180 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_081",
|
| 181 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_082",
|
| 182 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_083",
|
| 183 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_084",
|
| 184 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_085",
|
| 185 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_086",
|
| 186 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_087",
|
| 187 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_088",
|
| 188 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_089",
|
| 189 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_090",
|
| 190 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_091",
|
| 191 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_092",
|
| 192 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_093",
|
| 193 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_094",
|
| 194 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_095",
|
| 195 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_096",
|
| 196 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_097",
|
| 197 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_098",
|
| 198 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_099",
|
| 199 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_100",
|
| 200 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_101",
|
| 201 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_102",
|
| 202 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_103",
|
| 203 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_104",
|
| 204 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_105",
|
| 205 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_106",
|
| 206 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_107",
|
| 207 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_108",
|
| 208 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_109",
|
| 209 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_110",
|
| 210 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_111",
|
| 211 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_112",
|
| 212 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_113",
|
| 213 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_114",
|
| 214 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_115",
|
| 215 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_116",
|
| 216 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_117",
|
| 217 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_118",
|
| 218 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_119",
|
| 219 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_120",
|
| 220 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_121",
|
| 221 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_122",
|
| 222 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_123",
|
| 223 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_124",
|
| 224 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_125",
|
| 225 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_126",
|
| 226 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_127",
|
| 227 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_128",
|
| 228 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_129",
|
| 229 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_130",
|
| 230 |
+
"tests/test_spec.py::TestCommonMark::test_emphasis_and_strong_emphasis_131",
|
| 231 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_001",
|
| 232 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_002",
|
| 233 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_003",
|
| 234 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_004",
|
| 235 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_005",
|
| 236 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_006",
|
| 237 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_007",
|
| 238 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_008",
|
| 239 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_009",
|
| 240 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_010",
|
| 241 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_011",
|
| 242 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_012",
|
| 243 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_013",
|
| 244 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_014",
|
| 245 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_015",
|
| 246 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_016",
|
| 247 |
+
"tests/test_spec.py::TestCommonMark::test_entity_and_numeric_character_references_017",
|
| 248 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_001",
|
| 249 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_002",
|
| 250 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_003",
|
| 251 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_004",
|
| 252 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_005",
|
| 253 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_006",
|
| 254 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_007",
|
| 255 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_008",
|
| 256 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_009",
|
| 257 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_010",
|
| 258 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_011",
|
| 259 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_012",
|
| 260 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_013",
|
| 261 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_014",
|
| 262 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_015",
|
| 263 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_016",
|
| 264 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_017",
|
| 265 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_018",
|
| 266 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_019",
|
| 267 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_020",
|
| 268 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_021",
|
| 269 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_022",
|
| 270 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_023",
|
| 271 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_024",
|
| 272 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_025",
|
| 273 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_026",
|
| 274 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_027",
|
| 275 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_028",
|
| 276 |
+
"tests/test_spec.py::TestCommonMark::test_fenced_code_blocks_029",
|
| 277 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_001",
|
| 278 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_002",
|
| 279 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_003",
|
| 280 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_004",
|
| 281 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_005",
|
| 282 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_006",
|
| 283 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_007",
|
| 284 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_008",
|
| 285 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_009",
|
| 286 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_010",
|
| 287 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_011",
|
| 288 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_012",
|
| 289 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_013",
|
| 290 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_014",
|
| 291 |
+
"tests/test_spec.py::TestCommonMark::test_hard_line_breaks_015",
|
| 292 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_001",
|
| 293 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_002",
|
| 294 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_003",
|
| 295 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_004",
|
| 296 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_005",
|
| 297 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_006",
|
| 298 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_007",
|
| 299 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_008",
|
| 300 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_009",
|
| 301 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_010",
|
| 302 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_011",
|
| 303 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_012",
|
| 304 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_013",
|
| 305 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_014",
|
| 306 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_015",
|
| 307 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_016",
|
| 308 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_017",
|
| 309 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_018",
|
| 310 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_019",
|
| 311 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_020",
|
| 312 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_021",
|
| 313 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_022",
|
| 314 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_023",
|
| 315 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_024",
|
| 316 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_025",
|
| 317 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_026",
|
| 318 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_027",
|
| 319 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_028",
|
| 320 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_029",
|
| 321 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_030",
|
| 322 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_031",
|
| 323 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_032",
|
| 324 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_033",
|
| 325 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_034",
|
| 326 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_035",
|
| 327 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_036",
|
| 328 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_037",
|
| 329 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_038",
|
| 330 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_039",
|
| 331 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_040",
|
| 332 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_041",
|
| 333 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_042",
|
| 334 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_043",
|
| 335 |
+
"tests/test_spec.py::TestCommonMark::test_html_blocks_044",
|
| 336 |
+
"tests/test_spec.py::TestCommonMark::test_images_001",
|
| 337 |
+
"tests/test_spec.py::TestCommonMark::test_images_002",
|
| 338 |
+
"tests/test_spec.py::TestCommonMark::test_images_003",
|
| 339 |
+
"tests/test_spec.py::TestCommonMark::test_images_004",
|
| 340 |
+
"tests/test_spec.py::TestCommonMark::test_images_005",
|
| 341 |
+
"tests/test_spec.py::TestCommonMark::test_images_006",
|
| 342 |
+
"tests/test_spec.py::TestCommonMark::test_images_007",
|
| 343 |
+
"tests/test_spec.py::TestCommonMark::test_images_008",
|
| 344 |
+
"tests/test_spec.py::TestCommonMark::test_images_009",
|
| 345 |
+
"tests/test_spec.py::TestCommonMark::test_images_010",
|
| 346 |
+
"tests/test_spec.py::TestCommonMark::test_images_011",
|
| 347 |
+
"tests/test_spec.py::TestCommonMark::test_images_012",
|
| 348 |
+
"tests/test_spec.py::TestCommonMark::test_images_013",
|
| 349 |
+
"tests/test_spec.py::TestCommonMark::test_images_014",
|
| 350 |
+
"tests/test_spec.py::TestCommonMark::test_images_015",
|
| 351 |
+
"tests/test_spec.py::TestCommonMark::test_images_016",
|
| 352 |
+
"tests/test_spec.py::TestCommonMark::test_images_017",
|
| 353 |
+
"tests/test_spec.py::TestCommonMark::test_images_018",
|
| 354 |
+
"tests/test_spec.py::TestCommonMark::test_images_019",
|
| 355 |
+
"tests/test_spec.py::TestCommonMark::test_images_020",
|
| 356 |
+
"tests/test_spec.py::TestCommonMark::test_images_021",
|
| 357 |
+
"tests/test_spec.py::TestCommonMark::test_images_022",
|
| 358 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_001",
|
| 359 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_002",
|
| 360 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_003",
|
| 361 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_004",
|
| 362 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_005",
|
| 363 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_006",
|
| 364 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_007",
|
| 365 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_008",
|
| 366 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_009",
|
| 367 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_010",
|
| 368 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_011",
|
| 369 |
+
"tests/test_spec.py::TestCommonMark::test_indented_code_blocks_012",
|
| 370 |
+
"tests/test_spec.py::TestCommonMark::test_inlines_001",
|
| 371 |
+
"tests/test_spec.py::TestCommonMark::test_line_break_in_link_text",
|
| 372 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_001",
|
| 373 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_002",
|
| 374 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_003",
|
| 375 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_004",
|
| 376 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_005",
|
| 377 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_006",
|
| 378 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_007",
|
| 379 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_008",
|
| 380 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_009",
|
| 381 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_010",
|
| 382 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_011",
|
| 383 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_012",
|
| 384 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_013",
|
| 385 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_014",
|
| 386 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_015",
|
| 387 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_016",
|
| 388 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_017",
|
| 389 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_018",
|
| 390 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_019",
|
| 391 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_020",
|
| 392 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_021",
|
| 393 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_022",
|
| 394 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_023",
|
| 395 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_024",
|
| 396 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_025",
|
| 397 |
+
"tests/test_spec.py::TestCommonMark::test_link_reference_definitions_026",
|
| 398 |
+
"tests/test_spec.py::TestCommonMark::test_links_001",
|
| 399 |
+
"tests/test_spec.py::TestCommonMark::test_links_002",
|
| 400 |
+
"tests/test_spec.py::TestCommonMark::test_links_003",
|
| 401 |
+
"tests/test_spec.py::TestCommonMark::test_links_004",
|
| 402 |
+
"tests/test_spec.py::TestCommonMark::test_links_005",
|
| 403 |
+
"tests/test_spec.py::TestCommonMark::test_links_006",
|
| 404 |
+
"tests/test_spec.py::TestCommonMark::test_links_007",
|
| 405 |
+
"tests/test_spec.py::TestCommonMark::test_links_008",
|
| 406 |
+
"tests/test_spec.py::TestCommonMark::test_links_009",
|
| 407 |
+
"tests/test_spec.py::TestCommonMark::test_links_010",
|
| 408 |
+
"tests/test_spec.py::TestCommonMark::test_links_011",
|
| 409 |
+
"tests/test_spec.py::TestCommonMark::test_links_012",
|
| 410 |
+
"tests/test_spec.py::TestCommonMark::test_links_013",
|
| 411 |
+
"tests/test_spec.py::TestCommonMark::test_links_014",
|
| 412 |
+
"tests/test_spec.py::TestCommonMark::test_links_015",
|
| 413 |
+
"tests/test_spec.py::TestCommonMark::test_links_016",
|
| 414 |
+
"tests/test_spec.py::TestCommonMark::test_links_017",
|
| 415 |
+
"tests/test_spec.py::TestCommonMark::test_links_018",
|
| 416 |
+
"tests/test_spec.py::TestCommonMark::test_links_019",
|
| 417 |
+
"tests/test_spec.py::TestCommonMark::test_links_020",
|
| 418 |
+
"tests/test_spec.py::TestCommonMark::test_links_021",
|
| 419 |
+
"tests/test_spec.py::TestCommonMark::test_links_022",
|
| 420 |
+
"tests/test_spec.py::TestCommonMark::test_links_023",
|
| 421 |
+
"tests/test_spec.py::TestCommonMark::test_links_024",
|
| 422 |
+
"tests/test_spec.py::TestCommonMark::test_links_025",
|
| 423 |
+
"tests/test_spec.py::TestCommonMark::test_links_026",
|
| 424 |
+
"tests/test_spec.py::TestCommonMark::test_links_027",
|
| 425 |
+
"tests/test_spec.py::TestCommonMark::test_links_028",
|
| 426 |
+
"tests/test_spec.py::TestCommonMark::test_links_029",
|
| 427 |
+
"tests/test_spec.py::TestCommonMark::test_links_030",
|
| 428 |
+
"tests/test_spec.py::TestCommonMark::test_links_031",
|
| 429 |
+
"tests/test_spec.py::TestCommonMark::test_links_032",
|
| 430 |
+
"tests/test_spec.py::TestCommonMark::test_links_033",
|
| 431 |
+
"tests/test_spec.py::TestCommonMark::test_links_034",
|
| 432 |
+
"tests/test_spec.py::TestCommonMark::test_links_035",
|
| 433 |
+
"tests/test_spec.py::TestCommonMark::test_links_036",
|
| 434 |
+
"tests/test_spec.py::TestCommonMark::test_links_037",
|
| 435 |
+
"tests/test_spec.py::TestCommonMark::test_links_038",
|
| 436 |
+
"tests/test_spec.py::TestCommonMark::test_links_039",
|
| 437 |
+
"tests/test_spec.py::TestCommonMark::test_links_040",
|
| 438 |
+
"tests/test_spec.py::TestCommonMark::test_links_041",
|
| 439 |
+
"tests/test_spec.py::TestCommonMark::test_links_042",
|
| 440 |
+
"tests/test_spec.py::TestCommonMark::test_links_043",
|
| 441 |
+
"tests/test_spec.py::TestCommonMark::test_links_044",
|
| 442 |
+
"tests/test_spec.py::TestCommonMark::test_links_045",
|
| 443 |
+
"tests/test_spec.py::TestCommonMark::test_links_046",
|
| 444 |
+
"tests/test_spec.py::TestCommonMark::test_links_047",
|
| 445 |
+
"tests/test_spec.py::TestCommonMark::test_links_048",
|
| 446 |
+
"tests/test_spec.py::TestCommonMark::test_links_049",
|
| 447 |
+
"tests/test_spec.py::TestCommonMark::test_links_050",
|
| 448 |
+
"tests/test_spec.py::TestCommonMark::test_links_051",
|
| 449 |
+
"tests/test_spec.py::TestCommonMark::test_links_052",
|
| 450 |
+
"tests/test_spec.py::TestCommonMark::test_links_053",
|
| 451 |
+
"tests/test_spec.py::TestCommonMark::test_links_054",
|
| 452 |
+
"tests/test_spec.py::TestCommonMark::test_links_055",
|
| 453 |
+
"tests/test_spec.py::TestCommonMark::test_links_056",
|
| 454 |
+
"tests/test_spec.py::TestCommonMark::test_links_057",
|
| 455 |
+
"tests/test_spec.py::TestCommonMark::test_links_058",
|
| 456 |
+
"tests/test_spec.py::TestCommonMark::test_links_059",
|
| 457 |
+
"tests/test_spec.py::TestCommonMark::test_links_060",
|
| 458 |
+
"tests/test_spec.py::TestCommonMark::test_links_061",
|
| 459 |
+
"tests/test_spec.py::TestCommonMark::test_links_062",
|
| 460 |
+
"tests/test_spec.py::TestCommonMark::test_links_063",
|
| 461 |
+
"tests/test_spec.py::TestCommonMark::test_links_064",
|
| 462 |
+
"tests/test_spec.py::TestCommonMark::test_links_065",
|
| 463 |
+
"tests/test_spec.py::TestCommonMark::test_links_066",
|
| 464 |
+
"tests/test_spec.py::TestCommonMark::test_links_067",
|
| 465 |
+
"tests/test_spec.py::TestCommonMark::test_links_068",
|
| 466 |
+
"tests/test_spec.py::TestCommonMark::test_links_069",
|
| 467 |
+
"tests/test_spec.py::TestCommonMark::test_links_070",
|
| 468 |
+
"tests/test_spec.py::TestCommonMark::test_links_071",
|
| 469 |
+
"tests/test_spec.py::TestCommonMark::test_links_072",
|
| 470 |
+
"tests/test_spec.py::TestCommonMark::test_links_073",
|
| 471 |
+
"tests/test_spec.py::TestCommonMark::test_links_074",
|
| 472 |
+
"tests/test_spec.py::TestCommonMark::test_links_075",
|
| 473 |
+
"tests/test_spec.py::TestCommonMark::test_links_076",
|
| 474 |
+
"tests/test_spec.py::TestCommonMark::test_links_077",
|
| 475 |
+
"tests/test_spec.py::TestCommonMark::test_links_078",
|
| 476 |
+
"tests/test_spec.py::TestCommonMark::test_links_079",
|
| 477 |
+
"tests/test_spec.py::TestCommonMark::test_links_080",
|
| 478 |
+
"tests/test_spec.py::TestCommonMark::test_links_081",
|
| 479 |
+
"tests/test_spec.py::TestCommonMark::test_links_082",
|
| 480 |
+
"tests/test_spec.py::TestCommonMark::test_links_083",
|
| 481 |
+
"tests/test_spec.py::TestCommonMark::test_links_084",
|
| 482 |
+
"tests/test_spec.py::TestCommonMark::test_links_085",
|
| 483 |
+
"tests/test_spec.py::TestCommonMark::test_links_086",
|
| 484 |
+
"tests/test_spec.py::TestCommonMark::test_links_087",
|
| 485 |
+
"tests/test_spec.py::TestCommonMark::test_links_088",
|
| 486 |
+
"tests/test_spec.py::TestCommonMark::test_links_089",
|
| 487 |
+
"tests/test_spec.py::TestCommonMark::test_links_090",
|
| 488 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_001",
|
| 489 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_002",
|
| 490 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_003",
|
| 491 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_004",
|
| 492 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_005",
|
| 493 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_006",
|
| 494 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_007",
|
| 495 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_008",
|
| 496 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_009",
|
| 497 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_010",
|
| 498 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_011",
|
| 499 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_012",
|
| 500 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_013",
|
| 501 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_014",
|
| 502 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_015",
|
| 503 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_016",
|
| 504 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_017",
|
| 505 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_018",
|
| 506 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_019",
|
| 507 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_020",
|
| 508 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_021",
|
| 509 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_022",
|
| 510 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_023",
|
| 511 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_024",
|
| 512 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_025",
|
| 513 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_026",
|
| 514 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_027",
|
| 515 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_028",
|
| 516 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_029",
|
| 517 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_030",
|
| 518 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_031",
|
| 519 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_032",
|
| 520 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_033",
|
| 521 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_034",
|
| 522 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_035",
|
| 523 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_036",
|
| 524 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_037",
|
| 525 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_038",
|
| 526 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_039",
|
| 527 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_040",
|
| 528 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_041",
|
| 529 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_042",
|
| 530 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_043",
|
| 531 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_044",
|
| 532 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_045",
|
| 533 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_046",
|
| 534 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_047",
|
| 535 |
+
"tests/test_spec.py::TestCommonMark::test_list_items_048",
|
| 536 |
+
"tests/test_spec.py::TestCommonMark::test_lists_001",
|
| 537 |
+
"tests/test_spec.py::TestCommonMark::test_lists_002",
|
| 538 |
+
"tests/test_spec.py::TestCommonMark::test_lists_003",
|
| 539 |
+
"tests/test_spec.py::TestCommonMark::test_lists_004",
|
| 540 |
+
"tests/test_spec.py::TestCommonMark::test_lists_005",
|
| 541 |
+
"tests/test_spec.py::TestCommonMark::test_lists_006",
|
| 542 |
+
"tests/test_spec.py::TestCommonMark::test_lists_007",
|
| 543 |
+
"tests/test_spec.py::TestCommonMark::test_lists_008",
|
| 544 |
+
"tests/test_spec.py::TestCommonMark::test_lists_009",
|
| 545 |
+
"tests/test_spec.py::TestCommonMark::test_lists_010",
|
| 546 |
+
"tests/test_spec.py::TestCommonMark::test_lists_011",
|
| 547 |
+
"tests/test_spec.py::TestCommonMark::test_lists_012",
|
| 548 |
+
"tests/test_spec.py::TestCommonMark::test_lists_013",
|
| 549 |
+
"tests/test_spec.py::TestCommonMark::test_lists_014",
|
| 550 |
+
"tests/test_spec.py::TestCommonMark::test_lists_015",
|
| 551 |
+
"tests/test_spec.py::TestCommonMark::test_lists_016",
|
| 552 |
+
"tests/test_spec.py::TestCommonMark::test_lists_017",
|
| 553 |
+
"tests/test_spec.py::TestCommonMark::test_lists_018",
|
| 554 |
+
"tests/test_spec.py::TestCommonMark::test_lists_019",
|
| 555 |
+
"tests/test_spec.py::TestCommonMark::test_lists_020",
|
| 556 |
+
"tests/test_spec.py::TestCommonMark::test_lists_021",
|
| 557 |
+
"tests/test_spec.py::TestCommonMark::test_lists_022",
|
| 558 |
+
"tests/test_spec.py::TestCommonMark::test_lists_023",
|
| 559 |
+
"tests/test_spec.py::TestCommonMark::test_lists_024",
|
| 560 |
+
"tests/test_spec.py::TestCommonMark::test_lists_025",
|
| 561 |
+
"tests/test_spec.py::TestCommonMark::test_lists_026",
|
| 562 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_001",
|
| 563 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_002",
|
| 564 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_003",
|
| 565 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_004",
|
| 566 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_005",
|
| 567 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_006",
|
| 568 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_007",
|
| 569 |
+
"tests/test_spec.py::TestCommonMark::test_paragraphs_008",
|
| 570 |
+
"tests/test_spec.py::TestCommonMark::test_precedence_001",
|
| 571 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_001",
|
| 572 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_002",
|
| 573 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_003",
|
| 574 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_004",
|
| 575 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_005",
|
| 576 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_006",
|
| 577 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_007",
|
| 578 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_008",
|
| 579 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_009",
|
| 580 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_010",
|
| 581 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_011",
|
| 582 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_012",
|
| 583 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_013",
|
| 584 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_014",
|
| 585 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_015",
|
| 586 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_016",
|
| 587 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_017",
|
| 588 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_018",
|
| 589 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_019",
|
| 590 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_020",
|
| 591 |
+
"tests/test_spec.py::TestCommonMark::test_raw_html_021",
|
| 592 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_001",
|
| 593 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_002",
|
| 594 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_003",
|
| 595 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_004",
|
| 596 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_005",
|
| 597 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_006",
|
| 598 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_007",
|
| 599 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_008",
|
| 600 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_009",
|
| 601 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_010",
|
| 602 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_011",
|
| 603 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_012",
|
| 604 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_013",
|
| 605 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_014",
|
| 606 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_015",
|
| 607 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_016",
|
| 608 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_017",
|
| 609 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_018",
|
| 610 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_019",
|
| 611 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_020",
|
| 612 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_021",
|
| 613 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_022",
|
| 614 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_023",
|
| 615 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_024",
|
| 616 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_025",
|
| 617 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_026",
|
| 618 |
+
"tests/test_spec.py::TestCommonMark::test_setext_headings_027",
|
| 619 |
+
"tests/test_spec.py::TestCommonMark::test_soft_line_breaks_001",
|
| 620 |
+
"tests/test_spec.py::TestCommonMark::test_soft_line_breaks_002",
|
| 621 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_001",
|
| 622 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_002",
|
| 623 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_003",
|
| 624 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_004",
|
| 625 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_005",
|
| 626 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_006",
|
| 627 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_007",
|
| 628 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_008",
|
| 629 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_009",
|
| 630 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_010",
|
| 631 |
+
"tests/test_spec.py::TestCommonMark::test_tabs_011",
|
| 632 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_001",
|
| 633 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_002",
|
| 634 |
+
"tests/test_spec.py::TestCommonMark::test_textual_content_003",
|
| 635 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_001",
|
| 636 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_002",
|
| 637 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_003",
|
| 638 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_004",
|
| 639 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_005",
|
| 640 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_006",
|
| 641 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_007",
|
| 642 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_008",
|
| 643 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_009",
|
| 644 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_010",
|
| 645 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_011",
|
| 646 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_012",
|
| 647 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_013",
|
| 648 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_014",
|
| 649 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_015",
|
| 650 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_016",
|
| 651 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_017",
|
| 652 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_018",
|
| 653 |
+
"tests/test_spec.py::TestCommonMark::test_thematic_breaks_019"
|
| 654 |
+
]
|
heldout_pool/frostming__marko-b5a628f28dbd/tests/p2p.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
"tests/test_spec.py::TestCommonMark::test_greedy_consume_prefix",
|
| 3 |
+
"tests/test_spec.py::TestCommonMark::test_mixed_tab_space_in_list_item",
|
| 4 |
+
"tests/test_spec.py::TestCommonMark::test_parse_nbsp_no_crash",
|
| 5 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_001",
|
| 6 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_002",
|
| 7 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_003",
|
| 8 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_004",
|
| 9 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_005",
|
| 10 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_006",
|
| 11 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_007",
|
| 12 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_008",
|
| 13 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_009",
|
| 14 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_010",
|
| 15 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_011",
|
| 16 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_012",
|
| 17 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_013",
|
| 18 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_014",
|
| 19 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_015",
|
| 20 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_016",
|
| 21 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_017",
|
| 22 |
+
"tests/test_spec.py::TestGFM::test_atx_headings_018",
|
| 23 |
+
"tests/test_spec.py::TestGFM::test_autolinks_001",
|
| 24 |
+
"tests/test_spec.py::TestGFM::test_autolinks_002",
|
| 25 |
+
"tests/test_spec.py::TestGFM::test_autolinks_003",
|
| 26 |
+
"tests/test_spec.py::TestGFM::test_autolinks_004",
|
| 27 |
+
"tests/test_spec.py::TestGFM::test_autolinks_005",
|
| 28 |
+
"tests/test_spec.py::TestGFM::test_autolinks_006",
|
| 29 |
+
"tests/test_spec.py::TestGFM::test_autolinks_007",
|
| 30 |
+
"tests/test_spec.py::TestGFM::test_autolinks_008",
|
| 31 |
+
"tests/test_spec.py::TestGFM::test_autolinks_009",
|
| 32 |
+
"tests/test_spec.py::TestGFM::test_autolinks_010",
|
| 33 |
+
"tests/test_spec.py::TestGFM::test_autolinks_011",
|
| 34 |
+
"tests/test_spec.py::TestGFM::test_autolinks_012",
|
| 35 |
+
"tests/test_spec.py::TestGFM::test_autolinks_013",
|
| 36 |
+
"tests/test_spec.py::TestGFM::test_autolinks_014",
|
| 37 |
+
"tests/test_spec.py::TestGFM::test_autolinks_016",
|
| 38 |
+
"tests/test_spec.py::TestGFM::test_autolinks_017",
|
| 39 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_001",
|
| 40 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_002",
|
| 41 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_003",
|
| 42 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_004",
|
| 43 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_005",
|
| 44 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_006",
|
| 45 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_007",
|
| 46 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_008",
|
| 47 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_009",
|
| 48 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_010",
|
| 49 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_011",
|
| 50 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_012",
|
| 51 |
+
"tests/test_spec.py::TestGFM::test_backslash_escapes_013"
|
| 52 |
+
]
|