Skip to content
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

Figure out reasons and fix failing of the HappyPath tests for the CHE dashboard and DWO projects #20822

Closed
musienko-maxim opened this issue Nov 24, 2021 · 3 comments
Assignees
Labels
area/qe e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.

Comments

@musienko-maxim
Copy link
Contributor

Is your task related to a problem? Please describe

After resolving problems with cloud providers for PROW CI:
We get a strange error when we run HappyPath test. For instance: https://prow.ci.openshift.org/view/gs/origin-ci-test/pr-logs/pull/openshift_release/23945/rehearse-23945-pull-ci-eclipse-che-che-dashboard-main-v8-dashboard-happy-path/1463444053726072832.
We have 2 problems:

  • Sometimes the htpswd provider does not appear in the IDP table
  • When htpswd provider and test user create successfully and we login in as test user using oc client - we get strange error on the Login page like Error creation user

Describe the solution you'd like

I can try to reproduce this problem on a similar infra (cluster bot ) and figure out what it is more deeply.

Describe alternatives you've considered

No response

Additional context

No response

@musienko-maxim musienko-maxim added the kind/task Internal things, technical debt, and to-do tasks to be performed. label Nov 24, 2021
@che-bot che-bot added the status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. label Nov 24, 2021
@musienko-maxim musienko-maxim self-assigned this Nov 24, 2021
@tolusha tolusha added severity/P2 Has a minor but important impact to the usage or development of the system. area/qe and removed status/need-triage An issue that needs to be prioritized by the curator responsible for the triage. See https://github. labels Nov 24, 2021
@dmytro-ndp dmytro-ndp added e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. severity/P1 Has a major impact to usage or development of the system. and removed severity/P2 Has a minor but important impact to the usage or development of the system. labels Nov 30, 2021
@rhopp
Copy link
Contributor

rhopp commented Nov 30, 2021

@musienko-maxim Quickly looking at this I see the IDP on the cluster is "htpasswd-eclipse-che" (https://gcsweb-ci.apps.ci.l2s4.p1.openshiftapps.com/gcs/origin-ci-test/pr-logs/pull/openshift_release/23945/rehearse-23945-pull-ci-eclipse-che-che-dashboard-main-v8-dashboard-happy-path/1463444053726072832/artifacts/dashboard-happy-path/test/artifacts/e2e/Login_test_Login/screenshot-Login.png).
But the tests are expecting che-htpasswd

(from logs): ``` [INFO] Applying the following patched Che Happy Path Pod: apiVersion: v1 kind: Pod metadata: name: happy-path-che namespace: eclipse-che spec: volumes: - name: test-run-results - name: dshm emptyDir: medium: Memory containers: # container containing the tests - name: happy-path-test image: quay.io/eclipse/che-e2e:next imagePullPolicy: Always env: - name: TEST_SUITE value: test-devworkspace-happy-path - name: NODE_TLS_REJECT_UNAUTHORIZED value: '0' - name: TS_SELENIUM_BASE_URL value: http://che-eclipse-che.apps.ci-op-18gpb4bh-6aab1.origin-ci-int-aws.dev.rhcloud.com - name: TS_SELENIUM_DEVWORKSPACE_URL value: http://che-eclipse-che.apps.ci-op-18gpb4bh-6aab1.origin-ci-int-aws.dev.rhcloud.com/#https://github.com/che-samples/java-spring-petclinic/tree/devfilev2 - name: TS_SELENIUM_MULTIUSER value: 'true' - name: TS_SELENIUM_LOG_LEVEL value: TRACE - name: TS_SELENIUM_OCP_USERNAME value: 'che-user' - name: TS_SELENIUM_OCP_PASSWORD value: "user" - name: TS_SELENIUM_VALUE_OPENSHIFT_OAUTH value: 'true' - name: TS_SELENIUM_USERNAME value: "admin" - name: TS_SELENIUM_PASSWORD value: 'admin' - name: TS_OCP_LOGIN_PAGE_PROVIDER_TITLE value: "che-htpasswd" - name: DELETE_WORKSPACE_ON_FAILED_TEST value: "true" - name: TS_SELENIUM_START_WORKSPACE_TIMEOUT value: '540000' - name: TS_IDE_LOAD_TIMEOUT value: '40000' volumeMounts: - name: test-run-results mountPath: /tmp/e2e/report/ - mountPath: /dev/shm name: dshm resources: requests: memory: "3Gi" cpu: "2" limits: memory: "4Gi" cpu: "2" # Download results - name: download-reports image: quay.io/eclipse/che-e2e:next imagePullPolicy: IfNotPresent volumeMounts: - name: test-run-results mountPath: /tmp/e2e/report/ command: ["sh"] args: [ "-c", "while true; if [[ -f /tmp/done ]]; then exit 0; fi; do sleep 1; done", ] restartPolicy: Never ```

@musienko-maxim
Copy link
Contributor Author

musienko-maxim commented Nov 30, 2021

Thx, Radim for your comment. I see, so looks like IDP item can appear with some delays. For accelerating this for the test I am going to try rollout oauth-openshift deployment. I hope it should help. I tried it several times it worked. So I've just added this to the script. Just make sure that it does not break the main test flow. After this I'll create PR

@musienko-maxim
Copy link
Contributor Author

Fixe in the PR: #20903

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/qe e2e-test/failure Issues that is related to a test failures reported by our CI platform and our QE. kind/task Internal things, technical debt, and to-do tasks to be performed. severity/P1 Has a major impact to usage or development of the system.
Projects
None yet
Development

No branches or pull requests

5 participants