Open
Bug 1344402
Opened 9 years ago
Updated 19 days ago
Remove "Your try syntax would not trigger any jobs" from try hook
Categories
(Developer Services :: Mercurial: hg.mozilla.org, defect)
Developer Services
Mercurial: hg.mozilla.org
Tracking
(Not tracked)
ASSIGNED
People
(Reporter: dustin, Assigned: cswilson252)
References
Details
Attachments
(1 file)
(sandbox) dustin@lamport ~/p/m-c (bug1337903) $ hg push-to-try -m 'try: -b o -p none -t none -u none'
Creating temporary commit for remote...
pushing to ssh://hg.mozilla.org/try
searching for changes
remote: adding changesets
remote: adding manifests
remote: adding file changes
remote: added 3 changesets with 18 changes to 17 files (+1 heads)
remote:
remote: ***************************** ERROR ******************************
remote: Your try syntax would not trigger any jobs. Either specify a build
remote: with '-p' or an arbitrary job with '-j'. If you intended to push
remote: without triggering any jobs, omit the try syntax completely. For
remote: assistance with try server, see https://wiki.mozilla.org/Try.
remote: ******************************************************************
when in fact that syntax will potentially generate 30 jobs as of the current tip.
Curious what this should be changed to. Remove that error entirely? Change it to a warning and tweak the message, but let the push go through?
If we change the message, what should it be changed to? "Your try syntax would not necessarily trigger any desktop/mobile build jobs."?
Flags: needinfo?(gps)
Flags: needinfo?(dustin)
Letting the push go through while still printing the error is just dropping this line: https://dxr.mozilla.org/hgcustom_version-control-tools/rev/6a20a18a2d58b167d2180f6604866b4149bba5c2/hghooks/mozhghooks/try_warning.py#42
Comment 3•8 years ago
|
||
I think we should remove this error message altogether and move the validation to `mach try`. Embedding business logic like this on the Mercurial server where it is distant from the code dictating behavior is not a good idea because it will drift out of sync with try scheduling reality.
Blocks: require-mach-try
Flags: needinfo?(gps)
| Assignee | ||
Comment 6•29 days ago
|
||
Updated•29 days ago
|
Assignee: nobody → tqpcharlie
Status: NEW → ASSIGNED
Updated•26 days ago
|
Attachment #9545118 -
Attachment description: mozhg: Leave job trigger checking to mach (Bug 1344402); r=sheehan! → mozhg: Leave job trigger checking to mach (Bug 1344402); r=jcristau!
Updated•19 days ago
|
Attachment #9545118 -
Attachment description: mozhg: Leave job trigger checking to mach (Bug 1344402); r=jcristau! → hooks: Leave job trigger checking to mach (Bug 1344402); r=jcristau!
You need to log in
before you can comment on or make changes to this bug.
Description
•