build_providers: add a build image setup facility
Metadata
Current evaluation
Merged PR #2192 as df9b64d86, adding architecture-specific cached build-image downloads and qcow2 backing-store setup for build providers.
Resolution: closed resolved
Reason: PR #2192 was approved and merged into Snapcraft as commit df9b64d86, implementing the build image setup facility.
Evaluated by: mr-cal-bot
No scores available.
Issue body
Download the correct build image to build a base for the corresponding architecture.
Use a cached download if available and setup the original build disk image as the
backing store for the newly setup image.
LP: #1782779
Signed-off-by: Sergio Schvezov <sergio.schvezov@canonical.com>
- [x] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [x] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [x] If this is a bugfix. Have you checked that there is a bug report open for the issue you are trying to fix on [bug reports](https://bugs.launchpad.net/snapcraft)?
- [x] If this is a new feature. Have you discussed the design on the [forum](https://forum.snapcraft.io)?
- [x] Have you successfully run `./runtests.sh static`?
- [x] Have you successfully run `./runtests.sh unit`?
-----
You test the UI by doing
```python
from snapcraft.internal.build_providers import images
images.setup(base="core18", snap_arch="amd64", size="4G", image_path="image.qcow2")
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2192 as df9b64d86, adding architecture-specific cached build-image downloads and qcow2 backing-store setup for build providers. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged PR #2192 as commit df9b64d86, adding cached, architecture-specific build image setup and disk-image backing store support in build_providers. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds a build image setup facility to build_providers that downloads architecture-specific images, leverages caching, and configures disk image backing stores. Approved by reviewer and passed CI checks. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged to add a build image setup facility that downloads and configures architecture-specific base images using cached downloads and backing stores. Changes achieved 100% diff coverage per Codecov. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1782779 Add disk image setup logic to the base build provider | snapcraft (launchpad) | closed | Implemented shared build-provider disk-image setup in canonical/snapcraft#2192, including architecture-specific image caching and backing-store support. | |
| #2966 build providers: move to buildd images | snapcraft | merged | Merged as commit 916097e6d, moving LXD build providers to Ubuntu buildd images to support all architectures and core20. |