Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .evergreen/config_generator/components/clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion .evergreen/config_generator/etc/distros.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand All @@ -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 = [
Expand Down
4 changes: 2 additions & 2 deletions .evergreen/generated_configs/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions etc/run-clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -70,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.
{
Expand Down