diff --git a/reports b/reports index e8eb3e3..1657828 160000 --- a/reports +++ b/reports @@ -1 +1 @@ -Subproject commit e8eb3e381305da0b97cc241e95c33a14c211a01d +Subproject commit 16578288b267792bbdd2ca8bcb9dc38d15cbf954 diff --git a/scripts/check-diagnostic-parity.py b/scripts/check-diagnostic-parity.py index 549b314..c965216 100644 --- a/scripts/check-diagnostic-parity.py +++ b/scripts/check-diagnostic-parity.py @@ -53,6 +53,14 @@ def main(): "--output", str(Path(directory) / "latest.pdf"), "--emit-ir", str(ir)], check=True, stdout=subprocess.DEVNULL) report = json.loads(ir.read_text(encoding="utf-8")) + assessment = report["sections"][0]["content"][0] + if assessment["title"] != "Diagnostic assessment" or "leading finding" not in assessment["text"]: + print("Latest capture: diagnostic assessment is missing", file=sys.stderr) + return 1 + if not report["sections"][0]["content"][3]["content"][0]["items"][0]["title"].startswith( + "Microsoft-Windows-WER-SystemErrorReporting ยท Event 1001"): + print("Latest capture: reliability event identity was lost", file=sys.stderr) + return 1 score = report["sections"][0]["content"][1]["value"] if score != 62: print(f"Latest capture: expected pre-plugin signal score 62, got {score}", file=sys.stderr)