← Back to issue list

feat: implement metadata mediation for snap.yaml

View original Github issue

Metadata

Project
snapcraft
Number
#6349
Type
pull request
State
merged
Author
cmatsuoka
Labels
—
Created
Updated
Closed

Current evaluation

Merged #6349, adding packaging-API metadata mediation for snap.yaml so unchanged artifacts can skip repacking; mediation for other files remains future work.

Resolution: closed resolved

Reason: The approved pull request was merged, implementing mediated snap.yaml creation through the new packaging API and its skip-repack checks. The author explicitly limited this change to snap.yaml.

Evaluated by: mr-cal-bot

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
stealth/space-bunny-alpha — closed resolved Merged #6349, adding packaging-API metadata mediation for snap.yaml so unchanged artifacts can skip repacking; mediation for other files remains future work.
stealth/space-bunny-alpha — closed resolved Merged PR #6349 added metadata mediation for snap.yaml via the new packaging API, skipping repacking when artifact contents are unchanged; other files remain for separate PRs.
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
#6357 Mediate metadata creation for gadget and kernel snaps snapcraft closed Fixed by merged PR #6369 (commit 13643760e), adding the packaging API to mediate gadget.yaml and kernel.yaml creation and skip unchanged repacking.
77%
#2857 Implement metadata mediation for manifest.yaml charmcraft open Maintainer-triaged feature request to add metadata mediation for manifest.yaml (craft-application packaging API) so unchanged projects are not repacked; impl PR #2877 was closed unmerged, only an autogenerated Jira sync (CHARMCRAFT-724) since.
73%
#2877 feat: implement metadata mediation for manifest.yaml charmcraft closed Closed unmerged after approval; OSV-scanner remained failing, and the author said mediation enablement would wait for a follow-up PR.
72%
#6379 feat: mediate creation of hooks and gui assets snapcraft merged Merged #6379, adding Craft Application metadata mediation when copying hooks and GUI assets into snap artifacts.
70%
#2890 feat: skip repacking if project is not changed charmcraft merged Merged PR implementing metadata mediation for config.yaml and actions.yaml so charmcraft skips repacking unchanged projects; fixes #2858 and canonical/craft-application#821.
70%