R-885: script-tests gate runs every scripts/**/test_*.py on every push (decoys, red-proofs); closed (336 -> 335)
gates / gates (push) Failing after 1m17s

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0159rPz1ZhFKsS53msqPYxtS
This commit is contained in:
2026-10-05 16:48:12 +02:00
parent b018ca9092
commit ab2b304987
7 changed files with 203 additions and 1 deletions
+16
View File
@@ -52,6 +52,9 @@ COVERS = {
"(2026-10-03) an old-shape row under the new header, a near-miss category, an "
"old rank tag as Sev, an undefined state word, and a pipe outside backticks"),
"decoy-coverage": "a gate registered in a runner with no decoy and no exemption (its red-proof)",
"script-tests": ("R-885: FIVE cases in scripts/test_script_tests_gate.py, run from here: a suite that PRINTS "
"OK and exits 1 (label without fact), a failing suite three levels deep (scope is a walk), "
"an empty scripts/ tree (checked nothing), the genuine article (must pass), the nested mark"),
"guide-quote": ("R-596: SEVEN cases in scripts/test_guide_quote_gate.py, run from here so "
"this suite stays the single entry point. The load-bearing one is "
"name-for-fact: a guide that lists every key in a table and quotes none of "
@@ -353,6 +356,19 @@ else:
_n = _gq.stdout.strip().splitlines()[-1] if _gq.stdout.strip() else "?"
print(" ok %-20s %s" % ("guide-quote", _n))
# ── script-tests (R-885) ─────────────────────────────────────────────────────────────────────────
#
# Its decoys are whole fake repos, so they live in their own file and are RUN from here (guide-quote's shape).
ran += 1
_st = subprocess.run([sys.executable, os.path.join("scripts", "test_script_tests_gate.py")],
cwd=ROOT, capture_output=True, text=True)
if _st.returncode != 0:
fails.append("script-tests: its decoy suite FAILED — a decoy did not convict\n%s"
% (_st.stdout + _st.stderr)[-800:])
else:
_n = _st.stdout.strip().splitlines()[-1] if _st.stdout.strip() else "?"
print(" ok %-20s %s" % ("script-tests", _n))
# ── register-shape (R-627) ───────────────────────────────────────────────────────────────────────
#
# THE DECOYS ARE THE REAL DAMAGE, not invented shapes. On 2026-09-21 an append regex ate two rows'