Harden golden QA readiness gate
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-06-17 05:56:03 +02:00
parent 82cdf5df0c
commit a28e516e17
10 changed files with 150 additions and 6 deletions
+8
View File
@@ -22,6 +22,14 @@ def test_readiness_gate_checks_demo_export_workflow_script_syntax() -> None:
assert "bash -n scripts/verify_demo_export_workflow.sh" in content
def test_readiness_gate_runs_golden_qa_benchmark() -> None:
script = Path(__file__).resolve().parents[2] / "scripts" / "run_readiness_check.sh"
content = script.read_text(encoding="utf-8")
assert "scripts/run_golden_qa_benchmark.py --json" in content
assert "bash -n scripts/verify_golden_qa_benchmark.sh" in content
def test_readiness_gate_compiles_demo_cleanup_script() -> None:
script = Path(__file__).resolve().parents[2] / "scripts" / "run_readiness_check.sh"
content = script.read_text(encoding="utf-8")
@@ -55,3 +55,20 @@ def test_golden_qa_benchmark_command_passes_and_reports_persistence() -> None:
"precision",
"recall",
]
def test_golden_qa_shell_wrapper_is_safe_and_documented() -> None:
script = ROOT / "scripts" / "verify_golden_qa_benchmark.sh"
content = script.read_text(encoding="utf-8")
assert "set -euo pipefail" in content
assert "run_golden_qa_benchmark.py --json" in content
result = subprocess.run(
["bash", "-n", "scripts/verify_golden_qa_benchmark.sh"],
cwd=ROOT,
check=True,
text=True,
capture_output=True,
)
assert result.returncode == 0