Skip to content

build: keep snap candidate channel current - #2274

Merged
TerryHowe merged 1 commit into
oras-project:mainfrom
ketchupz1999:fix/snap-release-channels
Oct 23, 2026
Merged

TerryHowe merged 1 commit into
oras-project:mainfrom
ketchupz1999:fix/snap-release-channels

Conversation

@ketchupz1999

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

Stable Snap releases only updated the stable channel, allowing candidate to retain an old revision. The classic snap also staged its own ca-certificates, although the pure-Go binary reads the host certificate store.

This change:

  • publishes stable releases to both stable and candidate;
  • stops staging ca-certificates in the classic snap.

Verification:

  • actionlint .github/workflows/release-snap.yml
  • make test (race, coverage, module/vendor, and encoding checks)
  • built an amd64 snap with the official Snapcraft core22 image;
  • confirmed the snap contains bin/oras and no etc/ssl tree;
  • used the packaged binary with the Ubuntu host CA store to list GHCR tags and fetch a manifest;
  • completed authenticated login, push, and pull through a Docker credential helper against a temporary registry, with byte-for-byte payload verification.

The artifact was not installed through snapd; the runtime checks invoked the binary extracted from the built snap. Snap Store collaborator access and credential regeneration remain outside this PR.

Which issue(s) this PR fixes (optional, in fixes #<issue number>(, fixes #<issue_number>, ...) format, will close the issue(s) when PR gets merged):

Addresses the two code items in #2272.

Please check the following list:

  • Does the affected code have corresponding tests, e.g. unit test, E2E test? — Snap packaging has no automated test; the manual packaging checks above cover the change.
  • Does this change require a documentation update? — No user-facing behavior or documented interface changes.
  • 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.

@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

@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 60.81%. Comparing base (ed26899) to head (1f21ada).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2274   +/-   ##
=======================================
  Coverage   60.81%   60.81%           
=======================================
  Files         140      140           
  Lines        6091     6091           
=======================================
  Hits         3704     3704           
  Misses       2166     2166           
  Partials      221      221           

☔ 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 merged commit a325603 into oras-project:main Oct 23, 2026
10 checks passed
@TerryHowe

Copy link
Copy Markdown
Member

Thanks!

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.

2 participants