You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/^(FAILURE|CANCELLED|TIMED_OUT|ACTION_REQUIRED|STARTUP_FAILURE|STALE)$/ { r = "failure" }
444
+
/^(PENDING|QUEUED|IN_PROGRESS|WAITING|REQUESTED)$/ { if (r == "success") r = "pending" }
445
+
END { print r }')
439
446
echo"CI status: $status"
447
+
# If status == "pending" after --watch, treat as failure for safety and re-poll
448
+
# once more; otherwise proceed with success/failure.
440
449
```
441
450
442
-
Equivalent REST-API fallback: `GET /repos/{owner}/{repo}/commits/{sha}/check-runs` and `GET /repos/.../commits/{sha}/check-suites`, treating any `conclusion` in {`failure`, `timed_out`, `cancelled`, `action_required`} as failure.
451
+
Equivalent REST-API fallback: `GET /repos/{owner}/{repo}/commits/{sha}/check-runs` and `GET /repos/.../commits/{sha}/check-suites`, treating any `conclusion` in {`failure`, `timed_out`, `cancelled`, `action_required`} as failure and any check still in `status` ∈ {`queued`, `in_progress`, `waiting`} as not-yet-concluded (keep polling).
443
452
444
453
4. Respect the **per-iteration wall clock**: 60 minutes total (including all CI waits and fix attempts). If the cap is hit while waiting or fixing, **stop** — do **not** silently abandon. Go to the **budget-exhausted** handler in Step 5b below: set `paused: true` with `pause_reason: "ci-timeout: wall-clock cap reached"`, comment on the program issue, and end the iteration. Do **not** revert — leave the broken commit in place for a human or Evergreen to pick up.
445
454
@@ -768,7 +777,7 @@ All iterations in reverse chronological order (newest first).
768
777
| PR |`#number` or `—`| Draft PR number for this program |
769
778
| Issue |`#number` or `—`| Program issue number (single source of truth for status, iteration log, and human steering) |
770
779
| Paused |`true` or `false`| Whether the program is paused |
771
-
| Pause Reason | text or `—`| Why it is paused (if applicable)|
780
+
| Pause Reason | text or `—`| Why it is paused. Recognized values set by the CI-gated acceptance flow: `ci-fix-exhausted: <signature>` (5 fix attempts exhausted), `stuck in CI fix loop: <signature>` (no-progress guard triggered), `ci-timeout: wall-clock cap reached` (60-min per-iteration cap hit). Other free-form text may be set for errors.|
772
781
| Completed |`true` or `false`| Whether the program has reached its target metric |
773
782
| Completed Reason | text or `—`| Why it completed (e.g., `target metric 0.95 reached with value 0.97`) |
0 commit comments