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 mqtt stream test that fails a lot #196

Merged
merged 2 commits into from
Aug 21, 2023

Conversation

pjfanning
Copy link
Contributor

@pjfanning pjfanning commented Jul 17, 2023

@mdedetrich
Copy link
Contributor

I am pretty sure have already increase the timeout for this test and it didn't appear to make an ultimate impact, I think the flakiness is elsewhere.

@pjfanning
Copy link
Contributor Author

I think the test case is actually broken - that it's not a time out issue. With the eventually, the test is at least retried. That is not the ultimate solution but the problem is that until we fix this test, it is causing so many build failures - we need to either set the test to be ignored or retry the test with an eventually until someone has time to fix it altogether.

@pjfanning pjfanning changed the title increase mqtt test timeout retry mqtt test that fails a lot Aug 11, 2023
@pjfanning
Copy link
Contributor Author

I am pretty sure have already increase the timeout for this test and it didn't appear to make an ultimate impact, I think the flakiness is elsewhere.

Is it ok to get the test to retry until someone has the time to look into why this test is so flaky. It fails so many of our builds that the test is now just pure noise.

@pjfanning
Copy link
Contributor Author

@nvollmar @mdedetrich @kerr - could we consider merging this as short term solution to all the broken builds?

1 similar comment
@pjfanning
Copy link
Contributor Author

@nvollmar @mdedetrich @kerr - could we consider merging this as short term solution to all the broken builds?

@pjfanning pjfanning changed the title retry mqtt test that fails a lot retry mqtt stream test that fails a lot Aug 21, 2023
@mdedetrich
Copy link
Contributor

mdedetrich commented Aug 21, 2023

I didn't have a look at the PR because to me it seemed like it was overengineered and that maybe the best solution would be to use something like scalatest's https://www.scalatest.org/scaladoc/3.0.8/org/scalatest/Retries.html ?

If we are not solving the core issue behind way the test is flaky I have a preference for using techniques such as ScalaTest Retries, or put differently I have an aversion to modifying a test a lot unless its actually solving the core problem.

@pjfanning
Copy link
Contributor Author

I didn't have a look at the PR because to me it seemed like it was overengineered and that maybe the best solution would be to use something like scalatest's https://www.scalatest.org/scaladoc/3.0.8/org/scalatest/Retries.html ?

If we are not solving the core issue behind way the test is flaky I have a preference for using techniques such as ScalaTest Retries, or put differently I have an aversion to modifying a test a lot unless its actually solving the core problem.

The change here is not very big - the main cause of the diff is the eventually block indents the code inside the block

Copy link
Contributor

@mdedetrich mdedetrich left a comment

Choose a reason for hiding this comment

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

The change here is not very big - the main cause of the diff is the eventually block indents the code inside the block

Ah I see, I set the hide whitespace option and I see the diff is indeed trivial and you appear to be using the right scalatast abstraction for this, i.e. eventually.

lgtm

@pjfanning pjfanning merged commit a4ecf0a into apache:main Aug 21, 2023
50 checks passed
@nvollmar
Copy link
Contributor

In cases where we anyway just retrigger the failed test runs it makes sense as long as there is an open issue and have a link to it to eventually address this. There is also a flaky test in the persistence cassandra project I've yet failed to find the root cause that it would make sense to apply this.

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.

3 participants