@@ -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