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

feat: Add support for Portable PDB debug files / caches and .NET symboliction #883

Merged
merged 27 commits into from
Oct 18, 2022

Conversation

loewenheim
Copy link
Contributor

@loewenheim loewenheim commented Sep 22, 2022

This implements support for Portable PDB files, namely fetching them from sentry and external symbol sources as well converting those to appropriate cache files.

This also implements .NET event symbolication based on the new Event properties specified in RFC 0013.

Depends on getsentry/symbolic#696.

@codecov-commenter
Copy link

codecov-commenter commented Sep 23, 2022

Codecov Report

Base: 70.28% // Head: 70.72% // Increases project coverage by +0.43% 🎉

Coverage data is based on head (71e1fad) compared to base (5942784).
Patch coverage: 83.91% of modified lines in pull request are covered.

Additional details and impacted files
@@                 Coverage Diff                  @@
##           release/upd-deps     #883      +/-   ##
====================================================
+ Coverage             70.28%   70.72%   +0.43%     
====================================================
  Files                    58       59       +1     
  Lines                 11311    11621     +310     
====================================================
+ Hits                   7950     8219     +269     
- Misses                 3361     3402      +41     
Impacted Files Coverage Δ
crates/process-event/src/main.rs 0.72% <0.00%> (+0.02%) ⬆️
...rates/symbolicator/src/services/download/sentry.rs 24.55% <0.00%> (-0.12%) ⬇️
crates/symbolicator/src/sources.rs 87.82% <33.33%> (-0.55%) ⬇️
crates/symbolicator/src/utils/paths.rs 75.44% <57.14%> (-0.16%) ⬇️
crates/symbolicator/src/services/ppdb_caches.rs 80.45% <80.45%> (ø)
...icator/src/services/symbolication/module_lookup.rs 95.95% <84.48%> (-1.87%) ⬇️
...icator/src/services/symbolication/symbolication.rs 81.27% <86.56%> (+1.93%) ⬆️
...tes/symbolicator/src/services/symbolication/mod.rs 86.96% <89.28%> (+0.32%) ⬆️
crates/symbolicator/src/cache.rs 96.59% <100.00%> (+0.04%) ⬆️
crates/symbolicator/src/services/mod.rs 95.45% <100.00%> (+0.21%) ⬆️
... and 8 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Member

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

only a partial review so far

@loewenheim loewenheim changed the base branch from master to release/upd-deps October 3, 2022 12:29
Copy link
Member

@Swatinem Swatinem left a comment

Choose a reason for hiding this comment

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

lgtm

image_addr: "0x0"
candidates:
- source: local
location: "http://localhost:<port>/download/integration.pdb/0C1033F78632492E91C6C314B72E1920e60b819d/integration.pdb"
Copy link
Member

Choose a reason for hiding this comment

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

NOTE to self: not sure if we should FF out the age right away, or leave it for later.

index: usize,
) -> Result<Vec<SymbolicatedFrame>, FrameStatus> {
tracing::trace!("Loading symcache");
let symcache = match symcache.parse() {
Copy link
Member

Choose a reason for hiding this comment

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

I’m just now realizing that we are loading these cache files over and over again for each frame. Not a problem for now, but an opportunity for improvement later on.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It also happens in several different places.

crates/symbolicator/src/utils/paths.rs Outdated Show resolved Hide resolved
@loewenheim loewenheim self-assigned this Oct 5, 2022
@loewenheim
Copy link
Contributor Author

The RFC regarding extension of the protocol is here: getsentry/rfcs#13

Base automatically changed from release/upd-deps to master October 6, 2022 11:54
@Swatinem Swatinem changed the title feat: Dotnet symbolication using portable pdb caches feat: Add support for Portable PDB debug files / caches and .NET symboliction Oct 17, 2022
@Swatinem Swatinem marked this pull request as ready for review October 18, 2022 08:04
@Swatinem Swatinem requested a review from a team October 18, 2022 08:04
@Swatinem Swatinem enabled auto-merge (squash) October 18, 2022 08:23
@Swatinem Swatinem merged commit 1370da5 into master Oct 18, 2022
@Swatinem Swatinem deleted the feat/symbolicate-dotnet branch October 18, 2022 08:28
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

3 participants