CNTRLPLANE-3324: Restore non-obvious comments after gocyclo refactor#8487
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
@bryan-cox: This pull request references CNTRLPLANE-3324 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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. |
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughThis pull request adds and refines inline and block comments across many controllers and command files (control-plane-operator, hypershift-operator, ignition-server, and several cmd packages). Changes clarify reconciliation assumptions, finalizer/deletion behavior, IDP conversion notes (including IBM Cloud/OpenID), metrics encoding/semantics, scheduler/autoscaler decision rationale, installer flags (Azure Workload Identity, GCP, external-dns), and other implementation intents. No functional logic, control flow, exported API signatures, or runtime behavior were changed. Suggested reviewers
🚥 Pre-merge checks | ✅ 11 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bryan-cox 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 |
73d3ea4 to
31bd1b7
Compare
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8487 +/- ##
==========================================
+ Coverage 39.85% 39.90% +0.05%
==========================================
Files 751 751
Lines 92556 92661 +105
==========================================
+ Hits 36888 36977 +89
- Misses 52994 53010 +16
Partials 2674 2674
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
31bd1b7 to
beaddff
Compare
e9904ed to
7a558c5
Compare
Restore and improve comments that document hidden constraints, edge cases, and design decisions across files affected by the gocyclo complexity refactor in PR openshift#8309. Changes: - Add missing requeue comment in AWS private link deletion flow - Restore OAuth IDP conversion comments: GitLab OIDC requirement, Keystone ID, IBM Cloud special case, ID claim safety, challenge flow validation constraint - Fix comment formatting (//Handle -> // Handle) in v2 OAuth IDP - Add ARO-HCP OpenAPI spec link for Azure resource type constant - Restore CAPI label propagation doc comment with TODO and JIRA link (HOSTEDCP-971) explaining why labels/taints bypass rolling upgrades - Restore globalPS DaemonSet scheduling comment Signed-off-by: Bryan Cox <brcox@redhat.com> Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
7a558c5 to
7b92a2f
Compare
|
/lgtm |
|
Scheduling tests matching the |
|
/verified bypass This is just adding comments back in. No functional code changes. |
|
@bryan-cox: The DetailsIn response to this:
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. |
|
/open |
|
/reopen |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
|
@bryan-cox: Failed to re-open PR: state cannot be changed. The restore-gocyclo-comments branch has been deleted. DetailsIn response to this:
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. |
|
@bryan-cox: This pull request references CNTRLPLANE-3324 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the task to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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. |
|
/retest |
|
Claude mistakenly closed this PR before. |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
|
/pipeline required |
|
Scheduling tests matching the |
|
I have all the evidence needed. All 8 jobs share the exact same root cause: CI infrastructure pod scheduling timeout on the Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryAll 8 jobs failed identically due to a CI infrastructure capacity issue — not a problem with the PR code. Every job pod was created on the Root CauseThe root cause is CI infrastructure resource exhaustion on the Detailed breakdown of the 91-node cluster at failure time:
The few nodes that would normally schedule prowjobs (the The 30-minute scheduling timeout is a Prow-level safety net that terminates pods that cannot be scheduled within a reasonable window, preventing indefinite queuing. Recommendations
Evidence
|
|
/retest |
Test Resultse2e-aks
e2e-aws
|
|
/test images |
|
@bryan-cox: 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. |
Summary
Changes by area
control-plane-operator/
//Handle→// Handleformattinghypershift-operator/
collectTakenPairLabelsdoc, available nodes/machinesets criteria, paired machineset scale-upignition-server/
cmd/
Context
PR #8309 enabled the
gocyclolinter and reduced cyclomatic complexity by extracting helper functions. Review feedback from @enxebre flagged that the refactor removed valuable comments documenting non-obvious behavior. Every removed comment line was classified as either non-obvious (restore) or redundant with the now-self-documenting extracted function names (skip).A detailed HTML report documenting every removed comment and its disposition is available in the branch at
comment-restoration-report.html(not committed).Test plan
go build ./...passes🤖 Generated with Claude Code