Commit Graph

17 Commits

Author SHA1 Message Date
Andrew Halberstadt
fd84f5ffec Bug 1412134 - [tryselect] Redirect stderr to a separate pipe, r=chmanchester
We parse the output of several version control commands in |mach try|, yet
redirect stderr to stdout. This is causing issues for people whenever the
vcs outputs some kind of warning.

MozReview-Commit-ID: F0L56at0MYS
2017-10-30 16:35:45 -04:00
James Graham
761e0a3cb5 Bug 1401150 - Support try pushes on a closed tree with mach try, r=ahal
This adds the magic CLOSED TREE string to the commit message for both
try syntax and the fuzzy frontend.

MozReview-Commit-ID: 492UME3VcJN
2017-10-16 18:59:45 +01:00
Wes Kocher
fb78125389 Bug 1400425 - Add a mach try empty command to push to try with no prompts r=ahal
MozReview-Commit-ID: 6F5vEpTTDS
2017-09-25 16:06:50 -07:00
Wes Kocher
1593e5462e Backed out changeset 7fc37806848f (bug 1400425) for flake8 issues a=backout
MozReview-Commit-ID: 7EI7PgX4YoS
2017-09-25 16:06:09 -07:00
Wes Kocher
2f5b5c5338 Bug 1400425 - Add a mach try empty command to push to try with no prompts r=ahal
MozReview-Commit-ID: 6F5vEpTTDS
2017-09-25 15:17:50 -07:00
Andrew Halberstadt
b011bbbf10 Bug 1400469 - Add ability to specify commit message to |mach try|, r=armenzg
MozReview-Commit-ID: LWkAEDWn8NC
2017-09-18 12:43:03 -04:00
Gregory Szorc
87de8af26f Bug 1400429 - Advertise use of mach try in commit message; r=ahal
This will allow us to inspect Try pushes to see how many are using
`mach try`.

The commit message for `mach try fuzzy` already advertised its usage.
We tweak the syntax a little so it isn't redundant.

MozReview-Commit-ID: 6kmYRKp0ffF
2017-09-15 16:17:37 -07:00
Wes Kocher
29697a5752 Bug 1391123 - Add a newline to the end of try_task_config.json r=gps
MozReview-Commit-ID: BtQntIHOo2G
2017-09-15 19:02:13 -07:00
ruby
40f792bfb3 Bug 1397427 - Enable py2 linter on tools/tryselect, r=ahal
MozReview-Commit-ID: K12XisbVQGq
2017-09-13 11:57:47 +05:30
Andrew Halberstadt
78b6b6d5b3 Bug 1394391 - [tryselect] Split hg implementation of files_changed to a list, r=jhford
This fixes a regression from bug 1384593. I was going to add a test for this, but it would be
a better use of time to fix bug 1185599 and add a test there. We already have vcs tests in other
parts of the tree so consolidating them into a single module is likely easier than standing up
another one-off vcs tester.

MozReview-Commit-ID: E51Tb1qC9Wb
2017-08-28 09:13:46 -04:00
Andrew Halberstadt
5974a0f9bd Bug 1391675 - [tryselect] Add a test for 'mach try fuzzy' and associated task, r=gps
Basic test to get the ground work laid out.

MozReview-Commit-ID: LmjA3Kq7xKN
2017-08-21 11:52:28 -04:00
Andrew Halberstadt
beaf165060 Bug 1391675 - [tryselect] Move --no-push into common arguments, r=armenzg
The main motivation behind this change is to make testing easier, so e.g:
./mach try fuzzy --no-push
and
./mach try syntax --no-push

both work the same way.

MozReview-Commit-ID: LmjA3Kq7xKN
2017-08-21 13:14:31 -04:00
Andrew Halberstadt
1f102f23aa Bug 1387135 - Add ability to use 'artifact' template to |mach try fuzzy|, r=maja_zf
This uses the new templating mechanism in taskgraph to schedule artifact builds when using
|mach try fuzzy|. Like |mach try syntax|, this will automatically be enabled if
--enable-artifact-builds is set in the mozconfig. The --artifact/--no-artifact arguments
can be used to override the default.

MozReview-Commit-ID: J8HVZzOt4mX
2017-08-15 11:39:46 -04:00
Andrew Halberstadt
dd07ebc844 Bug 1390141 - Pipe stderr to devnull when checking for hg in |mach try|, r=gps
MozReview-Commit-ID: IRL3GFP8CpI
2017-08-16 08:22:38 -04:00
Jeff Gilbert
e9b3e7e34c Bug 1389366 - Fix |mach try| when hg is not installed. - r=ahal
Also find_executable doesn't seem to work on my windows machine, so I've replaced it.

MozReview-Commit-ID: 3mE4UeQ2ecy
2017-08-11 13:26:58 -07:00
Andrew Halberstadt
6361b3f209 Bug 1384593 - Add an fzf based fuzzy try selector, r=armenzg
This try selector works as follows:

1. Generate target tasks (similar to ./mach taskgraph target)
2. Pipe all tasks to fzf (a fuzzy finding binary, this will be bootstrapped if necessary)
3. Allow user to make selection
4. Save selected tasks to 'try_task_config.json'. This is a new try scheduling
   mechanism built into taskcluster (see bug 1380306).
5. Use `hg push-to-try` (or git-cinnabar) to push the added file to try. This
   will use a temporary commit, so no trace of 'try_task_config.json' should be
   left over after use.


If you get messages like STOP! No try syntax found, you need to update version-control-tools:
./mach mercurial-setup --update



MozReview-Commit-ID: 4xHwZ9fATLv
2017-07-27 11:48:53 -04:00
Andrew Halberstadt
f19d38f596 Bug 1384593 - Abstract version control functionality out of syntax.py to vcs.py, r=armenzg
This copies the vcs abstraction from python/mozlint/mozlint/vcs.py. Consumers can call:

    VCSHelper.create()

and that will automatically detect whether we're in hg or git and return the appropriate
abstraction class.

MozReview-Commit-ID: 4xHwZ9fATLv
2017-07-27 11:39:27 -04:00