Reduce provisioning / bootstrap time

Bug #2004431 reported by Haw Loeung
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
launchpad-buildd
New
Undecided
Unassigned
lpci
New
Undecided
Unassigned

Bug Description

Hi,

We're in the process of moving towards using lpcraft and Launchpad for various charms and other things. They're mostly configured to run lint checks as well as unit tests when a merge proposal is created and up for review.

With some things such as the canonical terraform plans, internal proxy config, and NGFW firewall configs, it runs small scripts mainly to check valid YAML and such. Unfortunately, the provisioning or bootstrap time of lpcraft jobs seems to take several minutes before the lpcraft configured things are started. An example being https://code.launchpad.net/~jsimpso/canonical-is-firewalls/+git/firewall-configs/+build/19803

I know there is LP:1995406 open to speed up APT package installs. In addition to this, maybe we can have an option to tell lpcraft to not run `apt-get update` and/or `apt-get dist-upgrade`?

Also, maybe there can be images lpcraft uses with python 3.x packages already installed?

Thanks!

Revision history for this message
Colin Watson (cjwatson) wrote :

Most of the time here probably ends up being in launchpad-buildd, so I'm adding a task there.

Haw Loeung (hloeung)
description: updated
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.