You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by sz...@apache.org on 2022/06/08 14:19:57 UTC
[nifi-minifi-cpp] 01/02: MINIFICPP-1858 clang-tidy CI quick fixes
This is an automated email from the ASF dual-hosted git repository.
szaszm pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git
commit ba40ba258a6d77405679a66c11a51222e15503c5
Author: Ferenc Gerlits <fg...@gmail.com>
AuthorDate: Wed Jun 8 16:14:54 2022 +0200
MINIFICPP-1858 clang-tidy CI quick fixes
Exclude unbuilt extensions and increase timeout
Closes #1346
Signed-off-by: Marton Szasz <sz...@apache.org>
---
.github/workflows/ci.yml | 2 +-
run_clang_tidy.sh | 7 +++++++
2 files changed, 8 insertions(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5345b156f..3d3d9a5b5 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -132,7 +132,7 @@ jobs:
ubuntu_20_04_clang:
name: "ubuntu-20.04-clang"
runs-on: ubuntu-20.04
- timeout-minutes: 120
+ timeout-minutes: 180
steps:
- id: checkout
uses: actions/checkout@v2
diff --git a/run_clang_tidy.sh b/run_clang_tidy.sh
index 1689032bf..09e91bafd 100755
--- a/run_clang_tidy.sh
+++ b/run_clang_tidy.sh
@@ -5,7 +5,14 @@ set -uo pipefail
exit_code=0
FILES=$1
+EXCLUDED_EXTENSIONS=("pdh" "windows-event-log" "tensorflow")
+
for changed_file in ${FILES}; do
+ for extension in "${EXCLUDED_EXTENSIONS[@]}"; do
+ if [[ "${changed_file}" =~ extensions/${extension}/ ]]; then
+ continue 2
+ fi
+ done
if [[ "${changed_file}" == *.cpp ]]; then
clang-tidy-14 -warnings-as-errors=* -quiet -p build "${changed_file}"
exit_code=$(( $? | exit_code ))