tests: add reproducer for pack retaining deleted files between builds (#710)
Metadata
Current evaluation
Adds failing reproducer test for #710 plus a fix (PartsLifecycle._clean_stale_parts) that cleans stale pulled files before each lifecycle run; test now passes. Awaiting review; several CI checks failing.
Suggested action: needs review
Reason: PR is pending with 0 reviewers and has concrete failing CI: snap-tests on ubuntu-18.04 through ubuntu-26.04, snap-store-tests, and the Conventional Commits title check, which need to be addressed before landing. The fix is a local workaround for still-open upstream craft-parts#851, so a maintainer should weigh whether to merge now or wait for the upstream fix.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
50
Quick Win:
30.0
Staleness:
50
Complexity:
40
Confidence:
75
|
needs review | Adds failing reproducer test for #710 plus a fix (PartsLifecycle._clean_stale_parts) that cleans stale pulled files before each lifecycle run; test now passes. Awaiting review; several CI checks failing. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
55
Complexity:
20
Confidence:
85
|
needs review | Adds a failing test reproducing a bug where charmcraft pack retains deleted files between builds. Author requested an automated fix via Copilot, which was applied. PR awaits maintainer review and CI fixes. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
40
Confidence:
85
|
needs review | Adds a reproducer test and automated fix for a bug where charmcraft pack retains deleted files between builds. Currently awaiting maintainer review. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
65
Complexity:
40
Confidence:
45
|
needs review | Adds a failing test reproducing a bug where charmcraft pack retains deleted files. A maintainer requested a fix via Copilot, which added a workaround commit, but type checking fails and the PR has been inactive for 73 days. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
40
Complexity:
50
Confidence:
85
|
needs review | Fixes charmcraft pack retaining deleted files between builds. Adds a reproducer test and implements PartsLifecycle._clean_stale_parts() to remove missing source files before lifecycle runs. Test passes. Type checks report non-blocking errors. Awaiting review. |
Update history
No update history recorded yet.
Related work
-
Likely Fixed By:
canonical/charmcraft#710
(confidence 90%)
PR body says 'Closes #710'; issue is still open and no fix found in main branch.
-
Blocked By:
canonical/craft-parts#851
(confidence 80%)
Upstream bug cited in the PR ('Removed files from local sources remain in the part'); still open, so the in-tree _clean_stale_parts workaround may be superseded by an upstream fix.
Related issues
No related issues found above the similarity threshold.