Skip to content

Warn when the CLI build is more than 6 months old - #6898

Open
shreyas-goenka wants to merge 8 commits into
mainfrom
shreyas-goenka/stale-cli-warning
Open

shreyas-goenka wants to merge 8 commits into
mainfrom
shreyas-goenka/stale-cli-warning

Conversation

@shreyas-goenka

@shreyas-goenka shreyas-goenka commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Verified manually that this works:

$ databricks version
Warning: this version of the Databricks CLI was built on 2026-01-15 and is more than 6 months old. We strongly recommend updating to the latest version.
To upgrade, run: brew upgrade databricks
To silence this warning, set DATABRICKS_CLI_DISABLE_UPDATE_CHECK=1.

Databricks CLI v1.18.0

$ DATABRICKS_CLI_DISABLE_UPDATE_CHECK=1 databricks version
Databricks CLI v1.18.0

shreyas-goenka and others added 4 commits October 1, 2026 11:24
Reads the build timestamp goreleaser embeds (shown in `databricks version -o json`
as BuildTime) and prints a stderr warning recommending an update. Skipped for
dev builds without a timestamp and on DBR, where the CLI ships with the image.

Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
Co-authored-by: Isaac <no-reply@databricks.com>
@shreyas-goenka
shreyas-goenka marked this pull request as ready for review October 1, 2026 11:40
@shreyas-goenka
shreyas-goenka requested review from a team as code owners October 1, 2026 11:40
Co-authored-by: Isaac <no-reply@databricks.com>
@eng-dev-ecosystem-bot

eng-dev-ecosystem-bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Collaborator

Integration test report

Commit: 4eb15a4

Run: 36874386492

Env ✅​pass 🙈​skip Time
✅​ aws linux 276 15 5:37
✅​ aws windows 278 13 5:06
✅​ azure linux 275 15 5:44
✅​ azure windows 277 13 4:48
✅​ gcp linux 276 15 5:42
✅​ gcp windows 278 13 4:48
Top 6 slowest tests (at least 2 minutes):
duration env testname
5:03 aws windows TestAccept
4:45 gcp windows TestAccept
4:45 azure windows TestAccept
4:06 aws linux TestAccept
4:02 azure linux TestAccept
4:00 gcp linux TestAccept

shreyas-goenka and others added 3 commits October 1, 2026 12:35
Reuses versioncheck.DetectInstallMethod (brew/winget/choco/install script) and
falls back to the install docs when the method is unknown. Dev and snapshot
builds no longer warn.

Co-authored-by: Isaac <no-reply@databricks.com>
The warning names the variable. Skip conditions move into
skipStaleVersionWarning so tests can pass a release build; the old DBR test
returned early on the test binary's dev version and never reached the DBR check.

Co-authored-by: Isaac <no-reply@databricks.com>
…warning

One opt-out for all upgrade nagging; exports versioncheck.DisableEnv.

Co-authored-by: Isaac <no-reply@databricks.com>

This branch has not been deployed

No deployments
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