Skip to content

Commit 3570f9a

Browse files
authored
Bump databricks-sdk-go to v0.132.0 (#5237)
## Why Pulls in four releases of the Go SDK (v0.129 through v0.132). It picks up new APIs (disaster recovery, secrets UC, supervisor agents, ingestion connectors), removes the file-backed OAuth token cache from the SDK (now owned by the CLI), and renames a handful of vector search fields. The Terraform provider already moved to this SDK in v1.115, so this also keeps the CLI close to the version Terraform users are running. ## Changes **Before:** CLI pinned `databricks-sdk-go` at `v0.128.0` and OpenAPI spec at SHA `11ae6f9d`. **Now:** Pinned at `v0.132.0` / OpenAPI SHA `a499dda0`. Most of the diff is regenerated output from `./task generate` (CLI command stubs, JSON schema, bundle docs, Python bindings, direct-engine YAML, acceptance goldens). The refreshed OpenAPI spec carries more launch-stage metadata, so generated commands now include Beta / Private Preview / GA warning text in help output, and the acceptance goldens update accordingly. Hand-written changes: - **Vector search:** `MinQps` -> `TargetQps` and `RequestedMinQps` -> `RequestedTargetQps` in `bundle/direct/dresources/vector_search_endpoint.go`, `libs/testserver/vector_search_endpoints.go`, and the `vector_search_endpoints/{update,drift}/min_qps` acceptance tests (renamed to `target_qps`). Added a Notable Changes entry to `NEXT_CHANGELOG.md` calling this out for DABs config and the `vector-search-endpoints` commands. - **Postgres:** `Create{Branch,Endpoint}Request` gained `ReplaceExisting`, `DeleteProjectRequest` gained `Purge`, and `Project` gained `DeleteTime`/`PurgeTime`. Added explicit zero values where exhaustruct demands them. - **Auth:** SDK v0.130 removed the host-key fallback in `PersistentAuth.loadToken`. Deleted the `cmd/auth/token_test` case that exercised it. Open question on the thread: users who haven't logged in since CLI v0.290.0 (2026-02-26) have host-keyed-only cache entries and will need to re-login. - **Deprecated `serving.AutoCaptureConfig{Input,Output}`:** narrow `//nolint:staticcheck` annotations until the migration to AI Gateway inference tables. - **Schema annotations:** regenerated `annotations_openapi.yml` so the new `compute.ConfidentialComputeType` enum has descriptions; dropped the stale `min_qps` placeholder from `annotations.yml`. - **Release tooling:** genkit also regenerated `.github/workflows/tagging.yml` and `internal/genkit/tagging.py`. This is generated output, but it changes release workflow behavior (protected runner group, `ref: main` to force re-resolution on workflow_dispatch re-runs, package-scoped dispatch input, created-tags artifact). Inline reviewer notes on both files. Merged `origin/main` to pick up #5240, which unsets the AI-agent env vars in acceptance instead of leaving them empty. Without that, the SDK v0.132 user-agent detector stamps `agent/multiple` onto every recorded request; with it merged in, the stamping stops and the goldens go back to their pre-bump state. ## Test plan - [x] `./task lint` clean - [x] `./task checks` clean (tidy, whitespace, links, deadcode) - [x] `go test ./internal/build ./bundle/internal/schema ./bundle/direct/dresources ./bundle/config/resources` - [x] `./task test-update` and `go test ./acceptance` clean after regeneration - [x] `./task pydabs-codegen` succeeds - [x] After review feedback, re-ran affected acceptance tests (`user_agent`, `auth/credentials`, `cmd/api`, `bundle/migrate`, `bundle/state`, `bundle/templates/telemetry`, `telemetry`, `workspace/jobs`) to confirm goldens match - [ ] CI on this PR This pull request and its description were written by Isaac.
1 parent cd6aecd commit 3570f9a

266 files changed

Lines changed: 11559 additions & 1299 deletions

File tree

Some content is hidden

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

.codegen/_openapi_sha

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
11ae6f9d98f0d0838a5e53c27032f178fecc4ee0
1+
a499dda0f7802e37868d3f3076f62639165475d8

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ cmd/account/credentials/credentials.go linguist-generated=true
88
cmd/account/csp-enablement-account/csp-enablement-account.go linguist-generated=true
99
cmd/account/custom-app-integration/custom-app-integration.go linguist-generated=true
1010
cmd/account/disable-legacy-features/disable-legacy-features.go linguist-generated=true
11+
cmd/account/disaster-recovery/disaster-recovery.go linguist-generated=true
1112
cmd/account/enable-ip-access-lists/enable-ip-access-lists.go linguist-generated=true
1213
cmd/account/encryption-keys/encryption-keys.go linguist-generated=true
1314
cmd/account/endpoints/endpoints.go linguist-generated=true
@@ -151,6 +152,7 @@ cmd/workspace/resource-quotas/resource-quotas.go linguist-generated=true
151152
cmd/workspace/restrict-workspace-admins/restrict-workspace-admins.go linguist-generated=true
152153
cmd/workspace/rfa/rfa.go linguist-generated=true
153154
cmd/workspace/schemas/schemas.go linguist-generated=true
155+
cmd/workspace/secrets-uc/secrets-uc.go linguist-generated=true
154156
cmd/workspace/secrets/secrets.go linguist-generated=true
155157
cmd/workspace/service-principal-secrets-proxy/service-principal-secrets-proxy.go linguist-generated=true
156158
cmd/workspace/service-principals-v2/service-principals-v2.go linguist-generated=true
@@ -159,12 +161,14 @@ cmd/workspace/settings/settings.go linguist-generated=true
159161
cmd/workspace/shares/shares.go linguist-generated=true
160162
cmd/workspace/sql-results-download/sql-results-download.go linguist-generated=true
161163
cmd/workspace/storage-credentials/storage-credentials.go linguist-generated=true
164+
cmd/workspace/supervisor-agents/supervisor-agents.go linguist-generated=true
162165
cmd/workspace/system-schemas/system-schemas.go linguist-generated=true
163166
cmd/workspace/table-constraints/table-constraints.go linguist-generated=true
164167
cmd/workspace/tables/tables.go linguist-generated=true
165168
cmd/workspace/tag-policies/tag-policies.go linguist-generated=true
166169
cmd/workspace/temporary-path-credentials/temporary-path-credentials.go linguist-generated=true
167170
cmd/workspace/temporary-table-credentials/temporary-table-credentials.go linguist-generated=true
171+
cmd/workspace/temporary-volume-credentials/temporary-volume-credentials.go linguist-generated=true
168172
cmd/workspace/token-management/token-management.go linguist-generated=true
169173
cmd/workspace/tokens/tokens.go linguist-generated=true
170174
cmd/workspace/users-v2/users-v2.go linguist-generated=true

.github/workflows/tagging.yml

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@ name: tagging
44
on:
55
# Manual dispatch.
66
workflow_dispatch:
7-
# No inputs are required for the manual dispatch.
7+
inputs:
8+
packages:
9+
description: 'Comma-separated list of packages to tag (e.g. "pkg1,pkg2"). Leave empty to tag all packages with pending releases.'
10+
required: false
11+
type: string
12+
default: ''
813

914
# NOTE: Temporarily disable automated releases.
1015
#
@@ -31,8 +36,8 @@ jobs:
3136
github.repository == 'databricks/databricks-sdk-java'
3237
environment: "release-is"
3338
runs-on:
34-
group: databricks-deco-testing-runner-group
35-
labels: ubuntu-latest-deco
39+
group: databricks-protected-runner-group
40+
labels: linux-ubuntu-latest
3641
steps:
3742
- name: Generate GitHub App Token
3843
id: generate-token
@@ -44,6 +49,12 @@ jobs:
4449
- name: Checkout repository
4550
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4651
with:
52+
# Force re-resolution of ``main`` at step time. Without
53+
# ``ref:``, checkout pins to ``github.sha`` — the SHA frozen
54+
# at workflow_dispatch time — which means re-running a stale
55+
# dispatch checks out an older main even when newer commits
56+
# exist.
57+
ref: main
4758
fetch-depth: 0
4859
token: ${{ steps.generate-token.outputs.token }}
4960

@@ -60,4 +71,18 @@ jobs:
6071
env:
6172
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
6273
GITHUB_REPOSITORY: ${{ github.repository }}
63-
run: uv run --locked internal/genkit/tagging.py
74+
PACKAGES: ${{ inputs.packages }}
75+
run: |
76+
if [ -n "$PACKAGES" ]; then
77+
uv run --locked internal/genkit/tagging.py --package "$PACKAGES"
78+
else
79+
uv run --locked internal/genkit/tagging.py
80+
fi
81+
82+
- name: Upload created tags artifact
83+
if: always()
84+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
85+
with:
86+
name: created-tags
87+
path: created_tags.json
88+
if-no-files-found: ignore

NEXT_CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
## Release v0.299.2
44

5+
### Notable Changes
6+
* Breaking change: `vector_search_endpoints` renamed `min_qps` to `target_qps` in DABs configuration and the `vector-search-endpoints` commands, following the SDK rename in v0.131.0. Update any `databricks.yml` using `min_qps:` to `target_qps:` and any CLI invocations using `--min-qps` to `--target-qps`.
7+
58
### CLI
69

710
* `auth login` no longer falls back to plaintext when the OS keyring is reachable but locked. The unlock prompt shown by the probe now runs in parallel with the OAuth flow, and the token is stored in the keyring once the user has typed their password.
@@ -20,3 +23,4 @@
2023
### Dependency updates
2124

2225
* Bump Go toolchain to 1.25.10 ([#5213](https://github.com/databricks/cli/pull/5213)).
26+
* Bump `github.com/databricks/databricks-sdk-go` from v0.128.0 to v0.132.0.

0 commit comments

Comments
 (0)