Bug 1865886. Add aarch64 profile generation jobs on x86_64 emulator. r=glandium

The new emulator version supports running aarch64 binaries on x86_64

Differential Revision: https://phabricator.services.mozilla.com/D199257
This commit is contained in:
Jeff Muizelaar 2024-01-29 15:04:16 +00:00
parent 8969c65a42
commit d0fc5bb148
2 changed files with 85 additions and 0 deletions

View File

@ -166,6 +166,46 @@ jobs:
- android-system-image-x86_64-linux
- android-avd-x86_64-linux
android-aarch64-shippable/opt:
description: "Android 5.0 Aarch64 Profile Generation"
shipping-phase: build
shipping-product: fennec
index:
product: mobile
job-name: android-aarch64-profile
treeherder:
platform: android-5-0-aarch64/pgo
worker-type: b-linux-kvm-gcp
worker:
chain-of-trust: true
max-run-time: 2700
kvm: true # for access to /dev/kvm for hw accel in the emulator
docker-image: {in-tree: ubuntu1804-test}
env:
WORKING_DIR: "/builds/worker"
MOZHARNESS_PATH: "/builds/worker/checkouts/gecko/testing/mozharness"
artifacts:
- type: directory
name: public/build
path: /builds/worker/artifacts/
run:
using: mozharness
job-script: taskcluster/scripts/tester/test-linux.sh
script: android_emulator_pgo.py
tooltool-downloads: internal
options: [installer-path=/builds/worker/fetches/geckoview-test_runner.apk]
config:
- android/android_common.py
- android/android-aarch64-profile-generation.py
- android/android_pgo.py
fetches:
toolchain:
- linux64-clang
- linux64-minidump-stackwalk
- android-sdk-linux
- android31-system-image-x86_64-linux
- android31-avd-x86_64-linux
win32-shippable/opt:
description: "Win32 Profile Generation"
shipping-phase: build

View File

@ -0,0 +1,45 @@
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
# mozharness configuration for Android x86/x86_64 7.0 unit tests
#
# This configuration should be combined with suite definitions and other
# mozharness configuration from android_common.py, or similar.
config = {
"emulator_avd_name": "mozemulator-android31-x86_64",
"emulator_process_name": "qemu-system-x86_64",
"emulator_extra_args": [
"-gpu",
"on",
"-skip-adb-auth",
"-verbose",
"-show-kernel",
"-ranchu",
"-selinux",
"permissive",
"-memory",
"4096",
"-cores",
"4",
"-skin",
"800x1280",
"-no-snapstorage",
"-no-snapshot",
# Disables first-run dialogs
"-prop",
"ro.test_harness=true",
],
"exes": {
"adb": "%(abs_sdk_dir)s/platform-tools/adb",
},
"env": {
"DISPLAY": ":0.0",
"PATH": "%(PATH)s:%(abs_sdk_dir)s/emulator:%(abs_sdk_dir)s/tools:%(abs_sdk_dir)s/tools/bin:%(abs_sdk_dir)s/platform-tools",
# "LIBGL_DEBUG": "verbose"
},
"bogomips_minimum": 3000,
"android_version": 24,
"is_emulator": True,
}