Commit 20631e4
committed
LCORE-1873: Add container lifecycle integration tests
Add automated test suite for Llama Stack container build, startup, health
monitoring, configuration, and teardown operations. Tests verify Makefile
container orchestration targets work correctly across podman and docker.
Key features:
- Class-scoped managed container fixture
- Image ID-based idempotency verification (deterministic, container runtime cache-agnostic)
- Host-side HTTP health checks
- Parametrized mount point verification
- Destructive test ordering to prevent dev environment impact
- Proper cleanup of stale artifacts to prevent false positives
Test coverage:
- Build: Image creation and idempotency via SHA256 comparison
- Deployment: Container startup, health checks, port mapping, volume mounts
- Configuration: Custom port handling
- Teardown: Graceful stop, log persistence, full cleanup
- Error handling: Double-start replacement behavior
Signed-off-by: Anik Bhattacharjee <anbhatta@redhat.com>1 parent 6116ef7 commit 20631e4
4 files changed
Lines changed: 649 additions & 0 deletions
File tree
- .github/workflows
- tests/integration/container_lifecycle
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
31 | 33 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| 128 | + | |
128 | 129 | | |
129 | 130 | | |
130 | 131 | | |
| |||
220 | 221 | | |
221 | 222 | | |
222 | 223 | | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
223 | 228 | | |
224 | 229 | | |
225 | 230 | | |
| |||
0 commit comments