[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: https://github.com/llvm/llvm-project/pull/144034
This commit is contained in:
parent
80b9fcf8fd
commit
214ca3161b
@ -52,8 +52,19 @@ DEPENDENTS_TO_TEST = {
|
||||
"clang": {"clang-tools-extra", "cross-project-tests"},
|
||||
"mlir": {"flang"},
|
||||
# Test everything if ci scripts are changed.
|
||||
# FIXME: Figure out what is missing and add here.
|
||||
".ci": {"llvm", "clang", "lld", "lldb"},
|
||||
".ci": {
|
||||
"llvm",
|
||||
"clang",
|
||||
"lld",
|
||||
"lldb",
|
||||
"bolt",
|
||||
"clang-tools-extra",
|
||||
"mlir",
|
||||
"polly",
|
||||
"flang",
|
||||
"libclc",
|
||||
"openmp",
|
||||
},
|
||||
}
|
||||
|
||||
# This mapping describes runtimes that should be enabled for a specific project,
|
||||
@ -66,6 +77,7 @@ DEPENDENT_RUNTIMES_TO_BUILD = {"lldb": {"libcxx", "libcxxabi", "libunwind"}}
|
||||
DEPENDENT_RUNTIMES_TO_TEST = {
|
||||
"clang": {"compiler-rt"},
|
||||
"clang-tools-extra": {"libc"},
|
||||
".ci": {"compiler-rt", "libc"},
|
||||
}
|
||||
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
|
||||
"llvm": {"libcxx", "libcxxabi", "libunwind"},
|
||||
|
@ -221,18 +221,21 @@ class TestComputeProjects(unittest.TestCase):
|
||||
env_variables = compute_projects.get_env_variables(
|
||||
[".ci/compute_projects.py"], "Linux"
|
||||
)
|
||||
self.assertEqual(env_variables["projects_to_build"], "clang;lld;lldb;llvm")
|
||||
self.assertEqual(
|
||||
env_variables["projects_to_build"],
|
||||
"bolt;clang;clang-tools-extra;flang;libclc;lld;lldb;llvm;mlir;polly",
|
||||
)
|
||||
self.assertEqual(
|
||||
env_variables["project_check_targets"],
|
||||
"check-clang check-lld check-lldb check-llvm",
|
||||
"check-bolt check-clang check-clang-tools check-flang check-lld check-lldb check-llvm check-mlir check-polly",
|
||||
)
|
||||
self.assertEqual(
|
||||
env_variables["runtimes_to_build"],
|
||||
"libcxx;libcxxabi;libunwind",
|
||||
"compiler-rt;libc;libcxx;libcxxabi;libunwind",
|
||||
)
|
||||
self.assertEqual(
|
||||
env_variables["runtimes_check_targets"],
|
||||
"",
|
||||
"check-compiler-rt check-libc",
|
||||
)
|
||||
self.assertEqual(
|
||||
env_variables["runtimes_check_targets_needs_reconfig"],
|
||||
|
Loading…
x
Reference in New Issue
Block a user