You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design doc: https://docs.google.com/document/d/1QPi1NzlCq2_OXmT2-_bFdGF4eSE__KzkqjHjQKGGEzQ/
## Summary
End-to-end integration tests for the app-channel backend, covering the full production chain: caller → Python client → agent → workload channel → client-library adapter → vLLM Python API.
- **Channel workload pod**: vLLM embedded through its Python API (no HTTP server), registered with the agent via `register_workload()`. The client library under test and the workload script are mounted from a ConfigMap built by the harness, so pods run the exact code from the branch. Deterministic generations are driven through a file protocol; the readiness probe fires once the model is loaded and the workload registered.
- **Tests** (both suites address the workload by job ID alone — no endpoints):
- `VLLMChannelSleepWake` (standalone + k8s): generate → snapshot over the channel → VRAM freed → restore → identical generation.
- `VLLMChannelCompound` (standalone): channel suspend, then CUDA checkpoint of the suspended process, restored in reverse order, generation intact.
- `agentctl.py` grows `--backend channel`; harness gains ConfigMap/trigger helpers; runner RBAC adds `configmaps`.
Two workload-pod environment notes encoded in the pod spec: the workload script must not run from the ConfigMap mount (the client package's `types.py` would shadow the stdlib module), and `protobuf` must be upgraded past the image's pin to match the client's generated code.
## Testing
Full suite on H100 (image `snapshot-agent-app-aware:chan-b` = this branch + #88): **12/12 pass** — the 9 existing backend tests plus the 3 channel tests.
```
PASS TestK8s/CUDAWatcherDiscoveredPIDs, VLLMSleepWake, SGLangReleaseResume, VLLMChannelSleepWake
PASS TestStandalone/CUDACheckpointRestore, VLLMSleepWake, VLLMCompound, VLLMSuspendDiscard,
SGLangReleaseResume, SGLangCompound, VLLMChannelSleepWake, VLLMChannelCompound
```
Signed-off-by: Aishu Kamal <aishuk@google.com>
0 commit comments