Skip to content

fix(ci): release snaps to stable only - #2295

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
sarankumar1325:fix/snap-release-stable-only
Oct 24, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
sarankumar1325:fix/snap-release-stable-only

Conversation

@sarankumar1325

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

The v1.3.6 snap release failed at publish on every architecture with invalid-channel-permission: Macaroon channel restrictions (stable) do not allow release to candidate. #2274 made stable releases go to stable,candidate, but SNAPCRAFT_STORE_CREDENTIALS can only release to stable.

This PR follows the approach in #2294:

  • Stable releases go to stable only, as in v1.3.5 and earlier. The candidate, beta and edge channels are closed and follow stable (Snap packaging and release follow-ups #2272).
  • The publish step runs only when isStable is true. Pre-releases would have gone to candidate, which the token can't release to either, so they are no longer published to the snap store. The snap is still built, and RCs are still published on GitHub Releases.

After this merges, the release-snap workflow needs a rerun for v1.3.6 with isStable: true.

Which issue(s) this PR fixes:
Fixes #2294

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test? There are no tests for the snap workflow. I checked the file with actionlint.
  • Does this change require a documentation update? No.
  • Does this introduce breaking changes that would require an announcement or bumping the major version? No.
  • Do all new files have an appropriate license header? No new files.

I used an AI coding assistant to help write this change. I reviewed it myself.

The snap store token can only release to the stable channel, so the
v1.3.6 publish (stable,candidate) failed on every architecture. Release
stable builds to stable only, and skip publishing pre-releases, which
would have targeted candidate.

Fixes oras-project#2294

Signed-off-by: sarankumar1325 <[email protected]>
@codecov

codecov Bot commented Oct 24, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.95%. Comparing base (9b1fc81) to head (608ce01).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2295   +/-   ##
=======================================
  Coverage   60.95%   60.95%           
=======================================
  Files         140      140           
  Lines        6098     6098           
=======================================
  Hits         3717     3717           
  Misses       2161     2161           
  Partials      220      220           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@TerryHowe TerryHowe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@TerryHowe
TerryHowe merged commit e84a5d3 into oras-project:main Oct 24, 2026
10 checks passed
@TerryHowe TerryHowe mentioned this pull request Nov 17, 2026
4 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Snap release fails: store token cannot release to candidate channel

2 participants