Skip to content

feat(pr-pipeline): record lane setup time and move to prebuilt images when installs dominate #7785

Closed as not planned

Description

@kyle-sexton

Lanes install dependencies on demand today (bubblewrap/socat, and Python/pytest or Playwright only when asked). Owner (2026-10-17): fine while installs are quick and cheap; apps with heavy dependencies may need Docker images later.

Done when

  • The lane record carries each run's setup duration.
  • When setup exceeds a threshold (proposal: over about a minute per run or over 10% of run time; judgment, to confirm from data) or installs start flaking, switch that lane or repo to a prebuilt image: an upstream official image first (e.g. mcr.microsoft.com/playwright, per https://playwright.dev/docs/ci), our own GHCR image only when no upstream one fits.
  • App repos that need many services use Docker Compose images on the hosted runner (Docker and Compose ship on ubuntu-24.04 per actions/runner-images).

Notes

Own image costs about 4 moving parts (Dockerfile, build workflow, registry credentials, pin and repin per caller, plus patch rebuilds). Unverified: claude-code-action inside a job container, and Docker access from inside one. Research: .work/automation-lanes/LANE-ENVIRONMENT-RESEARCH.md (local).

🤖 Generated with Claude Code

Activity

  1. added
    needs-triage
    on Oct 17, 2026
  2. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    Thanks for the report. Automated triage handed this issue to a maintainer.

    Proposed work class: work-class: structural
    Basis: automated intake triage; a maintainer confirms or changes it.

    Automated triage. A maintainer reviews it.

  3. added
    needs-human
    and removed
    needs-triage
    on Oct 17, 2026
  4. kyle-sexton commented on Oct 21, 2026

    @kyle-sexton
    MemberAuthor

    Setup time, measured from existing run data (2026-10-21)

    Sample: the 17 most recent work-resolve-issue.yml runs that ran the agent (job "resolve-issue / run"). The figures are step timings from the Actions jobs API, so no new recorder was needed.

    Measure Value
    Setup per run (install + set-up steps) median 20 s, p90 24 s, max 85 s (1 of 17 over 60 s; run 39528930789, where "Install the skill's dependencies" took 81 s)
    Setup share of job time median 10.4% (job median 165 s; skill step median 104 s); 4% on the longest run
    Biggest setup step "Install the skill's dependencies", about 18.6 s average

    "Isolate the runner" (median 8 s) is not counted above.

    Against this issue's thresholds:

    • Over ~60 s per run: not met.
    • Over 10% of run time: borderline, and only on short runs.
    • Install flakes: none observed in this sample.

    Recommendation: build no setup-duration recorder and no prebuilt image now. Step timings already answer the question whenever it is asked again. Reopen trigger: median setup over 60 s, or failures in the dependency-install step. The decision goes to the owner in the hub interview.

  5. kyle-sexton commented on Oct 21, 2026

    @kyle-sexton
    MemberAuthor

    Closed by the owner's decision (2026-10-21, W-90): measured setup is median 20 s per run (see the measurement comment above), and the Actions jobs API already answers the question on demand, so neither a recorder nor a prebuilt image is built. Reopen trigger: median setup over 60 s, or failures in the dependency-install step.

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

    needs-human

    Fields

    No fields configured for Feature.

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions