-
Notifications
You must be signed in to change notification settings - Fork 665
OCPBUGS-66048: only reveal values just before invoking text #15777
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
|
@yapei: This pull request references Jira Issue OCPBUGS-66048, which is invalid:
Comment The bug has been updated to refer to the pull request using the external bug tracker. In 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. |
WalkthroughMoves the secret reveal action in a Cypress test from before a per-item loop to inside each iteration after key retrieval, and adds an explicit 60000ms page-load timeout to the Alertmanager edit page visit call. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
✨ Finishing touches
🧪 Generate unit tests (beta)
Comment |
02da5a5 to
17a9aad
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 0
🧹 Nitpick comments (1)
frontend/packages/integration-tests-cypress/views/alertmanager.ts (1)
83-85: Verify the necessity and appropriateness of the 60-second timeout.A 60-second timeout is quite long for page navigation and may mask underlying performance issues or actual failures. Additionally, the relationship between this change and the PR's stated objective (fixing image pull secrets test failures) is unclear.
Consider:
- Whether Cypress's default command timeout already covers this duration
- Using explicit waits for specific elements to appear after navigation instead of a blanket timeout
- Investigating whether there's an underlying performance issue that should be addressed
Can you clarify how this change relates to the image pull secrets test failure described in the PR objectives? If the page consistently takes this long to load, consider investigating the root cause rather than extending the timeout.
Recommended approach using element-based wait:
visitEditPage: (receiverName: string) => { - cy.visit(`/settings/cluster/alertmanagerconfig/receivers/${receiverName}/edit`, { - timeout: 60000, - }); + cy.visit(`/settings/cluster/alertmanagerconfig/receivers/${receiverName}/edit`); + // Wait for the edit form to be ready instead of a blanket timeout + cy.byTestID('receiver-name').should('be.visible'); },
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
Cache: Disabled due to data retention organization setting
Knowledge base: Disabled due to Reviews -> Disable Knowledge Base setting
📒 Files selected for processing (2)
frontend/packages/integration-tests-cypress/views/alertmanager.ts(1 hunks)frontend/packages/integration-tests-cypress/views/secret.ts(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
- frontend/packages/integration-tests-cypress/views/secret.ts
🧰 Additional context used
📓 Path-based instructions (1)
**
⚙️ CodeRabbit configuration file
-Focus on major issues impacting performance, readability, maintainability and security. Avoid nitpicks and avoid verbosity.
Files:
frontend/packages/integration-tests-cypress/views/alertmanager.ts
logonoff
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logonoff, yapei The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
|
@yapei: The following test failed, say
Full PR test history. Your PR dashboard. 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. I understand the commands that are listed here. |

Image pull secrets.Image pull secrets Creates, edits, and deletes an image registry credentials pull secretis failing frequently due to the fact that secret data was already hidden upon checking secret data