Dashboard › cli › Distillation
ce38fa06-f3cd-4d49-9b77-de08a87b9951["lore_tm_v1_D2tffgsd7LAX5kBo4Mq8olF7As8UVEGCbm7mwXO9WIk","lore_tm_v1_Y_okYdcqY92IGIoCZtBFp6jGhLMH2G4UlD1JTBijzOs"]
packages/cli/test/lib/binary.test.ts, determineInstallDir() tests establish that SENTRY_INSTALL_DIR takes priority over ~/.local/bin.packages/cli/test/lib/binary.test.ts, fetchWithUpgradeError() tests assert: successful fetch returns HTTP 200; an AbortError is re-thrown unchanged and is not an UpgradeError; Error("ECONNREFUSED") is wrapped as an UpgradeError whose message includes both "GitHub" and "ECONNREFUSED"; and a non-Error value { code: "ECONNRESET", reason: "connection reset" } is wrapped as an UpgradeError whose message includes "ECONNRESET".packages/cli/test/lib/binary.test.ts, parseUpgradeJson() distinguishes body-consumption failures: external cancellation preserves the exact arbitrary abort reason { kind: "cancelled" }; TypeError("terminated") becomes { name: "UpgradeTransportError", reason: "network_error" }; completed malformed JSON "not json" becomes { name: "UpgradeError", reason: "network_error", message: "invalid metadata" }.packages/cli/test/commands/cli/upgrade.test.ts, cli upgrade --check --method curl uses cached target 88.88.88 after a direct transport failure TypeError("fetch failed").packages/cli/test/commands/cli/upgrade.test.ts, cli upgrade --check --method curl also uses cached target 88.88.88 when response body parsing fails with TypeError("terminated")."never uses the cached target after %s" in packages/cli/test/commands/cli/upgrade.test.ts line 461; covered non-transport outcomes are HTTP 403 and malformed HTTP 200 metadata [{ tag_name: "mcp@1.0.0" }], for which cached target 88.88.88 must not be used.packages/cli/test/commands/cli/upgrade.test.ts, exact-source resolution for pinned version 88.88.88 requests https://api.github.com/repos/getsentry/toolkit/releases/tags/cli%4088.88.88, https://api.github.com/repos/getsentry/cli/releases/tags/88.88.88, and https://api.github.com/repos/getsentry/cli/releases?per_page=30; it does not request https://api.github.com/repos/getsentry/toolkit/releases?per_page=30, and no request contains per_page=100.fetchRecentReleases() at packages/cli/src/lib/delta-upgrade.ts:237, resolveNightlyChain() at packages/cli/src/lib/delta-upgrade.ts:369, and its client.listTags(opts.token, PATCH_TAG_PREFIX, opts.signal) call at line 387.listTags() at packages/cli/src/lib/ghcr.ts:597 and downloadLayerBlob() at packages/cli/src/lib/ghcr.ts:640.packages/cli/src/lib/release-notes.ts:588 documents that release-note retrieval uses a higher per_page than fetchRecentReleases() in delta-upgrade.packages/cli/test/lib/delta-upgrade.test.ts contains a "selected source affinity" suite at line 1943 and a test "prefetchNightlyPatches keeps requests on the legacy source" at line 2015.