bluehost-wordpress-plugin icon indicating copy to clipboard operation
bluehost-wordpress-plugin copied to clipboard

Automated workflow retries for Cypress tests

Open wpscholar opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

There are typically a few flaky tests that fail when running the full testing matrix. When these fail, we have to re-run the failed jobs to make sure everything is passing.

Describe the solution you'd like

We should implement automatic retries (at least one retry) for failed tests.

This is how WordPress has implemented it:

  • https://github.com/WordPress/wordpress-develop/blob/trunk/.github/workflows/failed-workflow.yml
  • https://github.com/WordPress/wordpress-develop/blob/trunk/.github/workflows/phpunit-tests.yml#L233-L260

wpscholar avatar Dec 14 '22 21:12 wpscholar