-
Notifications
You must be signed in to change notification settings - Fork 50
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
Test initializing parameters from command line #274
Conversation
ec67875
to
8592186
Compare
41a5dcc 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm,
I pushed a few nitpicks on init_params_via_yaml_mikael_review
feel free to cherry-pick whatever is appropriate
a3687e2: alphabetical dependency order in package.xml
f36e85d: remove unused include
d2b7b76: call unused python loop control variable '_' for readability
4b8c886: reduce test tiemout, I have not see this test take more than a couple seconds on my machine so I supposed that using the default 60 second timeout should be enough
568a6d1: use some negative values for double testing
@mikaelarguedas merged your branch into this one; thanks for the fixes! |
Re-implement get_params without blocking when service is not ready
@mikaelarguedas here's a summary of the changes to this PR
|
test_cli/test/utils.py
Outdated
self._proc.kill() | ||
|
||
|
||
class NamedTemporaryFile: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The naming of this custom class is kind of confusing. It is the same as the one from the Python library but it behaves differently (doesn't return a file handle but the name). Therefore I would suggest to rename it to something more "custom" to avoid confusion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TemporaryFileWithContent
in deb5998
Please ticket this problem to investigate it in the future. |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm, though I wonder if this could not have been done in rclcpp
itself. But maybe there's a reason I missed. Also, why a new package and not just in test_rclcpp
(maybe the dependency on rclpy)? Will this package also test the python API in the same way?
<test_depend>ament_cmake_pytest</test_depend> | ||
<test_depend>ament_lint_auto</test_depend> | ||
<test_depend>ament_lint_common</test_depend> | ||
<test_depend>launch</test_depend> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like an unused dependency?
Follow up ticket #279 |
The tests introduced in this PR are failing on the Windows debug nightly: https://ci.ros2.org/view/nightly/job/nightly_win_deb/906/ |
Requires #272Connects to ros2/rclcpp#488
This adds tests for parameters initialized via the command line arg
__params:=/path/to/yaml.file