Skip to content

perf(ci): scan the images of the Runner Image job in parallel #7236

Description

@dan-petty

Problem

The pull-request check Runner Image of ci.yml runs its three image scans and its three smoke tests one after the other. In 4 runs on 2026-11-25 the job took 274, 302, 338 and 365 s, and the three scans took 90, 112, 146 and 144 s of it. The limit of AGENTS.md rule 5 is 360 s.

In run 45690504558 the scan of the runner image took about 77 s: about 50 s to read the image, 16 s to download the Java database (959 MiB) and 7 s to match.

Change

Run the scans as background steps (GitHub parallel steps) so that they overlap each other and the smoke tests, and wait for all of them before the job ends. Each scan gets its own Trivy cache directory, because one cache directory serves one process.

The images, the severities, the exit codes, the ignore file and the SARIF categories do not change.

Proof

  • The Runner Image job of the pull request that makes the change takes less time than the runs above, each scan passes and uploads its SARIF, and the UV seed smoke test stays inside its 60 s timeout.

Activity

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

    @dan-petty
    OwnerAuthor
    • Priority: One of four runs exceeds the 360 s limit, causing performance degradation in CI.
    • Related: perf(ci): bring the Runner Image check under 6 minutes #7205, which asks for a different change. Both target the Runner Image job runtime, but #7205 was a closed general time goal and the candidate adds a specific parallel-scan change.
  3. added
    value/medium
    effort/medium
    priority/p1-high
    owner/agent
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 25, 2026
  4. removed
    status/in-review
    owner/agent
    on Nov 25, 2026
  5. devops-cli-service commented on Nov 25, 2026

    @devops-cli-service
    Contributor

    Live since 2026-11-25 21:28 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/p1-highscope/cisource/agenttype/infravalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions