Charmcraft pack taking > 30 mins

Running charmcraft pack recently has been taking quite a long time, sometimes upwards of 30mins and in 2 cases more than 2 hours without completing. In most cases, I’m re-packing the charm after making changes. I’ve re-installed charmcraft and no change. Restarting the computer has helped sometimes. Charmcraft version: 3.2.1 LXD version: 6.1 Ubuntu: 24.04.1 LTS Here’s an example of a build: https://pastebin.com/5G0V31zn

Edit. This problem looks like a similar problem as asked and resolved here :face_exhaling:

1 Like
2024-11-05 17:55:15.370 Emitter: Pausing control of the terminal
2024-11-05 18:28:53.809 Emitter: Resuming control of the terminal

Was that you hitting ^Z or did that happen on its own?

The 2nd line was me hitting ^C

I would recommend opening a bug report.

It looks like the majority of the time taken from your log is in building the pyyaml dependency for your charm.

What steps are you taking normally with the change and rebuild? (Specifically are you running charmcraft clean?) It should be reusing the built pyyaml wheel.