Dashboard › cli › Distillation
ca1a6428-b309-4a74-87d2-030bf3dfc3cf["lore_tm_v1_QHZaI3qUUj6vrKvpH08zrxxlDWiBTTPcgDztPS7m7YY","lore_tm_v1_2m6WTvsFPbOb-pLUc-cEzBoUY3GiR7bkYETmKdvZqpM"]
packages/cli/test/lib/delta-upgrade.mocked.test.ts migrated stable delta fixtures from legacy getsentry/cli release tags to Toolkit-prefixed tags: "0.14.0" → "cli@0.14.0" and "0.13.0" → "cli@0.13.0" in the stable resolution, patch-error fallback, and successful stable patch tests.packages/cli/test/lib/delta-upgrade.mocked.test.ts, the stable delta patch URL changed from https://github.com/getsentry/cli/releases/download/0.14.0/${BINARY_NAME}.patch to https://github.com/getsentry/toolkit/releases/download/cli@0.14.0/${BINARY_NAME}.patch.TRDIFF10 patch with zero control/diff/new sizes; chain resolution succeeds for 0.13.0 → 0.14.0, patching produces an empty file, and resolveStableDelta("0.14.0", oldBinaryPath, destPath) is expected to throw "SHA-256 mismatch".attemptDeltaUpgrade broken-patch test now serves Toolkit tags "cli@0.14.0" and "cli@0.13.0"; a 4-byte garbage patch [0, 1, 2, 3] is expected to be caught, causing attemptDeltaUpgrade("0.14.0", oldBinaryPath, destPath) to return null.packages/cli/test/lib/delta-upgrade.mocked.test.ts now serves Toolkit tags "cli@0.14.0" and "cli@0.13.0" while retaining real fixtures packages/cli/test/fixtures/patches/small-old.bin, small.trdiff10, and small-new.bin; expected telemetry remains SHA-256 54d0dcd74478bc154b5b24393fdc6129518271baa36f446384d60e84021bb724, patchBytes: 89, and chainLength: 1.packages/cli/test/lib/release-notes.test.ts added Vitest beforeEach/afterEach, imported UPGRADE_SOURCES from ../../src/lib/binary.js, imported fetchChangelog from ../../src/lib/release-notes.js, and imported mockFetch from ../helpers.js.fetchChangelog source affinity tests define toolkitSource = UPGRADE_SOURCES[0]! and legacySource = UPGRADE_SOURCES[1]!, save globalThis.fetch before each test, and restore it after each test.fetchChangelog({ channel: "stable", fromVersion: "0.20.0", toVersion: "0.21.0", source: toolkitSource }); the mocked releases include unrelated "mcp@99.0.0" and relevant "cli@0.21.0", the result must have totalItems === 1, omit "Unrelated Toolkit package release", and request only https://api.github.com/repos/getsentry/toolkit/releases?per_page=30 with no getsentry/cli URL.fetchChangelog({ channel: "stable", fromVersion: "0.20.0", toVersion: "0.21.0", source: legacySource }); the mocked release tag is "0.21.0" with changelog item "Keep the legacy bridge working", the result must have totalItems === 1, and the sole request must be https://api.github.com/repos/getsentry/cli/releases?per_page=30.fetchChangelog({ channel: "nightly", fromVersion: "0.21.0-dev.100", toVersion: "0.21.0-dev.200", source: toolkitSource }); the mocked commit message is "fix: keep nightly stages affine", the result must have totalItems === 1, and the sole request must be https://api.github.com/repos/getsentry/toolkit/commits?sha=main&since=1970-01-01T00:01:41.000Z&until=1970-01-01T00:03:21.000Z&per_page=100, with no getsentry/cli URL.