ci/gpu: scale L4 runner pool to 8 and path-filter GPU presubmits #897
<!-- 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:
review. Pushing more commits does _not_ start a new review — comment
/review whenyou want another look, or
/review all for one as wide as the first. The oneexception: if I said the branch doesn't merge, I'll start on my own after your next push.
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.
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.
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.
agent:ignore and I will leave it alone entirely, /reviewincluded.
🟠 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:
./cmd/vxpu (line 132).TestCompilerClient_ThroughRealAgentAndService and TestReadSegments_ReadsWrites_Tiny in ./pkg/kernelplan (lines 186 and 214).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:
./cmd/vxpu (line 132).TestCompilerClient_ThroughRealAgentAndService and TestReadSegments_ReadsWrites_Tiny in ./pkg/kernelplan (lines 186 and 214).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>
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>
(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.
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.
(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).
Approved these changes.
justinsb
codebot-robot
Fixes #893