-
Notifications
You must be signed in to change notification settings - Fork 448
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
Colcon plugin: use release build by default #4502
Colcon plugin: use release build by default #4502
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.
I will push changes right now
950f960
to
b522214
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## main #4502 +/- ##
=======================================
Coverage 89.20% 89.20%
=======================================
Files 321 321
Lines 21755 21759 +4
=======================================
+ Hits 19407 19411 +4
Misses 2348 2348 ☔ View full report in Codecov by Sentry. |
b522214
to
7a266a5
Compare
@mr-cal Can we get an approval for the CI? |
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.
Thanks!
Should this be also backported to 7.x? |
@cmatsuoka no need to backport |
make lint
?But I got a strange error even if everything seems ok or 10/10
pytest tests/unit
?But I failed one test with the same issue as reported here extensions: method to get data dir #3810
Normally Colcon does not set any build flags and leaves the choice to the user, meaning the default value is empty and uses the default cmake configuration for debug symbols and optimization.
Inside snaps the executables are not supposed to be debugged and should be as optimized as possible so we want the default to be "Release" explicitly, unless the user overrides it intentionally in their snapcraft.yaml
This PR has been tested by creating snaps of the simple ros2-talker-listener snap with different debug levels, either default or user-customized.
The results for the talker executable show a clear reduction in size and in the number of symbols.