Repository navigation
Commit 17cc319
fix(ci): stop the queue-expiry body naming a cause it cannot observe
Follow-up to #11855, from its sandboxed verification report.
The never-started branch fires on `runner_name` empty AND `steps` empty,
which is a shape, not a cause. Verification sampled eight recently
cancelled qwen-code-pr-review.yml runs and found three with exactly that
shape, cancelled after 9.7, 36.4 and 33.7 minutes — so the body's claim
that GitHub ended the job "at the 24-hour queue limit" was false by a
factor of 40-150x. All three were cancellations caused by the PR closing,
and the step's `pr_state != OPEN` gate runs before body selection, so
none of them posted; the residual reachable case is an operator
cancelling a review still queued, or a command-triggered run cancelled
while it waited, both on an OPEN PR where the head-drift exit does not
apply either. That reader is told a duration that did not elapse and is
sent to qwen-review-runner-schedule.yml for something the schedule did
not do.
The first sentence now states only the observation, and cancellation
joins the candidate list the body already disclaims with. Under the
steady-state schedule a queued review waits at most 12 h and then runs,
so a genuine cap expiry means the schedule itself is broken — the claim
was true only in the failure mode it was written for.
The five tests added in #11855 pin WHETHER the branch fires; none pinned
WHICH cause it claims. The queue-expiry case now asserts the body names
no duration and does offer cancellation, for both `failure` and
`cancelled` results. Restoring "at the 24-hour queue limit" turns it red.
Also records two .size-baseline numbers that were wrong on main:
qwen-review-runner-schedule.yml 1958 -> 2518 (the ratchet's own entry,
drifted inside #11855 when the main-fence comment landed without
re-recording; the file could have grown 140% before the gate objected)
and ci.yml 134426 -> 137297 (main-side and pre-existing, but it left
only 1225 bytes of headroom, so the next PR touching ci.yml would be
told to account for 2871 bytes of growth it did not cause — the red-wall
class check-workflow-size.sh exists to prevent). qwen-code-pr-review.yml
is re-recorded for this change.
Co-authored-by: Qwen-Coder <[email protected]>1 parent 4b8e02b commit 17cc319
3 files changed
Lines changed: 15 additions & 4 deletions
File tree
- .github/workflows
- scripts/tests
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3298 | 3298 | | |
3299 | 3299 | | |
3300 | 3300 | | |
3301 | | - | |
| 3301 | + | |
3302 | 3302 | | |
3303 | 3303 | | |
3304 | 3304 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4190 | 4190 | | |
4191 | 4191 | | |
4192 | 4192 | | |
| 4193 | + | |
| 4194 | + | |
| 4195 | + | |
| 4196 | + | |
| 4197 | + | |
| 4198 | + | |
| 4199 | + | |
| 4200 | + | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
4193 | 4204 | | |
4194 | 4205 | | |
4195 | 4206 | | |
| |||
0 commit comments