← Back to issue list

Implementing 'grade' support in snapcraft.yaml

View original Github issue

Metadata

Project
snapcraft
Number
#764
Type
pull request
State
merged
Author
caiobegotti
Labels
—
Created
Updated
Closed

Current evaluation

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.

Resolution: closed resolved

Reason: The PR was approved to test by sergiusens and merged into master as commit 2e97ae2f4 ("Implementing 'grade' support in snapcraft.yaml (#764)"), adding the grade field to project parsing plus tests across 17 files. Grade is now a first-class field (docs/explanation/snapcraft-yaml.rst, SNAPCRAFT_PROJECT_GRADE, later snapcraftctl/craftctl set grade in #2067).

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 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.
stealth/space-bunny-alpha — closed resolved Merged PR #764 (commit 2e97ae2f4) added grade support to snapcraft.yaml, allowing snap recipes to declare quality; the updated branch passed tests.
qwen/qwen3.6-35b-a3b — — Implemented grade support in snapcraft.yaml to assert snap quality. Resolved merge conflicts and a failing test by updating the branch. Passed CI checks and was merged into the main branch.
qwen3.6-35b-a3b-mtp-q6 — — Merged after resolving master conflicts and addressing unrelated test failures. Contributor updated the branch per maintainer feedback, passed tests, and received final approval. Adds grade support to snapcraft.yaml for snap quality assertion.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: snapcraft#857 (confidence 60%)

    Follow-up PR "Document the `grade` option." (commit 3fb9f100b) added docs for the grade field introduced here.

  • Related To: snapcraft#2067 (confidence 55%)

    Later PR added snapcraftctl set-grade to change the grade introduced by #764.

Related issues

Issue Project State Summary Similarity
#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.
79%
#1618123 Add a build grade attribute to snaps snapcraft (launchpad) closed Grade support was merged in canonical/snapcraft#764 (commit 2e97ae2f4) and later documented in canonical/snapcraft#857.
77%
#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.
77%
#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.
76%
#1630914 Document grade snapcraft (launchpad) closed Documentation request closed by merged snapcraft PR #857 (commit 3fb9f100b) by dholbach, adding a 'grade' section to docs/upload-your-snap.md; the text survives in docs/explanation/snapcraft-yaml.rst.
74%
#857 Document the grade option snapcraft merged Merged PR #857 (commit 3fb9f100b) by dholbach documented the `grade` option in docs/upload-your-snap.md, closing LP bug #1630914. Text survives today in docs/explanation/snapcraft-yaml.rst.
72%