← Back to issue list

Warn when cleaning shared directories when partitions are enabled

View original Github issue

Metadata

Project
craft-parts
Number
#810
Type
issue
State
closed
Author
mr-cal
Labels
—
Created
Updated
Closed

Current evaluation

Closed as obsolete after PR #1109 (commit 8810ccc2) fixed partition-aware shared-directory cleaning, removing the need for the proposed warning.

Resolution: closed superseded

Reason: The underlying issue #665 was fixed by merged PR #1109 in commit 8810ccc2, which tracks migrated content by partition and cleans shared directories correctly. A maintainer explicitly noted that #665 was solved and asked that #810 be reopened only if the warning remained necessary.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done Emit a warning when `clean` is run for the `stage` or `prime` steps for a particular part. ``` Warning: Cleaning the [stage|prime] step for a part with partitions enabled is not supported. Resolution: Clean the [stage|prime] step without specifying a part. ``` ### Why it needs to get done Until https://github.com/canonical/craft-parts/issues/665 is completed, users need to know that cleaning may result in unknown behavior.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed superseded Closed as obsolete after PR #1109 (commit 8810ccc2) fixed partition-aware shared-directory cleaning, removing the need for the proposed warning.
stealth/space-bunny-alpha — closed superseded Closed as obsolete after craft-parts#665 fixed partition-aware shared-directory cleaning in PR #1109; maintainer asked to reopen only if the warning is still needed.
qwen/qwen3.6-35b-a3b — — Closed as superseded. The warning request was a temporary measure until issue #665 was resolved. With #665 complete, this issue is no longer necessary.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 10
Confidence: 75
Support Request: 0
needs triage Request to emit a warning when cleaning stage or prime steps for parts with partitions enabled, pending upstream fix #665. Currently unlabelled and inactive for over a year.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 5
needs triage Task to emit a warning when cleaning stage or prime steps for parts with partitions enabled. Unlabelled, unassessed, and blocked on external issue #665. Last activity over a year ago.

Update history

Date Change
closed

Related work

  • Superseded By: canonical/craft-parts#665 (confidence 99%)

    Completing the underlying shared-directory cleanup defect eliminated the warning's stated purpose.

  • Likely Fixed By: canonical/craft-parts#1109 (confidence 99%)

    Merged as commit 8810ccc2, introducing partition-aware migration tracking needed for correct shared-directory cleanup.

Related issues

Issue Project State Summary Similarity
#665 Shared directories are not properly cleaned when partitions are enabled craft-parts closed Shared-directory cleanup was fixed by partition-aware state tracking merged in PR #1109 (commit 8810ccc2), preventing cleanup from affecting every partition.
75%