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

Fix for false negative tests in rosbag2_py #1592

Merged
merged 2 commits into from
Mar 21, 2024

Conversation

MichaelOrlov
Copy link
Contributor

  • wait_for(condition: Callable, timout) was incorrectly returning True after the first iteration even if condition was false.

@MichaelOrlov MichaelOrlov requested a review from a team as a code owner March 19, 2024 19:08
@MichaelOrlov MichaelOrlov requested review from gbiggs, jhdcs and fujitatomoya and removed request for a team March 19, 2024 19:08
@MichaelOrlov
Copy link
Contributor Author

@r7vme Your help with a review here will be appreciated.

@r7vme
Copy link
Contributor

r7vme commented Mar 20, 2024

@MichaelOrlov changes look fine. I'm looking into failed python stubs check.

@r7vme
Copy link
Contributor

r7vme commented Mar 20, 2024

@MichaelOrlov fix for stub check #1593

-  wait_for(condition: Callable, timout) was incorrectly returning True
after the first iteration even if condition was false.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov MichaelOrlov force-pushed the morlov/fix_false_negative_tests_in_rosbag2_py branch from 22d49d4 to 51f5a0c Compare March 20, 2024 20:07
@MichaelOrlov
Copy link
Contributor Author

Gist: https://gist.githubusercontent.com/MichaelOrlov/69975b6955dc0647ebf8c9be60c63d50/raw/08c1efc912afc234eaed11a82873aa35e20a7476/ros2.repos
BUILD args: --packages-above-and-dependencies rosbag2_py
TEST args: --packages-above rosbag2_py
ROS Distro: rolling
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/13500

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@MichaelOrlov
Copy link
Contributor Author

@clalancette @emersonknapp Could some of you additionally formally approve this PR to be able to merge it?

rosbag2_py/test/test_transport.py Outdated Show resolved Hide resolved
Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
@MichaelOrlov
Copy link
Contributor Author

Re-running CI after addressing additional review comments
Job: ci_launcher
ci_launcher ran: https://ci.ros2.org/job/ci_launcher/13501

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

Copy link
Contributor

@clalancette clalancette 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 to me! Thanks for refactoring.

@MichaelOrlov MichaelOrlov merged commit 66af399 into rolling Mar 21, 2024
13 of 14 checks passed
@delete-merged-branch delete-merged-branch bot deleted the morlov/fix_false_negative_tests_in_rosbag2_py branch March 21, 2024 00:00
@MichaelOrlov
Copy link
Contributor Author

https://github.com/Mergifyio backport iron humble

Copy link

mergify bot commented Jun 4, 2024

backport iron humble

✅ Backports have been created

mergify bot pushed a commit that referenced this pull request Jun 4, 2024
* Fix for false negative tests in rosbag2_py

-  wait_for(condition: Callable, timout) was incorrectly returning True
after the first iteration even if condition was false.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Address review comments in regards bag_path optimization

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 66af399)

# Conflicts:
#	rosbag2_py/test/test_transport.py
mergify bot pushed a commit that referenced this pull request Jun 4, 2024
* Fix for false negative tests in rosbag2_py

-  wait_for(condition: Callable, timout) was incorrectly returning True
after the first iteration even if condition was false.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Address review comments in regards bag_path optimization

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 66af399)

# Conflicts:
#	rosbag2_py/test/test_transport.py
MichaelOrlov added a commit that referenced this pull request Jun 4, 2024
…1689)

* Fix for false negative tests in rosbag2_py (#1592)

* Fix for false negative tests in rosbag2_py

-  wait_for(condition: Callable, timout) was incorrectly returning True
after the first iteration even if condition was false.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Address review comments in regards bag_path optimization

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 66af399)

# Conflicts:
#	rosbag2_py/test/test_transport.py

* Resolve merge conflicts

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
MichaelOrlov added a commit that referenced this pull request Jun 4, 2024
…1688)

* Fix for false negative tests in rosbag2_py (#1592)

* Fix for false negative tests in rosbag2_py

-  wait_for(condition: Callable, timout) was incorrectly returning True
after the first iteration even if condition was false.

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

* Address review comments in regards bag_path optimization

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
(cherry picked from commit 66af399)

# Conflicts:
#	rosbag2_py/test/test_transport.py

* Resolve merge conflicts

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>

---------

Signed-off-by: Michael Orlov <michael.orlov@apex.ai>
Co-authored-by: Michael Orlov <michael.orlov@apex.ai>
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