fix(PartHandler): Clean the install directory on non-update runs
Metadata
Current evaluation
Adds cleanup of install and backstage directories before non-UPDATE build runs to prevent leftover files from failed builds. Open, CI has failures, awaiting review.
Suggested action: needs review
Reason: The PR adds a useful bugfix to clean install and backstage directories on non-UPDATE build runs, preventing leftover files from failed builds. However, CI is failing on several tests (minimum dependencies, java-plugins, python-plugins slow tests, OSV-scanner), and the author explicitly requests a review hold pending @cmatsuoka's expertise. The unresolved review comment and CI failures mean this needs maintainer review before merging.
Evaluated by: mr-cal-bot
Impact:
55
Quick Win:
14
Complexity:
25
Confidence:
65
Actionability:
35
Issue body
This makes build runs other than ActionType.UPDATE clean the part's install directories and backstage directory, meaning that failed build runs cannot litter these directories with extra files.
---
- [x] I've followed the [contribution guidelines](https://github.com/canonical/craft-parts/blob/main/CONTRIBUTING.md).
- [x] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [x] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
- [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [x] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
14
Complexity:
25
Confidence:
65
Actionability:
35
|
needs review | Adds cleanup of install and backstage directories before non-UPDATE build runs to prevent leftover files from failed builds. Open, CI has failures, awaiting review. | |
| qwen/qwen3.6-35b-a3b |
Impact:
55
Quick Win:
33
Complexity:
25
Confidence:
85
Actionability:
80
|
needs review | Fixes install directory cleanup on non-update build runs to prevent leftover files from failed builds. PR is open, CI passing, awaiting review. |
Update history
| Date | Change |
|---|---|
| updated | |
| created |
Related issues
No related issues found above the similarity threshold.