Repository navigation
Commit 7141021
Run autoharness jobs only in the merge queue (#738)
## Problem
Five CI jobs (autoharness, metrics, list, analyzer, build JSON) run on
every PR push and take about five runner-hours. Every PR waits on them.
#730 asks to run them only before merging.
## Fix
Add `if: merge_group || workflow_dispatch` to those five jobs.
Autoharness is a required check, so it cannot be skipped as a whole job:
a skipped job loses the `(ubuntu-latest)` part of its name and the
required check never turns green. So for that job the `if:` is on each
step. The job still runs, does nothing, and passes in seconds.
## Testing
On my fork, a manual run passed all 16 jobs
([run](https://github.com/Tianshu-Huang/verify-rust-std/actions/runs/40005615582)),
and a PR skipped the five jobs with the two autoharness required checks
green ([PR](Tianshu-Huang#1)).
Did not test `merge_group`.
By submitting this pull request, I confirm that my contribution is made
under the terms of the Apache 2.0 and MIT licenses.
---------
Co-authored-by: Felipe R. Monteiro <rms.felipe@gmail.com>1 parent c0bd09c commit 7141021
2 files changed
Lines changed: 43 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
5 | 12 | | |
6 | 13 | | |
7 | 14 | | |
| |||
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
| 28 | + | |
| 29 | + | |
21 | 30 | | |
22 | 31 | | |
23 | 32 | | |
| |||
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
70 | 86 | | |
71 | 87 | | |
72 | 88 | | |
| |||
80 | 96 | | |
81 | 97 | | |
82 | 98 | | |
83 | | - | |
| 99 | + | |
84 | 100 | | |
85 | 101 | | |
86 | 102 | | |
| |||
89 | 105 | | |
90 | 106 | | |
91 | 107 | | |
| 108 | + | |
92 | 109 | | |
93 | 110 | | |
94 | 111 | | |
| |||
107 | 124 | | |
108 | 125 | | |
109 | 126 | | |
| 127 | + | |
110 | 128 | | |
111 | 129 | | |
112 | 130 | | |
| |||
219 | 237 | | |
220 | 238 | | |
221 | 239 | | |
| 240 | + | |
222 | 241 | | |
223 | 242 | | |
224 | 243 | | |
| |||
229 | 248 | | |
230 | 249 | | |
231 | 250 | | |
| 251 | + | |
232 | 252 | | |
233 | 253 | | |
234 | 254 | | |
| |||
299 | 319 | | |
300 | 320 | | |
301 | 321 | | |
| 322 | + | |
302 | 323 | | |
303 | 324 | | |
304 | 325 | | |
| |||
351 | 372 | | |
352 | 373 | | |
353 | 374 | | |
| 375 | + | |
354 | 376 | | |
355 | 377 | | |
356 | 378 | | |
| |||
396 | 418 | | |
397 | 419 | | |
398 | 420 | | |
| 421 | + | |
399 | 422 | | |
400 | 423 | | |
401 | 424 | | |
| |||
0 commit comments