Closed Bug 1882338 Opened 1 year ago Closed 2 months ago

Save minidump files if MINIDUMP_SAVE_PATH is set to preserve crash dumps

Categories

(Testing :: geckodriver, enhancement, P2)

enhancement
Points:
2

Tracking

(firefox135 fixed)

RESOLVED FIXED
135 Branch
Tracking Status
firefox135 --- fixed

People

(Reporter: whimboo, Assigned: Sasha)

References

(Depends on 1 open bug, Blocks 4 open bugs)

Details

(Whiteboard: [webdriver:m14], [wptsync upstream])

Attachments

(2 files)

This is a follow-up from bug 1433495, which actually did not fix the issue.

There is a MINIDUMP_SAVE_PATH environment variable, which can be used with mozcrash to store the created minidump files by the crash reporter into a given folder instead of the Firefox profile. When I was testing the feature I was using wdspec tests, and wptrunner internally uses mozcrash. :/ So it was not visible that just setting the environment variable does nothing.

We could use the same environment variable and / or also add a command line argument to geckodriver to set this path, and if present move the minidump files accordingly.

(In reply to Gabriele Svelto [:gsvelto] from bug 1585036 comment #30)

(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #28)

Gabriele, would it be possible to instruct the crash reporter (maybe via such an environment variable) to not use the default minidump folder? I'm happy to file a bug if wanted and possible.

If you can access JS we already have the minidumpPath property which can be used to set the path where minidumps are written. See how we do it for xpcshell tests.

There is even a way to directly set the path where minidump files can be stored. That makes it even much easier to grab those files.

Blocks: 1489130, 1848850
No longer blocks: 1880257

I'll file a separate bug for Marionette, which we have to get fixed first.

Points: --- → 2
Priority: -- → P2
Whiteboard: [webdriver:backlog]
Depends on: 1884695

Please note that bug 1884695 won't be fixed in the near future. As such we should implement the minidump handling similar to mozcrash, by checking the minidump folder of the Firefox profile for existing files and copying all of them to the given folder.

Blocks: 1871543

Actually for the 0.35.0 release we already have bug 1875773 landed which added the --enable-crash-reporter argument to automatically submit the crash report. This is most likely enough for the upcoming release and we can try to offer a better experience in the 0.36.0 release.

Blocks: 1910592
No longer blocks: 1871543
See Also: → 1875773
Whiteboard: [webdriver:backlog] → [webdriver:m13]
See Also: → 1930115
Whiteboard: [webdriver:m13] → [webdriver:m14]
Assignee: nobody → aborovova
Status: NEW → ASSIGNED
Blocks: 1934805
Attachment #9440396 - Attachment description: Bug 1882338 - Save minidump files if MINIDUMP_SAVE_PATH is set to preserve crash dumps. → Bug 1882338 - [geckodriver] Save minidump files if MINIDUMP_SAVE_PATH is set to preserve crash dumps.
Pushed by aborovova@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f7fcc37be80e [geckodriver] Save minidump files if MINIDUMP_SAVE_PATH is set to preserve crash dumps. r=webdriver-reviewers,jgraham,whimboo https://hg.mozilla.org/integration/autoland/rev/0d66f48f5e43 [mozcrash] Copy minidumps files instead of moving to avoid failures in case files already exist. r=webdriver-reviewers,whimboo,jmaher
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/49679 for changes under testing/web-platform/tests
Whiteboard: [webdriver:m14] → [webdriver:m14], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 135 Branch
Upstream PR was closed without merging
Upstream PR merged by moz-wptsync-bot
Blocks: 1938150
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: