zed: Do not upload crashes that lack an associated release (#55605)

We will not have any debug data for these anyways (and usually this
indicates someone else made a built that somehow points to our sentry
endpoint ...)

Release Notes:

- N/A or Added/Fixed/Improved ...
This commit is contained in:
Lukas Wirth 2026-05-04 20:44:05 +02:00 committed by GitHub
parent fac532153e
commit 07e57bb488
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -266,6 +266,10 @@ async fn upload_minidump(
minidump: Vec<u8>,
metadata: &crashes::CrashInfo,
) -> Result<()> {
if metadata.init.commit_sha == "no sha" {
log::warn!("No commit sha set, skipping minidump upload");
return Ok(());
}
let mut form = Form::new()
.part(
"upload_file_minidump",