Skip to content

Commit a45d011

Browse files
formatting and comments
1 parent e8b6521 commit a45d011

File tree

1 file changed

+30
-2
lines changed

1 file changed

+30
-2
lines changed

.github/workflows/premerge.yaml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,22 @@ jobs:
2828
if: >-
2929
github.repository_owner == 'llvm' &&
3030
(github.event_name != 'pull_request' || github.event.action != 'closed')
31+
# We explicitly distribute jobs between the us-west and us-central clusters
32+
# because the racey assignment that Github ARC should be doing automatically
33+
# is not currently working.
34+
# TODO(boomanaiden154): Remove this once we have finished investigating and
35+
# have fixed the Github ARC scheduling.
3136
runs-on:
32-
group: ${{ (endsWith(github.run_id, '0') || endsWith(github.run_id, '2') || endsWith(github.run_id, '4') || endsWith(github.run_id, '6') || endsWith(github.run_id, '8')) && 'llvm-premerge-cluster-us-west' || 'llvm-premerge-cluster-us-central' }}
37+
group: ${{ (
38+
endsWith(github.run_id, '0') ||
39+
endsWith(github.run_id, '2') ||
40+
endsWith(github.run_id, '4') ||
41+
endsWith(github.run_id, '6') ||
42+
endsWith(github.run_id, '8')
43+
) &&
44+
'llvm-premerge-cluster-us-west' ||
45+
'llvm-premerge-cluster-us-central'
46+
}}
3347
labels: llvm-premerge-linux-runners
3448
steps:
3549
- name: Checkout LLVM
@@ -90,8 +104,22 @@ jobs:
90104
if: >-
91105
github.repository_owner == 'llvm' &&
92106
(github.event_name != 'pull_request' || github.event.action != 'closed')
107+
# We explicitly distribute jobs between the us-west and us-central clusters
108+
# because the racey assignment that Github ARC should be doing automatically
109+
# is not currently working.
110+
# TODO(boomanaiden154): Remove this once we have finished investigating and
111+
# have fixed the Github ARC scheduling.
93112
runs-on:
94-
group: ${{ (endsWith(github.run_id, '0') || endsWith(github.run_id, '2') || endsWith(github.run_id, '4') || endsWith(github.run_id, '6') || endsWith(github.run_id, '8')) && 'llvm-premerge-cluster-us-west' || 'llvm-premerge-cluster-us-central' }}
113+
group: ${{ (
114+
endsWith(github.run_id, '0') ||
115+
endsWith(github.run_id, '2') ||
116+
endsWith(github.run_id, '4') ||
117+
endsWith(github.run_id, '6') ||
118+
endsWith(github.run_id, '8')
119+
) &&
120+
'llvm-premerge-cluster-us-west' ||
121+
'llvm-premerge-cluster-us-central'
122+
}}
95123
labels: llvm-premerge-windows-2022-runners
96124
defaults:
97125
run:

0 commit comments

Comments
 (0)