sentry-cli: Unable to properly delete uploaded artifacts ("Nothing to upload, all files are on the server")

Issue

If I delete all uploaded artifact bundles on sentry.io and then try to upload the same artifacts (i.e. without making any changes that would produce a new bundle/“Bundle ID”) I get “Nothing to upload, all files are on the server”. However, my uploaded events are not being retraced due to "Source Maps not uploaded ", so the deleted artifacts are only partially there, i.e. they are blocking me from uploading new ones for the same bundle but cannot be inspected or deleted or used for retracing. That is pretty confusing.

Environment

sentry-cli version 1.75.2 MacOS

Steps to Reproduce

  1. npx react-native@latest init SentryTest
  2. sentry-wizard -i reactNative -p android
  3. Answer the four prompts (organization slug, project slug, DSN, auth token)
  4. npx react-native run-android --mode release
  5. Delete all uploaded artifact bundles from sentry.io https://test-32ecaf969.sentry.io/settings/projects/sentry-test/source-maps/artifact-bundles/ Screenshot 2023-08-29 at 14 21 44
  6. Rerun npx react-native run-android --mode release

Actual Result

Nothing is uploaded even though there are no artifact (or release) bundles present in sentry.io:

> Task :app:createBundleReleaseJsAndAssets_SentryUpload_com.sentrytest@1.0+1_1
Processing react-native sourcemaps for Sentry upload.
> Analyzing 2 sources
> Rewriting sources
> Adding source map references
Uploading sourcemaps for release com.sentrytest@1.0+1 distribution 1
> Bundled 2 files for upload
> Bundle ID: dea28e39-4391-56d5-8879-f0b9dc30a906
> Nothing to upload, all files are on the server

Expected result

I would expect that deleting the artifact bundles from sentry.io would allow me to upload them again. However, it looks like the artifacts are somewhat still present somewhere where I cannot properly delete them from.

About this issue

  • Original URL
  • State: closed
  • Created 10 months ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

Yeah, I can see how this is confusing. I’ll think about how the output can be clarified to explain this better.

Yes, exactly. We’re going to have the fix out in the next few days.