← Back to issue list

Deduplicate files that already exist in base layer

View original Github issue

Metadata

Project
craft-parts
Number
#538
Type
issue
State
open
Author
cmatsuoka
Labels
—
Created
Updated
Closed
—

Current evaluation

Overlay builds still prime copies of files already present in the base layer, increasing image size; the request remains open with only an autogenerated Jira-ticket comment.

Suggested action: keep open

Reason: The inefficiency remains applicable to overlay builds, particularly when chisel slices defeat package-cutoff deduplication. Current overlay prime handling uses the base-layer path only to clean dangling whiteouts, and repository searches found no deduplication implementation or resolving fix; however, defining safe equality and overlay semantics will require design and test work.

Evaluated by: mr-cal-bot

Impact: 66 Quick Win: 15 Complexity: 64 Confidence: 85 Actionability: 62

Issue body

### What needs to get done If using overlays, avoid priming files that already exist in the base layer. ### Why it needs to get done File duplication across layer results in inefficient images. Using package cutoff alone is not enough if chisel slices are being used.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 66
Quick Win: 15
Complexity: 64
Confidence: 85
Actionability: 62
keep open Overlay builds still prime copies of files already present in the base layer, increasing image size; the request remains open with only an autogenerated Jira-ticket comment.
qwen/qwen3.6-35b-a3b
Impact: 50
Quick Win: 21
Complexity: 40
Confidence: 70
Actionability: 70
keep open Feature request to avoid priming files that already exist in the base layer when using overlays, to reduce image duplication. Issue remains open with no fix implemented.
qwen/qwen3.8-27b
Impact: 45
Quick Win: 16
Staleness: 75
Complexity: 65
Confidence: 75
Support Request: 10
needs triage Feature request to avoid priming overlay files that already exist in the base layer, to reduce image size. Open about 3 years, no labels or maintainer response, only an automated Jira sync comment. Deduplication logic still unimplemented in current code.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 60
Confidence: 80
Support Request: 10
close stale Feature request to optimize overlay layering by avoiding file duplication with base layers. Open for nearly three years with no maintainer progress or recent activity beyond an automated Jira sync.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 45
Confidence: 75
Support Request: 10
needs triage Feature request to deduplicate files across overlay layers to prevent image bloat. Currently unlabelled with no maintainer follow-up since a Jira ticket was created over a year ago.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.