Skip to content

Commit 85b680f

Browse files
committed
update
1 parent b33216b commit 85b680f

File tree

9 files changed

+13
-7
lines changed

9 files changed

+13
-7
lines changed

acceptance/bundle/deployment/bind/experiment/databricks.yml renamed to acceptance/bundle/deployment/bind/experiment/databricks.yml.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
bundle:
2-
name: test-bundle
2+
name: test-bundle-$UNIQUE_NAME
33

44
resources:
55
experiments:

acceptance/bundle/deployment/bind/experiment/output.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
Successfully bound experiment with an id '[NUMID]'
77
Run 'bundle deploy' to deploy changes to your workspace
88

9-
=== Deploy bundle: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/default/files...
9+
=== Deploy bundle: Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default/files...
1010
Deploying resources...
1111
Updating deployment state...
1212
Deployment complete!
@@ -18,7 +18,7 @@ Deployment complete!
1818

1919
=== Unbind the experiment: Updating deployment state...
2020

21-
=== Destroy the bundle: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default
21+
=== Destroy the bundle: All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/test-bundle-[UNIQUE_NAME]/default
2222

2323
Deleting files...
2424
Destroy complete!

acceptance/bundle/deployment/bind/experiment/script

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ if [ -z "$CLOUD_ENV" ]; then
88
EXPERIMENT_NAME="//Workspace/Users/${CURRENT_USER_NAME}/test-experiment6260d50f-e8ff-4905-8f28-812345678903" # use hard-coded uuid when running locally
99
fi
1010
export EXPERIMENT_NAME
11-
envsubst < databricks.yml > out.yml && mv out.yml databricks.yml
11+
envsubst < databricks.yml.tmpl > databricks.yml
1212

1313
title "Create a pre-defined experiment"
1414
EXPERIMENT_ID=$($CLI experiments create-experiment "${EXPERIMENT_NAME}" | jq -r '.experiment_id')
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bundle:
2+
name: test-bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Error: unable to locate bundle root: databricks.yml not found
1+
Error: dashboard with ID f00dcafe not found
22

33

44
Exit code: 1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bundle:
2+
name: test-bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Error: unable to locate bundle root: databricks.yml not found
1+
Error: dashboard "dashboard" not found
22

33

44
Exit code: 1
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
bundle:
2+
name: test-bundle
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Error: unable to locate bundle root: databricks.yml not found
1+
Error: resource not found or not yet deployed. Did you forget to run 'databricks bundle deploy'?
22

0 commit comments

Comments
 (0)