Comments (5)
I don't think you're supposed to source the workspace before running your tests. This might suggest that you're doing something wrong in your CMakeLists.txt
. Does this also happen locally if you don't source your workspace before running your tests?
from action-ros-ci.
I need to do a full clean build of my workspace and have a try locally. I can also already confirm you that I forked this repo, added workspace sourcing, and works.
So I believe that there is need to understand if component registration is something that needs to source the workspace or not. By the way, do you know about packages or test around github that dynamicall load components in CI?
from action-ros-ci.
Yeah, I have no doubt that it works if you source the workspace before testing.
So I believe that there is need to understand if component registration is something that needs to source the workspace or not. By the way, do you know about packages or test around github that dynamicall load components in CI?
Nothing specific comes to mind. If you can reproduce locally, you might want to ask a question on https://answers.ros.org/questions/ or https://robotics.stackexchange.com/ to try to figure out what's missing.
from action-ros-ci.
Yes, not sourcing the workspace causes the components not to appear when issuing the following command:
ros2 component types
I don't think you're supposed to source the workspace before running your tests.
Do you have an explanation to this / are you sure? I mean, I'm fine with keeping a fork to source the workspace, so if you consider this something wrong with my CMake and want to close the issue here no problem, but if you have any sources on this (no pun intended) I'd like to learn more.
from action-ros-ci.
It wasn't mentioned in the docs, but it will soon be mentioned here: https://docs.ros.org/en/rolling/Tutorials/Intermediate/Testing/CLI.html. See this PR: ros2/ros2_documentation#3677.
As for an explanation, colcon test
is simply supposed to take care of all of this (i.e., set the right paths, environment variables, etc.). I was told this works fine with test components in the ROS 2 core. You might want to try comparing your code/CMake to this: https://github.com/ros2/rclcpp/tree/rolling/rclcpp_components.
I'll close the issue given that it shouldn't have anything to do with action-ros-ci
, but do let me know how it goes/if you're able to fix it.
from action-ros-ci.
Related Issues (20)
- Input for git reference to checkout HOT 3
- Windows CI fails without a helpful error message HOT 2
- Warning: The `set-output` command is deprecated and will be disabled soon. HOT 1
- Cannot pull private submodules using ssh HOT 1
- Run `colcon test-result` to print test failures
- Pep 257 test fails with internal error on rolling HOT 4
- Option for Catkin Build for ROS 1 Projects HOT 1
- Split build and test steps
- Support other ways of selecting packages HOT 2
- Failed to build fork private repo (PR) HOT 9
- Args set using colcon-defaults do not reflect in workflow run HOT 9
- Test failure on Galactic HOT 4
- ModuleNotFoundError: No module named 'catkin_pkg' when building ROS2 package using [email protected] HOT 2
- Skip `rosdep install` HOT 8
- wrong URL for GitHub Enterprise repos HOT 3
- [README Docs Request] A remark on setup-ros vs Docker already setup HOT 2
- Cannot get local files with vcs-repo-file-url HOT 3
- Have the default examples have the steps to install other DDS implementations
- Build Error on ROS Noetic HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-ros-ci.