From 27f11ee850d0e4423af21ba756b4fd0c50ec1c26 Mon Sep 17 00:00:00 2001 From: Wainer dos Santos Moschetta Date: Mon, 29 Jul 2024 18:57:42 -0300 Subject: [PATCH] workflows: enable docker e2e test in e2e_run_all This will make the e2e tests for docker to run. Initially it's disabled on pull requests, so only running with the nightly and manual triggers. Notice that's set continue-on-error so that the e2e_run_all workflow exit status won't change, i.e. any failure on e2e_docker is disregarded. Signed-off-by: Wainer dos Santos Moschetta --- .github/workflows/e2e_docker.yaml | 2 ++ .github/workflows/e2e_run_all.yaml | 27 ++++++++++++++++++++++++++- 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/.github/workflows/e2e_docker.yaml b/.github/workflows/e2e_docker.yaml index 31353b690..18f442f58 100644 --- a/.github/workflows/e2e_docker.yaml +++ b/.github/workflows/e2e_docker.yaml @@ -39,6 +39,8 @@ defaults: jobs: test-docker: runs-on: ubuntu-22.04 + # TODO: remove this when the job gets stable + continue-on-error: true steps: - name: Checkout Code uses: actions/checkout@v3 diff --git a/.github/workflows/e2e_run_all.yaml b/.github/workflows/e2e_run_all.yaml index cfbf0162c..a75c434a2 100644 --- a/.github/workflows/e2e_run_all.yaml +++ b/.github/workflows/e2e_run_all.yaml @@ -100,7 +100,7 @@ jobs: needs: [image] runs-on: ubuntu-latest env: - PROVIDERS: "libvirt" + PROVIDERS: "docker libvirt" steps: - name: Checkout Code uses: actions/checkout@v3 @@ -172,3 +172,28 @@ jobs: install_directory_artifact: install_directory git_ref: ${{ inputs.git_ref }} secrets: inherit + + # Run docker e2e tests if pull request labeled 'test_e2e_docker' + docker: + name: docker + if: | + github.event_name == 'schedule' || + github.event_name == 'workflow_dispatch' + needs: [podvm, image, prep_install] + strategy: + fail-fast: false + matrix: + os: + - fedora + provider: + - docker + arch: + - amd64 + uses: ./.github/workflows/e2e_docker.yaml + with: + caa_image: ${{ inputs.registry }}/cloud-api-adaptor + caa_image_tag: ${{ inputs.caa_image_tag }} + podvm_image: ${{ inputs.registry }}/podvm-${{ matrix.provider }}-image:${{ inputs.podvm_image_tag }} + install_directory_artifact: install_directory + git_ref: ${{ inputs.git_ref }} + secrets: inherit \ No newline at end of file