-
Notifications
You must be signed in to change notification settings - Fork 276
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
π©βπΎ Fix flaky SceneBroadcaster test #641
Conversation
Signed-off-by: Louise Poubel <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-gazebo3 #641 +/- ##
============================================
Coverage 77.74% 77.74%
============================================
Files 210 210
Lines 11628 11628
============================================
Hits 9040 9040
Misses 2588 2588 Continue to review full report at Codecov.
|
The test failed differently on homebrew with an exception: ServerRepeat/SceneBroadcasterTest.State
I'll take a look, please don't merge yet |
I didn't change anything and it passed now. It may be flaky. Merging this since it improves the situation. |
Signed-off-by: Louise Poubel [email protected]
π¦ Bug fix
Summary
The
State
test has been flaky, with this error:I can also reproduce the flakiness locally.
What happens is that the subscriber correctly receives 3 entities, but then it remains subscribed. As the test goes on to make another full state request, which sends 16 entities, if the test lasts long enough, the subscriber often receives that too and the test fails. The solution is to unsubscribe from that topic as soon as we're done checking for the 3 entities.
Checklist
Updated documentation (as needed)Updated migration guide (as needed)codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge
https://github.com/osrf/buildfarmer/issues/156