← Back to issue list

Craft-parts should provide a part validation helper

View original Github issue

Metadata

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

Current evaluation

Shared part validation was added by craft-parts PR #277, merged as commit 67022699; Snapcraft later adopted it in canonical/snapcraft#3909.

Resolution: closed resolved

Reason: The requested helper was delivered through canonical/craft-parts#277, merged as commit 67022699 ("parts: add part validator"). Snapcraft subsequently adopted the shared validator in canonical/snapcraft#3909.

Evaluated by: mr-cal-bot

No scores available.

Issue body

A part validation helper is implemented in different *craft applications. This could be a helper provided by the library.

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Shared part validation was added by craft-parts PR #277, merged as commit 67022699; Snapcraft later adopted it in canonical/snapcraft#3909.
stealth/space-bunny-alpha — closed resolved Added shared part validation via craft-parts PR #277, merged as 67022699; Snapcraft adopted it in PR #3909.
stealth/space-bunny-alpha — closed resolved Merged PR #277 (commit 67022699), adding shared part and plugin data validation to craft-parts and centralizing validation in the library.
qwen/qwen3.6-35b-a3b — — Request to add a shared part validation helper to craft-parts was closed without implementation. No resolution or merge occurred, indicating the feature was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation, likely abandoned. No resolution or pull request was created to integrate the shared validation helper into the library.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The proposal to centralize part validation logic into a shared craft-parts helper was abandoned, with no follow-up pull requests or discussions.
qwen3.6-35b-a3b-mtp-q6 — — Craft-parts part validation helper request was closed without implementation. No pull requests or resolutions were submitted, indicating the feature was abandoned or deferred.

Update history

No update history recorded yet.

Related work

Related issues

Issue Project State Summary Similarity
#3909 parts: use part validator from craft-parts snapcraft merged Merged PR #3909 (commit 8ae29b79e) replaced snapcraft's local part validator with craft_parts.validate_part in snapcraft/parts/__init__.py, dropping the local implementation (+7/-119 across 6 files).
81%
#70 parts: use part validator from craft-parts rockcraft merged Merged PR #70 as 3daa2224: rockcraft now uses craft-parts' shared part validator (from craft-parts#277 / 67022699) instead of its own local implementation, dropping the duplicate code.
75%
#277 parts: add part validator craft-parts merged Merged in #277 as commit 67022699, adding shared part and plugin model validation to the library and resolving #176.
72%
#3636 parts: integrate craft-parts (CRAFT-765) snapcraft merged Merged as ae8467056, integrating craft-parts for project-part validation and parts lifecycle processing (CRAFT-765).
71%