Fallback to V8 builder names before splitting builder/tester. This eases splitting builders and testers on release branches and can be removed as soon as all builder have been split and all MB configs exist on all branches.
(builder, builder_group)
| 52 | |
| 53 | |
| 54 | def _v8_builder_fallback(builder, builder_group): |
| 55 | """Fallback to V8 builder names before splitting builder/tester. |
| 56 | |
| 57 | This eases splitting builders and testers on release branches and |
| 58 | can be removed as soon as all builder have been split and all MB configs |
| 59 | exist on all branches. |
| 60 | """ |
| 61 | builders = [builder] |
| 62 | if builder.endswith(' - builder'): |
| 63 | builders.append(builder[:-len(' - builder')]) |
| 64 | elif builder.endswith(' builder'): |
| 65 | builders.append(builder[:-len(' builder')]) |
| 66 | |
| 67 | for b in builders: |
| 68 | if b in builder_group: |
| 69 | return builder_group[b] |
| 70 | return None |
| 71 | |
| 72 | |
| 73 | def main(args): |