Skip to content

CI: cancel superseded PR runs and move the full OS x Python matrix to nightly/main (PR CI 2h -> minutes) #4518

Closed

Description

@squid-protocol

Problem

A PR's CI went from ~10 minutes to 2+ hours on 2026-10-05. Each PR triggers ~40 check runs, and the repo gets only 2–3 concurrent Actions runners: 68 runs were queued at peak, and jobs were cancelled after waiting ~30–55 min for a runner. Two avoidable sources:

  1. Superseded runs keep running. No PR workflow sets concurrency: cancel-in-progress, so every push leaves its previous push's ~15–40 runs in the queue.
  2. The full OS × Python matrix runs on every PR (Full Suite Gate, 3 OS × 3 Python, ~45–55 min per leg, plus the 12-leg smoke matrix).

Acceptance criteria

  • Every pull_request workflow has concurrency: { group: <workflow>-${{ github.event.pull_request.number || github.ref }}, cancel-in-progress: true }, scoped per workflow and per PR so different workflows and PRs never cancel each other. Push-to-main and scheduled runs are never cancelled. The det-sweep workflow is excluded here; Det sweep speed-up: shards, affected-cases-only, COBOL cache (#4463 follow-up, closes #4476) #4497 rewrites it and adds this.
  • Full Suite Gate (All OS × Python) runs on push to main, nightly (schedule) and workflow_dispatch, but not on every PR. PRs keep the Linux full-suite job and a lean smoke set (each OS on the newest Python, plus Linux on the oldest supported Python).
  • Required-check names that branch protection or the auto-merge automation expects still report on PRs (check which names are required and keep them, or say exactly what has to change in the repo settings).
  • The PR body lists the per-PR check count before and after.

Follow-up (after #4497 merges): split tests/equivalence/det_sweep_baseline.json into per-case files so parallel det PRs stop conflicting on it.

🤖 Generated with Claude Code

Activity

  1. added
    ci-cd
    priority: high
    on Oct 5, 2026
  2. squid-protocol commented on Oct 5, 2026

    @squid-protocol
    OwnerAuthor

    Correction from the orchestrator: the per-PR concurrency: cancel-in-progress was already on all 28 pull_request workflows. The real cause was full-suite-gate.yml firing on every PR through pull_request: [labeled] (so every label added started a 9-leg OS x Python matrix), with cancel-in-progress: false on purpose (#3343). Fixed in PR #4519 by moving that gate to main/nightly/tags/dispatch and trimming PR smoke legs: 18 -> 5 checks per PR for those two workflows.

    🤖 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

    ci-cdperformancepriority: highscope:infra

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions