Bump databricks-sdk-go to v0.127.0#4984
Merged
simonfaltum merged 16 commits intomainfrom Apr 16, 2026
Merged
Conversation
Co-authored-by: Isaac
Co-authored-by: Isaac
Artifact left behind by make generate, which moves tagging.py to internal/genkit/ but doesn't clean up the lock file from the root. Co-authored-by: Isaac
The SDK v0.127.0 bump added new API fields, pushing the count from ~4814 to 5213. Raise the guard bounds from (4600, 5000) to (5000, 5500). Co-authored-by: Isaac
New apply-environment command added by SDK v0.127.0. Co-authored-by: Isaac
SDK v0.127.0 added deprecation annotations to Workspace methods (GetStatusByPath, MkdirsByPath, Delete, ListAll, Mkdirs) in favor of WorkspaceHierarchyService (GetTreeNode, CreateTreeNode, DeleteTreeNode, ListTreeNodes). Migration tracked separately. Co-authored-by: Isaac
pietern
reviewed
Apr 16, 2026
denik
reviewed
Apr 16, 2026
- Revert file mode changes on tagging.yml and internal/genkit/tagging.py (genkit set them to 755, should be 644) - Fix tagging.yml path back to internal/genkit/tagging.py (genkit's post-generate sed pattern doesn't match the uv run invocation) - Restore .gitattributes header (NEXT_CHANGELOG merge=union, genkit comment) stripped by genkit - Restore python/codegen/uv.lock and python/uv.lock from main (proxy URL leaked from local uv config) - Restore blank line in internal/genkit/tagging.py Co-authored-by: Isaac
- catalog.go: Map ManagedEncryptionSettings from CatalogInfo in RemapState and forward from config in DoUpdate/DoUpdateWithID (field exists on CatalogInfo, CreateCatalog, and UpdateCatalog) - external_location.go: Map EffectiveFileEventQueue from ExternalLocationInfo in RemapState, matching the existing pattern for EffectiveEnableFileEvents Co-authored-by: Isaac
Co-authored-by: Isaac
This step was missed because post-generate.sh failed during the initial make generate run (PyPI unreachable). Changes: - postgres_projects remote type: ProjectSpec -> ProjectStatus - external_locations: simplified effective_file_event_queue ignore rule - postgres_projects: added default_branch as input_only Co-authored-by: Isaac
The genkit template now skips regular request fields named "limit" when pagination is active, avoiding the collision with the --limit result capping flag. This replaces the manual --page-size workaround. Co-authored-by: Isaac
fb725cd to
c1f296b
Compare
SDK v0.127.0 updated the Workspace API description from "notebooks and folders" to "workspace objects such as notebooks, files, folders, and dashboards." Co-authored-by: Isaac
pietern
reviewed
Apr 16, 2026
| postgres_endpoints: postgres.EndpointSpec | ||
|
|
||
| postgres_projects: postgres.ProjectSpec | ||
| postgres_projects: postgres.ProjectStatus |
Contributor
There was a problem hiding this comment.
This looks wrong. Can this be non-deterministic? I know the spec and status structs look similar.
cc @denik
Member
Author
There was a problem hiding this comment.
The generator (generate_apitypes.py) picks types by field overlap, and ProjectStatus probably scored higher after the SDK added DefaultBranch to both types. But apitypes.yml already pins postgres_projects: postgres.ProjectSpec as a manual override, so the generated value doesn't take effect. Agreed this is a bit fragile, the generator could be more deterministic about preferring Spec over Status types.
- Fix nolint comments on HostType() calls: these are deprecated because the SDK is moving to host-agnostic behavior, not WorkspaceHierarchyService - Remove API changes from NEXT_CHANGELOG (not included per convention) Co-authored-by: Isaac
Co-authored-by: Isaac
- Move tagging.py.lock alongside tagging.py to internal/genkit/ so that `uv run --locked` works in the tagging workflow - Fix sed pattern: genkit writes `uv run --locked tagging.py` not `python tagging.py`, so the old pattern never matched Co-authored-by: Isaac
pietern
approved these changes
Apr 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
New SDK release 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):
Follow-up fixes for compatibility:
errNotWorkspaceClient: The SDK removeddatabricks.ErrNotWorkspaceClientin v0.127.0. Defined it locally incmd/root/auth.gosince the CLI uses it as an internal sentinel betweenworkspaceClientOrPromptandMustAnyClient. 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--limitflag for client-side result capping. ImplementedWithLimitcontext function and wired it into iterator rendering.--limitcollision: The Jobs API names its page size fieldLimit, which collided with the new genkit--limitflag. Renamed the API page size to--page-size(hidden) for bothlistandlist-runs.ManagedEncryptionSettings,EffectiveFileEventQueue,DefaultBranch) to direct resource struct literals.config.Rootfield count: Raised theTestTypeRootguard threshold from (4600, 5000) to (5000, 5500) to accommodate new API fields.Workspacemethods (GetStatusByPath,MkdirsByPath,Delete,ListAll) in favor ofWorkspaceHierarchyService. Added//nolint:staticcheckto all 42 call sites. Migration to the new API will be a separate follow-up PR.Test plan
go build ./...compiles cleango test ./internal/build ./bundle/internal/schema ./bundle/direct/dresources ./bundle/config/resourcesall passgo test ./acceptance -run refschemapasses (golden output updated)go test ./acceptance -run account-helppasses (golden output updated)go test ./acceptance -run pipelines/databricks-cli-helppasses (golden output updated)go test ./libs/structs/structwalk/ -run TestTypeRootpasses (threshold raised)go tool -modfile=tools/go.mod golangci-lint run --timeout=15mpasses (0 issues)make checkspasses cleanThis pull request was AI-assisted by Isaac.