Skip to content

Commit 6eb6a90

Browse files
committed
Record a results row when the identity gate fails so triage sees it
1 parent db1c0b2 commit 6eb6a90

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/scripts/run_example.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,20 @@ def main():
579579

580580
expect_sha = args.expect_sha
581581
if expect_sha:
582-
assert_identity(expect_sha)
582+
try:
583+
assert_identity(expect_sha)
584+
except BaseException as e:
585+
# Exiting here with no results file makes triage read the job as
586+
# never-ran rather than failed, so leave it a row first.
587+
if args.results:
588+
Path(args.results).write_text(json.dumps([{
589+
"id": args.only or "(all)",
590+
"target": "identity-gate",
591+
"status": "fail",
592+
"detail": str(e),
593+
"ref": args.wolfssl_ref,
594+
}], indent=2))
595+
raise
583596

584597
results = []
585598
ok = True

0 commit comments

Comments
 (0)