Skip to content

Improved E2E fixture caching in CI#28193

Draft
jonatansberg wants to merge 1 commit into
ber-3366-rework-e2e-fixturesfrom
ber-3366-ci-fixture-cache
Draft

Improved E2E fixture caching in CI#28193
jonatansberg wants to merge 1 commit into
ber-3366-rework-e2e-fixturesfrom
ber-3366-ci-fixture-cache

Conversation

@jonatansberg
Copy link
Copy Markdown
Member

Summary

  • caches the existing E2E DB snapshot and role auth state package in GitHub Actions
  • restores cached snapshots into ghost_e2e_base on fresh CI runners before global setup validates/skips
  • keeps Playwright global setup as the cache-miss seeding path

Stack

Stacked on #26562 / ber-3366-rework-e2e-fixtures.

Testing

  • pnpm --filter @tryghost/e2e test:types
  • pnpm --filter @tryghost/e2e lint
  • parsed .github/workflows/ci.yml and compose.dev.yaml with Ruby YAML
  • verified docker compose -f compose.dev.yaml config mysql includes the /mnt/e2e-cache bind mount

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 27, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: b22052be-f2b5-4dc4-ae01-ec6e06fb30b0

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch ber-3366-ci-fixture-cache

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 27, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (ber-3366-rework-e2e-fixtures@da6d40d). Learn more about missing BASE report.

Additional details and impacted files
@@                       Coverage Diff                       @@
##             ber-3366-rework-e2e-fixtures   #28193   +/-   ##
===============================================================
  Coverage                                ?   73.87%           
===============================================================
  Files                                   ?     1530           
  Lines                                   ?   129809           
  Branches                                ?    15575           
===============================================================
  Hits                                    ?    95902           
  Misses                                  ?    32921           
  Partials                                ?      986           
Flag Coverage Δ
admin-tests 54.17% <ø> (?)
e2e-tests 73.87% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@jonatansberg jonatansberg force-pushed the ber-3366-ci-fixture-cache branch 4 times, most recently from af6558b to a54c9cc Compare May 27, 2026 13:54
ref https://linear.app/tryghost/issue/BER-3366

CI can now restore the Playwright-created fixture snapshot and auth state from Actions cache without adding a separate seeding job.
@jonatansberg jonatansberg force-pushed the ber-3366-ci-fixture-cache branch from a54c9cc to 87cd1ad Compare May 27, 2026 13:59
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.

1 participant