OCPBUGS-82304: Add sleep to give cvo time to reconcile#30988
OCPBUGS-82304: Add sleep to give cvo time to reconcile#30988xueqzhan wants to merge 1 commit intoopenshift:mainfrom
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@xueqzhan: This pull request references Jira Issue OCPBUGS-82304, which is valid. The bug has been moved to the POST state. 3 validation(s) were run on this bug
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. |
|
/payload-job periodic-ci-openshift-release-main-nightly-4.22-e2e-aws-ovn-serial-2of2 |
|
@xueqzhan: trigger 1 job(s) for the /payload-(with-prs|job|aggregate|job-with-prs|aggregate-with-prs) command
See details on https://pr-payload-tests.ci.openshift.org/runs/ci/e7e14310-3425-11f1-9948-78e0ce1878a6-0 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: xueqzhan 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 |
WalkthroughA test in the adm_upgrade recommend suite adds a 16-second sleep interval after updating the ClusterVersion channel to empty and enabling state restore, before invoking the Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@test/extended/cli/adm_upgrade/recommend.go`:
- Around line 74-75: Replace the hardcoded time.Sleep(16 * time.Second) with a
condition-based poll using o.Eventually(): write an assertion that repeatedly
queries the same resource/state the sleep was waiting for (e.g., the CVO/channel
status) and returns true when the expected status is observed; use a reasonable
timeout (e.g., 30s) and interval (e.g., 1s) and call o.Eventually(func() bool {
/* fetch status via the same helper or client used elsewhere in recommend.go and
return true when reconciled/pushed to status */ }).Should(BeTrue()) so the test
waits only as long as needed and stops flaking.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
Run ID: 6d14a3a0-c5c1-41f7-906f-a1af637b3d99
📒 Files selected for processing (1)
test/extended/cli/adm_upgrade/recommend.go
|
Scheduling required tests: |
|
Risk analysis has seen new tests most likely introduced by this PR. New Test Risks for sha: a992788
New tests seen in this PR at sha: a992788
|
|
/retest-required |
|
/test e2e-aws-ovn-fips |
|
@xueqzhan: The following test failed, say
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. |
No description provided.