Dashboard › cli › Distillation
1d336010-dc57-40e9-a618-0cc35fc707d8["lore_tm_v1_P96Ty08knN0c1BPrR7scQGVz2hOHNQAt8Nq5yIBanzU"]
Date: September 10, 2026
packages/cli/test/lib/binary.test.ts expanded from 93 to 220 lines and added coverage for getGitHubReleaseByTagUrl, parseUpgradeJson, resolveUpgradeSource, UPGRADE_SOURCES, and UpgradeSourceNotFoundError.getBinaryDownloadUrl("1.0.0") expectations changed from legacy https://github.com/getsentry/cli/releases/download/.../1.0.0/ semantics to Toolkit release semantics: URL starts with https://github.com/getsentry/toolkit/releases/download/ and contains /cli@1.0.0/.{ tag_name: "cli@0.45.0" }, request-sequence assertions, HTTP failure handling, and an HTTP 404 not-found case.getAnonymousToken() gained a test rejecting a non-string GHCR token response { token: {} } with GHCR token exchange returned no token.getAnonymousToken(undefined, controller.signal) gained cancellation coverage during response-body consumption: if response.json() aborts with reason { kind: "cancelled" } and throws DOMException("aborted", "AbortError"), the original abort reason must be preserved.findLayerByFilename() fixture expectations changed from the invalid short digest sha256:abc123 to a full SHA-256 digest formatted as sha256:${"a".repeat(64)}.downloadNightlyBlob() gained external-cancellation tests covering an AbortError, an abort reason new Error("cancelled") paired with TypeError("invalid_argument"), a single-request assertion requestCount === 1, and a non-Error cancellation reason { kind: "cancelled" }.fetchManifest("token", "patch-0.13.0") HTTP 404 coverage now expects the specialized GhcrManifestHttpError rather than only UpgradeError, with name: "GhcrManifestHttpError", status: 404, and message Failed to fetch manifest for tag "patch-0.13.0": HTTP 404.