synpress icon indicating copy to clipboard operation
synpress copied to clipboard

Add retries to ENV

Open abdullah-almesbahi opened this issue 1 year ago • 3 comments

Motivation and context

I work at Badger DAO and we are using this library in our Github action's workflow, we occasionally encounter inconsistent behavior. While it often executes as expected, there are instances where we face the following error:

[switchToMetamaskNotification] Max amount of retries to switch to metamask notification window has been reached. It was never found.

Does it fix any issue?

Increase retries helped us to make Github action's workflow always works for us

Quality checklist

  • [x] I have performed a self-review of my code.

abdullah-almesbahi avatar Dec 14 '23 19:12 abdullah-almesbahi

Hey! Thanks for the PR. This is the first time I've heard about this issue 🤔

With what values of RETRIES_SWITCH_TO_METAMASK_NOTIFICATION and RETRIES_WAIT_TO_BE_HIDDEN are you running your CI?

duckception avatar Dec 14 '23 20:12 duckception

We have set RETRIES_SWITCH_TO_METAMASK_NOTIFICATION=100 in our .env file, but we're still using the default setting for RETRIES_WAIT_TO_BE_HIDDEN. I've added instructions for others who might want to change this default value.

abdullah-almesbahi avatar Dec 15 '23 12:12 abdullah-almesbahi

Sorry for the long response time. I'm down to merge the change to RETRIES_SWITCH_TO_METAMASK_NOTIFICATION. Adding RETRIES_WAIT_TO_BE_HIDDEN makes no sense at all so it should be removed. What's the motivation behind CONFIRM_TRANSACTION_RETRIES_LIMIT? 120s is already high enough imo but I might be missing some important context here.

duckception avatar Dec 26 '23 15:12 duckception