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

Remove flakiness from constraint samplers test. #3135

Merged

Conversation

tahsinkose
Copy link
Contributor

@tahsinkose tahsinkose commented May 10, 2022

Description

Follow-up of #3112. This removes the flakiness from the constraint sampler test by adding another seed.

Checklist

@tahsinkose tahsinkose requested a review from v4hn as a code owner May 10, 2022 14:59
@tahsinkose tahsinkose force-pushed the constraint-samplers-with-seed-robust branch from a73ddf9 to b60eb3e Compare May 10, 2022 14:59
@tahsinkose
Copy link
Contributor Author

PTAL @rhaschke 🙏🏼

@codecov
Copy link

codecov bot commented May 10, 2022

Codecov Report

Merging #3135 (e7efa96) into master (5bf60e7) will decrease coverage by 0.02%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master    #3135      +/-   ##
==========================================
- Coverage   61.57%   61.56%   -0.01%     
==========================================
  Files         376      376              
  Lines       33317    33308       -9     
==========================================
- Hits        20511    20502       -9     
  Misses      12806    12806              
Impacted Files Coverage Δ
moveit_ros/planning/moveit_cpp/src/moveit_cpp.cpp 67.45% <0.00%> (-1.39%) ⬇️
...nning_scene_monitor/src/planning_scene_monitor.cpp 66.35% <0.00%> (-0.12%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5bf60e7...e7efa96. Read the comment docs.

Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

While another seed should fix the flaky test, I guess your original intention was to test the API with and without the seed set. As the test fails here:
https://github.com/ros-planning/moveit/blob/0d46974ac7c3fe7f3aa2128f907c3bd2d78a25c6/moveit_core/constraint_samplers/test/test_constraint_samplers.cpp#L1226

What about increasing the number of attempts from 1 to say 5?

@tahsinkose
Copy link
Contributor Author

Can definitely give a try @rhaschke 👍🏼

@tahsinkose tahsinkose force-pushed the constraint-samplers-with-seed-robust branch from b60eb3e to e7efa96 Compare May 12, 2022 18:12
Copy link
Contributor

@rhaschke rhaschke left a comment

Choose a reason for hiding this comment

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

Looks good. Hopefully, this should fix the flaky test.

@rhaschke rhaschke merged commit 85c88a2 into moveit:master May 13, 2022
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.

None yet

2 participants