Skip to content

Commit

Permalink
jenkins/kola/packet: use metro instead of facility
Browse files Browse the repository at this point in the history
Follow up of: flatcar/mantle#281

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
  • Loading branch information
tormath1 committed Jan 26, 2022
1 parent acebe6d commit 4837be9
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions jenkins/kola/packet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,22 @@ if [[ "${KOLA_TESTS}" == "" ]]; then
KOLA_TESTS="*"
fi

# Equinix Metal ARM server are not yet hourly available in the default `sv15` region
# so we override the `PACKET_REGION` to `Dallas` since it's available in this region.
# We do not override `PACKET_REGION` for both board on top level because we need to keep proximity
# for PXE booting.
# We override `PARALLEL_TESTS`, because kola run with PARALLEL_TESTS >= 4 causes the
# tests to provision >= 12 ARM servers at the same time. As the da11 region does not
# have that many free ARM servers, the whole tests will fail. With PARALLEL_TESTS=2
# the total number of servers stays < 10.
# In addition, we override `timeout` to 10 hours, because it takes more than 8 hours
# to run all tests only with 2 tests in parallel.
if [[ "${BOARD}" == "arm64-usr" ]]; then
PACKET_REGION="DA"
PARALLEL_TESTS="2"
timeout=10h
fi

# Run the cl.internet test on multiple machine types only if it should run in general
cl_internet_included="$(set -o noglob; bin/kola list --platform=packet --filter ${KOLA_TESTS} | { grep cl.internet || true ; } )"
if [[ "${BOARD}" == "amd64-usr" ]] && [[ "${cl_internet_included}" != "" ]]; then
Expand All @@ -42,13 +58,13 @@ if [[ "${BOARD}" == "amd64-usr" ]] && [[ "${cl_internet_included}" != "" ]]; th
--channel="${GROUP}" \
--gce-json-key="${UPLOAD_CREDS}" \
--packet-api-key="${PACKET_API_KEY}" \
--packet-facility="${PACKET_REGION}" \
--packet-image-url="${IMAGE_URL}" \
--packet-installer-image-kernel-url="${KERNEL_URL}" \
--packet-installer-image-cpio-url="${CPIO_URL}" \
--packet-project="${PACKET_PROJECT}" \
--packet-storage-url="${UPLOAD_ROOT}/mantle/packet" \
--packet-plan="${INSTANCE}" \
--equinixmetal-metro="${PACKET_REGION}" \
--parallel="${PARALLEL_TESTS}" \
--platform=packet \
--tapfile="${JOB_NAME##*/}_validate_${INSTANCE}.tap" \
Expand All @@ -69,13 +85,13 @@ timeout --signal=SIGQUIT "${timeout}" bin/kola run \
--channel="${GROUP}" \
--gce-json-key="${UPLOAD_CREDS}" \
--packet-api-key="${PACKET_API_KEY}" \
--packet-facility="${PACKET_REGION}" \
--packet-image-url="${IMAGE_URL}" \
--packet-installer-image-kernel-url="${KERNEL_URL}" \
--packet-installer-image-cpio-url="${CPIO_URL}" \
--packet-project="${PACKET_PROJECT}" \
--packet-storage-url="${UPLOAD_ROOT}/mantle/packet" \
--packet-plan="${PACKET_MACHINE_TYPE}" \
--equinixmetal-metro="${PACKET_REGION}" \
--parallel="${PARALLEL_TESTS}" \
--platform=packet \
--tapfile="${JOB_NAME##*/}.tap" \
Expand Down

0 comments on commit 4837be9

Please sign in to comment.