From d54c7c6a5952d83ee2e1ffc845b6552d5809bc66 Mon Sep 17 00:00:00 2001 From: sindurigf Date: Mon, 7 Sep 2026 15:39:52 +0200 Subject: [PATCH] Fix: move the beginner devcontainer to bookworm so Playwright can install The level cannot start in a fresh Codespace. post-create.sh runs `npx playwright install --with-deps chromium`, which fails on Debian 11: E: Failed to fetch .../bullseye-security/.../libglx-mesa0_20.3.5-1+deb11u1 404 E: Failed to fetch .../bullseye-security/.../libxfont2_2.0.4-1+deb11u1 404 post-create.sh uses `set -e`, so it aborts there, no browser is ever installed, and the tests report: Executable doesn't exist at .../chrome-headless-shell Please run: npx playwright install That advice fails the same way. Reproduced on a freshly pulled mcr.microsoft.com/devcontainers/base:bullseye on both amd64 and arm64, with a healthy apt index. Debian 12 installs the same packages cleanly, and Playwright has dropped Debian 11 entirely: 1.62 refuses with "does not support chromium on debian11-x64" before it looks at any library, so the existing `^1.61.0` range would break again on the next lockfile refresh. Verified on bookworm with the level otherwise unchanged, so the challenge itself is unaffected: - npm ci, playwright install --with-deps chromium: both succeed - chromium.executablePath() resolves a real Chrome for Lighthouse's CHROME_PATH - npm run test:a11y fails on color-contrast, image-alt and the keyboard test, which are the level's intentional bugs - npm run test:lighthouse scores 80, matching what the level documents Co-Authored-By: Claude Opus 5 (1M context) Signed-off-by: sindurigf --- .../devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/adventure-accessibility-nightmare_beginner/devcontainer.json b/.devcontainer/adventure-accessibility-nightmare_beginner/devcontainer.json index 4765c56..c2cd218 100644 --- a/.devcontainer/adventure-accessibility-nightmare_beginner/devcontainer.json +++ b/.devcontainer/adventure-accessibility-nightmare_beginner/devcontainer.json @@ -1,6 +1,6 @@ { "name": "♿ The Accessibility Nightmare | 🟢 Beginner (The Initial Audit)", - "image": "mcr.microsoft.com/devcontainers/base:bullseye", + "image": "mcr.microsoft.com/devcontainers/base:bookworm", "workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}/adventures/planned/adventure-accessibility-nightmare/beginner", "features": { "ghcr.io/devcontainers/features/node:1": {