Skip to content

Commit cfeee69

Browse files
chore(sourcemaps): Deprecate release bundle uploads
1 parent b867302 commit cfeee69

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

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

5+
## Unreleased
6+
7+
### Deprecations
8+
9+
- 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.
10+
511
## 2.56.1
612

713
### Deprecations

src/api/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,7 @@ impl<'a> AuthenticatedApi<'a> {
992992
.convert_rnf(ApiErrorKind::ProjectNotFound)
993993
}
994994

995+
#[deprecated = "release bundle uploads are deprecated in favor of artifact bundle uploads"]
995996
pub fn assemble_release_artifacts(
996997
&self,
997998
org: &str,

src/utils/file_upload.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,14 @@ fn poll_assemble(
556556
context.dist,
557557
)?
558558
} else {
559+
log::warn!(
560+
"[DEPRECATION NOTICE] Your Sentry server does not support artifact bundle \
561+
uploads. Falling back to deprecated release bundle upload. Support for this \
562+
deprecated upload method will be removed in Sentry CLI 3.0.0. Please upgrade your \
563+
Sentry server, or if you cannot upgrade, pin your Sentry CLI version to 2.x, so \
564+
you don't get upgraded to 3.x when it is released."
565+
);
566+
#[expect(deprecated, reason = "fallback to legacy upload")]
559567
authenticated_api.assemble_release_artifacts(
560568
context.org,
561569
context.release()?,

0 commit comments

Comments
 (0)