Skip to content

Commit 64dafbf

Browse files
committed
chore: refactore the e2e tests to run in parallel
Signed-off-by: Isteb4k <[email protected]>
1 parent d900204 commit 64dafbf

28 files changed

+1443
-1413
lines changed

tests/e2e/Taskfile.yaml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,27 @@ tasks:
9191
echo "EOF" >> $GITHUB_ENV
9292
exit $EXIT_CODE'
9393
94+
runp:
95+
desc: "Run e2e tests"
96+
deps:
97+
- copy
98+
- ginkgo
99+
- kubectl
100+
- d8
101+
cmds:
102+
- |
103+
ginkgo -v \
104+
-p --procs=12 \
105+
--race \
106+
{{if .TIMEOUT -}}
107+
--timeout={{ .TIMEOUT }} \
108+
{{else -}}
109+
--timeout=2h \
110+
{{end -}}
111+
{{if .FOCUS -}}
112+
--focus "{{ .FOCUS }}"
113+
{{end -}}
114+
94115
run:
95116
desc: "Run e2e tests"
96117
deps:
@@ -159,12 +180,12 @@ tasks:
159180
echo "Error: Deckhouse is not ready."
160181
exit 1
161182
fi
162-
d8 k patch mpo virtualization --type merge -p "{\"spec\":{\"imageTag\":\"$v12n_tag\"}}"
183+
d8 k patch mpo virtualization --type merge -p "{\"spec\":{\"imageTag\":\"$v12n_tag\"}}"
163184
images_hash=$(crane export "dev-registry.deckhouse.io/sys/deckhouse-oss/modules/virtualization:$v12n_tag" - | tar -Oxf - images_digests.json)
164185
v12n_pods=$(kubectl -n d8-virtualization get pods -o json | jq -c)
165186
retry_count=0
166187
max_retries=120
167-
sleep_interval=5
188+
sleep_interval=5
168189
169190
while true; do
170191
all_hashes_found=true
@@ -193,7 +214,7 @@ tasks:
193214
if [ "$all_hashes_found" = true ]; then
194215
echo "All image hashes found in pods."
195216
break
196-
fi
217+
fi
197218
198219
retry_count=$((retry_count + 1))
199220
echo "Some hashes are missing, rechecking... Attempt: $retry_count"

0 commit comments

Comments
 (0)