зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1618633 - Add --disable-target-task-filter to |mach try fuzzy| to bypass task filtering, r=jgraham
In |mach try fuzzy| there's a TARGET_TASK_FILTERS variable that we use to make it more difficult to run certain kinds of expensive / resource constrained tasks. The problem is that the only way to run these is to use '--full' at which point there's no way to distinguish which tasks are "valid" (i.e run on mozilla-central) and which tasks don't. This adds a flag that will ensure the default set truly matches what we run on central. Differential Revision: https://phabricator.services.mozilla.com/D64648 --HG-- extra : moz-landing-system : lando
This commit is contained in:
Родитель
339f2f6936
Коммит
8649491808
|
@ -152,7 +152,13 @@ class FuzzyParser(BaseTryParser):
|
|||
'default': False,
|
||||
'help': "Show task duration estimates.",
|
||||
}],
|
||||
|
||||
[['--disable-target-task-filter'],
|
||||
{'action': 'store_true',
|
||||
'default': False,
|
||||
'help': "Some tasks run on mozilla-central but are filtered out "
|
||||
"of the default list due to resource constraints. This flag "
|
||||
"disables this filtering."
|
||||
}],
|
||||
]
|
||||
common_groups = ['push', 'task', 'preset']
|
||||
task_configs = [
|
||||
|
@ -290,7 +296,8 @@ def filter_target_task(task):
|
|||
|
||||
def run(update=False, query=None, intersect_query=None, try_config=None, full=False,
|
||||
parameters=None, save_query=False, push=True, message='{msg}',
|
||||
test_paths=None, exact=False, closed_tree=False, show_estimates=False):
|
||||
test_paths=None, exact=False, closed_tree=False, show_estimates=False,
|
||||
disable_target_task_filter=False):
|
||||
fzf = fzf_bootstrap(update)
|
||||
|
||||
if not fzf:
|
||||
|
@ -316,7 +323,7 @@ def run(update=False, query=None, intersect_query=None, try_config=None, full=Fa
|
|||
download_task_history_data(cache_dir=cache_dir)
|
||||
make_trimmed_taskgraph_cache(graph_cache, dep_cache, target_file=target_set)
|
||||
|
||||
if not full:
|
||||
if not full and not disable_target_task_filter:
|
||||
all_tasks = filter(filter_target_task, all_tasks)
|
||||
|
||||
if test_paths:
|
||||
|
|
Загрузка…
Ссылка в новой задаче