Bug: stage-packages re-downloaded on every run due to python-apt _file_is_same() bug
Metadata
Current evaluation
stage-packages .debs are re-downloaded on every run because python-apt's _file_is_same() compares hash lists order-sensitively. Maintainer confirmed the analysis; draft PR #1553 with a local craft-parts mitigation is pending, and the bug is still unfixed in the code.
Suggested action: keep open
Reason: The maintainer explicitly triaged this ('the report seems solid') and opened draft PR #1553 scoped to the fetch_binary/apt-cache path, so it is acknowledged and in progress. I verified the bug is still live: apt_cache.py still calls package.candidate.fetch_binary() with no _file_is_same workaround, and no commit referencing #1553 or #1485 has landed. Last activity was ~4 months ago, so it is moderately stale but not stale enough to close.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
55
Quick Win:
30.25
Staleness:
45
Complexity:
45
Confidence:
85
Support Request:
5
|
keep open | stage-packages .debs are re-downloaded on every run because python-apt's _file_is_same() compares hash lists order-sensitively. Maintainer confirmed the analysis; draft PR #1553 with a local craft-parts mitigation is pending, and the bug is still unfixed in the code. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
45
Complexity:
40
Confidence:
90
Support Request:
5
|
keep open | Valid bug report detailing unnecessary .deb re-downloads caused by a python-apt hash comparison flaw. Maintainer has analyzed the scope and opened a draft PR (#1553) to implement a local mitigation. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
45
Complexity:
25
Confidence:
85
Support Request:
5
|
keep open | craft-parts re-downloads stage-packages on every run due to a python-apt hash comparison bug. Maintainer acknowledged and linked a draft PR (#1553) for a narrow workaround. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
40
Complexity:
25
Confidence:
85
Support Request:
5
|
keep open | craft-parts re-downloads stage-packages each run due to a python-apt hash comparison bug. A draft PR proposes a narrow local workaround. Under discussion pending maintainer review. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/craft-parts#1553
(confidence 80%)
Draft PR opened by @gcomneno specifically to mitigate the repeated .deb downloads in the stage-packages/apt-cache path; not yet merged, so not marked likely_fixed_by.
-
Related To:
canonical/craft-parts#1485
(confidence 70%)
Reduces python-apt usage in the installed-package check path; reporter and maintainer agree it does not by itself resolve the cache-hit problem here.
Related issues
No related issues found above the similarity threshold.