[llvm] [CI] Handle Runtime Build Failures Correctly in generate_test_report (PR #155730)

Aiden Grossman via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 28 07:18:07 PDT 2025


================
@@ -27,6 +27,13 @@ def _parse_ninja_log(ninja_log: list[str]) -> list[tuple[str, str]]:
             # We hit the end of the log without finding a build failure, go to
             # the next log.
             return failures
+        # If we are doing a build with LLVM_ENABLE_RUNTIMES, we can have nested
+        # ninja invocations. The sub-ninja will print that a subcommand failed,
+        # and then the outer ninja will list the command that failed. We should
+        # ignore the outer failure.
+        if ninja_log[index - 1].startswith("ninja: build stopped:"):
----------------
boomanaiden154 wrote:

Yeah, exactly. The inner ninja will fail on whatever actually failed and the outer ninja will fail on the invoking the inner ninja.

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


More information about the llvm-commits mailing list