Closed Bug 1553335 Opened 5 years ago Closed 5 years ago

Add and run Android-OS baseline power-usage measurement test, in CI

Categories

(Testing :: Raptor, task, P1)

Version 3
task

Tracking

(firefox69 fixed)

RESOLVED FIXED
mozilla69
Tracking Status
firefox69 --- fixed

People

(Reporter: stephend, Assigned: sparky)

References

Details

Attachments

(1 file)

After synching up with both Dave and Greg, we conferred we still need and want an OS-baseline-measurement test, which will run periodically in CI.

Greg can provide additional, fine-grained detail, since he's graciously looking into this.

The plan is to collect power usage data for 1 minute before raptor starts the tests (and before it starts the browser). The original plan was to subtract the OS baseline data from the test data but this won't work since the test data is already app-specific. Instead, we will need to submit the OS baseline results alongside the perfherder data (merged).

This patch adds an Android OS baseline test which runs before all tests when '--power-test' is supplied. The data is then added to the test's PERFHERDER_DATA blob as power data that is suffixed with '-baseline'.

Here's a try run for this patch: https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=d81ff5f312599d029b9389b7ccd42df3d6c1d7c9

Note that perfherder adds all the data together (including the baseline data) so we get an artificial increase in the power usage. :rwood, is it possible to submit two PERFHERDER_DATA entries to perfherder from one test?

Flags: needinfo?(rwood)

(In reply to Greg Mierzwinski [:sparky] from comment #3)

Here's a try run for this patch: https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=d81ff5f312599d029b9389b7ccd42df3d6c1d7c9

Note that perfherder adds all the data together (including the baseline data) so we get an artificial increase in the power usage. :rwood, is it possible to submit two PERFHERDER_DATA entries to perfherder from one test?

Yes you can submit multiple PERFHERDER_DATA json blobs in any test run. Raptor can already do that i.e. submit one blob for the power info and another blob for the actual test results i.e. if running speedometer-power; however currently we have that turned off and just submitting power data as that was the initial decision.

Flags: needinfo?(rwood)
Attachment #9068876 - Attachment description: Bug 1553335 - Run Android OS baseline test before all power tests. r?#perftest → Bug 1553335 - Run Android OS baseline test before all power tests. r?#perftest,bc
Attachment #9068876 - Attachment description: Bug 1553335 - Run Android OS baseline test before all power tests. r?#perftest,bc → Bug 1553335 - Run Android OS baseline test before all power tests. r?#perftest

Is this actively being worked on? Looks like it's been idle for 20 days - setting to P2 until it is active again, thanks.

Priority: P1 → P2
Priority: P2 → P1

Last patch failed, good one is here (phab was updated as well): https://treeherder.mozilla.org/#/jobs?repo=try&revision=9b5709745a046bc634e52dff73c825c14f38dc07

Try run for the latest patch (integrated re fixes, and removed the "multiple by 20" step): https://treeherder.mozilla.org/#/jobs?repo=try&tier=1%2C2%2C3&revision=dcd0588c26b26de71984f6b3e93320d4b3b6889e

Pushed by gmierz2@outlook.com:
https://hg.mozilla.org/integration/autoland/rev/45d6004b3194
Run Android OS baseline test before all power tests. r=perftest-reviewers,rwood
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69
Blocks: 1563800
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: