Closed
Bug 1339458
Opened 9 years ago
Closed 9 years ago
Ensure tests run with RUST_BACKTRACE=1 in the environment
Categories
(Testing :: General, defect)
Testing
General
Tracking
(firefox54 fixed)
RESOLVED
FIXED
mozilla54
Tracking | Status | |
---|---|---|
firefox54 | --- | fixed |
People
(Reporter: kats, Assigned: kats)
References
Details
Attachments
(1 file)
Now that we're getting more rust code in Firefox and running in automated tests, we should try to ensure that RUST_BACKTRACE=1 is set in all of our testing environments, because this can help debug crashes from rust panics. It certainly doesn't hurt to have the backtrace, and is more useful than a message saying "set RUST_BACKTRACE=1 to get a backtrace" :)
Comment hidden (mozreview-request) |
Assignee | ||
Updated•9 years ago
|
Assignee: nobody → bugmail
Comment 2•9 years ago
|
||
mozreview-review |
Comment on attachment 8837172 [details]
Bug 1339458 - Set RUST_BACKTRACE=1 when running automated tests.
https://reviewboard.mozilla.org/r/112390/#review113760
this is a nice simple patch, happy to re-review if you determine talos and android could use the same changes.
::: testing/mozharness/scripts/desktop_unittest.py:700
(Diff revision 1)
> env['MINIDUMP_STACKWALK'] = self.minidump_stackwalk_path
> if self.query_nodejs():
> env['MOZ_NODE_PATH'] = self.nodejs_path
> env['MOZ_UPLOAD_DIR'] = self.query_abs_dirs()['abs_blob_upload_dir']
> env['MINIDUMP_SAVE_PATH'] = self.query_abs_dirs()['abs_blob_upload_dir']
> + env['RUST_BACKTRACE'] = '1'
do we need to do this for android as well? What about talos?
Attachment #8837172 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 3•9 years ago
|
||
(In reply to Joel Maher ( :jmaher) from comment #2)
>
> do we need to do this for android as well? What about talos?
Yeah we should probably do it for those as well. Where should I put it for those? I did some more grepping and found additional spots to add this in android_emulator_unittest.py, marionette.py, and web_platform_tests.py. Any other places I'm missing?
Comment 4•9 years ago
|
||
In addition to what you found, I believe we also need:
firefox_media_tests_taskcluster.py
firefox_ui_tests/functional.py
talos_script.py
Comment hidden (mozreview-request) |
Assignee | ||
Comment 6•9 years ago
|
||
Updated review request to catch them all! (cue pokemon music)
Assignee | ||
Comment 7•9 years ago
|
||
Comment on attachment 8837172 [details]
Bug 1339458 - Set RUST_BACKTRACE=1 when running automated tests.
I don't know how to trigger a re-review from MozReview so I'm just setting the flag in bugzilla. :/
Attachment #8837172 -
Flags: review+ → review?(jmaher)
Comment 8•9 years ago
|
||
mozreview-review |
Comment on attachment 8837172 [details]
Bug 1339458 - Set RUST_BACKTRACE=1 when running automated tests.
https://reviewboard.mozilla.org/r/112390/#review113786
r+ again!
Attachment #8837172 -
Flags: review?(jmaher) → review+
Assignee | ||
Comment 9•9 years ago
|
||
Thanks :)
Comment 10•9 years ago
|
||
Pushed by kgupta@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5d74575ffa14
Set RUST_BACKTRACE=1 when running automated tests. r=jmaher
Comment 11•9 years ago
|
||
bugherder |
Status: NEW → RESOLVED
Closed: 9 years ago
status-firefox54:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla54
You need to log in
before you can comment on or make changes to this bug.
Description
•