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

Generator tests are flaky #6757

Closed
maribethb opened this issue Jan 11, 2023 · 5 comments · Fixed by #6776
Closed

Generator tests are flaky #6757

maribethb opened this issue Jan 11, 2023 · 5 comments · Fixed by #6776

Comments

@maribethb
Copy link
Contributor

No description provided.

@maribethb
Copy link
Contributor Author

Additional info from debugging:

So I still do not know the root cause or even when this started happening and I'm not sure how else to debug

@maribethb
Copy link
Contributor Author

Pretty sure I've root caused it. The scripts in webdriver are timing out.

In the generator test, we had a .catch(() => {}) statement which was silencing any errors from webdriver. If I change that to log the error that was caught, I saw "Script timeout". So I increased the timeout to 2 minutes (default is 30 seconds) and will try re-running that a few times to see if it's less flaky. If so I'll submit a PR to fix this tomorrow.

This would explain why it's flaky since sometimes it is fast enough to complete.

@cpcallen
Copy link
Contributor

I'm beginning to wonder if there's any point my submitting PRs, since you keep reverting them… ;-)

and it was right before #3606 in the GitHub Actions list but that also did not help

Actual question: did you mean something other than #3606?

In the generator test, we had a .catch(() => {}) statement which was silencing any errors from webdriver.

🙄 Good find. Sorry I didn't catch that when reviewing #6431!

In fact the test should fail if the call throws (as it should in a few other places too).

@maribethb
Copy link
Contributor Author

Haha, sorry Christopher. I was grasping at straws in the list of PRs, until that failed and I tried good ol' print statement debugging. #6767 shall live on as a record of my thought process lol.

And yes, I meant #6672. If you click the first link in the quoted comment, you'll see that next to the PR name it says #3606 and I now have no idea what that refers to...

@cpcallen
Copy link
Contributor

And yes, I meant #6672. If you click the first link in the quoted comment, you'll see that next to the PR name it says #3606 and I now have no idea what that refers to...

Oh yes: it seems that GitHub numbers github actions invocations (i.e., the job, which might get run several times if necessary) with a separate sequence from the one used for issues and PRs. (I was a little annoyed when I first discovered that issues and PRs shared a sequence, but now we see the consequences of having separate sequences without some unique prefix like b/XXX vs. cl/XXX… :-(

@maribethb maribethb self-assigned this Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants