[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"},
|
"clang": {"clang-tools-extra", "cross-project-tests"},
|
||||||
"mlir": {"flang"},
|
"mlir": {"flang"},
|
||||||
# Test everything if ci scripts are changed.
|
# Test everything if ci scripts are changed.
|
||||||
# FIXME: Figure out what is missing and add here.
|
".ci": {
|
||||||
".ci": {"llvm", "clang", "lld", "lldb"},
|
"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,
|
# 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 = {
|
DEPENDENT_RUNTIMES_TO_TEST = {
|
||||||
"clang": {"compiler-rt"},
|
"clang": {"compiler-rt"},
|
||||||
"clang-tools-extra": {"libc"},
|
"clang-tools-extra": {"libc"},
|
||||||
|
".ci": {"compiler-rt", "libc"},
|
||||||
}
|
}
|
||||||
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
|
DEPENDENT_RUNTIMES_TO_TEST_NEEDS_RECONFIG = {
|
||||||
"llvm": {"libcxx", "libcxxabi", "libunwind"},
|
"llvm": {"libcxx", "libcxxabi", "libunwind"},
|
||||||
|
@ -221,18 +221,21 @@ class TestComputeProjects(unittest.TestCase):
|
|||||||
env_variables = compute_projects.get_env_variables(
|
env_variables = compute_projects.get_env_variables(
|
||||||
[".ci/compute_projects.py"], "Linux"
|
[".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(
|
self.assertEqual(
|
||||||
env_variables["project_check_targets"],
|
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(
|
self.assertEqual(
|
||||||
env_variables["runtimes_to_build"],
|
env_variables["runtimes_to_build"],
|
||||||
"libcxx;libcxxabi;libunwind",
|
"compiler-rt;libc;libcxx;libcxxabi;libunwind",
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
env_variables["runtimes_check_targets"],
|
env_variables["runtimes_check_targets"],
|
||||||
"",
|
"check-compiler-rt check-libc",
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
env_variables["runtimes_check_targets_needs_reconfig"],
|
env_variables["runtimes_check_targets_needs_reconfig"],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user