Dashboard › cli › Distillation
198fba05-297a-4b62-9385-88ae80902f41["lore_tm_v1_zIfFYnkjb7YZaRCJyx5SdxqepusO3Aj-mPKcgDv6NY4","lore_tm_v1_vOO8t0mf-cJHypxHm3W1rVgTXQm8Fwx6b4qE2TK6eJc"]
packages/cli/test/lib/upgrade.test.ts coverage shows downloadBinaryToTemp downloads and decompresses a gzip binary when the .gz URL succeeds; the expected decompressed bytes are new Uint8Array([0x7f, 0x45, 0x4c, 0x46]).packages/cli/test/lib/upgrade.test.ts documents that cleanupOldBinary intentionally does not remove .download files because another process may have an upgrade in progress.https://ghcr.io/v2/getsentry/cli/manifests/nightly only when the Toolkit nightly manifest returns HTTP 404; non-404 Toolkit failures and transport-error text containing HTTP 404 must not trigger fallback.UpgradeError with Nightly manifest has no version annotation when the annotation is absent.executeUpgrade nightly coverage uses nightlyBinDir = join(TEST_TMP_DIR, "upgrade-nightly-test") and nightlyInstallPath = join(nightlyBinDir, "sentry"); it verifies executeUpgrade("curl", "0.0.0-dev.1740000000") downloads and decompresses a GHCR blob identified by digest sha256:blobdigest.downloadBinaryToTemp offline tests use offlineBinDir = join(TEST_TMP_DIR, "upgrade-offline-test") and offlineInstallPath = join(offlineBinDir, "sentry").downloadBinaryToTemp("0.26.1", undefined, "explicit") and expects an UpgradeError with reason === "offline_cache_miss" whose message contains in offline mode and without \--offline`, but does not contain cached patches`.downloadBinaryToTemp("0.26.1", undefined, "network-fallback") and expects reason === "offline_cache_miss" with a connection-oriented message that does not contain cached patches.CLI-1D3 verifies that when a full download silently creates a missing or empty file, downloadBinaryToTemp("0.26.1") polls with exponential backoff, throws UpgradeError if verification fails, and releases the download lock after that failure.CLI-1D3 tests also simulate a Windows filesystem-visibility race in which the download writer waits until an empty download file becomes visible before completing the write.