Harden golden QA readiness gate
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user