Skip to content

Fix broken CI hang installing playwright/chromium.#17

Closed
mattheu wants to merge 3 commits into
mainfrom
fix/ci-playwright-hang
Closed

Fix broken CI hang installing playwright/chromium.#17
mattheu wants to merge 3 commits into
mainfrom
fix/ci-playwright-hang

Conversation

@mattheu

@mattheu mattheu commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • Add postinstall script (tests/e2e/build-wp-utils.js) that compiles @wordpress/e2e-test-utils-playwright TypeScript source to CommonJS and patches the package's own exports to point at the compiled output — the package ships only TypeScript source which Node cannot load from node_modules
  • Update dependency versions (@playwright/test, @wordpress/e2e-test-utils-playwright, @wordpress/env, @wordpress/scripts, @types/node)
  • Convert fixtures.js to consistent CommonJS (module.exports) to match the existing CJS Playwright config
  • Add timeout and Docker image caching to the CI workflow

Test plan

  • npm ci && npm run build completes without errors
  • npm run wp-env start && npm run test:e2e passes all tests locally
  • CI workflow runs green on this PR

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

Playwright test results

failed  2 failed
passed  16 passed

Details

stats  18 tests across 6 suites
duration  2 minutes, 27 seconds
commit  a6fa453

Failed tests

chromium › exclude-with-post-in.spec.js › Exclude Displayed Posts with post__in › should exclude displayed posts even when post__in is set via Advanced Query Loop
chromium › exclude-with-post-in.spec.js › Exclude Displayed Posts with post__in › should properly filter post__in array when multiple post templates used

@mattheu mattheu force-pushed the fix/ci-playwright-hang branch from 1e9081a to e2baa5a Compare June 9, 2026 08:24
@mattheu mattheu changed the title Fix CI hang: disable unattended-upgrades before Playwright install Fix broken CI hang installing playwright/chromium. Jun 9, 2026
@roborourke

Copy link
Copy Markdown
Collaborator

@mattheu

mattheu commented Jul 6, 2026

Copy link
Copy Markdown
Member Author

Superseded by #24

@mattheu mattheu closed this Jul 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants