Bug 1519472 - [ci] Opt out of caching for generic-worker based Windows builds, r=tomprince

The hosts don't have enough disk space to cache mozilla-central.

Depends on D17689

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

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andrew Halberstadt 2019-02-07 20:31:57 +00:00
Родитель 001ebeef3e
Коммит 04fa5242be
3 изменённых файлов: 11 добавлений и 37 удалений

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

@ -1,3 +1,8 @@
job-defaults:
run:
using: mozharness
use-caches: false
win32/debug:
description: "Win32 Debug"
index:
@ -15,7 +20,6 @@ win32/debug:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -49,7 +53,6 @@ win32/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -84,7 +87,6 @@ win32/pgo:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
options: [enable-pgo, append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -118,7 +120,6 @@ win64/debug:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -153,7 +154,6 @@ win64-fuzzing/debug:
PERFHERDER_EXTRA_OPTIONS: fuzzing
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -187,7 +187,6 @@ win64-plain/debug:
PERFHERDER_EXTRA_OPTIONS: plain
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -222,7 +221,6 @@ win64/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -256,7 +254,6 @@ win64-plain/opt:
PERFHERDER_EXTRA_OPTIONS: plain
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
actions: [build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -303,7 +300,6 @@ win32-nightly/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
actions: [build, check-test]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -343,7 +339,6 @@ win64-nightly/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
actions: [build, check-test]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -379,7 +374,6 @@ win64/pgo:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [enable-pgo, append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -411,7 +405,6 @@ win32-add-on-devel/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: "mozharness/scripts/fx_desktop_build.py"
config:
@ -445,7 +438,6 @@ win64-add-on-devel/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: "mozharness/scripts/fx_desktop_build.py"
config:
@ -479,7 +471,6 @@ win64-noopt/debug:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -512,7 +503,6 @@ win32-noopt/debug:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -546,7 +536,6 @@ win32-rusttests/opt:
PERFHERDER_EXTRA_OPTIONS: rusttests
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
actions: [build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -584,7 +573,6 @@ win32-rusttests/debug:
PERFHERDER_EXTRA_OPTIONS: rusttests
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
actions: [build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -622,7 +610,6 @@ win64-rusttests/opt:
PERFHERDER_EXTRA_OPTIONS: rusttests
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -655,7 +642,6 @@ win64-rusttests/debug:
PERFHERDER_EXTRA_OPTIONS: rusttests
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -691,7 +677,6 @@ win64-ccov/debug:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -728,7 +713,6 @@ win64-asan/debug:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: "debug asan"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -762,7 +746,6 @@ win64-asan/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: "opt asan"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -803,7 +786,6 @@ win64-asan-reporter-nightly/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: "asan-reporter"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -839,7 +821,6 @@ win64-asan-fuzzing/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: fuzzing-asan
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -886,7 +867,6 @@ win32-devedition-nightly/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
run:
using: mozharness
script: mozharness/scripts/fx_desktop_build.py
options: [enable-pgo, append-env-variables-from-configs]
config:
@ -927,7 +907,6 @@ win64-devedition-nightly/opt:
env:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -963,7 +942,6 @@ win32-msvc/debug:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: msvc
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -995,7 +973,6 @@ win32-msvc/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win32/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: msvc
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1028,7 +1005,6 @@ win64-msvc/debug:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: msvc
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1060,7 +1036,6 @@ win64-msvc/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/releng.manifest"
PERFHERDER_EXTRA_OPTIONS: msvc
run:
using: mozharness
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1095,7 +1070,6 @@ win64-aarch64/debug:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/aarch64.manifest"
PERFHERDER_EXTRA_OPTIONS: aarch64
run:
using: mozharness
actions: [get-secrets, build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -1131,7 +1105,6 @@ win64-aarch64/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/aarch64.manifest"
PERFHERDER_EXTRA_OPTIONS: aarch64
run:
using: mozharness
actions: [get-secrets, build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -1170,7 +1143,6 @@ win64-aarch64-nightly/opt:
TOOLTOOL_MANIFEST: "browser/config/tooltool-manifests/win64/aarch64.manifest"
PERFHERDER_EXTRA_OPTIONS: aarch64
run:
using: mozharness
actions: [get-secrets, build]
options: [append-env-variables-from-configs]
script: mozharness/scripts/fx_desktop_build.py
@ -1204,7 +1176,6 @@ win32-mingwclang/opt:
env:
PERFHERDER_EXTRA_OPTIONS: "opt 32 clang"
run:
using: mozharness
actions: [build]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1240,7 +1211,6 @@ win32-mingwclang/debug:
env:
PERFHERDER_EXTRA_OPTIONS: "debug 32 clang"
run:
using: mozharness
actions: [build]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1276,7 +1246,6 @@ win64-mingwclang/opt:
env:
PERFHERDER_EXTRA_OPTIONS: "opt 64 clang"
run:
using: mozharness
actions: [build]
script: mozharness/scripts/fx_desktop_build.py
config:
@ -1312,7 +1281,6 @@ win64-mingwclang/debug:
env:
PERFHERDER_EXTRA_OPTIONS: "debug 64 clang"
run:
using: mozharness
actions: [build]
script: mozharness/scripts/fx_desktop_build.py
config:

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

@ -25,6 +25,9 @@ def add_cache(job, taskdesc, name, mount_point, skip_untrusted=False):
skip_untrusted (bool): Whether cache is used in untrusted environments
(default: False). Only applies to docker-worker.
"""
if not job['run'].get('use-caches', True):
return
worker = job['worker']
if worker['implementation'] in ('docker-worker', 'docker-engine'):

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

@ -97,6 +97,9 @@ mozharness_run_schema = Schema({
Required('requires-signed-builds'): bool,
# Whether or not to use caches.
Optional('use-caches'): bool,
# If false, don't set MOZ_SIMPLE_PACKAGE_NAME
# Only disableable on windows
Required('use-simple-package'): bool,