From 49b1770b8edff145911e701fc3cddf2814e421b0 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Fri, 1 May 2026 06:08:23 -0700 Subject: [PATCH] test(docker): install procps for plugin watchdogs --- scripts/e2e/Dockerfile | 7 ++++--- test/scripts/docker-build-helper.test.ts | 6 ++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/scripts/e2e/Dockerfile b/scripts/e2e/Dockerfile index 0c1be69bb3e..97ffec66df5 100644 --- a/scripts/e2e/Dockerfile +++ b/scripts/e2e/Dockerfile @@ -6,10 +6,11 @@ FROM node:24-bookworm-slim@sha256:e8e2e91b1378f83c5b2dd15f0247f34110e2fe895f6ca7719dbb780f929368eb AS e2e-runner -# python3 covers package/plugin install paths that execute helper scripts while -# staying below a full build-essential toolchain. +# python3 covers package/plugin install paths that execute helper scripts. +# procps provides pgrep for E2E watchdogs that assert no package-manager work is +# still running after Gateway readiness. RUN apt-get update \ - && apt-get install -y --no-install-recommends ca-certificates git python3 \ + && apt-get install -y --no-install-recommends ca-certificates git procps python3 \ && rm -rf /var/lib/apt/lists/* RUN corepack enable diff --git a/test/scripts/docker-build-helper.test.ts b/test/scripts/docker-build-helper.test.ts index 6c87bd9e3a2..0646700ef60 100644 --- a/test/scripts/docker-build-helper.test.ts +++ b/test/scripts/docker-build-helper.test.ts @@ -92,6 +92,12 @@ describe("docker build helper", () => { ); }); + it("includes procps in the shared Docker E2E image for process watchdogs", () => { + const dockerfile = readFileSync("scripts/e2e/Dockerfile", "utf8"); + + expect(dockerfile).toContain("procps"); + }); + it("preserves pnpm lookup paths for scheduled Docker child lanes", () => { const scheduler = readFileSync(DOCKER_ALL_SCHEDULER_PATH, "utf8");