Skip to content

Implement QoS: liveliness, deadline, lifespan - #171

Merged
wjwwood merged 30 commits into
ros2:masterfrom
aws-ros-dev:qos_reviewed
May 3, 2019
Merged

wjwwood merged 30 commits into
ros2:masterfrom
aws-ros-dev:qos_reviewed

Conversation

@ross-desmond

@ross-desmond ross-desmond commented Mar 29, 2019 •

Copy link
Copy Markdown
Contributor

Summary
Provide init/fini and take functions for events. Modify wait_set to include event handles for notification of status changes.

Details:

  • ADD initial qos interface changes
  • ADD rmw take_event interface
  • ADD rmw event type enum
  • MODIFY events type from void** to rmw_event_t**
  • ADD RMW QoS Event Definitions
  • ADD section about DCO to CONTRIBUTING.md
  • EDIT liveliness policy types to reflect actual settings
  • ADD an invalid enum in rmw_event_type_t for variables to default to
  • MOVE rmw_*_event_init implementation to rmw
    ** Event initialization should require no modifications from the underlying rmw layer and therefore can be initialized in the rmw layer.

Signed-off-by: Ross Desmond [email protected]

Depends on #173

@tfoote tfoote added the in review Waiting for review (Kanban column) label Mar 29, 2019
Comment thread CONTRIBUTING.md Resolved
Comment thread rmw/include/rmw/event.h Resolved
Comment thread rmw/include/rmw/event.h Resolved
Comment thread rmw/include/rmw/event.h Resolved
Comment thread rmw/include/rmw/event.h Resolved
Comment thread rmw/include/rmw/types.h Resolved
Comment thread rmw/include/rmw/types.h Resolved
Comment thread rmw/src/event.c Resolved
Comment thread rmw/src/event.c Resolved
Comment thread rmw/src/event.c Resolved
@dabonnie

dabonnie commented Apr 2, 2019

Copy link
Copy Markdown

@wjwwood I believe we have addressed all of your comments. Please let us know if there is anything else outstanding given the latest changes.

@dabonnie
dabonnie force-pushed the qos_reviewed branch 2 times, most recently from ff6246d to 074c30a Compare April 2, 2019 21:48
@wjwwood

wjwwood commented Apr 3, 2019

Copy link
Copy Markdown
Member

This branch has conflicts and cannot be merged.

@wjwwood wjwwood left a comment

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.

Unfortunately I cannot review it in the current state, as it has lots of commits from master mixed into it.

Comment thread CONTRIBUTING.md Resolved
Comment thread rmw/cmake/get_rmw_typesupport.cmake Resolved
mm318 and others added 19 commits April 4, 2019 13:36
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
…eration of the feature

Signed-off-by: Emerson Knapp <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Removed unsupported QoS types

Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
**Summary**
Event initialization should require no modifications from the underlying rmw layer and therefore can be initialized in the rmw layer.

Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
Signed-off-by: Devin Bonnie <[email protected]>
Signed-off-by: Burek <[email protected]>
@thomas-moulard

Copy link
Copy Markdown
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mm318

mm318 commented May 2, 2019

Copy link
Copy Markdown
Member

@thomas-moulard - please run the following CI job:

@thomas-moulard

Copy link
Copy Markdown
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@wjwwood

wjwwood commented May 2, 2019

Copy link
Copy Markdown
Member

Let me know if I can help. Sorry about the last minute collisions, I know they're a pain.

Signed-off-by: Miaofei <[email protected]>
@emersonknapp

Copy link
Copy Markdown
Contributor

Thanks @wjwwood - we're running through it and will let you know - most of the rebases have been fairly straightforward but a few things are throwing us for a loop - hopefully have a good build ready to go soon

@thomas-moulard

Copy link
Copy Markdown
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mm318

mm318 commented May 2, 2019

Copy link
Copy Markdown
Member
  • Windows Build Status

@thomas-moulard

Copy link
Copy Markdown
  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

@mm318

mm318 commented May 3, 2019

Copy link
Copy Markdown
Member

HI @wjwwood and @sloretz, can this be merged now based on the #171 (comment) CI run? We will have quick follow up to fix the warnings.

@wjwwood

wjwwood commented May 3, 2019 •

Copy link
Copy Markdown
Member

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

We're investigating the test failure on macOS, but they look like flaky (new) tests.

@rutvih

rutvih commented May 3, 2019

Copy link
Copy Markdown

@wjwwood what are your thoughts on disabling failing tests for now and our team submitting a separate PR for the fix so we can get this merged?

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

@rutvih I think we're going to do that, I just started a macOS only job to see if that works:

Build Status

@wjwwood

wjwwood commented May 3, 2019 •

Copy link
Copy Markdown
Member

Ok, here's full CI:

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

EDIT: The macOS and Windows jobs got disconnected and re-queued due to the router reboot...

I'll merge if it is green 🎉.

@mm318 can you open an issue about fixing that test we disabled, just so we don't loose track of it.

@mm318

mm318 commented May 3, 2019 •

Copy link
Copy Markdown
Member

@mm318 can you open an issue about fixing that test we disabled, just so we don't loose track of it.

Sure, will do.

EDIT: Tracked at ros2/rcl#431

@dirk-thomas

Copy link
Copy Markdown
Member

We're investigating the test failure on macOS, but they look like flaky (new) tests.

How exactly is the failing test flaky? The tests were run with --retest-until-pass 10 and the error output contains:

> failed to resolve symbol 'rmw_get_serialized_message_size' in shared library

which doesn't sound flaky to me. Does it work for people in local testing?

I am fine disabling the new test for now - I would just like to be clear about why / how.

@mm318

mm318 commented May 3, 2019

Copy link
Copy Markdown
Member

That error output is unrelated to the test failures. rmw_fastrtps_cpp, rmw_fastrtps_dynamic_cpp, and rmw_opensplice_cpp all have rmw_get_serialized_message_size implemented, but rmw_connext_cpp/rmw_connext_shared_cpp does not (and implementing it is not supposed to be part of this set of PRs).

The test is flaky because it passes 90% of the time on @wjwwood's macOS laptop and actually only the RTI Connext version of the test kept failing on the buildfarm while the OpenSplice version did not.

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

Does it work for people in local testing?

Yes, for what ever reason that message only prints when it fails. I think it might be cached when they are pre-fetched, and only prints when the test fails.

That symbol was added in https://github.com/ros2/rmw_implementation/pull/51/files#diff-0e10897bf5aa86e527bbfbb0e10759e9R299 and not in rmw_connext's pr (https://github.com/ros2/rmw_connext/pull/353/files).

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

@mjcarroll fyi

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

Unfortunately the linters are now failing, at some point, around 4 hours ago, code was pushed to the rmw connext branch and it has a line that's too long, see: ros2/rmw_connext#352 (comment)

I cannot get this retested before nightlies start, so we'll have to re-evaluate in the morning.

@mm318

mm318 commented May 3, 2019

Copy link
Copy Markdown
Member

@wjwwood Would you be able to kick off CI to run overnight?

@tfoote

tfoote commented May 3, 2019

Copy link
Copy Markdown

Here's a retrigger of the builds

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

@emersonknapp

Copy link
Copy Markdown
Contributor

@tfoote I'm a bit confused about what we're seeing there - the linux aarch64 one is one that I've seen periodically that seems like it's a buildfarm quirk

projectroot.test_params_yaml
test_cli.test_params_yaml.xunit.missing_result

and the windows has a bunch of test failures for the CLI, which also seems unrelated to what we've done here - considering the previous builds did pass those tests?

@mm318

mm318 commented May 3, 2019

Copy link
Copy Markdown
Member

@wjwwood @sloretz Can we merge this based on these results? #171 (comment)

@clalancette

Copy link
Copy Markdown
Contributor

projectroot.test_params_yaml
test_cli.test_params_yaml.xunit.missing_result

This one is actually a bug, but a long running, known bug: ros2/build_farmer#166 . So you can safely ignore that one.

@wjwwood

wjwwood commented May 3, 2019

Copy link
Copy Markdown
Member

We've decided to merge after looking at the CI manually. 👍

@wjwwood
wjwwood merged commit e7ae806 into ros2:master May 3, 2019
@wjwwood wjwwood removed the in review Waiting for review (Kanban column) label May 3, 2019
@mm318

mm318 commented May 3, 2019

Copy link
Copy Markdown
Member

Awesome! Thank you!

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.