From 65e737ff2c54de4114fbf8652c31bba56a90fc91 Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Sun, 15 Nov 2026 13:29:09 -0600 Subject: [PATCH] test(ecs): forward SIGTERM to image-pull fixtures (#8497) EcsImagePullDockerIntegrationTest's fixture runs sleep 120 as the container's PID 1, which ignores SIGTERM, so every task stop waited out Docker's kill timeout. The fixture's task definition now sets linuxParameters.initProcessEnabled, which runs the container with docker run --init, so the stop ends as soon as the signal arrives. The assertions are unchanged. --- .../aws/services/ecs/EcsImagePullDockerIntegrationTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/test/java/io/floci/aws/services/ecs/EcsImagePullDockerIntegrationTest.java b/src/test/java/io/floci/aws/services/ecs/EcsImagePullDockerIntegrationTest.java index 4e2af6be61..60a4ae45e3 100644 --- a/src/test/java/io/floci/aws/services/ecs/EcsImagePullDockerIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/ecs/EcsImagePullDockerIntegrationTest.java @@ -160,6 +160,8 @@ class EcsImagePullDockerIntegrationTest { app.setName("app"); app.setImage(image); app.setCommand(List.of("sleep", "120")); + // Forward SIGTERM to the sleeping fixture so task cleanup can finish promptly. + app.setUnparsed(Map.of("linuxParameters", Map.of("initProcessEnabled", true))); return ecsService.registerTaskDefinition("pull-" + UUID.randomUUID().toString().substring(0, 8), List.of(app), NetworkMode.bridge, null, null, null, null, null, REGION); }