Add environment variable for crash auto-submission (without the crash reporter open)
Categories
(Toolkit :: Crash Reporting, defect)
Tracking
()
People
(Reporter: whimboo, Unassigned)
References
()
Details
(Whiteboard: [qa-automation-wanted])
Reporter | ||
Comment 1•11 years ago
|
||
Mass-removing myself from cc; search for 12b9dfe4-ece3-40dc-8d23-60e179f64ac1 or any reasonable part thereof, to mass-delete these notifications (and sorry!)
Updated•2 years ago
|
Comment 3•8 months ago
|
||
Gabriele I think this is covered by MOZ_CRASHREPORTER_AUTO_SUBMIT
, unless I'm missing something?
Comment 4•8 months ago
|
||
Yes, it should be. Henrik, is this bug still relevant? As Alex mentioned in the previous comment, setting the MOZ_CRASHREPORTER_AUTO_SUBMIT
environment variable will make the crash report to not become visible, but submit the crash to Socorro automatically. This only applies to main process crashes.
Reporter | ||
Comment 5•8 months ago
|
||
I think that over time (I can't believe it's been 11 years since I filed this bug!), we concluded that we shouldn't automatically submit crash reports but rather process them locally. Auto-submitting would result in flooding Socorro with numerous crash reports that we don't need. Therefore, for automation purposes, automatic submission isn't necessary.
However, there might be instances when local crash analysis fails, and we need to request a crash report from a user. Currently, several steps are involved in obtaining the details of a report, or we need to request the minidump files for processing ourselves.
Does MOZ_CRASHREPORTER_AUTO_SUBMIT
override the other crash reporter-related environment variables and auto-submit even if the reporter is generally turned off? Probably not.
Comment 6•8 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+1] from comment #5)
I think that over time (I can't believe it's been 11 years since I filed this bug!), we concluded that we shouldn't automatically submit crash reports but rather process them locally. Auto-submitting would result in flooding Socorro with numerous crash reports that we don't need. Therefore, for automation purposes, automatic submission isn't necessary.
OK, I think the only issue we still have WRT to automation is bug 867571, that is, make it possible to search for crashes on Socorro (submitted by users) starting from crashes that are present in automation. Right now and until we fix bug 867571 the only way to do it is download the minidump & symbols from the failed task, run rust-minidump locally w/ symbols then manually search the resulting stack frames on Socorro (or run socorr-siggen's signature
command on the crash).
Does
MOZ_CRASHREPORTER_AUTO_SUBMIT
override the other crash reporter-related environment variables and auto-submit even if the reporter is generally turned off? Probably not.
No, it's a no-op if the crash reporter is disabled.
Reporter | ||
Comment 7•8 months ago
|
||
(In reply to Gabriele Svelto [:gsvelto] (PTO) from comment #6)
OK, I think the only issue we still have WRT to automation is bug 867571, that is, make it possible to search for crashes on Socorro (submitted by users) starting from crashes that are present in automation. Right now and until we fix bug 867571 the only way to do it is download the minidump & symbols from the failed task, run rust-minidump locally w/ symbols then manually search the resulting stack frames on Socorro (or run socorr-siggen's
signature
command on the crash).
Yes, that's what we currently do but directly when running the tasks in CI. So there is no need to download the minidump and symbols. As result we get the stack printed in the logs. IMO that's what we actually want for CI jobs? But where I could see it useful is for crashes that can be experienced by other users and to assist them to get reported correctly to Soccoro. So lets wait for bug 867571? Do we have to keep this bug open?
Btw. did we already replace the old minidump executable as used by mozcrash with the newer one written in Rust yet when running tests in CI? If not we potentially should file a bug?
Comment 8•7 months ago
|
||
(In reply to Henrik Skupin [:whimboo][⌚️UTC+2] from comment #7)
Yes, that's what we currently do but directly when running the tasks in CI. So there is no need to download the minidump and symbols. As result we get the stack printed in the logs. IMO that's what we actually want for CI jobs? But where I could see it useful is for crashes that can be experienced by other users and to assist them to get reported correctly to Soccoro. So lets wait for bug 867571? Do we have to keep this bug open?
No, I think we can close it.
Btw. did we already replace the old minidump executable as used by mozcrash with the newer one written in Rust yet when running tests in CI? If not we potentially should file a bug?
Yes! We've replaced the old one a while ago, so we're running the exact same tool on CI, socorro and locally.
Description
•