Releases: getsentry/sentry-cli
Releases · getsentry/sentry-cli
2.58.4
2.58.3
Improvements
- For the
sentry-cli build uploadcommand, we now only auto-detect Git metadata when we detect we are running in a CI environment, unless the user manually overrides this behavior (#2974). This change prevents local development builds from triggiering GitHub status checks for size analysis.- We can detect most common CI environments based on the environment variables these set.
- We introduced two new arguments,
--force-git-metadataand--no-git-metadata, which force-enable and force-disable automatic Git data collection, respectively, overriding the default behavior.
- The
sentry-cli build uploadcommand now automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows (#2976). Previously,--head-refwas only auto-detected for pull request workflows. Now it works for push, release, and other workflow types by using theGITHUB_REF_NAMEenvironment variable.
Fixes
- Fixed a bug where the
sentry-cli sourcemaps injectcommand could inject JavaScript code into certain incorrectly formatted source map files, corrupting their JSON structure (#3003).
2.58.3-alpha0
Improvements
- For the
sentry-cli build uploadcommand, we now only auto-detect Git metadata when we detect we are running in a CI environment, unless the user manually overrides this behavior (#2974). This change prevents local development builds from triggiering GitHub status checks for size analysis.- We can detect most common CI environments based on the environment variables these set.
- We introduced two new arguments,
--force-git-metadataand--no-git-metadata, which force-enable and force-disable automatic Git data collection, respectively, overriding the default behavior.
- The
sentry-cli build uploadcommand now automatically detects the correct branch or tag reference in non-PR GitHub Actions workflows (#2976). Previously,--head-refwas only auto-detected for pull request workflows. Now it works for push, release, and other workflow types by using theGITHUB_REF_NAMEenvironment variable.
Fixes
- Fixed a bug where the
sentry-cli sourcemaps injectcommand could inject JavaScript code into certain incorrectly formatted source map files, corrupting their JSON structure (#3003).
2.58.2
Improvements
- Added validation for the
sentry-cli build uploadcommand's--head-shaand--base-shaarguments (#2945). The CLI now validates that these are valid SHA1 sums. Passing an empty string is also allowed; this prevents the default values from being used, causing the values to instead be unset.
Fixes
- Fixed a bug where providing empty-string values for the
sentry-cli build uploadcommand's--vcs-provider,--head-repo-name,--head-ref,--base-ref, and--base-repo-namearguments resulted in 400 errors (#2946). Now, setting these to empty strings instead explicitly clears the default value we would set otherwise, as expected.
2.58.1
Deprecations
- Deprecated API key authentication (#2934, #2937). Users who are still using API keys to authenticate Sentry CLI should generate and use an Auth Token instead.
Improvements
- The
sentry-cli debug-files bundle-jvmno longer makes any HTTP requests to Sentry, meaning auth tokens are no longer needed, and the command can be run offline (#2926).
Fixes
- Skip setting
base_shaandbase_refwhen they equalhead_shaduring auto-inference, since comparing a commit to itself provides no meaningful baseline (#2924). - Improved error message when supplying a non-existent organization to
sentry-cli sourcemaps upload. The error now correctly indicates the organization doesn't exist, rather than incorrectly suggesting the Sentry server lacks artifact bundle support (#2931).
2.58.0
New Features
- Removed experimental status from the
sentry-cli build uploadcommands (#2899, #2905). At the time of this release, build uploads are still in closed beta on the server side, so most customers cannot use this functionality quite yet. - Added CLI version metadata to build upload archives (#2890).
Deprecations
- Deprecated the
upload-proguardsubcommand's--platformflag (#2863). This flag was a no-op for some time, so we will remove it in the next major. - Deprecated the
upload-proguardsubcommand's--android-manifestflag (#2891). This flag was a no-op for some time, so we will remove it in the next major. - Deprecated the
sentry-cli sourcemaps uploadcommand's--no-dedupeflag (#2913). The flag was no longer relevant for sourcemap uploads to modern Sentry servers and was made a no-op.
Fixes
- Fixed autofilled git base metadata (
--base-ref,--base-sha) when using thebuild uploadsubcommand in git repos. Previously this worked only in the context of GitHub workflows (#2897, #2898).
Performance
- Slightly sped up the
sentry-cli sourcemaps uploadcommand by eliminating an HTTP request to the Sentry server, which was not required in most cases (#2913).
2.57.0
New Features
- (JS API) Add
projectsfield toSentryCliUploadSourceMapsOptions(#2856)
Deprecations
- Deprecated the
upload-proguardsubcommand's--app-id,--version, and--version-codeflags (#2852), as we plan to remove these flags in Sentry CLI 3.x. Users should simply stop using the flags; the values specified there have never had an effect on deobfuscation, and are no longer visible in Sentry. - Added a deprecation notice for release bundle uploads, a legacy method for uploading source maps (#2844). Release bundle uploads will be removed in Sentry CLI 3.x in favor of artifact bundles, the newer source map upload method introduced in Sentry version 23.6.2. Self-hosted users: You must upgrade to Sentry 23.6.2 or later before upgrading to Sentry CLI 3.x.
Fixes
- Fixed a bug where some log messages would not show up in CI environments or when redirecting stderr to a file (#2830). Specifically, this bug was affecting any subcommand that uses a progress bar, such as
sentry-cli debug-files bundle-jvmandsentry-cli sourcemaps upload. Any stderr output during the progress bar was lost if stderr was redirected.
2.56.1
Deprecations
- Added a deprecation notice for legacy uploading methods (#2836, #2837)
- Support for these legacy uploading methods, required to upload to self-hosted Sentry servers below version 10.0.0, will be removed in the next major release (3.x). If you observe these new deprecation notices, we recommend upgrading your self-hosted Sentry server, or pinning Sentry CLI to a compatible version (2.x).
- You may encounter these deprecation notices when uploading debug files or sourcemaps.
Fixes & improvements
- Fixed a bug with sourcemap injection (#2764) by @szokeasaurusrex
- This change ensures we do not attempt to associate multiple compiled sources with the same sourcemap. As there should be at most one sourcemap for each compiled source, associating multiple compiled sources with the same sourcemap would lead to an invalid state.
- Updated some outdated dependencies (#2816, #2818, and #2819)
2.56.0
Various fixes & improvements
- feat: auto-fetch head-ref from GitHub Actions in detached HEAD state (#2805) by @runningcode
- feat: automatically fetch base SHA in GitHub Actions PR workflows (#2799) by @runningcode
- feat(preprod): use deflated compression when creating the zip file (#2800) by @trevor-e
- feat(preprod): make sure at least one app bundle is present for upload (#2795) by @trevor-e
- feat(preprod): fail upload if app is missing Info.plist (#2793) by @trevor-e
- feat: restore GitHub Actions base branch detection (#2792) by @runningcode
- fix: lower log level for missing base ref detection (EME-369) (#2813) by @runningcode
- fix: simplify debug logging for PR number detection (EME-362) (#2812) by @runningcode
- fix: serialize VCS tests to prevent race conditions (EME-368) (#2811) by @runningcode
- fix: Validate
SENTRY_RELEASEenvironment variable (#2807) by @szokeasaurusrex - fix: use actual PR head SHA in GitHub Actions instead of merge commit (#2785) by @runningcode
- fix: suppress warning messages in failing build upload tests (#2791) by @runningcode
2.55.0
Various fixes & improvements
- feat(build): preserve repository name case for build upload (#2777) by @runningcode
- fix(sourcemaps): Display injection errors (#2775) by @szokeasaurusrex
- feat: Normalize VCS provider names to match backend (#2770) by @runningcode
- feat: Improve upload error message to show cause (#2765) by @runningcode
- fix: Safer asset catalog reader for liquid glass (#2771) by @noahsmartin
- fix(releases): handle partial SHAs correctly in commit resolution (#2734) by @srest2021