snapcraft prerequites are slow to resolve
Bug #1590599 reported by
Michael Hall
This bug affects 4 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
High
|
Sergio Schvezov |
Bug Description
In large projects with many parts, resolving prerequisites can be extremely slow. I have attached the snapcraft.yaml for building kdevelop. After a full build and without cleaning, I ran "snapcraft stage" under a profiler. This was essentially a noop command, but the prerequisite checking took more than 10 minutes.
Also attacked is the output from "snapcraft stage" which show only prerequisite resolution and skipping steps. Also attached is the profiler output showing the top 100 lines in terms of time used, as well as the top 100 function calls by count.
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
tags: | added: eco-team |
To post a comment you must log in.
I don't know how much it will help, but I am taking a different approach, and adding a misc part and adding all the build-packages for all the parts there so that apt will only be used for the misc, qt, and frameworks parts, rather than for every part. This will all be better when snaps can use libraries from other snaps as then I will build a snap for each framework and we only need to pull in the required pre-built frameworks snaps that are needed. When I tried to put each framework as a part it was a spectacular level of fail as the dependency chain was enormous.