← Back to issue list

snapcraft.yaml: set grade dynamically

View original Github issue

Metadata

Project
charmcraft
Number
#1401
Type
issue
State
closed
Author
lengau
Labels
—
Created
Updated
Closed

Current evaluation

Dynamic snap grade was implemented by merged PR #1402 (commit a968adfa), assigning devel grade to post-releases and stable otherwise.

Resolution: closed resolved

Reason: PR #1402 merged as commit a968adfa and added version-based grade selection in snap/snapcraft.yaml, resolving the release-safety request in #1401.

Evaluated by: mr-cal-bot

No scores available.

Issue body

### What needs to get done use dynamic grade like rockcraft so we don't accidentally release .post-* releases to candidate ### Why it needs to get done So we don't accidentally release .post-* releases to candidate

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha — closed resolved Dynamic snap grade was implemented by merged PR #1402 (commit a968adfa), assigning devel grade to post-releases and stable otherwise.
stealth/space-bunny-alpha — closed stale The request to set the grade dynamically in snapcraft.yaml was closed without implementation.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation. The request to dynamically set the snapcraft.yaml grade to prevent accidental candidate releases was abandoned.
qwen/qwen3.6-35b-a3b — — Closed without implementation. The request to dynamically set the grade in snapcraft.yaml to prevent accidental .post-* releases to candidate was abandoned.
qwen/qwen3.6-35b-a3b — — The request to set grade dynamically in snapcraft.yaml was closed without implementation or an associated pull request, indicating it was abandoned. No changes were applied to prevent accidental .post-* releases to candidate.
qwen3.6-35b-a3b-mtp-q6 — — Closed without implementation or discussion. The request was abandoned after 956 days of inactivity, with no fix, merge, or resolution provided.

Update history

No update history recorded yet.

Related work

  • Likely Fixed By: canonical/charmcraft#1402 (confidence 100%)

    Merged implementation explicitly records that it resolves #1401.

Related issues

Issue Project State Summary Similarity
#439 Dynamically set snap grade imagecraft closed Fixed by PR #440, which dynamically sets imagecraft's snap grade from version metadata (devel for dev/post versions, stable for tagged releases).
80%
#1402 build: set grade based on version number charmcraft merged Merged PR #1402 as a968adfa, setting the snap grade to devel for post versions and stable otherwise, resolving #1401.
79%
#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.
78%
#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.
77%
#114 snap: set grade to stable fetch-service merged Merged in #114 via commit c7b9a39, setting the Snap grade to stable so releases can target the candidate channel.
76%
#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.
75%
#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.
75%
#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.
74%
#440 fix: Set imagecraft snap grade dynamically from version metadata imagecraft closed Merged in #440, dynamically setting the snap grade to devel for post/dev versions and stable for tagged releases, fixing #439.
74%
#402 fix: dynamic grade to allow to release to stable rockcraft merged Merged via #402 at commit fdf832e2, making the snap grade dynamic so Rockcraft can be released to stable.
73%