wait for component rollout in all cases#6853
Conversation
PR openshift#6767 added a check for component rollout only in TestUpgradeControlPlane after the upgrade had been triggered. However, we need to check this on _all_ rollouts in all tests. WaitForImageRollout() is the function used for that. This moves the new component rollout check into WaitForImageRollout() so that we do it for all HC rollouts in all tests.
|
@sjenning: This pull request references Jira Issue OCPBUGS-61828, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. 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. |
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests
Tip 👮 Agentic pre-merge checks are now available in preview!Pro plan users can now enable pre-merge checks in their settings to enforce checklists before merging PRs.
Please see the documentation for more information. Example: reviews:
pre_merge_checks:
custom_checks:
- name: "Undocumented Breaking Changes"
mode: "warning"
instructions: |
Pass/fail criteria: All breaking changes to public APIs, CLI flags, environment variables, configuration keys, database schemas, or HTTP/GraphQL endpoints must be documented in the "Breaking Change" section of the PR description and in CHANGELOG.md. Exclude purely internal or private changes (e.g., code not exported from package entry points or explicitly marked as internal).Please share your feedback with us on this Discord post. 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 |
|
Skipping CI for Draft Pull Request. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: sjenning 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 |
|
/title wait for component rollout in all cases |
|
/retitle wait for component rollout in all cases |
|
@sjenning: No Jira issue is referenced in the title of this pull request. 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. |
PR #6767 added a check for component rollout only in
TestUpgradeControlPlaneafter the upgrade had been triggered.However, we need to check this on all rollouts in all tests.
WaitForImageRollout()is the function used for this purpose.Not waiting is causing the feature gate status to skew wrt the CVO version history. On
TestUpgradeControlPlane, the FeatureGate status is missing theinitialversion because the initial rollout is not completing before the upgrade begins.This moves the new component rollout check into
WaitForImageRollout()so that we do it for all HC rollouts in all tests.My theory is that before #6767, both the FeatureGate status and the CVO were missing the
initialversion and, thus, the test passed