From bc2fee1707206e743a2d13b69e681fb600f4d123 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Wed, 2 Sep 2026 17:56:28 +0300 Subject: [PATCH 1/3] Build/Test Tools: Skip redundant Playwright browser downloads. The workflow installs Chromium. The suite runs no other browser. `wp-scripts test-playwright` then runs `playwright install` again, which downloads Firefox and WebKit and warns about libraries they need. Set PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD on the test step when the workflow installs the browsers. --- .github/workflows/reusable-end-to-end-tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index 9b5586973aacf..be7bdc036d74d 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -143,6 +143,10 @@ jobs: - name: Run E2E tests run: npm run test:e2e + env: + # Chromium is installed above and is the only browser the suite runs. Without this, + # `wp-scripts test-playwright` also downloads Firefox and WebKit on every run. + PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: ${{ inputs.install-playwright && '1' || '' }} - name: Archive debug artifacts (screenshots, HTML snapshots) uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 From 98cafa42f519139592c6c8bf8b21fe66d9144475 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Wed, 2 Sep 2026 20:25:31 +0300 Subject: [PATCH 2/3] Build/Test Tools: Drop `--with-deps` from the Playwright install step. On ubuntu-24.04 the runner image already provides every shared library Chromium needs. The apt step reports each one as already the newest version. `--with-deps` then installs 9 font packages, 21.1 MB, and adds about 27 seconds to every E2E job. Those fonts cover CJK, Thai, and Cyrillic. No spec in tests/e2e uses those scripts, the workflow installs only de_DE, and no spec asserts on a screenshot. The performance workflow keeps `--with-deps`. Its metrics feed a trend, and a font change could shift them. --- .github/workflows/reusable-end-to-end-tests.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index be7bdc036d74d..ba0fb2e2ef7e9 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -100,7 +100,9 @@ jobs: - name: Install Playwright browsers if: ${{ inputs.install-playwright }} - run: npm exec --no -- playwright install --with-deps chromium + # The runner image already provides every shared library Chromium needs. `--with-deps` + # only adds CJK, Thai, and Cyrillic fonts, which no spec in this suite renders. + run: npm exec --no -- playwright install chromium - name: Build WordPress run: npm run build From e6489a70839902fc4a607e160046da2101f2ec28 Mon Sep 17 00:00:00 2001 From: Adrian Moldovan <3854374+adimoldovan@users.noreply.github.com> Date: Thu, 3 Sep 2026 13:22:47 +0300 Subject: [PATCH 3/3] Build/Test Tools: Drop the comment on the Playwright install step. `playwright install chromium` reads plainly on its own. The reason for leaving out `--with-deps` belongs in the ticket, not in the workflow. --- .github/workflows/reusable-end-to-end-tests.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/reusable-end-to-end-tests.yml b/.github/workflows/reusable-end-to-end-tests.yml index ba0fb2e2ef7e9..54effadf3d7d4 100644 --- a/.github/workflows/reusable-end-to-end-tests.yml +++ b/.github/workflows/reusable-end-to-end-tests.yml @@ -100,8 +100,6 @@ jobs: - name: Install Playwright browsers if: ${{ inputs.install-playwright }} - # The runner image already provides every shared library Chromium needs. `--with-deps` - # only adds CJK, Thai, and Cyrillic fonts, which no spec in this suite renders. run: npm exec --no -- playwright install chromium - name: Build WordPress