Skip to content
Draft
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
10 changes: 10 additions & 0 deletions ci-automation/ci-config.env
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,13 @@ STACKIT_IMAGE_NAME="flatcar_production_stackit_image.img"
: ${STACKIT_arm64_INSTANCE_TYPE:="g1r.4d"}
: ${STACKIT_arm64_LOCATION:="eu01-2"}
: ${STACKIT_amd64_LOCATION:="eu01-2"}

# -- OracleCloud --
ORACLECLOUD_PARALLEL="${PARALLEL_TESTS:-1}"
ORACLECLOUD_IMAGE_NAME="flatcar_production_oraclecloud_image.img"
ORACLECLOUD_SUBNET_ID="ocid1.subnet.oc1.iad.aaaaaaaaafwj2g3ojrn7j2mlk4nnbaq27o4cxelrxstlaymm6ecs76xtb2aa"
: ${ORACLECLOUD_amd64_INSTANCE_TYPE:="VM.Standard.B1.1"}
# TODO: Use actual values for ARM64
: ${ORACLECLOUD_arm64_INSTANCE_TYPE:="g1r.4d"}
: ${ORACLECLOUD_arm64_LOCATION:="YQPA:US-ASHBURN-AD-1"}
: ${ORACLECLOUD_amd64_LOCATION:="YQPA:US-ASHBURN-AD-1"}
Comment on lines +175 to +178
5 changes: 5 additions & 0 deletions ci-automation/garbage_collect_cloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,8 @@ for channel in alpha beta stable lts; do
--aws-credentials="${aws_credentials_config_file}"
done
done
config_file=''
secret_to_file config_file "${ORACLECLOUD_CONFIG_FILE}"
timeout --signal=SIGQUIT 60m ore oracle gc --duration 6h \
--oracle-config-file="${config_file}" \
--oracle-compartment-id="${ORACLECLOUD_COMPARTMENT_ID}"
55 changes: 55 additions & 0 deletions ci-automation/vendor-testing/oraclecloud.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
#!/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 OracleCloud vendor.
# This script is supposed to run in the mantle container.

source ci-automation/vendor_test.sh

oraclecloud_instance_type_var="ORACLECLOUD_${CIA_ARCH}_INSTANCE_TYPE"
oraclecloud_instance_type="${!oraclecloud_instance_type_var}"

oraclecloud_location_var="ORACLECLOUD_${CIA_ARCH}_LOCATION"
oraclecloud_location="${!oraclecloud_location_var}"

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

config_file=''
secret_to_file config_file "${ORACLECLOUD_CONFIG_FILE}"

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

# Upload the image on OracleCloud.
IMAGE_ID=$(ore oracle \
--oracle-config-file="${config_file}" \
--oracle-compartment-id="${ORACLECLOUD_COMPARTMENT_ID}" \
create-image \
--board "${CIA_ARCH}-usr" \
--name "${kola_test_basename}" \
--file="${ORACLECLOUD_IMAGE_NAME}"
)

set -x

timeout --signal=SIGQUIT 2h kola run \
--board="${CIA_ARCH}-usr" \
--parallel="${ORACLECLOUD_PARALLEL}" \
--tapfile="${CIA_TAPFILE}" \
--channel="${CIA_CHANNEL}" \
--basename="${kola_test_basename}" \
# TODO: Update to oraclecloud
--platform=oracle \
Comment on lines +43 to +45
--oracle-image-id="${IMAGE_ID}" \
--oracle-config-file="${config_file}" \
--oracle-shape="${oraclecloud_instance_type}" \
--oracle-subnet-id="${ORACLECLOUD_SUBNET_ID}" \
--oracle-availability-domain="${oraclecloud_location}" \
--oracle-compartment-id="${ORACLECLOUD_COMPARTMENT_ID}" \
--image-version "${CIA_VERNUM}" \
"${@}"

set +x