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

Increase timeouts to fix flaky ServiceFabricProcessor test cases #7446

Merged

Conversation

JamesBirdsall
Copy link
Contributor

Multiple cases, including the ones marked as flaky, are failing because the processor does not start up as quickly as expected. All cases work fine on my desktop, but it is not surprising that a loaded common testbed would be slower. Increased the timeout.

@serkantkaraca
Copy link
Member

There are some tests still failing under the Checks tab.

@JamesBirdsall
Copy link
Contributor Author

There are some tests still failing under the Checks tab.

Yes, there's one case which has a separate issue. I have re-disabled it and am waiting for the checks to run again.

@@ -102,7 +102,7 @@ public void VerifyNormalStartup(int maxRetries)
int retries = 0;
while (!this.Processor.IsOpened && !this.HasShutDown && (retries < maxRetries))
{
Thread.Sleep(1000);
Thread.Sleep(5000);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should really try to find a better solution then adding additional sleep time, all that does is end up making our test runs take longer and still have reliability issues. /cc @mikeharder

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears the intention of these APIs is to block until a desired state is detected and fail after some timeout. If so, these APIs should take TimeSpan maxDuration rather than int maxRetries, and they should poll as frequently as reasonable (say 100ms instead of 1000ms or 5000ms). This gives the API sufficient time to pass reliably but ensures the API returns as quickly as possible.

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

Successfully merging this pull request may close these issues.

4 participants