Skip to content

Improve e2e workflow reliability#31

Merged
adriaandotcom merged 1 commit into
simpleanalytics:mainfrom
paulber33:improved-tests
Jun 18, 2026
Merged

Improve e2e workflow reliability#31
adriaandotcom merged 1 commit into
simpleanalytics:mainfrom
paulber33:improved-tests

Conversation

@paulber33

@paulber33 paulber33 commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR further improves E2E workflow reliability and speed.

Fixes #34

1. Playwright browser caching

E2E runs were repeatedly downloading Playwright browsers, which made CI slower and more prone to transient download failures.

Fix: Added Playwright browser caching so repeated runs can reuse downloaded browsers.

2. Azure archive mirror timeouts

Ubuntu package downloads from the Azure archive mirror sometimes time out during Playwright dependency installation.

Fix: Switched CI package downloads to the main Ubuntu archive mirror. This is a bit hacky, but it appears to be much faster and more reliable.

3. WordPress readiness check

wp-env start does not always mean WordPress is fully ready before tests continue.

Fix: Added a WordPress login page check before installing Playwright and running tests.


Security implications

  • No meaningful security impact. The cache only stores Playwright browser binaries and is keyed by pnpm-lock.yaml.
  • Has security impact - described as:

Testing

  • Verified workflow changes
  • Triggered GitHub Actions E2E tests

Checklist

  • Linked to an issue
  • Tested
  • Asked for a review

@paulber33 paulber33 changed the title ci: improve e2e workflow reliability Improve e2e workflow reliability Jun 18, 2026
@adriaandotcom adriaandotcom self-requested a review June 18, 2026 12:05
@adriaandotcom adriaandotcom merged commit 627d1b4 into simpleanalytics:main Jun 18, 2026
7 checks passed
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.

Improve e2e workflow reliability

2 participants