Skip to content

Commit 1f5da52

Browse files
authored
chore: unique network names (#16658)
Close TMNT-164
2 parents db8354f + a19f56c commit 1f5da52

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

spartan/bootstrap.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ function test_cmds {
8282
# fi
8383
if [ "$CI_SCENARIO_TEST" -eq 1 ]; then
8484
local run_test_script="yarn-project/end-to-end/scripts/run_test.sh"
85-
NAMESPACE=${NAMESPACE:-"scenario"}
85+
DEFAULT_NAMESPACE="scenario-$(git rev-parse --short HEAD)"
86+
NAMESPACE=${NAMESPACE:-$DEFAULT_NAMESPACE}
8687
K8S_CLUSTER=${K8S_CLUSTER:-"aztec-gke-private"}
8788
PROJECT_ID=${PROJECT_ID:-"testnet-440309"}
8889
REGION=${REGION:-"us-west1-a"}
@@ -94,7 +95,7 @@ function test_cmds {
9495

9596
function start_env {
9697
if [ "$CI_NIGHTLY" -eq 1 ] && [ "$(arch)" != "arm64" ]; then
97-
NIGHTLY_NS=nightly-$(date -u +%Y%m%d)
98+
NIGHTLY_NS=nightly-$(git rev-parse --short HEAD)
9899
export MONITOR_DEPLOYMENT=false
99100
export WAIT_FOR_DEPLOYMENT=false
100101
export CLUSTER_NAME=aztec-gke-private

0 commit comments

Comments
 (0)