Closed
Bug 1415245
Opened 7 years ago
Closed 7 years ago
Report system and process info at start of test run
Categories
(Testing :: General, enhancement)
Testing
General
Tracking
(firefox58 fixed)
RESOLVED
FIXED
mozilla58
Tracking | Status | |
---|---|---|
firefox58 | --- | fixed |
People
(Reporter: gbrown, Assigned: gbrown)
References
Details
Attachments
(1 file)
2.65 KB,
patch
|
jmaher
:
review+
|
Details | Diff | Splinter Review |
See https://bugzilla.mozilla.org/show_bug.cgi?id=1397201#c88. It would be useful for debugging some test failures to have some idea of OS state -- when was it last rebooted, what processes are running, what network connections are active, etc. Let's use psutil to report a bunch of that, perhaps into a separate artifact.
Comment 1•7 years ago
|
||
great idea!
Comment 2•7 years ago
|
||
Please note that for bug 1397201 we seem to collect orphaned Firefox processes while mochitests are running. Not sure how mochitests are working, but they start Firefox a couple of times. So ideally for each start of Firefox such an output would be good to have. Or we ensure that all known firefox processes are getting killed.
Comment 3•7 years ago
|
||
we restart firefox for every manifest we run (which is per directory). so the harness should be able to print this out before launching the browser.
Assignee | ||
Comment 4•7 years ago
|
||
In https://treeherder.mozilla.org/#/jobs?repo=try&revision=f777ab96933582c58b8d37adb820dd291ddc6661, you can see the system-info.log artifact. This will be created for desktop unit tests -- everything run from desktop_unittest.py. I already have something similar in place for Android. This only addresses the issue of what state things are in when mozharness started running tests. I will follow-up in other bugs to check on whether firefox is dead after running tests and whether firefox is already alive at the start of tests.
Attachment #8926167 -
Flags: review?(jmaher)
Comment 5•7 years ago
|
||
Comment on attachment 8926167 [details] [diff] [review] create system-info.log artifact for desktop unit tests Review of attachment 8926167 [details] [diff] [review]: ----------------------------------------------------------------- thanks!
Attachment #8926167 -
Flags: review?(jmaher) → review+
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/de981f056984 Create system-info.log artifact for desktop unit tests; r=jmaher
Pushed by gbrown@mozilla.com: https://hg.mozilla.org/integration/mozilla-inbound/rev/24468798c7a6 Follow-up: work around intermittent psutil import error, on a CLOSED TREE
Pushed by archaeopteryx@coole-files.de: https://hg.mozilla.org/mozilla-central/rev/e2f87726b608 Follow-up: work around intermittent psutil import error, on a CLOSED TREE
Comment 9•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e2f87726b608
Status: NEW → RESOLVED
Closed: 7 years ago
status-firefox58:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
Comment 10•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/24468798c7a6
Comment 11•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/de981f056984
You need to log in
before you can comment on or make changes to this bug.
Description
•