snap: add configure hook to delete outdated instances from lxd
Metadata
Current evaluation
Merged. Adds a snap configure hook to remove outdated LXD images and instances during Rockcraft installation or refresh. Approved by two reviewers and merged after addressing test failures from spread resources and runner deprecation.
Suggested action: —
No scores available.
Issue body
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
-----
When rockcraft is installed or refreshed, the snap configure hook will remove outdated images and instances from LXD.
(CRAFT-1344)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Adds a snap configure hook to remove outdated LXD images and instances during Rockcraft installation or refresh. Approved by two reviewers and merged after addressing test failures from spread resources and runner deprecation. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged. Introduces a snap configure hook to automatically delete outdated LXD images and instances when rockcraft is installed or refreshed. Resolves CRAFT-1344 after initial test failures from spread resource limits and deprecated Ubuntu 18.04 runners were fixed. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged a snap configure hook that removes outdated LXD images and instances during rockcraft installation or refresh, resolving CRAFT-1344. Initial test failures due to resource limits and deprecated runners were addressed prior to merge. |
Update history
No update history recorded yet.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #199 snap: add remove hook to delete rockcraft data from lxd | rockcraft | merged | Merged implementation of a snap remove hook that automatically deletes rockcraft's LXD images, instances, and project data upon uninstallation. Approved by two reviewers, passed CI checks, and updated four files. | |
| #4014 snap: add remove hook to delete base instances and base images | snapcraft | merged | Merged into main. Adds a remove hook to delete LXD base instances and images when snapcraft is uninstalled. Approved by one reviewer, passed CI checks, and caused no coverage changes. Resolves CRAFT-1488. | |
| #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. |