Uploaded image for project: 'Nuxeo Elements'
  1. Nuxeo Elements
  2. ELEMENTS-1294

Fix saucelabs test run

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.2, 3.1.x
    • Component/s: CI/CD
    • Tags:
    • Team:
      UI
    • Sprint:
      YO LETS DO THIS MAYBE

      Description

      SauceLabs is constantly failing with the following error:

      10:30:25  > karma start --package ui --coverage
      10:30:25  
      10:30:26  
      10:30:26  START:
      10:30:26  [91m15 12 2020 10:30:26.411:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.414:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.415:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.415:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.416:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.416:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.416:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.416:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [launcher]: [39mchrome latest (Windows 10) on SauceLabs failed 2 times (failure). Giving up.
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [launcher]: [39mfirefox latest (Windows 10) on SauceLabs failed 2 times (failure). Giving up.
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.425:ERROR [launcher]: [39mmicrosoftedge latest (Windows 10) on SauceLabs failed 2 times (failure). Giving up.
      10:30:26  [91m15 12 2020 10:30:26.426:ERROR [SaucelabsLauncher]: [39mError: Could not start Sauce Connect. Exit code 1 signal: null
      10:30:26      at ChildProcess.<anonymous> (/home/jenkins/agent/workspace/nuxeo-elements_maintenance-3.0.x/node_modules/sauce-connect-launcher/lib/sauce-connect-launcher.js:566:12)
      10:30:26      at ChildProcess.emit (events.js:193:13)
      10:30:26      at Process.ChildProcess._handle.onexit (internal/child_process.js:255:12)
      10:30:26  [91m15 12 2020 10:30:26.426:ERROR [launcher]: [39msafari latest (macOS 10.13) on SauceLabs failed 2 times (failure). Giving up.
      

      Sometimes it happens with the ui package, other times with dataviz, but not with the core package. Running locally against SauceLabs, it succeeds from some machines and fails on others, with different errors.

      The following help solve the issue:

      • Bumping the karma-sauce-launcher version
      • Increate the capture timeout
      • Waiting some time between test suites, to allow more time for the tunnel to the remote saucelabs server to be closed

        Attachments

          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 - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 30 minutes
                  1d 30m