|
|
@@ -56,11 +56,11 @@ def run_python_unit(repo: Path, work_root: Path, run_id: str) -> dict[str, Any]:
|
|
|
)
|
|
|
status = "pass" if result.returncode == 0 else "fail"
|
|
|
full_commit = prod2u_p4_harness.current_commit()
|
|
|
- return {
|
|
|
+ receipt = {
|
|
|
"schema": "prod2u-p4-normal-v3-python-unit-receipt-v1",
|
|
|
"status": status,
|
|
|
"verification_run_id": run_id,
|
|
|
- "commit": full_commit[:8],
|
|
|
+ "commit": full_commit,
|
|
|
"commit_full": full_commit,
|
|
|
"project_config_sha256": prod2u_p4_harness.sha256_file(repo / "projects" / "prod2u-door-temp" / "project.json"),
|
|
|
"td_source_manifest_sha256": prod2u_p4_harness.sha256_file(repo / "src" / "generated" / "td-source-manifest.json"),
|
|
|
@@ -73,6 +73,8 @@ def run_python_unit(repo: Path, work_root: Path, run_id: str) -> dict[str, Any]:
|
|
|
"authoritative": status == "pass",
|
|
|
"placeholder": False,
|
|
|
}
|
|
|
+ receipt_path.write_text(json.dumps(receipt, indent=2, sort_keys=True) + "\n", encoding="utf-8")
|
|
|
+ return receipt
|
|
|
|
|
|
|
|
|
def _run_harness_lane(repo: Path, work_root: Path, run_id: str, lane: str) -> dict[str, Any]:
|