Closed
Bug 978686
Opened 10 years ago
Closed 10 years ago
Simplify machine._jobPartNumber() now that job names are more consistent
Categories
(Tree Management Graveyard :: TBPL, defect)
Tree Management Graveyard
TBPL
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: emorley, Assigned: emorley)
References
Details
Attachments
(1 file, 1 obsolete file)
1.16 KB,
patch
|
RyanVM
:
review+
|
Details | Diff | Splinter Review |
Now that bug 976158 has made the multi-part job names more consistent (for the jobs that TBPL supports; the release steps ones still aren't but we'll worry about them if/when they output correct branches and revisions), we can simplify the part-number regex. This will have the added bonus of meaning we don't have to hardcode the multi-part job names (this will partly fix bug 975631, though if desired, the grouping still needs to be set up).
Assignee | ||
Comment 1•10 years ago
|
||
We no longer have any jobs that use the form "... jobtype 1/5" (ie part 1 out of 5). All of our multi-part jobs end in a number, and for all of the buildernames that end in a number the only ones that are not multi-part are things like: trobocheck2 ...which ends in "[a-z]\d" so won't be caught by this regex.
Attachment #8384527 -
Flags: review?(ryanvm)
Assignee | ||
Comment 2•10 years ago
|
||
Actually let's switch to using a ternary now too.
Attachment #8384542 -
Flags: review?(ryanvm)
Assignee | ||
Updated•10 years ago
|
Attachment #8384527 -
Attachment is obsolete: true
Attachment #8384527 -
Flags: review?(ryanvm)
Comment 3•10 years ago
|
||
Comment on attachment 8384542 [details] [diff] [review] Simplify machine._jobPartNumber() now that job names are more consistent Review of attachment 8384542 [details] [diff] [review]: ----------------------------------------------------------------- Nice!
Attachment #8384542 -
Flags: review?(ryanvm) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Thanks :-) remote: https://hg.mozilla.org/webtools/tbpl/rev/b7a6c5411bd8
Assignee | ||
Updated•10 years ago
|
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Updated•10 years ago
|
Product: Webtools → Tree Management
Updated•9 years ago
|
Product: Tree Management → Tree Management Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•