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

Change to force a rebuild of the pollset on flag changes #1393

Merged
merged 3 commits into from
May 10, 2018

Conversation

guillaumeautran
Copy link
Contributor

This change fixes issues seen in #1357
Goes with #1281

mgrrx and others added 2 commits April 23, 2018 16:49
This reverts commit 5e2b38e.

This change may be considered for backporting to Lunar at a later time.
@guillaumeautran guillaumeautran changed the title Change to force a rebuild of the pollset un flag changes Change to force a rebuild of the pollset on flag changes May 9, 2018
@@ -119,6 +119,8 @@ void close_socket_watcher(int fd) {
void add_socket_to_watcher(int epfd, int fd) {
#if defined(HAVE_EPOLL)
struct epoll_event ev;
bzero(&ev, sizeof(ev));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing valgrind warnings.

@@ -147,6 +149,8 @@ void del_socket_from_watcher(int epfd, int fd) {
void set_events_on_socket(int epfd, int fd, int events) {
#if defined(HAVE_EPOLL)
struct epoll_event ev;
bzero(&ev, sizeof(ev));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixing valgrind warnings.

@@ -1,6 +1,6 @@
catkin_add_gtest(${PROJECT_NAME}-test_version test_version.cpp)
if(TARGET ${PROJECT_NAME}-test_version)
target_link_libraries(${PROJECT_NAME}-test_version)
target_link_libraries(${PROJECT_NAME}-test_version ${catkin_LIBRARIES})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I could not build and run the unit tests without the following changes.

Copy link
Member

Choose a reason for hiding this comment

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

Did you end up just running the tests on Linux but with a build where HAVE_EPOLL was forced to 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's correct yes.

Copy link
Member

Choose a reason for hiding this comment

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

And prior to this fix the tests failed to complete successfully?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sorry, I should have mentioned that.

Also, I am looking at the current build failure.

Copy link
Member

Choose a reason for hiding this comment

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

My impression is that that test has been flakey for a while— it definitely has a timing sensitivity and does sometimes pass on the buildfarm. However, if you have further insights on it, that would be great.

@guillaumeautran
Copy link
Contributor Author

I cannot figure out why the test fails on the build farm. They obviously pass just fine on my laptop which makes it hard to troubleshoot...

@mikepurvis mikepurvis changed the base branch from lunar-devel to melodic-devel May 10, 2018 14:53
@mikepurvis
Copy link
Member

LGTM, and has the thumbs-up from @mpflanzer in #1357 (comment).

IMO this should merge now and we can treat the test regression as separate since it predates this change.

@mikepurvis mikepurvis merged commit ea85020 into ros:melodic-devel May 10, 2018
dirk-thomas pushed a commit that referenced this pull request Aug 9, 2018
* Change to force a rebuild of the pollset on flag changes

This change fixes issues seen in #1357, resulting from #1281
dirk-thomas pushed a commit that referenced this pull request Aug 20, 2018
* Change to force a rebuild of the pollset on flag changes

This change fixes issues seen in #1357, resulting from #1281
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants