Bug 1543212 - Create a PGO-optimized android-aarch64 build; r=firefox-build-system-reviewers,chmanchester

Differential Revision: https://phabricator.services.mozilla.com/D29588

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Mike Shal 2019-05-02 21:36:46 +00:00
parent ddc52541f4
commit 3e32d74d22
4 changed files with 71 additions and 0 deletions

View File

@ -0,0 +1,10 @@
. "$topsrcdir/mobile/android/config/mozconfigs/android-aarch64/nightly"
export LLVM_PROFDATA="$topsrcdir/clang/bin/llvm-profdata"
ac_add_options --enable-profile-use
# This is disabled because jarlog re-ordering breaks apk publishing tasks,
# see bug 1539933.
# ac_add_options --with-pgo-jarlog=/builds/worker/fetches/en-US.log
ac_add_options --with-pgo-profile-path=/builds/worker/fetches/default.profraw

View File

@ -497,6 +497,61 @@ android-aarch64/opt:
- linux64-nasm
- linux64-node
android-aarch64/pgo:
description: "Android 5.0 AArch64 PGO"
use-pgo: android-api-16/pgo
index:
product: mobile
job-name: android-aarch64-pgo
attributes:
enable-full-crashsymbols: true
treeherder:
platform: android-5-0-aarch64/pgo
symbol: Bpgo(B)
worker-type: b-linux
worker:
docker-image: {in-tree: android-build}
max-run-time: 7200
env:
GRADLE_USER_HOME: "/builds/worker/workspace/build/src/mobile/android/gradle/dotgradle-offline"
TOOLTOOL_MANIFEST: "mobile/android/config/tooltool-manifests/android/releng.manifest"
artifacts:
- name: public/android/maven
# TODO Bug 1433198. Remove the following entry once target.maven.zip is uploaded to a maven repository
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/maven/
type: directory
- name: public/build/target.maven.zip
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/target.maven.zip
type: file
- name: public/build/geckoview-androidTest.apk
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/outputs/apk/androidTest/withGeckoBinaries/debug/geckoview-withGeckoBinaries-debug-androidTest.apk
type: file
- name: public/build/geckoview_example.apk
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview_example/outputs/apk/withGeckoBinaries/debug/geckoview_example-withGeckoBinaries-debug.apk
type: file
- name: public/build
path: /builds/worker/artifacts/
type: directory
run:
using: mozharness
actions: [get-secrets, build]
config:
- builds/releng_base_android_64_builds.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: aarch64-pgo
tooltool-downloads: internal
toolchains:
- android-gradle-dependencies
- android-ndk-linux
- android-sdk-linux
- linux64-clang
- linux64-rust-android
- linux64-rust-size
- linux64-cbindgen
- linux64-nasm
- linux64-node
android-aarch64/debug:
description: "Android 5.0 AArch64 Debug"
index:

View File

@ -0,0 +1,5 @@
config = {
'stage_platform': 'android-aarch64-pgo',
'src_mozconfig': 'mobile/android/config/mozconfigs/android-aarch64/profile-use',
'multi_locale_config_platform': 'android',
}

View File

@ -378,6 +378,7 @@ class BuildOptionParser(object):
'aarch64': 'builds/releng_sub_%s_configs/%s_aarch64.py',
'aarch64-beta': 'builds/releng_sub_%s_configs/%s_aarch64_beta.py',
'aarch64-beta-debug': 'builds/releng_sub_%s_configs/%s_aarch64_beta_debug.py',
'aarch64-pgo': 'builds/releng_sub_%s_configs/%s_aarch64_pgo.py',
'aarch64-debug': 'builds/releng_sub_%s_configs/%s_aarch64_debug.py',
'android-test': 'builds/releng_sub_%s_configs/%s_test.py',
'android-test-ccov': 'builds/releng_sub_%s_configs/%s_test_ccov.py',