fix: wait for rolebinding in 1-084 to avoid intermittent fail#1201
Conversation
Signed-off-by: Jonathan West <jgwest@gmail.com>
📝 WalkthroughSummary by CodeRabbit
WalkthroughThis change updates an e2e test file to add imports for k8s fixture utilities and RBAC v1 API types, then inserts an Eventually wait in the BeforeEach block to confirm the operator creates the expected Argo CD server RoleBinding in the managed namespace before test execution proceeds. ChangesRoleBinding Readiness Wait
Estimated code review effort: 1 (Trivial) | ~5 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
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/openshift/e2e/ginkgo/sequential/1-084_validate_prune_templates.go`:
- Around line 52-58: The `Eventually` in `1-084_validate_prune_templates.go` is
still using Gomega’s default timeout, which can leave the RoleBinding wait
flaky. Update the wait around `argoCDServerRB` in the `By("waiting for the
operator to create rolebindings in the managed namespace")` block to use the
same explicit timeout/poll interval pattern used elsewhere in this test file for
operator-driven state, so the `ExistByName()` assertion has enough time to
succeed reliably.
🪄 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), Organization UI (inherited)
Review profile: CHILL
Plan: Enterprise
Run ID: 93338e2c-a349-4a34-9bd3-c6c9f3f69783
📒 Files selected for processing (1)
test/openshift/e2e/ginkgo/sequential/1-084_validate_prune_templates.go
🔗 Linked repositories identified
CodeRabbit considers these linked repositories for cross-repo context during reviews:
argoproj-labs/argocd-operator(manual)
|
/retest |
|
/retest |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: svghadi 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 |
543c4f5
into
redhat-developer:master
|
@jgwest: The following tests 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. |
What type of PR is this?
/kind failing-test
What does this PR do / why we need it:
Have you updated the necessary documentation?
Test acceptance criteria: