File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515"""
1616
1717import argparse
18+ import logging
19+ import subprocess
1820import sys
19-
2021from pathlib import Path
21- import subprocess
2222
2323
2424def main () -> int :
25+ logging .basicConfig (level = logging .INFO )
2526 parser = argparse .ArgumentParser (
2627 description = "Generate a condensed Markdown SMP benchmark report." ,
2728 )
@@ -53,20 +54,23 @@ def main() -> int:
5354 smp_binary : Path = args .smp_binary .resolve ()
5455 print (smp_binary .stat ())
5556
57+ cmd = (
58+ smp_binary .as_posix (),
59+ "report" ,
60+ "render" ,
61+ "--report-json" ,
62+ args .report_json ,
63+ "--output-file" ,
64+ args .output_report ,
65+ "--target-config-dir" ,
66+ "test/smp/regression/adp/full/" ,
67+ "--template-file" ,
68+ "ci/tooling/smp_condensed_report.md.j2" ,
69+ )
70+ logging .info ("Running %s" , cmd )
5671 try :
5772 subprocess .run (
58- (
59- smp_binary .as_posix (),
60- "report" ,
61- "render" ,
62- "--report-json" ,
63- args .report_json ,
64- "--output-file" ,
65- args .output_report ,
66- "--target-config-dir" ,
67- "test/smp/regression/adp/full/" "--template-file" ,
68- "ci/tooling/smp_condensed_report.md.j2" ,
69- ),
73+ cmd ,
7074 check = True ,
7175 )
7276 except subprocess .CalledProcessError as exc :
@@ -77,6 +81,7 @@ def main() -> int:
7781 "Check the benchmark job logs for details.\n "
7882 )
7983 args .output_report .write_text (failure_report )
84+ logging .exception ("Report rendering failed" )
8085
8186 return 0
8287
You can’t perform that action at this time.
0 commit comments