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 flaky ros2 param list #656

Merged
merged 3 commits into from
Jul 22, 2021
Merged

Fix flaky ros2 param list #656

merged 3 commits into from
Jul 22, 2021

Conversation

jacobperron
Copy link
Member

I think this relates to #655, and hopefully fixes it.

By using the daemon node to list parameter services, I hope we avoid a race with discovery with every invocation of ros2 param list. There still is a race with the first call if the daemon is not running yet, but I think that's normal for most ros2cli tools.

I've also add a retry decorator to the test to workaround it potentially failing on the first try.

This helps avoid incomplete parameter lists due to races with discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
It's possible that the first invocation of 'ros2 param list' does not return a complete parameter list
as there may not have been enough time for discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron self-assigned this Jul 21, 2021
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
Copy link
Member

@audrow audrow 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.

@jacobperron
Copy link
Member Author

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

@fujitatomoya
Copy link
Collaborator

@jacobperron @audrow all green, i go ahead to merge this.

@fujitatomoya fujitatomoya merged commit 6cbe070 into master Jul 22, 2021
@delete-merged-branch delete-merged-branch bot deleted the jacob/fix_flaky_param_list branch July 22, 2021 02:01
@jacobperron jacobperron added this to Proposed in Foxy Patch Release 5 via automation Jul 22, 2021
@jacobperron jacobperron moved this from Proposed to Needs backport in Foxy Patch Release 5 Jul 22, 2021
@jacobperron jacobperron added this to Proposed in Galactic Patch Release 1 via automation Jul 22, 2021
@jacobperron jacobperron moved this from Proposed to Needs backport in Galactic Patch Release 1 Jul 22, 2021
jacobperron added a commit that referenced this pull request Aug 31, 2021
* Use daemon for listing parameter services

This helps avoid incomplete parameter lists due to races with discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Retry list verb test

It's possible that the first invocation of 'ros2 param list' does not return a complete parameter list
as there may not have been enough time for discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Lint

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Aug 31, 2021
* Use daemon for listing parameter services

This helps avoid incomplete parameter lists due to races with discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
@jacobperron jacobperron removed this from Needs backport in Foxy Patch Release 5 Aug 31, 2021
@jacobperron jacobperron removed this from Needs backport in Galactic Patch Release 1 Aug 31, 2021
jacobperron added a commit that referenced this pull request Sep 9, 2021
* Use daemon for listing parameter services

This helps avoid incomplete parameter lists due to races with discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Retry list verb test

It's possible that the first invocation of 'ros2 param list' does not return a complete parameter list
as there may not have been enough time for discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>

* Lint

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
jacobperron added a commit that referenced this pull request Sep 9, 2021
* Use daemon for listing parameter services

This helps avoid incomplete parameter lists due to races with discovery.

Signed-off-by: Jacob Perron <jacob@openrobotics.org>
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

3 participants