Fix candidate stanza resolution for stable streams - #809
Conversation
The candidate stanza in resolveUpgradeRelease constructs stream names as "X.Y.0-0.<stream>", which works for nightly and CI streams but not for stable streams, which use the "N-stable" naming convention. When PR 82640 in openshift/release set `stream: "stable"` in the 5-dev-preview config, lookups failed with "no release configuration exists with the requested name" because it searched for "4.22.0-0.stable" instead of "4-stable". Extract candidateStreamName helper that returns "N-stable" with a version prefix filter for stable streams, preserving the existing behavior for nightly and CI streams.
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: hoxhaeris 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 |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughCandidate upgrade resolution now derives stream names and version prefixes for stable, nightly, and CI streams. Release lookup uses these values. Tests cover version changes, prefixes, and architecture suffixes. ChangesCandidate stream resolution
Estimated code review effort: 2 (Simple) | ~10 minutes Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@hoxhaeris: all tests passed! Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |
|
/hold |
|
I'm leaning towards this not being a necessary fix as the |
|
That being said, the |
The candidate stanza in
resolveUpgradeReleaseconstructs stream names asX.Y.0-0.<stream>, which works for nightly and CI streams but not for stable streams, which use theN-stablenaming convention.When openshift/release#82640 set
stream: "stable"in the 5-dev-preview config, upgrade-major verification jobs got stuck at Pending because the release-controller looked up4.22.0-0.stableinstead of4-stable.This PR extracts a
candidateStreamNamehelper that returnsN-stablewith a version prefix filter for stable streams, preserving the existing behavior for nightly and CI streams.Summary by CodeRabbit