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

Refactor WaitForNodes class. #373

Merged
merged 1 commit into from
Mar 5, 2024

Conversation

clalancette
Copy link
Contributor

The main goal here is to get rid of the sometimes
flaky tests we are seeing in the nightlies. To do that, we try increasing the default timeout from 10 to 15 seconds.

While we are in here, do a few other pieces of refactoring in this test:

  1. Use a common variable name for the node name.
  2. Switch the variable name for the loop to 'finished', which better reflects what it is doing.
  3. Change the sleep between loops to 0.1, so we react faster
  4. Remove the unnecessary _prepare_node() method.

I think this should make the flaky test as in https://ci.ros2.org/view/nightly/job/nightly_linux_debug/2978/testReport/junit/launch_testing_examples.launch_testing_examples/check_multiple_nodes_launch_test/launch_testing_examples_check_multiple_nodes_launch_test/ less flaky.

The main goal here is to get rid of the sometimes
flaky tests we are seeing in the nightlies.  To do that,
we try increasing the default timeout from 10 to 15 seconds.

While we are in here, do a few other pieces of refactoring
in this test:

1. Use a common variable name for the node name.
2. Switch the variable name for the loop to 'finished', which
   better reflects what it is doing.
3. Change the sleep between loops to 0.1, so we react faster
4. Remove the unnecessary _prepare_node() method.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Copy link
Contributor

@ahcorde ahcorde left a comment

Choose a reason for hiding this comment

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

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

@clalancette clalancette merged commit c370d7e into rolling Mar 5, 2024
3 checks passed
@delete-merged-branch delete-merged-branch bot deleted the clalancette/launch-testing-examples-refactor branch March 5, 2024 17:54
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