From 214ca3161bf50267881ce589194699a0336ee3d9 Mon Sep 17 00:00:00 2001 From: Aiden Grossman Date: Sun, 22 Jun 2025 17:12:16 +0000 Subject: [PATCH] [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 --- .ci/compute_projects.py | 16 ++++++++++++++-- .ci/compute_projects_test.py | 11 +++++++---- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/.ci/compute_projects.py b/.ci/compute_projects.py index 32ddf525bcfb..80e4e0221b3d 100644 --- a/.ci/compute_projects.py +++ b/.ci/compute_projects.py @@ -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"}, diff --git a/.ci/compute_projects_test.py b/.ci/compute_projects_test.py index 6bc2e34a1cbe..5efac2636698 100644 --- a/.ci/compute_projects_test.py +++ b/.ci/compute_projects_test.py @@ -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"],