Update validation checks#5056
Conversation
|
Pipeline controller notification For optional jobs, comment This repository is configured in: automatic mode |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (1)
WalkthroughAdded duplicate-source detection to credential validation: checks for identical non-empty Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 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 `@pkg/validation/test.go`:
- Around line 848-859: The bundle-duplicate check is incorrectly wrapped by a
Namespace presence guard; update the logic so that if credential.Bundle != ""
and other.Bundle != "" and credential.Bundle == other.Bundle you always append
the same error (using the existing error message pattern that references
fieldRoot, i, index, credential.Bundle) regardless of credential.Namespace or
other.Namespace, and keep the existing secret-name duplicate check
(credential.Name/Namespace) separate; also add a regression test that creates
two credentials with empty Namespace and identical Bundle values to assert the
duplicate-bundle validation error is produced (target the same validation
function where credential.Bundle/other.Bundle are compared).
🪄 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: f8aa00a3-313b-4b33-aadf-f0a734c65922
📒 Files selected for processing (2)
pkg/validation/test.gopkg/validation/test_test.go
b1071de to
74e5a8d
Compare
|
the checkconfig job is correctly failing (those credentials are duplicated), so after openshift/release#76976 merges it should be ok |
|
/test checkconfig |
|
Scheduling tests matching the |
|
/cc @openshift/test-platform |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Prucek, psalajova 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 |
|
/override ci/prow/images |
|
Scheduling tests matching the |
|
@psalajova: Overrode contexts on behalf of psalajova: ci/prow/images 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 kubernetes-sigs/prow repository. |
|
/hold Revision 74e5a8d was retested 3 times: holding |
|
/test images |
|
/unhold |
|
Scheduling tests matching the |
|
@psalajova: 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. |
|
Tests from second stage were triggered manually. Pipeline can be controlled only manually, until HEAD changes. Use command to trigger second stage. |
258547f
into
openshift:main
No description provided.