Commit f711183
authored
Bump databricks-sdk-go to v0.127.0 (#4984)
## Why
New SDK release
[v0.127.0](https://github.com/databricks/databricks-sdk-go/releases/tag/v0.127.0)
is available. Notable changes include fixing a data race in concurrent
credentials initialization, retry logic for token acquisition, and
updated OpenAPI spec.
## Changes
Standard SDK bump: `go get`, `make generate`, acceptance test golden
file updates, whitespace fixes.
**Diff breakdown** (the diff looks large, but almost everything is
generated):
```
┌─────────────────┬───────┬────────┬──────────────────────────────────┐
│ Area │ Files │ +Lines │ What │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ cmd/workspace │ 133 │ +3,938 │ Generated command stubs (genkit) │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ python │ 25 │ +1,115 │ Generated Python dataclasses │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ bundle/schema │ 2 │ +840 │ Generated JSON schema │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ cmd/account │ 40 │ +553 │ Generated account command stubs │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ bundle/internal │ 5 │ +371 │ Generated annotations/validation │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ acceptance │ 1 │ +145 │ Refschema golden output │
├─────────────────┼───────┼────────┼──────────────────────────────────┤
│ Manual fixes │ ~30 │ ~110 │ Our actual code changes │
└─────────────────┴───────┴────────┴──────────────────────────────────┘
```
**Follow-up fixes for compatibility:**
- **`errNotWorkspaceClient`**: The SDK removed
`databricks.ErrNotWorkspaceClient` in v0.127.0. Defined it locally in
`cmd/root/auth.go` since the CLI uses it as an internal sentinel between
`workspaceClientOrPrompt` and `MustAnyClient`. The SDK stopped returning
this error in v0.125.0, the CLI was already synthesizing it.
- **`cmdio.WithLimit`**: New genkit feature. Generated list commands now
support a `--limit` flag for client-side result capping. Implemented
`WithLimit` context function and wired it into iterator rendering.
- **Jobs `--limit` collision**: The Jobs API names its page size field
`Limit`, which collided with the new genkit `--limit` flag. Renamed the
API page size to `--page-size` (hidden) for both `list` and `list-runs`.
- **exhaustruct fixes**: Added new SDK fields
(`ManagedEncryptionSettings`, `EffectiveFileEventQueue`,
`DefaultBranch`) to direct resource struct literals.
- **`config.Root` field count**: Raised the `TestTypeRoot` guard
threshold from (4600, 5000) to (5000, 5500) to accommodate new API
fields.
- **Deprecated Workspace API (SA1019)**: SDK v0.127.0 added deprecation
annotations to `Workspace` methods (`GetStatusByPath`, `MkdirsByPath`,
`Delete`, `ListAll`) in favor of `WorkspaceHierarchyService`. Added
`//nolint:staticcheck` to all 42 call sites. Migration to the new API
will be a separate follow-up PR.
## Test plan
- [x] `go build ./...` compiles clean
- [x] `go test ./internal/build ./bundle/internal/schema
./bundle/direct/dresources ./bundle/config/resources` all pass
- [x] `go test ./acceptance -run refschema` passes (golden output
updated)
- [x] `go test ./acceptance -run account-help` passes (golden output
updated)
- [x] `go test ./acceptance -run pipelines/databricks-cli-help` passes
(golden output updated)
- [x] `go test ./libs/structs/structwalk/ -run TestTypeRoot` passes
(threshold raised)
- [x] `go tool -modfile=tools/go.mod golangci-lint run --timeout=15m`
passes (0 issues)
- [x] `make checks` passes clean
This pull request was AI-assisted by Isaac.1 parent eae8085 commit f711183
243 files changed
Lines changed: 7045 additions & 456 deletions
File tree
- .codegen
- .github/workflows
- acceptance
- bundle/refschema
- help
- pipelines/databricks-cli-help
- bundle
- config/validate
- deploy
- files
- direct/dresources
- generate
- internal
- schema
- validation/generated
- permissions
- phases
- schema
- cmd
- account
- access-control
- billable-usage
- budget-policy
- budgets
- credentials
- csp-enablement-account
- custom-app-integration
- disable-legacy-features
- enable-ip-access-lists
- encryption-keys
- endpoints
- esm-enablement-account
- federation-policy
- groups-v2
- iam-v2
- ip-access-lists
- llm-proxy-partner-powered-account
- llm-proxy-partner-powered-enforce
- log-delivery
- metastore-assignments
- metastores
- network-connectivity
- network-policies
- networks
- o-auth-published-apps
- personal-compute
- private-access
- published-app-integration
- service-principal-federation-policy
- service-principal-secrets
- service-principals-v2
- settings-v2
- storage-credentials
- storage
- usage-dashboards
- users-v2
- vpc-endpoints
- workspace-assignment
- workspace-network-configuration
- workspaces
- apps
- auth
- bundle/generate
- root
- sync
- workspace
- access-control
- agent-bricks
- aibi-dashboard-embedding-access-policy
- aibi-dashboard-embedding-approved-domains
- alerts-legacy
- alerts-v2
- alerts
- apps-settings
- apps
- artifact-allowlists
- automatic-cluster-update
- catalogs
- clean-room-asset-revisions
- clean-room-assets
- clean-room-auto-approval-rules
- clean-room-task-runs
- clean-rooms
- cluster-policies
- clusters
- compliance-security-profile
- connections
- consumer-fulfillments
- consumer-installations
- consumer-listings
- consumer-personalization-requests
- consumer-providers
- credentials-manager
- credentials
- current-user
- dashboard-email-subscriptions
- dashboard-widgets
- dashboards
- data-classification
- data-quality
- data-sources
- database
- default-namespace
- default-warehouse-id
- disable-legacy-access
- disable-legacy-dbfs
- enable-export-notebook
- enable-notebook-table-clipboard
- enable-results-downloading
- enhanced-security-monitoring
- entity-tag-assignments
- environments
- experiments
- external-lineage
- external-locations
- external-metadata
- feature-engineering
- feature-store
- forecasting
- functions
- genie
- git-credentials
- global-init-scripts
- grants
- groups-v2
- instance-pools
- instance-profiles
- ip-access-lists
- jobs
- knowledge-assistants
- lakeview-embedded
- lakeview
- libraries
- llm-proxy-partner-powered-workspace
- materialized-features
- metastores
- model-registry
- model-versions
- notification-destinations
- online-tables
- permission-migration
- permissions
- pipelines
- policies
- policy-compliance-for-clusters
- policy-compliance-for-jobs
- policy-families
- postgres
- provider-exchange-filters
- provider-exchanges
- provider-files
- provider-listings
- provider-personalization-requests
- provider-provider-analytics-dashboards
- provider-providers
- providers
- quality-monitor-v2
- quality-monitors
- queries-legacy
- queries
- query-history
- query-visualizations-legacy
- query-visualizations
- recipient-activation
- recipient-federation-policies
- recipients
- redash-config
- registered-models
- repos
- resource-quotas
- restrict-workspace-admins
- rfa
- schemas
- secrets
- service-principal-secrets-proxy
- service-principals-v2
- serving-endpoints
- sql-results-download
- storage-credentials
- system-schemas
- table-constraints
- tables
- tag-policies
- temporary-path-credentials
- temporary-table-credentials
- token-management
- tokens
- users-v2
- vector-search-endpoints
- vector-search-indexes
- volumes
- warehouses
- workspace-bindings
- workspace-conf
- workspace-entity-tag-assignments
- workspace-iam-v2
- workspace-settings-v2
- workspace
- experimental/ssh/internal/client
- integration
- assumptions
- cmd/sync
- internal/acc
- libs/git
- libs
- cmdio
- filer
- structs/structwalk
- sync
- python/databricks/bundles
- catalogs
- _models
- jobs/_models
- pipelines
- _models
- tools
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | | - | |
12 | | - | |
| 13 | + | |
| 14 | + | |
13 | 15 | | |
14 | 16 | | |
15 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
9 | 11 | | |
10 | 12 | | |
11 | 13 | | |
12 | 14 | | |
| 15 | + | |
| 16 | + | |
13 | 17 | | |
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
| 188 | + | |
189 | 189 | | |
190 | 190 | | |
191 | 191 | | |
| |||
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
207 | | - | |
| 207 | + | |
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
76 | | - | |
| 76 | + | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
| 26 | + | |
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| |||
0 commit comments