Closed Bug 1799913 Opened 3 years ago Closed 2 years ago

Remove parameters from crash signatures in bug summaries

Categories

(bugzilla.mozilla.org :: General, task)

Tracking

()

RESOLVED FIXED

People

(Reporter: gbrown, Assigned: dkl)

References

Details

Attachments

(1 file)

https://phabricator.services.mozilla.com/D161483 changes the crash signature reported in automated tests such that parameters are no longer included. Instead of

PROCESS-CRASH | gtest | application crashed [@ SpanTest_from_nullptr_constructor_Test::TestBody()]

now we'll report

PROCESS-CRASH | gtest | application crashed [@ SpanTest_from_nullptr_constructor_Test::TestBody]

We are concerned that will make it more difficult to match up new test crashes with existing bugs, so want to update bug summaries to match the new signature format.

For example, bug 1790704,

Intermittent browser/components/newtab/test/browser/browser_newtab_ping.js | application crashed [@ MOZ_Crash(char const*, int, char const*)]

becomes

Intermittent browser/components/newtab/test/browser/browser_newtab_ping.js | application crashed [@ MOZ_Crash]

@aryx suggested using something like https://github.com/mozilla-bteam/bmo/blob/5924eec6eeb1d59ff8e1db6f078b24f3871833ad/scripts/update-crash-signatures.pl

Blocks: 1731355

Note to self:

                                # Strip parameters from signature
                                pmatch = re.search(r"(.*)\(.*\)", func)
                                if pmatch:
                                    func = pmatch.group(1)
Assignee: nobody → dkl
Status: NEW → ASSIGNED

Just to be clear, we want the summaries update AND the text in the crash signature field, or just the summaries? For bug 1790704, the summary both contain [@ MOZ_Crash(char const*, int, char const*)].

Flags: needinfo?(gbrown)

I was thinking just the summaries. Probably the crash signature field also is a good idea. Hopefully :aryx can say more definitively.

Flags: needinfo?(gbrown) → needinfo?(aryx.bugmail)

Both. Summary gets used by Treeherder for failure line matching, crash-stats uses the summary field.

Flags: needinfo?(aryx.bugmail)

Given my current workload trying to get my H2 goals completed and the impending holiday schedule, is this something that can wait til the first of the year? How critical is this to be done now?

Flags: needinfo?(gbrown)

It's not critical - pursue when you can.

Flags: needinfo?(gbrown)

Hi :dkl. Will you be able to get back to this? While there is no hard completion date requirement, I think there is value in making this change; I don't want it to be forgotten.

Flags: needinfo?(dkl)

Merged. Should be able to run the migration script today or tomorrow.
https://github.com/mozilla-bteam/bmo/commit/be996be30cd92c1ff52d963de4fd9f8e4407be52

Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Flags: needinfo?(dkl)
Resolution: --- → FIXED

Script has been ran without issue. Please let me know if you see anything wrong or need any further changes.

You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: