Skip to content

perf(ci): run only the required checks on the release PR #4637

Closed

Description

@dan-petty

Problem or Motivation

The release PR changes only .release-please-manifest.json, CHANGELOG.md, pyproject.toml and uv.lock. Each image path filter holds pyproject.toml and uv.lock, so each push to the release PR runs the full graph of 25 jobs.

On 2026-11-11, 41 of 157 PR pushes were pushes to the release PR, and the next merge cancelled 33 of these 41 runs (measured). 17 release-PR runs used 540 runner-min, and 279 runner-min of that were in cancelled runs (measured).

release.yml already builds, smoke-tests and scans each image before it publishes the image. ADR 0004 names a strict policy and an update-prs.yml that do not exist.

Saving: About 15 jobs and 55 runner-min per merge when the release run completes (estimated).

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

  • Add !startsWith(github.head_ref, 'release-please--') to the if: of each job that is not required: devcontainer, service-image, service-image-test, runner-image, mcp-server-image, changed-tests and the path checks that are still in ci.yml.
  • Keep Static Analysis, the test shards, Tests & Coverage, Semantic PR title and CodeQL.
  • In the same PR, mark ADR 0004 as superseded by ADR 0014 (AGENTS.md rule 8).
  • Do not change release.yml or the release-please trigger.

Risk: A defect that only a combined image build shows appears at publish time in release.yml, not on the release PR.

Target Subsystem

SDLC, Git & PR Governance (.github/workflows/ci.yml, docs/adr/0004-ci-is-the-authoritative-gate.md).

Existing Tool Considered

GitHub Actions job conditions on github.head_ref (native). No new tool. Cost: about 20,000 tokens and 1 hour.

Acceptance Criteria

  • A push to the release PR starts 9 jobs or fewer (from 25).
  • The 3 required checks report on the release PR.
  • release.yml does not change.
  • ADR 0004 has a Status line that names ADR 0014.

Dependencies

None.

Activity

  1. added
    source/agent
    type/infra
    scope/ci
    status/new
    value/medium
    effort/low
    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. Saves runner-minutes and queue time but does not block correctness or security.
    • Value: Medium. Reduces wasted runner-minutes and shortens the PR queue for all contributors.
    • Effort: Low. Add one if-condition to seven jobs and update one ADR status line.
    • Related: chore(github): required CI checks bind merges into release and main, and ADR 0004 records the verification policy #842, which asks for a different change. Both concern which CI checks apply to the release branch, but #842 configures merge-gate requirements while this candidate reduces which jobs run on the release PR.
  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 15:46 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/lowpriority/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