Skip to content

Commit 7d4489f

Browse files
authored
Merge branch 'main' into cluster-id-config-1897
2 parents 8265d94 + 7c7fd13 commit 7d4489f

48 files changed

Lines changed: 719 additions & 73 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ jobs:
112112
with:
113113
version: "0.9.1"
114114
args: "format --check"
115-
- name: "make fmt: Python and Go formatting"
115+
- name: "make fmtfull: Python and Go formatting"
116116
# This is already done by actions, but good to check that make command is working
117117
run: |
118-
make fmt
118+
make fmtfull
119119
git diff --exit-code
120120
- name: "make checks: custom checks outside of fmt and lint"
121121
run: |

Makefile

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,27 @@ GOTESTSUM_FORMAT ?= pkgname-and-test-fails
66
GOTESTSUM_CMD ?= go tool gotestsum --format ${GOTESTSUM_FORMAT} --no-summary=skipped --jsonfile test-output.json
77

88

9-
lint:
9+
lintfull:
1010
golangci-lint run --fix
1111

12+
lint:
13+
./tools/lintdiff.py run --fix
14+
1215
tidy:
1316
@# not part of golangci-lint, apparently
1417
go mod tidy
1518

1619
lintcheck:
1720
golangci-lint run ./...
1821

19-
fmt:
20-
ruff format -qn
22+
fmtfull:
23+
ruff format -n
2124
golangci-lint fmt
2225

26+
fmt:
27+
ruff format -n
28+
./tools/lintdiff.py fmt
29+
2330
ws:
2431
./tools/validate_whitespace.py
2532

@@ -78,4 +85,4 @@ generate:
7885
[ ! -f .github/workflows/next-changelog.yml ] || rm .github/workflows/next-changelog.yml
7986
pushd experimental/python && make codegen
8087

81-
.PHONY: lint tidy lintcheck fmt test cover showcover build snapshot schema integration integration-short acc-cover acc-showcover docs ws links checks
88+
.PHONY: lint lintfull tidy lintcheck fmt fmtfull test cover showcover build snapshot schema integration integration-short acc-cover acc-showcover docs ws links checks

NEXT_CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
### Notable Changes
66

7+
* Fix `databricks auth login` to tolerate URLs copied from the browser ([#3001](https://github.com/databricks/cli/pull/3001)).
8+
79
### Dependency updates
810

911
### CLI
@@ -12,5 +14,6 @@
1214

1315
### Bundles
1416
* Fix "bundle summary -o json" to render null values properly ([#2990](https://github.com/databricks/cli/pull/2990))
17+
* Fixed null pointer de-reference if artifacts missing fields ([#3022](https://github.com/databricks/cli/pull/3022))
1518

1619
### API Changes
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
bundle:
2+
name: nil_artifacts_test
3+
4+
artifacts:
5+
# This reproduces the issue from GitHub #3017
6+
# where artifacts have empty definitions (only comments)
7+
my_artifact:
8+
# build: <first_option_command>
9+
# path: <path>
10+
# build: <second_option_command>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
>>> [CLI] bundle validate
3+
Error: Artifact not properly configured
4+
in databricks.yml:7:15
5+
6+
please specify artifact properties
7+
8+
Name: nil_artifacts_test
9+
Target: default
10+
Workspace:
11+
User: [USERNAME]
12+
Path: /Workspace/Users/[USERNAME]/.bundle/nil_artifacts_test/default
13+
14+
Found 1 error
15+
16+
Exit code: 1
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
errcode trace $CLI bundle validate
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
RecordRequests = false
2+
3+
[[Repls]]
4+
Old = '\\\\'
5+
New = '/'
6+
7+
[[Repls]]
8+
Old = '\\'
9+
New = '/'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"pages":[{"name":"02724bf2","displayName":"Dashboard test bundle-deploy-dashboard"}]}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bundle:
2+
name: deploy-dashboard-nested-folders-$UNIQUE_NAME
3+
4+
include:
5+
- "resources/*.yml"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
>>> [CLI] bundle deploy
3+
Uploading bundle files to /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-nested-folders-[UNIQUE_NAME]/default/files...
4+
Deploying resources...
5+
Updating deployment state...
6+
Deployment complete!
7+
8+
>>> [CLI] lakeview get [DASHBOARD_ID]
9+
{
10+
"lifecycle_state": "ACTIVE",
11+
"parent_path": "/Users/[USERNAME]",
12+
"path": "/Users/[USERNAME]/test bundle-deploy-dashboard [UUID].lvdash.json",
13+
"serialized_dashboard": "{\"pages\":[{\"name\":\"02724bf2\",\"displayName\":\"Dashboard test bundle-deploy-dashboard\",\"pageType\":\"PAGE_TYPE_CANVAS\"}]}"
14+
}
15+
16+
>>> [CLI] bundle destroy --auto-approve
17+
The following resources will be deleted:
18+
delete dashboard dashboard1
19+
20+
All files and directories at the following location will be deleted: /Workspace/Users/[USERNAME]/.bundle/deploy-dashboard-nested-folders-[UNIQUE_NAME]/default
21+
22+
Deleting files...
23+
Destroy complete!

0 commit comments

Comments
 (0)