From 9bc549ebfed8c38f217d03c7dd4f1516cb9f2d1c Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Thu, 1 Oct 2026 11:46:11 +0000 Subject: [PATCH 1/3] Clarify strict-mode warning error wording --- .../validate/secret_scope_invalid_permission_level/output.txt | 2 +- acceptance/bundle/validate/strict/output.txt | 4 ++-- cmd/bundle/validate.go | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acceptance/bundle/validate/secret_scope_invalid_permission_level/output.txt b/acceptance/bundle/validate/secret_scope_invalid_permission_level/output.txt index ce3a523536f..eec035d2671 100644 --- a/acceptance/bundle/validate/secret_scope_invalid_permission_level/output.txt +++ b/acceptance/bundle/validate/secret_scope_invalid_permission_level/output.txt @@ -28,4 +28,4 @@ Workspace: Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/default Found 2 warnings -Error: 2 warnings were found. Warnings are not allowed in strict mode +Error: 2 warnings were found. Warnings are treated as errors in strict mode diff --git a/acceptance/bundle/validate/strict/output.txt b/acceptance/bundle/validate/strict/output.txt index 11f3f4944d8..7385a89d571 100644 --- a/acceptance/bundle/validate/strict/output.txt +++ b/acceptance/bundle/validate/strict/output.txt @@ -24,7 +24,7 @@ Workspace: Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/foo Found 1 warning -Error: 1 warning was found. Warnings are not allowed in strict mode +Error: 1 warning was found. Warnings are treated as errors in strict mode Exit code: 1 @@ -44,6 +44,6 @@ Workspace: Path: /Workspace/Users/[USERNAME]/.bundle/test-bundle/bar Found 2 warnings -Error: 2 warnings were found. Warnings are not allowed in strict mode +Error: 2 warnings were found. Warnings are treated as errors in strict mode Exit code: 1 diff --git a/cmd/bundle/validate.go b/cmd/bundle/validate.go index c9dcb162345..9f8257731a5 100644 --- a/cmd/bundle/validate.go +++ b/cmd/bundle/validate.go @@ -97,7 +97,7 @@ Please run this command before deploying to ensure configuration quality.`, } else { prefix = fmt.Sprintf("%d warnings were found", numWarnings) } - return fmt.Errorf("%s. Warnings are not allowed in strict mode", prefix) + return fmt.Errorf("%s. Warnings are treated as errors in strict mode", prefix) } return err From ebc2a287f1b0e4730db6cfd84119596fc5b25ca7 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Thu, 1 Oct 2026 11:51:33 +0000 Subject: [PATCH 2/3] Add changelog for strict-mode wording --- .nextchanges/bundles/strict-warning-wording.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 .nextchanges/bundles/strict-warning-wording.md diff --git a/.nextchanges/bundles/strict-warning-wording.md b/.nextchanges/bundles/strict-warning-wording.md new file mode 100644 index 00000000000..66490bc3e52 --- /dev/null +++ b/.nextchanges/bundles/strict-warning-wording.md @@ -0,0 +1 @@ +* Clarify that bundle validation warnings are treated as errors in strict mode. ([#6899](https://github.com/databricks/cli/pull/6899)) From f7e6a14feb726974a6858dc4ae1f15e007e05dd4 Mon Sep 17 00:00:00 2001 From: Lennart Kats Date: Fri, 2 Oct 2026 11:13:58 +0000 Subject: [PATCH 3/3] Remove changelog for strict-mode wording --- .nextchanges/bundles/strict-warning-wording.md | 1 - 1 file changed, 1 deletion(-) delete mode 100644 .nextchanges/bundles/strict-warning-wording.md diff --git a/.nextchanges/bundles/strict-warning-wording.md b/.nextchanges/bundles/strict-warning-wording.md deleted file mode 100644 index 66490bc3e52..00000000000 --- a/.nextchanges/bundles/strict-warning-wording.md +++ /dev/null @@ -1 +0,0 @@ -* Clarify that bundle validation warnings are treated as errors in strict mode. ([#6899](https://github.com/databricks/cli/pull/6899))