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

Pendulum teleop flakiness reduction #232

Merged
merged 5 commits into from
Apr 3, 2018
Merged

Pendulum teleop flakiness reduction #232

merged 5 commits into from
Apr 3, 2018

Conversation

dhood
Copy link
Member

@dhood dhood commented Apr 3, 2018

As mentioned in ros2/build_farmer#94, there is still an unresolved/unidentified issue that causes the teleop test to hang, so this won't resolve flakiness completely. I reason that these changes are still worth merging so that they can be ruled out as the cause for future investigations.

CI linux with connext (only combo tests run for): Build Status

Repeating 100 times: Build Status (I have seen on other builds that it's still prone to failure if you keep repeating the tests, but it's better)

@dhood dhood added the in review Waiting for review (Kanban column) label Apr 3, 2018
@dhood dhood self-assigned this Apr 3, 2018
@dhood dhood added in progress Actively being worked on (Kanban column) and removed in progress Actively being worked on (Kanban column) labels Apr 3, 2018
Copy link
Member

@wjwwood wjwwood left a comment

Choose a reason for hiding this comment

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

LGTM, I'm ok with this since the publisher was already transient local (clearly using durability was the intent, but was working due to the subscription settings).

Should the pendulum_teleop.cpp just spin? Does it need to exit like that?


If I were to implement it from scratch I'd probably use a periodic publisher, given the "real-time" nature of the demo. Better to have wasteful, but deterministic behavior rather than efficient, but asynchronously triggered extra work. At least that's what my intuition tells me.

@dhood
Copy link
Member Author

dhood commented Apr 3, 2018

Your questions are valid, I had been working under the assumption that it made sense to be that way for the actual pendulum demo (just publishing once then exiting), not sure if that's reasonable or not.

@dhood dhood merged commit 7284573 into master Apr 3, 2018
@dhood dhood deleted the pendulum_teleop_debug branch April 3, 2018 23:03
@dhood dhood removed the in review Waiting for review (Kanban column) label Apr 3, 2018
Karsten1987 pushed a commit that referenced this pull request Apr 30, 2018
* Sleep before exiting to get msgs out

* Avoid interrupting already exiting pendulum demo

* Use printf

* Subscribe to teleop msg with transient local

Makes test more robust to startup order

* Force flush for output sync
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.

2 participants