Dashboard › cli › Distillation
bbd661df-c4a4-4534-a726-edab20832eec["lore_tm_v1_3fLHcX6CnN9WnrnzeyOk1mphpWBsHgdJLRwcv1EHuRQ"]
packages/cli/test/lib/binary.test.ts, increasing the shown binary-management test section from 103 to 229 lines.getGitHubReleaseByTagUrl, resolveUpgradeSource, UPGRADE_SOURCES, and UpgradeSourceNotFoundError from ../../src/lib/binary.js.getBinaryDownloadUrl("1.0.0") expectations from the legacy https://github.com/getsentry/cli/releases/download/1.0.0/ layout to the source-aware toolkit layout beginning https://github.com/getsentry/toolkit/releases/download/ and containing /cli@1.0.0/.UPGRADE_SOURCES[0], request tracking through const requests: string[] = [];, and a source configuration with tagPrefix: "cli@".0.45.0 via getGitHubReleaseByTagUrl("0.45.0", source), including a mocked legacy response { tag_name: "0.45.0" }.requestCount and require requestCount to equal 1.controller.abort(reason).headers to have length 2.new TypeError("fetch failed") and the operation must throw UpgradeError.downloadNightlyBlob("token", "sha256:abc") must yield an UpgradeError containing "Unexpected GHCR blob response: HTTP 500"."never checked before": when getVersionCheckInfo().lastChecked is null, shouldCheckForUpdate returns true and a background update check should be initiated.setVersionCheckInfo("1.0.0"), which sets lastChecked to the current time.requestedUrls.push(url) and prefetch spying that expects an AbortSignal.const legacySource = UPGRADE_SOURCES[1]! and verifies prefetch behavior against legacySource.setReleaseChannel("nightly"), mocking https://api.github.com/repos/getsentry/toolkit and the GHCR manifest endpoint ending /v2/getsentry/toolkit/manifests/nightly.