Bug 1630350 - apply mach try filter to try syntax selector r=jmaher,gbrown

Changes:

Applies the `filter_tasks_by_blacklist` method to try syntax pushes as well.

  - moved `TARGET_TASK_BLACKLIST`and `filter_tasks_by_blacklist` method to live in `taskcluster/taskgraph/target_tasks.py`.
  - removed existing filters against `ccov, windows10-aarch64` and `android-hw` filters against try syntax pushes.
  - update imports for `fuzzy` and `chooser` selectors to refer to the new location of `filter_tasks_by_blacklist` method.

The reason for moving the logic (again) from `tools/tryselect` to `taskcluster/` is due to the placement of `try_option_syntax` and `target_tasks` files and both of those files handle the processing of `mach try syntax` pushes.

Differential Revision: https://phabricator.services.mozilla.com/D71698
This commit is contained in:
Edwin Takahashi
2020-04-21 19:51:25 +00:00
parent 2a791bee23
commit e6fb8f6642
5 changed files with 39 additions and 43 deletions

View File

@@ -561,18 +561,6 @@ class TryOptionSyntax(object):
return False
return set(['try', 'all']) & set(attr('run_on_projects', []))
# Don't schedule code coverage when try option syntax is used
if 'ccov' in attr('build_platform', []):
return False
# Don't schedule tasks for windows10-aarch64 unless try fuzzy is used
if 'windows10-aarch64' in attr("test_platform", ""):
return False
# Don't schedule android-hw tests when try option syntax is used
if 'android-hw' in task.label:
return False
# Don't schedule fission tests when try option syntax is used
if attr('unittest_variant') == 'fission':
return False