[clang] [llvm] [ci] New script to generate test reports as Buildkite Annotations (PR #113447)

David Spickett via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 24 02:39:36 PDT 2024


================
@@ -0,0 +1,328 @@
+# Script to parse many JUnit XML result files and send a report to the buildkite
+# agent as an annotation.
+#
+# To run the unittests:
+# python3 -m unittest discover -p generate_test_report.py
+
+import argparse
+import unittest
+from io import StringIO
+from junitparser import JUnitXml, Failure
----------------
DavidSpickett wrote:

The reports are XML so we do not strictly need junitparser. However to replace it we would be essentially writing the same wrapper classes that it provides so in the interest of saving time I have used it.

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


More information about the cfe-commits mailing list