NIFI-12191 Simplified integration-tests and docker-tests Workflows

This closes #7920

Signed-off-by: David Handermann <exceptionfactory@apache.org>
This commit is contained in:
Chris Sampson 2023-10-15 17:29:11 +01:00 committed by exceptionfactory
parent a44b633252
commit 4ff4f77dd8
No known key found for this signature in database
GPG Key ID: 29B6A52D2AAE8DBA
3 changed files with 18 additions and 44 deletions

View File

@ -107,36 +107,23 @@ permissions:
jobs: jobs:
build_and_test: build_and_test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
version: [ 21 ]
timeout-minutes: 120 timeout-minutes: 120
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
name: ${{ matrix.os }} Java ${{ matrix.version }} name: Ubuntu Java 21
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Java Zulu ${{ matrix.version }} - name: Set up Java Zulu 21
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: ${{ matrix.version }} java-version: 21
cache: 'maven' cache: 'maven'
- name: Set up Docker
if: ${{ runner.os == 'macOS' }}
run: |-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install docker
colima start
sudo ln -s ~/.colima/docker.sock /var/run/docker.sock
- name: System Information - name: System Information
run: | run: |
hostname hostname
if [ "${{ runner.os }}" = "macOS" ]; then top -l 1 | grep PhysMem && sysctl machdep.cpu; else cat /proc/cpuinfo && cat /proc/meminfo; fi cat /proc/cpuinfo
cat /proc/meminfo
df df
docker info docker info

View File

@ -87,37 +87,23 @@ permissions:
jobs: jobs:
build_and_test: build_and_test:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest ]
version: [ 21 ]
timeout-minutes: 120 timeout-minutes: 120
runs-on: ${{ matrix.os }} runs-on: ubuntu-latest
name: ${{ matrix.os }} Java ${{ matrix.version }} name: Ubuntu Java 21
steps: steps:
- name: Checkout Code - name: Checkout Code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Java Zulu ${{ matrix.version }} - name: Set up Java Zulu 21
uses: actions/setup-java@v3 uses: actions/setup-java@v3
with: with:
distribution: 'zulu' distribution: 'zulu'
java-version: ${{ matrix.version }} java-version: 21
cache: 'maven' cache: 'maven'
# many integration-tests use Docker to run Testcontainers; MacOS doesn't come with Docker, so we need to install it
- name: Set up Docker
if: ${{ runner.os == 'macOS' }}
run: |-
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install docker
colima start
sudo ln -s ~/.colima/docker.sock /var/run/docker.sock
- name: System Information - name: System Information
run: | run: |
hostname hostname
if [ "${{ runner.os }}" = "macOS" ]; then top -l 1 | grep PhysMem && sysctl machdep.cpu; else cat /proc/cpuinfo && cat /proc/meminfo; fi cat /proc/cpuinfo
cat /proc/meminfo
df df
docker info docker info
@ -133,7 +119,7 @@ jobs:
if: failure() || cancelled() if: failure() || cancelled()
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v3
with: with:
name: ${{ matrix.os }}-${{ matrix.version }}-failsafe-logs name: ubuntu-21-failsafe-logs
path: | path: |
**/target/failsafe-reports/**/*.txt **/target/failsafe-reports/**/*.txt
retention-days: 7 retention-days: 7

View File

@ -1089,6 +1089,7 @@
!ITestConsumeEmail#validateUrl, !ITestConsumeEmail#validateUrl,
!PrometheusReportingTaskIT#testNullLabel, !PrometheusReportingTaskIT#testNullLabel,
!SnowflakeConnectionPoolIT, !SnowflakeConnectionPoolIT,
!SnowflakePipeIT,
!SalesforceRestServiceIT, !SalesforceRestServiceIT,
!QuerySalesforceObjectIT, !QuerySalesforceObjectIT,
!PutSalesforceObjectIT, !PutSalesforceObjectIT,
@ -1110,7 +1111,7 @@
!ITRedisDistributedMapCacheClientService#testSentinelRedisWithUsernameAndPasswordAuthentication, !ITRedisDistributedMapCacheClientService#testSentinelRedisWithUsernameAndPasswordAuthentication,
!ITRedisDistributedMapCacheClientService#testStandaloneRedis, !ITRedisDistributedMapCacheClientService#testStandaloneRedis,
!ITRedisDistributedMapCacheClientService#testStandaloneRedisWithAuthentication, !ITRedisDistributedMapCacheClientService#testStandaloneRedisWithAuthentication,
!SnowflakePipeIT, !SecureDatabaseIT,
!SecureFileIT, !SecureFileIT,
!SecureProxyIT#testAccessStatus, !SecureProxyIT#testAccessStatus,
!SecureProxyIT#testAccessStatusAsProxiedAdmin, !SecureProxyIT#testAccessStatusAsProxiedAdmin,
@ -1119,7 +1120,8 @@
!SecureNiFiRegistryClientIT#testTenantsClientGroups, !SecureNiFiRegistryClientIT#testTenantsClientGroups,
!SecureNiFiRegistryClientIT#testTenantsClientUsers, !SecureNiFiRegistryClientIT#testTenantsClientUsers,
!SecureNiFiRegistryClientIT#testCrudOperations, !SecureNiFiRegistryClientIT#testCrudOperations,
!SecureDatabaseIT, !UnsecuredNiFiRegistryClientIT#testFlowSnapshotsWithParameterContextAndEncodingVersion,
!UnsecuredNiFiRegistryClientIT#testNiFiRegistryClient,
!ITConnectionAccessControl, !ITConnectionAccessControl,
!ITLabelAccessControl, !ITLabelAccessControl,
!ITOutputPortAccessControl, !ITOutputPortAccessControl,
@ -1132,8 +1134,7 @@
!ITPreventProxiedAnonymousAccess, !ITPreventProxiedAnonymousAccess,
!ITPreventDirectAnonymousAccess, !ITPreventDirectAnonymousAccess,
!ITAllowDirectAnonymousAccess, !ITAllowDirectAnonymousAccess,
!ITProcessGroupAccessControl, !ITProcessGroupAccessControl
!UnsecuredNiFiRegistryClientIT#testFlowSnapshotsWithParameterContextAndEncodingVersion
</test> </test>
</configuration> </configuration>
</plugin> </plugin>