2525 required : false
2626 default : true
2727 scan_high_severity :
28- description : ' Include high severity'
28+ description : " Include high severity"
2929 type : boolean
3030 required : false
3131 default : true
@@ -45,7 +45,7 @@ concurrency:
4545 cancel-in-progress : true
4646
4747env :
48- WORKFLOW_BRANCH : " mp/test_images" # TODO: Revert to main
48+ WORKFLOW_BRANCH : " mp/test_images" # TODO: Revert to main
4949 DATAVISYN_PYTHON_BASE_IMAGE : " 188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/python:main"
5050 DATAVISYN_NGINX_BASE_IMAGE : " 188237246440.dkr.ecr.eu-central-1.amazonaws.com/datavisyn/base/nginx:main"
5151
6060 result : ${{ steps.get-flavors.outputs.result }}
6161 # Do not run this on self-hosted, as it is faster and shouldn't be blocking anything
6262 # runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
63- runs-on : ' ubuntu-22.04'
63+ runs-on : " ubuntu-22.04"
6464 steps :
6565 - name : Checkout repository
6666 uses : actions/checkout@v5
@@ -279,7 +279,7 @@ jobs:
279279 # ignore-unfixed: false
280280 # vuln-type: 'os,library'
281281 # severity: ${{ steps.set_severity.outputs.severity }}
282- # continue-on-error: false
282+ # continue-on-error: false
283283
284284 # - name: Push image
285285 # if: ${{ inputs.skip_push != true }}
@@ -322,10 +322,13 @@ jobs:
322322 id : login-ecr
323323 uses :
aws-actions/[email protected] 324324
325- - name : Test images
325+ - name : Run test- images.sh hook
326326 shell : bash
327+ id : test-images
327328 run : |
328- test_images_hook="./deploy/build/${{ matrix.flavor.directory }}/hooks/test_images.sh"
329+ hooks_folder="$(realpath -m "./deploy/build/${{ matrix.flavor.directory }}/hooks")"
330+ test_images_hook="$hooks_folder/test-images.sh"
331+ test_images_report="$hooks_folder/test-images-report"
329332
330333 if [[ -f "$test_images_hook" ]]; then
331334 # Iterate through all components and store their image ref in an environment variable
@@ -338,15 +341,28 @@ jobs:
338341 export "IMAGE_$name_upper=$image_ref"
339342 done;
340343
344+ # Create report folder to avoid any downstream Docker volume issues
345+ # TODO: For some reason this doesn't work yet, i.e. if a docker-compose script mounts a volume here, nothing shows up...
346+ mkdir -p "$test_images_report"
347+ chmod 777 "$test_images_report"
348+
341349 echo "Run $test_images_hook"
342350 chmod +x "$test_images_hook"
343351 "$test_images_hook"
352+
344353 else
345354 echo "No $test_images_hook found, skipping tests."
346355 fi
347356 env :
348357 FLAVOR : ${{ toJSON(matrix.flavor) }}
349358
359+ - name : Upload test-images-report
360+ uses : actions/upload-artifact@v4
361+ if : ${{ steps.test-images.outputs.test_images_report }}
362+ with :
363+ name : " test-images-report-${{ matrix.flavor.id || 'default' }}"
364+ path : ${{ steps.test-images.outputs.test_images_report }}
365+
350366 - name : Log out from Amazon ECR
351367 shell : bash
352368 run : docker logout ${{ steps.login-ecr.outputs.registry }}
@@ -361,7 +377,7 @@ jobs:
361377 flavor : ${{ fromJson(needs.get-flavors.outputs.result).flavors }}
362378 # Do not run this on self-hosted, as it is faster and shouldn't be blocking anything
363379 # runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
364- runs-on : ' ubuntu-22.04'
380+ runs-on : " ubuntu-22.04"
365381 steps :
366382 - name : Checkout repository
367383 uses : actions/checkout@v5
0 commit comments