-
Notifications
You must be signed in to change notification settings - Fork 554
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI: Add custom GitHub Actions job to run clang-tidy (#5235)
Follow-up from #4983 ; should be merged after that. - [x] Adjust clang-tidy script to only run CMAKE to generate the compile-commands db and not to actually build. - [x] #5496 Authors: - Simon Adorf (https://github.com/csadorf) - Bradley Dice (https://github.com/bdice) - Dante Gama Dessavre (https://github.com/dantegd) Approvers: - AJ Schmidt (https://github.com/ajschmidt8) - Dante Gama Dessavre (https://github.com/dantegd) URL: #5235
- Loading branch information
Showing
14 changed files
with
280 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ jobs: | |
pr-builder: | ||
needs: | ||
- checks | ||
- clang-tidy | ||
- conda-cpp-build | ||
- conda-cpp-tests | ||
- conda-python-build | ||
|
@@ -29,6 +30,16 @@ jobs: | |
uses: rapidsai/shared-action-workflows/.github/workflows/checks.yaml@cuda-120 | ||
with: | ||
enable_check_generated_files: false | ||
clang-tidy: | ||
needs: checks | ||
secrets: inherit | ||
uses: rapidsai/shared-action-workflows/.github/workflows/[email protected] | ||
with: | ||
build_type: pull-request | ||
node_type: "cpu8" | ||
arch: "amd64" | ||
container_image: "rapidsai/ci:latest" | ||
run_script: "ci/run_clang_tidy.sh" | ||
conda-cpp-build: | ||
needs: checks | ||
secrets: inherit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2023, NVIDIA CORPORATION. | ||
|
||
set -euo pipefail | ||
|
||
rapids-logger "Create clang_tidy conda environment" | ||
. /opt/conda/etc/profile.d/conda.sh | ||
|
||
rapids-dependency-file-generator \ | ||
--output conda \ | ||
--file_key clang_tidy \ | ||
--matrix "cuda=${RAPIDS_CUDA_VERSION%.*};arch=$(arch);py=${RAPIDS_PY_VERSION}" | tee env.yaml | ||
|
||
rapids-mamba-retry env create --force -f env.yaml -n clang_tidy | ||
# Temporarily allow unbound variables for conda activation. | ||
set +u && conda activate clang_tidy && set -u | ||
|
||
./build.sh --configure-only libcuml | ||
|
||
rapids-logger "Run clang-tidy" | ||
|
||
python cpp/scripts/run-clang-tidy.py --config pyproject.toml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# This file is generated by `rapids-dependency-file-generator`. | ||
# To make changes, edit ../../dependencies.yaml and run `rapids-dependency-file-generator`. | ||
channels: | ||
- rapidsai | ||
- rapidsai-nightly | ||
- dask/label/dev | ||
- conda-forge | ||
- nvidia | ||
dependencies: | ||
- c-compiler | ||
- clang-tools==15.0.7 | ||
- clang==15.0.7 | ||
- cmake>=3.26.4 | ||
- cuda-version=11.8 | ||
- cudatoolkit | ||
- cxx-compiler | ||
- gcc_linux-64=11.* | ||
- gmock>=1.13.0 | ||
- gtest>=1.13.0 | ||
- libcublas-dev=11.11.3.6 | ||
- libcublas=11.11.3.6 | ||
- libcufft-dev=10.9.0.58 | ||
- libcufft=10.9.0.58 | ||
- libcumlprims==23.8.* | ||
- libcurand-dev=10.3.0.86 | ||
- libcurand=10.3.0.86 | ||
- libcusolver-dev=11.4.1.48 | ||
- libcusolver=11.4.1.48 | ||
- libcusparse-dev=11.7.5.86 | ||
- libcusparse=11.7.5.86 | ||
- libraft-headers==23.8.* | ||
- libraft==23.8.* | ||
- librmm==23.8.* | ||
- ninja | ||
- nvcc_linux-64=11.8 | ||
- sysroot_linux-64==2.17 | ||
- tomli | ||
name: clang_tidy_cuda-118_arch-x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.