@@ -447,7 +447,7 @@ def format_test_status(text: str) -> str:
447
447
color = (
448
448
"red"
449
449
if text .lower ().startswith ("fail" )
450
- else "orange" if text .lower () in ("error" , "broken" ) else "green"
450
+ else "orange" if text .lower () in ("error" , "broken" , "pending" ) else "green"
451
451
)
452
452
return f'<span style="font-weight: bold; color: { color } ">{ text } </span>'
453
453
@@ -537,9 +537,7 @@ def main():
537
537
538
538
# get_cves returns ... in the case where no Grype result files were found.
539
539
# This might occur when run in preview mode.
540
- cves_not_checked = not args .cves or (
541
- args .mark_preview and fail_results ["docker_images_cves" ] is ...
542
- )
540
+ cves_not_checked = not args .cves or fail_results ["docker_images_cves" ] is ...
543
541
544
542
if args .known_fails :
545
543
if not os .path .exists (args .known_fails ):
@@ -595,7 +593,7 @@ def main():
595
593
"date" : f"{ datetime .utcnow ().strftime ('%Y-%m-%d %H:%M:%S' )} UTC" ,
596
594
"is_preview" : args .mark_preview ,
597
595
"counts" : {
598
- "jobs_status" : f"{ sum (fail_results ['job_statuses' ]['job_status' ] != 'success' )} fail/error" ,
596
+ "jobs_status" : f"{ sum (fail_results ['job_statuses' ]['job_status' ] != 'success' )} fail/error/pending " ,
599
597
"checks_errors" : len (fail_results ["checks_errors" ]),
600
598
"checks_new_fails" : len (fail_results ["checks_fails" ]),
601
599
"regression_new_fails" : len (fail_results ["regression_fails" ]),
0 commit comments