Skip to content

fix(ci): verify the release changelog and image during validation - #840

Merged
rng1995 merged 2 commits into
mainfrom
naren/validate-release-changelog-and-image
Nov 20, 2026
Merged

rng1995 merged 2 commits into
mainfrom
naren/validate-release-changelog-and-image

Conversation

@rng1995

@rng1995 rng1995 commented Nov 20, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Before, Validate release could succeed even when the changelog lacked a dated release heading or the official public GHCR revision resolved to a different digest. The maintainer could request Publish approval before seeing either failure.
  • After, Validate release checks the heading and resolves the public revision against the reviewed manifest before saving a validation receipt. The check uses the current workflow script from the reviewed source directory, which supports older reviewed commits. Publish repeats both checks before first publication, and recovery keeps its existing checks.

Verification

  • Reviewed the Contributing Guidelines
  • Added regression coverage for changelog, GHCR, source, and workflow failures
  • Updated the release runbook
  • Ran make lint
  • Ran 140 focused release tests
  • Ran make build
  • Verified the public GHCR revision anonymously against the historical v1.0.1 release manifest
  • Kept credentials and private content out of the change

Release Impact

The GitHub Actions validation run reports both failures before approval. Release workflow inputs remain the same.

Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Reviewed the Validate and Publish paths. The changelog check needs the same source binding as the artifact manifest.

Comment thread ci/github_release.py Resolved
Comment thread ci/github_release.py Resolved
Signed-off-by: Narendran Raghavan <nraghavan@nvidia.com>
@rng1995
rng1995 merged commit 7cfc7b2 into main Nov 20, 2026
24 checks passed
@rng1995
rng1995 deleted the naren/validate-release-changelog-and-image branch November 20, 2026 18:42
@chrisknvidia

Copy link
Copy Markdown
Collaborator

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.

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