-
Notifications
You must be signed in to change notification settings - Fork 1
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
At which phase of a build should haros be run? #14
Comments
We might want to see how rosdoc documentation is part of a build. It could be it's not and you need to invoke the build of that manually, but it could also be added to another target. I don't remember, it's been a while since I last looked at that. This ticket is more about the idea of running haros as an inspection tool. Perhaps looking at which stage the ROS 2 linters are run could provide some inspiration. |
@git-afsantos: would you have any input? |
Also connected to #11. |
Both suggestions work, and it really depends on the workflow. Since haros is being used only as a static analyser, it could (should?) be run with every build (as a compiler would). On the other hand, sometimes the changes from one build to another are small, and people would be more interested in these results "on demand" or "when it makes sense", like tests. In this specific context, I think the main questions are
|
I found this entry on ROS Answers in which Dirk Thomas states the following: So I guess it's a good idea to adhere to this procedure and do the same for |
Hm, that is a nice find. I've not looked at how those linters are integrated. Would you know? |
No not yet. This seems to be a nice introduction which looks like it boils down to:
So the overall procedure generally seems to take two packages - one for the actual linter process (being a CLI wrapper) and another one to contain the CMake scripts to register the linter to run during tests. |
This connects to #13.
Right now we either run haros always (by adding it to "the default build target", typically
all
forMakefile
s) or as part ofrun_tests
(or at least: I have that working in my local version).As haros itself only outputs a report, I'm not sure what would be the best phase of a typical build it should integrated with.
The text was updated successfully, but these errors were encountered: