-
Notifications
You must be signed in to change notification settings - Fork 32
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
IKOS files are not generated in static code analysis #104
Comments
Also related #99 . |
Thanks for this investigation. I'm going to continue the discussion on why IKOS is not installed in #99. After we get it in the docker image, we can discuss if the results are being generated. |
Btw the section in README that describes how to run IKOS analysis mentions that executing it on all packages takes "very long time". Maybe we should record this time and decide if we want to run IKOS as part of CI at all / run it on different cadence (e.g. monthly). |
I propose a different approach. IKOS can be configured to tune both the speed and the tests (which affect the potential for false positives). I agree with measuring how long it takes, but, instead of disabling it, lets figure out a set of settings that is fast enough but provides something useful in terms of assurance. |
Good idea, especially since you've expressed interesting in focusing down static analysis infrastructure for the April release. I've opened a discussion: space-ros/space-ros#128 |
Summary
+build-testing
procedure from spaceros Earthfile invoked in CI should produce summary of tests and static code analysis. There are noikos.sarif
files present in CI artifact. Check the latest artifact saved as part of CI.To investigate the issue i took a look at logs from
robot_state_publisher
test run. The logs (after slight modifications) are available in~/spaceros/build/robot_state_publisher/ament_ikos/ikos.txt
file in docker image created by earthly:I don't have much experience with ikos but from short investigation it seems that
ament_ikos
is looking for.ikosbin
files, which to my understanding should be created during package compilation.Apart from that I noticed that
ikos
is not even installed in the docker image. I think we should fix that by addingikos_vendor
package to ament_ikos repo, the same way it is done for cobra in ament_cobra repo.Additionally
ikos
is specified inament_ikos
as dependency inpackage.xml
:https://github.com/ament/ament_ikos/blob/b7663666ef934c51126c5fb496d1eb3099fddbc9/ament_ikos/package.xml#L10
Rosdep is not able to install ikos in this way and it throws error on my machine.
I believe that is the reason why we are adding
ikos
to --skip-keys in our Earthfile - otherwise build would simply fail.docker/spaceros/Earthfile
Line 115 in 76cd412
The text was updated successfully, but these errors were encountered: