Skip to content

feat(tools): auto-fetch missing refs in ccip release changelog script - #23407

Open
ogtownsend wants to merge 3 commits into
developfrom
ogt/on-demand-ref-resolution-changelog-script
Open

feat(tools): auto-fetch missing refs in ccip release changelog script#23407
ogtownsend wants to merge 3 commits into
developfrom
ogt/on-demand-ref-resolution-changelog-script

Conversation

@ogtownsend

@ogtownsend ogtownsend commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Release branches and tags often exist only on the remote (e.g. release/2.56.0 or v2.56.1-rc.3) and have never been fetched locally.

Previously the tool only resolved local refs and origin/*, causing "Needed a single revision" errors for valid release refs

ResolveRef now:

  1. Tries local refs (SHA, tag, branch)
  2. Falls back to origin/ for remote-tracking branches.
  3. Fetches the ref on demand via git fetch origin <ref> into FETCH_HEAD (no local branches/tags created).
  4. Also normalizes the hybrid "vX.Y.Z-ccip-*" form (v-prefixed image tag) to the real git tag

If resolution still fails, the error now suggests similarly named remote refs (e.g. asking for v2.56.1 will suggest release/2.56.1 and v2.56.1-rc.0..3)

@github-actions

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@trunk-io

trunk-io Bot commented Aug 13, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

makramkd
makramkd previously approved these changes Aug 14, 2026
@ogtownsend
ogtownsend marked this pull request as ready for review August 14, 2026 04:50
@ogtownsend
ogtownsend requested review from a team as code owners August 14, 2026 04:50
@ogtownsend
ogtownsend enabled auto-merge August 14, 2026 04:50
@cl-sonarqube-production

Copy link
Copy Markdown

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