Skip to content
Merged
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
6 changes: 6 additions & 0 deletions ci-automation/ci-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -173,3 +173,9 @@ BRIGHTBOX_PARALLEL="${PARALLEL_TESTS:-1}"
: ${HETZNER_arm64_LOCATION:="fsn1"}
: ${HETZNER_amd64_LOCATION:="hel1"}
HETZNER_PARALLEL="${PARALLEL_TESTS:-1}"

# -- Akamai --
: ${AKAMAI_IMAGE_NAME:='flatcar_production_akamai_image.bin.gz'}
AKAMAI_PARALLEL="${PARALLEL_TESTS:-1}"
AKAMAI_REGION="us-ord"
AKAMAI_INSTANCE_TYPE="g6-standard-2"
1 change: 1 addition & 0 deletions ci-automation/garbage_collect.sh
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ function _garbage_collect_impl() {
--env VMWARE_ESX_CREDS \
--env OPENSTACK_CREDS \
--env BRIGHTBOX_CLIENT_ID --env BRIGHTBOX_CLIENT_SECRET \
--env AKAMAI_TOKEN \
-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 @@ -11,6 +11,8 @@ timeout --signal=SIGQUIT 60m ore openstack gc --duration 6h \
--config-file=<(echo "${OPENSTACK_CREDS}" | base64 --decode)
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}"
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
42 changes: 42 additions & 0 deletions ci-automation/vendor-testing/akamai.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/bash
# Copyright (c) 2023 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 Akamai 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}/${AKAMAI_IMAGE_NAME}" .

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

# Upload the image on Akamai.
IMAGE_ID=$(ore akamai \
--akamai-token="${AKAMAI_TOKEN}" \
--akamai-region="${AKAMAI_REGION}" \
create-image \
--name "${kola_test_basename}" \
--file="${AKAMAI_IMAGE_NAME}"
)

set -x

timeout --signal=SIGQUIT 2h kola run \
--board="${CIA_ARCH}-usr" \
--parallel="${AKAMAI_PARALLEL}" \
--tapfile="${CIA_TAPFILE}" \
--channel="${CIA_CHANNEL}" \
--basename="${kola_test_basename}" \
--platform=akamai \
--akamai-token="${AKAMAI_TOKEN}" \
--akamai-type="${AKAMAI_INSTANCE_TYPE}" \
--akamai-region="${AKAMAI_REGION}" \
--akamai-image="${IMAGE_ID}" \
--image-version "${CIA_VERNUM}" \
"${@}"

set +x