Repository navigation
Conversation
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: flacatus The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
PR Summary by QodoAdd source changelogs to MintMaker promotion PRs
AI Description
Diagram
High-Level Assessment
Files changed (11)
|
Compare independent image source revisions and refresh generated PR bodies when reusing the stable promotion branch. Assisted-by: OpenAI Codex Signed-off-by: flacatus <flacatus@redhat.com>
ebd7c24 to
7e51441
Compare
|
PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What
Add a reusable
github-commit-changelogPromotionTask and enable it for MintMaker Rings 0–4. Promotion PRs show separate linked commit lists for the controller, Renovate image and schedule calculator, comparing each ring's previous image SHA tag with its selected Freight tag.Source comparisons resolve credentials with
repoCredentials()for each source repository, using Kargo-managed Git credentials such as GitHub App installation tokens.Refresh generated descriptions when reusing an existing promotion PR, after verifying its repository, branch, base and published head. Existing callers opt in through the optional
prChangelogfield.Environments affected: Kargo internal-production configuration, including MintMaker's staging Ring 1 and production rings.
Why
Promotion PRs currently show changed configuration values without the source history behind them. MintMaker has three independent source repositories; one controller comparison cannot describe all three images. Kargo's native
git-open-pralso adopts an existing PR without refreshing its body.Validation
git diff --checkpass.Risk Assessment
Risk Level: Medium.
Each changed valid source pair adds a bounded GitHub comparison request. Matching Git credentials and GitHub App repository access must exist for each source repository; live credential availability was not verified. Lists show at most 20 commits with full comparison links. Missing source SHAs, digest-pinned previous images, rate limits and lookup failures produce explicit unavailable notes without changing promotion eligibility. CLI version tags and the unrecorded previous shared-base source revision do not get inferred changelogs. Commit lists are not deduplicated merged-PR release notes or image provenance attestations.
Refreshing the generated PR body requires the existing shared credential's pull-request write access; a failed refresh blocks publication to avoid silently retaining a stale changelog. This replaces manual body edits. GitHub has no atomic expected-head condition for body updates; the returned head is verified, but concurrent branch updates may still require a retry. Already-merged matching PRs and no-ops are not edited.
Rollback: Revert this PR. Existing Promotions retain their expanded steps; newly created Promotions use the reconciled task configuration.