getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.19k stars 4.2k forks source link

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

Open joel-schaal opened 9 months ago

joel-schaal commented 9 months ago

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

getsantry[bot] commented 9 months ago

Assigning to @getsentry/support for routing ⏲️

getsantry[bot] commented 9 months ago

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

roggenkemper commented 9 months ago

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?

joel-schaal commented 7 months ago

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?

roggenkemper commented 7 months ago

@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?

joel-schaal commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

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.

ceorourke commented 6 months ago

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?

joel-schaal commented 5 months ago

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.

ceorourke commented 5 months ago

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