extensions: use pydantic to validate yaml before expanding
Metadata
Current evaluation
Merged #3814 (9ca82706b), adding Pydantic validation before extension expansion and alias-based underscore-to-hyphen conversion for core22 architecture support.
Resolution: closed resolved
Reason: PR #3814 was merged at commit 9ca82706b, implementing both requested validation and alias handling. It was part 3 of the broader proposal in #3712.
Evaluated by: mr-cal-bot
No scores available.
Issue body
- [X] Have you followed the [guidelines for contributing](https://github.com/snapcore/snapcraft/blob/master/CONTRIBUTING.md)?
- [X] Have you signed the [CLA](http://www.ubuntu.com/legal/contributors/)?
- [X] Have you successfully run `make lint`?
- [X] Have you successfully run `pytest tests/unit`?
-----
Part 3 of supporting architectures for `core22`. Full code change is proposed [here](https://github.com/snapcore/snapcraft/pull/3712).
2 changes:
- Convert underscores to hyphens (missing `by_alias=True`)
- Validate snapcraft.yaml with pydantic
(CRAFT-1165)
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Merged #3814 (9ca82706b), adding Pydantic validation before extension expansion and alias-based underscore-to-hyphen conversion for core22 architecture support. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in canonical/snapcraft#3814 (9ca82706b), adding Pydantic validation before extension expansion and alias handling for underscore-to-hyphen conversion. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #3814 as commit 9ca82706b: added Pydantic validation before extension expansion and alias serialization to convert underscores to hyphens, supporting core22. | |
| stealth/space-bunny-alpha | — | closed resolved | Merged in #3814 (commit 9ca82706b): added Pydantic validation before extension expansion and alias handling for underscore-to-hyphen conversion. | |
| qwen/qwen3.6-35b-a3b | — | — | Merged updates implementing pydantic validation for snapcraft.yaml prior to expansion and correcting an underscore-to-hyphen alias mapping. Approved by two reviewers with passing CI checks, advancing core22 architecture support. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Merged changes adding Pydantic validation for snapcraft.yaml before extension expansion and fixing underscore-to-hyphen conversion. Part of core22 architecture support. |
Update history
No update history recorded yet.
Related work
-
Related To:
canonical/snapcraft#3712
(confidence 99%)
Umbrella core22 architecture proposal that was split into smaller PRs, including #3814.
Related issues
No related issues found above the similarity threshold.