Repository navigation
feat(cli): ship zstd release downloads - #2923
Merged
Merged
Conversation
Release builds now write a `.zst` next to each `.gz` (level 19, 128 MiB window). On the current linux-x64 binary that is 26.6 MB instead of 37.1 MB. `install` prefers it when `zstd` is on PATH and the registry lists it, and `cli upgrade` prefers it when node:zlib has zstd. Both fall back to `.gz`, then the raw binary. The zstd files upload as `zst-<target>` artifacts so the binpatch steps, which treat every non-`.gz` file under `sentry-*` as a binary, skip them. Nightlies, Homebrew, the CDN and install.ps1 stay on gzip. Co-Authored-By: BYK <126780+BYK@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
BYK
approved these changes
Dec 5, 2026
14 of 16 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release builds now write a
.zstnext to each.gzand attach both to the GitHub release. On the currentsentry-linux-x64that's 26.6 MB instead of 37.1 MB (~28% smaller).curl's built-in decoding doesn't help here: GitHub release assets are served without
Content-Encoding, so the installer has to decompress explicitly either way.Changes
script/build.ts: compresses with zstd level 19 and a 2^27 window, in parallel with gzip. The window covers the whole binary, and both thezstdCLI andnode:zlibdecode it with no extra flags. It adds about a minute per build target.install: reads<asset>.zstfrom the release registry. When it's listed andzstdis onPATH, the installer downloads it, checks it against the SHA-256, runszstd -t, and unpacks withzstd -dcq. Anything else goes to the existing.gzpath, then the raw binary. A checksum mismatch is still fatal. The GitHub fallback (registry down) stays on gzip.cli upgrade: full downloads try.zst(throughcreateZstdDecompress, when the runtime has it), then.gz, then the raw binary. Each fallback is logged at debug level, which also replaces a grandfathered silent catch..zstfiles upload aszst-<target>artifacts, and.craft.ymlcollects them. They stay out ofsentry-*because the binpatch steps treat every non-.gzfile there as a binary to diff. Theapp:sentryregistry target has no target-levelincludeNames, so it lists the new files automatically.downloads.sentry-cdn.comGCS target, andinstall.ps1stay on gzip.Older releases have no
.zst, so both paths fall through to.gzfor them.via @BYK.
--
View Session [Sentry]