test(docker): install procps for plugin watchdogs

This commit is contained in:
Vincent Koc
2026-05-01 06:08:23 -07:00
parent 25446d3c0e
commit 49b1770b8e
2 changed files with 10 additions and 3 deletions

View File

@@ -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

View File

@@ -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");