[llvm-branch-commits] [CI] Add rich build information for github workflows (PR #133197)

David Spickett via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Mar 27 09:12:05 PDT 2025


================
@@ -0,0 +1,23 @@
+# 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(
+        "title", help="Title of the test report, without Markdown formatting."
+    )
+    parser.add_argument("return_code", help="The build's return code.", type=int)
+    parser.add_argument("junit_files", help="Paths to JUnit report files.", nargs="*")
+    args = parser.parse_args()
+
+    report, style = generate_test_report_lib.generate_report_from_files(
----------------
DavidSpickett wrote:

Minor thing: use `_` for `style`, to be clear it is deliberately not used here.

https://github.com/llvm/llvm-project/pull/133197


More information about the llvm-branch-commits mailing list