Skip to content

perf(ci): move the four path checks into filtered workflows #4653

Closed
0 of 1 issue completed
Closed

Description

@dan-petty

Problem or Motivation

Rule Pack Tests, Third-Party Image Scan, Image Pins and Docs Site Build test their paths in a step. Thus each one takes a runner on each PR push. In 61 PR runs, they did work in 0, 0, 12 and 39 runs. Each one waited 9.4-11.3 min in the queue for 0.09-0.30 min of work (measured). None of them is a required check.

Saving: 3.2 jobs per push on average (measured work rates). That is about 500 job starts per day, and each one waited about 10 min in the queue.

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

  • Move each job into its own workflow file with on.pull_request.paths equal to its current filter. Keep each job name.
  • fail-to-pass.yml:8-14 already uses this native filter (AGENTS.md rule 3).
  • Remove the in-step filters.
  • Update the parity allowlists in tests/commands/test_ci.py:2295-2319 and tests/invariants/test_workflow_contracts.py:485.
  • The third-party scan stays report-only.

Risk: Low. A workflow that its filter skips reports no check, and none of the four checks is required.

Target Subsystem

SDLC, Git & PR Governance (.github/workflows/, tests/commands/test_ci.py, tests/invariants/test_workflow_contracts.py).

Existing Tool Considered

The native on.pull_request.paths filter of GitHub Actions. A dorny/paths-filter step still takes a runner, so it does not solve this. No new tool. Cost: about 40,000 tokens and 2 hours.

Acceptance Criteria

  • Over one day, these checks start 0.84 jobs per push on average (from 4).
  • Each check keeps its name.
  • A PR that changes no path of a filter gets no run of that workflow.
  • The third-party scan stays report-only.

Dependencies

None.

Sub-issues

Sub-issues

0 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    source/agent
    type/infra
    scope/ci
    status/new
    value/high
    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. It saves about 500 job starts per day but no check is blocked or failing.
    • Value: High. Reducing 3.2 wasted job starts per push shortens queue wait for every PR.
    • Effort: Low. The body estimates 40,000 tokens and 2 hours of work across four workflow files and two test files.
    • Related: perf(ci): run only the required checks on the release PR #4637, which asks for a different change. Both reduce unnecessary CI job starts on PRs, but #4637 targets the release PR while this candidate targets all PRs for four specific checks.
  3. added
    priority/p2-medium
    owner/agent
    on Nov 11, 2026
  4. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 12, 2026
  5. removed
    status/in-review
    owner/agent
    on Nov 12, 2026
  6. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor
  7. devops-cli-service commented on Nov 12, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-12 06:05 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions