gecko-dev/tools/tryselect
Andrew Halberstadt 0e4eda282f Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown
One of the big downsides to |mach try fuzzy| is that if you use the interactive
finder, there's no way to repeat your last action. If you want to run the same
push again, you have to manually re-select all the same tasks a second time.

It is possible to save presets, but this is fairly heavy-weight and (more)
permanent. Sometimes you just want to re-run a push a few times and forget
about it. It's also possible to craft the query on the command line with -q,
but then you don't get the immediate visual feedback, so you can't be sure that
you typed out the right things without actually pushing.

With |mach try again|, everytime you generate a try_task_config.json via
'fuzzy', 'empty' or any other subcommands that may exist in the future, it'll
get stored in a history file under ~/.mozbuild. Then running |mach try again|
will simply re-run the most recent try_task_config.json.

You'll also be able to view the whole history via |mach try again --list| and
select a specific try_task_config.json (i.e not the most recent one) via
|mach try again --index <index>|.

Example usage will be:
$ ./mach try fuzzy
<select a bunch of tasks>
$ ./mach try again
<re-pushes exact same set of tasks>

MozReview-Commit-ID: 3EZjVCy08uq

Depends on D1808.

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

--HG--
extra : moz-landing-system : lando
2018-07-16 13:35:30 +00:00
..
docs Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown 2018-07-16 13:35:30 +00:00
selectors Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown 2018-07-16 13:35:30 +00:00
test Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown 2018-07-16 13:35:30 +00:00
__init__.py
cli.py Bug 1413928 - [tryselect] Change templates to return an entire context dict instead of a single value r=maja_zf 2018-01-15 16:05:17 -05:00
mach_commands.py Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown 2018-07-16 13:35:30 +00:00
preset.py Bug 1400503 - [tryselect] Add an option to open the presets file in an editor, r=armenzg 2017-10-27 14:58:34 -04:00
push.py Bug 1471990 - Implement |mach try again| to repeat your last 'try_task_config.json' try push r=gbrown 2018-07-16 13:35:30 +00:00
tasks.py Bug 1423887 - [tryselect] Enable taskgraph.fast when generating tasks from |mach try|, r=catlee 2017-12-07 09:01:35 -05:00
templates.py Bug 1414921 - Add --geckoProfile to capture profiles from talos tasks to |mach try fuzzy|, r=dustin 2017-12-13 16:16:09 -05:00