Skip to content

Commit 792b261

Browse files
committed
chore: create a unique db for each parallel CI job
1 parent 6b697d7 commit 792b261

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.kokoro/system.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ run_package_test() {
7474
export PROJECT_ID GOOGLE_APPLICATION_CREDENTIALS NOX_FILE NOX_SESSION
7575
export GOOGLE_CLOUD_PROJECT="${PROJECT_ID}"
7676

77+
# Give every parallel CI job a unique database so they don't clobber each other
78+
export DJANGO_SPANNER_DB="db_${RANDOM}"
79+
7780
gcloud auth activate-service-account --key-file="$GOOGLE_APPLICATION_CREDENTIALS"
7881
gcloud config set project "$PROJECT_ID"
7982

0 commit comments

Comments
 (0)