Skip to content

ci: publish signed main builds of mecak8s, Studio, and their charts - #2292

Merged
Nashon-Steffen merged 4 commits into
mainfrom
Nashon-Steffen/studio-continuous-main
Oct 13, 2026
Merged

Nashon-Steffen merged 4 commits into
mainfrom
Nashon-Steffen/studio-continuous-main

Conversation

@Nashon-Steffen

Copy link
Copy Markdown
Contributor

Summary

Adds .github/workflows/continuous.yml. It publishes signed builds of mecak8s, Studio and both Helm charts from every main commit that passes CI, so an environment can follow main instead of releases. The first follower is the stacklok/infra dev cluster, through a Flux chart version range; that infra PR is linked below. Nothing in this repo writes to infra.

Stacked on #2291 (the mecatl-studio chart). The base branch is Nashon-Steffen/studio-helm-chart; retarget to main once #2291 merges.

How it works

  • Trigger: workflow_run after CI succeeds on a push to main in this repository (fork pull requests from a branch named main are excluded), or a manual dispatch from main.
  • One version per commit: X.Y.(Z+1)-main.<run>.<attempt>.g<sha8>, from the commit's VERSION. The patch bump sorts main builds above the last release, and the run number and attempt order them by publication time.
  • Only newer commits publish: a commit publishes only if it is newer on main than the last published mecatl-studio chart, so followers never move back. A dispatch publishes the commit it ran from; force overrides both rules.
  • Queueing: runs that can't publish (failed CI, pull-request runs, dispatches from other branches) get their own concurrency group, so they never replace a queued publish.
  • Images:
    • ghcr.io/stacklok/mecatl/main/mecak8s is built with ko.
    • ghcr.io/stacklok/mecatl/main/studio is built with buildx and scanned for fixable critical vulnerabilities.
    • Both get the same cosign signing, SPDX SBOM attestation and SLSA provenance as the release jobs, and are verified against continuous.yml@refs/heads/main before charts publish. Studio is tagged only after that verification.
  • Charts: mecak8s and mecatl-studio go to oci://ghcr.io/stacklok/mecatl/main/charts. Each chart's values.yaml is rewritten in the runner only (never committed) to pin its image by digest. The job checks the rendered manifests, then pushes, signs and attests the charts, mecak8s first and Studio last.
  • Untouched: release artifacts, release tags and the release signing identity. Main builds ship without the product-metrics ingest key.

.github/workflows/README.md documents all of this.

Issue relationship

Relates to #2291 and #2288 (continuous deployment of Studio from main)

Type of change

  • Bug fix
  • New feature
  • Refactoring (no behavior change)
  • Dependency update
  • Documentation
  • Other (describe): CI/CD workflow

Test plan

Baseline checks

  • Linting (task lint): no Go changes. actionlint v1.7.7 (with shellcheck) reported nothing for continuous.yml.
  • Fast offline test suite (task test): no Go changes.
  • Pre-review race suite (task test:race): no Go changes.
  • Offline demo (go run ./cmd/mecademo): no runtime changes.
  • Markdown changed: task docs:check passed with 0 broken links or anchors.
  • User docs/user-facing behavior changed: site build (task site:build)
  • Guarded engine API affected: compatibility check (task api:check)
  • Intentional engine API change: task api:update + engine/CHANGELOG.md

Exercised locally:

  • The resolve step, run against real git history:
    • publishes the first build when the chart repository doesn't exist yet (real GHCR 404 name unknown);
    • skips a commit that is older than, or the same as, the last published one;
    • rejects a dispatch for another commit unless force is set;
    • rejects a non-SHA input and a commit that isn't on main;
    • with force, publishes an older commit.
  • The chart step, run with made-up digests: the yq pin, helm lint, helm package --version 0.0.48-main.212.gb71e0ac9 and render all pass, both charts render the digest-pinned main/ images, and the version labels stay valid.
  • Independent workflow review: it found no injection or credential problems. I fixed what it raised:
    • concurrency cancellation by runs that can't publish;
    • the tip-only rule that could leave a commit that passed CI unpublished;
    • manual-run provenance naming a different commit than the one built;
    • re-runs moving a main-latest tag backwards (that tag is gone);
    • a SIGPIPE race in the render check.

Not exercisable before merge: workflow_run only fires for workflows on the default branch. After merge, the first push to main that passes CI runs it.

Special notes for reviewers

  • Package visibility: GitHub creates the four new main/ packages as private on first publish. stacklok/infra already pulls with a GHCR credential (ghcr-pull-secret). Decide whether to make them public.
  • Provenance on workflow_run: the attestation names the main commit whose continuous.yml ran, which can be newer than the commit built. The image's revision label and the version name the commit that was built. Manual dispatches build their own commit unless force is set.
  • The mecak8s tag is pushed before signing: ko pushes v<version> before the signature, as in release.yml's publish-mecak8s. Followers use the charts, which pin digests only after verification.
  • Every merge to main rolls dev, including docs-only merges: each build stamps a new version, so the image digests change.

🤖 Generated with Claude Code

@Nashon-Steffen Nashon-Steffen left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Multi-agent consensus review

Agents consulted: security and supply chain, CI/CD correctness, error handling and resilience, architecture and general quality, comment hygiene and docs. Codex cross-review did not complete.

Consensus summary

# Finding Consensus Severity Action
1 A forced rollback can't cross a VERSION bump 9/10 MEDIUM Fix
2 Charts can be selected before they're signed, and the guard treats them as published 9/10 MEDIUM Fix
3 A failed last-published lookup blocks every publish, even with force 8/10 MEDIUM Fix
4 The two charts can diverge; the comment and README say they can't 8/10 LOW Fix
5 Dispatch publishes without checking that CI passed 8/10 LOW Discuss
6 Move the resolve logic into a tested script 7/10 LOW Discuss
7 A failed chart push hides helm's error 7/10 LOW Fix
8 Pass the token through env, as L138 does 8/10 LOW Fix
9 A pending dispatch can be cancelled by a later automatic run 7/10 LOW Fix
10 mecak8s is tagged before it's verified and isn't scanned 7/10 LOW Discuss
11 The README section repeats the workflow header 8/10 LOW Fix
12 The "bump VERSION" advice describes an unsupported hand edit 7/10 LOW Fix

Overall

This adds a second publishing pipeline separate from releases. It builds, scans (Studio), signs, attests and verifies both images from a single main commit, then publishes digest-pinned charts as the point followers react to. The design holds up. Main builds get their own registry path and signing identity (continuous.yml@refs/heads/main), so they can never verify as a release. The workflow_run gate excludes forks and pull requests named main. Untrusted values go through env. Runs that can't publish get their own concurrency group. The newer-than-last-published guard, together with CI's own cancel-in-progress on main, keeps followers from moving backwards in normal operation. Both charts render repo@digest exactly as the grep -F checks expect, and the lint overrides match release.yml.

None of the findings block merging; they're about recovery paths. The forced-rollback promise fails silently across a release PR (1). A failure after the mecatl-studio chart push leaves an unsigned chart that the guard then treats as published (2). A single unresolvable lookup stops all publishing, and force can't override it (3). All three are in the resolve step, which is a good reason to move it into a tested script alongside release-tag-guard.sh (6). The rest are consistency and wording fixes.

Documentation

  • .github/workflows/README.md L22-24: "always gets images from one commit" holds within one chart, not across both (finding 4).
  • .github/workflows/README.md L26-28 and continuous.yml L29-32: rollback with force doesn't work across a VERSION bump and lasts only until the next green merge (finding 1).
  • .github/workflows/README.md L12-34: repeats the workflow header on a page that calls itself an index (finding 11).

Generated with Claude Code

Comment thread .github/workflows/continuous.yml Outdated
minor=${rest%%.*}
patch=${rest#*.}
# The g prefix keeps an all-digit short SHA a valid semver identifier.
version="${major}.${minor}.$((patch + 1))-main.${RUN_NUMBER}.${RUN_ATTEMPT}.g$(printf '%s' "$sha" | cut -c1-8)"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A forced rollback can't cross a VERSION bump (9/10, MEDIUM; raised by CI/CD and resilience reviewers)

The base comes from the target commit's own VERSION, and release PRs bump VERSION on main (0.0.44 to 0.0.47 recently). A force dispatch of a commit from before the latest release PR gets 0.0.47-main.<higher run>…. That sorts below the current 0.0.48-main.<lower run>…, so Flux's >=0.0.0-0 range and helm show chart --devel keep the newer build. The run still reports success. The dispatch comment (L29-32) and README L27-28 say this rolls followers back.

Fix: take the base from the larger of VERSION at main HEAD and the target's VERSION, so the run number alone decides order. At minimum, fail when the computed version isn't greater than last_version. Also say in the README that a forced rollback lasts only until the next green merge, and that a lasting hold belongs in the Flux HelmRelease.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in bfd5c6c: a forced older commit keeps at least the last publication's X.Y.Z, so a rollback across a VERSION bump still sorts first, and a run that wouldn't sort above the last publication fails. The README note that a rollback lasts only until the next main build (pin on the follower to hold) is in 41db157.

Comment thread .github/workflows/continuous.yml Outdated
cat push-output.txt
digest="$(awk '/^Digest:/ {print $2}' push-output.txt)"
case "$digest" in sha256:*) ;; *) echo "could not parse the ${chart} chart digest" >&2; exit 1;; esac
cosign sign --yes "${OCI_REGISTRY}/${chart}@${digest}"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Charts can be selected before they're signed or attested, and the guard counts them as published (9/10, MEDIUM; raised by security, CI/CD, resilience and comment-hygiene reviewers)

helm push creates the tag that Flux's range selects before this cosign sign and the two attest steps run. If signing or attesting the mecatl-studio chart fails, the newest chart has no signature or provenance. The next run, a dispatch, or "Re-run all jobs" then sees the commit as already published and ends with a notice. Only "Re-run failed jobs" repairs it, and that re-pushes the same version under a new digest. The comment at L136-137 and the README's dispatch advice don't cover this case.

Fix: in compute-version, run cosign verify and verify-attestation --type slsaprovenance1 on the latest mecatl-studio chart, and treat a failure as not published. Add a chart verify step after the attestations, as the image jobs have. On the infra side, set verify.provider: cosign with this identity on the OCIRepository, so Flux never reconciles an unsigned chart.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in bfd5c6c and 42bd428. compute-version now verifies the last mecatl-studio chart's signature and provenance, and lets its commit publish again if either is missing. The chart job pushes, signs, attests, and verifies each chart before pushing the next. The README (41db157) asks followers to verify charts with the continuous.yml identity.

Comment thread .github/workflows/continuous.yml Outdated
last=""
if chart=$(helm show chart "oci://${OCI_REGISTRY}/mecatl-studio" --devel 2>&1); then
last_version=$(printf '%s\n' "$chart" | awk '/^version:/ {print $2}')
last=$(git rev-parse --verify --quiet "${last_version##*.g}^{commit}") || {

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A failed last-published lookup blocks every publish, even with force (8/10, MEDIUM; raised by security, CI/CD and resilience reviewers)

This exits before the FORCE check at L153. The 8-character prefix can fail to resolve: it can be ambiguous across every ref fetched by fetch-depth: 0, the commit can be rewritten away, or the newest mecatl-studio tag can come from somewhere other than this workflow. When that happens, every later run fails, and the only way out is deleting GHCR package versions. The name unknown match at L147 behaves the same way: any other first-publish response, such as a 403 for a package that doesn't exist yet, fails with no override. The message "names no commit on main" also overstates the check, which only tests that the object exists.

Fix: record the full SHA in the chart (for example a Chart.yaml annotation set with yq before packaging) and read it back from helm show chart. When FORCE=true, downgrade lookup failures to a ::warning and continue with last="".

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in bfd5c6c: charts carry an org.opencontainers.image.revision annotation with the full commit, which the next run reads instead of resolving the short SHA. The off-main check now matches its message, and with force any lookup failure, including an unexpected registry response, is a warning instead of an error.

Comment thread .github/workflows/continuous.yml Outdated
Comment on lines +489 to +490
# mecak8s first: Studio follows the daemon it talks to, so a failure
# between the two pushes leaves followers on a matching older Studio.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The two charts can diverge; this comment and the README say they can't (8/10, LOW; raised by comment-hygiene, resilience and security reviewers)

If the mecak8s push succeeds and the mecatl-studio push or signing fails, followers move to the new daemon while Studio stays on the previous build. That's the compatible direction, but it isn't "a matching older Studio". README L22-24 ("always gets images from one commit") holds within one chart only. Suggested wording:

Suggested change
# mecak8s first: Studio follows the daemon it talks to, so a failure
# between the two pushes leaves followers on a matching older Studio.
# mecak8s first: Studio talks to the daemon, so a failure between the two
# pushes leaves followers on the new daemon with the previous Studio.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 42bd428 (comment) and 41db157 (the README no longer claims one commit across both charts and describes the partial-failure state).

Comment thread .github/workflows/continuous.yml Outdated
else
# Provenance names the dispatched commit, so publish that commit
# unless another one is forced.
sha="${INPUT_SHA:-$GITHUB_SHA}"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Dispatch publishes without checking that CI passed (8/10, LOW; raised by security and resilience reviewers)

A workflow_run requires conclusion == 'success'. A dispatch publishes GITHUB_SHA anyway, even if its push CI is still running or has failed, and moves every follower to it under the same signing identity. The README suggests a dispatch after transient registry failures, which is when this check would matter.

Possible fix: unless force is set, require a successful push-event CI run for $sha, for example gh run list --workflow ci.yml --commit "$sha" --event push --status success --json databaseId --jq length. This needs actions: read. Alternatively, document that a dispatch skips the CI gate on purpose.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in bfd5c6c: a dispatch without force requires a successful push CI run on its commit. Force skips the check, because CI cancels superseded main runs and an older rollback target often has no successful run.

Comment thread .github/workflows/continuous.yml Outdated
id: push
run: |
set -euo pipefail
echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io -u "${{ github.actor }}" --password-stdin

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Pass the token through env, as L138 does (8/10, LOW; raised by security and architecture reviewers)

This isn't exploitable: the secret is masked, and github.actor can't carry shell metacharacters. But the file now does the same login two ways, and the L138 form is the safer one. Add GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} to this step's env and use printf '%s' "$GH_TOKEN" | helm registry login ghcr.io -u "${GITHUB_ACTOR}" --password-stdin.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 42bd428.

Comment thread .github/workflows/continuous.yml Outdated

permissions: {}

# One publication at a time, in order. A burst of merges collapses into at most

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

A pending dispatch can be cancelled by a later automatic run (7/10, LOW; raised by CI/CD and comment-hygiene reviewers)

With cancel-in-progress: false, a newer pending run in continuous-main cancels the older pending one. For automatic runs that's intended. Intermediate commits are skipped and show as cancelled runs, so it's worth saying so here. But a force rollback dispatched while a publish is running is silently dropped if any main CI run finishes first. Mention in the README to dispatch when nothing is publishing and to confirm the result.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 41db157: the concurrency comment says a newer pending run replaces an older one, pending dispatches included, and the README says to dispatch while nothing is running and check that it published.

id: build
run: |
set -euo pipefail
ko build \

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

mecak8s is tagged before it's verified and isn't scanned (7/10, LOW; raised by security, comment-hygiene and architecture reviewers)

ko build -t creates main/mecak8s:v<version> before signing. Studio, by contrast, is pushed by digest and tagged only after verification. mecak8s also skips the fixable-critical scan that Studio gets. Followers reach the image only by digest through the chart, and release.yml has the same shape, so this is mainly consistency. Either push by digest and tag after verifying, or add a short comment here explaining the difference. Consider adding the same anchore scan as well.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 42bd428: mecak8s gets the same fixable-critical scan as Studio before signing, and a comment explains that ko tags it before the scan and that followers reach it only by the chart's verified digest.

- [Mecatequi CI adoption](../../user-docs/building/ci/mecatequi.md)
- [microVM environment operations](../../user-docs/operating/microvm-environments.md)

## Continuous builds from main

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This section repeats the workflow header (8/10, LOW; raised by comment-hygiene and architecture reviewers)

The page calls itself "only a stable index" with the YAML as the source of truth. This section restates most of continuous.yml L1-21: the version format, paths, publish order, guard and identity. The two copies already differ, for example on the "one commit" claim. Keep what an operator acts on: package paths, the cosign verify identity, visibility, and when to dispatch or use force. Leave the mechanics in the header.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 41db157.

Comment thread .github/workflows/continuous.yml Outdated
# main/charts), versioned X.Y.(Z+1)-main.<run>.<attempt>.g<sha8> from the
# commit's VERSION: the patch bump sorts them above the last release, and the
# run number and attempt order them by publication. Renaming this file resets
# the run number, so bump VERSION alongside such a rename. Images are tagged

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

The "bump VERSION" advice describes an unsupported hand edit (7/10, LOW; raised by comment-hygiene reviewer)

VERSION changes only through the Create Release PR flow, and Create Release Tag runs on a VERSION change. Suggested wording:

Suggested change
# the run number, so bump VERSION alongside such a rename. Images are tagged
# the run number, so cut a release (which bumps VERSION) alongside such a
# rename. Images are tagged

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Addressed in 41db157.

Nashon-Steffen added a commit that referenced this pull request Oct 13, 2026
Move the compute-version decision logic into
.github/scripts/resolve-main-build.sh with a test in task lint:actions.
The chart now records its full commit in an
org.opencontainers.image.revision annotation, which the next run reads
instead of resolving the short SHA from the version.

- A forced older commit keeps at least the last publication's X.Y.Z, so
  a rollback across a release's VERSION bump still sorts first; a run
  that would not sort above the last publication fails.
- With force, a failed lookup of the last publication warns instead of
  blocking every run; the off-main check now matches its message.
- A dispatch without force requires a successful push CI run on its
  commit.
- A last chart that this workflow did not sign and attest does not count
  as published, so its commit can publish again.

Addresses #2292 review comments:
- MEDIUM .github/workflows/continuous.yml:169 (4262353943): forced rollback can't cross a VERSION bump
- MEDIUM .github/workflows/continuous.yml:501 (4262353950): unsigned last chart counted as published
- MEDIUM .github/workflows/continuous.yml:142 (4262353954): failed lookup blocks every publish, even with force
- LOW .github/workflows/continuous.yml:121 (4262353989): dispatch publishes without checking CI
- LOW .github/workflows/continuous.yml:104 (4262354000): move the resolve logic into a tested script

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Nashon-Steffen added a commit that referenced this pull request Oct 13, 2026
Followers can select a chart as soon as it is pushed. Push, sign,
attest, and verify the mecak8s chart before pushing the mecatl-studio
chart, then verify that one the same way, so a failure never leaves
the next chart pushed behind an unverified one.

- Show helm's output when a chart push fails.
- Log in to the chart registry with the token from env, as
  compute-version does.
- Scan the mecak8s image for fixable critical vulnerabilities before
  signing it, as Studio is, and explain why ko tags it before the scan.
- Correct the comment on the push order: a failure between the two
  charts leaves the new daemon with the previous Studio.

Addresses #2292 review comments:
- MEDIUM .github/workflows/continuous.yml:501 (4262353950): charts selectable before they're signed or attested
- LOW .github/workflows/continuous.yml:490 (4262353966): the two charts can diverge; comment said otherwise
- LOW .github/workflows/continuous.yml:498 (4262354005): failed chart push hides helm's error
- LOW .github/workflows/continuous.yml:495 (4262354014): pass the token through env
- LOW .github/workflows/continuous.yml:233 (4262354042): mecak8s tagged before verification and not scanned

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Nashon-Steffen added a commit that referenced this pull request Oct 13, 2026
The README section repeated the workflow header. Keep what an operator
acts on there (packages, verification, publishing by hand, rollback,
partial failures) and leave the version scheme and publication order
in the header. Drop the claim that a follower always gets images from
one commit, which a failure between the two chart pushes can break.

In the workflow header, point a rename at a release instead of a hand
edit of VERSION, and say that a newer pending run replaces an older
one, including a pending dispatch.

Addresses #2292 review comments:
- LOW .github/workflows/continuous.yml:48 (4262354020): a pending dispatch can be cancelled by a later run
- LOW .github/workflows/README.md:12 (4262354048): README section repeats the workflow header
- LOW .github/workflows/continuous.yml:12 (4262354057): "bump VERSION" advice describes a hand edit

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Base automatically changed from Nashon-Steffen/studio-helm-chart to main October 13, 2026 19:57
Nashon-Steffen and others added 4 commits October 13, 2026 12:58
Getting an OCI image of Studio or mecak8s needs a release today, so no
environment can track main. Add a continuous build that runs after CI
passes on a push to main and publishes the mecak8s and Studio images and
the mecak8s and mecatl-studio charts under ghcr.io/<repo>/main/, all
from one commit with one version, X.Y.(Z+1)-main.<run>.<attempt>.g<sha8>.

Images are pushed, scanned (Studio), signed, SBOM- and
provenance-attested, and verified against this workflow's identity
before the charts publish; each chart pins its image by digest, so a
follower using a prerelease range such as >=0.0.0-0 always gets images
from one commit. A commit publishes only when it is newer on main than
the last published chart, so followers never move back, and runs that
cannot publish never displace a queued publication. Release artifacts,
tags, and signing identities are untouched, and main builds ship without
the product-metrics ingest key.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Move the compute-version decision logic into
.github/scripts/resolve-main-build.sh with a test in task lint:actions.
The chart now records its full commit in an
org.opencontainers.image.revision annotation, which the next run reads
instead of resolving the short SHA from the version.

- A forced older commit keeps at least the last publication's X.Y.Z, so
  a rollback across a release's VERSION bump still sorts first; a run
  that would not sort above the last publication fails.
- With force, a failed lookup of the last publication warns instead of
  blocking every run; the off-main check now matches its message.
- A dispatch without force requires a successful push CI run on its
  commit.
- A last chart that this workflow did not sign and attest does not count
  as published, so its commit can publish again.

Addresses #2292 review comments:
- MEDIUM .github/workflows/continuous.yml:169 (4262353943): forced rollback can't cross a VERSION bump
- MEDIUM .github/workflows/continuous.yml:501 (4262353950): unsigned last chart counted as published
- MEDIUM .github/workflows/continuous.yml:142 (4262353954): failed lookup blocks every publish, even with force
- LOW .github/workflows/continuous.yml:121 (4262353989): dispatch publishes without checking CI
- LOW .github/workflows/continuous.yml:104 (4262354000): move the resolve logic into a tested script

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Followers can select a chart as soon as it is pushed. Push, sign,
attest, and verify the mecak8s chart before pushing the mecatl-studio
chart, then verify that one the same way, so a failure never leaves
the next chart pushed behind an unverified one.

- Show helm's output when a chart push fails.
- Log in to the chart registry with the token from env, as
  compute-version does.
- Scan the mecak8s image for fixable critical vulnerabilities before
  signing it, as Studio is, and explain why ko tags it before the scan.
- Correct the comment on the push order: a failure between the two
  charts leaves the new daemon with the previous Studio.

Addresses #2292 review comments:
- MEDIUM .github/workflows/continuous.yml:501 (4262353950): charts selectable before they're signed or attested
- LOW .github/workflows/continuous.yml:490 (4262353966): the two charts can diverge; comment said otherwise
- LOW .github/workflows/continuous.yml:498 (4262354005): failed chart push hides helm's error
- LOW .github/workflows/continuous.yml:495 (4262354014): pass the token through env
- LOW .github/workflows/continuous.yml:233 (4262354042): mecak8s tagged before verification and not scanned

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
The README section repeated the workflow header. Keep what an operator
acts on there (packages, verification, publishing by hand, rollback,
partial failures) and leave the version scheme and publication order
in the header. Drop the claim that a follower always gets images from
one commit, which a failure between the two chart pushes can break.

In the workflow header, point a rename at a release instead of a hand
edit of VERSION, and say that a newer pending run replaces an older
one, including a pending dispatch.

Addresses #2292 review comments:
- LOW .github/workflows/continuous.yml:48 (4262354020): a pending dispatch can be cancelled by a later run
- LOW .github/workflows/README.md:12 (4262354048): README section repeats the workflow header
- LOW .github/workflows/continuous.yml:12 (4262354057): "bump VERSION" advice describes a hand edit

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@Nashon-Steffen
Nashon-Steffen force-pushed the Nashon-Steffen/studio-continuous-main branch from 41db157 to 6a72e27 Compare October 13, 2026 19:59
@Nashon-Steffen
Nashon-Steffen merged commit f5f2dfe into main Oct 13, 2026
37 of 38 checks passed
@Nashon-Steffen
Nashon-Steffen deleted the Nashon-Steffen/studio-continuous-main branch October 13, 2026 19:59
@toolhive-release-app toolhive-release-app Bot mentioned this pull request Oct 20, 2026
2 tasks
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