feat: implement metadata mediation for snap.yaml
Metadata
Current evaluation
Merged. Implements metadata mediation for snap.yaml via a new packaging API to skip repacking when contents match. Other files handled separately. Approved by two reviewers and passed CI.
Suggested action: —
No scores available.
Issue body
Create the snap.yaml metadata file using the new packaging API to
skip repacking when the artifact contents are the same. This change
implements mediated file creation only for snap.yaml, other files
will he handled in separate PRs.
---
- [ ] I've followed the [contribution guidelines](https://github.com/canonical/snapcraft/blob/main/CONTRIBUTING.md).
- [ ] I've signed the [CLA](http://www.ubuntu.com/legal/contributors/).
- [ ] I've successfully run `make lint && make test`.
- [ ] I've added or updated any relevant documentation.
- [ ] In documents I changed, I [added a meta description](https://canonical-starflow.readthedocs-hosted.com/how-to/add-a-page-meta-description/) if one was missing.
- [ ] I've updated the relevant release notes.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b | — | — | Merged. Implements metadata mediation for snap.yaml via a new packaging API to skip repacking when contents match. Other files handled separately. Approved by two reviewers and passed CI. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
0
Complexity:
40
Confidence:
80
|
needs review | Implements mediated metadata creation for snap.yaml using a new packaging API to skip unnecessary repacking. This initial PR handles only snap.yaml, with other files addressed separately. Awaiting review. |
Update history
| Date | Change |
|---|---|
| updated |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #2877 feat: implement metadata mediation for manifest.yaml | charmcraft | open | Implements metadata mediation for manifest.yaml using craft-application packaging API. Has 2 approvals but 3 unresolved review comments and some failing CI tests. | |
| #2874 feat: mediate creation of metadata.yaml | charmcraft | merged | Merged after two approvals. Implements craft-application's package service API to mediate metadata.yaml creation. Integrated into main despite some failing CI tests on specific Ubuntu versions, altering three files. | |
| #6369 feat: mediate creation of gadget.yaml and kernel.yaml | snapcraft | merged | Merged. Implements a new packaging API to generate gadget.yaml and kernel.yaml, skipping repacks when contents are unchanged. Approved by two reviewers and passed CI checks prior to integration. | |
| #6379 feat: mediate creation of hooks and gui assets | snapcraft | merged | Merged pull request implementing the Craft Application metadata mediation API for copying hooks and GUI assets to snap artifacts. Approved by two reviewers and passed most CI checks, despite one failing store test. |