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:56 UTC

[nifi-minifi-cpp] branch main updated (e5bd87cc2 -> f934968ef)

This is an automated email from the ASF dual-hosted git repository.

szaszm pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


    from e5bd87cc2 MINIFICPP-1845 c2 request compression: review changes...
     new ba40ba258 MINIFICPP-1858 clang-tidy CI quick fixes
     new f934968ef MINIFICPP-1859 Use GitHub mirror of Mbed TLS

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .github/workflows/ci.yml   | 2 +-
 cmake/BundledMbedTLS.cmake | 6 +++---
 run_clang_tidy.sh          | 7 +++++++
 3 files changed, 11 insertions(+), 4 deletions(-)


[nifi-minifi-cpp] 02/02: MINIFICPP-1859 Use GitHub mirror of Mbed TLS

Posted by sz...@apache.org.
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 f934968ef8ee504e53d823db729cb1a669536e9b
Author: Adam Markovics <nu...@gmail.com>
AuthorDate: Wed Jun 8 15:06:10 2022 +0200

    MINIFICPP-1859 Use GitHub mirror of Mbed TLS
    
    Closes #1347
    Signed-off-by: Marton Szasz <sz...@apache.org>
---
 cmake/BundledMbedTLS.cmake | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cmake/BundledMbedTLS.cmake b/cmake/BundledMbedTLS.cmake
index aa1b2392d..7d9184cf4 100644
--- a/cmake/BundledMbedTLS.cmake
+++ b/cmake/BundledMbedTLS.cmake
@@ -49,8 +49,8 @@ function(use_bundled_mbedtls SOURCE_DIR BINARY_DIR)
     # Build project
     ExternalProject_Add(
             mbedtls-external
-            URL "https://tls.mbed.org/download/mbedtls-2.16.3-apache.tgz"
-            URL_HASH "SHA256=ec1bee6d82090ed6ea2690784ea4b294ab576a65d428da9fe8750f932d2da661"
+            URL "https://github.com/Mbed-TLS/mbedtls/archive/refs/tags/mbedtls-2.16.3.tar.gz"
+            URL_HASH "SHA256=ec72ecf39275327f52b5ee9787271313a0d2960e7342b488d223a118ba164caa"
             SOURCE_DIR "${BINARY_DIR}/thirdparty/mbedtls-src"
             CMAKE_ARGS ${MBEDTLS_CMAKE_ARGS}
             BUILD_BYPRODUCTS ${MBEDTLS_LIBRARIES_LIST}
@@ -101,4 +101,4 @@ function(use_bundled_mbedtls SOURCE_DIR BINARY_DIR)
             IMPORTED_LOCATION "${MBEDTLS_LIBRARY}")
     add_dependencies(mbedTLS::mbedtls mbedtls-external)
     set_property(TARGET mbedTLS::mbedtls APPEND PROPERTY INTERFACE_LINK_LIBRARIES mbedTLS::mbedx509 mbedTLS::mbedcrypto)
-endfunction(use_bundled_mbedtls)
\ No newline at end of file
+endfunction(use_bundled_mbedtls)


[nifi-minifi-cpp] 01/02: MINIFICPP-1858 clang-tidy CI quick fixes

Posted by sz...@apache.org.
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 ))