Repository navigation
cli-compat: track the latest skills release for CLI 1.23.0 and newer - #8203
simonfaltum wants to merge 1 commit into
Conversation
The 1.23.0 range keeps 0.2.47 as its skills pin and sets use_latest, which a CLI with #8202 honors by installing the latest skills release. Every released CLI ignores the field and keeps installing the pin; verified by running builds of v1.0.0, v1.5.0, v1.22.0 and v1.28.0 against this file. Co-authored-by: Isaac <no-reply@databricks.com>
There was a problem hiding this comment.
Automated review at 016a11a. Each finding was verified against the code.
No blocking issues found. 1 non-blocking comment(s) and 1 question(s) below.
This sets "use_latest": true on the 1.23.0 range so that CLIs with #8202 install the latest skills release, while 0.2.47 stays as the pin for released CLIs. Released CLIs do parse the file and ignore the field, as the table shows. But they also drop the field when they rewrite the shared cache, so tracking only works on a machine until an older CLI there refreshes the cache. The description and README should say so, and #8202 could keep unknown fields when it writes the cache.
Questions
- Nothing in this tree reads
use_latest:Entryhas no field for it andTestEmbeddedManifest_IsWellFormedstill only checks the 0.2.47 pin. The README also still describes"skills": "latest"as the way to track the latest release. Should this flip land with #8202 or after it, together with a test asserting that the newest range setsuse_latest(likeTestManifestLeavesSkillsHintsOff) and README text explaining how the field relates to thelatestsentinel? (non-blocking)
✅ Integration test reportCommit: 016a11a
Top 3 slowest tests (at least 2 minutes):
|
|
On the automated review:
|
rugpanov
left a comment
There was a problem hiding this comment.
Risk: LOW. The merge changes nothing for released CLIs. The released parsers that I checked (v0.299.2, v1.0.0, v1.5.0, v1.28.0 and main) use plain json.Unmarshal, drop the unknown use_latest field, and keep the 0.2.47 pin. The field acts only in CLIs with #8202, and a one-line revert reaches online CLIs within one hour.
Non-blocking points that have no diff line:
[nit]The PR body says that removing the field turns the tracking off again within the one-hour cache window. This is true only when the next fetch succeeds. In #8202, tier 3a uses a stale cache with no age limit, and tier 3b uses the embedded copy. Release binaries that are built after this merge embeduse_latest: true. Add this limit to the rollback sentence.[nit]The PR body does not follow.github/PULL_REQUEST_TEMPLATE.md..agents/skills/pr-checklist/SKILL.mdasks for## Changes,## Whyand## Tests, in that order. The body uses## Why,## Changesand## Test plan.
Why
CLI 1.23.0 and newer are pinned to skills 0.2.47 while the skills repository is at 0.2.57, and every bump needs a PR. #8202 lets a manifest range track the latest skills release with
"use_latest": truenext to its pin, in a form every released CLI ignores. This turns it on.Changes
Before, the 1.23.0 range pinned skills 0.2.47. Now the range sets
"use_latest": trueand keeps 0.2.47 as the pin. A CLI with #8202 installs the latest skills release and, when the lookup fails, falls back to the newest of 0.2.47, the release known at build time and the installed release. Every released CLI from 1.0.0 to 1.28.0 ignores the field and keeps installing 0.2.47, exactly as today. Removing the field turns the tracking off again on every CLI whose next manifest fetch succeeds, within the one-hour cache window. A CLI that cannot fetch keeps its stale cache, and release binaries built after this merge embed the field, so for those the rollback waits for a successful fetch.Safe in either merge order. Intended after #8202, so the flip takes effect with a CLI that honors it. Once #8202 is in, this branch gets a test asserting that the newest range tracks latest.
One limit, documented in #8202's README: every CLI version on a machine shares the manifest cache, and CLIs up to 1.28.0 re-encode it when they refresh it, dropping fields they do not know. A newer CLI that reads a cache an older CLI wrote installs the pin until it refreshes the cache itself, at most an hour later. #8202 writes the cache as fetched, so this stops once the older CLIs on a machine are gone.
Verified against released CLI builds
Built v1.0.0, v1.5.0, v1.22.0 and v1.28.0 from their tags and ran
aitools install --debugwith this manifest planted as a fresh cache (DATABRICKS_CACHE_DIR) and the skills host pointed at a closed port, so the only question is whether the old parser accepts the file. Compared with today's manifest and with a manifest that uses the"latest"sentinel:"skills": "latest"sentinelThe builds are development builds, so all of them resolve the newest range; what matters is that the whole file parses. The sentinel column is why the field exists: it reproduces both failure modes the pin has been protecting against.
Test plan
go test ./libs/clicompat/ ./libs/aitools/installer/databricks aitools list --debugon the new release fetchesmain/metaplugin/version.meta.jsonand lists the current skills releaseThis pull request and its description were written by Isaac.