Repository navigation
feat(flakiness-playwright-shard): support the --list flag - #72
Conversation
This should show the shard tests, helping debugging non-hermetic test suites.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: dc0e0e51e4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| if (flags.has('list')) | ||
| runArgs.unshift('--list'); |
There was a problem hiding this comment.
Avoid uploading reports for --list
When this new --list path is used, the second Playwright invocation still runs the configured @flakiness reporter in Playwright list mode. Unlike the hidden shard-generation pass, the environment here does not set FLAKINESS_SHARD_FILE, so parseShardEnv() is false and src/playwright-test.ts falls through to writeReport()/uploadReport() and the report-open hint. That means flakiness-playwright-shard --list can upload/overwrite a Flakiness report just for listing the balanced shard; disable reporting/uploading for this diagnostic invocation or make the reporter return in this mode.
Useful? React with 👍 / 👎.
This should show the shard tests, helping debugging non-hermetic test
suites.