Uploaded image for project: 'OpenShift Service Mesh'
  1. OpenShift Service Mesh
  2. OSSM-9634

OSSMC test suite takes much more time to load pages on OCP 4.19

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • None
    • OSSM 3.0.0
    • Kiali, QE
    • None

      The OCP 4.19 has newer pattern fly version with different class names on login page.
      Due to that, the the login selector was updated here https://github.com/kiali/openshift-servicemesh-plugin/issues/435 .

      However, when the test suite is running, there are almost 120 failures (see screenshots/junit in ossmc2.4_default.zip), most of them are

      CypressError: Timed out retrying after 40000ms
      ...
      CypressError: Timed out retrying after 20000ms
      ...
      Error: [cypress-react-selector] root found as undefined. It is not valid root for your application.
      

      I tried to increase Cypress-related timeouts (in Jenkins jobs, there are defaults

      export CYPRESS_REQUEST_TIMEOUT=20000
      export CYPRESS_RESPONSE_TIMEOUT=20000
      

      )
      in local jenkins job to see whether the issue is not only with slow loading page in cypress, so I set

      export CYPRESS_REQUEST_TIMEOUT=90000
      export CYPRESS_RESPONSE_TIMEOUT=90000

      After that, the number of failure test decreased to 57, (see screenshots/junit in ossmc2.4_90sec_timeout.zip).

      So some tests failures are because of small timeout[1], but they need to be resolved the rest 57 failures (if there is another selector issue or different problem). However, cypress tests work correctly so selectors (in tests inherited from cypress) should be fine)

      [1]- Manually inspecting the cluster, I observed an approximately 13-second load time for the OSSMC overview page (Service Mesh->Overview) immediately after login. However after that, it was quite responsive so I suspect that Cypress is doing something suspicious.

      This doesn't happens on OCP 4.18 and lower.

       

              mkralik@redhat.com Matej Kralik
              mkralik@redhat.com Matej Kralik
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: