Deduplicate hookutil
Metadata
Current evaluation
Enhancement request to deduplicate hookutil against craft-providers' own LXD code. Delivered by merged PR #1006 (commit f366c2f): hookutil now uses craft_providers.lxd.LXC and exposes BASE_INSTANCE_START_STRING.
Resolution: closed resolved
Reason: Merged PR canonical/craft-providers#1006 (commit f366c2f, 'refactor: deduplicate hookutil') closed the issue. hookutil.py now imports LXC, LXDError and is_installed from craft_providers.lxd and defines BASE_INSTANCE_START_STRING, replacing the hand-rolled delete_all_images/delete_project and related helpers.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Enhancement request to deduplicate hookutil against craft-providers' own LXD code. Delivered by merged PR #1006 (commit f366c2f): hookutil now uses craft_providers.lxd.LXC and exposes BASE_INSTANCE_START_STRING. | |
| stealth/space-bunny-alpha | — | closed resolved | Resolved by merged PR canonical/craft-providers#1006 in commit f366c2f, replacing hookutil's ad hoc LXC wrapper with craft_providers.lxd.LXC. | |
| qwen/qwen3.8-27b | — | — | Closed without a public fix or merge; the hookutil deduplication enhancement was tracked internally as CRAFT-3891. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
78
Complexity:
32
Confidence:
72
Support Request:
5
|
keep open | Refactoring hookutil to replace local functions with existing craft-providers utilities like lxc.project.purge() and LXC wrapper. Currently awaiting implementation after a Jira sync comment. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
75
Support Request:
0
|
needs triage | Refactoring task to deduplicate hookutil by leveraging craft-providers utilities. Open for ~18 months with no maintainer assignment or recent discussion. |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/craft-providers#1006
(confidence 97%)
Merged PR titled 'refactor: deduplicate hookutil', commit f366c2f; described as fixing #715.
-
Related To:
canonical/craft-providers#710
(confidence 80%)
Original 'feat: upstream snap hooks' PR whose review by @mr-cal spawned this issue; commit 5bbaf39.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1006 refactor: deduplicate hookutil | craft-providers | merged | Merged PR #1006 (f366c2f) replaced hookutil's custom LXC wrapper with craft_providers.lxd.LXC, translated LXD failures to HookError, and resolved #715. |