[llvm] [ci][llvm] Run cross-project-tests on llvm/ changes (PR #188522)
Michael Buch via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 27 01:21:52 PDT 2026
https://github.com/Michael137 updated https://github.com/llvm/llvm-project/pull/188522
>From 28a62fe9b03e2e516e058d70de898ef1f88ca92d Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Wed, 25 Mar 2026 16:15:14 +0000
Subject: [PATCH 1/4] [ci][llvm] Test cross-project-tests on llvm/ changes
This patch ensures we run the `cross-project-tests` on `llvm/` PRs. At the very least those tests depend on debug-info and `llvm/ADT/`/`llvm/Support` (and the data-formatters that also live in `llvm/`).
This would've helped catch https://github.com/llvm/llvm-project/pull/188483 at pre-merge time.
---
.ci/compute_projects.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 9c7ad73710ae2..9bc7ace3e7e7c 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -48,6 +48,7 @@
"mlir",
"polly",
"flang",
+ "cross-project-tests",
},
"lld": {"bolt", "cross-project-tests"},
"clang": {"clang-tools-extra", "cross-project-tests", "lldb"},
>From 3c9d0f1d1cc5769322257f92c18297f13ecf8f90 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Wed, 25 Mar 2026 16:23:04 +0000
Subject: [PATCH 2/4] fixup! un-exclude cross-project-tests
---
.ci/compute_projects.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py
index 9bc7ace3e7e7c..fca359952a080 100644
--- a/.ci/compute_projects.py
+++ b/.ci/compute_projects.py
@@ -95,7 +95,6 @@
}
EXCLUDE_LINUX = {
- "cross-project-tests", # TODO(issues/132796): Tests are failing.
"openmp", # https://github.com/google/llvm-premerge-checks/issues/410
}
>From d7ba87c95efcc855524aa2a75e72bacc027de09d Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Thu, 26 Mar 2026 17:07:23 +0000
Subject: [PATCH 3/4] fixup! fix compute_projects_test
---
.ci/compute_projects_test.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py
index 3069c66940c3a..db21a77b36740 100644
--- a/.ci/compute_projects_test.py
+++ b/.ci/compute_projects_test.py
@@ -19,7 +19,7 @@ def test_llvm(self):
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly",
+ "check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly check-cross-project",
)
self.assertEqual(
env_variables["runtimes_to_build"], "libcxx;libcxxabi;libunwind"
@@ -65,7 +65,7 @@ def test_llvm_mac(self):
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-clang check-clang-tools check-lld check-llvm check-mlir",
+ "check-clang check-clang-tools check-lld check-llvm check-mlir check-cross-project",
)
self.assertEqual(env_variables["runtimes_to_build"], "")
self.assertEqual(
>From ec0ffc5b30acdddd26267e3a58c99ee5a8c20311 Mon Sep 17 00:00:00 2001
From: Michael Buch <michaelbuch12 at gmail.com>
Date: Fri, 27 Mar 2026 08:21:39 +0000
Subject: [PATCH 4/4] fixup! fix compute_projects_test.py
---
.ci/compute_projects_test.py | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py
index db21a77b36740..bd66343209c82 100644
--- a/.ci/compute_projects_test.py
+++ b/.ci/compute_projects_test.py
@@ -15,11 +15,11 @@ def test_llvm(self):
)
self.assertEqual(
env_variables["projects_to_build"],
- "bolt;clang;clang-tools-extra;flang;lld;lldb;llvm;mlir;polly",
+ "bolt;clang;clang-tools-extra;cross-project-tests;flang;lld;lldb;llvm;mlir;polly",
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly check-cross-project",
+ "check-bolt check-clang check-clang-tools check-cross-project check-flang check-lld check-lldb check-llvm check-mlir check-polly",
)
self.assertEqual(
env_variables["runtimes_to_build"], "libcxx;libcxxabi;libunwind"
@@ -65,7 +65,7 @@ def test_llvm_mac(self):
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-clang check-clang-tools check-lld check-llvm check-mlir check-cross-project",
+ "check-clang check-clang-tools check-lld check-llvm check-mlir",
)
self.assertEqual(env_variables["runtimes_to_build"], "")
self.assertEqual(
@@ -83,11 +83,11 @@ def test_clang(self):
)
self.assertEqual(
env_variables["projects_to_build"],
- "clang;clang-tools-extra;lld;lldb;llvm",
+ "clang;clang-tools-extra;cross-project-tests;lld;lldb;llvm",
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-clang check-clang-tools check-lldb",
+ "check-clang check-clang-tools check-cross-project check-lldb",
)
self.assertEqual(
env_variables["runtimes_to_build"], "compiler-rt;libcxx;libcxxabi;libunwind"
@@ -158,11 +158,11 @@ def test_cir(self):
)
self.assertEqual(
env_variables["projects_to_build"],
- "clang;clang-tools-extra;lld;lldb;llvm;mlir",
+ "clang;clang-tools-extra;cross-project-tests;lld;lldb;llvm;mlir",
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-clang check-clang-cir check-clang-tools check-lldb",
+ "check-clang check-clang-cir check-clang-tools check-cross-project check-lldb",
)
self.assertEqual(
env_variables["runtimes_to_build"], "compiler-rt;libcxx;libcxxabi;libunwind"
@@ -429,11 +429,11 @@ def test_lit(self):
)
self.assertEqual(
env_variables["projects_to_build"],
- "bolt;clang;clang-tools-extra;flang;lld;lldb;llvm;mlir;polly",
+ "bolt;clang;clang-tools-extra;cross-project-tests;flang;lld;lldb;llvm;mlir;polly",
)
self.assertEqual(
env_variables["project_check_targets"],
- "check-bolt check-clang check-clang-tools check-flang check-lit check-lld check-lldb check-llvm check-mlir check-polly",
+ "check-bolt check-clang check-clang-tools check-cross-project check-flang check-lit check-lld check-lldb check-llvm check-mlir check-polly",
)
self.assertEqual(
env_variables["runtimes_to_build"], "libcxx;libcxxabi;libunwind"
More information about the llvm-commits
mailing list