Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retry failed assertions #950

Open
amannn opened this issue Oct 17, 2023 · 0 comments
Open

Retry failed assertions #950

amannn opened this issue Oct 17, 2023 · 0 comments

Comments

@amannn
Copy link
Contributor

amannn commented Oct 17, 2023

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

Due to variability, Lighthouse CI may sometimes report a lower performance score that causes an assertion to fail, whereas for most runs, the assertion passes. Since the Lighthouse test takes rather long, I've configured numberOfRuns: 1 for my CI pipeline. However, if, and ideally only if, a performance assertion fails, it would be helpful if the test could be re-run for a given URL.

Increasing numberOfRuns isn't quite the same thing, as it will run multiple times also when the first test passes.

Describe the solution you'd like

An option to retry the assertions for a given page if the the first run fails.

Describe alternatives you've considered

Wrapping the entire LHCI run to re-run if it fails (this needlessly tests URLs again that have already passed).

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

No branches or pull requests

1 participant