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

use ros2run api to handle KeyboardInterrupt #178

Merged
merged 1 commit into from
Sep 26, 2017

Conversation

dirk-thomas
Copy link
Member

Without the patch the surrounding launch file sends a SIGINT to this script which will raise during the subprocess.call and return non-zero.

This seems to have failed a few tests in the past:

The patch uses the ros2run API to handle the raised KeyboardInterrupt nicely and let the subprocess finish. The hope is that this makes the test not flaky anymore / less flaky.

It retried 30 times without failing due to a KeyboardInterrupt (which of course doesn't proof anything 😉): Build Status

The later failure was a timeout - pendulum_demo was hanging without ever printing the Connext license message. More on this in #177.

@dirk-thomas dirk-thomas added the in review Waiting for review (Kanban column) label Sep 15, 2017
@dirk-thomas dirk-thomas self-assigned this Sep 15, 2017
Copy link
Member

@mikaelarguedas mikaelarguedas left a comment

Choose a reason for hiding this comment

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

lgtm

@dirk-thomas dirk-thomas merged commit 4444f34 into master Sep 26, 2017
@dirk-thomas dirk-thomas deleted the fix_flaky_pendulum_test branch September 26, 2017 16:26
@dirk-thomas dirk-thomas removed the in review Waiting for review (Kanban column) label Sep 26, 2017
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