Closed
Bug 1247078
Opened 10 years ago
Closed 10 years ago
[trychooser] Don't run any jobs if no try syntax is detected
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ahal, Assigned: ahal)
References
Details
Attachments
(1 file, 1 obsolete file)
|
3.28 KB,
patch
|
catlee
:
review+
|
Details | Diff | Splinter Review |
See:
https://dxr.mozilla.org/build-central/source/buildbotcustom/misc_scheduler.py#23
If there is no 'try:' in the message, trychooser will run the default set. Instead, we want it to run nothing, see bug 1247072 comment 0 for an explanation why.
| Assignee | ||
Comment 1•10 years ago
|
||
Please assume I have no idea what I'm doing. I also don't know how to test this. Feel free to defer the review if appropriate.
Comment 2•10 years ago
|
||
It does have tox tests, including http://mxr.mozilla.org/build/source/buildbotcustom/test/test_try_parser.py#151 which expects "" to produce something other than what you're producing.
| Assignee | ||
Comment 3•10 years ago
|
||
Thanks, updated the test.
Attachment #8718379 -
Attachment is obsolete: true
Attachment #8718379 -
Flags: review?(catlee)
Attachment #8718426 -
Flags: review?(catlee)
Comment 4•10 years ago
|
||
Do we want nothing to happen when no try syntax is detected, or when 'try: none' is specified?
Comment 5•10 years ago
|
||
There's also "try: ", which I think is something that Old People use as a substitute for "try: -a".
| Assignee | ||
Comment 6•10 years ago
|
||
Yes for the case where there is no try syntax, nothing should happen.
I don't personally care about the invalid try syntax case. All of 'try: none', 'try: ' and 'try: -a' fall under the invalid syntax path, which currently means the default set will be run (which is everything). My intention with this patch was to leave that case alone, but if you'd prefer that an invalid syntax also does nothing, I can change it.
(Aside: the only way to actually run nothing currently is by doing 'try: -b o -p invalid_platform -u none -t none')
Updated•10 years ago
|
Attachment #8718426 -
Flags: review?(catlee) → review+
| Assignee | ||
Comment 7•10 years ago
|
||
https://hg.mozilla.org/build/buildbotcustom/rev/46fb74d54d79
Not really sure when the bugs get marked closed for this repo.. I'll assume after a reconfig.
Comment 8•10 years ago
|
||
Correct - if you're lucky there'll be an "in production..." comment.
Comment 9•10 years ago
|
||
In production: https://hg.mozilla.org/build/buildbotcustom/rev/46fb74d54d79
| Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•