Improved build times for snappy images
Kyle Fazzari
kyle.fazzari at canonical.com
Wed May 18 12:58:18 UTC 2016
On 05/18/2016 06:37 AM, Reinhard Pointner wrote:
> Hi all,
>
> Since I find myself rebuilding over and over trying different things. I
> have noticed a few things that could be improved.
Thanks for the feedback Reinhard!
> 1.
> If I add stage-packages to a part. I have to run `snapcraft clean part`
> first to make the changes stick. Changing the yaml does not
> automatically make snapcraft rebuild the changed parts.
Indeed, this is a known issue and is something we're working on. Bits
and pieces are done already, for example if you change the `stage`
keyword the part is automatically re-staged.
> 2.
> mksquashfs takes a lot longer than I'd expect. For a final release I
> wouldn't mind, but building snaps in rapid succession is not fun if it
> takes 2-3 minutes every time (snap folder: 3355 items, totalling 425.4
> MB) I want to test a small change. Not sure what compression is used,
> but at least for testing I'd prefer something that was super fast / no
> compression.
Some new functionality will be available soon via `snap try`, which will
allow you to try your snap directly out of snapcraft's `snap` directory
rather than having to iterate with `mksquashfs` in the loop.
Keep an eye out for those changes!
--
Kyle Fazzari (kyrofa)
Software Engineer
Canonical Ltd.
kyle at canonical.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snappy-app-devel/attachments/20160518/563eca8a/attachment.pgp>
More information about the snappy-app-devel
mailing list