Bug 1475573 - Create --enable-fuzzing debug build job for Android x86 firefox. r=nalexander,froydnj

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Jesse Schwartzentruber 2018-08-31 03:35:20 +00:00
parent c72e4554a1
commit f832b4022e
4 changed files with 57 additions and 4 deletions

View File

@ -431,9 +431,10 @@ with only_when('--enable-compile-environment'):
@depends(enable_fuzzing,
enable_aflfuzzer,
c_compiler)
def enable_libfuzzer(fuzzing, afl, c_compiler):
if fuzzing and not afl and c_compiler.type == 'clang':
c_compiler,
target)
def enable_libfuzzer(fuzzing, afl, c_compiler, target):
if fuzzing and not afl and c_compiler.type == 'clang' and target.os != 'Android':
return True
@depends(enable_fuzzing,

View File

@ -170,6 +170,57 @@ android-x86/opt:
- linux64-sccache
- linux64-node
android-x86-fuzzing/debug:
description: "Android x86 Fuzzing Debug"
index:
product: mobile
job-name: android-x86-fuzzing-debug
treeherder:
platform: android-4-2-x86/debug
symbol: Bf
worker-type: aws-provisioner-v1/gecko-{level}-b-android
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-x86/releng.manifest"
artifacts:
- name: public/android/R
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/app/R
type: directory
- name: public/android/maven
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/maven/
type: directory
- name: public/build/geckoview-androidTest.apk
path: /builds/worker/workspace/build/src/obj-firefox/gradle/build/mobile/android/geckoview/outputs/apk/androidTest/officialWithGeckoBinariesNoMinApi/debug/geckoview-official-withGeckoBinaries-noMinApi-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/officialWithGeckoBinariesNoMinApi/debug/geckoview_example-official-withGeckoBinaries-noMinApi-debug.apk
type: file
- name: public/build
path: /builds/worker/artifacts/
type: directory
run:
using: mozharness
actions: [get-secrets build multi-l10n update]
config:
- builds/releng_base_android_64_builds.py
script: "mozharness/scripts/fx_desktop_build.py"
secrets: true
custom-build-variant-cfg: x86-fuzzing-debug
tooltool-downloads: internal
toolchains:
- android-gradle-dependencies
- android-ndk-linux
- android-sdk-linux
- linux64-clang
- linux64-rust-android
- linux64-rust-size
- linux64-cbindgen
- linux64-sccache
- linux64-node
android-x86-nightly/opt:
description: "Android 4.2 x86 Nightly"
attributes:

View File

@ -436,6 +436,7 @@ class BuildOptionParser(object):
'rusttests-debug': 'builds/releng_sub_%s_configs/%s_rusttests_debug.py',
'x86': 'builds/releng_sub_%s_configs/%s_x86.py',
'x86-artifact': 'builds/releng_sub_%s_configs/%s_x86_artifact.py',
'x86-fuzzing-debug': 'builds/releng_sub_%s_configs/%s_x86_fuzzing_debug.py',
'api-16-partner-sample1': 'builds/releng_sub_%s_configs/%s_api_16_partner_sample1.py',
'aarch64': 'builds/releng_sub_%s_configs/%s_aarch64.py',
'android-test': 'builds/releng_sub_%s_configs/%s_test.py',

View File

@ -363,7 +363,7 @@ Faulty::MaybeCollectAndClosePipe(int aPipe, unsigned int aProbability)
}
if (aPipe > -1) {
FAULTY_LOG("Collecting pipe %d to bucket of pipes (count: %ld)",
FAULTY_LOG("Collecting pipe %d to bucket of pipes (count: %zu)",
aPipe, mFds.size());
mFds.insert(aPipe);
}