Bug 1697489: Run rusttests on Mac in CI r=firefox-build-system-reviewers,glandium

Run rusttests (debug) on `trunk` and rusttests (opt)
on `mozilla-central`.

Differential Revision: https://phabricator.services.mozilla.com/D109513
This commit is contained in:
Mitchell Hentges 2021-04-08 23:06:29 +00:00
parent 1e3921cd84
commit 11157df8ec
5 changed files with 76 additions and 1 deletions

View File

@ -73,3 +73,63 @@ macosx64-plain/debug:
- macosx64-rust
optimization:
skip-unless-expanded: null
macosx64-rusttests/opt:
description: "MacOS X x64 Rust Tests Opt"
index:
job-name: macosx64-rusttests-opt
treeherder:
platform: macosx64/opt
symbol: BR
tier: 1
worker:
env:
PERFHERDER_EXTRA_OPTIONS: rusttests
run:
actions: [build]
config:
- builds/releng_base_firefox.py
- builds/taskcluster_base_macosx.py
- builds/releng_sub_mac_configs/rusttests.py
extra-config:
mozconfig_platform: macosx64
mozconfig-variant: rusttests
run-on-projects: ['mozilla-central']
fetches:
toolchain:
- macosx64-rust
- macosx64-cbindgen
- macosx64-nasm
- macosx64-node
optimization:
test-inclusive: [rusttests]
macosx64-rusttests/debug:
description: "MacOS X x64 Rust Tests Debug"
index:
job-name: macosx64-rusttests-debug
treeherder:
platform: macosx64/debug
symbol: BR
tier: 1
worker:
env:
PERFHERDER_EXTRA_OPTIONS: rusttests
run:
actions: [build]
config:
- builds/releng_base_firefox.py
- builds/taskcluster_base_macosx.py
- builds/releng_sub_mac_configs/rusttests.py
extra-config:
mozconfig_platform: macosx64
mozconfig-variant: rusttests-debug
run-on-projects: ['trunk']
fetches:
toolchain:
- macosx64-rust
- macosx64-cbindgen
- macosx64-nasm
- macosx64-node
optimization:
test-inclusive: [rusttests]

View File

@ -0,0 +1,12 @@
# 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/.
config = {
"default_actions": [
"build",
],
"stage_platform": "macosx64-rusttests",
"app_name": "tools/rusttests",
"disable_package_metrics": True,
}

View File

@ -10,7 +10,6 @@ MOZ_AUTOMATION_PACKAGE_GENERATED_SOURCES=0
MOZ_AUTOMATION_UPLOAD=0
MOZ_AUTOMATION_CHECK=0
ac_add_options --enable-application=tools/rusttests
mk_add_options MOZ_MAKE_FLAGS=--output-sync=line
. "$topsrcdir/build/mozconfig.common"
. "$topsrcdir/build/mozconfig.common.override"

View File

@ -0,0 +1,2 @@
. "$topsrcdir/build/macosx/mozconfig.common"
. "$topsrcdir/tools/rusttests/config/mozconfigs/common"

View File

@ -0,0 +1,2 @@
. "$topsrcdir/tools/rusttests/config/mozconfigs/macosx64/rusttests"
ac_add_options --enable-debug