Bug 1826413 - Add macOS code coverage build and test jobs. r=dandarnell

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

--HG--
extra : amend_source : ed65d915f10ed4005af9ac98bf4e2d90ed1782e7
This commit is contained in:
Rob Lemley 2023-08-23 18:39:44 -04:00
Родитель 6b847ea645
Коммит f082b2785a
5 изменённых файлов: 48 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,13 @@
. "$topsrcdir/comm/mail/config/mozconfigs/macosx64/nightly"
ac_add_options --enable-debug-symbols=-g1
ac_add_options --disable-sandbox
ac_add_options --disable-warnings-as-errors
ac_add_options --without-wasm-sandboxed-libraries
ac_add_options --enable-coverage
CLANG_LIB_DIR="$(cd $MOZ_FETCHES_DIR/clang/lib/clang/* && cd lib/darwin && pwd)"
export LDFLAGS="-coverage -L$CLANG_LIB_DIR"
export LIBS="-lclang_rt.profile_osx"
export RUSTFLAGS="-Ccodegen-units=1 -Zprofile -Cpanic=abort -Zpanic_abort_tests -Clink-dead-code -Coverflow-checks=off"
export RUSTDOCFLAGS="-Cpanic=abort"

Просмотреть файл

@ -286,3 +286,30 @@ macosx64-shippable/opt:
dest: aarch64/crashreporter-symbols
- artifact: target.jsshell.zip
dest: aarch64/jsshell
macosx64-ccov/opt:
description: "MacOS X x64 Cross-compile Code Coverage"
index:
job-name: macosx64-ccov-opt
treeherder:
platform: osx-cross-ccov/opt
symbol: B
tier: 2
worker:
max-run-time: 7200
env:
RUSTC_BOOTSTRAP: '1'
MOZ_AUTOMATION_PACKAGE_TESTS: "1"
run:
config:
- builds/taskcluster_base_thunderbird.py
- builds/releng_base_mac_64_cross_builds.py
custom-build-variant-cfg: code-coverage-opt
mozconfig-variant: code-coverage
run-on-projects: ['comm-central']
use-sccache: false
fetches:
toolchain:
- linux64-sccache
- macosx64-x64-libotr
- macosx64-sdk

Просмотреть файл

@ -149,6 +149,12 @@ macosx1015-64-shippable-qr/opt:
- mochitest-tests
- xpcshell-tests
macosx1015-64-ccov-qr/opt:
build-platform: macosx64-ccov/opt
test-sets:
- mochitest-tests
- xpcshell-tests
# macosx1100-64-shippable/opt:
# build-platform: macosx64-shippable/opt
# test-sets:

Просмотреть файл

@ -136,6 +136,7 @@ mochitest-thunderbird:
by-test-platform:
linux.*64-ccov.*/.*: 9000
linux.*64-tsan.*/opt: 9000
macosx.*64-ccov.*/.*: 10800
windows.*-ccov.*/.*: 10800
default: 3600
variants:

Просмотреть файл

@ -55,6 +55,7 @@ reference-jobs:
- macosx64-aarch64-compiler-rt-16
- macosx64-clang-16-raw
- macosx64-fix-stacks
- macosx64-grcov
- macosx64-minidump-stackwalk
- macosx64-node
- macosx64-sdk