Skip to content

perf(ci): run the in-image suite nightly and on image PRs #4644

Closed

Description

@dan-petty

Problem or Motivation

Service Image Tests runs the same 22,733 tests with the same 10 skips as Tests & Coverage. It uses 6 jobs and 41.7 runner-min per push, which is 49% of the CI runner-min of a PR push (measured). In 100 failed PR runs, it found no test failure that Tests & Coverage did not find. Its one unique failure was in its own dependency step (measured). When #4425 added it, it found 5 test-only host assumptions. Its shards average 368-507 s, which is more than the 300 s rule.

Owner decision O1 (2026-11-11): Service Image Tests runs nightly, on workflow_dispatch, and on PRs that change image inputs other than src/. This reverses Direction B of #1643.

Saving: 6 jobs and 41.7 runner-min per push (measured). Alone, it takes the queue model at the rate of 2026-11-11 from 26.7 to 8.8 min of mean wall time.

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

  • Run the full in-image suite on the daily schedule, on workflow_dispatch, and on PRs that change image inputs other than src/: Dockerfile, .dockerignore, pyproject.toml, uv.lock and src/devops_cli/tools_lock (4 of 116 topic pushes on 2026-11-11).
  • The filter must stop the jobs before they start. A step filter still takes a runner. Use the native on.pull_request.paths filter in a workflow of its own, or a job-level if: on the output of one dorny/paths-filter step (the action that ci.yml already pins).
  • Change the chore(docker): Align service image base with devcontainer #1643 invariant (_service_image_test_job_problems in tests/invariants/test_architectural_invariants.py) so that it accepts these triggers and still requires the schedule trigger.
  • Optional: after its single build, the Service Image job runs only the tests that use real tools (the live, git and bwrap tests).
  • perf(ci): build the Service image once for its test shards #4642 changes how the shards get the image. The two items change the same job, so merge one of them first.

Risk: Medium-low. A src/ change that breaks only in the Python or OS of the image shows up to 24 h later, after the merge.

Target Subsystem

SDLC, Git & PR Governance (.github/workflows/ci.yml, tests/invariants/test_architectural_invariants.py).

Existing Tool Considered

GitHub Actions schedule, workflow_dispatch and path filters (native), or dorny/paths-filter (already pinned). No new tool. Cost: about 30,000 tokens and 2 hours.

Acceptance Criteria

  • A PR push that changes only src/ starts 0 Service Image Tests jobs (from 6).
  • The nightly run and each image-input PR run the full suite in the image.
  • The invariant test passes with the new triggers, and it fails when the schedule trigger is missing.

Dependencies

None. The owner decided O1 on 2026-11-11.

Activity

  1. added
    source/agent
    type/infra
    scope/ci
    status/new
    value/high
    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 41.7 runner-min per push and cuts mean wall time from 26.7 to 8.8 min, but it is an optimization, not a blocker.
    • Value: High. It removes 49% of PR-push runner-min and shortens the queue for every pull request.
    • Effort: Medium. It requires a new workflow or path filter, an invariant test update, and coordination with #4642; the body estimates about 2 hours.
    • Related: perf(ci): build the Service image once for its test shards #4642, which asks for a different change. Both modify the Service Image Tests job in ci.yml, but #4642 changes how the image is built (once vs per shard) while this candidate changes when the job triggers.
  3. added
    priority/p2-medium
    owner/agent
    status/in-progress
    and removed
    status/new
    on Nov 11, 2026
  4. removed
    status/in-progress
    owner/agent
    on Nov 11, 2026
  5. devops-cli-service commented on Nov 11, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-11 22:57 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/high

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions