Skip to content

ci: Fail when a Playwright version drifts from the pinned one - #25383

Merged
mydea merged 2 commits into
developfrom
ci/check-playwright-versions
Oct 20, 2026
Merged

mydea merged 2 commits into
developfrom
ci/check-playwright-versions

Conversation

@mydea

@mydea mydea commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

Adds a check that every package.json declares the same exact @playwright/test version as @sentry-internal/test-utils. That covers the root, packages/*, dev-packages/* and every E2E app. It runs in the Lint job's parallel group, so a drifting app fails fast instead of silently testing against different browsers.

@sentry-internal/test-utils is the reference because E2E apps already depend on it for their Playwright config. The check is an inline git grep over tracked package.json files, so it needs no installed dependencies and picks up new locations without a list to maintain. Only @playwright/test is checked, since playwright and playwright-core never appear without it.

Based on #25404, outside the PR stack.

🤖 Generated with Claude Code

@mydea
mydea added this pull request to stack #25385 October 15, 2026 07:44
@mydea
mydea force-pushed the ci/check-playwright-versions branch from 959a597 to e179217 Compare October 15, 2026 11:35
@mydea
mydea removed this pull request from stack #25385 October 15, 2026 11:37
@mydea
mydea added this pull request to stack #25392 October 15, 2026 11:37
@mydea
mydea force-pushed the ci/check-playwright-versions branch from e179217 to a9f3ac0 Compare October 15, 2026 11:58
@mydea
mydea removed this pull request from stack #25392 October 15, 2026 11:58
@mydea
mydea added this pull request to stack #25397 October 15, 2026 11:58
@mydea
mydea force-pushed the ci/check-playwright-versions branch from a9f3ac0 to 92a55bf Compare October 15, 2026 12:51
@mydea
mydea removed this pull request from stack #25397 October 15, 2026 12:51
@mydea
mydea added this pull request to stack #25401 October 15, 2026 12:52
@mydea
mydea removed this pull request from stack #25401 October 15, 2026 12:55
@mydea
mydea changed the base branch from chore/bump-playwright-1.64 to test/e2e-remove-event-dumps October 15, 2026 12:55
@mydea
mydea added this pull request to stack #25405 October 15, 2026 12:56
@mydea
mydea force-pushed the ci/check-playwright-versions branch from 92a55bf to f52aeb7 Compare October 15, 2026 14:28
@mydea
mydea force-pushed the ci/check-playwright-versions branch from f52aeb7 to 9a87a66 Compare October 16, 2026 07:35
@mydea
mydea force-pushed the ci/check-playwright-versions branch from 9a87a66 to 1cdd682 Compare October 16, 2026 08:52
@mydea
mydea force-pushed the ci/check-playwright-versions branch from 1cdd682 to 2280417 Compare October 16, 2026 09:16
@mydea
mydea force-pushed the ci/check-playwright-versions branch 2 times, most recently from c78c274 to f577ac3 Compare October 19, 2026 09:06
Base automatically changed from test/e2e-remove-event-dumps to develop October 19, 2026 09:24
@mydea
mydea force-pushed the ci/check-playwright-versions branch from f577ac3 to 543416a Compare October 19, 2026 09:24
@mydea
mydea marked this pull request as ready for review October 19, 2026 09:33
@mydea
mydea requested review from JPeer264 and s1gr1d October 19, 2026 09:33
mydea and others added 2 commits October 19, 2026 16:59
All packages and E2E apps must declare the exact `@playwright/test` version of
`@sentry-internal/test-utils`. The check runs in the Lint job.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mydea
mydea force-pushed the ci/check-playwright-versions branch from 9b0d30b to 2048658 Compare October 19, 2026 15:00

@JPeer264 JPeer264 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Theoretically we could also solve this with a pnpm workspace file and a workspace:*, not sure though if that works nicely with how we copy E2E tests into a temp dir

@mydea

mydea commented Oct 20, 2026

Copy link
Copy Markdown
Member Author

LGTM. Theoretically we could also solve this with a pnpm workspace file and a workspace:*, not sure though if that works nicely with how we copy E2E tests into a temp dir

yeah I think this will not work because the actual pnpm install command will be executed far away from the workspace (by design) 😅 we could enforce strict peer dependencies (because test-utils has a peer dep on this) but this is a bit of a heavier lift because a lot of e2e test apps have issues there.

@mydea
mydea merged commit 712e9b8 into develop Oct 20, 2026
375 of 377 checks passed
@mydea
mydea deleted the ci/check-playwright-versions branch October 20, 2026 07:16
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