Skip to content
This repository was archived by the owner on May 31, 2025. It is now read-only.

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

Merged
mikepurvis merged 3 commits intoros:melodic-develfrom
clearpathrobotics:ga_1357
May 10, 2018
Merged

Change to force a rebuild of the pollset on flag changes#1393
mikepurvis merged 3 commits intoros:melodic-develfrom
clearpathrobotics:ga_1357

Conversation

@guillaumeautran
Copy link
Copy Markdown
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
void add_socket_to_watcher(int epfd, int fd) {
#if defined(HAVE_EPOLL)
struct epoll_event ev;
bzero(&ev, sizeof(ev));
Copy link
Copy Markdown
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.

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
Copy Markdown
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.

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants