Skip to content

Commit

Permalink
MINIFICPP-2522 Various CI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
martinzink committed Feb 19, 2025
1 parent 7b6b5de commit e8f9cbe
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 150 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,9 @@ jobs:
with:
name: ubuntu-binaries
path: build/bin
ubuntu_22_04_clang:
name: "ubuntu-22.04-clang"
runs-on: ubuntu-22.04
ubuntu_22_04_clang_arm:
name: "ubuntu-22.04-clang-arm"
runs-on: ubuntu-22.04-arm
timeout-minutes: 240
env:
UBUNTU_CLANG_MINIFI_OPTIONS: >-
Expand Down Expand Up @@ -383,10 +383,10 @@ jobs:
uses: actions/cache/restore@v4
with:
path: ${{ env.CCACHE_DIR }}
key: ubuntu-22.04-all-clang-ccache-${{github.ref}}-${{github.sha}}
key: ubuntu-22.04-arm-all-clang-ccache-${{github.ref}}-${{github.sha}}
restore-keys: |
ubuntu-22.04-all-clang-ccache-${{github.ref}}-
ubuntu-22.04-all-clang-ccache-refs/heads/main-
ubuntu-22.04-arm-all-clang-ccache-${{github.ref}}-
ubuntu-22.04-arm-all-clang-ccache-refs/heads/main-
- id: install_deps
run: |
wget -O - https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add -
Expand Down Expand Up @@ -423,7 +423,7 @@ jobs:
if: always()
with:
path: ${{ env.CCACHE_DIR }}
key: ubuntu-22.04-all-clang-ccache-${{github.ref}}-${{github.sha}}
key: ubuntu-22.04-arm-all-clang-ccache-${{github.ref}}-${{github.sha}}
- name: test
id: test
run: |
Expand Down
46 changes: 8 additions & 38 deletions .github/workflows/verify-package.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
name: "MiNiFi-CPP Verify Package"
on: [workflow_dispatch]
on:
schedule:
- cron: '0 0 * * 0'
workflow_dispatch:
env:
DOCKER_CMAKE_FLAGS: -DDOCKER_VERIFY_THREAD=3 -DUSE_SHARED_LIBS= -DSTRICT_GSL_CHECKS=AUDIT -DCI_BUILD=ON -DENABLE_AWS=ON -DENABLE_KAFKA=ON -DENABLE_MQTT=ON -DENABLE_AZURE=ON -DENABLE_SQL=ON \
-DENABLE_SPLUNK=ON -DENABLE_GCP=ON -DENABLE_OPC=ON -DENABLE_PYTHON_SCRIPTING=ON -DENABLE_LUA_SCRIPTING=ON -DENABLE_KUBERNETES=ON -DENABLE_TEST_PROCESSORS=ON -DENABLE_PROMETHEUS=ON \
-DENABLE_ELASTICSEARCH=OFF -DENABLE_GRAFANA_LOKI=ON -DENABLE_COUCHBASE=ON -DDOCKER_BUILD_ONLY=ON
CCACHE_DIR: ${{ GITHUB.WORKSPACE }}/.ccache
jobs:
rocky-x86-64-build:
name: "Build package (Rocky 8 x86_64)"
Expand All @@ -13,29 +15,13 @@ jobs:
steps:
- id: checkout
uses: actions/checkout@v4
- name: cache restore
uses: actions/cache/restore@v4
with:
path: ~/.ccache
key: verify-package-ccache-${{github.ref}}-${{github.sha}}
restore-keys: |
verify-package-ccache-${{github.ref}}-
verify-package-ccache-refs/heads/main-
- id: install_deps
run: |
sudo apt update
sudo apt install -y ccache cmake
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
sudo apt install -y cmake
- id: build
run: |
if [ -d ~/.ccache ]; then mv ~/.ccache .; fi
mkdir build && cd build && cmake ${DOCKER_CMAKE_FLAGS} -DDOCKER_CCACHE_DUMP_LOCATION=${{ env.CCACHE_DIR }} .. && make rocky
- name: cache save
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.CCACHE_DIR }}
key: verify-package-ccache-${{github.ref}}-${{github.sha}}
mkdir build && cd build && cmake ${DOCKER_CMAKE_FLAGS} .. && make rocky
- uses: actions/upload-artifact@v4
with:
name: minifi-x86-64-tar
Expand All @@ -49,29 +35,13 @@ jobs:
steps:
- id: checkout
uses: actions/checkout@v4
- name: cache restore
uses: actions/cache/restore@v4
with:
path: ~/.ccache
key: verify-package-arm-ccache-${{github.ref}}-${{github.sha}}
restore-keys: |
verify-package-arm-ccache-${{github.ref}}-
verify-package-arm-ccache-refs/heads/main-
- id: install_deps
run: |
sudo apt update
sudo apt install -y ccache cmake
echo "PATH=/usr/lib/ccache:$PATH" >> $GITHUB_ENV
sudo apt install -y cmake
- id: build
run: |
if [ -d ~/.ccache ]; then mv ~/.ccache .; fi
mkdir build && cd build && cmake ${DOCKER_CMAKE_FLAGS} -DDOCKER_CCACHE_DUMP_LOCATION=${{ env.CCACHE_DIR }} .. && make rocky
- name: cache save
uses: actions/cache/save@v4
if: always()
with:
path: ${{ env.CCACHE_DIR }}
key: verify-package-arm-ccache-${{github.ref}}-${{github.sha}}
mkdir build && cd build && cmake ${DOCKER_CMAKE_FLAGS} .. && make rocky
- uses: actions/upload-artifact@v4
with:
name: minifi-aarch64-tar
Expand Down
3 changes: 1 addition & 2 deletions cmake/DockerConfig.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/docker/test/integration/features)
endif()
endforeach()

set(DISABLED_TAGS "SKIP_CI,NEEDS_NUMPY")
set(DISABLED_TAGS "SKIP_CI")

add_custom_target(
docker-verify
Expand All @@ -172,5 +172,4 @@ function(CREATE_DOCKER_TARGET_FROM_ROCKY_PACKAGE BASE_IMAGE TAG_PREFIX INSTALL_P
${CMAKE_BINARY_DIR})
endfunction()

include(VerifyPythonCompatibility)
include(VerifyPackageWithDocker)
2 changes: 1 addition & 1 deletion cmake/VerifyPackageWithDocker.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ function(ADD_PACKAGE_VERIFY TAG_PREFIX)
endif()
endforeach()

set(DISABLED_TAGS "SKIP_CI,NEEDS_NUMPY")
set(DISABLED_TAGS "SKIP_CI")

add_custom_target(
docker-verify-${TAG_PREFIX}
Expand Down
72 changes: 0 additions & 72 deletions cmake/VerifyPythonCompatibility.cmake

This file was deleted.

8 changes: 8 additions & 0 deletions docker/test/integration/features/couchbase.feature
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the LogAttribute

When a Couchbase server is started
Expand All @@ -53,6 +54,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the LogAttribute

When a Couchbase server is started
Expand Down Expand Up @@ -80,6 +82,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
And the "success" relationship of the PutFile processor is connected to the LogAttribute
Expand Down Expand Up @@ -109,6 +112,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
And the "success" relationship of the PutFile processor is connected to the LogAttribute
Expand Down Expand Up @@ -139,6 +143,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
And the "success" relationship of the PutFile processor is connected to the LogAttribute
Expand Down Expand Up @@ -167,6 +172,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey

When a Couchbase server is started
Expand All @@ -190,6 +196,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is set up up with SSL connection with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
And the "success" relationship of the PutFile processor is connected to the LogAttribute
Expand Down Expand Up @@ -218,6 +225,7 @@ Feature: Executing Couchbase operations from MiNiFi-C++
And a CouchbaseClusterService is setup up using mTLS authentication with the name "CouchbaseClusterService"

And the "success" relationship of the GetFile processor is connected to the PutCouchbaseKey
And the "failure" relationship of the PutCouchbaseKey processor is connected to the PutCouchbaseKey
And the "success" relationship of the PutCouchbaseKey processor is connected to the GetCouchbaseKey
And the "success" relationship of the GetCouchbaseKey processor is connected to the PutFile
And the "success" relationship of the PutFile processor is connected to the LogAttribute
Expand Down
30 changes: 0 additions & 30 deletions docker/test/integration/features/python_with_modules.feature

This file was deleted.

0 comments on commit e8f9cbe

Please sign in to comment.