From 8945c4f8c397374427d1877cbd704ad2ab1e6ee5 Mon Sep 17 00:00:00 2001 From: Jeffrey Smith Date: Thu, 2 Apr 2026 10:48:46 +0000 Subject: [PATCH] Pin playwright@1.52.0 to match Docker image + add pre-stage Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit npm install playwright pulled v1.59.1 but the Docker image ships v1.52.0 browsers, causing a version mismatch crash. Pin to 1.52.0. Also add ci/Dockerfile.test-runner for pre-building the image into registry.gobha.me:5000/ci-test-runner:latest — eliminates npm install from every CI run. Co-Authored-By: Claude Opus 4.6 (1M context) --- ci/Dockerfile.test-runner | 11 +++++++++++ docker-compose.ci.yml | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 ci/Dockerfile.test-runner diff --git a/ci/Dockerfile.test-runner b/ci/Dockerfile.test-runner new file mode 100644 index 0000000..838bd09 --- /dev/null +++ b/ci/Dockerfile.test-runner @@ -0,0 +1,11 @@ +# ci/Dockerfile.test-runner — Pre-built Playwright test runner +# +# Build & push (one-time, repeat when Playwright version bumps): +# docker build -t registry.gobha.me:5000/ci-test-runner:latest -f ci/Dockerfile.test-runner . +# docker push registry.gobha.me:5000/ci-test-runner:latest +# +# The CI compose override uses this image directly, avoiding npm install +# on every run. Only the ci/ scripts are COPY'd at compose build time. +FROM mcr.microsoft.com/playwright:v1.52.0-noble +WORKDIR /work +RUN npm init -y && npm install playwright@1.52.0 diff --git a/docker-compose.ci.yml b/docker-compose.ci.yml index 7da4ccf..01dba88 100644 --- a/docker-compose.ci.yml +++ b/docker-compose.ci.yml @@ -30,7 +30,7 @@ services: dockerfile_inline: | FROM mcr.microsoft.com/playwright:v1.52.0-noble WORKDIR /work - RUN npm init -y && npm install playwright + RUN npm init -y && npm install playwright@1.52.0 COPY ci/ /work/ci/ RUN chmod +x /work/ci/*.sh depends_on: