Skip to content

Commit e3ba4f9

Browse files
committed
fix report
1 parent dee94fd commit e3ba4f9

1 file changed

Lines changed: 19 additions & 14 deletions

File tree

ci/tooling/build-smp-report.py

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,14 @@
1515
"""
1616

1717
import argparse
18+
import logging
19+
import subprocess
1820
import sys
19-
2021
from pathlib import Path
21-
import subprocess
2222

2323

2424
def 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

0 commit comments

Comments
 (0)