← Back to issue list

Incorrect partition error message

View original Github issue

Metadata

Project
craft-parts
Number
#836
Type
issue
State
closed
Author
mattculler
Labels
—
Created
Updated
Closed

Current evaluation

Generalized PartitionUsageError guidance in merged PR #1591 (commit 5d96832f), released in 2.36.0, so it covers invalid partition usage beyond incorrect names.

Resolution: closed resolved

Reason: PR #1591 was merged as commit 5d96832f and explicitly resolved #836 by replacing the incorrect-names guidance with “Correct the invalid partition usage and try again.”

Evaluated by: mr-cal-bot

No scores available.

Issue body

### Bug Description Every `PartitionUsageError` tells the user that the partition names are incorrect, but this exception is used more generally than that. ### To Reproduce Trigger a `PartitionUsageError` using the part yaml below. ### part yaml ```shell parts: busybox: stage-packages: [busybox-static] plugin: nil organize: "*": (mattos-a)/ stage: - (mattos-a)/ prime: - (mattos-a)/ ``` ### Relevant log output ```shell 2024-09-05 12:08:34.729 craft_parts.errors.PartitionUsageError: Invalid usage of partitions 2024-09-05 12:08:34.729 parts.busybox.stage 2024-09-05 12:08:34.729 no path specified after partition in '(mattos-a)/' 2024-09-05 12:08:34.729 parts.busybox.prime 2024-09-05 12:08:34.729 no path specified after partition in '(mattos-a)/' 2024-09-05 12:08:34.729 Valid partitions: default, bios, mattos-boot, mattos-a, mattos-b, mattos-save, mattos-data 2024-09-05 12:08:34.729 Correct the invalid partition name(s) and try again. 2024-09-05 12:08:34.729 Recommended resolution: Correct the invalid partition name(s) and try again. ```

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Generalized PartitionUsageError guidance in merged PR #1591 (commit 5d96832f), released in 2.36.0, so it covers invalid partition usage beyond incorrect names.
stealth/space-bunny-alpha — closed resolved Fixed by merged PR #1591 (commit 5d96832f), generalizing the PartitionUsageError resolution to cover invalid partition usage, not just bad names.
qwen/qwen3.6-35b-a3b — — Abandoned without a fix. The misleading PartitionUsageError message was logged to internal Jira ticket CRAFT-3320. No code changes were merged or resolution provided on GitHub.
qwen/qwen3.6-35b-a3b
Staleness: 85
Complexity: 15
Confidence: 85
Support Request: 5
needs triage Reports misleading error message in PartitionUsageError when partition paths are incorrectly formatted. Submitted by a maintainer, currently unlabelled and inactive since September 2024.
qwen3.6-35b-a3b-mtp-q6
Staleness: 85
Complexity: 15
Confidence: 75
Support Request: 0
close stale Bug report about misleading PartitionUsageError messages when partition paths lack a trailing component. Reported by a maintainer, linked to internal Jira, inactive for ~1.5 years.

Update history

Date Change
closed

Related work

  • Likely Fixed By: craft-parts#1591 (confidence 100%)

    The merged PR generalized the resolution message and its change is listed under bug fixes in the 2.36.0 changelog.

Related issues

Issue Project State Summary Similarity
#1591 fix(errors): generalize partition usage resolution craft-parts merged Merged PR #1591 (commit 5d96832f) generalized PartitionUsageError guidance for all invalid partition usage, fixed #836, and shipped in craft-parts 2.36.0.
79%