Closed Bug 1848419 Opened 11 months ago Closed 9 months ago

Add toolchain for building custom Chromium-as-release for Android

Categories

(Testing :: Performance, task, P1)

Default
task

Tracking

(firefox121 fixed)

RESOLVED FIXED
121 Branch
Tracking Status
firefox121 --- fixed

People

(Reporter: kshampur, Assigned: kshampur)

References

Details

(Whiteboard: [fxp])

Attachments

(5 files)

the instructions provided by google here https://chromium.googlesource.com/chromium/src/+/main/docs/android_build_instructions.md

Example attempt at building the APK using https://treeherder.mozilla.org/jobs?repo=try&revision=17bd735e3c670a1214040c821b7134491a86f7ef

I was a bit confused/concerned about the PGO as unlike the desktop platform the format retrieved was different and I was required to use llvm-profdata. Why is/was this the case? maybe it's not a big deal. In general I also didn't really find much informatoin regarding their android PGO builds (but this was a cursory skim, i might find a clearer answer if i were to dig into the depot_tools src code)

Summary: Add toolchain for building custom Chromium-as-release for Apple silicon → Add toolchain for building custom Chromium-as-release for Android

passing build Try link https://treeherder.mozilla.org/jobs?repo=try&revision=17bd735e3c670a1214040c821b7134491a86f7ef
(old, so artifacts have expired)
artifact was about ~90mb

Assignee: nobody → kshampur
Status: NEW → ASSIGNED
Priority: P3 → P1
Depends on: 1855473

interesting looks like up until recently mac-arm pgo profiles were used for android pgo according to this

which might explain what i found a couple months ago (mentioned in comment 0 here) where I had to use llvm to merge the ARM profiles myself? (or it's possible I could have used the mac-arm back then too, was not aware that was being done)

recent comment suggests android profiles might be ready to go. Got a try run here with these new android profiles https://treeherder.mozilla.org/jobs?repo=try&revision=c95e5915d5ac5a6e0b9e43b2c007617437c13ddd&selectedTaskRun=EY66YFmHQ62EUCvAydzZKw.0

making note that I will have to add a fetch for https://download-chromium.appspot.com/?platform=Android_Arm64&type=snapshots so that we can actually run performance tests with the apk

nevermind, we use a linux host so we should be using the linux driver

This patch extends raptor to support running performance tests on chromium-as-release
for android (custom-car-m).
At the moment we will only run on priority benchmark tests (e.g. speedometer)

Depends on D189604

passing try run ! https://treeherder.mozilla.org/jobs?repo=try&tier=1%2C2%2C3&revision=e63f2367a1c5959c4a077c54651b8e056674ff09
(i will remove the amazon test in the actual patch)

results arent being parsed. I will have to change the performance schema on the treeherder side for that

PR made on treeherder side performance artifact json https://github.com/mozilla/treeherder/pull/7841

Attachment #9355734 - Attachment description: WIP: Bug 1848419 - Add a toolchain for building CaR for Android arm64. r?#perftest → Bug 1848419 - Add a toolchain for building CaR for Android arm64. r?#perftest
Attachment #9357624 - Attachment description: WIP: Bug 1848419 - Run custom chromium-as-release performance tests on android. r?#perftest → Bug 1848419 - Run custom chromium-as-release performance tests on android. r?#perftest

This patch adds support for custom-car android builds to be useable in performance testing.
Since android tests are run on a linux host, we make use of the existing chromium linux chromedriver fetch.

Depends on D189604

This makes available Android CaR builds through mach try perf selector.
It is set up similar to the chrome-m application and becomes available for
selection when passing the --android and --custom-car flags.

Depends on D190579

I will queue this for landing on Monday

Pushed by kshampur@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/48e3cbffbf9f
Add a toolchain for building CaR for Android arm64. r=perftest-reviewers,sparky
https://hg.mozilla.org/integration/autoland/rev/0e0a60ab85f9
Make custom-car android available in CI selection. r=perftest-reviewers,taskgraph-reviewers,AlexandruIonescu,bhearsum
https://hg.mozilla.org/integration/autoland/rev/9a325af6feb4
Run custom chromium-as-release performance tests on android. r=perftest-reviewers,aglavic
https://hg.mozilla.org/integration/autoland/rev/57ab54933fbb
Add CaR android to mach try perf. r=perftest-reviewers,AlexandruIonescu
https://hg.mozilla.org/integration/autoland/rev/02eefc6ff7a4
Add android CaR to daily m-c cron. r=perftest-reviewers,taskgraph-reviewers,bhearsum,sparky
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: