-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
Testing: hotfix to recover test coverage CI #11996
Conversation
CMAKE_TESTING should automatically be enabled but I hoped to do that in the test.cmake target specific options and not in the main CMakeLists. I have to see if I can make that order work. Here the hotfix to make CI work again.
Can we use this to enable it? We should try to avoid having any scattered CONFIG specific logic. |
We could add code coverage back to PR builds for testing feedback. |
I agree, the problem is the order:
So I probably need to reorder everything and then it should be possible. The only thing that held me back so far is that I wanted to be able to enable testing also with the
I think it will be useful while adding tests. |
@MaEtUgR How do we look like here? |
@LorenzMeier It's just a hotfix that would get coverage CI going again. I didn't find a good solution for the cmake flags to enable tests. We discussed the possibility to always include all testing in posix which I don't like that much. Maybe I can have a discussion with @julianoes since he lately looked into testing and might have good ideas. |
Describe problem solved by the proposed pull request
CMAKE_TESTING should automatically be enabled but I hoped to do that in the test.cmake target specific options and not in the main CMakeLists. I have to see if I can reorder to have a nicer separation working. Here the hotfix to make CI work again.
Test data / coverage
I tested locally if it properly configures
make tests
as well asmake px4_sitl_test test_results_junit
used by CI.Additional context
https://codecov.io/gh/PX4/Firmware/
@dagar informed me about CI coverage builds failing:
e.g. http://ci.px4.io:8080/blue/organizations/jenkins/PX4_misc%2FFirmware-SITL_tests_coverage/detail/master/310/pipeline/
after #11573 was merged. This was not caught by CI running on the PR because there are additional targets only built on master.