Skip to content

cli-compat: track the latest skills release for CLI 1.23.0 and newer - #8203

Open
simonfaltum wants to merge 1 commit into
mainfrom
simonfaltum/cli-compat-use-latest
Open

simonfaltum wants to merge 1 commit into
mainfrom
simonfaltum/cli-compat-use-latest

Conversation

@simonfaltum

@simonfaltum simonfaltum commented Nov 30, 2026 •

Copy link
Copy Markdown
Member

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": true next 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": true and 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 --debug with 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:

CLI build today's manifest this manifest "skills": "latest" sentinel
v1.0.0 cached manifest used, skills 0.2.47 cached manifest used, skills 0.2.47 manifest rejected, embedded copy, skills 0.1.5
v1.5.0 cached manifest used, skills 0.2.47 cached manifest used, skills 0.2.47 manifest rejected, embedded copy, skills 0.2.5
v1.22.0 cached manifest used, skills 0.2.47 cached manifest used, skills 0.2.47 GitHub API lookup attempted, compiled fallback 0.2.30
v1.28.0 cached manifest used, skills 0.2.47 cached manifest used, skills 0.2.47 GitHub API lookup attempted, compiled fallback 0.2.47

The 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

This pull request and its description were written by Isaac.

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>
@simonfaltum
simonfaltum requested review from a team as code owners November 30, 2026 13:26

@review-oss-bot review-oss-bot Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

  1. Nothing in this tree reads use_latest: Entry has no field for it and TestEmbeddedManifest_IsWellFormed still 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 sets use_latest (like TestManifestLeavesSkillsHintsOff) and README text explaining how the field relates to the latest sentinel? (non-blocking)

Comment thread internal/build/cli-compat.json Resolved
@eng-dev-ecosystem-bot

Copy link
Copy Markdown
Collaborator

✅ Integration test report

Commit: 016a11a

Run: 46428627900

Env ✅​pass 🙈​skip Time
✅​ aws linux-2core-8gb 91 6 2:29
✅​ aws-windows-latest-4core-16gb 91 6 3:13
✅​ azure linux-2core-8gb 91 6 2:35
✅​ azure-windows-latest-4core-16gb 91 6 3:17
✅​ gcp linux-2core-8gb 91 6 2:35
✅​ gcp-windows-latest-4core-16gb 91 6 3:14
Top 3 slowest tests (at least 2 minutes):
duration env testname
3:15 azure-windows-latest-4core-16gb TestAccept
3:13 gcp-windows-latest-4core-16gb TestAccept
3:12 aws-windows-latest-4core-16gb TestAccept

@simonfaltum

Copy link
Copy Markdown
Member Author

On the automated review:

@rugpanov rugpanov left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 embed use_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.md asks for ## Changes, ## Why and ## Tests, in that order. The body uses ## Why, ## Changes and ## Test plan.

Comment thread internal/build/cli-compat.json Resolved
Comment thread internal/build/cli-compat.json Resolved

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.

3 participants