Repository navigation
aitools: stop auto-install from downgrading newer skills #7888
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
85d587b
046dac1
22c79c5
b1a67e8
c45853b
644d2c9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| * Automatic installation of Databricks AI tools no longer moves skills you installed from a newer release (for example with `DATABRICKS_SKILLS_REF`) back to the older release this CLI version is pinned to, and no longer reports that as "Updated"; it leaves them alone. `databricks aitools update` still installs the pinned release when you run it. ([#7888](https://github.com/databricks/cli/pull/7888)) |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -79,7 +79,8 @@ type updateFlags struct { | |
| project, global bool | ||
| // keepModified is not a flag: auto-install sets it (see | ||
| // installer.UpdateOptions.KeepModified). It also keeps the raw skills of | ||
| // agents that have, or could get, the plugin. | ||
| // agents that have, or could get, the plugin, and refuses a downgrade | ||
| // (installer.UpdateOptions.NoDowngrade). | ||
| keepModified bool | ||
| } | ||
|
|
||
|
|
@@ -219,6 +220,7 @@ func runUpdate(ctx context.Context, f updateFlags) error { | |
| Scope: scope, | ||
|
|
||
| KeepModified: f.keepModified, | ||
| NoDowngrade: f.keepModified, | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. [nice to have] |
||
| } | ||
| opts.Skills = skills | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]
.agents/rules/testing.mdsays to send output you don't want in the golden toLOG.<name>, not/dev/null. As written, the telemetry from the setup install is lost even undergo test -v.print_telemetry > LOG.install_telemetrystill clears it and keeps it out ofoutput.txt.