sentry icon indicating copy to clipboard operation
sentry copied to clipboard

Why do I always get "No releases associated with this proguard mapping file" ?

Open joel-schaal opened this issue 1 year ago • 9 comments

Environment

SaaS (https://sentry.io/)

What are you trying to accomplish?

I want to download the Proguard mapping associated to a specific release

How are you getting stuck?

This is what I do in my CI Server

  1. Generate a UUID and set it for proguard-uuid in my sentry.properties
  2. Generate an obfuscation map (within my Maven setup)
  3. Use sentry-cli to upload it:
sentry-cli releases -o dentalwings new -p $project $version
sentry-cli upload-proguard -o dentalwings -p $project $obfuscationFile --uuid $proguardUUID --require-one

This works fine in the events, since I get Symbolicated stack traces, but the Proguard map seems not attached to the release in the Project Settings. Also, it would be nice if this Proguard map could be listed in the Project Release Details, like the Source Maps. I also tried with sentry-cli debug-files find  but I was not successful to find anything just by giving a release number

Where in the product are you?

Projects - Project Details

Link

https://dentalwings.sentry.io/settings/projects/vivo/proguard/

DSN

No response

Version

No response

joel-schaal avatar Feb 12 '24 21:02 joel-schaal

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] avatar Feb 12 '24 21:02 getsantry[bot]

Routing to @getsentry/product-owners-releases for triage ⏲️

getsantry[bot] avatar Feb 13 '24 16:02 getsantry[bot]

thanks for bringing this up, just a few questions. double check - the Proguard files seem to be showing up fine and they are working as intended, they just don't have a release attached to them? Also, when you say that they should be listed, do you mean on the Releases page, like where it says Sourcemaps and the number of artifacts, having something like that for Proguard files?

roggenkemper avatar Feb 14 '24 21:02 roggenkemper

Hello @roggenkemper, sorry for the delay, I missed your reply.

Indeed, if I go in https://dentalwings.sentry.io/settings/projects/vivo/proguard/ I will see all Proguard mapping that I uploaded, and each will have the mention "No releases associated with this proguard mapping file". I drilled down one event I received, checked its JSON (found that debug_meta.images[0].uuid=6fbab4cf-9a52-4728-9a7b-f36cbc5158fa) and looked-up the corresponding Proguard mapping. Sure enough, even though the event itself had a release info, the Proguard mapping did not.

Then, when I select that release, I see in the right panel that I have "Source Maps 0 artifacts". I guess Source Maps != Obfuscation Maps, but for a Java project, I'm not sure what Source Maps would mean anyway.

Could you help me make sense of all of this? Am I doing something wrong (and if so, what?) or is there an issue with how Java project data is handled by Sentry?

joel-schaal avatar Apr 08 '24 14:04 joel-schaal

@joel-schaal Thanks for looking into it more. it seems like something is wrong with how the proguard mappings are being uploaded. do you mind writing in a support ticket at https://help.sentry.io/ so we can get support to help you out?

roggenkemper avatar Apr 08 '24 20:04 roggenkemper

I sent a request to support and they kindly reminded me that one should add the --version XXXX parameter for that to work. 🤦 Will try that, and then I'll close this ticket.

joel-schaal avatar Apr 30 '24 14:04 joel-schaal

Hum, I was not able to make it work with --version (I may have put the wrong --version-code, or a bad  --app-id, documentation is a bit "light" on that part) I am in communication with support, and will update that ticket accordingly.

joel-schaal avatar Apr 30 '24 19:04 joel-schaal

Alright after some back & forth with support team, this is actually caused by 2 issues:

  1. I used an outdated version (2.7.0) of CLI that did not behave properly on that part
  2. My project did not use Semantic Versioning for naming releases, which is kind of required for Proguard mappings upload.

So I'm able to solve that part now (I wish this 2. requirement was explained in the README section, though), next: could we have a Proguard entry in the Release? I mean, I can do Proguard Mapping -> Release, but I would also like to do Release -> Proguard Mapping.

Thanks for your help! Joël.

joel-schaal avatar May 16 '24 19:05 joel-schaal

Which README are you referring to? I can look into getting that updated with this information. And to clarify your ask, you want to see information about the Proguard files on the associated release file?

ceorourke avatar May 16 '24 23:05 ceorourke

Sorry, when I said README, I meant Sentry's documentation.

Regarding the other topic, I meant: I would like to see, when I open the page of a release, which proguard mapping is associated to it.

Thank you for your answer and sorry if my request was not clear enough.

joel-schaal avatar May 23 '24 02:05 joel-schaal

Thanks for clarifying! I've put this in our backlog to address.

ceorourke avatar May 23 '24 16:05 ceorourke