Skip to content

ci: archive and report red-main incidents, flake verdicts, cancellations and merges during red #2953

Closed

Description

@schlessera

Part of #2948 (task 5).

Blocked by #2942

Context

#2942 adds a red-main record in the shared reservation state, incident issues, strict flake verdicts and triage reruns, cancellations of doomed PR runs, a hosted gate, merge refusals and detection of merges during red. None of these are archived or reported yet.

Scope

Collect, as normalized records in the archive: each red-main record's lifecycle (opened, first bad SHA, failing tests and categories, verdict, incident issue, declared fixes, cleared); flake verdicts and triage rerun outcomes per test; PR runs cancelled or refused by the gate, with their runner minutes where known; merges that landed during red; and time to green per incident. Report them in the #2948 reports.

Out of scope

Acceptance criteria

  • A fixture red-main lifecycle produces one incident record with the correct time to green; proven by a test.
  • A fixture flake verdict followed by a second suspected flake on the same test shows the escalation to real.
  • Runner minutes saved by cancellation are reported, with unknowns counted separately.
  • A merge during red appears in the report with its PR number.

Verification

Focused collector tests against fixture records from #2942's schema.

Contract impact

None.

Activity

  1. added
    type: choreTooling, CI, release plumbing, dependencies.
    area: ciCI workflows, the gates they run, release scripts, packaging.
    agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Oct 25, 2026
  2. added this to the 0.45.0 milestone on Oct 25, 2026
  3. schlessera commented on Nov 2, 2026

    @schlessera
    OwnerAuthor

    Unblocked: #2942 is closed, so scripts/sync-project.ts is removing the blocked label.

  4. removed
    blockedWaiting on another issue or an upstream dependency. Say which in the body.
    on Nov 2, 2026
  5. self-assigned this
    on Nov 15, 2026
  6. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Claimed for implementation. Claim token: claim-d173573a. Branch: chore/2953-red-main-evidence.

    closure-only overlap with open PRs on the shared CI-script test closure; no path collisions

  7. schlessera commented on Nov 15, 2026

    @schlessera
    OwnerAuthor

    Delivered by #4013, squash 7e36fdc899408b12bb3774902a09a09c3eab146a on main, through candidate confirmation run 43731597350.

    • The hourly ci-timings collection now runs with --red-main. It writes red-main.json (each red-main record's lifecycle and every suspected flake, read through Git from the coordination ref) and coordinator-<run>-attempt-<n>.json (the coordinator's cancellations, read only for the hours main was red and seeded forward).
    • ci-timings report has a redMain section covering incidents with time to green, flake verdicts with escalation to real, PR runs cancelled or refused by the gate with consumed and estimated saved runner minutes (unknowns counted separately), and non-fix merges during red with their PR.
    • Each acceptance criterion has a focused fixture test in tests/ci-red-main.test.ts, with mutation receipts in the PR.
    • These records are not in the durable data ref yet; ci: archive CI evidence beyond GitHub retention and backfill the current artifacts #2955's compaction moves them there. ci: inventory every integration metric with its source, schema and status #2950's inventory should list the two new record kinds (version 1).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

agent-readyContext and acceptance criteria are complete enough for an agent to take this unattended.area: ciCI workflows, the gates they run, release scripts, packaging.priority: p1Scheduled into the current or next milestone.type: choreTooling, CI, release plumbing, dependencies.

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions