Skip to content

[WIP] Modify get_node_names to return fully qualified names#345

Merged
sloretz merged 10 commits intoros2:masterfrom
jhdcs:feature/get_node_names
May 2, 2019
Merged

[WIP] Modify get_node_names to return fully qualified names#345
sloretz merged 10 commits intoros2:masterfrom
jhdcs:feature/get_node_names

Conversation

@jhdcs
Copy link
Copy Markdown
Contributor

@jhdcs jhdcs commented Apr 17, 2019

This pull request is joined to https://github.com/ros2/rclcpp/pull/698. This is intended to modify the current tests to work with the new version of get_node_names.

@jhdcs jhdcs force-pushed the feature/get_node_names branch from 5a4d4a4 to d4be213 Compare April 23, 2019 19:15
Copy link
Copy Markdown
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.

Taking a step back, what are these tests checking for? Maybe they should be updated to instead check for the full name? They may have only been checking for just the base name of the node because that's all the old behavior gave.

@jhdcs
Copy link
Copy Markdown
Contributor Author

jhdcs commented Apr 24, 2019

Taking a step back, what are these tests checking for? Maybe they should be updated to instead check for the full name? They may have only been checking for just the base name of the node because that's all the old behavior gave.

I think that checking for the full name is probably the best idea. But that will require me to make quite a few more changes. I'll get started.

@wjwwood
Copy link
Copy Markdown
Member

wjwwood commented Apr 24, 2019

Ok, sorry, wasn't trying to invent work for you, but I think it would be better to refresh these particular tests. Thanks.

@jhdcs
Copy link
Copy Markdown
Contributor Author

jhdcs commented Apr 24, 2019

No, no! It's A-OK! Though, I'm having a bit of difficulty updating the tests - it seems some of the test files are actually generated, and I'm not positive how to set up the generated node names. I'll push my latest changes in a sec.

EDIT Apologies for the word salad, I was in a bit of a rush. It seems that the tests are generated from the py.in files. I'm just trying to find where these files get their executable_args. Looking at the output of these tests, it seems that the original author is using the same string to both generate a node name and look for it. Which is fine normally, but the name qualification process tacks a "/" on the front of the name.

I'd like for the arguments to be correct from the get-go, rather than have the test manually add a "/" on the front of a passed in name.

@jhdcs
Copy link
Copy Markdown
Contributor Author

jhdcs commented Apr 25, 2019

I just bit the bullet and implemented the string modification in the test. We needed to cast argv[1] to a std::string anyways.

Is there a preferred way to do this? Can I get a CI on this?

@jhdcs
Copy link
Copy Markdown
Contributor Author

jhdcs commented Apr 29, 2019

@wjwwood Do the changes look acceptable?

Copy link
Copy Markdown
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

Thanks for iterating! Only nitpick comments

@sloretz
Copy link
Copy Markdown
Contributor

sloretz commented May 1, 2019

CI (just test_rclcpp on windows since there are comments to address before full CI) Build Status

Jacob Hassold added 9 commits May 1, 2019 07:38
Amended the tests to reflect this
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
@jhdcs jhdcs force-pushed the feature/get_node_names branch from d27a706 to 2746593 Compare May 1, 2019 11:39
Signed-off-by: Jacob Hassold <jhassold@dcscorp.com>
@jhdcs
Copy link
Copy Markdown
Contributor Author

jhdcs commented May 1, 2019

Okay, made the changes you asked for. However, it looks like the testing API has gotten changed? Do I need to make any changes to account for this, or should it just work?

Because it seems like it's done something funky to my fastrps setup... The tests have suddenly stopped working reliably.

Edit Nevermind, they seem to have sorted themselves out?

Copy link
Copy Markdown
Contributor

@sloretz sloretz left a comment

Choose a reason for hiding this comment

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

LGTM with green CI

@sloretz
Copy link
Copy Markdown
Contributor

sloretz commented May 2, 2019

CI looks good ros2/rclcpp#698 (comment)

@sloretz sloretz merged commit 7f21208 into ros2:master May 2, 2019
@sloretz sloretz removed the in review Waiting for review (Kanban column) label May 2, 2019
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.

4 participants