From b21054a1c3d15e7012ab1abafce6a7f3a30c4fb2 Mon Sep 17 00:00:00 2001 From: Dan Knauss Date: Mon, 22 Jun 2026 18:56:53 -0600 Subject: [PATCH] test(e2e): pin @wp-playground/cli to 3.1.40 to escape upstream regression The Playwright Playground smoke job has failed for hours across main and every branch: the Playground server boots but wp-admin times out, failing different tests each run. @wp-playground/cli@3.1.41 published 2026-06-22 11:32 UTC and has been flaky/failing since; 3.1.40 ran green on main earlier the same day. The floating @latest in the E2E harness pulled the regressed release into every run. Pin the CLI to 3.1.40 across all four E2E scripts so CI is deterministic and escapes the bad release. Temporary: revert to @latest (or bump) once a fixed Playground CLI ships past 3.1.41. Skill-doc @latest examples are left as-is. Co-Authored-By: Claude Opus 4.8 --- scripts/test-a11y.sh | 2 +- scripts/test-lifecycle-e2e.sh | 4 ++-- scripts/test-playground-e2e.sh | 2 +- scripts/test-smoke-e2e.sh | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/test-a11y.sh b/scripts/test-a11y.sh index e42b363..7aa36bd 100755 --- a/scripts/test-a11y.sh +++ b/scripts/test-a11y.sh @@ -18,7 +18,7 @@ cleanup() { } trap cleanup EXIT INT TERM -CI=1 npx @wp-playground/cli@latest server --auto-mount --login --port="$PORT" \ +CI=1 npx @wp-playground/cli@3.1.40 server --auto-mount --login --port="$PORT" \ >"$LOG_FILE" 2>&1 & PLAYGROUND_PID=$! diff --git a/scripts/test-lifecycle-e2e.sh b/scripts/test-lifecycle-e2e.sh index ea95e5f..ff26925 100755 --- a/scripts/test-lifecycle-e2e.sh +++ b/scripts/test-lifecycle-e2e.sh @@ -36,13 +36,13 @@ cleanup() { trap cleanup EXIT INT TERM # Start server 1 (auto-mount — plugin source is read-write mounted). -CI=1 npx @wp-playground/cli@latest server \ +CI=1 npx @wp-playground/cli@3.1.40 server \ --auto-mount --login --port="$PORT_MOUNT" \ >"$LOG_MOUNT" 2>&1 & PID_MOUNT=$! # Start server 2 (plain — no plugin pre-installed; test uploads the zip). -CI=1 npx @wp-playground/cli@latest server \ +CI=1 npx @wp-playground/cli@3.1.40 server \ --login --port="$PORT_ZIP" \ >"$LOG_ZIP" 2>&1 & PID_ZIP=$! diff --git a/scripts/test-playground-e2e.sh b/scripts/test-playground-e2e.sh index 5daa086..345a826 100644 --- a/scripts/test-playground-e2e.sh +++ b/scripts/test-playground-e2e.sh @@ -18,7 +18,7 @@ cleanup() { } trap cleanup EXIT INT TERM -CI=1 npx @wp-playground/cli@latest server --auto-mount --login --port="$PORT" >"$LOG_FILE" 2>&1 & +CI=1 npx @wp-playground/cli@3.1.40 server --auto-mount --login --port="$PORT" >"$LOG_FILE" 2>&1 & PLAYGROUND_PID=$! attempt=0 diff --git a/scripts/test-smoke-e2e.sh b/scripts/test-smoke-e2e.sh index c64377e..48c580e 100755 --- a/scripts/test-smoke-e2e.sh +++ b/scripts/test-smoke-e2e.sh @@ -19,7 +19,7 @@ cleanup() { } trap cleanup EXIT INT TERM -CI=1 npx @wp-playground/cli@latest server \ +CI=1 npx @wp-playground/cli@3.1.40 server \ --auto-mount --login --port="$PORT" --blueprint="$BLUEPRINT_FILE" \ >"$LOG_FILE" 2>&1 & PLAYGROUND_PID=$!