Save minidump files if MINIDUMP_SAVE_PATH is set to preserve crash dumps
Categories
(Testing :: geckodriver, enhancement, P2)
Tracking
(firefox120 fixed)
Tracking | Status | |
---|---|---|
firefox120 | --- | fixed |
People
(Reporter: whimboo, Assigned: whimboo)
References
(Blocks 1 open bug)
Details
(Whiteboard: [webdriver:m9])
Attachments
(1 file, 9 obsolete files)
Updated•7 years ago
|
Comment hidden (mozreview-request) |
Comment 2•7 years ago
|
||
mozreview-review |
Assignee | ||
Comment 3•7 years ago
|
||
mozreview-review-reply |
Comment 4•7 years ago
|
||
Updated•7 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 5•6 years ago
|
||
Assignee | ||
Comment 6•6 years ago
|
||
Comment 7•6 years ago
|
||
Updated•6 years ago
|
Updated•6 years ago
|
Assignee | ||
Comment 8•6 years ago
|
||
Assignee | ||
Comment 9•6 years ago
|
||
Moving to the 0.25 release of geckodriver for which we might be able to get it fixed.
Comment 10•5 years ago
|
||
Updated•5 years ago
|
Comment 11•5 years ago
|
||
Depends on D62087
Comment 12•5 years ago
|
||
Depends on D62088
Comment 13•5 years ago
|
||
Depends on D62089
Comment 14•5 years ago
|
||
Part 2a was what I took from an existing ticket -- perhaps it was from
ato? Here are my changes.
Depends on D62092
Comment 15•5 years ago
|
||
Depends on D62095
Comment 16•5 years ago
|
||
This is just some noodling on how to write automated tests for this
stuff. Browsertime can run fairly arbitrary Node.js scripts to drive
the browser; my hope was to navigate to about:crash{content,parent}
and teach the harness about expected crashes, etc. That doesn't work
100% smoothly 'cuz loading about: pages isn't 100% solid in
Browsertime (maybe better now), so I use privileged JS to do it. This
patch mostly captures that.
The changes to Raptor to accommodate this type of testing... those are painful.
Depends on D62096
Assignee | ||
Comment 17•5 years ago
|
||
Nick, do you expect me to pick-up the remaining work, or do you have the time to address review comments? Note that not all the patches seem to be geckodriver only. I can see a couple which are eg Raptor related, and which should not end-up on this bug.
Comment 18•5 years ago
|
||
(In reply to Henrik Skupin (:whimboo) [⌚️UTC+1] from comment #17)
Nick, do you expect me to pick-up the remaining work, or do you have the time to address review comments? Note that not all the patches seem to be geckodriver only. I can see a couple which are eg Raptor related, and which should not end-up on this bug.
Yeah, I realized that the bug number was incorrect -- see https://bugzilla.mozilla.org/show_bug.cgi?id=1585036#c9. As for what I can do, see https://bugzilla.mozilla.org/show_bug.cgi?id=1585036#c8 -- I could definitely push the adb
pieces across the line, and potentially the geckodriver
pieces if you're mostly happy with them. If you want major changes to the geckodriver
bits, I'll need others (you!) to pick them up. Let me know?
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 19•5 years ago
|
||
I will keep the needinfo for me to follow-up on Alexander's patches.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 20•3 years ago
|
||
I don't see why bug 1430064 should actually block this bug from getting fixed. Removing it from the dependency list.
Assignee | ||
Comment 21•3 years ago
|
||
Sadly we have to move this bug to the next 0.32.0 release.
Assignee | ||
Updated•2 years ago
|
Updated•2 years ago
|
Updated•2 years ago
|
Assignee | ||
Comment 22•1 year ago
|
||
I had another quick look at this bug and here are some updates:
-
If the user has the
MINIDUMP_SAVE_PATH
environment variable set when starting geckodriver it will automatically be forwarded to Firefox and Firefox itself will place the.dmp
and.extra
file into the given folder. There is no actual copying necessary by geckodriver. -
The automatic copying will not take place for Firefox on Android. Here we would have to set it to a specific folder that we can then use as source for the copy operation as done by mozdevice. Good thing is that we can do that also after the profile has been removed.
-
We could consider to add an extra argument to geckodriver like
--minidump-path
which then would override the environment variable and allows a more visible usage of this feature.
Step 3 shouldn't be too much work, and step 2 is probably easy as well. With that change we could then attach minidump files as artifacts to the Treeherder wdspec jobs.
Lets discuss in the next triage meeting.
Assignee | ||
Comment 23•1 year ago
|
||
As we discussed we are fine with just the environment variable. That way minidump files will be saved off to the proper location on disk. To include these as artifacts to the wdspec job, we will have to update the mozharness script to appropriately.
We should also update https://firefox-source-docs.mozilla.org/testing/geckodriver/CrashReports.html so that it also makes use of this environment variable.
For Android support which can be follow-up work I filed bug 1859377.
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 24•1 year ago
|
||
Actually I just had a look at the mozharness script for web-platform tests and it actually uses the MINIDUMP_SAVE_PATH
environment variable and also successfully forwards it to geckodriver and Firefox. As it can be seen for this wdspec test job the minidump files are correctly uploaded as artifacts.
That means we only need to update the documentation here to allow users to grab and share minidump files.
Assignee | ||
Comment 25•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Updated•1 year ago
|
Comment 26•1 year ago
|
||
Comment 27•1 year ago
|
||
bugherder |
Assignee | ||
Updated•9 months ago
|
Description
•