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

build: Bump rust-minidump #681

Merged
merged 6 commits into from
Feb 21, 2022
Merged

Conversation

loewenheim
Copy link
Contributor

Our rust-minidump branch now contains this commit, cherry-picked from upstream. Consequently we need to update the dependency in this branch to make everything work with DebugId.

#skip-changelog

@loewenheim loewenheim requested a review from a team February 17, 2022 13:33
Copy link
Contributor

@flub flub left a comment

Choose a reason for hiding this comment

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

i think a lot of the TODO comments above the modified lines can be removed now though?

@@ -1512,10 +1515,7 @@ impl SymbolProvider for TempSymbolProvider {
_frame: &mut dyn minidump_processor::FrameSymbolizer,
) -> Result<(), minidump_processor::FillSymbolError> {
// TODO(ja): Deduplicate this. Probably should use a different map key, ...
Copy link
Contributor

Choose a reason for hiding this comment

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

I have a sneaking suspicion that maybe we can delete this now, but maybe it'd be good to confirm this with @jan-auer to be safe.

@@ -1534,7 +1534,7 @@ impl SymbolProvider for TempSymbolProvider {
walker: &mut dyn minidump_processor::FrameWalker,
) -> Option<()> {
// TODO(ja): Deduplicate this. Probably should use a different map key, ...
Copy link
Contributor

Choose a reason for hiding this comment

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

Same deal here

@relaxolotl
Copy link
Contributor

Took a peek at the CI failures and I left a comment on a possible cause of the failure. As Floris mentioned above, it looks like a few comments could be removed as a result of this change, so I've left some notes pointing those out.

@codecov-commenter
Copy link

codecov-commenter commented Feb 18, 2022

Codecov Report

Merging #681 (323f438) into release/rust-minidump (98fa527) will decrease coverage by 0.02%.
The diff coverage is 0.00%.

❗ Current head 323f438 differs from pull request most recent head 5e60125. Consider uploading reports for the commit 5e60125 to get more accurate results

Impacted file tree graph

@@                    Coverage Diff                    @@
##           release/rust-minidump     #681      +/-   ##
=========================================================
- Coverage                  71.49%   71.47%   -0.03%     
=========================================================
  Files                         47       47              
  Lines                      11019    11018       -1     
=========================================================
- Hits                        7878     7875       -3     
- Misses                      3141     3143       +2     
Impacted Files Coverage Δ
crates/symbolicator/src/services/symbolication.rs 63.39% <0.00%> (-0.07%) ⬇️
crates/symbolicator/src/metrics.rs 52.05% <0.00%> (-1.37%) ⬇️
crates/symbolicator/src/services/symcaches.rs 93.98% <0.00%> (-0.38%) ⬇️
crates/symbolicator/src/services/cacher.rs 83.84% <0.00%> (+0.23%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 98fa527...5e60125. Read the comment docs.

}

RawObjectInfo {
ty,
// TODO: shouldn't this be None if code_id is empty?
Copy link
Contributor

Choose a reason for hiding this comment

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

calling this TODO out since I added this in, maybe I just missed something? maybe Some("") is meaningful here?

@relaxolotl
Copy link
Contributor

relaxolotl commented Feb 18, 2022

instead of writing a wall of text i went and just fixed the CI. turns out you don't need to do any of the additional processing of the debug id inherited from breakpad because debug ids from rust-debugid do all of that stuff for us by default already.

sorry if this feels like i stepped on your toes a little bit, just figured i'd just fix this up. i was really hoping i could actually update the rust-minidump branch to include the mac code identifier fixes and update this PR to accommodate as well, but permissions got in the way.

@relaxolotl relaxolotl force-pushed the rust-minidump/debugid branch from 5a4fda2 to 5e60125 Compare February 18, 2022 05:20
// TODO(ja): This is optional now, wasn't before, check why
debug_id: module.debug_identifier().map(|c| c.into_owned()),
debug_id: module.debug_identifier().map(|id| id.to_string()),
Copy link
Contributor

Choose a reason for hiding this comment

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

i think this is wrong because previously we were handling strings from breakpad while this does not use the breakpad formatting of DebugId.

@loewenheim loewenheim merged commit 1de4e32 into release/rust-minidump Feb 21, 2022
@loewenheim loewenheim deleted the rust-minidump/debugid branch February 21, 2022 10:10
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.

4 participants