Skip to content

pr-pipeline: recover lane and CI work lost to a GitHub outage without a person #8468

Description

@kyle-sexton

Problem (P2)

The owner (relayed by GitHub Support, 2026-10-19): "how resilient are our automations ... if there are GitHub outages? ... we don't want to plug their system with rechecks, like an exponential retry ... Ideally, I wouldn't have to come in here and ... say, 'go requeue all of this stuff because there was an outage.'"
During today's Actions/Webhooks incident (githubstatus, created 15:49:25Z) PR CI jobs ended cancelled/timed_out/startup_failure, merge_group entries were ejected, and lane triggers arrived late or not at all. Recovery was by hand: re-run CI on #7892 #7914 #7922 #7951 #8143 #8152, re-enqueue #8225 #8031 #8223, tell sessions to resume.

Proposal (smallest first)

  1. Reconciler (build first). A scheduled job finds items whose newest run ended cancelled, timed_out or startup_failure with no newer run on the same head (PR CI sets, lane dispatches, merge_group ejections of PRs still ready) and re-fires each exactly once with a fresh event (a marker per item+head makes it idempotent), in lifecycle order (merge-critical first), paced (at most ~3 PR CI sets in flight; ≥1 s between mutating calls per GitHub's REST best practices). It skips while githubstatus.com/api/v2/components.json shows Actions not operational, so it never adds load mid-incident. Subsumes pr-pipeline: re-fire PR-lane runs lost to a broker 5xx or token 403 #8446 (re-fire runs lost to a broker 5xx / token 403).
  2. Scheduled dispatch so lost webhooks are covered: pr-pipeline: unblock lane PRs when main is quiet #8447 (pr-unblock-dispatch on a schedule); pr-merge already has a cron.
  3. Retry hygiene: API callers honor retry-after / x-ratelimit-reset, retry once with jitter, never exponential.
  4. Degraded flag (only if 1-3 are not enough): a shared flag that pauses new dispatches and admissions during an incident. Deferred: queued runs survive an incident, and the reconciler handles what ends badly, so the flag adds a moving part without a measured need yet.

Demotion is unchanged (owner, 2026-10-19): incident failures still count red and the owner closes the record.

Related

#8446, #8447, #8445; GitHub Support limits dashboard.

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 19, 2026
  2. kyle-sexton commented on Oct 19, 2026

    @kyle-sexton
    MemberAuthor

    Trigger for step 4 (GitHub Support, agreed): without the degraded flag, new work (admissions, scheduled dispatches) still starts during an incident; today sessions held it by hand. Build step 4 if a later incident shows new-work dispatch extending the backlog beyond what the reconciler absorbs, measured on the limits panel as queued vs in-progress jobs.

  3. github-actions commented on Oct 19, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: structural
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  4. added
    needs-human
    and removed
    needs-triage
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-human

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions