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
Bug 1822744: Add Internal Mode Installation Test to Cypress #7265
Bug 1822744: Add Internal Mode Installation Test to Cypress #7265
Conversation
030e58a
to
6ac80b3
Compare
af94306
to
8d6c7a9
Compare
8d6c7a9
to
e3b12b4
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.
Looks good. There is some duplicate code which could use helper methods or perhaps new catalog/operator view.
There is also a lot of waiting which goes against Cypress best practices and can lead to many test flakes:
https://docs.cypress.io/guides/references/best-practices.html#Unnecessary-Waiting
https://medium.com/better-programming/dont-use-wait-in-your-cypress-tests-cbe14746da71
frontend/packages/ceph-storage-plugin/integration-tests-cypress/helpers/installation.ts
Outdated
Show resolved
Hide resolved
cy.byTestID('Operator recommended namespace:-radio-input').should('be.checked'); | ||
cy.byTestID('enable-monitoring').click(); | ||
cy.byTestID('install-operator').click(); | ||
cy.byTestID('success-icon', { timeout: 180000 }).should('be.visible'); |
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.
Are we really expecting to wait 3 minutes for this to succeed? Is there a cy.exec('oc ...')
cmd we can call to check status -it's sometimes faster than the UI.
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.
cy.exec
unlike other commands would not get retried in case of failure. We would have to come up with a method that polls the CLI. Even if we go that route we are shaving 15 to 30 seconds max.
frontend/packages/ceph-storage-plugin/integration-tests-cypress/support/index.ts
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/integration-tests-cypress/support/index.ts
Outdated
Show resolved
Hide resolved
// eslint-disable-next-line cypress/no-unnecessary-waiting | ||
cy.wait(10000); | ||
|
||
return cy.byTestID('resource-status').contains('Ready', { timeout: 900000 }); |
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.
We're expecting to wait 15 minutes for a Ready status? Is there a cy.exec('oc ...') cmd we can call to check status? Something like this?
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.
Again similar to checking if the Operator is installed, I think this would be better than to poll the CLI.
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.
Ok, I think we might have to come up with a better solution, we'll see how often this test 'flakes'.
frontend/packages/ceph-storage-plugin/integration-tests-cypress/tests/add-capacity.spec.ts
Outdated
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/integration-tests-cypress/tests/add-capacity.spec.ts
Show resolved
Hide resolved
frontend/packages/ceph-storage-plugin/integration-tests-cypress/tests/ocp-dashboards.spec.ts
Outdated
Show resolved
Hide resolved
9c52252
to
0a759d6
Compare
Adds Storage cluster expansion Test to Cypress Add tests for PVC Expansion Add tests for OCS Persistent Storage Dashboard
0a759d6
to
c6bd8b6
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.
/lgtm Thanks!
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: bipuladh, dtaylor113, rawagner 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 |
@bipuladh: This pull request references Bugzilla bug 1822744, which is valid. The bug has been moved to the POST state. The bug has been updated to refer to the pull request using the external bug tracker. 3 validation(s) were run on this bug
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 kubernetes/test-infra repository. |
/retest |
/retest Please review the full test history for this PR and help us cut down flakes. |
2 similar comments
/retest Please review the full test history for this PR and help us cut down flakes. |
/retest Please review the full test history for this PR and help us cut down flakes. |
@bipuladh: All pull requests linked via external trackers have merged: Bugzilla bug 1822744 has been moved to the MODIFIED state. 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 kubernetes/test-infra repository. |
No description provided.