← Back to Pull requests

ci/gpu: scale L4 runner pool to 8 and path-filter GPU presubmits #897

Merged
codebot-robot merged 2 files (52 lines) on Nov 26, 2026 23:10 UTC
View on GitHub
codebot-robot codebot-robot commented on Nov 26, 2026 17:25 UTC
Author

Fixes #893

Diff: 52 lines (+49 / -3) across 2 files Reviewer: justinsb Review duration: 345m
All Vouch review confidence checks passed
Residual risk 0.04 = Change Risk (0.28) × (1 − Review Confidence (0.86)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.28 · 52 lines diff across 2 files
0.28
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.89 · 3 substantive comment(s)
0.89
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
85%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.238
Real PR Conversation Timeline
8 items
kube-agents-bot[bot] kube-agents-bot[bot] commented on Nov 26, 2026 17:25 UTC
Bot

<!-- kube-agents-bot:intro -->
Hello, I'm kube-agents-bot 👋 I read
pull requests here and flag what looks wrong. I've started on this one — I'll post my
findings in a few minutes, or tell you I found none.

| Command | What it does |
| --- | --- |
| /review | The strict read of the current commit: what I'm certain of, plus a high-severity finding just under that bar, marked as such. |
| /review all | The same read, kept wider — findings I checked and believe are real as well as the ones I'm certain of. This is what my first review of a pull request does. |
| /review fresh | Reads the commit again from scratch. Without it, a command on a commit I have already read re-cuts that read at the bar you asked for instead of reading again — same findings, other bar, no cost — and says so. |

Comment any of them on a line of its own. Repository owners, members and collaborators only.

Worth knowing:

  • I review automatically when a pull request is opened, reopened, or marked ready for

  • review
    . Pushing more commits does _not_ start a new review — comment /review when
    you want another look, or /review all for one as wide as the first. The one
    exception: if I said the branch doesn't merge, I'll start on my own after your next push.
  • I always say when I'm done, even when I found nothing — so a review that finishes

  • clean gets a short "no findings" note rather than silence, saying how I read the change
    and how many possible issues I checked on the way. The 👀 means I've started; a comment
    from me means I've finished. If you get 👀 and nothing follows, I broke.
  • I only comment. I never push code, never merge, and I am not a required approval.

  • Low-severity items I confirm — a literal that could be named, a sentence a change made

  • stale — are folded into a collapsed list in my summary, not posted as findings, and
    don't count against the review. Whether to act on them is your call; nothing waits on
    them.
  • I judge a change against the code, against any principles this repository has

  • written down and pointed me at, and with the review method it has nominated, if it
    has one. Whether a feature or a design should exist at all is
    a human's call — a review from me saying nothing about that is not an endorsement.
  • Label a pull request agent:ignore and I will leave it alone entirely, /review

  • included.
  • I can be wrong. Check anything I say before acting on it.
  • kube-agents-bot[bot] kube-agents-bot[bot] commented on code on Nov 26, 2026 17:30 UTC
    Code Review
    .github/workflows/gpu-presubmits.yaml:1
    @@ -18,7 +18,35 @@ on:
       push:
         branches:
           - main
    +    paths:
    +      - 'vxpu/python/**'
    +      - 'vxpu/proto/**'
    +      - 'vxpu/pkg/api/**'
    +      - 'vxpu/pkg/kernelplan/**'
    +      - 'vxpu/pkg/planner/**'
    +      - 'vxpu/pkg/stepplan/**'
    +      - 'vxpu/pkg/machines/**'
    +      - 'vxpu/cmd/vxpu/**'
    +      - 'vxpu/images/executor/**'
    +      - 'vxpu/third_party/**'
    +      - 'dev/ci/gpu/**'
    +      - 'dev/ci/test_runner.py'
    +      - '.github/workflows/gpu-presubmits.yaml'
       pull_request:
    +    paths:
    +      - 'vxpu/python/**'
    +      - 'vxpu/proto/**'
    +      - 'vxpu/pkg/api/**'
    +      - 'vxpu/pkg/kernelplan/**'
    +      - 'vxpu/pkg/planner/**'
    +      - 'vxpu/pkg/stepplan/**'
    +      - 'vxpu/pkg/machines/**'
    +      - 'vxpu/cmd/vxpu/**'
    +      - 'vxpu/images/executor/**'
    +      - 'vxpu/third_party/**'
    +      - 'dev/ci/gpu/**'
    +      - 'dev/ci/test_runner.py'
    +      - '.github/workflows/gpu-presubmits.yaml'
     

    🟠 Medium · behaviour — *Path filter on gpu-presubmits.yaml leaves out vxpu/pkg/ packages and vxpu/go.mod that the GPU test suite compiles

    .github/workflows/gpu-presubmits.yaml now limits its push and pull_request triggers to a fixed list of paths. Under vxpu/pkg/ that list has five packages (api, kernelplan, planner, stepplan, machines), and it also includes vxpu/cmd/vxpu/. The job runs dev/ci/gpu/test-vxpu-gpu, which does more than those paths cover:

  • It builds ./cmd/vxpu (line 132).

  • It runs TestCompilerClient_ThroughRealAgentAndService and TestReadSegments_ReadsWrites_Tiny in ./pkg/kernelplan (lines 186 and 214).

  • It runs TestCmdPlanPackages_BuildThroughService and TestCmdPlanEmit_TinyDeepSeek in ./cmd/vxpu (lines 200 and 229).
  • Those targets import packages under vxpu/pkg/ that the filter does not list:

  • vxpu/pkg/agent: imported by vxpu/pkg/kernelplan/compiler_test.go:42 and vxpu/cmd/vxpu/plan_test.go:42. These tests start the real agent for the L4 acceptance runs.

  • vxpu/pkg/weightstore: imported by vxpu/pkg/kernelplan/segment.go:35, vxpu/pkg/kernelplan/compiler_test.go:45, vxpu/cmd/vxpu/plan.go:38 and vxpu/cmd/vxpu/main.go:46.

  • vxpu/pkg/collections: imported by vxpu/pkg/kernelplan/compiler.go:34.

  • vxpu/pkg/weightdisk: imported by vxpu/cmd/vxpu/disk.go:25 and vxpu/cmd/vxpu/disk_attach.go:28.

  • vxpu/pkg/capacity: imported by vxpu/cmd/vxpu/race.go:33.

  • vxpu/go.mod and vxpu/go.sum: these set the Go dependencies for all of the above.
  • A pull request or push to main that changes only these paths will not start GPU Presubmits. A regression in the agent, the weight store or a Go dependency then gets past both GPU presubmit and post-submit testing. The fix is to add these paths to both filters, or to widen the filter to vxpu/pkg/ plus vxpu/go.mod and vxpu/go.sum.

    _How often, as the check that scored this judged it: Any PR or push to main that touches only vxpu/pkg/{agent,weightstore,collections,weightdisk,capacity} or vxpu/go.mod/go.sum skips the job. This is ordinary development on a Go module, and Dependabot is configured in .github/dependabot.yml, so dependency-only changes are expected._

    <details>
    <summary>Prompt for a coding agent</summary>

    <pre>
    Verify this against the current code before changing anything.

    A code review reported the following against https://github.com/gke-labs/generation-ai/blob/186c455e757e44c180b7518249293cdc4cae3709/.github/workflows/gpu-presubmits.yaml#L21-L50:

    Path filter on gpu-presubmits.yaml leaves out vxpu/pkg/ packages and vxpu/go.mod that the GPU test suite compiles

    .github/workflows/gpu-presubmits.yaml now limits its push and pull_request triggers to a fixed list of paths. Under vxpu/pkg/ that list has five packages (api, kernelplan, planner, stepplan, machines), and it also includes vxpu/cmd/vxpu/*. The job runs dev/ci/gpu/test-vxpu-gpu, which does more than those paths cover:

  • It builds ./cmd/vxpu (line 132).

  • It runs TestCompilerClient_ThroughRealAgentAndService and TestReadSegments_ReadsWrites_Tiny in ./pkg/kernelplan (lines 186 and 214).

  • It runs TestCmdPlanPackages_BuildThroughService and TestCmdPlanEmit_TinyDeepSeek in ./cmd/vxpu (lines 200 and 229).
  • Those targets import packages under vxpu/pkg/ that the filter does not list:

  • vxpu/pkg/agent: imported by vxpu/pkg/kernelplan/compiler_test.go:42 and vxpu/cmd/vxpu/plan_test.go:42. These tests start the real agent for the L4 acceptance runs.

  • vxpu/pkg/weightstore: imported by vxpu/pkg/kernelplan/segment.go:35, vxpu/pkg/kernelplan/compiler_test.go:45, vxpu/cmd/vxpu/plan.go:38 and vxpu/cmd/vxpu/main.go:46.

  • vxpu/pkg/collections: imported by vxpu/pkg/kernelplan/compiler.go:34.

  • vxpu/pkg/weightdisk: imported by vxpu/cmd/vxpu/disk.go:25 and vxpu/cmd/vxpu/disk_attach.go:28.

  • vxpu/pkg/capacity: imported by vxpu/cmd/vxpu/race.go:33.

  • vxpu/go.mod and vxpu/go.sum: these set the Go dependencies for all of the above.
  • A pull request or push to main that changes only these paths will not start GPU Presubmits. A regression in the agent, the weight store or a Go dependency then gets past both GPU presubmit and post-submit testing. The fix is to add these paths to both filters, or to widen the filter to vxpu/pkg/** plus vxpu/go.mod and vxpu/go.sum.

    _How often, as the check that scored this judged it: Any PR or push to main that touches only vxpu/pkg/{agent,weightstore,collections,weightdisk,capacity} or vxpu/go.mod/go.sum skips the job. This is ordinary development on a Go module, and Dependabot is configured in .github/dependabot.yml, so dependency-only changes are expected._

    First confirm the mechanism described is still present in the current code. If it is, make the smallest change that resolves it and add or adjust a test that would have caught it. If it is not, report that and change nothing.
    </pre>

    </details>

    kube-agents-bot[bot] kube-agents-bot[bot] commented on Nov 26, 2026 17:30 UTC
    Reviewer

    Found 1 issue, left inline on the changed lines.

    _This was a wider pass: as well as what I am certain of, it includes findings I checked and believe are real without being sure. Comment /review for a stricter re-read._

    ---

    Automated review by kube-agents-bot 6e585df on kube-agents-bot-gke.
    Triggered by this pull request being opened; read 186c455 as merged into main.

    <sub>React 👍 if this was useful, 👎 if it was not. Add the agent:ignore label to opt this pull request out.</sub>

    justinsb justinsb commented on Nov 26, 2026 22:17 UTC
    Reviewer

    (Automatic review) At 186c455e757e44c180b7518249293cdc4cae3709: values-runner-set.yaml is clean, and the path-filter direction is right, with one real finding from kube-agents-bot (thread 4711734108):

    1. dev/ci/gpu/test-vxpu-gpu builds ./cmd/vxpu and runs tests that import vxpu/pkg/agent, vxpu/pkg/weightstore, vxpu/pkg/collections, vxpu/pkg/weightdisk, and vxpu/pkg/capacity (plus vxpu/go.mod and vxpu/go.sum). Add those paths to both push.paths and pull_request.paths in .github/workflows/gpu-presubmits.yaml (so router, PKI, docs, experiments, and modelstore PRs still skip the GPU job, while packages compiled by test-vxpu-gpu trigger it), and reply on the bot thread.

    codebot-robot codebot-robot commented on code on Nov 26, 2026 22:20 UTC
    Code Review
    .github/workflows/gpu-presubmits.yaml:1
    @@ -18,7 +18,35 @@ on:
       push:
         branches:
           - main
    +    paths:
    +      - 'vxpu/python/**'
    +      - 'vxpu/proto/**'
    +      - 'vxpu/pkg/api/**'
    +      - 'vxpu/pkg/kernelplan/**'
    +      - 'vxpu/pkg/planner/**'
    +      - 'vxpu/pkg/stepplan/**'
    +      - 'vxpu/pkg/machines/**'
    +      - 'vxpu/cmd/vxpu/**'
    +      - 'vxpu/images/executor/**'
    +      - 'vxpu/third_party/**'
    +      - 'dev/ci/gpu/**'
    +      - 'dev/ci/test_runner.py'
    +      - '.github/workflows/gpu-presubmits.yaml'
       pull_request:
    +    paths:
    +      - 'vxpu/python/**'
    +      - 'vxpu/proto/**'
    +      - 'vxpu/pkg/api/**'
    +      - 'vxpu/pkg/kernelplan/**'
    +      - 'vxpu/pkg/planner/**'
    +      - 'vxpu/pkg/stepplan/**'
    +      - 'vxpu/pkg/machines/**'
    +      - 'vxpu/cmd/vxpu/**'
    +      - 'vxpu/images/executor/**'
    +      - 'vxpu/third_party/**'
    +      - 'dev/ci/gpu/**'
    +      - 'dev/ci/test_runner.py'
    +      - '.github/workflows/gpu-presubmits.yaml'
     

    Added vxpu/go.mod, vxpu/go.sum, vxpu/pkg/agent/, vxpu/pkg/capacity/, vxpu/pkg/collections/, vxpu/pkg/fileutil/ (imported by vxpu/pkg/agent), vxpu/pkg/weightdisk/, and vxpu/pkg/weightstore/ to both push.paths and pull_request.paths in 246ce2c. Verified against go list -test -deps ./cmd/vxpu ./pkg/kernelplan that all compiled packages match while router, PKI, blobserver, docs, experiments, and modelstore still skip the GPU job.

    justinsb justinsb approved these changes on Nov 26, 2026 22:46 UTC
    Approved Reviewer

    (Automatic review) At 246ce2c: added the remaining vxpu/pkg/* packages and vxpu/go.{mod,sum} compiled by test-vxpu-gpu to the path filter, replied on kube-agents-bot thread 4711734108 (0 unanswered threads). All 10 non-GPU checks and zizmor pass; workflow/runner-values only (test-vxpu-gpu passed on 186c455 and is queued on 246ce2c).

    justinsb justinsb approved these changes on Nov 26, 2026 22:50 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    codebot-robot codebot-robot
    Labels
    risk: low confidence: 85.7% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 28.2% (LOW) · Higher = larger blast radius
    28.2%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 85.7% · Lower = rushed or shallow review
    85.7%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 4% · Safe to merge
    4%