Bug 1624859 - [ci] Rename 'fuzzing-builds' optimization alias to 'build-fuzzing', r=tomprince
authorAndrew Halberstadt <ahalberstadt@mozilla.com>
Wed, 22 Apr 2020 15:52:53 +0000
changeset 525401 d82de935b08b371a07dfa1322c70981456633a17
parent 525400 ff704e8cb0ea14330dc27c863e3619bd39e4e1fe
child 525402 947206ea3b3de8bf8fe7dd4a69ea9f18f9116aa4
push id37339
push usernerli@mozilla.com
push dateThu, 23 Apr 2020 09:52:48 +0000
treeherdermozilla-central@47426d145e24 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstomprince
bugs1624859
milestone77.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1624859 - [ci] Rename 'fuzzing-builds' optimization alias to 'build-fuzzing', r=tomprince Differential Revision: https://phabricator.services.mozilla.com/D71822
taskcluster/ci/build/android.yml
taskcluster/ci/build/linux.yml
taskcluster/ci/build/macosx.yml
taskcluster/ci/build/windows.yml
taskcluster/taskgraph/optimize/__init__.py
taskcluster/taskgraph/util/schema.py
--- a/taskcluster/ci/build/android.yml
+++ b/taskcluster/ci/build/android.yml
@@ -102,17 +102,17 @@ android-x86-fuzzing/debug:
         actions: [get-secrets, build]
         config: ["builds/releng_base_android_64_builds.py"]
         custom-build-variant-cfg: x86-fuzzing-debug
     fetches:
         toolchain:
             - linux64-clang
             - linux64-sccache
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - android
 
 android-x86-nightly/opt:
     description: "Android 4.2 x86 Nightly"
     attributes:
         enable-full-crashsymbols: true
         nightly: true
         # Android nightlies don't run tests in gecko, but are needed for github projects
@@ -577,10 +577,10 @@ android-x86_64-asan-fuzzing/opt:
         actions: [get-secrets, build]
         config: ["builds/releng_base_android_64_builds.py"]
         custom-build-variant-cfg: x86_64-fuzzing-asan
     fetches:
         toolchain:
             - linux64-clang-android-cross
             - linux64-sccache
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - android
--- a/taskcluster/ci/build/linux.yml
+++ b/taskcluster/ci/build/linux.yml
@@ -120,17 +120,17 @@ linux64-fuzzing/debug:
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
             # `fix-stacks` is needed because xpcshell self tests run as part of
             # the build step. Once bug 1614626 moves them to the xpcshell task,
             # this dependency can be removed.
             - linux64-fix-stacks
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - linux
 
 linux64/debug:
     description: "Linux64 Debug"
     index:
         product: firefox
         job-name: linux64-debug
     attributes:
@@ -832,17 +832,17 @@ linux64-tsan-fuzzing/opt:
             - linux64-rust-size
             - linux64-cbindgen
             - linux64-sccache
             - linux64-nasm
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - linux
 
 linux64-asan-fuzzing/opt:
     description: "Linux64 Fuzzing Opt ASAN"
     index:
         product: firefox
         job-name: linux64-fuzzing-asan-opt
     attributes:
@@ -878,17 +878,17 @@ linux64-asan-fuzzing/opt:
             - linux64-rust-size
             - linux64-cbindgen
             - linux64-sccache
             - linux64-nasm
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - linux
 
 linux64-asan-fuzzing-ccov/opt:
     description: "Linux64 Fuzzing Opt ASAN w/ Coverage"
     index:
         product: firefox
         job-name: linux64-ccov-fuzzing-asan-opt
     attributes:
@@ -966,17 +966,17 @@ linux64-fuzzing-ccov/opt:
             - linux64-rust
             - linux64-rust-size
             - linux64-sccache
             - linux64-nasm
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - linux
 
 linux64-asan-reporter-nightly/opt:
     description: "Linux64 Opt ASAN Reporter Nightly"
     attributes:
         nightly: true
     shipping-product:
         by-release-type:
--- a/taskcluster/ci/build/macosx.yml
+++ b/taskcluster/ci/build/macosx.yml
@@ -128,17 +128,17 @@ macosx64-asan-fuzzing/opt:
             - linux64-rust-size
             - linux64-cbindgen
             - linux64-sccache
             - linux64-nasm
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - macosx
 
 macosx64-fuzzing/debug:
     description: "MacOS X x64 Cross-compile Fuzzing Debug"
     index:
         product: firefox
         job-name: macosx64-fuzzing-debug
     attributes:
@@ -175,17 +175,17 @@ macosx64-fuzzing/debug:
             - linux64-rust-size
             - linux64-cbindgen
             - linux64-sccache
             - linux64-nasm
             - linux64-node
             - linux64-lucetc
             - wasi-sysroot
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - macosx
 
 macosx64-devedition/opt:
     description: "MacOS X Dev Edition x64 (shippable)"
     use-pgo: macosx64-shippable/opt
     attributes:
         nightly: true
         enable-full-crashsymbols: true
--- a/taskcluster/ci/build/windows.yml
+++ b/taskcluster/ci/build/windows.yml
@@ -198,17 +198,17 @@ win64-fuzzing/debug:
             - win64-clang-cl
             - win64-rust
             - win64-rust-size
             - win64-cbindgen
             - win64-sccache
             - win64-nasm
             - win64-node
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - windows
 
 win64-plain/debug:
     description: "Win64 Debug Plain"
     index:
         product: firefox
         job-name: win64-plain-debug
     treeherder:
@@ -993,17 +993,17 @@ win64-asan-fuzzing/opt:
             - win64-clang-cl
             - win64-rust
             - win64-rust-size
             - win64-cbindgen
             - win64-sccache
             - win64-nasm
             - win64-node
     optimization:
-        fuzzing-builds:
+        build-fuzzing:
             - windows
 
 win32-devedition/opt:
     description: "Win32 Dev Edition (shippable)"
     use-pgo: win32-shippable/opt
     index:
         product: devedition
         job-name: win32-opt
--- a/taskcluster/taskgraph/optimize/__init__.py
+++ b/taskcluster/taskgraph/optimize/__init__.py
@@ -371,20 +371,20 @@ class Alias(CompositeStrategy):
 
 
 # Trigger registration in sibling modules.
 import_sibling_modules()
 
 
 # Register composite strategies.
 register_strategy('build', args=('skip-unless-schedules',))(Alias)
+register_strategy('build-fuzzing', args=('skip-unless-schedules', 'seta'))(Any)
 register_strategy('test', args=(Any('skip-unless-schedules', 'seta'), 'backstop'))(All)
 register_strategy('test-inclusive', args=('skip-unless-schedules',))(Alias)
 register_strategy('test-try', args=('skip-unless-schedules',))(Alias)
-register_strategy('fuzzing-builds', args=('skip-unless-schedules', 'seta'))(Any)
 
 
 # Strategy overrides used by |mach try| and/or shadow-scheduler tasks.
 
 class experimental(object):
     """Experimental strategies either under development or used as benchmarks.
 
     These run as "shadow-schedulers" on each autoland push (tier 3) and/or can be used
@@ -454,10 +454,10 @@ class ExperimentalOverride(object):
     def __getattr__(self, name):
         val = getattr(self.base, name).copy()
         val.update(self.overrides)
         return val
 
 
 tryselect = ExperimentalOverride(experimental, {
     'build': Alias('always'),
-    'fuzzing-builds': Alias('always'),
+    'build-fuzzing': Alias('always'),
 })
--- a/taskcluster/taskgraph/util/schema.py
+++ b/taskcluster/taskgraph/util/schema.py
@@ -196,30 +196,30 @@ class Schema(voluptuous.Schema):
 
 OptimizationSchema = voluptuous.Any(
     # always run this task (default)
     None,
     # always optimize this task
     {'always': None},
     # optimize strategy aliases for build kind
     {'build': list(schedules.ALL_COMPONENTS)},
+    {'build-fuzzing': list(schedules.ALL_COMPONENTS)},
     # search the index for the given index namespaces, and replace this task if found
     # the search occurs in order, with the first match winning
     {'index-search': [text_type]},
     # consult SETA and skip this task if it is low-value
     {'seta': None},
     # skip this task if none of the given file patterns match
     {'skip-unless-changed': [text_type]},
     # skip this task if unless the change files' SCHEDULES contains any of these components
     {'skip-unless-schedules': list(schedules.ALL_COMPONENTS)},
     # optimize strategy aliases for the test kind
     {'test': list(schedules.ALL_COMPONENTS)},
     {'test-inclusive': list(schedules.ALL_COMPONENTS)},
     {'test-try': list(schedules.ALL_COMPONENTS)},
-    {'fuzzing-builds': list(schedules.ALL_COMPONENTS)},
 )
 
 # shortcut for a string where task references are allowed
 taskref_or_string = voluptuous.Any(
     text_type,
     {voluptuous.Required('task-reference'): text_type},
     {voluptuous.Required('artifact-reference'): text_type},
 )