Repository navigation
feat(notes): read Helm charts' own changes and their sources - #192
Merged
Merged
Conversation
OCI Helm charts never got release notes: their source was read from image config labels, which a chart's config does not have, and index.yaml charts had no source lookup at all. - A chart's artifacthub.io/changes annotation is its notes when any version in the range has it, for OCI and index.yaml charts alike. - Otherwise the chart's `sources` name the repository, and the PR says the notes came from there, since that is often the application's repository. - Images without a source label take the manifest's source annotation. - GitHub /tree/<branch>/<dir> URLs name the package directory, and chart-releaser's <chart>-<version> tags are understood. Refs #191
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
count-patchula | 869c111 | Commit Preview URL Branch Preview URL |
Nov 06 2026, 08:45 AM |
|
¡Listo! Review complete — see the comment below. 4 inline notes attached to the diff. 🎯 |
- Map OCI build metadata (+) to its tag (_) for every config read, and let OCI versions with build metadata bound a range. - Read a chart's own changes before its source, so a source that cannot be read only loses the Source link. - Take org.opencontainers.image.source from a multi-platform index when the platform's manifest has none. - Say a chart version could not be read rather than that it lists no changes. - Match chart-releaser's <chart>-<version> tags only for charts.
There was a problem hiding this comment.
¡Volví! Sombra again — I traced c1e8add line by line against my four findings. Clean work, everything holds. 🕷️
Follow-up on fix(notes): address review of chart release notes (869c111..c1e8add). I verified each fix in the tree and read the three new tests; I did not re-run the suite locally.
Resolved — verified
- P2 —
image_sourceand the+→_mapping:image_confignow normalises+→_itself, sooci_chart,image_sourceand the chart range probe all share it, andSource::Dockeris unaffected (+can't appear in its tags).release_notesreadschart_sectionsfirst, and in thefrom_chartpath a failed source read now only costs the Source link (.ok().flatten()), which is the right failure scope.boundaryalso gained the OCI fallback for+build metadata —1.1.0+metanow bounds the range. Covered bychart_versions_with_build_metadata_read_their_underscore_tags. - P3 — index-level annotations: the annotation is captured at every manifest level as the loop descends, so a platform manifest's own
org.opencontainers.image.sourceoverrides the index's and the index's survives otherwise. Covered bya_multi_platform_index_annotates_the_source_for_its_platforms. - P3 — failed read renders "lists no changes": per-version reads are now
Result<Option<String>, ()>;Errrenders "The Count could not read the chart for this version." and setsincomplete, whileOk(None)keeps the honest "lists no changes". Covered bya_chart_version_that_cannot_be_read_says_so. - P4 — global
-separator: narrowed torepository.chart_sources, which is set exactly where a repository comes from a chart'ssources(ChartNotes::repository, the chart annotation fallback inimage_source). Since-is new in this PR, gating it this way loses nothing thatmainmatched. Covered bychart_releaser_tags_name_the_chart_then_its_version.
New pass — no new findings
- The
Ok(Some)arm ofrelease_notesstill returns early withfrom_chart; the extranotes_source_repositorycall is batch-memoised and its failure only drops the link, as intended. - The all-
Errearly return inread_chart_rangefalls back to source notes without flaggingincomplete— identical to before, so not a regression (and theErr(_)arm in the caller still covers wholesalechart_sectionsfailure). image_config's+→_is the exact inverse oflookup's_→+forSource::Oci, so tags that genuinely contain_round-trip correctly.
Nothing to flag from P0–P4. CI is green except the corpus job still in flight at review time.
Merged
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.
Fixes #191.
OCI Helm charts never got release notes. The Count read the source from the image config's
Labels, and a chart's config isChart.yamlas JSON, so it has none. Charts from anindex.yamlhad no source lookup at all.Changes
artifacthub.io/changesannotation, those lists are the notes: plain entries as a list, structured ones grouped by kind, and versions without the annotation say so. OCI charts are read one config per version (at most 32); anindex.yamlalready holds every version.sources. Without the annotation, the chart's firstsourcesentry on a supported host is the source repository. PRs then say the notes came from the chart'ssourcesand may describe the packaged application.org.opencontainers.image.sourceannotation, after the official-image table (official images annotate their Dockerfile repository)./tree/<branch>/<dir>URLs set the package directory, so a chart's ownCHANGELOG.mdin a charts monorepo is found. The branch must be one path segment.<chart>-<version>tags are understood, matched against the chart's name only.#123. Chart text has no upstream, so bare#123references are neutralised rather than letting GitHub link them to the PR's own repository.Docs:
guide/release-notes.md(source table, Helm section, private GitHub repositories only give changelogs) and the compatibility matrix.Follow-ups
CHANGELOG.mdpackaged inside the chart. On hold until we hear whether the annotation orsourcescovers the reporter's case./in/tree/URLs pick the wrong directory, which falls back to the root changelog.