Repository navigation
feat: introduce flakiness-playwright-timings fetch subcommand - #70
Conversation
The new subcommand allows fetching timings from the Flakiness.io service.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: ca88446f1f
ℹ️ 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 (!fs.existsSync(outputFile)) | ||
| throw new Error('failed to fetch timings: no timings report was written. Is @flakiness/playwright configured as a reporter?'); |
There was a problem hiding this comment.
Avoid accepting stale timing outputs
When the output path already exists (for example the default timings.json from a previous run) and the current Playwright config does not include @flakiness/playwright or otherwise fails to write during this --list pass, playwright --list still exits 0 and this existence check succeeds, so fetch reports success while leaving a stale timings file in place. Remove or write to a fresh temporary path before the run, or verify the file was created/updated by this invocation.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 24ed1089e6
ℹ️ 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".
The new subcommand allows fetching timings from the Flakiness.io
service.