[llvm] [CI] Add Initial Wiring for Premerge Advisor Explanations (PR #164132)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Oct 18 16:39:20 PDT 2025
================
@@ -0,0 +1,60 @@
+# 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 for getting explanations from the premerge advisor."""
+
+import argparse
+import os
+import platform
+import sys
+
+import requests
+
+import generate_test_report_lib
+
+PREMERGE_ADVISOR_URL = (
+ "http://premerge-advisor.premerge-advisor.svc.cluster.local:5000/explain"
+)
+
+
+def main(commit_sha: str, build_log_files: list[str]):
+ junit_objects, ninja_logs = generate_test_report_lib.load_info_from_files(
+ build_log_files
+ )
+ test_failures = generate_test_report_lib.get_failures(junit_objects)
+ current_platform = f"{platform.system()}-{platform.machine()}".lower()
+ explanation_reuqest = {
----------------
cmtice wrote:
type reuqest -> request
https://github.com/llvm/llvm-project/pull/164132
More information about the llvm-commits
mailing list