Revert "OCPBUGS-85363: Fixed flakiness of oc set image E2E tests"#31188
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@YamunadeviShanmugam: This pull request references Jira Issue OCPBUGS-85363, which is valid. 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. |
WalkthroughThe PR refactors extended CLI tests for Changesoc set image test refactoring
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
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)
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 |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/extended/cli/setimage.go`:
- Around line 112-119: The PollImmediate callback around wait.PollImmediate
currently swallows every error by returning (false, nil) for the
oc.Run("set").Args(...).Execute() call, which converts deterministic failures
into a timeout; change the callback to only retry on known transient errors
(e.g., temporary network/service unavailability or 5xx), otherwise return
(false, err) so the real error surfaces, or at minimum capture the last execute
error into a local lastErr and return it from the poll when it expires; update
both occurrences that wrap oc.Run("set").Args("image", "pods,dc",
\"*=ruby:3.3-ubi8\", \"--all\", \"--source=imagestreamtag\").Execute() inside
wait.PollImmediate to implement this behavior.
🪄 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: Repository YAML (base), Central YAML (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 5a33635d-dba9-4648-8877-f0b87578e309
📒 Files selected for processing (2)
test/extended/cli/setimage.gotest/extended/util/search_latest_image.go
💤 Files with no reviewable changes (1)
- test/extended/util/search_latest_image.go
|
Scheduling required tests: |
|
|
|
✅ Actions performedComments resolved and changes approved. |
|
Thank you |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, petr-muller, YamunadeviShanmugam 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 |
|
/verified by CI |
|
@ardaguclu: 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. |
|
/retest |
|
The CI is failing to acquire resource , retesting again |
|
/retest |
|
I think |
|
Job Failure Risk Analysis for sha: bf978be
|
|
/retest
|
|
/retest |
|
@YamunadeviShanmugam: 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. |
|
@YamunadeviShanmugam: Jira Issue Verification Checks: Jira Issue OCPBUGS-85363 Jira Issue OCPBUGS-85363 has been moved to the MODIFIED state and will move to the VERIFIED state when the change is available in an accepted nightly payload. 🕓 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. |
Reverts #31152, the PR had removed the timeout which is causing race condition, will open a new PR with all the changes that is needed, reverting the PR for unblocking the CI for other PRs.
Summary by CodeRabbit
oc set imageextended tests to use polling for imagestreamtags readiness, improving reliability in disconnected environments.