← Back to issue list

Craft parts should rebuild all parts if the list of partitions changes

View original Github issue

Metadata

Project
craft-parts
Number
#1174
Type
issue
State
open
Author
mr-cal
Labels
Status: Triaged Type: Bug
Created
Updated
Closed

Current evaluation

Craft-parts should persist the partition list in state files and force a full rebuild (including stage/prime) when partitions change, since files are organized into partitions during build. Triaged bug, tracked as CRAFT-4654, with a maintainer note that partition changes should also trigger reprime/repack.

Suggested action: keep open

Reason: The issue is a triaged bug (labels: Status: Triaged, Type: Bug) with a maintainer comment (cmatsuoka, 2025-07-18) confirming the expected behavior — partition add/remove should cause reprime and repack — and an internal ticket CRAFT-4654 was created. Code inspection shows StepState/MigrationState track per-partition migration contents but no top-level partition list, and no commit in history implements a 'rebuild all parts when partitions change' check, so the gap appears unfixed. It should stay open until implemented.

Impact: 70 Quick Win: 28.0 Staleness: 55 Complexity: 60 Confidence: 75 Support Request: 0

Issue body

### What needs to get done Craft-parts should store the list of partitions in the state files. If the list of partitions has changed, it should rebuild all parts. This is required because files are organized into partitions during the build step. This should cause the stage and prime steps to rerun as well. ### Why it needs to get done Partitions will contain incorrect contents if craft-parts doesn't track changes.

Evaluation history

Date Model Scores Action Summary
qwen/qwen3.8-27b
Impact: 70
Quick Win: 28.0
Staleness: 55
Complexity: 60
Confidence: 75
Support Request: 0
keep open Craft-parts should persist the partition list in state files and force a full rebuild (including stage/prime) when partitions change, since files are organized into partitions during build. Triaged bug, tracked as CRAFT-4654, with a maintainer note that partition changes should also trigger reprime/repack.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 65
Confidence: 85
Support Request: 10
close stale Request to track partition changes in state files and trigger full rebuilds of craft-parts to prevent incorrect file organization. Currently triaged but inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 60
Confidence: 75
Support Request: 10
keep open Craft-parts needs to track partition changes in state files and trigger full rebuilds of all parts, including stage and prime steps, to prevent incorrect file organization. Currently triaged but inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 55
Confidence: 85
Support Request: 5
keep open Bug where craft-parts ignores partition list changes, causing incorrect file organization. Requires tracking partitions in state files and rebuilding all parts, including stage and prime, when they change. Currently triaged and awaiting implementation.

Update history

No update history recorded yet.

Related issues

No related issues found above the similarity threshold.