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

πŸ‘©β€πŸŒΎ Improve velocity control test #642

Merged
merged 2 commits into from
Feb 20, 2021

Conversation

chapulina
Copy link
Contributor

🦟 Bug fix

Summary

The PublishCmd test is slightly flaky, it failed 1 of the last 15 builds with:

127: /var/lib/jenkins/workspace/ignition_gazebo-ci-ign-gazebo3-bionic-amd64/ign-gazebo/test/integration/velocity_control_system.cc:128: Failure
127: Expected: (poses[i].Pos().X()) > (poses[i-1].Pos().X()), actual: 2.12913e-10 vs 2.13556e-10
127: /var/lib/jenkins/workspace/ignition_gazebo-ci-ign-gazebo3-bionic-amd64/ign-gazebo/test/integration/velocity_control_system.cc:129: Failure
127: Expected: (poses[i].Pos().Y()) > (poses[i-1].Pos().Y()), actual: 2 vs 2

I suspect this may happen when the message is received a bit too late and the first iteration misses the command. I added a little sleep for the lack of some better check. The test isn't very flaky, so this may be just enough.

I also cleaned up the test a bit. The sleep / maxSleep weren't being used, and there's no need to create a system to publish the message.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • codecheck passed (See contributing)
  • All tests passed (See test coverage)
  • While waiting for a review on your PR, please help review another open pull request to support the maintainers

Note to maintainers: Remember to use Squash-Merge


https://github.com/osrf/buildfarmer/issues/156

@chapulina chapulina added the tests Broken or missing tests / testing infra label Feb 20, 2021
@github-actions github-actions bot added the 🏰 citadel Ignition Citadel label Feb 20, 2021
@codecov
Copy link

codecov bot commented Feb 20, 2021

Codecov Report

Merging #642 (41e1c1f) into ign-gazebo3 (3465bbe) will decrease coverage by 0.00%.
The diff coverage is n/a.

Impacted file tree graph

@@               Coverage Diff               @@
##           ign-gazebo3     #642      +/-   ##
===============================================
- Coverage        77.72%   77.71%   -0.01%     
===============================================
  Files              210      210              
  Lines            11615    11615              
===============================================
- Hits              9028     9027       -1     
- Misses            2587     2588       +1     
Impacted Files Coverage Ξ”
...e/ignition/gazebo/detail/EntityComponentManager.hh 95.00% <0.00%> (-0.72%) ⬇️

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 3465bbe...41e1c1f. Read the comment docs.

@chapulina chapulina merged commit f8c9050 into ign-gazebo3 Feb 20, 2021
@chapulina chapulina deleted the chapulina/3/vel_cmd branch February 20, 2021 02:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏰 citadel Ignition Citadel tests Broken or missing tests / testing infra
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants