Skip to content

Commit f685c86

Browse files
committed
fix(buyer): reject failed optional evidence manifests
1 parent 279c8a3 commit f685c86

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

scripts/build_buyer_packet.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,8 @@ def _collect_files(
153153
_add_file(files, "sales/sales_readiness_manifest.json", sales_readiness_path)
154154
if benchmark_report_path is not None:
155155
benchmark_report = _read_json(benchmark_report_path)
156+
if benchmark_report.get("status") != "ok":
157+
raise RuntimeError("benchmark report status is not ok")
156158
_add_file(files, "benchmark/benchmark_report.json", benchmark_report_path)
157159
html_report_file = benchmark_report.get("html_report_file")
158160
html_report_path = (
@@ -180,6 +182,8 @@ def _collect_files(
180182

181183
if release_evidence_index_path is not None:
182184
release_index = _read_json(release_evidence_index_path)
185+
if release_index.get("status") != "ok":
186+
raise RuntimeError("release evidence index status is not ok")
183187
_add_file(
184188
files, "release/release_evidence_index.json", release_evidence_index_path
185189
)

0 commit comments

Comments
 (0)