Skip to content

Commit f4bf71f

Browse files
authored
Merge pull request #60 from kannon92/flake-e2e-tests
fix flakes for kind
2 parents abc52cf + 5d7ae60 commit f4bf71f

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/e2e.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
run: |
2222
sudo snap install helm --classic
2323
sudo snap install kubectl --classic
24+
- name: install kind
25+
run: |
26+
go install sigs.k8s.io/[email protected]
2427
- name: Setup e2e
2528
run: make setup-e2e
2629
- name: run e2e test

demo/scripts/create-kind-cluster.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,5 @@ source "${CURRENT_DIR}/common.sh"
3030
${KIND} create cluster \
3131
--name "${KIND_CLUSTER_NAME}" \
3232
--image "${KIND_IMAGE}" \
33-
--config "${KIND_CLUSTER_CONFIG_PATH}"
33+
--config "${KIND_CLUSTER_CONFIG_PATH}" \
34+
--wait 2m

test/e2e/e2e.sh

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@
1616

1717
# Very Simple Script for testing the demo
1818

19+
kind get clusters
20+
kubectl get nodes
21+
kubectl wait --for=condition=Ready nodes/dra-example-driver-cluster-worker --timeout=120s
1922
kubectl create -f demo/gpu-test1.yaml
2023
kubectl create -f demo/gpu-test2.yaml
2124
kubectl create -f demo/gpu-test3.yaml

0 commit comments

Comments
 (0)