-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
ref: Target upstream rust-minidump #673
Conversation
# Uncomment the line below for local development | ||
# symbolic = { path = "../../../symbolic/symbolic", features = ["common-serde", "debuginfo", "demangle", "minidump-serde", "symcache"] } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you keep this? I consider this quite useful, I often need to switch to a local symbolic version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
shouldn't this be done in a patch.crates-io
section? Having that here makes sorting a lot harder :)
be52d4b
to
ae9f90f
Compare
Instructions for snapshot changesSentry runs a symbolicator integration test suite located at Follow these steps to update snapshots in Sentry:
|
Codecov Report
@@ Coverage Diff @@
## release/rust-minidump #673 +/- ##
=========================================================
- Coverage 71.38% 71.25% -0.14%
=========================================================
Files 48 48
Lines 11038 11024 -14
=========================================================
- Hits 7880 7855 -25
- Misses 3158 3169 +11
Continue to review full report at Codecov.
|
os_version: 0.0.0 | ||
os_build: "Linux 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017 x86_64" | ||
os_version: 4.9.60-linuxkit-aufs | ||
os_build: "#1 SMP Mon Nov 6 16:00:12 UTC 2017" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for fixing this up!
|
||
RawObjectInfo { | ||
ty, | ||
// TODO: shouldn't this be None if code_id is empty? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is for my own personal curiosity, but what was the answer to this question?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
code_id can't be empty because of the new API which guarantees to give you one. But, hum, good question. Maybe this isn't true because you can still create those to be empty. I'll do this as a followup up though because this could be messy.
match module | ||
.debug_identifier() | ||
.map(|debug_id| self.files.contains_key(&debug_id)) | ||
.unwrap_or_default() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mixed feelings seeing this change because I think it makes it more difficult to see the main operation being acted upon here (self.files.contains_key
), but I don't think it's a dealbreaker. Looks like logically this is the same, so this is more of a readability nit than anything else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hum, i see what you mean though the previous code ended up calling .contains_key()
with a nil DebugId (the _or_default()
part) which is really what I'd like to avoid. Combinators like this are pretty standard rust style I think, what I like about this is there's only one exit point in the function, though your argument of making .contains_key()
stand out also makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for including the changes coming from my recent PR in rust-minidump! Left some nitpicky thoughts but overall I don't think any of them should block this, which removes one of the big barriers when it comes to testing rust-minidump changes.
This adapts to the async API of rust-minidump but also does a few other things:
Apart from the obvious there are still a few test failures that I haven't gotten to the bottom off.
#skip-changelog