Closed Bug 1240059 Opened 10 years ago Closed 10 years ago

Report resource usage data even if psutil is unavailable

Categories

(Firefox Build System :: General, defect)

defect
Not set
normal

Tracking

(firefox47 fixed)

RESOLVED FIXED
mozilla47
Tracking Status
firefox47 --- fixed

People

(Reporter: dminor, Assigned: chmanchester)

References

Details

Attachments

(1 file)

There's no guarantee that psutil will be available on Windows. We should still report the system information derivable from the platform module along with build duration so we have some data available for Windows builds which lack psutil.
Assignee: nobody → cmanchester
Assuming psutil is available is also a problem when imports run before the virtualenv is bootstrapped, which is the case for clobbers in automation (many central and try builds), so we're missing data for many of those builds.
Attachment #8715929 - Flags: review?(gps) → review+
Comment on attachment 8715929 [details] MozReview Request: Bug 1240059 - Treat psutil as optional in record_resource_usage. r=gps https://reviewboard.mozilla.org/r/33655/#review30337
(In reply to Chris Manchester [:chmanchester] from comment #1) > Assuming psutil is available is also a problem when imports run before the > virtualenv is bootstrapped, which is the case for clobbers in automation > (many central and try builds), so we're missing data for many of those > builds. I noticed this the other day when I tried to run `mach resource-usage` after a local clobber build on Windows. It would be nice to figure out a way to fix that.
(In reply to Ted Mielczarek [:ted.mielczarek] from comment #4) > (In reply to Chris Manchester [:chmanchester] from comment #1) > > Assuming psutil is available is also a problem when imports run before the > > virtualenv is bootstrapped, which is the case for clobbers in automation > > (many central and try builds), so we're missing data for many of those > > builds. > > I noticed this the other day when I tried to run `mach resource-usage` after > a local clobber build on Windows. It would be nice to figure out a way to > fix that. This patch may help if that was in the last few weeks.
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla47
Product: Core → Firefox Build System
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: