Closed Bug 1898229 Opened 1 year ago Closed 1 year ago

Add CI test for background CPU usage on mobile

Categories

(Testing :: Raptor, task, P2)

task

Tracking

(firefox129 fixed)

RESOLVED FIXED
129 Branch
Tracking Status
firefox129 --- fixed

People

(Reporter: sparky, Assigned: sparky)

References

(Blocks 1 open bug)

Details

(Whiteboard: [fxp])

Attachments

(2 files)

This bug is for adding a test for background CPU usage on mobile for Firefox, and Chrome browsers.

:mleclair/:kaya, could either of you provide the scripts for this test and any additional info we might need for this?

Flags: needinfo?(mleclair)
Flags: needinfo?(kkaya)
Summary: Add test for background CPU usage on mobile → Add CI test for background CPU usage on mobile
Depends on: 1898256

:sparky,
I think we can utilize a multiple background processes to handle this task. One process will run the test, i.e. typing into the url bar, doing some regular surfing etc, and the other one collecting the process information.

The ps command has cpu, c, time, %cpu values which are:

    # cpu: processor being used
    # c: total %CPU used since start
    # time: CPU time consumed
    # %cpu: percentage of CPU time used

Here's some scripts that run tests and collect process info simultaneously.
https://drive.google.com/drive/folders/1f6tlKkf1NuLxnWQxfV2RoJTl4VhCQyz4?usp=sharing

Flags: needinfo?(kkaya)
Flags: needinfo?(mleclair)

This patch adds new fetch, and toolchain tasks for the xmlstarlet tool that will be used for Android performance tests.

Depends on D212628

Assignee: nobody → gmierz2
Status: NEW → ASSIGNED

This patch adds a new background CPU usage test that will run through mozperftest. The test starts the Fenix application, and then backgrounds it for 10 minutes to measure the CPU usage throughout that time. The hook is used to setup the xmlstarlet tool.

Depends on D212629

Attachment #9405610 - Attachment description: Bug 1898229 - Add background CPU usage tests for Fenix in CI. r?#perftest → Bug 1898229 - Add background resource usage tests for Fenix in CI. r?#perftest
Attachment #9405610 - Attachment description: Bug 1898229 - Add background resource usage tests for Fenix in CI. r?#perftest → Bug 1898229 - Add background CPU usage tests for Fenix in CI. r?#perftest
Attachment #9405610 - Attachment description: Bug 1898229 - Add background CPU usage tests for Fenix in CI. r?#perftest → Bug 1898229 - Add background resource usage tests for Fenix in CI. r?#perftest
Pushed by gmierz2@outlook.com: https://hg.mozilla.org/integration/autoland/rev/09719ffa83b4 Add a toolchain for xmlstarlet tool. r=perftest-reviewers,kshampur https://hg.mozilla.org/integration/autoland/rev/ecf3711dfacb Add background resource usage tests for Fenix in CI. r=perftest-reviewers,aglavic
Duplicate of this bug: 1898230
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 129 Branch
See Also: → 1885629
See Also: → 1906949
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: