From 10609acf9c2f2be6f88af13e73582e897d8a600b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= Date: Mon, 12 May 2025 17:06:07 +0200 Subject: [PATCH 1/3] Add missing e2e_smoke_release context --- scripts/dev/contexts/e2e_smoke_release | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 scripts/dev/contexts/e2e_smoke_release diff --git a/scripts/dev/contexts/e2e_smoke_release b/scripts/dev/contexts/e2e_smoke_release new file mode 100644 index 000000000..17687d2fc --- /dev/null +++ b/scripts/dev/contexts/e2e_smoke_release @@ -0,0 +1,29 @@ +#!/usr/bin/env bash + +set -Eeou pipefail + +script_name=$(readlink -f "${BASH_SOURCE[0]}") +script_dir=$(dirname "${script_name}") + +source "${script_dir}/root-context" +source "${script_dir}/variables/om70" + +export DATABASE_REGISTRY="${QUAY_REGISTRY}" +export APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPERATOR_REGISTRY="${QUAY_REGISTRY}" +export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}" +export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}" +# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here. +OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')" +export OPERATOR_VERSION +INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_DATABASE_VERSION +INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_APPDB_VERSION +INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_OPS_MANAGER_VERSION +DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export DATABASE_VERSION From 269db5c9285b676a552656716a345daa4c574294 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= Date: Mon, 12 May 2025 21:31:00 +0200 Subject: [PATCH 2/3] Add missing e2e_static_smoke_release context --- scripts/dev/contexts/e2e_static_smoke_release | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 scripts/dev/contexts/e2e_static_smoke_release diff --git a/scripts/dev/contexts/e2e_static_smoke_release b/scripts/dev/contexts/e2e_static_smoke_release new file mode 100644 index 000000000..d7415a836 --- /dev/null +++ b/scripts/dev/contexts/e2e_static_smoke_release @@ -0,0 +1,32 @@ +#!/usr/bin/env bash + +set -Eeou pipefail + +script_name=$(readlink -f "${BASH_SOURCE[0]}") +script_dir=$(dirname "${script_name}") + +source "${script_dir}/root-context" +source "${script_dir}/variables/om70" + +export DATABASE_REGISTRY="${QUAY_REGISTRY}" +export APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}" +export OPERATOR_REGISTRY="${QUAY_REGISTRY}" +export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}" +export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}" +export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}" +# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here. +OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')" +export OPERATOR_VERSION +INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_DATABASE_VERSION +INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_APPDB_VERSION +INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export INIT_OPS_MANAGER_VERSION +DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')" +export DATABASE_VERSION +export MDB_DEFAULT_ARCHITECTURE=static +# For static smoke tests we nned the previous MDB version to have a ubi9 binary +export CUSTOM_MDB_PREV_VERSION=6.0.5 From 4ecea8a325b829b517d0a94e77151ea319e0f88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Kara=C5=9B?= <6159874+MaciejKaras@users.noreply.github.com> Date: Tue, 13 May 2025 10:09:22 +0200 Subject: [PATCH 3/3] Update scripts/dev/contexts/e2e_static_smoke_release --- scripts/dev/contexts/e2e_static_smoke_release | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dev/contexts/e2e_static_smoke_release b/scripts/dev/contexts/e2e_static_smoke_release index d7415a836..91aed5316 100644 --- a/scripts/dev/contexts/e2e_static_smoke_release +++ b/scripts/dev/contexts/e2e_static_smoke_release @@ -28,5 +28,5 @@ export INIT_OPS_MANAGER_VERSION DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')" export DATABASE_VERSION export MDB_DEFAULT_ARCHITECTURE=static -# For static smoke tests we nned the previous MDB version to have a ubi9 binary +# For static smoke tests we need the previous MDB version to have a ubi9 binary export CUSTOM_MDB_PREV_VERSION=6.0.5