Skip to content

Commit

Permalink
gh/workflow: change multicluster provisioning to none blocking mode
Browse files Browse the repository at this point in the history
Multicluster conformance tests set up two clusters in blocking mode
and sequentially. Every cluster provisioning takes 4 to 5 min.
This commit changes provisioning to none blocking mode and adds
a step to wait for provisioning to finish.

This change would cut the run time by 4 to 5 min.

Signed-off-by: Birol Bilgin <birol@cilium.io>
  • Loading branch information
brlbil committed May 12, 2023
1 parent 6878133 commit b413a7f
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/conformance-multicluster-v1.11.yaml
Expand Up @@ -243,7 +243,8 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Create GKE cluster 2
run: |
Expand All @@ -259,7 +260,14 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Wait for clusters to be provisioned
run: |
while [ "$(gcloud container operations list --filter="status=RUNNING AND targetLink~${{ env.clusterNameBase }}" --format="value(name)")" ];do
echo "cluster has an ongoing operation, waiting for all operations to finish"; sleep 10
done
- name: Allow cross-cluster traffic
run: |
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/conformance-multicluster-v1.12.yaml
Expand Up @@ -243,7 +243,8 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Create GKE cluster 2
run: |
Expand All @@ -259,7 +260,14 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Wait for clusters to be provisioned
run: |
while [ "$(gcloud container operations list --filter="status=RUNNING AND targetLink~${{ env.clusterNameBase }}" --format="value(name)")" ];do
echo "cluster has an ongoing operation, waiting for all operations to finish"; sleep 10
done
- name: Allow cross-cluster traffic
run: |
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/conformance-multicluster-v1.13.yaml
Expand Up @@ -243,7 +243,8 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Create GKE cluster 2
run: |
Expand All @@ -259,7 +260,14 @@ jobs:
--disk-type pd-standard \
--disk-size 10GB \
--node-taints node.cilium.io/agent-not-ready=true:NoExecute \
--preemptible
--preemptible \
--async
- name: Wait for clusters to be provisioned
run: |
while [ "$(gcloud container operations list --filter="status=RUNNING AND targetLink~${{ env.clusterNameBase }}" --format="value(name)")" ];do
echo "cluster has an ongoing operation, waiting for all operations to finish"; sleep 10
done
- name: Allow cross-cluster traffic
run: |
Expand Down

0 comments on commit b413a7f

Please sign in to comment.