Repository navigation
feat(container): Kubernetes Job backend for per-case containers - #695
Open
prernakakkar-google wants to merge 3 commits into
Open
prernakakkar-google wants to merge 3 commits into
prernakakkar-google wants to merge 3 commits into
Conversation
prernakakkar-google
requested review from
IsmailMehdi and
helloeve
as code owners
November 2, 2026 16:55
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Third part of running each agent eval case in its own container. Builds on #694 (case runner and backend interface).
Adds
KubernetesJobBackend, which runs each case as a Kubernetes Job on a dedicated worker node pool. Nothing calls it yet, so there is no behaviour change. The evaluator wiring follows in the next PR.How it works
Each case becomes a ConfigMap holding its spec plus a Job, pinned to a worker pool. The result comes back through the pod's logs: the cluster's PVC is ReadWriteOnce, so there's no filesystem shared across nodes.
Designed for hundreds of concurrent cases
Safe defaults
:latestis pushed mid-run, and the case runner always matches the orchestrator.kubernetes>=36.0.3,<37. It's loaded only when this backend is constructed, so other runs never import it. Capped below 37, which pulls in a pydantic upgrade.Testing
container_k8s_backend_test.py, built on realV1Job/V1ConfigMapobjects with the API mocked. They cover the manifest, ownership, image resolution, preflight, the orphan sweep, every wait outcome (including "five waiting cases cost one LIST") and cleanup.uv lock --checkpasses.Notes for reviewers
evalbench-case-ksaservice account this needs come in the deploy PR. Until then nothing calls this backend.