← Back to issue list

cli: update parts cache in the container

View original Github issue

Metadata

Project
snapcraft
Number
#1546
Type
pull request
State
merged
Author
kalikiana
Labels
Created
Updated
Closed

Current evaluation

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.

Suggested action:

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
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.
qwen3.6-35b-a3b-mtp-q6 Merged. Passes snapcraft update to the container to refresh the parts cache, complementing refresh/upgrade logic in #1412. Approved after tests passed, with a reviewer suggesting a code comment to clarify why updates run on both host and container.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#161 snap: do not refresh already installed snaps craft-parts merged Merged a port of snapcraft#3617 to craft-parts. The change prevents refreshing already installed snaps by removing two lines of code. Approved by one reviewer and passed CI checks.
72%
#1585 lxd: pass SNAPCRAFT_PARTS_URI through into container snapcraft merged Merged to resolve bug 1719951. The change passes the SNAPCRAFT_PARTS_URI environment variable into LXD containers. Approved by one reviewer, passed CI checks, and added 19 lines across two files.
72%
#1412 lxd: snapcraft refresh in containers snapcraft merged Merged after awaiting prerequisite PR #1627. Implements snapcraft refresh for LXD containers, updating apt cache and packages once to persist changes across builds. Resolves container update persistence issues following successful testing.
71%
#588 Implement `snapcraft update` for parts snapcraft merged Merged after author fixed integration test failures caused by environment mocking differences. The change implements the snapcraft update command for parts, resolving LP #1594643.
70%