From 5fa9e353ce34c503a397b6bf2da12e8d76a5cd7d Mon Sep 17 00:00:00 2001 From: Marcel Zieba Date: Fri, 6 Sep 2024 13:02:12 +0200 Subject: [PATCH] ci: Clustermesh conformance wait for images before matrix generation Signed-off-by: Marcel Zieba --- .../workflows/conformance-clustermesh.yaml | 25 +++++++++++++------ 1 file changed, 17 insertions(+), 8 deletions(-) diff --git a/.github/workflows/conformance-clustermesh.yaml b/.github/workflows/conformance-clustermesh.yaml index e462999ac3754..6344d7f31afcb 100644 --- a/.github/workflows/conformance-clustermesh.yaml +++ b/.github/workflows/conformance-clustermesh.yaml @@ -88,7 +88,24 @@ jobs: with: sha: ${{ inputs.SHA || github.sha }} + wait-for-images: + name: Wait for images + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - name: Checkout context ref (trusted) + uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + with: + ref: ${{ inputs.context-ref || github.sha }} + persist-credentials: false + - name: Wait for images + uses: ./.github/actions/wait-for-images + with: + SHA: ${{ inputs.SHA }} + images: cilium-ci operator-generic-ci hubble-relay-ci clustermesh-apiserver-ci cilium-cli-ci + installation-and-connectivity: + needs: [wait-for-images] name: Installation and Connectivity Test runs-on: ${{ vars.GH_RUNNER_EXTRA_POWER }} timeout-minutes: 60 @@ -468,14 +485,6 @@ jobs: ${{ steps.kvstore.outputs.cilium_install_clustermesh }} \ " >> $GITHUB_OUTPUT - - name: Wait for images to be available - timeout-minutes: 30 - shell: bash - run: | - for image in cilium-ci operator-generic-ci hubble-relay-ci clustermesh-apiserver-ci ; do - until docker manifest inspect quay.io/${{ env.QUAY_ORGANIZATION_DEV }}/$image:${{ steps.vars.outputs.sha }} &> /dev/null; do sleep 45s; done - done - # Warning: since this is a privileged workflow, subsequent workflow job # steps must take care not to execute untrusted code. - name: Checkout pull request branch (NOT TRUSTED)