Craft-parts cannot parse advanced grammar in `stage` and `prime` fields
Metadata
Current evaluation
craft-parts crashes with AttributeError when stage/prime entries use advanced grammar. Maintainer triaged: root cause is snapcraft's expand-extensions not processing grammar for prime (snapcraft#5583, open). No activity for ~18 months.
Suggested action: keep open
Reason: Maintainer lengau triaged this on 2024-10-09, stating 'craft-parts doesn't need to handle grammar' and 'We should probably keep this bug around though', pointing at snapcraft's expand-extensions as the real fix location. The related issue canonical/snapcraft#5583 is still open and triaged (SNAPCRAFT-1184), and the crashing RelativePathStr validator still exists in constraints.py/parts.py, so the issue remains valid despite ~18 months of inactivity.
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.8-27b |
Impact:
45
Quick Win:
29.25
Staleness:
70
Complexity:
35
Confidence:
80
Support Request:
5
|
keep open | craft-parts crashes with AttributeError when stage/prime entries use advanced grammar. Maintainer triaged: root cause is snapcraft's expand-extensions not processing grammar for prime (snapcraft#5583, open). No activity for ~18 months. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
90
Complexity:
30
Confidence:
85
Support Request:
10
|
close stale | Craft-parts fails to parse advanced grammar in stage/prime fields, causing an AttributeError during YAML unmarshalling. A maintainer clarified that grammar processing belongs upstream, leaving the issue inactive and irrelevant to this repository. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
30
Confidence:
90
Support Request:
0
|
needs triage | craft-parts fails to parse advanced grammar in stage and prime fields, raising an AttributeError during unmarshalling. Open, unlabelled, awaiting maintainer assessment. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
80
Complexity:
45
Confidence:
75
Support Request:
10
|
keep open | craft-parts fails to unmarshal stage and prime fields containing advanced grammar. Open and under discussion on whether craft-parts should parse grammar or snapcraft is misprocessing it. Currently inactive. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#5583
(confidence 85%)
Same crash tracked in snapcraft: expand-extensions only processes grammar for a fixed key list that excludes prime; open and triaged with internal ticket SNAPCRAFT-1184. The maintainer here identified this as the actual fix location.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #5583 expand-extensions fails to process advanced grammar in parts/part/prime | snapcraft | open | expand-extensions crashes with AttributeError when a part's prime keyword uses advanced grammar (on amd64). Grammar is only processed for a fixed key list, not prime. Triaged, minimal reproducer provided, internal ticket SNAPCRAFT-1184 opened. |