← Back to Pull requests

NO-JIRA: Fix hypershift release sorting #823

Merged
bradmwilliams merged 2 files (45 lines) on Sep 25, 2026 17:45 UTC
View on GitHub
bradmwilliams bradmwilliams commented on Sep 25, 2026 17:30 UTC
Author

rh-pre-commit.version: 2.4.0
rh-pre-commit.check-secrets: ENABLED

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

Summary by CodeRabbit

Bug Fixes
Layered release tags are now ordered by semantic version, consistent with stable releases. Iterative release tags continue to be ordered by creation date.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Diff: 45 lines (+43 / -2) across 2 files Reviewer: AlexNPavel Review duration: 15m
All Vouch review confidence checks passed
Residual risk 0.10 = Change Risk (0.32) × (1 − Review Confidence (0.70)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.32 · 45 lines diff across 2 files
0.32
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.59 · 5 substantive comment(s)
0.59
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
69%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.229
Ai Authored ai_authored
0.050
Real PR Conversation Timeline
7 items
openshift-ci-robot openshift-ci-robot commented on Sep 25, 2026 17:30 UTC
Contributor

@bradmwilliams: This pull request explicitly references no jira issue.

<details>

In response to this:

>rh-pre-commit.version: 2.4.0
>rh-pre-commit.check-secrets: ENABLED

Instructions 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 openshift-eng/jira-lifecycle-plugin repository.
</details>

coderabbitai[bot] coderabbitai[bot] commented on Sep 25, 2026 17:30 UTC
Bot

<!-- This is an auto-generated comment: summarize by coderabbit.ai -->
<!-- recent_review_start -->

No actionable comments were generated in the recent review. 🎉

<details>
<summary>ℹ️ Recent review info</summary>

<details>
<summary>⚙️ Run configuration</summary>

Configuration used: Repository: openshift/release-controller/.coderabbit.yaml

Review profile: CHILL

Plan: Enterprise

Run ID: f5487e51-f909-4ede-b31e-2e4086e0a857

</details>

<details>
<summary>📥 Commits</summary>

Reviewing files that changed from the base of the PR and between 45f149aad57ce2d4001a109c945796a805d5d726 and 7b7b72e83549d2cc942f2f3ab1906e9e51776fd0.

</details>

<details>
<summary>📒 Files selected for processing (2)</summary>

pkg/release-controller/release.go
pkg/release-controller/release_test.go

</details>

Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review.

</details>

---

<!-- recent_review_end -->
<!-- walkthrough_start -->

<details>
<summary>📝 Walkthrough</summary>

Walkthrough

SortedReleaseTags now uses semantic-version ordering for layered releases, as it already did for stable releases. Iterative releases retain creation-date ordering. New tests cover tag ordering in stable, layered, and Integration modes.

Changes

Release tag ordering

|Layer / File(s)|Summary|
|---|---|
|Sorting rule and test coverage <br> pkg/release-controller/release.go, pkg/release-controller/release_test.go|Layered releases join stable releases in the semantic-sort branch. Iterative releases retain creation-date ordering. Table-driven tests check tag ordering for stable, layered, and Integration modes.|

<!-- change_assessment_start -->
Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

<!-- change_assessment_commit:"7b7b72e83549d2cc942f2f3ab1906e9e51776fd0" -->
Change: Bug fix
<!-- change_assessment_end -->

</details>

<!-- walkthrough_end -->
<!-- final_review_risk_start -->
Merge Risk: _⚪ Minimal_ · up to 7b7b7
<!-- final_review_risk_coverage:{"sourceCommitId":"7b7b72e83549d2cc942f2f3ab1906e9e51776fd0","coveredCommitId":"7b7b72e83549d2cc942f2f3ab1906e9e51776fd0","kind":"reviewed"} -->

The sorting change has a test that would catch a return to the previous layered ordering. No merge-blocking issue remains.
<!-- final_review_risk_end -->
<!-- pre_merge_checks_walkthrough_start -->

<details>
<summary>🚥 Pre-merge checks | ✅ 4 | ❌ 1</summary>

❌ Failed checks (1 warning)

| Check name | Status | Explanation | Resolution |
| :----------------: | :--------- | :----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :--------------------------------------------------------------------------------- |
| Docstring Coverage | ⚠️ Warning | Docstring coverage is 25.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 4 functions across 2 files. | Write docstrings for the functions missing them to satisfy the coverage threshold. |

<details>
<summary>✅ Passed checks (4 passed)</summary>

| Check name | Status | Explanation |
| :------------------------: | :------- | :-------------------------------------------------------------------------------------------------------------------------- |
| Description Check | ✅ Passed | Check skipped - CodeRabbit’s high-level summary is enabled. |
| Title check | ✅ Passed | The title clearly describes the main change: fixing HyperShift release sorting. It is concise and related to the changeset. |
| Linked Issues check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |
| Out of Scope Changes check | ✅ Passed | Check skipped because no linked issues were found for this pull request. |

</details>

</details>

<!-- pre_merge_checks_walkthrough_end -->

  • <!-- {"checkboxId":"585bb3f6-faf5-4dbf-96d2-74e382adf19a"} --> Fix all pre-merge checks with AI

  • <!-- finishing_touch_checkbox_start -->

    <details>
    <summary>✨ Finishing Touches</summary>

    <details open>
    <summary>🧪 Generate unit tests (beta)</summary>

  • <!-- {"checkboxId": "f47ac10b-58cc-4372-a567-0e02b2c3d479", "radioGroupId": "utg-output-choice-group-unknown_comment_id"} --> Create a new PR
  • </details>

    </details>

    <!-- finishing_touch_checkbox_end -->
    <!-- internal state start -->

    <!-- N4IgzgxgFgpgtgQwGowE5gJYHsB2IBcAjADTgAuqArhGZajACYDKZCZMBoYF1t9K6bHiKkADqgDyAIwBWMGhgBuMMARABidQAIACgCUtYSnESoAngB0cV/VvUAOAEwBmYlsA4BADkJAWgBSAJJ6AIL4WgBiGAAeWlBmomhgUBgAZmRa9AA2MAhgMIZYqGQYOADmxIC4BFoYYFpYCThaCDgMWqyopTBktQAGiCU9AHRaAd1aDCoQqBiixbhaELisJb2oUD7iMD6LJhhkg8qCuGGOgwAsgwAMPU0tWj1rG/TbWLv70PIA1j55U11gYQAop5ggAhAAygIAIkMrFZN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EBZAcsSq3mZA+gkWUwMwm+yq6wGYOwFK+w7cxwQu5wVwFgqAVgjwOhYY7wFOPw8gIKAIWgwIYIkIUIXmuQKheg82s23g/gQQoQEQ0QsQD26AyQaQL2BiF4XWKGhof6OgR+MAUyT6P6IAyhcR5EDAwQZA14JKC6bwyIQGCh+ADGYgFM4obyIGNKoABqzAVadKDKZqLKbKHKXKnafKAqQqIqeCLqUqMqcqCqX+zYG4qAWmOAGCCCKQbK9gXiEqhAPgKQIq7sPgZwjAWwUgzghAWwzKUa9geClw6aoaPspRNQTumRagjglwjgdsPgCaqUDseIUq+Azgzg+AjgXiVwhA9gAAWkzrNn5OKEkGukvvUqcQgucZcdcYscLvcV4o8YQNkvYIMC4HbN8bLEqiqs2NkSLI9rOHbr2DEVgFqmwZkewCDN0MbEqkYHvjHkfJiaqugOSV/lIHkKgMoA0i/ltMSlifSTSviihuiWvCdpkBIIMYkMkD2Mkc+GCgKQ6IFhSZQFSZGIwNKZugyaevIDULDtOjgJyGQJEMeKgOICUIUSAO7F4ggM4CkHbI4FIHbJcLynbMEqyl7JKidv4oqA7PYA7BALgo4AgOcRyhAAwIQEmiKoQKynbF4s4GcF4oQBMPgl4s7HKFVNUT6iavUUyo0Vai0Tym0fah0c6jMW6n0T7NSF5FGJkL2KDneA9jIeAfWL2NigkGoFIIJNdlEGYjgNdhMEigQJcIMO7O7ESrkAnggiGLYIsKgPQDQOPHMqBJEi9NslfOWHpLPK3DREcI0AvO9mUG4DHn+ibg5EacjMyCdqyLvDWGostF3DACcpGHRJXn6KYihgRMziNuqRMJbEOQvMICAGFDGCunsIUDKIBIKT9CsDwHbo9E0IoAgODI1gVhMEVuGCBTKU0LQejr1ljgwL3OCrALQYCmWAhTAEheSJKcyChZujpFWRDsSKcoTOSYxnyZyYhMIKAM2NMOwGMSAG2pcMEnGj4IQJcQgD4DKjKj4PYDylINsGmn2tKh6WcIWoxUAA=== -->

    <!-- internal state end -->
    <!-- tips_start -->

    ---

    <sub>Comment @coderabbitai help to get the list of available commands.</sub>

    <!-- tips_end -->

    bradmwilliams bradmwilliams commented on Sep 25, 2026 17:30 UTC
    Author

    /cc @JoelSpeed

    JoelSpeed JoelSpeed commented on Sep 25, 2026 17:37 UTC
    Contributor

    /lgtm

    Thanks

    openshift-ci[bot] openshift-ci[bot] commented on Sep 25, 2026 17:37 UTC
    Bot

    [APPROVALNOTIFIER] This PR is APPROVED

    This pull-request has been approved by: <a href="https://github.com/openshift/release-controller/pull/823#" title="Author self-approved">bradmwilliams</a>, <a href="https://github.com/openshift/release-controller/pull/823#issuecomment-5836754225" title="LGTM">JoelSpeed</a>

    The full list of commands accepted by this bot can be found here.

    The pull request process is described here

    <details >
    Needs approval from an approver in each of these files:

  • ~~OWNERS~~ [bradmwilliams]
  • Approvers can indicate their approval by writing /approve in a comment
    Approvers can cancel approval by writing /approve cancel in a comment
    </details>
    <!-- META={"approvers":[]} -->

    openshift-ci[bot] openshift-ci[bot] commented on Sep 25, 2026 17:44 UTC
    Bot

    @bradmwilliams: all tests passed!

    Full PR test history. Your PR dashboard.

    <details>

    Instructions 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.
    </details>
    <!-- test report -->

    Reviewers
    Assignees
    bradmwilliams bradmwilliams
    Labels
    risk: low confidence: 69.6% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 32.4% (LOW) · Higher = larger blast radius
    32.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 69.6% · Lower = rushed or shallow review
    69.6%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 9.8% · Safe to merge
    9.8%