Skip to content

Commit

Permalink
ci: Clustermesh conformance wait for images before matrix generation
Browse files Browse the repository at this point in the history
Signed-off-by: Marcel Zieba <[email protected]>
  • Loading branch information
marseel authored and pchaigno committed Sep 6, 2024
1 parent 85157d2 commit 5fa9e35
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/conformance-clustermesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 5fa9e35

Please sign in to comment.