Skip to content

fix(release): name the published image and chart in the release notes - #154

Open
Gkrumbach07 wants to merge 1 commit into
ai-openshell:mainfrom
Gkrumbach07:fix/release-notes-artifacts
Open

Gkrumbach07 wants to merge 1 commit into
ai-openshell:mainfrom
Gkrumbach07:fix/release-notes-artifacts

Conversation

@Gkrumbach07

Copy link
Copy Markdown
Contributor

Closes #147

Problem

A release's notes list its changes and the gateway line it supports, but not where it's published. Anyone pinning a release, such as the RHOAI installer config in opendatahub-io/openshell#159, has to read publish.yml or browse quay.io to find the image and the chart.

Change

  • release-notes.mjs: the notes end with a new Artifacts section. It names the image by tag (quay.io/ai-openshell/console:X.Y.Z), the chart and its version (oci://quay.io/ai-openshell/charts/console, X.Y.Z), and gives a helm install line. withImageDigest(body, …) replaces only that section with one that names the image by digest. A body without the section gets it appended at the end, and any later section added by hand is kept. Anything other than a sha256: digest is refused, so a failed lookup can't write null into the notes.
  • record-artifacts.mjs (new): --tag vX.Y.Z --digest sha256:… [--dry-run]. It reads the release body with gh, rewrites the section and runs gh release edit. If the notes already have the digest, it changes nothing.
  • publish.yml: a new last job, record-artifacts, with needs: [publish, tag-image, publish-chart]. It reads the digest of :X.Y.Z from quay.io, where the image is public, and runs the script. It has contents: write only, signs in to no registry, and isn't in the release environment. The digest exists only after tag-image, which is why this is a separate job after the others.
  • docs/releasing.md: describes the section, the job, and how to backfill an old release.

Verified

  • node --test scripts/*.test.mjs scripts/release/*.test.mjs: 95 pass. New tests cover the section's content and position, the digest swap, re-running changing nothing, appending to an old body, keeping a later hand-added section, refusing a bad digest, and the job's needs and permissions.
  • A dry run against the real v0.1.5 release: record-artifacts.mjs --tag v0.1.5 --digest <the :0.1.5 digest> --dry-run prints the existing notes with the section appended, naming quay.io/ai-openshell/console:0.1.5@sha256:de027da9….

After merge

v0.1.4 and v0.1.5 predate the section. Backfilling them is one command each (see docs/releasing.md). It edits public release notes, so it isn't part of this PR.

🤖 Generated with Claude Code

The notes listed the changes and the supported gateway line, but not
where the release is published, so anyone pinning one had to read
publish.yml or browse quay.io.

The notes now end with an Artifacts section: the image by tag, the
chart and its version, and a helm install line. They are written before
the image is tagged, so a last job, record-artifacts, reads the image's
digest from quay.io and replaces that section with one that names it.
It holds only contents: write, signs in to no registry, and running it
again changes nothing. The same script backfills a release cut before
the section existed.

Closes ai-openshell#147

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Gage Krumbach <gkrumbac@redhat.com>
@Gkrumbach07
Gkrumbach07 requested review from a team as code owners November 30, 2026 19:57

This branch has not been deployed

No deployments
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.

Release notes should name the published image and chart

1 participant