← Back to issue list

lxd: distinguish argless clean from clean -s pull

View original Github issue

Metadata

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

Current evaluation

Merged fix for bug 1727445 distinguishing argless snapcraft clean from snapcraft clean -s pull in LXD. Approved by one reviewer, passed CI, and verified via manual testing. Changes span three files with a minimal diff.

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`? ----- Fixes [bug 1727445](https://bugs.launchpad.net/snapcraft/+bug/1727445).

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.6-35b-a3b Merged fix for bug 1727445 distinguishing argless snapcraft clean from snapcraft clean -s pull in LXD. Approved by one reviewer, passed CI, and verified via manual testing. Changes span three files with a minimal diff.
qwen3.6-35b-a3b-mtp-q6 Merged fix for bug 1727445 modifying LXD to distinguish argumentless clean from clean -s pull. Containers are now only removed during full cleanup, preserving them for stage-specific operations. Verified via manual testing.
qwen3.6-35b-a3b-mtp-q6 Merged fix for bug 1727445 that distinguishes argless snapcraft clean from snapcraft clean -s pull to correctly manage LXD container lifecycle. Verified via manual testing and integrated into main.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#1434 lxd: clean with no parts should only delete snapcraft merged Merged. Updates snapcraft LXD handling so running clean without arguments only deletes container resources instead of executing commands inside them. Approved by one reviewer and merged.
80%
#1519 lxd: use a unique temporary folder snapcraft merged Merged to resolve parallel snapcraft cleanbuild failures by moving the temporary folder initialization to the constructor. Removed the is_snap condition, relocated tests, and passed CI review. Modified 5 files.
73%
#1577 lxd: don't inject local snaps on a different arch snapcraft merged Merged a fix preventing Snapcraft from injecting local snaps into LXD containers with mismatched architectures. Cross-arch remotes now install snaps from the store. Approved by reviewers and merged after CI checks.
72%
#1639641 Don't assume lxd from dpkg snapcraft (launchpad) closed Resolved via merged pull request #904, updating snapcraft cleanbuild to detect LXD installed via snap rather than only checking dpkg.
72%
#1364 lxd: Inject snapcraft and core snaps into the container snapcraft merged Merged. Injects the host's snapcraft and core snaps into LXD containers to ensure build version consistency. Approved by one reviewer, modifying nine files with 360 additions and 46 deletions.
71%
#1199 cleanbuild: packaging independent detection. snapcraft merged Merged changes making LXD detection packaging-independent for snap and manual installs. Detection logic moved from lifecycle to the lxd module, eliminating the translation layer. Approved, passed CI, and merged across four files.
71%
#3112 spread: remove dead code for lxd setup and add debug prints snapcraft merged Merged removal of redundant elif dead code in LXD setup logic and addition of debug prints for LXD snap install failures. Approved by one reviewer, passed CI checks, and integrated.
71%
#1984 fix(snap): check if LXD is actually installed charmcraft merged Merged fix updating configure and remove hooks to verify LXD installation before proceeding. Prevents unwanted LXD snap installations on Ubuntu that cause delays. Approved by two reviewers, passed CI, and resolves #1982.
70%
#1435 lxd: wait on lock files before running apt commands snapcraft merged Merged a change that waits for apt lock files before executing apt commands in LXD. This prevents concurrent lock errors when apt runs simultaneously with snapcraft. Approved by two reviewers with a 12/-3 line diff.
70%