Skip to content

perf(ci): test each merge once, on the main push #4639

Closed

Description

@dan-petty

Problem or Motivation

Each merge runs the tests on the main push (7 jobs, 28.1 runner-min when the run completes) and also on the release PR. The next merge cancels most of both: 38 of 50 main runs and 33 of 41 release runs (measured).

Owner decision O3 (2026-11-11): amend ADR 0014 to test each merge once, on the main push. The release PR runs only the required checks and reads the result of main. The release-please trigger stays as it is.

Saving: 7 jobs and 28 runner-min per merge (measured job times).

Found by the CI and test audit of 2026-11-11. The account runs at most 20 hosted jobs at one time (measured), so each job that does no work makes the queue of each pull request longer.

Proposed Solution & Architectural Design

  • Amend ADR 0014 with decision O3: each merge gets one test run, on the main push. The status of the release PR still shows a defect on main, because it reads that run.
  • On the release PR (head ref release-please--*), the test shards do not run. The Tests & Coverage check reads the conclusion of Tests & Coverage in the main push run of the base commit of the release PR, and it reports that conclusion.
  • Decide in the design how a merge treats the main run before it: the main run completes (cancel only PR runs), or the release PR reads the newest completed main run. Record the choice in ADR 0014.
  • job-time reads the main push runs.
  • Do not change the release-please trigger, release.yml or the required checks.

Risk: Low-medium. job-time must read another history. A release PR whose base run did not complete must wait or read an older run.

Target Subsystem

SDLC, Git & PR Governance (docs/adr/0014-required-checks-gate-the-merge-and-the-pre-push-hook-runs-the-fast-static-checks.md, .github/workflows/ci.yml, src/devops_cli/github/client.py).

Existing Tool Considered

GitHub Actions job conditions and the GitHub REST API for workflow runs, through the existing client. No new tool. Cost: about 50,000 tokens and 4 hours.

Acceptance Criteria

  • Each merge starts one test run.
  • The release PR starts no test shard, and its Tests & Coverage check fails when the main test run of its base failed.
  • ADR 0014 records the choice.
  • job-time reads that run.

Dependencies

Depends on #4634 and #4637.

Activity

  1. added
    source/agent
    type/infra
    scope/ci
    status/new
    value/medium
    effort/medium
    on Nov 11, 2026
  2. dan-petty commented on Nov 11, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones.

    • Type: type/infra. The perf prefix of the title gives the type.
    • Scope: scope/ci. The (ci) scope of the title gives the scope.
    • Priority: P2-Medium. It saves 28 runner-min per merge and shortens PR queue time, but does not block delivery or fix a defect.
    • Value: Medium. It reduces wasted CI minutes and queue delay for every merge, but adds no user-facing capability.
    • Effort: Medium. It requires an ADR amendment, workflow condition changes, a job-time client update, and an edge-case design decision for incomplete main runs.
    • Related: perf(ci): run only the required checks on the release PR #4637, which asks for a different change. Both stem from the 2026-11-11 CI audit and decision O3, but #4637 reduces the job graph on the release PR while this candidate eliminates test shards on the release PR and reads the main push result.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 11, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  5. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 12:40 UTC

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

    effort/mediumpriority/p2-mediumscope/cisource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions