Files
llvm-project/.ci/generate_test_report_github.py
Aiden Grossman 40d97e9060 [CI] Fix printing of test report in summary view (#173314)
ffe973a3e7 changed some of the internal
APIs to return a tuple instead of just the report. This callsite was
never updated which resulted in the tuple being printed to the summary
view when we only wanted the report.
2025-12-22 16:14:01 -08:00

26 lines
819 B
Python

# Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
# See https://llvm.org/LICENSE.txt for license information.
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
"""Script to generate a build report for Github."""
import argparse
import generate_test_report_lib
if __name__ == "__main__":
parser = argparse.ArgumentParser()
parser.add_argument("return_code", help="The build's return code.", type=int)
parser.add_argument(
"build_test_logs", help="Paths to JUnit report files and ninja logs.", nargs="*"
)
args = parser.parse_args()
report, explained = generate_test_report_lib.generate_report_from_files(
generate_test_report_lib.compute_platform_title(),
args.return_code,
args.build_test_logs,
)
print(report)