Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reduce debug files uploaded #2404

Merged
merged 8 commits into from
Jun 1, 2023
Merged

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Jun 1, 2023

When <SentryUploadSymbols> is true, we use sentry-cli to upload any valid debug info file from the output directory. Unfortunately, that also picks up every .so, .dll and .exe because they can contain native stack unwind details and symbol tables. For most .NET projects, we only need the .pdb files. We also need the dsym files (.dylib, etc.) on iOS/MacCatalyst.

This PR updates our msbuild target to only include the symbol files that are needed per platform.

@mattjohnsonpint mattjohnsonpint marked this pull request as draft June 1, 2023 02:19
@mattjohnsonpint mattjohnsonpint marked this pull request as ready for review June 1, 2023 14:46
@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) June 1, 2023 14:47
@mattjohnsonpint mattjohnsonpint enabled auto-merge (squash) June 1, 2023 21:55
@mattjohnsonpint
Copy link
Contributor Author

Note, the tests don't really show it, but on a WinUI app, this reduces from hundreds of debug files down to just a handful - because there are lots of native .dll files in the output directory.

@mattjohnsonpint mattjohnsonpint merged commit 3a92227 into main Jun 1, 2023
7 checks passed
@mattjohnsonpint mattjohnsonpint deleted the fix/reduce-symbol-uploads branch June 1, 2023 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants