NO-JIRA: Fix flaky storage-admin e2e test#31180
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
@jubittajohn: This pull request explicitly references no jira issue. 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 scoped storage-admin CLI test now generates a unique Changesstorage-admin CLI permission and scoped test
🎯 3 (Moderate) | ⏱️ ~20 minutes
🚥 Pre-merge checks | ✅ 10 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (10 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Tip 💬 Introducing Slack Agent: The best way for teams to turn conversations into code.Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.
Built for teams:
One agent for your entire SDLC. Right inside Slack. 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/admin.go`:
- Around line 304-305: The projectName is deterministic (projectName :=
fmt.Sprintf("policy-can-i-%s", ocns.Namespace())) which causes AlreadyExists on
retries; change creation to append a generated unique suffix (e.g., low-entropy
random string or timestamp) to projectName before calling
oc.Run("new-project").Args(...).Execute() so each attempt uses a unique project
name; update the variable construction where projectName is defined and used
(projectName and the oc.Run("new-project") call) to include the suffix.
🪄 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: 2e47496d-770f-4017-a9d8-fa76a2dbe064
📒 Files selected for processing (1)
test/extended/cli/admin.go
7695f73 to
e9ad568
Compare
e9ad568 to
08a1be5
Compare
|
Scheduling required tests: |
|
Changes look good to me |
|
/lgtm cancel |
|
/lgtm |
The test used a hardcoded project name "policy-can-i" which caused AlreadyExists errors on retries. Use a unique project name via names.SimpleNameGenerator and fix the "sytem" typo in --as-group. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
08a1be5 to
9b7c066
Compare
|
Thanks |
|
Scheduling required tests: |
|
/retest |
|
/test e2e-metal-ipi-ovn-ipv6 |
1 similar comment
|
/test e2e-metal-ipi-ovn-ipv6 |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ardaguclu, bertinatto, jubittajohn 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 |
|
/test e2e-aws-ovn-serial-1of2 |
1 similar comment
|
/test e2e-aws-ovn-serial-1of2 |
|
@jubittajohn: 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. |
|
Job Failure Risk Analysis for sha: 9b7c066
|
Use a unique project name derived from the test namespace and fix the "sytem" typo in --as-group.
This failure was seen in this job run: https://prow.ci.openshift.org/view/gs/test-platform-results/pr-logs/pull/openshift_kubernetes/2653/pull-ci-openshift-kubernetes-master-e2e-aws-ovn-runc/2054927169104121856
Summary by CodeRabbit