Skip to content

CI minutes: Main Watch starts a run on every green completion on main (workflow_run can't filter on conclusion) #4959

Closed as not planned

Description

@squid-protocol

Sibling of #4935 (found by the Main Watch trim, PR #4958).

Class: workflow_run fan-in triggers that create runs with nothing to do.

Member State
shepherd reconcile fan-in thinned in #4936
Main Watch entries for workflows that never run on main none found; guard test in #4958
Main Watch success events with no ci-red-main issue open open (this issue)
other 14 Main Watch entries (push-time watches) all run on main and are acted on; dropping any loses post-merge-red signal (owner call)

Measured: Main Watch ran 239 times on 2026-10-11 (338 of 402 runs since 10-10 succeeded; most were successes with no red issue to close). workflow_run cannot filter on conclusion, so every green completion on main starts a run (~0.3 min each).

Options: (a) keep as is (~70 runner-min/day, immediate open+close); (b) trigger Main Watch only via a failure step inside the watched workflows, with the hourly reconcile closing issues on recovery (slower close, edits ~9 workflows); (c) move all detection into the hourly reconcile (slowest signal).

Needs an owner decision: whether faster red-issue closing is worth ~70 runner-min/day.

Part of #4847.

🤖 Generated with Claude Code

Activity

  1. added
    enhancement
    on Oct 12, 2026
  2. squid-protocol commented on Oct 13, 2026

    @squid-protocol
    OwnerAuthor

    Owner decision (2026-10-13): option (a), keep Main Watch as is. The repo is public, so the ~70 runner-min/day are free, and churn and the shepherd act on ci-red-main issues, so fast open/close is worth more than the trim. Revisit only if PR jobs start queuing behind Main Watch runs (20 concurrent-job limit).

    🤖 Generated with Claude Code

  3. added
    scope:infra
    on Oct 16, 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

    enhancementscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions