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

fix: Uploading all .pdb at Temp/ManagedSymbols for Mono on Windows & Linux #1226

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

bitsandfoxes
Copy link
Contributor

Unity allows for the use of Assembly Definitions which leads to the creation of separate .dll and .pdb files. Currently, those get skipped due to the naming restriction.

@bitsandfoxes bitsandfoxes requested a review from vaind March 14, 2023 12:43
@@ -178,7 +178,7 @@ private static void UploadDebugSymbols(IDiagnosticLogger logger, BuildTarget tar

if (isMono)
{
addFilesMatching($"{projectDir}/Temp", new[] { "**/UnityEngine.*.pdb", "**/Assembly-CSharp.pdb" });
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you sure the original files are still matched for all supported versions of Unity?
I remember some of these rules (not saying it relates to this one specifically) being very different for each version I've tested this on.

Maybe instead just add the new rule instead of removing the old one unless you've verified we're not losing useful files.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double checked and at the very least for Windows this works.
Line numbers on OSX and mono don't work right now. And that directory does not exist either. Checking for Linux.

@bitsandfoxes bitsandfoxes changed the title fix: Uploading all .pdb at Temp/ManagedSymbols for Mono fix: Uploading all .pdb at Temp/ManagedSymbols for Mono on Windows Mar 14, 2023
@bitsandfoxes bitsandfoxes merged commit 0e3b9b5 into main Mar 14, 2023
@bitsandfoxes bitsandfoxes deleted the fix/mono-symbols branch March 14, 2023 17:09
@bitsandfoxes bitsandfoxes changed the title fix: Uploading all .pdb at Temp/ManagedSymbols for Mono on Windows fix: Uploading all .pdb at Temp/ManagedSymbols for Mono on Windows & Linux Mar 14, 2023
@github-actions
Copy link
Contributor

Fails
🚫 Please consider adding a changelog entry for the next release.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Uploading all `.pdb` at `Temp/ManagedSymbols` for Mono on Windows & Linux ([#1226](https://github.com/getsentry/sentry-unity/pull/1226))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 035c633

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.

2 participants