From 2d37ea9283a495ef2de8ed816d64c9ac0f9ef54d Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Mon, 2 Mar 2026 14:59:51 +0100 Subject: [PATCH 1/4] feat: Print snapshot URL after upload (EME-898) Read the new snapshotUrl field from the create snapshot response and print it so users can navigate directly to their snapshot. --- src/api/data_types/snapshots.rs | 1 + src/commands/build/snapshots.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/src/api/data_types/snapshots.rs b/src/api/data_types/snapshots.rs index 40d73354c6..c4f8f0946c 100644 --- a/src/api/data_types/snapshots.rs +++ b/src/api/data_types/snapshots.rs @@ -10,6 +10,7 @@ use serde::{Deserialize, Serialize}; pub struct CreateSnapshotResponse { pub artifact_id: String, pub image_count: u64, + pub snapshot_url: Option, } // Keep in sync with https://github.com/getsentry/sentry/blob/master/src/sentry/preprod/snapshots/manifest.py diff --git a/src/commands/build/snapshots.rs b/src/commands/build/snapshots.rs index 2ded836073..be59e767c2 100644 --- a/src/commands/build/snapshots.rs +++ b/src/commands/build/snapshots.rs @@ -123,6 +123,10 @@ pub fn execute(matches: &ArgMatches) -> Result<()> { } ); + if let Some(url) = &response.snapshot_url { + println!("{} View snapshot at {}", style(">").dim(), style(url).cyan()); + } + Ok(()) } From 32b119103ebf5fc1a741e41878b6f434508d0d69 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Tue, 3 Mar 2026 09:17:15 +0100 Subject: [PATCH 2/4] meta(changelog): Add changelog entry for snapshot URL Co-Authored-By: Claude Opus 4.6 (1M context) --- CHANGELOG.md | 1 + src/commands/build/snapshots.rs | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 53db2b04e5..e6f550c13f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,7 @@ ### Experimental Feature 🧑‍🔬 (internal-only) - Added experimental `sentry-cli build snapshots` command to upload build snapshots to a project ([#3110](https://github.com/getsentry/sentry-cli/pull/3110)). +- Print snapshot URL after successful upload ([#3167](https://github.com/getsentry/sentry-cli/pull/3167)). - This command uploads files from a specified directory to Sentry's Objectstore, associating them with a snapshot identifier. - The command is experimental and subject to breaking changes or removal in future releases. diff --git a/src/commands/build/snapshots.rs b/src/commands/build/snapshots.rs index be59e767c2..558d9ced46 100644 --- a/src/commands/build/snapshots.rs +++ b/src/commands/build/snapshots.rs @@ -124,7 +124,11 @@ pub fn execute(matches: &ArgMatches) -> Result<()> { ); if let Some(url) = &response.snapshot_url { - println!("{} View snapshot at {}", style(">").dim(), style(url).cyan()); + println!( + "{} View snapshot at {}", + style(">").dim(), + style(url).cyan() + ); } Ok(()) From 116ad0426c39f7ab653aac3460cfda8e1852e036 Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Tue, 3 Mar 2026 09:19:31 +0100 Subject: [PATCH 3/4] meta(changelog): Move entry to unreleased section Co-Authored-By: Claude Opus 4.6 (1M context) --- CHANGELOG.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e6f550c13f..76313397ad 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,16 @@ # Changelog +## Unreleased + +### Experimental Feature 🧑‍🔬 (internal-only) + +- Print snapshot URL after successful upload ([#3167](https://github.com/getsentry/sentry-cli/pull/3167)). + ## 3.2.3 ### Experimental Feature 🧑‍🔬 (internal-only) - Added experimental `sentry-cli build snapshots` command to upload build snapshots to a project ([#3110](https://github.com/getsentry/sentry-cli/pull/3110)). -- Print snapshot URL after successful upload ([#3167](https://github.com/getsentry/sentry-cli/pull/3167)). - This command uploads files from a specified directory to Sentry's Objectstore, associating them with a snapshot identifier. - The command is experimental and subject to breaking changes or removal in future releases. From c43c3811610f54da8b79ddee7be4d79d737eb67d Mon Sep 17 00:00:00 2001 From: Nelson Osacky Date: Tue, 3 Mar 2026 18:47:51 +0100 Subject: [PATCH 4/4] fix: Pluralize "snapshot" in snapshot URL message Co-Authored-By: Claude Opus 4.6 (1M context) --- src/commands/build/snapshots.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/build/snapshots.rs b/src/commands/build/snapshots.rs index 558d9ced46..89f2d387c4 100644 --- a/src/commands/build/snapshots.rs +++ b/src/commands/build/snapshots.rs @@ -125,7 +125,7 @@ pub fn execute(matches: &ArgMatches) -> Result<()> { if let Some(url) = &response.snapshot_url { println!( - "{} View snapshot at {}", + "{} View snapshots at {}", style(">").dim(), style(url).cyan() );