@@ -447,7 +447,7 @@ def format_test_status(text: str) -> str:
447447 color = (
448448 "red"
449449 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"
451451 )
452452 return f'<span style="font-weight: bold; color: { color } ">{ text } </span>'
453453
@@ -537,9 +537,7 @@ def main():
537537
538538 # get_cves returns ... in the case where no Grype result files were found.
539539 # 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 ...
543541
544542 if args .known_fails :
545543 if not os .path .exists (args .known_fails ):
@@ -595,7 +593,7 @@ def main():
595593 "date" : f"{ datetime .utcnow ().strftime ('%Y-%m-%d %H:%M:%S' )} UTC" ,
596594 "is_preview" : args .mark_preview ,
597595 "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 " ,
599597 "checks_errors" : len (fail_results ["checks_errors" ]),
600598 "checks_new_fails" : len (fail_results ["checks_fails" ]),
601599 "regression_new_fails" : len (fail_results ["regression_fails" ]),
0 commit comments