Azure / iotedge

The IoT Edge OSS project
MIT License
1.46k stars 458 forks source link

Turn off debug symbols for snaps #7256

Closed damonbarry closed 6 months ago

damonbarry commented 6 months ago

There isn't currently a good way to package debuginfo and symbols for snaps. Since we're building with full symbols in cargo and they aren't being stripped out during the snap build, our snap packages are much larger than they should be. This change disables the debug setting in the cargo release profile for snaps only.

To test, I built the amd64 snap locally with these changes. It went from 78 MB down to 21 MB. I also ran ran the end-to-end tests against built packages and confirmed everything passes.

Azure IoT Edge PR checklist:

This checklist is used to make sure that common guidelines for a pull request are followed.

General Guidelines and Best Practices

Testing Guidelines