Add a build grade attribute to snaps
Metadata
Current evaluation
Grade support was merged in canonical/snapcraft#764 (commit 2e97ae2f4) and later documented in canonical/snapcraft#857.
Resolution: closed resolved
Reason: PR canonical/snapcraft#764 implemented the snapcraft.yaml grade attribute in commit 2e97ae2f4. A maintainer later confirmed the Store had carried the fix for some time.
Evaluated by: mr-cal-bot
No scores available.
Issue body
...to assert the built snap quality as per the snappy design doc, see https://docs.google.com/document/d/1MOwyQXkrmMjTJnMsiisfv5Y1lrr5mwNrTxaIbMpNngc/edit#heading=h.4wp4anfwdwtq for the explanation on the purpose of grade.
An upcoming subsequent PR (still depending on snapd changes) will introduce snap-build support that use this new grade parameter.
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Grade support was merged in canonical/snapcraft#764 (commit 2e97ae2f4) and later documented in canonical/snapcraft#857. | |
| stealth/space-bunny-alpha | — | closed resolved | Implemented the `grade` attribute for snapcraft.yaml; merged in canonical/snapcraft#764 (commit 2e97ae2f4) and documented in #857. Grade later extended via snapcraftctl set-grade (#2067) and craftctl set grade. | |
| stealth/space-bunny-alpha | — | closed resolved | Added build-quality grade support to snapcraft.yaml in merged PR canonical/snapcraft#764 (commit 2e97ae2f4). | |
| qwen/qwen3.6-35b-a3b | — | — | Superseded by a subsequent PR that implemented the grade attribute and snap-build support. The feature was integrated to assert snap quality per the design doc. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without implementation. The proposal to add a build grade attribute to snaps was abandoned, with no subsequent pull request or merge details recorded. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed as a tracking issue. The build grade attribute implementation was superseded by a follow-up pull request that adds snap-build support for quality assertion. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed and abandoned. The proposed build grade attribute was never implemented, and no follow-up PR was merged to support the feature. | |
| qwen3.6-35b-a3b-mtp-q6 | — | — | Closed without implementation. The proposed build grade attribute was not merged or fixed, likely abandoned or superseded by subsequent snap-build tooling updates. |
Update history
| Date | Change |
|---|---|
| created |
Related work
-
Likely Fixed By:
canonical/snapcraft#764
(confidence 100%)
Merged implementation of grade support, commit 2e97ae2f4.
-
Related To:
canonical/snapcraft#857
(confidence 98%)
Documented the new grade option.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #764 Implementing 'grade' support in snapcraft.yaml | snapcraft | merged | PR #764 (merge commit 2e97ae2f4) implemented `grade` support in snapcraft.yaml, letting recipes declare snap quality (devel/stable); a follow-up docs PR #857 covered the option. | |
| #1401 snapcraft.yaml: set grade dynamically | charmcraft | closed | Dynamic snap grade was implemented by merged PR #1402 (commit a968adfa), assigning devel grade to post-releases and stable otherwise. | |
| #2064 Support for set-grade | snapcraft | closed | Added snapcraftctl set-grade support in merged PR #2067 (commit 4713f4ae3), including final snap metadata and schema validation, resolving #2064. | |
| #2067 many: add snapcraftctl set-grade | snapcraft | merged | Merged PR #2067 in commit 4713f4ae3, adding snapcraftctl set-grade and validating final snap.yaml metadata; resolves #2064. | |
| #427 build: set snap grade based on version | rockcraft | merged | Merged in #427 via commit 91214e03, setting snap grade from the build version: post versions are devel and other versions are stable. |