Skip to content

pr-workflow takes about 20 minutes per run #3721

Open

Description

@EItanya

A pr-workflow run takes about 20 minutes, and a PR waits for two of them (the PR and the merge queue). Jobs don't wait for runners. The time is spent running steps one after another inside each job.

Medians over the last 60 PR runs:

Job Median Where the time goes
e2e-test, e2e-test (envoy, preview) 19 min ~5 min setup, then the gVisor lane (6 min) and the micro-VM lane (7.5 min) in sequence
run-tests 17 min unit tests 6.5 min, then hack/verify-all.sh 5.5 min

Proposed:

  1. Run verify-all.sh in its own job. run-tests drops to about 11 min.
  2. Run each sandbox class in its own e2e job. Each drops to about 12 min. A small job keeps reporting the existing required check names.

Together these should bring a run to about 12 to 13 minutes. Later steps: run the networking suite in parallel (#2687, the longest suite in both lanes), and parallelize the slowest unit-test packages (controlapi, controlapi/functionaltest, ate-setup/internal/steps, about 100 to 200s each, almost entirely serial).

Issue opened by Claude on behalf of Eitan Yarmush (@EItanya).

Activity

  1. ekam-walia commented on Nov 9, 2026

    @ekam-walia

    Hi Eitan Yarmush (@EItanya) Aditya Shantanu (@aditya-shantanu), I am happy to handle this issue
    Can you please assign this issue to me.

  2. EItanya commented on Nov 9, 2026

    @EItanya
    CollaboratorAuthor

    Hi Eitan Yarmush (@EItanya) Aditya Shantanu (@aditya-shantanu), I am happy to handle this issue
    Can you please assign this issue to me.

    Hey there, I already have 2 PRs covering it, but thank you

  3. BenTheElder commented on Nov 20, 2026

    @BenTheElder
    Collaborator

    Discussing with Eitan Yarmush (@EItanya) and working on some additional fixes ...

  4. BenTheElder commented on Nov 21, 2026

    @BenTheElder
    Collaborator
    Job Now (median) Before #3723/#3722/#4051
    Whole PR run 13.2 min ~20–24
    e2e microVM lanes 12.7 (max 14.5) 19–24, combined with gVisor in one job
    e2e gVisor lanes 11.5 (same job as above)
    run-tests 6.4 13.5
    verify 3.7 3.6, inside run-tests

    caches are now at 9.42GiB in use out of 10GB ceiling, about 4.9GB per commit. That's acceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

area/dev-infraarea/testsEnhancing / fixing test coverage.kind/featureAn enhancement / feature request or implementation

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions