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,16 @@ 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="./deploy/build/${{ matrix.flavor.directory }}/hooks"
330+ test_images_hook="$hooks_folder/test-images.sh"
331+ test_images_report="$hooks_folder/test-images-report"
332+
333+ # Create report folder to avoid any downstream Docker volume issues
334+ mkdir -p "$test_images_report"
329335
330336 if [[ -f "$test_images_hook" ]]; then
331337 # Iterate through all components and store their image ref in an environment variable
@@ -341,12 +347,28 @@ jobs:
341347 echo "Run $test_images_hook"
342348 chmod +x "$test_images_hook"
343349 "$test_images_hook"
350+
351+ if [[ -d "$test_images_report" ]]; then
352+ # Store as output of this action, so we can upload it as artifact in the next step
353+ echo "Found $test_images_report, storing as output."
354+ echo "test_images_report=$test_images_report" >> $GITHUB_OUTPUT
355+ else
356+ echo "No $test_images_report found."
357+ ls -la ${hooks_folder}
358+ fi
344359 else
345360 echo "No $test_images_hook found, skipping tests."
346361 fi
347362 env :
348363 FLAVOR : ${{ toJSON(matrix.flavor) }}
349364
365+ - name : Upload test-images-report
366+ uses : actions/upload-artifact@v4
367+ if : ${{ steps.test-images.outputs.test_images_report }}
368+ with :
369+ name : " test-images-report-${{ matrix.flavor.id || 'default' }}"
370+ path : ${{ steps.test-images.outputs.test_images_report }}
371+
350372 - name : Log out from Amazon ECR
351373 shell : bash
352374 run : docker logout ${{ steps.login-ecr.outputs.registry }}
@@ -361,7 +383,7 @@ jobs:
361383 flavor : ${{ fromJson(needs.get-flavors.outputs.result).flavors }}
362384 # Do not run this on self-hosted, as it is faster and shouldn't be blocking anything
363385 # runs-on: ${{ inputs.runs_on || 'ubuntu-22.04' }}
364- runs-on : ' ubuntu-22.04'
386+ runs-on : " ubuntu-22.04"
365387 steps :
366388 - name : Checkout repository
367389 uses : actions/checkout@v5
0 commit comments