release v1: 65 held-out tasks, 78 bootstrap records, r2e_local adapter, manifest ae94c40b (part 3)
98fe40b verified Download heldout/frostming__marko-b5a628f28dbd/tests/test.sh from Benjamin-eecs/openrsi-commit-runtime-assets: direct link, hf CLI and curl.
- Browser
- Download file 1.74 kB
-
https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/frostming__marko-b5a628f28dbd/tests/test.sh
- Command line
-
hf download hf://datasets/Benjamin-eecs/openrsi-commit-runtime-assets/heldout/frostming__marko-b5a628f28dbd/tests/test.sh
-
curl -L -o test.sh https://huggingface.co/datasets/Benjamin-eecs/openrsi-commit-runtime-assets/resolve/main/heldout/frostming__marko-b5a628f28dbd/tests/test.sh
1.74 kB
| set -uxo pipefail | |
| SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" | |
| cd /workspace | |
| git config --global --add safe.directory /workspace | |
| mkdir -p /logs/verifier | |
| git checkout 3a39989a01d34324809898243eb78c102174efd8 -- tests/test_spec.py || true | |
| git apply --verbose --reject - <<'EOF_R2E_TEST_PATCH' | |
| diff --git a/tests/test_spec.py b/tests/test_spec.py | |
| index 6a67e28..4619bb9 100644 | |
| --- a/tests/test_spec.py | |
| +++ b/tests/test_spec.py | |
| @@ -21,6 +21,11 @@ class TestCommonMark(SpecTestSuite): | |
| html = "<ul>\n<li>A</li>\n</ul>" | |
| self.assert_case(md, html) | |
| + def test_line_break_in_link_text(self): | |
| + md = "" | |
| + html = '<p><img src="/image.png" alt="foo\nbar\nbaz" /></p>' | |
| + self.assert_case(md, html) | |
| + | |
| TestCommonMark.load_spec("commonmark") | |
| EOF_R2E_TEST_PATCH | |
| R2E_APPLY_RC=$? | |
| if [ "$R2E_APPLY_RC" -ne 0 ]; then | |
| echo "0.000000" > /logs/verifier/reward.txt | |
| printf '%s' '{"reward": 0.0, "resolved": false, "parse_status": "test_patch_apply_failed"}' > /logs/verifier/reward-details.json | |
| echo "R2E: test_patch failed to apply (rc=$R2E_APPLY_RC) — failing closed" >&2 | |
| exit 0 | |
| fi | |
| ( python -m pytest -v tests/test_spec.py ) > /logs/verifier/test_output.log 2>&1 | |
| TEST_EXIT_CODE=$? | |
| cat /logs/verifier/test_output.log | |
| 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_spec.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; } | |
| git checkout 3a39989a01d34324809898243eb78c102174efd8 -- tests/test_spec.py || true | |
| exit 0 | |