author | Dustin J. Mitchell <dustin@mozilla.com> |
Mon, 02 Apr 2018 16:53:05 +0000 | |
changeset 411530 | cf8ffb2a11f29a962fa63f38534fde94f9131848 |
parent 411529 | 4087700190a569204fbf01035694cdb74fe9f27a |
child 411531 | 42176ad3be1e6aad80e8e7310c73d56ff0d20441 |
push id | 101686 |
push user | aciure@mozilla.com |
push date | Tue, 03 Apr 2018 21:59:31 +0000 |
treeherder | mozilla-inbound@8d846598d35d [default view] [failures only] |
perfherder | [talos] [build metrics] [platform microbench] (compared to previous push) |
reviewers | ahal |
bugs | 1443974 |
milestone | 61.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
|
new file mode 100644 --- /dev/null +++ b/taskcluster/taskgraph/templates/chemspill-prio.yml @@ -0,0 +1,8 @@ +task: + $mergeDeep: + - $eval: task + # increase the priority from lowest and very-low -> low, but leave others unchanged + - priority: + $if: task.priority == 'lowest' || task.priority == 'very-low' + then: low + else: {$eval: task.priority}
--- a/tools/tryselect/selectors/fuzzy.py +++ b/tools/tryselect/selectors/fuzzy.py @@ -86,17 +86,17 @@ class FuzzyParser(BaseTryParser): }], [['-u', '--update'], {'action': 'store_true', 'default': False, 'help': "Update fzf before running.", }], ] common_groups = ['push', 'task', 'preset'] - templates = ['artifact', 'path', 'env', 'rebuild'] + templates = ['artifact', 'path', 'env', 'rebuild', 'chemspill-prio'] def run(cmd, cwd=None): is_win = platform.system() == 'Windows' return subprocess.call(cmd, cwd=cwd, shell=True if is_win else False) def run_fzf_install_script(fzf_path):
--- a/tools/tryselect/selectors/syntax.py +++ b/tools/tryselect/selectors/syntax.py @@ -142,16 +142,17 @@ class SyntaxParser(BaseTryParser): 'help': 'Force artifact builds where possible.', }, '--upload-xdbs': { 'action': 'store_true', 'dest': 'upload_xdbs', 'help': 'Upload XDB compilation db files generated by hazard build', }, } + templates = ['chemspill-prio'] def __init__(self, *args, **kwargs): BaseTryParser.__init__(self, *args, **kwargs) group = self.add_argument_group("pass-through arguments") for arg, opts in self.pass_through_arguments.items(): group.add_argument(arg, **opts)
--- a/tools/tryselect/templates.py +++ b/tools/tryselect/templates.py @@ -126,14 +126,28 @@ class Rebuild(Template): if not rebuild: return return { 'rebuild': rebuild, } +class ChemspillPrio(Template): + + def add_arguments(self, parser): + parser.add_argument('--chemspill-prio', action='store_true', + help='Run at a higher priority than most try jobs (chemspills only).') + + def context(self, chemspill_prio, **kwargs): + if chemspill_prio: + return { + 'chemspill-prio': {} + } + + all_templates = { 'artifact': Artifact, 'path': Path, 'env': Environment, 'rebuild': Rebuild, + 'chemspill-prio': ChemspillPrio, }