Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions ci-automation/vendor-testing/stackit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/bin/bash
# Copyright (c) 2025 The Flatcar Maintainers.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

set -euo pipefail

# Test execution script for STACKIT vendor.
# This script is supposed to run in the mantle container.

source ci-automation/vendor_test.sh

copy_from_buildcache "images/${CIA_ARCH}/${CIA_VERNUM}/${STACKIT_IMAGE_NAME}" .

kola_test_basename="ci-${CIA_VERNUM//[+.]/-}"

# Upload the image on STACKIT.
IMAGE_ID=$(ore stackit \
--stackit-service-account-key-path="${STACKIT_SERVICE_ACCOUNT_KEY_PATH}" \
--stackit-project-id="${STACKIT_PROJECT_ID}" \
create-image \
--name "${kola_test_basename}" \
--file="${STACKIT_IMAGE_NAME}"
)

set -x

timeout --signal=SIGQUIT 2h kola run \
--board="${CIA_ARCH}-usr" \
--parallel="${STACKIT_PARALLEL}" \
--tapfile="${CIA_TAPFILE}" \
--channel="${CIA_CHANNEL}" \
--basename="${kola_test_basename}" \
--platform=stackit \
--stackit-service-account-key-path="${STACKIT_SERVICE_ACCOUNT_KEY_PATH}" \
--stackit-project-id="${STACKIT_PROJECT_ID}" \
--stackit-image-id="${STACKIT_IMAGE_ID}" \
--image-version "${CIA_VERNUM}" \
"${@}"

set +x