Skip to content

[3.0] Update Databricks CLI to v1.28.0 - #2359

Merged
louis-johnston-db merged 1 commit into
release/3.xfrom
louis/3x-cli-1.28.0
Nov 30, 2026
Merged

louis-johnston-db merged 1 commit into
release/3.xfrom
louis/3x-cli-1.28.0

Conversation

@louis-johnston-db

@louis-johnston-db louis-johnston-db commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Changes

Updates the bundled Databricks CLI from 1.24.0 to 1.28.0, so 3.x no longer ships an older CLI than 2.24.1, which bundles 1.27.0.

Since CLI 1.27, bundle run --refresh and --full-refresh take space-separated selectors and reject commas. 3.x joined the selected tables with commas, so a partial update of two or more tables failed. This passes one flag per table and puts the parts of a name that the CLI would split or misread in backticks, as 2.x has done since #2333:

 bundle run --target dev pipelines.p
-  --refresh orders,sales.order details
+  --refresh orders --refresh sales.`order details`
  • kernel/cli/commands/bundle.ts: runArgs emits one flag per table, quoting each dot-separated part that contains a space, comma, colon or backtick (file:archive becomes `file:archive`, a`b becomes `a``b`).
  • run/tableSelection.ts and run/RunCommands.ts: the selected tables stay an array, with no join and split round trip.

Known limit, the same as 2.x since #2333: a name part that is already in backticks is passed as is. For a pipeline in legacy publishing mode the CLI removes backticks, so a Unity Catalog table whose real name starts and ends with a backtick would be refreshed under the name without them. Hive metastore names can't contain backticks.

No other changes between 1.24.0 and 1.28.0 need code here:

  • aitools update and uninstall now exit 1 when the scope has nothing installed, and the extension offers them only when the scope's install state file exists. They also exit 1 when every attempt fails (for example, the skills release can't be fetched), which now shows as "Failed to update Databricks AI tools." instead of passing silently.
  • aitools install skips agents that already have the plugin only under --skills-only, which the extension doesn't pass.
  • Template hosts with ?w= are already parsed.

User-visible change from the CLI: "Start SSH tunnel" on serverless CPU compute now uses environment version 5, so the first connection after the update starts a new server.

Tests

  • yarn verify: 3,120 unit tests pass (1 skipped), 179 script tests pass, and the VSIX packages CLI 1.28.0.

  • New and updated tests in bundle.test.ts and tableSelection.test.ts:

    • Each fails on a mutation: one comma-joined value, no quoting, or quoting the whole name instead of each part.
    • The new "only Full Refresh is chosen" test fails if an empty selection is passed on, which would otherwise confirm and then refresh the whole pipeline.
  • runArgs' output passed to the real CLI 1.28.0 (scratch HOME, no profile):

    --refresh orders --refresh sales.`order details` --refresh `a.b`.`x,y` --refresh `file:archive` --refresh `a``b`
      → Error: Unable to locate the bundle root   (flags accepted)
    --refresh a,b
      → Error: invalid argument "a,b" for "--refresh" flag: comma-separated selectors are no longer supported
    
  • aitools on 1.28.0 in a scratch HOME:

    • update with nothing installed exits 1.
    • After install --skills-only, update exits 0 ("Already up to date.") and uninstall exits 0.
    • The uninstall removes .databricks/aitools/skills/.state.json, so the extension stops offering Update.
  • The Integration Tests' partial update spec runs a single table against the real CLI. Two or more tables are covered by the unit tests and the CLI check above.

This pull request and its description were written by Isaac.

Since CLI 1.27, `bundle run --refresh` and `--full-refresh` take
space-separated selectors and reject commas, so a partial update of two or
more tables failed. Pass one flag per table, with the parts of a name that
the CLI would split or misread in backticks, as 2.x does since #2333.

Co-authored-by: Isaac <no-reply@databricks.com>
@louis-johnston-db
louis-johnston-db merged commit daf4650 into release/3.x Nov 30, 2026
12 checks passed
@louis-johnston-db
louis-johnston-db deleted the louis/3x-cli-1.28.0 branch November 30, 2026 10:15

This branch was previously deployed

1 inactive deployment
test-trigger-is — 792373c7 Deployed Nov 30, 2026 by louis-johnston-db via Trigger Tests #2631
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.

2 participants