Skip to content

Commit

Permalink
Stabilize e2e tests (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
bschimke95 authored Sep 13, 2024
1 parent accc0a1 commit 00b2a6b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/e2e.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ jobs:
- name: Load provider image
run: sudo docker load -i provider-images.tar
- name: Load k8s-snap old image
if: matrix.ginkgo_focus == 'Workload cluster upgrade'
run: |
sudo docker load -i k8s-snap-image-old.tar
- name: Load k8s-snap new image
if: matrix.ginkgo_focus == 'Workload cluster upgrade'
run: |
sudo docker load -i k8s-snap-image-new.tar
- name: Create docker network
Expand Down
1 change: 1 addition & 0 deletions hack/build-e2e-images.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#
# Usage:
# ./build-e2e-images.sh
set -xe

DIR="$(realpath "$(dirname "${0}")")"

Expand Down
2 changes: 2 additions & 0 deletions test/e2e/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,7 @@ func WaitForControlPlaneToBeReady(ctx context.Context, input WaitForControlPlane
Namespace: input.ControlPlane.GetNamespace(),
Name: input.ControlPlane.GetName(),
}
Byf("Getting the control plane %s", klog.KObj(input.ControlPlane))
if err := input.Getter.Get(ctx, key, controlplane); err != nil {
return false, errors.Wrapf(err, "failed to get KCP")
}
Expand All @@ -431,6 +432,7 @@ func WaitForControlPlaneToBeReady(ctx context.Context, input WaitForControlPlane
// * .spec.replicas, .status.replicas, .status.updatedReplicas,
// .status.readyReplicas are not equal and
// * unavailableReplicas > 0
Byf("Control plane %s: desired=%d, status=%d, updated=%d, ready=%d, unavailable=%d", klog.KObj(controlplane), *desiredReplicas, statusReplicas, updatedReplicas, readyReplicas, unavailableReplicas)
if statusReplicas != *desiredReplicas ||
updatedReplicas != *desiredReplicas ||
readyReplicas != *desiredReplicas ||
Expand Down

0 comments on commit 00b2a6b

Please sign in to comment.