Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .nextchanges/bundles/6999.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Diagnostics about configuration values now consistently show the configuration path (`at ...`) and its location. ([#6999](https://github.com/databricks/cli/pull/6999))
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:22:3

Recreated internal_immutable_snapshots.immutable
Expand All @@ -42,6 +43,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:22:3

The following resources will be deleted:
Expand Down
2 changes: 2 additions & 0 deletions acceptance/bundle/migrate/auto/default/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

>>> [CLI] bundle summary
Warning: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:1:37

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand All @@ -26,6 +27,7 @@ Resources:

>>> [CLI] bundle summary -o json
Warning: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:1:37

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/migrate/auto/run-no-commit/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ ID Type Language Path

>>> [CLI] bundle run test_job --no-wait
Warning: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:1:37

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

>>> musterr [CLI] bundle deployment migrate
Error: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:3:11

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand Down
5 changes: 5 additions & 0 deletions acceptance/bundle/migrate/command/runas/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3

Notice: migrating your bundle to direct deployment engine (https://github.com/databricks/cli/issues/6765).
Expand All @@ -31,6 +32,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3

Success! Migrated 2 resources to direct engine state file: [TEST_TMP_DIR]/.databricks/bundle/production/resources.json
Expand All @@ -55,6 +57,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3

Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
Expand All @@ -70,6 +73,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3


Expand All @@ -84,6 +88,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3

The following resources will be deleted:
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/presets/preset_vs_dev_mode/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: target with 'mode: development' cannot set trigger pause status to UNPAUSED by default
at presets.trigger_pause_status
in databricks.yml:9:29

Name: preset
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
=== deleting the file warns and re-fires
>>> [CLI] bundle plan -o json
Warning: lifecycle.triggers.on_file_change: no synced files match "seed.txt"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:18:29


Expand Down Expand Up @@ -168,6 +169,7 @@ Warning: lifecycle.triggers.on_file_change: no synced files match "seed.txt"
}
}
Warning: lifecycle.triggers.on_file_change: no synced files match "seed.txt"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:18:29

Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/job-runs-on-file-change/default/files...
Expand All @@ -189,6 +191,7 @@ Resources: 1 created, 0 changed, 1 deleted, 1 unchanged

>>> [CLI] bundle plan
Warning: lifecycle.triggers.on_file_change: no synced files match "seed.txt"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:18:29

Plan: 0 to add, 0 to change, 0 to delete, 2 unchanged
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
=== a pattern that escapes the sync root is rejected
>>> musterr [CLI] bundle validate
Error: lifecycle.triggers.on_file_change: pattern "../shared/*.txt" is not under the sync root
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -15,6 +16,7 @@ Found 1 error
=== a glob that only matches directories warns
>>> [CLI] bundle validate
Warning: lifecycle.triggers.on_file_change: no synced files match "dirs/*"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -28,6 +30,7 @@ Found 1 warning
=== a glob matching a directory and an excluded file warns
>>> [CLI] bundle validate
Warning: lifecycle.triggers.on_file_change: no synced files match "mixed/*"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -41,6 +44,7 @@ Found 1 warning
=== a glob matching only excluded files warns
>>> [CLI] bundle validate
Warning: lifecycle.triggers.on_file_change: no synced files match "allexcluded/*"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -54,6 +58,7 @@ Found 1 warning
=== a pattern that matches nothing warns
>>> [CLI] bundle validate
Warning: lifecycle.triggers.on_file_change: no synced files match "missing/*.txt"
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -67,6 +72,7 @@ Found 1 warning
=== ** is not supported
>>> musterr [CLI] bundle validate
Error: lifecycle.triggers.on_file_change: ** in "src/**" is not supported; use * for a single directory level
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:24:29

Name: job-runs-on-file-change-errors
Expand All @@ -80,6 +86,7 @@ Found 1 error
=== an absolute pattern is rejected
>>> musterr [CLI] bundle validate
Error: lifecycle.triggers.on_file_change: pattern "/tmp/seed.txt" must be relative to the defining YAML file
at resources.job_runs.my_run.lifecycle.triggers[0].on_file_change
in databricks.yml:18:29

Name: job-runs-on-file-change-errors
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:9:7

{
Expand Down Expand Up @@ -56,6 +57,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:9:7

Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/dev/files...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Warning: expected string, found sequence

Error: Secret value must be a string
at resources.secrets.secret1.value
in databricks.yml:7:7

The secret value for "secret1" must be a string.

Expand Down
4 changes: 4 additions & 0 deletions acceptance/bundle/run/scripts/no_content/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,23 @@
>>> [CLI] bundle run foo
Error: Script bar has no content
at scripts.bar.content
in databricks.yml:7:14

Error: Script foo has no content
at scripts.foo.content
in databricks.yml:5:7


Exit code: 1

>>> [CLI] bundle run bar
Error: Script bar has no content
at scripts.bar.content
in databricks.yml:7:14

Error: Script foo has no content
at scripts.foo.content
in databricks.yml:5:7


Exit code: 1
1 change: 1 addition & 0 deletions acceptance/bundle/run_as/empty_run_as_dict/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: run_as section must specify exactly one non-empty identity: user_name, service_principal_name, or group_name
at run_as
in databricks.yml:4:9

"run_as": {},
1 change: 1 addition & 0 deletions acceptance/bundle/run_as/empty_sp/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: run_as section must specify exactly one non-empty identity: user_name, service_principal_name, or group_name
at run_as
in databricks.yml:5:3

{
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/run_as/empty_user/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: run_as section must specify exactly one non-empty identity: user_name, service_principal_name, or group_name
at run_as
in databricks.yml:5:3

{
Expand Down
1 change: 1 addition & 0 deletions acceptance/bundle/run_as/empty_user_and_sp/output.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: run_as section must specify exactly one non-empty identity: user_name, service_principal_name, or group_name
at run_as
in databricks.yml:5:3

{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
Error: run_as section must specify exactly one non-empty identity: user_name, service_principal_name, or group_name
at run_as
in databricks.yml:6:3

Name: run_as
Expand Down
4 changes: 4 additions & 0 deletions acceptance/bundle/summary/engine-terraform/output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

>>> [CLI] bundle summary
Warning: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:3:11

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand All @@ -19,6 +20,7 @@ Resources:

>>> [CLI] bundle summary -o json
Warning: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:3:11

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand All @@ -28,6 +30,7 @@ See https://docs.databricks.com/dev-tools/bundles/direct for details

>>> musterr [CLI] bundle validate
Error: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:3:11

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand All @@ -40,6 +43,7 @@ Found 1 error

>>> musterr [CLI] bundle validate -o json
Error: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:3:11

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:23:7

Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/user_not_declared/files...
Expand Down Expand Up @@ -107,6 +108,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:47:7

Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/test-bundle/shared_users_can_manage/files...
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ Warning: required field "name" is not set
in databricks.yml:6:12

Error: Missing app source code path or git source
at resources.apps.rname
in databricks.yml:6:12

app resource 'rname' should have either source_code_path or git_source field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ Warning: required field "name" is not set
in databricks.yml:7:7

Error: Missing app source code path or git source
at resources.apps.rname
in databricks.yml:7:7

app resource 'rname' should have either source_code_path or git_source field
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ Warning: required field "name" is not set
in databricks.yml:7:7

Error: Missing app source code path or git source
at resources.apps.rname
in databricks.yml:7:7

app resource 'rname' should have either source_code_path or git_source field
Expand Down
2 changes: 2 additions & 0 deletions acceptance/bundle/validate/engine-config-valid/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Validation OK!

>>> musterr [CLI] bundle validate -t terraform-target
Error: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:10:15

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand All @@ -22,6 +23,7 @@ Found 1 error

>>> musterr [CLI] bundle validate -t terraform-target
Error: the Terraform deployment engine has been removed in Databricks CLI v1.20.0
at bundle.engine
in databricks.yml:10:15

Remove the "bundle.engine" setting (or set it to "direct") to deploy with the direct engine; existing Terraform state is migrated automatically. To keep using Terraform, revert to Databricks CLI v1.19.x.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

>>> [CLI] bundle validate
Error: invalid value "invalid_engine" for bundle.engine (expected "direct")
at bundle.engine
in databricks.yml:3:11

Name: test-engine-config
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

>>> [CLI] bundle validate
Error: invalid value "invalid_engine" for bundle.engine (expected "direct")
at bundle.engine
in databricks.yml:7:15

Name: test-engine-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Consider using a adding a top-level permissions section such as the following:
level: CAN_MANAGE

See https://docs.databricks.com/dev-tools/bundles/permissions.html to learn more about permission configuration.
at permissions
in databricks.yml:5:3

{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ presets: # PRESETS

>>> musterr [CLI] bundle validate -o json
Error: prefix should contain the current username or ${workspace.current_user.short_name} to ensure uniqueness when using 'mode: development'
at presets.name_prefix
in databricks.yml:25:16


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@
>>> [CLI] bundle validate
Warning: invalid value "12" for enum field. Valid values are [READ WRITE MANAGE]
at resources.secret_scopes.bad_levels.permissions[0].level
in databricks.yml:7:7

Warning: invalid value "fuzz_badlevel" for enum field. Valid values are [READ WRITE MANAGE]
at resources.secret_scopes.bad_levels.permissions[1].level
in databricks.yml:7:7

Name: test-bundle
Target: default
Expand All @@ -17,9 +19,11 @@ Found 2 warnings
>>> [CLI] bundle validate --strict
Warning: invalid value "12" for enum field. Valid values are [READ WRITE MANAGE]
at resources.secret_scopes.bad_levels.permissions[0].level
in databricks.yml:7:7

Warning: invalid value "fuzz_badlevel" for enum field. Valid values are [READ WRITE MANAGE]
at resources.secret_scopes.bad_levels.permissions[1].level
in databricks.yml:7:7

Name: test-bundle
Target: default
Expand Down
Loading
Loading