Skip to content

Commit 4fe0103

Browse files
authored
ci(release): disable automatic snap publishing (#5915)
* ci(release): disable dev and prerelease snap publishing Signed-off-by: Taylor Mutch <taylormutch@gmail.com> * ci(release): disable stable snap publishing Signed-off-by: Taylor Mutch <taylormutch@gmail.com> --------- Signed-off-by: Taylor Mutch <taylormutch@gmail.com>
1 parent 2ac724f commit 4fe0103

4 files changed

Lines changed: 22 additions & 16 deletions

File tree

‎.agents/skills/release-openshell/SKILL.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ stable artifacts without rerunning qualification. Embedded versions change, so
3434
stable artifacts are not byte-identical to the qualified prerelease. An existing
3535
stable tag may be retried only if it already points to the selected commit. A retry
3636
publishes only missing artifacts; published images, charts, release assets, and
37-
npm versions are kept, while the snap is uploaded again.
37+
npm versions are kept. Automatic snap publishing is disabled pending migration
38+
to the upcoming packages repository under `ai-openshell`; manual dispatch remains
39+
available through `snap-publish.yml`.
3840
Stable images are saved as OCI archives during the build and pushed under the
3941
stable version tags during publication. Their SBOMs are verified before updating
4042
`latest`; the qualified prerelease's commit-SHA image tags remain unchanged.
@@ -77,7 +79,7 @@ start Release. Release Auto-Tag creates and dispatches prereleases on `main`.
7779

7880
Stable releases serialize across branches. A release older than the highest
7981
stable Git tag publishes versioned artifacts without moving Quay `latest`, the
80-
GitHub latest release, npm `latest`, or snap `latest/stable`. Its npm package
82+
GitHub latest release, or npm `latest`. Its npm package
8183
uses `release-X.Y`; snap files remain available in its GitHub Release rather than
8284
updating a Snap Store support track. Docs retain an
8385
immutable version and advance latest only for a newer version.

‎.github/workflows/release-dev.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,9 @@ jobs:
284284
publish-snap:
285285
name: Publish snap
286286
needs: build-snap
287+
# TODO: Move dev snap publishing to the upcoming packages repository under
288+
# ai-openshell. Keep disabled here until that migration.
289+
if: ${{ success() && false }}
287290
permissions:
288291
actions: read
289292
contents: read

‎.github/workflows/release-publish.yml‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -521,7 +521,9 @@ jobs:
521521
publish-snap:
522522
name: Publish Snap
523523
needs: release
524-
if: ${{ !inputs.is-prerelease && inputs.make-latest }}
524+
# TODO: Move stable snap publishing to the upcoming packages repository under
525+
# ai-openshell. Keep disabled here until that migration.
526+
if: ${{ !inputs.is-prerelease && inputs.make-latest && false }}
525527
permissions:
526528
actions: read
527529
contents: read
@@ -536,7 +538,9 @@ jobs:
536538
publish-prerelease-snap:
537539
name: Publish Prerelease Snap
538540
needs: release
539-
if: inputs.is-prerelease
541+
# TODO: Move prerelease snap publishing to the upcoming packages repository
542+
# under ai-openshell. Keep disabled here until that migration.
543+
if: ${{ inputs.is-prerelease && false }}
540544
permissions:
541545
actions: read
542546
contents: read
@@ -567,16 +571,9 @@ jobs:
567571
- name: Require every expected publisher to succeed
568572
env:
569573
NEEDS: ${{ toJSON(needs) }}
570-
IS_PRERELEASE: ${{ inputs.is-prerelease }}
571-
MAKE_LATEST: ${{ inputs.make-latest }}
572574
run: |
573575
set -euo pipefail
574576
expected=(assemble tag-ghcr-release release-helm release)
575-
if [[ "${IS_PRERELEASE}" == "true" ]]; then
576-
expected+=(publish-prerelease-snap)
577-
elif [[ "${MAKE_LATEST}" == "true" ]]; then
578-
expected+=(publish-snap)
579-
fi
580577
failed=0
581578
for job in "${expected[@]}"; do
582579
result=$(jq -r --arg job "${job}" '.[$job].result' <<<"${NEEDS}")

‎CI.md‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,10 @@ Pre-release builds, then publishes and calls `release-qualification.yml` in
390390
parallel within the same run, using native job dependencies.
391391
Its platform package artifacts are uploaded after versioned images and the chart,
392392
so the installer can use them while qualification runs or after it fails.
393-
The pre-release snap artifact is published to the `latest/beta` channel.
393+
Automatic snap publishing to `latest/edge`, `latest/beta`, and `latest/stable`
394+
is disabled pending migration to the upcoming packages repository under `ai-openshell`.
395+
Snap artifacts remain available in the GitHub Releases; manual snap publishing
396+
remains enabled.
394397
Stable release publication pushes the public `proto/` module to
395398
`buf.build/openshell/core`, labeled with the release tag (for example,
396399
`v0.1.7`) and linked to the release source commit. Prereleases do not publish
@@ -482,7 +485,8 @@ without rerunning qualification. These artifacts have different embedded version
482485
from the qualified prerelease. Existing stable tags are never moved; a retry must
483486
resolve to the same qualified candidate. A retry rebuilds, then publishes only what
484487
is missing: it keeps published Quay version tags, Helm charts, GitHub Release assets,
485-
and npm versions. Snap uploads are not skipped.
488+
and npm versions. Automatic snap publishing is disabled pending migration to
489+
the upcoming packages repository under `ai-openshell`.
486490

487491
Stable image builds save multi-platform OCI archives as workflow artifacts without
488492
pushing them. Publication copies those archives, including their attestations,
@@ -492,7 +496,7 @@ The qualified prerelease's commit-SHA image tags remain unchanged.
492496
Release is manually dispatched; pushing a stable tag does not trigger publication.
493497
Stable runs serialize across branches. A version older than the highest stable
494498
Git tag publishes versioned artifacts while preserving shared latest channels:
495-
Quay `latest`, GitHub's latest release, npm `latest`, and snap `latest/stable`.
499+
Quay `latest`, GitHub's latest release, and npm `latest`.
496500
Each publisher rechecks the current remote stable tags immediately before
497501
updating its shared channel, including when a past publishing job is rerun.
498502
This protection applies to runs created with these workflow definitions.
@@ -735,11 +739,11 @@ CI builds push SHA-tagged images to the private CI registry, `ghcr.io/<owner>/op
735739
| `.github/workflows/release-auto-tag.yml` | Weekdays at 14:00 Europe/Zurich, tags the next `-pre.N` on `main` when commits landed since the latest one, then dispatches Pre-release. It skips when the train has no `-pre.1` or its version is already stable, so push each train's `-pre.1` tag by hand. |
736740
| `.github/workflows/release-prerelease.yml` | Pre-release orchestrator, triggered by prerelease tag pushes or dispatched by Release Auto-Tag or manually. A tagless dispatch creates the next candidate on its branch; explicit tags select existing candidates. Builds, then publishes and qualifies in parallel. Qualification failure fails the run and sends the failure notification; published artifacts remain available. |
737741
| `.github/workflows/release-build.yml` | Shared version computation, binary and image builds, and package builds. Validates that the tag matches the caller's release kind. |
738-
| `.github/workflows/release-publish.yml` | Shared artifact assembly, OCI image tags and Helm chart publication, and package publication. Stable releases also publish release-labeled public schemas to Buf (`BUF_TOKEN` required) and GitHub Releases, and call the snap and npm publishers. The Python SDK is released from [ai-openshell/sdk-python](https://github.com/ai-openshell/sdk-python), so no GitHub Release carries a wheel. |
742+
| `.github/workflows/release-publish.yml` | Shared artifact assembly, OCI image tags and Helm chart publication, and package publication. Stable releases also publish release-labeled public schemas to Buf (`BUF_TOKEN` required) and GitHub Releases, and call the npm publisher. The Python SDK is released from [ai-openshell/sdk-python](https://github.com/ai-openshell/sdk-python), so no GitHub Release carries a wheel. |
739743
| `.github/workflows/release-notes.yml` | Shared prompt-driven release notes generation through Inference Hub, used by prerelease previews, notes-only previews, and stable releases. Stable releases reuse the promoted prerelease's preview when available. |
740744
| `.github/workflows/release-qualification.yml` | Reusable qualification suites and result aggregation. Runs security scans, conformance, continuity, and feature integration, Docker and VM E2E, protobuf compatibility, and advisory compatibility review. |
741745
| `.github/workflows/snap-package.yml` | Builds snap and component artifacts for Release Dev, Release, and Pre-release without Store credentials or publication. |
742-
| `.github/workflows/snap-publish.yml` | Uploads existing snap and component artifacts directly to a Store channel without rebuilding. Release Dev uses `latest/edge`, Pre-release uses `latest/beta`, and Release uses `latest/stable` for the stable rebuild. Uploads queue per channel and architecture, so tagged beta and stable jobs recheck repository tags after earlier publication finishes and before updating their floating channels. Manual dispatch uploads the `snap-linux-*` artifacts from `artifact-run-id`. |
746+
| `.github/workflows/snap-publish.yml` | Uploads existing snap and component artifacts directly to a Store channel without rebuilding. Automatic publishing to `latest/edge`, `latest/beta`, and `latest/stable` is disabled pending migration to the upcoming packages repository under `ai-openshell`. Uploads queue per channel and architecture, so tagged beta and stable jobs recheck repository tags after earlier publication finishes and before updating their floating channels. Manual dispatch uploads the `snap-linux-*` artifacts from `artifact-run-id`. |
743747
| `.github/workflows/sdk-typescript-publish.yml` | Publishes the deprecated `@nvidia/openshell-sdk` stub to GitHub Packages. Manual dispatch only: run it for a stable tag after ai-openshell/sdk-typescript publishes the matching `@ai-openshell/sdk` release. |
744748
| `.github/workflows/release-canary.yml` | Smoke-tests published dev artifacts in the `macos`, `ubuntu-deb`, `ubuntu-snap-system-docker`, `fedora`, and `kubernetes` (kind + Helm) jobs. Each job reaches its gateway and creates, exercises, and deletes a sandbox. The `ubuntu-snap-system-docker` job verifies a compatible system Docker lifecycle, while `ubuntu-snap-docker-preflight` tests fail-fast behavior when Docker is absent or supplied by the Docker snap. The positive snap lane also runs a local policy containment check with the packaged prover. It runs automatically after `Release Dev` succeeds and supports manual dispatch (`gh workflow run release-canary.yml --ref <branch>`). See the `test-release-canary` skill for the playbook and local kind reproduction. |
745749

0 commit comments

Comments
 (0)