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)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: emorley, Assigned: emorley)

References

Details

Attachments

(1 file, 1 obsolete file)

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).
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)
Actually let's switch to using a ternary now too.
Attachment #8384542 - Flags: review?(ryanvm)
Attachment #8384527 - Attachment is obsolete: true
Attachment #8384527 - Flags: review?(ryanvm)
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+
Depends on: 980264
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Webtools → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: