Skip to content

Commit d1033ed

Browse files
MaciejKarasnammn
andcommitted
Add missing e2e_smoke_release context (#106)
# Summary Add missing `e2e_smoke_release` and `e2e_static_smoke_release` context. Previous error: ```(!!) Cannot switch context: File scripts/dev/contexts/e2e_static_smoke_release does not exist.``` ## Proof of Work https://spruce.mongodb.com/version/68224ca9feee0e0007c41c3c/tasks?sorts=STATUS%3AASC%3BBASE_STATUS%3ADESC ## Checklist - [ ] Have you linked a jira ticket and/or is the ticket in the title? - [ ] Have you checked whether your jira ticket required DOCSP changes? - [ ] Have you checked for release_note changes? ## Reminder (Please remove this when merging) - Please try to Approve or Reject Changes the PR, keep PRs in review as short as possible - Our Short Guide for PRs: [Link](https://docs.google.com/document/d/1T93KUtdvONq43vfTfUt8l92uo4e4SEEvFbIEKOxGr44/edit?tab=t.0) - Remember the following Communication Standards - use comment prefixes for clarity: * **blocking**: Must be addressed before approval. * **follow-up**: Can be addressed in a later PR or ticket. * **q**: Clarifying question. * **nit**: Non-blocking suggestions. * **note**: Side-note, non-actionable. Example: Praise * --> no prefix is considered a question --------- Co-authored-by: Nam Nguyen <[email protected]>
1 parent 607de12 commit d1033ed

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
#!/usr/bin/env bash
2+
3+
set -Eeou pipefail
4+
5+
script_name=$(readlink -f "${BASH_SOURCE[0]}")
6+
script_dir=$(dirname "${script_name}")
7+
8+
source "${script_dir}/root-context"
9+
source "${script_dir}/variables/om70"
10+
11+
export DATABASE_REGISTRY="${QUAY_REGISTRY}"
12+
export APPDB_REGISTRY="${QUAY_REGISTRY}"
13+
export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}"
14+
export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}"
15+
export OPERATOR_REGISTRY="${QUAY_REGISTRY}"
16+
export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}"
17+
export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}"
18+
export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}"
19+
# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here.
20+
OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')"
21+
export OPERATOR_VERSION
22+
INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')"
23+
export INIT_DATABASE_VERSION
24+
INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')"
25+
export INIT_APPDB_VERSION
26+
INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')"
27+
export INIT_OPS_MANAGER_VERSION
28+
DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')"
29+
export DATABASE_VERSION
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
#!/usr/bin/env bash
2+
3+
set -Eeou pipefail
4+
5+
script_name=$(readlink -f "${BASH_SOURCE[0]}")
6+
script_dir=$(dirname "${script_name}")
7+
8+
source "${script_dir}/root-context"
9+
source "${script_dir}/variables/om70"
10+
11+
export DATABASE_REGISTRY="${QUAY_REGISTRY}"
12+
export APPDB_REGISTRY="${QUAY_REGISTRY}"
13+
export INIT_OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}"
14+
export OPS_MANAGER_REGISTRY="${QUAY_REGISTRY}"
15+
export OPERATOR_REGISTRY="${QUAY_REGISTRY}"
16+
export INIT_IMAGES_REGISTRY="${QUAY_REGISTRY}"
17+
export INIT_APPDB_REGISTRY="${QUAY_REGISTRY}"
18+
export INIT_DATABASE_REGISTRY="${QUAY_REGISTRY}"
19+
# Since we're sourcing this as an initial step, the jq might not be there. That's why we need bash magic here.
20+
OPERATOR_VERSION="$(grep -o '"mongodbOperator": "[^"]*' release.json | grep -o '[^"]*$')"
21+
export OPERATOR_VERSION
22+
INIT_DATABASE_VERSION="$(grep -o '"initDatabaseVersion": "[^"]*' release.json | grep -o '[^"]*$')"
23+
export INIT_DATABASE_VERSION
24+
INIT_APPDB_VERSION="$(grep -o '"initAppDbVersion": "[^"]*' release.json | grep -o '[^"]*$')"
25+
export INIT_APPDB_VERSION
26+
INIT_OPS_MANAGER_VERSION="$(grep -o '"initOpsManagerVersion": "[^"]*' release.json | grep -o '[^"]*$')"
27+
export INIT_OPS_MANAGER_VERSION
28+
DATABASE_VERSION="$(grep -o '"databaseImageVersion": "[^"]*' release.json | grep -o '[^"]*$')"
29+
export DATABASE_VERSION
30+
export MDB_DEFAULT_ARCHITECTURE=static
31+
# For static smoke tests we need the previous MDB version to have a ubi9 binary
32+
export CUSTOM_MDB_PREV_VERSION=6.0.5

0 commit comments

Comments
 (0)