Skip to content

perf(ci): build the devcontainer only on its own inputs #4658

Closed

Description

@dan-petty

Problem or Motivation

DevContainer Image builds in 51 of 61 pushes, because its filter holds src/. Each build takes 4.66 min, after 6.0 min in the queue (measured). The image installs the CLI with --no-deps (.devcontainer/Dockerfile:318-321). The uv build of Static Analysis and the Service image already prove the package.

Owner decision O2 (2026-11-11): the DevContainer image builds only on its own inputs, plus the schedule. Update the guard test_image_path_filter_covers_dockerfile_sources.

Saving: About 4.7 runner-min and 1 job on about 85% of topic pushes (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

  • Trigger the build on its inputs other than src/, on the schedule, and on workflow_dispatch.
  • The filter must stop the job before it starts: use a job-level condition or a filtered workflow, not a step filter.
  • Change test_image_path_filter_covers_dockerfile_sources (tests/invariants/test_architectural_invariants.py:679) in the same PR. The guard proves that the filter holds each input of .devcontainer/Dockerfile other than src/.

Risk: Low-medium. A src/ change that breaks devops --version under the devcontainer Python shows only on the schedule run.

Target Subsystem

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

Existing Tool Considered

GitHub Actions path filters and schedule (native), or dorny/paths-filter (already pinned). No new tool. Cost: about 20,000 tokens and 1 hour.

Acceptance Criteria

  • A push that changes only src/ starts no DevContainer job.
  • The schedule run builds the image.
  • The changed guard passes, and it fails when an input other than src/ is missing from the filter.

Dependencies

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

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. It saves runner time and reduces queue wait but does not fix a broken behaviour.
    • Value: Medium. Saves about 4.7 runner-min and one job start on roughly 85% of topic pushes.
    • Effort: Low. The body estimates about one hour and 20,000 tokens of work.
    • Related: perf(ci): move the four path checks into filtered workflows #4653, which asks for a different change. Both use filtered workflows to stop path-triggered CI jobs from starting, but the candidate targets the DevContainer image build while #4653 targets four other path-check jobs.
  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/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