Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

"You know what they say. Fool me once, strike one, but fool me twice... strike three." — Michael Scott

## Unreleased

### Deprecations

- Added a deprecation notice for release bundle uploads, a legacy method for uploading sourcemaps ([#2844](https://github.com/getsentry/sentry-cli/pull/2844)). Release bundle uploads will be removed in Sentry CLI 3.x in favor of artifact bundles, the newer sourcemap upload method [introduced in Sentry version 23.6.2](https://github.com/getsentry/sentry/commit/f90f764fda09575f3f94caf32d04589098384616). **Self-hosted users**: You must upgrade to Sentry 23.6.2 or later before upgrading to Sentry CLI 3.x.

## 2.56.1

### Deprecations
Expand Down
1 change: 1 addition & 0 deletions src/api/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -991,6 +991,7 @@ impl<'a> AuthenticatedApi<'a> {
.convert_rnf(ApiErrorKind::ProjectNotFound)
}

#[deprecated = "release bundle uploads are deprecated in favor of artifact bundle uploads"]
pub fn assemble_release_artifacts(
&self,
org: &str,
Expand Down
8 changes: 8 additions & 0 deletions src/utils/file_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -550,6 +550,14 @@ fn poll_assemble(
context.dist,
)?
} else {
log::warn!(
"[DEPRECATION NOTICE] Your Sentry server does not support artifact bundle \
uploads. Falling back to deprecated release bundle upload. Support for this \
deprecated upload method will be removed in Sentry CLI 3.0.0. Please upgrade your \
Sentry server, or if you cannot upgrade, pin your Sentry CLI version to 2.x, so \
you don't get upgraded to 3.x when it is released."
);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Misleading Deprecation Warning for Empty Projects

The deprecation warning message is misleading. It states "Your Sentry server does not support artifact bundle uploads" but also appears when context.projects is empty. This incorrectly suggests a server limitation when the fallback is due to missing project configuration.

Fix in Cursor Fix in Web

#[expect(deprecated, reason = "fallback to legacy upload")]
authenticated_api.assemble_release_artifacts(
context.org,
context.release()?,
Expand Down