cli: update parts cache in the container
Metadata
Current evaluation
Merged as 0dde02398: snapcraft update now refreshes the parts cache in the LXD container as well as the host. Complementary container refresh work landed in #1412.
Resolution: closed resolved
Reason: The PR was approved and merged into snapcraft as commit 0dde02398 ("cli: update parts cache in the container (#1546)"), which touches snapcraft/cli/parts.py to run the update lifecycle via containerbuild when a container config is in use.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [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`?
-----
- Pass snapcraft update through to the container
See the [forum proposal](https://forum.snapcraft.io/t/update-persistent-lxd-containers/1648/3).
**Note**: The other part is implemented in #1412.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged as 0dde02398: snapcraft update now refreshes the parts cache in the LXD container as well as the host. Complementary container refresh work landed in #1412. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged as 0dde02398: snapcraft update now refreshes the parts cache in both the host and LXD container. Complementary container refresh work is covered by #1412. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged #1546 in commit 0dde02398, routing snapcraft update through the container to refresh its parts cache; the complementary refresh/upgrade work was handled by #1412. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged. Passes snapcraft update to the container to refresh the parts cache. Approved by two reviewers with passing CI. Implements the update portion of a container cache sync, with refresh handled in PR #1412. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Passes the snapcraft update command to the container to refresh the parts cache, complementing PR #1412 for refresh and upgrade operations. Approved after tests passed and code review validated the host and container execution context. |
Update history
No update history recorded yet.
Related work
-
Related To:
snapcraft#1412
(confidence 92%)
Paired PR referenced in the description; merged as 3d511c5eb adding LXD container refresh (host/container split discussed with sergiusens in review).
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1412 lxd: snapcraft refresh in containers | snapcraft | merged | Merged PR #1412 as 3d511c5eb, making LXD container refresh install Snapcraft once while allowing packages and snaps to be updated in reusable containers. | |
| #1585 lxd: pass SNAPCRAFT_PARTS_URI through into container | snapcraft | merged | Merged in canonical/snapcraft#1585 (13ea598d5), forwarding SNAPCRAFT_PARTS_URI into LXD containers so cleanbuild can resolve remote parts; fixes Launchpad #1719951. | |
| #1739 lxd: refresh remote container | snapcraft | merged | Merged #1739 as 2f9265f23, fixing snapcraft refresh to honor the LXD remote named by SNAPCRAFT_CONTAINER_BUILDS instead of using a local container. | |
| #1364 lxd: Inject snapcraft and core snaps into the container | snapcraft | merged | Merged PR #1364 as 99f5598ac, injecting the host's Snapcraft and core snaps into LXD containers so builds no longer use a mismatched Xenial archive version. | |
| #1734145 snapcraft clean <part-name> destroys everything when using containers | snapcraft (launchpad) | closed | Fixed targeted container cleanup: `snapcraft clean <part>` no longer deletes the LXD container while other parts remain; merged in #1762 (dbce9a058). | |
| #1722049 core refresh in container build breaks build | snapcraft (launchpad) | closed | Fixed by merged PR canonical/snapcraft#2098 (commit 7666a74a7), which waits for active snap refreshes before injecting build snaps into reusable LXD containers. |