Skip to content

Add bundle command group from deployment metadata service (DMS)#5155

Draft
shreyas-goenka wants to merge 4 commits intodatabricks:mainfrom
shreyas-goenka:dms-bundle-cli-group
Draft

Add bundle command group from deployment metadata service (DMS)#5155
shreyas-goenka wants to merge 4 commits intodatabricks:mainfrom
shreyas-goenka:dms-bundle-cli-group

Conversation

@shreyas-goenka
Copy link
Copy Markdown
Contributor

Summary

Pulls the 14 RPCs from the new deployment metadata service (DMS) into the CLI under databricks bundle <verb>-<resource>. Generated by genkit update-sdk against the companion universe PR's tip — databricks-eng/universe-dev#9751.

The DMS proto sets sdk_package = \"bundle\" and sdk_service = \"Bundle\", so the generated commands land alongside the existing handwritten databricks bundle deploy/destroy/run/... rather than under a separate top-level group.

New commands

All 14 are hidden behind PRIVATE_PREVIEW until DMS launches:

  • databricks bundle complete-version
  • databricks bundle create-deployment
  • databricks bundle create-operation
  • databricks bundle create-version
  • databricks bundle delete-deployment
  • databricks bundle get-deployment, get-operation, get-resource, get-version
  • databricks bundle heartbeat
  • databricks bundle list-deployments, list-operations, list-resources, list-versions

Test plan

  • Built databricks binary locally and ran databricks bundle --help — all 14 commands listed under the bundle group.
  • Spot-checked bundle list-deployments --help (correct --limit/--page-size split) and bundle create-deployment --help (correct --display-name/--target-name/--json flags).
  • CI (lint, acceptance) — depends on universe PR landing first so _openapi_sha resolves.
  • make generate produces no diff once universe lands.

Dependencies

  • Blocked on databricks-eng/universe-dev#9751 (universe PR for the DMS proto / OpenAPI wiring). Once that lands, _openapi_sha (currently pointing at the PR branch tip 1ea59df458f0873eb071a440f7de33232a9c591e) will resolve on master.

This pull request and its description were written by Isaac.

Pulls in the 14 RPCs from the new deployment metadata service (DMS)
under `databricks bundle` so the SDK and CLI surface them via the
existing user-facing namespace. Generated by `genkit update-sdk`
against universe at the companion DMS PR's tip.

New commands (all hidden behind PRIVATE_PREVIEW until DMS launches):
- databricks bundle complete-version
- databricks bundle create-deployment
- databricks bundle create-operation
- databricks bundle create-version
- databricks bundle delete-deployment
- databricks bundle get-{deployment,operation,resource,version}
- databricks bundle heartbeat
- databricks bundle list-{deployments,operations,resources,versions}

Companion universe PR: databricks-eng/universe-dev#9751.

Co-authored-by: Isaac
create-version, create-operation, and heartbeat are part of the deploy
orchestration contract — they're driven by `databricks bundle deploy` /
`databricks bundle destroy` via the SDK, not by humans typing commands.
Strip them from the CLI surface in an overrides.go (cmdOverrides hook).
They remain reachable through the generated Go SDK.

Co-authored-by: Isaac
Both are driven by the existing handwritten `databricks bundle deploy` /
`databricks bundle destroy` flows. Exposing the raw RPCs as separate CLI
commands invites users to bypass that orchestration. Keep them in the
SDK only.

complete-version stays — its sole user-facing use case is forcefully
closing a stuck version when the SDK-driven close path didn't run.

Co-authored-by: Isaac
Companion to the universe-side proto migration from `tag` to
`versioned_api`. Generated CLI is byte-identical (same 14 RPCs,
same `bundle` group); only the SHA reference changes.

Co-authored-by: Isaac
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 3, 2026

An authorized user can trigger integration tests manually by following the instructions below:

Trigger:
go/deco-tests-run/cli

Inputs:

  • PR number: 5155
  • Commit SHA: 52a2ef6d31827e18135a2d0b36e37929df850b46

Checks will be approved automatically on success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant