Skip to content
Open
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions ci-automation/ci-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -179,3 +179,11 @@ HETZNER_PARALLEL="${PARALLEL_TESTS:-1}"
AKAMAI_PARALLEL="${PARALLEL_TESTS:-1}"
AKAMAI_REGION="us-ord"
AKAMAI_INSTANCE_TYPE="g6-standard-2"

# -- STACKIT --
STACKIT_PARALLEL="${PARALLEL_TESTS:-1}"
STACKIT_IMAGE_NAME="flatcar_production_stackit_image.img"
: ${STACKIT_amd64_INSTANCE_TYPE:="c2i.8"}
: ${STACKIT_arm64_INSTANCE_TYPE:="g1r.4d"}
: ${STACKIT_arm64_LOCATION:="eu01-2"}
: ${STACKIT_amd64_LOCATION:="eu01-2"}
1 change: 1 addition & 0 deletions ci-automation/garbage_collect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ function _garbage_collect_impl() {
--env OPENSTACK_CREDS \
--env BRIGHTBOX_CLIENT_ID --env BRIGHTBOX_CLIENT_SECRET \
--env AKAMAI_TOKEN \
--env STACKIT_SERVICE_ACCOUNT \
-w /work -v "$PWD":/work "${mantle_ref}" /work/ci-automation/garbage_collect_cloud.sh

echo
Expand Down
2 changes: 2 additions & 0 deletions ci-automation/garbage_collect_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ timeout --signal=SIGQUIT 60m ore brightbox gc --duration 6h \
--brightbox-client-id="${BRIGHTBOX_CLIENT_ID}" --brightbox-client-secret="${BRIGHTBOX_CLIENT_SECRET}"
timeout --signal=SIGQUIT 60m ore akamai gc --duration 6h \
--akamai-token="${AKAMAI_TOKEN}"
timeout --signal=SIGQUIT 60m ore stackit gc --duration 6h \
--stackit-service-account-key-path=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode)
secret_to_file aws_credentials_config_file "${AWS_CREDENTIALS}"
for channel in alpha beta stable lts; do
for arch in amd64 arm64; do
Expand Down
50 changes: 50 additions & 0 deletions ci-automation/vendor-testing/stackit.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
#!/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

stackit_instance_type_var="STACKIT_${CIA_ARCH}_INSTANCE_TYPE"
stackit_instance_type="${!stackit_instance_type_var}"

stackit_location_var="STACKIT_${CIA_ARCH}_LOCATION"
stackit_location="${!stackit_location_var}"

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=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode) \
--stackit-project-id="${STACKIT_PROJECT_ID}" \
create-image \
--board "${CIA_ARCH}-usr" \
--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=<(echo "${STACKIT_SERVICE_ACCOUNT}" | base64 --decode) \
--stackit-project-id="${STACKIT_PROJECT_ID}" \
--stackit-image-id="${IMAGE_ID}" \
--stackit-type="${stackit_instance_type}" \
--stackit-availability-zone="${stackit_location}" \
--image-version "${CIA_VERNUM}" \
"${@}"

set +x