CNTRLPLANE-3686: feat(api,cpo): add observedGeneration to ControlPlaneComponentStatus#8819
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: LGTM mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (7)
📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (3)
📝 WalkthroughWalkthrough
🚥 Pre-merge checks | ✅ 11✅ Passed checks (11 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@muraee: This pull request references CNTRLPLANE-3686 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 story 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. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #8819 +/- ##
==========================================
+ Coverage 41.91% 42.56% +0.64%
==========================================
Files 769 768 -1
Lines 96763 95299 -1464
==========================================
+ Hits 40557 40560 +3
+ Misses 53402 51932 -1470
- Partials 2804 2807 +3
... and 9 files with indirect coverage changes
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
|
Consider adding an observed generation match to dependency checks |
|
/approve for API change |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: JoelSpeed, muraee 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 |
bc3c753 to
149ac0c
Compare
Track which HostedControlPlane generation each component last reconciled. This closes the gap where a component reports RolloutComplete=True from a previous reconcile while the CPO hasn't yet processed a new HCP spec change. The field is set unconditionally at the end of reconcileComponentStatus — conditions (RolloutComplete, Available) communicate success/failure, while observedGeneration signals "I've processed this generation." Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
149ac0c to
27d3b42
Compare
|
/lgtm |
|
Scheduling tests matching the |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
Test Resultse2e-aws
e2e-aks
|
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
|
/retest-required |
|
/verified by unit |
|
@muraee: This PR has been marked as verified by 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. |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
AI Test Failure AnalysisJob: Generated by hypershift-analyze-e2e-failure post-step using Claude claude-opus-4-6 |
|
/hold Revision 27d3b42 was retested 3 times: holding |
|
/retest-required |
|
/retest-required |
|
Now I have all the evidence I need. Let me compile the final analysis. The key findings are:
Test Failure Analysis CompleteJob Information
Test Failure AnalysisErrorSummaryAll three test failures are pre-existing flaky tests unrelated to PR #8819's changes. The PR exclusively modifies Root CauseThese failures are NOT caused by PR #8819. Each failure has an independent, pre-existing root cause:
PR #8819's changes are limited to:
None of these files are in the code path of any failing test. Recommendations
Evidence
|
|
/retest-required |
|
@muraee: 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
observedGenerationfield toControlPlaneComponentStatusto track which HostedControlPlane generation each component last reconciledRolloutComplete=Truefrom a previous reconcile while the CPO hasn't yet processed a new HCP spec changereconcileComponentStatus— conditions (RolloutComplete,Available) communicate success/failure, whileobservedGenerationsignals "I've processed this generation"Test plan
TestReconcileComponentStatusassertsObservedGenerationequals HCP generation in all test casesmake apiregenerated CRDs, deepcopy, clients, docsmake api-lint-fixpasses with 0 issuesmake verifypasses🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
observedGeneration, indicating which Hosted Control Plane spec generation has been reconciled.RolloutCompleteandRolloutCompleteMessage(replacing progressing-focused columns).Bug Fixes
observedGenerationbased on the Hosted Control Plane’s currentgeneration.