Repository navigation
fix(release): name the published image and chart in the release notes - #154
Open
Gkrumbach07 wants to merge 1 commit into
Open
Gkrumbach07 wants to merge 1 commit into
Gkrumbach07 wants to merge 1 commit into
Conversation
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>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.ymlor 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 ahelm installline.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 asha256:digest is refused, so a failed lookup can't writenullinto the notes.record-artifacts.mjs(new):--tag vX.Y.Z --digest sha256:… [--dry-run]. It reads the release body withgh, rewrites the section and runsgh release edit. If the notes already have the digest, it changes nothing.publish.yml: a new last job,record-artifacts, withneeds: [publish, tag-image, publish-chart]. It reads the digest of:X.Y.Zfrom quay.io, where the image is public, and runs the script. It hascontents: writeonly, signs in to no registry, and isn't in thereleaseenvironment. The digest exists only aftertag-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'sneedsand permissions.record-artifacts.mjs --tag v0.1.5 --digest <the :0.1.5 digest> --dry-runprints the existing notes with the section appended, namingquay.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