Dashboard › cli › Distillation
23af48ae-420d-46d7-b74d-b6fc26c06fc6["lore_tm_v1_XFmIb8JJr_n7ss5eiFkyTdneTFe78ACiDZK1ntNGwG4","lore_tm_v1__9kUCwwmq669hM6288cgWG_IhKlqoT25W4wBaqk7f8U","lore_tm_v1_ZC5asOyGF50IR-gjXKN5qocZnMFBCwyLslsIw-bvHHI"]
packages/cli/test/lib/delta-upgrade.test.ts now imports vi, UPGRADE_SOURCES, and useTestConfigDir; it defines LEGACY_UPGRADE_SOURCE = UPGRADE_SOURCES[1] and throws Legacy upgrade source is not configured if that source is absent.packages/cli/test/lib/delta-upgrade.test.ts now expect release-list requests against api.github.com/repos/getsentry/toolkit/releases; Toolkit release fixtures use cli@${version} tags, including the 15-release/14-hop fixture that must exceed MAX_STABLE_CHAIN_DEPTH of 10.resolveNightlyChain source-affinity test passes source: LEGACY_UPGRADE_SOURCE with token test-token, current version 0.0.0-dev.100, target version 0.0.0-dev.101, and fullGzSize: 100_000; it expects only https://ghcr.io/v2/getsentry/cli/tags/list?n=100, no getsentry/toolkit requests, and a null result when the returned tag list is empty.packages/cli/test/lib/delta-upgrade.test.ts adds coverage that attemptDeltaUpgrade keeps nightly requests on the explicitly selected legacy source rather than switching later stages to Toolkit.packages/cli/test/lib/ghcr.test.ts now imports UPGRADE_SOURCES and GhcrManifestHttpError; getAnonymousToken(UPGRADE_SOURCES[0]) is tested to request scope repository:getsentry/toolkit:pull and return toolkit-token.fetchNightlyManifest("token", undefined, UPGRADE_SOURCES[0]) is tested to use /v2/getsentry/toolkit/manifests/nightly and return the supplied OCI manifest, verifying that GHCR manifest requests honor the selected upgrade source.fetchManifest("token", "patch-0.13.0") HTTP 404 handling is now asserted as a typed GhcrManifestHttpError with name: "GhcrManifestHttpError", status: 404, and message Failed to fetch manifest for tag "patch-0.13.0": HTTP 404, replacing the earlier generic UpgradeError assertion.packages/cli/test/lib/release-notes.test.ts now imports fetchChangelog, UPGRADE_SOURCES, beforeEach, afterEach, and mockFetch, and restores globalThis.fetch after each new source-affinity test.fetchChangelog({ channel: "stable", fromVersion: "0.20.0", toVersion: "0.21.0", source: UPGRADE_SOURCES[0] }); it expects exactly https://api.github.com/repos/getsentry/toolkit/releases?per_page=30, one changelog item, no legacy getsentry/cli request, and filtering of unrelated Toolkit package release mcp@99.0.0 while retaining cli@0.21.0.fetchChangelog({ channel: "stable", fromVersion: "0.20.0", toVersion: "0.21.0", source: UPGRADE_SOURCES[1] }); it expects one item and exactly https://api.github.com/repos/getsentry/cli/releases?per_page=30.fetchChangelog({ channel: "nightly", fromVersion: "0.21.0-dev.100", toVersion: "0.21.0-dev.200", source: UPGRADE_SOURCES[0] }); it expects one item from commit fix: keep nightly stages affine, no legacy repository request, and exactly https://api.github.com/repos/getsentry/toolkit/commits?sha=main&since=1970-01-01T00:01:41.000Z&until=1970-01-01T00:03:21.000Z&per_page=100.