@@ -57,8 +57,8 @@ def __init__(self, output_path: str):
5757 self .output_content = []
5858
5959 def write_file (self ):
60- with open (self .output_path , 'w' ) as f :
61- f .write (' \n ' .join (self .output_content ))
60+ with open (self .output_path , "w" ) as f :
61+ f .write (" \n " .join (self .output_content ))
6262
6363 def println (self , text : str ):
6464 self .output_content .append (text )
@@ -418,7 +418,9 @@ def print_regression(entry: dict, is_warning: bool = False):
418418 log_func ("" )
419419 if args .produce_github_summary :
420420 gh_summary .println (f"#### { entry ['name' ]} :" )
421- gh_summary .println (f"- Historic { entry ['avg_type' ]} : { entry ['hist_avg' ]} " )
421+ gh_summary .println (
422+ f"- Historic { entry ['avg_type' ]} : { entry ['hist_avg' ]} "
423+ )
422424 gh_summary .println (f"- Run result: { entry ['value' ]} " )
423425 gh_summary .println (f"- Delta: { entry ['delta' ]} " )
424426 gh_summary .println ("" )
@@ -429,7 +431,9 @@ def print_regression(entry: dict, is_warning: bool = False):
429431 log .info ("#" )
430432 if args .produce_github_summary :
431433 gh_summary .println ("### Improvements" )
432- gh_summary .println (f"<details><summary>{ len (improvements )} improved tests:</summary>" )
434+ gh_summary .println (
435+ f"<details><summary>{ len (improvements )} improved tests:</summary>"
436+ )
433437 gh_summary .println ("" )
434438 for test in improvements :
435439 print_regression (test )
@@ -442,7 +446,9 @@ def print_regression(entry: dict, is_warning: bool = False):
442446 log .info ("#" )
443447 if args .produce_github_summary :
444448 gh_summary .println ("### Regressions" )
445- gh_summary .println (f"<details><summary>{ len (regressions_ignored )} non CI-failing regressions:</summary>" )
449+ gh_summary .println (
450+ f"<details><summary>{ len (regressions_ignored )} non CI-failing regressions:</summary>"
451+ )
446452 gh_summary .println ("" )
447453 for test in regressions_ignored :
448454 print_regression (test )
@@ -455,10 +461,14 @@ def print_regression(entry: dict, is_warning: bool = False):
455461 log .warning ("#" )
456462 if args .produce_github_summary :
457463 gh_summary .println ("### SYCL-Specific Regressions" )
458- gh_summary .println ("Regressions pertaining to non-experimental "
459- "SYCL benchmarks. These regressions warrant "
460- "a CI failure: " )
461- gh_summary .println (f"<details><summary>{ len (regressions_of_concern )} CI-failing regressions:</summary>" )
464+ gh_summary .println (
465+ "Regressions pertaining to non-experimental "
466+ "SYCL benchmarks. These regressions warrant "
467+ "a CI failure: "
468+ )
469+ gh_summary .println (
470+ f"<details><summary>{ len (regressions_of_concern )} CI-failing regressions:</summary>"
471+ )
462472 gh_summary .println ("" )
463473 for test in regressions_of_concern :
464474 print_regression (test , is_warning = True )
@@ -471,7 +481,9 @@ def print_regression(entry: dict, is_warning: bool = False):
471481 gh_summary .println ("### Failed benchmarks:" )
472482 gh_summary .println ("" )
473483 for test in regressions_of_concern :
474- gh_summary .println (f"- { test ['name' ]} : Delta { round (test ['delta' ]* 100 , 2 )} %" )
484+ gh_summary .println (
485+ f"- { test ['name' ]} : Delta { round (test ['delta' ]* 100 , 2 )} %"
486+ )
475487 gh_summary .write_file ()
476488 exit (1 ) # Exit 1 to trigger github test failure
477489
0 commit comments