Skip to content
Closed
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
2 changes: 1 addition & 1 deletion .evergreen/config_generator/components/clang_tidy.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def functions():


def tasks():
distro_name = 'rhel80'
distro_name = 'rhel9-latest'
distro = find_small_distro(distro_name)

return [
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-small
tags: [clang-tidy, rhel9-latest]
commands:
- func: setup
- func: install_c_driver
Expand Down
6 changes: 2 additions & 4 deletions etc/run-clang-tidy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@ if [[ "${distro_id:?}" != rhel* ]]; then
exit 1
fi

if ! command -V parallel >/dev/null; then
sudo yum install -q -y parallel
fi
command -V parallel >/dev/null

# shellcheck source=/dev/null
. .evergreen/scripts/install-build-tools.sh
Expand Down Expand Up @@ -70,7 +68,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