`charmcraft clean` does not clean all platforms for charm
Metadata
Current evaluation
Open, reproducible cleanup bug: charmcraft clean uses current project platforms to derive build instances, leaving containers for removed platforms; no resolving fix is linked.
Suggested action: keep open
Reason: The report provides a pinned checkout and before/after LXC listings showing that the ubuntu@20.04:amd64 container survives clean. Current craft-application ProviderService.clean_instances() still builds cleanup targets from the project's current platforms, so removed-platform containers are unreachable; @sed-i explicitly linked #1338 and CRAFT-3898 was created.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha |
Impact:
43
Quick Win:
17
Complexity:
56
Confidence:
96
Actionability:
90
|
keep open | Open, reproducible cleanup bug: charmcraft clean uses current project platforms to derive build instances, leaving containers for removed platforms; no resolving fix is linked. | |
| qwen/qwen3.6-35b-a3b |
Impact:
40
Quick Win:
14
Complexity:
50
Confidence:
75
Actionability:
70
|
keep open | charmcraft clean only removes LXC containers for platforms in current charmcraft.yaml, leaving stale containers from removed platforms. Unresolved in both charmcraft and craft-application. | |
| qwen/qwen3.8-27b |
Impact:
35
Quick Win:
21
Staleness:
70
Complexity:
40
Confidence:
75
Support Request:
0
|
needs triage | charmcraft clean only removes LXC containers for platforms currently listed in charmcraft.yaml, leaving stale containers for removed platforms. Reported with repro steps; linked to issue #1338 in Jan 2025, no further activity. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
85
Complexity:
45
Confidence:
85
Support Request:
10
|
needs triage | charmcraft clean fails to remove LXC containers for platforms removed from charmcraft.yaml. Issue is open, unlabelled, and inactive for over 340 days. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
90
Complexity:
45
Confidence:
85
Support Request:
10
|
needs triage | charmcraft clean fails to remove LXC containers for platforms removed from charmcraft.yaml. Unlabelled, inactive for over a year, awaiting triage. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
75
Complexity:
45
Confidence:
60
Support Request:
10
|
needs triage | charmcraft clean fails to remove LXC containers for platforms removed from charmcraft.yaml. Unlabelled, awaiting maintainer triage after ~10 months of inactivity. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/charmcraft#1338
(confidence 99%)
A maintainer explicitly identified #1338 as related; that broader clean failure was closed as unresolved.
-
Related To:
canonical/craft-application#425
(confidence 92%)
The responsible clean_instances implementation is in craft-application; #425 covered insufficient clean scope and was closed without a linked fix.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #425 `clean` command only cleans `build-for` for the host system | craft-application | closed | Closed without a linked complete fix; commit 07e89deb added clean --platform, but canonical/charmcraft#2078 later reported all-platform cleaning still failed. | |
| #1338 `charmcraft clean` doesn't clean | charmcraft | closed | Closed unresolved: LXD cleanup remained broken in Charmcraft 3, with the changed behavior attributed to craft-application#425, which also closed without a linked fix. | |
| #2631 Multiple `charmcraft pack` fail on mismatching platforms | charmcraft | open | Consecutive charmcraft pack runs with different platform sets fail: second charm (24.04 only) launches a 22.04 instance and errors 'Platform not found'. Regression from 4.0.1, still present in 4.3.1, no maintainer response. |