No feedback for long running operation
Bug #1669730 reported by
Alan Pope 🍺🐧🐱 🦄
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Snapcraft |
Fix Released
|
Medium
|
Kyle Fazzari |
Bug Description
Just ran "snapcraft cleanbuild --remote foo" (where foo is my home server where I like to build things). It's sat at the following:-
"Copying snapcraft cache into container"
For a very long time. I thought maybe the server had died or something, but it hadn't, lxd is eating cpu because it seems that snapcraft is pushing my entire ~/.cache/snapcraft to the remote machine over wifi.
I have no feedback as to what's going on in terms of progress, so don't know how far it's got or when (if) it will finish. Perhaps we need some kind of spinner or progress bar?
(my .cache/snapcraft directory is 2GB in size)
Changed in snapcraft: | |
status: | In Progress → Fix Committed |
Changed in snapcraft: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Thanks for this, Alan. Most of the size from the Snapcraft cache is stage packages. We really wanted to bind-mount it, but the user mapping in lxd got in the way there so it wouldn't be usable. As a result we ended up copying it, not considering remote cleanbuilds where that would take quite some time.
In your mind, what is the ideal solution in this scenario? A better progress indicator as you suggest? Or no cache copying to remote hosts?