Skip to content

Commit 062062d

Browse files
authored
acc: Use unique name in deploy/empty-bundle (#3324)
Otherwise there are conflicts when running on cloud. ``` Error: Failed to acquire deployment lock: deploy lock acquired by [USERNAME] at [TIMESTAMP].[NUMID] +0000 UTC. Use --force-lock to override Error: deploy lock acquired by [USERNAME] at [TIMESTAMP].[NUMID] +0000 UTC. Use --force-lock to override ```
1 parent 0a89feb commit 062062d

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

acceptance/bundle/deploy/empty-bundle/databricks.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bundle:
2+
name: test-bundle-$UNIQUE_NAME
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11

22
>>> [CLI] bundle deploy
3-
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/empty-bundle/default/files...
3+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
44
Deploying resources...
55
Deployment complete!
66

77
>>> [CLI] bundle destroy --auto-approve
8-
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/empty-bundle/default
8+
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
99

1010
Deleting files...
1111
Destroy complete!

acceptance/bundle/deploy/empty-bundle/script

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
envsubst < databricks.yml.tmpl > databricks.yml
12
cleanup() {
23
trace $CLI bundle destroy --auto-approve
34
}

0 commit comments

Comments
 (0)