mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-09 14:06:58 +02:00
The kola test run time shouldn't be longer than the GC duration to prevent failing tests caused by GC interference. Align the Azure kola timeout with the GC duration.
56 lines
1.5 KiB
Bash
Executable File
56 lines
1.5 KiB
Bash
Executable File
#!/bin/bash
|
|
set -ex
|
|
|
|
rm -rf *.tap _kola_temp*
|
|
|
|
NAME="jenkins-${JOB_NAME##*/}-${BUILD_NUMBER}"
|
|
|
|
if [[ "${BOARD}" == "arm64-usr" ]]; then
|
|
if [[ "${AZURE_HYPER_V_GENERATION}" != "V2" ]]; then
|
|
echo "Unsupported combination"
|
|
exit 1
|
|
fi
|
|
AZURE_USE_GALLERY="--azure-use-gallery"
|
|
fi
|
|
|
|
if [[ "${KOLA_TESTS}" == "" ]]; then
|
|
KOLA_TESTS="*"
|
|
fi
|
|
|
|
if [[ "${AZURE_MACHINE_SIZE}" != "" ]]; then
|
|
AZURE_MACHINE_SIZE_OPT="--azure-size=${AZURE_MACHINE_SIZE}"
|
|
fi
|
|
|
|
# If the OFFER is empty, it should be treated as the basic offering.
|
|
if [[ "${OFFER}" == "" ]]; then
|
|
OFFER="basic"
|
|
fi
|
|
|
|
if [ "${BLOB_URL}" = "" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
# Do not expand the kola test patterns globs
|
|
set -o noglob
|
|
# Align timeout with ore azure gc --duration parameter
|
|
timeout --signal=SIGQUIT 6h bin/kola run \
|
|
--parallel="${PARALLEL}" \
|
|
--basename="${NAME}" \
|
|
--board="${BOARD}" \
|
|
--channel="${GROUP}" \
|
|
--platform=azure \
|
|
--offering="${OFFER}" \
|
|
--azure-blob-url="${BLOB_URL}" \
|
|
--azure-location="${LOCATION}" \
|
|
--azure-profile="${AZURE_CREDENTIALS}" \
|
|
--azure-auth="${AZURE_AUTH_CREDENTIALS}" \
|
|
--tapfile="${JOB_NAME##*/}.tap" \
|
|
--torcx-manifest=torcx_manifest.json \
|
|
${AZURE_USE_GALLERY} \
|
|
${AZURE_MACHINE_SIZE_OPT} \
|
|
${AZURE_HYPER_V_GENERATION:+--azure-hyper-v-generation=${AZURE_HYPER_V_GENERATION}} \
|
|
${AZURE_VNET_SUBNET_NAME:+--azure-vnet-subnet-name=${AZURE_VNET_SUBNET_NAME}} \
|
|
${AZURE_USE_PRIVATE_IPS:+--azure-use-private-ips=${AZURE_USE_PRIVATE_IPS}} \
|
|
${KOLA_TESTS}
|
|
set +o noglob
|