Dashboard › cli › Distillation
0e5d5049-1fe1-4fe3-9056-6b9b6f16015e["lore_tm_v1_nxJAo5uhu1LnmUHZq02wDredoEVArBvQGXmtntSA2HA"]
Date: September 10, 2026
packages/cli/test/commands/cli/upgrade.test.ts lines 1070–1133 shows a GHCR download test originally introduced in commit ff574c983 by github-actions[bot]; it creates fakeContent = new Uint8Array([0x7f, 0x45, 0x4c, 0x46]), compresses it with gzipSync(fakeContent), captures requested URLs, and mocks the flow token exchange → manifest → blob redirect → blob download. The manifest uses digest "sha256:abc123", the blob request redirects with HTTP 307 to https://blob.example.com/file.gz, and assertions verify a request containing "ghcr.io/token". (meaning Apr 23, 2026)gzipSync(fakeContent) in packages/cli/test/commands/cli/upgrade.test.ts:1072 attributed to Burak Yigit Kaya in commit 5e19e7c6cd. (meaning May 21, 2026)packages/cli/test/commands/cli/upgrade.test.ts:1078–1079 in commit 04867eaf9b: when the URL equals https://api.github.com/repos/getsentry/toolkit, the mock returns new Response(null, { status: 200 }). (meaning Sep 9, 2026)e565b1afb3: packages/cli/test/commands/cli/upgrade.test.ts:1138 calls mockBinaryDownloadWithVersion("1.0.0"); the output must not contain "Already up to date" and must contain "Downloading 1.0.0" and "1.0.0" at lines 1149, 1151, and 1153. (meaning Sep 10, 2026)