mirror of
https://github.com/docker/compose.git
synced 2026-11-17 21:57:19 +00:00
The per-container inspect of the previous fix doubled the suite's wall-clock on the containerd CI job — one docker CLI process per container per snapshot — pushing it past go test's default 10m and killing the run mid-flight. Snapshots go back to one batch inspect, falling back to individual inspects only when the batch fails because a helper container vanished. The e2e make targets also pass an explicit -timeout 20m so a slow job fails on its own results, not on the default timeout. TestUpStopWithLogsMixed becomes deterministic: with a bounded ping the service could exit on its own before the abort reached it and the pre_stop hook never ran; it now pings forever so the abort always interrupts it. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
10 lines
201 B
YAML
10 lines
201 B
YAML
services:
|
|
service1:
|
|
image: alpine
|
|
command: sh -c "sleep 2"
|
|
service2:
|
|
image: alpine
|
|
init: true
|
|
command: ping localhost
|
|
pre_stop:
|
|
- command: echo "stop hook running..."
|