mirror of
https://git.vectorsigma.ru/public/k3s.git
synced 2026-07-29 18:19:25 +00:00
* Initial drone vagrant pipeline Signed-off-by: Derek Nola <derek.nola@suse.com> * Build e2e test image * Add ci flag to secretsencryption * Fix vagrant log on secretsencryption * Add cron conformance pipeline * Add string output for nodes * Switch snapshot restore for upgrade cluster Signed-off-by: Derek Nola <derek.nola@suse.com> * Added IPv6 check and agent restart on e2e test utils Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com> * Drone: Cleanup E2E VMs on test panic (#7104) * Cleanup leftover VMs in E2E pipeline * Clean E2E VMs before testing (#7109) * Cleanup VMs proper Signed-off-by: Derek Nola <derek.nola@suse.com> * Dont run most pipelines on nightly cron * Improve RunCmdOnNode error * Pin upgradecluster to v1.24 Signed-off-by: Derek Nola <derek.nola@suse.com> --------- Signed-off-by: Derek Nola <derek.nola@suse.com> Signed-off-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com> Co-authored-by: Roberto Bonafiglia <roberto.bonafiglia@suse.com>
96 lines
2.0 KiB
Bash
Executable File
96 lines
2.0 KiB
Bash
Executable File
#!/bin/bash
|
|
set -e -x
|
|
cd $(dirname $0)/..
|
|
|
|
. ./scripts/version.sh
|
|
. ./scripts/test-helpers
|
|
|
|
artifacts=$(pwd)/dist/artifacts
|
|
mkdir -p $artifacts
|
|
|
|
# ---
|
|
|
|
docker ps
|
|
|
|
# ---
|
|
|
|
. ./scripts/test-run-basics
|
|
echo "Did test-run-basics $?"
|
|
|
|
. ./scripts/test-run-compat
|
|
echo "Did test-run-compat $?"
|
|
|
|
. ./scripts/test-run-hardened
|
|
echo "Did test-run-hardened $?"
|
|
|
|
. ./scripts/test-run-cacerts
|
|
echo "Did test-run-cacerts $?"
|
|
|
|
. ./scripts/test-run-bootstraptoken
|
|
echo "Did test-run-bootstraptoken $?"
|
|
|
|
. ./scripts/test-run-upgrade
|
|
echo "Did test-run-upgrade $?"
|
|
|
|
. ./scripts/test-run-etcd
|
|
echo "Did test-run-etcd $?"
|
|
|
|
. ./scripts/test-run-lazypull
|
|
echo "Did test-run-lazypull $?"
|
|
|
|
# ---
|
|
|
|
[ "$ARCH" != 'amd64' ] && \
|
|
early-exit "Skipping remaining tests, images not available for $ARCH."
|
|
|
|
# ---
|
|
|
|
if [ "$DRONE_BUILD_EVENT" = 'tag' ]; then
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy serial
|
|
echo "Did test-run-sonobuoy serial $?"
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy parallel
|
|
echo "Did test-run-sonobuoy parallel $?"
|
|
early-exit 'Skipping remaining tests on tag.'
|
|
fi
|
|
# ---
|
|
|
|
if [ "$DRONE_BUILD_EVENT" = 'cron' ]; then
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy serial
|
|
echo "Did test-run-sonobuoy serial $?"
|
|
test-run-sonobuoy etcd serial
|
|
echo "Did test-run-sonobuoy-etcd serial $?"
|
|
test-run-sonobuoy mysql serial
|
|
echo "Did test-run-sonobuoy-mysqk serial $?"
|
|
test-run-sonobuoy postgres serial
|
|
echo "Did test-run-sonobuoy-postgres serial $?"
|
|
|
|
# Wait until all serial tests have finished
|
|
delay=15
|
|
(
|
|
set +x
|
|
while [ $(count-running-tests) -ge 1 ]; do
|
|
sleep $delay
|
|
done
|
|
)
|
|
|
|
E2E_OUTPUT=$artifacts test-run-sonobuoy parallel
|
|
echo "Did test-run-sonobuoy parallel $?"
|
|
test-run-sonobuoy etcd parallel
|
|
echo "Did test-run-sonobuoy-etcd parallel $?"
|
|
test-run-sonobuoy mysql parallel
|
|
echo "Did test-run-sonobuoy-mysql parallel $?"
|
|
test-run-sonobuoy postgres parallel
|
|
echo "Did test-run-sonobuoy-postgres parallel $?"
|
|
fi
|
|
|
|
# Wait until all tests have finished
|
|
delay=15
|
|
(
|
|
set +x
|
|
while [ $(count-running-tests) -ge 1 ]; do
|
|
sleep $delay
|
|
done
|
|
)
|
|
|
|
exit 0
|