Skip to content

Commit 214ca31

Browse files
[CI] Test all projects when CI scripts change
This patch resolves a fixme in the compute_projects script to actually test all the projects we can when touching something in the .ci directory. This ensures we test things like compiler-rt before landing changes. Reviewers: gburgessiv, lnihlen, cmtice Reviewed By: cmtice, gburgessiv Pull Request: #144034
1 parent 80b9fcf commit 214ca31

File tree

2 files changed

+21
-6
lines changed

2 files changed

+21
-6
lines changed

.ci/compute_projects.py

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,19 @@
5252
"clang": {"clang-tools-extra", "cross-project-tests"},
5353
"mlir": {"flang"},
5454
# Test everything if ci scripts are changed.
55-
# FIXME: Figure out what is missing and add here.
56-
".ci": {"llvm", "clang", "lld", "lldb"},
55+
".ci": {
56+
"llvm",
57+
"clang",
58+
"lld",
59+
"lldb",
60+
"bolt",
61+
"clang-tools-extra",
62+
"mlir",
63+
"polly",
64+
"flang",
65+
"libclc",
66+
"openmp",
67+
},
5768
}
5869

5970
# This mapping describes runtimes that should be enabled for a specific project,
@@ -66,6 +77,7 @@
6677
DEPENDENT_RUNTIMES_TO_TEST = {
6778
"clang": {"compiler-rt"},
6879
"clang-tools-extra": {"libc"},
80+
".ci": {"compiler-rt", "libc"},
6981
}
7082
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
7183
"llvm": {"libcxx", "libcxxabi", "libunwind"},

.ci/compute_projects_test.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,18 +221,21 @@ def test_ci(self):
221221
env_variables = compute_projects.get_env_variables(
222222
[".ci/compute_projects.py"], "Linux"
223223
)
224-
self.assertEqual(env_variables["projects_to_build"], "clang;lld;lldb;llvm")
224+
self.assertEqual(
225+
env_variables["projects_to_build"],
226+
"bolt;clang;clang-tools-extra;flang;libclc;lld;lldb;llvm;mlir;polly",
227+
)
225228
self.assertEqual(
226229
env_variables["project_check_targets"],
227-
"check-clang check-lld check-lldb check-llvm",
230+
"check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly",
228231
)
229232
self.assertEqual(
230233
env_variables["runtimes_to_build"],
231-
"libcxx;libcxxabi;libunwind",
234+
"compiler-rt;libc;libcxx;libcxxabi;libunwind",
232235
)
233236
self.assertEqual(
234237
env_variables["runtimes_check_targets"],
235-
"",
238+
"check-compiler-rt check-libc",
236239
)
237240
self.assertEqual(
238241
env_variables["runtimes_check_targets_needs_reconfig"],

0 commit comments

Comments
 (0)