From db1cb791ab0a135054b5a7fd1d12ddfde218fd9a Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 17 Nov 2025 14:24:14 -0600 Subject: [PATCH 1/3] Migrate clang-tidy to rhel9-latest distro --- .evergreen/config_generator/components/clang_tidy.py | 6 +++--- .evergreen/config_generator/etc/distros.py | 2 +- .evergreen/generated_configs/tasks.yml | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.evergreen/config_generator/components/clang_tidy.py b/.evergreen/config_generator/components/clang_tidy.py index ca04269503..9f0cb0764f 100644 --- a/.evergreen/config_generator/components/clang_tidy.py +++ b/.evergreen/config_generator/components/clang_tidy.py @@ -6,7 +6,7 @@ from config_generator.components.funcs.install_c_driver import InstallCDriver from config_generator.components.funcs.setup import Setup -from config_generator.etc.distros import compiler_to_vars, find_small_distro +from config_generator.etc.distros import compiler_to_vars, find_large_distro from config_generator.etc.function import Function from config_generator.etc.utils import bash_exec @@ -40,8 +40,8 @@ def functions(): def tasks(): - distro_name = 'rhel80' - distro = find_small_distro(distro_name) + distro_name = 'rhel9-latest' + distro = find_large_distro(distro_name) return [ EvgTask( diff --git a/.evergreen/config_generator/etc/distros.py b/.evergreen/config_generator/etc/distros.py index 2fbafc5987..3a6e64b8f8 100644 --- a/.evergreen/config_generator/etc/distros.py +++ b/.evergreen/config_generator/etc/distros.py @@ -63,6 +63,7 @@ def ls_distro(name, **kwargs): ] RHEL_DISTROS = [ + *ls_distro(name='rhel9-latest', os='rhel', os_type='linux', os_ver='9'), *ls_distro(name='rhel7.9', os='rhel', os_type='linux', os_ver='7.9'), *ls_distro(name='rhel80', os='rhel', os_type='linux', os_ver='8.0'), *ls_distro(name='rhel84', os='rhel', os_type='linux', os_ver='8.4'), @@ -72,7 +73,6 @@ def ls_distro(name, **kwargs): *ls_distro(name='rhel93', os='rhel', os_type='linux', os_ver='9.3'), *ls_distro(name='rhel94', os='rhel', os_type='linux', os_ver='9.4'), *ls_distro(name='rhel95', os='rhel', os_type='linux', os_ver='9.5'), - *ls_distro(name='rhel92', os='rhel', os_type='linux', os_ver='9.0'), ] RHEL_ARM64_DISTROS = [ diff --git a/.evergreen/generated_configs/tasks.yml b/.evergreen/generated_configs/tasks.yml index 1c7b38a3b6..e57460c152 100644 --- a/.evergreen/generated_configs/tasks.yml +++ b/.evergreen/generated_configs/tasks.yml @@ -151,8 +151,8 @@ tasks: - func: benchmarks-compile - func: benchmarks-run - name: clang-tidy - run_on: rhel80-small - tags: [clang-tidy, rhel80] + run_on: rhel9-latest-large + tags: [clang-tidy, rhel9-latest] commands: - func: setup - func: install_c_driver From 255e003e4b9b75bc0a76223c045d7932ba260eae Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 17 Nov 2025 14:24:14 -0600 Subject: [PATCH 2/3] CXX-2338 remove `yum install` of GNU parallel --- etc/run-clang-tidy.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/etc/run-clang-tidy.sh b/etc/run-clang-tidy.sh index 47efcd3900..f096b9e3d3 100755 --- a/etc/run-clang-tidy.sh +++ b/etc/run-clang-tidy.sh @@ -11,9 +11,8 @@ if [[ "${distro_id:?}" != rhel* ]]; then exit 1 fi -if ! command -V parallel >/dev/null; then - sudo yum install -q -y parallel -fi +# Required to execute clang-tidy commands in parallel. +command -V parallel >/dev/null # shellcheck source=/dev/null . .evergreen/scripts/install-build-tools.sh From a4722efc2c9b06846f96f795fc20be3d02774386 Mon Sep 17 00:00:00 2001 From: Ezra Chung Date: Mon, 17 Nov 2025 14:24:14 -0600 Subject: [PATCH 3/3] Format source file list with prefix --- etc/run-clang-tidy.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/run-clang-tidy.sh b/etc/run-clang-tidy.sh index f096b9e3d3..71fac4eabf 100755 --- a/etc/run-clang-tidy.sh +++ b/etc/run-clang-tidy.sh @@ -69,7 +69,7 @@ find_args=( ) echo "Scanning the following files:" -find src "${find_args[@]}" +find src "${find_args[@]}" | sed -E -e 's/^/ - /' # TODO: update clang-tidy config and address warnings. {