Skip to content

Commit 2207915

Browse files
committed
Fix crash in summary output if jobs are still in progress.
1 parent 42496c4 commit 2207915

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/gha/report_build_status.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,10 +592,10 @@ def main(argv):
592592
elif FLAGS.report == "test_summary":
593593
test_list = {}
594594
for day in days_sorted:
595-
if source_tests[day]['log_results']:
595+
if day in source_tests and source_tests[day]['log_results']:
596596
errors = aggregate_errors_from_log(source_tests[day]['log_results'])
597597
test_link = source_tests[day]['html_url']
598-
elif package_tests[day]['log_results']:
598+
elif day in package_tests and package_tests[day]['log_results']:
599599
errors = aggregate_errors_from_log(package_tests[day]['log_results'])
600600
test_link = package_tests[day]['html_url']
601601
else:

0 commit comments

Comments
 (0)