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

High timeout causes cypress retry-ability interval to increase drastically #30209

Open
ogdans3 opened this issue Sep 10, 2024 · 1 comment
Open
Labels
stage: needs information Not enough info to reproduce the issue

Comments

@ogdans3
Copy link

ogdans3 commented Sep 10, 2024

What would you like?

Either keep the retry interval the same, make it configurable, or some sort of back-off. We would prefer it to be consistent or configurable.

Why is this needed?

We have timeout set to 3 minutes in order to improve flakyness, we have a somewhat slow system 😛

defaultCommandTimeout: 180000,
requestTimeout: 180000,
pageLoadTimeout: 180000,
responseTimeout: 180000,
execTimeout: 180000,
taskTimeout: 180000,

This seems to cause the cypress retry-ability to be extremely slow or rare. It seems that the interval between retrys for commands is dependent on the total timeout.

Other

No response

@jennifer-shehane
Copy link
Member

This seems to cause the cypress retry-ability to be extremely slow or rare. It seems that the interval between retrys for commands is dependent on the total timeout.

I don't really understand what you're describing here. Could you provide a code example that we can run to see the issue?

If you're using the standard retry behavior, where a Cypress test retries on a failure. There will always be a 3 minute wait for the test to actually fail (likely due to the defaultCommandTimeout being reached) before the next retry will run. The test has to fail the condition first. The test is doing exactly what you've told it to do.

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Sep 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue
Projects
None yet
Development

No branches or pull requests

2 participants