Playwright Test Sharding Creates Too Many CI minutes #2202
Unanswered
matthewkrausse
asked this question in
Questions
Replies: 1 comment
|
I would not remove the coverage or hard-code a single shard globally, but I agree that four Playwright shards on every push can be wasteful when the suite is small. The useful decision is based on wall-clock time versus runner minutes. A compromise I have used for CI-heavy projects:
For this template, one shard as the default sounds reasonable if the current Playwright suite does not noticeably reduce wall time with four shards. I would keep the matrix in the workflow, though, so maintainers can increase it as the suite grows instead of revisiting the CI design later. The important part is reducing redundant parallel setup, not reducing test coverage. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
First Check
Commit to Help
Example Code
Description
I don't see the playwright tests being sharded and running on every pull and push to be needed. I moved to just PRs on ym major release or main branches. Also moved to one shard. Running 4 just increases the ci minutes by 4 and doesn't really speed up the process of wall time. Just wanted to see what people though before I submitted a PR to undo this. I think that this is costing people money needlessly for no good benefit unless you have hundreds of tests.
Operating System
Linux
Operating System Details
gh ci runners
Python Version
3.13
Additional Context
No response
All reactions