-
Notifications
You must be signed in to change notification settings - Fork 240
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
Add API samples for Python #1253
Conversation
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.
@DLu Thank you for moving forward with this PR.
Could you please fix linter errors
Error Message
AssertionError: Found 3 code style errors / warnings:
./rosbag2_examples_py/data_generator_node.py:8:1: E302 expected 2 blank lines, found 1
./rosbag2_examples_py/data_generator_executable.py:34:1: E305 expected 2 blank lines after class or function definition, found 1
./rosbag2_examples_py/simple_bag_recorder.py:8:1: E302 expected 2 blank lines, found 1
assert 1 == 0
And add copyright to the python files with the same template as in
// Copyright 2021 Open Source Robotics Foundation | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software | |
// distributed under the License is distributed on an "AS IS" BASIS, | |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
// See the License for the specific language governing permissions and | |
// limitations under the License. |
@ros-pull-request-builder retest this please |
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.
@DLu Thanks for PR.
LGTM.
Gist: https://gist.githubusercontent.com/MichaelOrlov/758e2c906fcfb97e3e7be59b516d99cc/raw/fe8d10c5fe162ccc871b2f1694188c8e7e2b8846/ros2.repos |
@MichaelOrlov Ready to go! |
Gist: https://gist.githubusercontent.com/MichaelOrlov/758e2c906fcfb97e3e7be59b516d99cc/raw/fe8d10c5fe162ccc871b2f1694188c8e7e2b8846/ros2.repos |
@DLu CI has warnings. Could you please address them?
|
Two things:
|
Signed-off-by: Geoffrey Biggs <gbiggs@killbots.net>
Signed-off-by: David V. Lu <davidvlu@gmail.com>
Signed-off-by: David V. Lu <davidvlu@gmail.com>
Signed-off-by: David V. Lu <davidvlu@gmail.com>
Just to be clear, this isn't new at all. This has been the CI practice for ROS 2 for approximately 7 years. There are definitely arguments to be made that this should be a GitHub hook, but doing it this way means that OSRF is ultimately in control of running CI. Regardless, this isn't the place to debate this.
If you follow the instructions on http://docs.ros.org/en/rolling/Installation/Alternatives/Ubuntu-Development-Setup.html on installing dependencies, it will install all of the pytest/flake8 hooks you need. |
I apologize if my question about the Github hook came off as combative, but I just didn't understand what was going on. Is there documentation about this kind of CI? Also, not to be pedantic, but do you still work for OSRF? |
@clalancette I am also curious how to reproduce or catch errors from
Still no errors was reported. I've double checked I have up to date version of the |
Trying to re-run CI one more time @ros-pull-request-builder retest this please |
@clalancette I've spent some time trying to investigate situation why CI job giving us warning errors and we can't reproduce it locally. @DLu Sorry for confusion with false CI warnings. It was surprise for me as well. |
This pull request has been mentioned on ROS Discourse. There might be relevant details there: https://discourse.ros.org/t/ros-2-tsc-meeting-minutes-4-20-2023/31087/1 |
In lieu of @gbiggs fixing #887, I cherry-picked the commit here and then renamed things based on @MichaelOrlov 's comment