Report system and process info at start of test run

RESOLVED FIXED in Firefox 58

Status

Testing
General
RESOLVED FIXED
13 days ago
11 days ago

People

(Reporter: gbrown, Assigned: gbrown)

Tracking

Trunk
mozilla58
Points:
---

Firefox Tracking Flags

(firefox58 fixed)

Details

Attachments

(1 attachment)

(Assignee)

Description

13 days ago
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.
great idea!
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.
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

12 days ago
Created attachment 8926167 [details] [diff] [review]
create system-info.log artifact for desktop unit tests

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 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+

Comment 6

12 days ago
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

Comment 7

12 days ago
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

Comment 8

11 days ago
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
https://hg.mozilla.org/mozilla-central/rev/e2f87726b608
Status: NEW → RESOLVED
Last Resolved: 11 days ago
status-firefox58: --- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
https://hg.mozilla.org/mozilla-central/rev/24468798c7a6
https://hg.mozilla.org/mozilla-central/rev/de981f056984
You need to log in before you can comment on or make changes to this bug.