Skip to content

Commit 94fbfa5

Browse files
committed
Add a dedicated CI script to run E2Es with published releases on OpenShift on AWS
1 parent f03da79 commit 94fbfa5

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/usr/bin/env bash
2+
#
3+
# Copyright (C) 2025 ScyllaDB
4+
#
5+
6+
set -euExo pipefail
7+
shopt -s inherit_errexit
8+
9+
trap 'kill $( jobs -p ); exit 0' EXIT
10+
11+
if [ -z "${ARTIFACTS+x}" ]; then
12+
echo "ARTIFACTS can't be empty" > /dev/stderr
13+
exit 2
14+
fi
15+
16+
source "$( dirname "${BASH_SOURCE[0]}" )/../lib/kube.sh"
17+
source "$( dirname "${BASH_SOURCE[0]}" )/lib/e2e.sh"
18+
parent_dir="$( dirname "${BASH_SOURCE[0]}" )"
19+
20+
trap gather-artifacts-on-exit EXIT
21+
22+
REENTRANT="${REENTRANT=false}"
23+
export REENTRANT
24+
25+
SO_NODECONFIG_PATH="${SO_NODECONFIG_PATH=${parent_dir}/manifests/cluster/nodeconfig-openshift-aws.yaml}"
26+
export SO_NODECONFIG_PATH
27+
28+
SO_SCYLLACLUSTER_STORAGECLASS_NAME="${SO_SCYLLACLUSTER_STORAGECLASS_NAME=scylladb-local-xfs}"
29+
export SO_SCYLLACLUSTER_STORAGECLASS_NAME
30+
31+
SCYLLA_OPERATOR_FEATURE_GATES="${SCYLLA_OPERATOR_FEATURE_GATES:-AllAlpha=true,AllBeta=true}"
32+
export SCYLLA_OPERATOR_FEATURE_GATES
33+
34+
for i in "${!KUBECONFIGS[@]}"; do
35+
KUBECONFIG="${KUBECONFIGS[$i]}" DEPLOY_DIR="${ARTIFACTS}/deploy/${i}" timeout --foreground -v 10m "${parent_dir}/../ci-deploy-release.sh" "${SO_IMAGE}" &
36+
ci_deploy_bg_pids["${i}"]=$!
37+
done
38+
39+
for pid in "${ci_deploy_bg_pids[@]}"; do
40+
wait "${pid}"
41+
done
42+
43+
KUBECONFIG="${KUBECONFIGS[0]}" apply-e2e-workarounds
44+
KUBECONFIG="${KUBECONFIGS[0]}" run-e2e

0 commit comments

Comments
 (0)