Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-28818

Fix latency in Jenkins X multi-environment unit tests

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: CI/CD
    • Upgrade notes:
      Hide
      import org.mockserver.client.server.MockServerClient;
      

      becomes:

      import org.mockserver.client.MockServerClient;
      

      Use try-with-resource on MockServerClient:

      try {
          MockServerClient client = new MockServerClient("localhost", PORT);
          …
      }
      

      becomes: 

      try (MockServerClient client = new MockServerClient("localhost", PORT)) {
         …
      }
      
      Show
      import org.mockserver.client.server.MockServerClient; becomes: import org.mockserver.client.MockServerClient; Use try-with-resource on MockServerClient : try {     MockServerClient client = new MockServerClient("localhost", PORT);     … } becomes:  try (MockServerClient client = new MockServerClient("localhost", PORT)) { … }
    • Team:
      PLATFORM
    • Sprint:
      nxplatform 11.1.32
    • Story Points:
      3

      Description

      We frequently observe a latency of several minutes such as:

      [2020-03-25T02:13:47.948Z] [INFO] Running org.nuxeo.ecm.automation.core.test.HTTPHelperTest
      [2020-03-25T02:27:25.007Z] RuntimeStreamFeature: Deploying Nuxeo Stream using Chronicle
      

      It happens most of the time in the nuxeo-automation-features module that can take for instance 54 minutes whereas it usually take 2 or 3...

      [INFO] Nuxeo Automation Features .......................... SUCCESS [53:59 min]
      

      See the complete test logs attached and a jstack when the test was hanging.

        Attachments

        1. HTTPHelperTest.jstack
          45 kB
          Antoine Taillefer
        2. nuxeo-automation-features.log
          173 kB
          Antoine Taillefer

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 days
                  2d