← Back to issue list

snap: add remove hook to delete base instances and base images

View original Github issue

Metadata

Project
snapcraft
Number
#4014
Type
pull request
State
merged
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Merged #4014 in commit 4e41bf0c9, adding an uninstall hook that deletes Snapcraft's LXD base instances and images (CRAFT-1488).

Resolution: closed resolved

Reason: PR #4014 was approved and merged as commit 4e41bf0c9, implementing cleanup of LXD resources when Snapcraft is uninstalled.

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] Have you successfully run `make lint`? - [X] Have you successfully run `pytest tests/unit`? ----- When snapcraft is uninstalled, the base instances and images for LXD are removed. (CRAFT-1488)

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Merged #4014 in commit 4e41bf0c9, adding an uninstall hook that deletes Snapcraft's LXD base instances and images (CRAFT-1488).
stealth/space-bunny-alpha — closed resolved Merged PR #4014 (commit 4e41bf0c9) adds snap/hooks/remove, a shell remove hook that deletes snapcraft LXD base instances and legacy base images on uninstall. Follow-up 8ce88c44b removed the hook's spread test for core24.
stealth/space-bunny-alpha — closed resolved Merged #4014 in commit 4e41bf0c9, adding an uninstall hook that deletes LXD base instances and images (CRAFT-1488).
qwen/qwen3.6-35b-a3b — — 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.
qwen3.6-35b-a3b-mtp-q6 — — Merged into main. Introduces a remove hook to automatically clean up LXD base instances and images upon snapcraft uninstallation, resolving CRAFT-1488. Codecov confirms no coverage impact.

Update history

No update history recorded yet.

Related issues

Issue Project State Summary Similarity
#710 feat: upstream snap hooks craft-providers merged Merged as 5bbaf39, adding reusable configure and remove snap hooks to prune obsolete LXD base instances, derived instances, images, and projects.
76%
#199 snap: add remove hook to delete rockcraft data from lxd rockcraft merged Merged #199 in commit 2c6ad423, adding a snap remove hook that deletes Rockcraft's LXD images, instances, and project when the snap is removed.
74%
#207 snap: add configure hook to delete outdated instances from lxd rockcraft merged Merged as cbe7699a: added a snap configure hook that removes known outdated LXD images and instances whenever Rockcraft is installed or refreshed (CRAFT-1344).
74%
#709 Upstream snap hooks craft-providers closed Centralized upstream snap hooks in craft-providers via merged PR #710 (commit 5bbaf39), shipping in 2.2.0 as reusable LXD cleanup utilities.
71%