Dashboard › cli › Distillation
9e676389-aeff-4883-8d90-c17864a932a8["lore_tm_v1_kFdLbs0RUIUHZcPQMyQhBoe8MYwJTZz5Am7XUGckJSE"]
a84012184c79c2566c7466aa6beda5f767199218 and showed source-aware upgrade test coverage across packages/cli/test/lib/ghcr.test.ts, packages/cli/test/lib/release-notes.test.ts, packages/cli/test/lib/upgrade.test.ts, and packages/cli/test/lib/version-check.test.ts.packages/cli/test/lib/ghcr.test.ts includes tag-listing coverage using manifest fixtures and tag sets such as ["nightly", "patch-0.13.0", "patch-0.14.0"] and ["nightly", "latest"]; one visible call is listTags("token", "patch-").packages/cli/test/lib/release-notes.test.ts includes release-body parsing fixtures such as Bidirectional cursor pagination by @BYK in [#564](https://github.com/getsentry/cli/pull/564), Markdown list lexing via marked.lexer("- item 1\n- item 2\n- item 3"), stable-channel cases with channel: "stable", and source-specific cases with source: toolkitSource.packages/cli/test/lib/upgrade.test.ts includes an invalid-pagination-path assertion for the message GitHub returned an invalid release pagination URL.packages/cli/test/lib/upgrade.test.ts includes new UpgradeError("offline_cache_miss") coverage and offline fixtures under offlineBinDir, created with mkdirSync(offlineBinDir, { recursive: true }).packages/cli/test/lib/upgrade.test.ts includes nightly-version fixtures using the annotation { version: "0.0.0-dev.1740393600" }.packages/cli/test/lib/upgrade.test.ts contains the test probes prefixed Toolkit tags and retains the selected source.packages/cli/test/lib/upgrade.test.ts contains parameterized coverage rejects pinned Toolkit %s without legacy fallback.packages/cli/test/lib/upgrade.test.ts contains throws on network failure for nightly version and throws on GHCR server error for nightly version, with visible failure-response fixtures including HTTP 403.packages/cli/test/lib/upgrade.test.ts contains falls back to legacy when the Toolkit nightly manifest returns 404, establishing that a Toolkit nightly-manifest HTTP 404 permits legacy fallback.packages/cli/test/lib/upgrade.test.ts contains does not fall back from a non-404 Toolkit nightly failure, establishing that legacy fallback is rejected for Toolkit nightly failures other than HTTP 404./v2/getsentry/toolkit/manifests/nightly and include a token-exchange response fixture { token: "test-token" }.packages/cli/test/lib/upgrade.test.ts contains throws UpgradeError when manifest has no version annotation.packages/cli/test/lib/upgrade.test.ts includes a successful download fixture described as token exchange + manifest + blob (200 with gzipped content).packages/cli/test/lib/upgrade.test.ts contains rejects a mismatched versioned manifest before downloading its blob, verifying manifest-version validation occurs before blob download.packages/cli/test/lib/upgrade.test.ts contains network fallback: throws offline_cache_miss with connection message.packages/cli/test/lib/version-check.test.ts documents command parsing behavior: the first positional token settles the command group, and if it is not cli, the cli command group is not selected.packages/cli/test/lib/version-check.test.ts includes nightly-notification coverage asserting the text contains New nightly available:.packages/cli/test/lib/version-check.test.ts contains passes the Toolkit source from stable discovery to patch prefetch without legacy access, verifying the selected Toolkit source propagates into patch prefetch and avoids legacy access.