Skip to content

Commit 4829017

Browse files
authored
418 nightly: add binary/image matrix runs (#3042)
1 parent 024c633 commit 4829017

File tree

2 files changed

+15
-21
lines changed

2 files changed

+15
-21
lines changed

.github/workflows/qe-ocp-418-intrusive.yaml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
path: /tmp/testimage.tar
4646

4747
qe-ocp-418-intrusive-testing:
48-
name: QE OCP 4.18 Tests
48+
name: QE OCP 4.18 Tests (${{ matrix.suite }} - ${{ matrix.run-type }})
4949
runs-on: ubuntu-24.04
5050
needs: build-and-store
5151
if: needs.build-and-store.result == 'success'
@@ -54,6 +54,7 @@ jobs:
5454
matrix:
5555
# Add more suites if more intrusive tests are added to the QE repo
5656
suite: [lifecycle]
57+
run-type: [binary, image]
5758
env:
5859
SHELL: /bin/bash
5960
KUBECONFIG: '/home/runner/.crc/machines/crc/kubeconfig'
@@ -103,34 +104,30 @@ jobs:
103104
ref: main
104105

105106
- name: Download image from artifact
107+
if: matrix.run-type == 'image'
106108
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
107109
with:
108110
name: testimage
109111
path: /tmp
110112

111113
- name: Load image into docker
114+
if: matrix.run-type == 'image'
112115
run: docker load --input /tmp/testimage.tar
113116

114117
- name: Run the tests (against image)
118+
if: matrix.run-type == 'image'
115119
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
116120
with:
117121
timeout_minutes: 60
118122
max_attempts: 3
119-
command: cd ${GITHUB_WORKSPACE}/certsuite-qe; FEATURES=${{matrix.suite}} CERTSUITE_REPO_PATH=${GITHUB_WORKSPACE} CERTSUITE_IMAGE=${{env.CERTSUITE_IMAGE_NAME}} CERTSUITE_IMAGE_TAG=${{env.TEST_CERTSUITE_IMAGE_TAG}} JOB_ID=${{github.run_id}} DISABLE_INTRUSIVE_TESTS=false ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features
120-
121-
- name: Cleanup images before next job to save space
122-
run: |
123-
docker rmi -f ${{env.TEST_CERTSUITE_IMAGE_NAME}}:${{env.TEST_CERTSUITE_IMAGE_TAG}}
124-
docker system prune -f --volumes
125-
126-
- name: Remove crc bundle file to save space
127-
run: |
128-
rm -rf ~/.crc/cache/*.crcbundle
123+
command: cd ${GITHUB_WORKSPACE}/certsuite-qe; FEATURES=${{matrix.suite}} CERTSUITE_REPO_PATH=${GITHUB_WORKSPACE} CERTSUITE_IMAGE=${{env.TEST_CERTSUITE_IMAGE_NAME}} CERTSUITE_IMAGE_TAG=${{env.TEST_CERTSUITE_IMAGE_TAG}} JOB_ID=${{github.run_id}} DISABLE_INTRUSIVE_TESTS=false ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features
129124

130125
- name: Build the binary
126+
if: matrix.run-type == 'binary'
131127
run: make build-certsuite-tool
132128

133129
- name: Run the tests (against binary)
130+
if: matrix.run-type == 'binary'
134131
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
135132
with:
136133
timeout_minutes: 60

.github/workflows/qe-ocp-418.yaml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,15 @@ jobs:
4545
path: /tmp/testimage.tar
4646

4747
qe-ocp-418-testing:
48-
name: QE OCP 4.18 Tests
48+
name: QE OCP 4.18 Tests (${{ matrix.suite }} - ${{ matrix.run-type }})
4949
runs-on: ubuntu-24.04
5050
needs: build-and-store
5151
if: needs.build-and-store.result == 'success'
5252
strategy:
5353
fail-fast: false
5454
matrix:
5555
suite: [accesscontrol, affiliatedcertification, manageability, networking, lifecycle, performance, platformalteration, observability, operator]
56+
run-type: [binary, image]
5657
env:
5758
SHELL: /bin/bash
5859
KUBECONFIG: '/home/runner/.crc/machines/crc/kubeconfig'
@@ -102,34 +103,30 @@ jobs:
102103
ref: main
103104

104105
- name: Download image from artifact
106+
if: matrix.run-type == 'image'
105107
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
106108
with:
107109
name: testimage
108110
path: /tmp
109111

110112
- name: Load image into docker
113+
if: matrix.run-type == 'image'
111114
run: docker load --input /tmp/testimage.tar
112115

113116
- name: Run the tests (against image)
117+
if: matrix.run-type == 'image'
114118
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
115119
with:
116120
timeout_minutes: 150
117121
max_attempts: 3
118122
command: cd ${GITHUB_WORKSPACE}/certsuite-qe; FEATURES=${{matrix.suite}} CERTSUITE_REPO_PATH=${GITHUB_WORKSPACE} CERTSUITE_IMAGE=${{env.TEST_CERTSUITE_IMAGE_NAME}} CERTSUITE_IMAGE_TAG=${{env.TEST_CERTSUITE_IMAGE_TAG}} JOB_ID=${{github.run_id}} DISABLE_INTRUSIVE_TESTS=true ENABLE_PARALLEL=false ENABLE_FLAKY_RETRY=true make test-features
119123

120-
- name: Cleanup images before next job to save space
121-
run: |
122-
docker rmi -f ${{env.TEST_CERTSUITE_IMAGE_NAME}}:${{env.TEST_CERTSUITE_IMAGE_TAG}}
123-
docker system prune -f --volumes
124-
125-
- name: Remove crc bundle file to save space
126-
run: |
127-
rm -rf ~/.crc/cache/*.crcbundle
128-
129124
- name: Build the binary
125+
if: matrix.run-type == 'binary'
130126
run: make build-certsuite-tool
131127

132128
- name: Run the tests (against binary)
129+
if: matrix.run-type == 'binary'
133130
uses: nick-fields/retry@ce71cc2ab81d554ebbe88c79ab5975992d79ba08 # v3.0.2
134131
with:
135132
timeout_minutes: 60

0 commit comments

Comments
 (0)