mirror of
https://github.com/siderolabs/talos.git
synced 2025-08-18 12:37:05 +02:00
This updates upgrade tests to run two flows with 3+1 clusters: 1. 0.3 -> current (testing upgrade with partition wiping) 2. 0.4-alpha.7 -> current (testing upgrade without partition wiping, boot-a/boot-b) And small upgrade with preserve enabled for single-node cluster. Provision tests are now split into two parallel tracks in Drone. Signed-off-by: Andrey Smirnov <smirnov.andrey@gmail.com>
20 lines
681 B
Bash
Executable File
20 lines
681 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -eou pipefail
|
|
|
|
case "${REGISTRY:-false}" in
|
|
registry.ci.svc:5000)
|
|
REGISTRY_ADDR=`python -c "import socket; print socket.gethostbyname('registry.ci.svc')"`
|
|
INTEGRATION_TEST_FLAGS="-talos.provision.registry-mirror ${REGISTRY}=http://${REGISTRY_ADDR}:5000 -talos.provision.target-installer-registry=${REGISTRY}"
|
|
;;
|
|
*)
|
|
INTEGRATION_TEST_FLAGS=
|
|
;;
|
|
esac
|
|
|
|
if [ "${INTEGRATION_TEST_RUN:-undefined}" != "undefined" ]; then
|
|
INTEGRATION_TEST_FLAGS="${INTEGRATION_TEST_FLAGS} -test.run ${INTEGRATION_TEST_RUN}"
|
|
fi
|
|
|
|
"${INTEGRATION_TEST}" -test.v -talos.talosctlpath "${OSCTL}" -talos.provision.mem 2048 -talos.provision.cpu 2 ${INTEGRATION_TEST_FLAGS}
|