From 63e041a1caa0c00e3b234841fff6d15cf0a5ef82 Mon Sep 17 00:00:00 2001 From: stevenhorsman Date: Mon, 28 Oct 2024 13:25:19 +0000 Subject: [PATCH] workflows: e2e_run_all: Add new decoupled jobs - Added two new decoupled jobs that depends on the amd64 and s390x mkosi podvm builds to test each of those images with libvirt - Added the option of arch specific label triggers in case of specific testing restrictions Signed-off-by: stevenhorsman --- .github/workflows/e2e_run_all.yaml | 39 ++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/.github/workflows/e2e_run_all.yaml b/.github/workflows/e2e_run_all.yaml index 9f9564636..7b178efd5 100644 --- a/.github/workflows/e2e_run_all.yaml +++ b/.github/workflows/e2e_run_all.yaml @@ -193,6 +193,45 @@ jobs: git_ref: ${{ inputs.git_ref }} secrets: inherit + + # Run libvirt amd64 e2e tests, based on the mkosi image, if pull request labeled 'test_e2e_libvirt' + libvirt-amd64: + name: libvirt-amd64-tests + if: | + github.event_name == 'schedule' || + github.event_name == 'workflow_dispatch' || + contains(github.event.pull_request.labels.*.name, 'test_e2e_libvirt') || + contains(github.event.pull_request.labels.*.name, 'test_e2e_libvirt_amd64') + needs: [podvm-mkosi-amd64, image, prep_install] + uses: ./.github/workflows/e2e_libvirt.yaml + with: + runner: ubuntu-24.04 + caa_image: ${{ inputs.registry }}/cloud-api-adaptor:${{ inputs.caa_image_tag }}-dev + podvm_image: ${{ needs.podvm-mkosi-amd64.outputs.qcow2_oras_image }} + install_directory_artifact: install_directory + git_ref: ${{ inputs.git_ref }} + oras: true + secrets: inherit + + # Run libvirt s390x e2e tests, based on the mkosi image, if pull request labeled 'test_e2e_libvirt' + libvirt-s390x: + name: libvirt-s390x-tests + if: | + github.event_name == 'schedule' || + github.event_name == 'workflow_dispatch' || + contains(github.event.pull_request.labels.*.name, 'test_e2e_libvirt') || + contains(github.event.pull_request.labels.*.name, 'test_e2e_libvirt_s390x') + needs: [podvm-mkosi-s390x, image, prep_install] + uses: ./.github/workflows/e2e_libvirt.yaml + with: + runner: S390X + caa_image: ${{ inputs.registry }}/cloud-api-adaptor:${{ inputs.caa_image_tag }}-dev + podvm_image: ${{ needs.podvm-mkosi-s390x.outputs.qcow2_oras_image }} + install_directory_artifact: install_directory + git_ref: ${{ inputs.git_ref }} + oras: true + secrets: inherit + # Run docker e2e tests if pull request labeled 'test_e2e_docker' docker: name: docker