Repository navigation
fix(ci): verify the release changelog and image during validation - #840
Conversation
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the Validate and Publish paths. The changelog check needs the same source binding as the artifact manifest.
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
|
Thanks. I verified the Validate path step by step. The new step runs the current github_release.py from a release-control checkout against the reviewed source, so older reviewed commits get today's check. It reads CHANGELOG.md from the reviewed commit rather than the working tree, requires a dated ## X.Y.Z - YYYY-MM-DD heading, which is the format every released entry in the file already uses, requires the manifest source commit to equal the dispatch input, and compares the live public GHCR revision digest with the manifest image. A mismatch, a missing image tag, a registry error, or a manifest for a different source commit all exit non-zero before the artifact is uploaded, and the registry lookup is anonymous with the prepare job's permissions unchanged. The working-directory switch to source is safe: every run step uses repo-relative or RUNNER_TEMP paths, the artifact upload uses an absolute path, and the new checkout uses the same pinned action SHA. Nothing depends on the current date, so a rerun gives the same answer. The neutral registry error messages are an improvement; the read path kept its fail-closed behavior and the write path still raises. Tests pass at this head and the new cases fail on main. Good to merge. |
Summary
Verification
make lintmake buildv1.0.1release manifestRelease Impact
The GitHub Actions validation run reports both failures before approval. Release workflow inputs remain the same.