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)

defect
Not set
normal

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)
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.
Flags: needinfo?(gps)
*nod*
Flags: needinfo?(dustin)
Assignee: nobody → tqpcharlie
Status: NEW → ASSIGNED
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!
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.

Attachment

General

Created:
Updated:
Size: