karma-runner / karma-sauce-launcher

A Karma plugin. Launch any browser on SauceLabs!
MIT License
199 stars 103 forks source link

Internet Explorer times out with Karma 6.x #238

Closed Trott closed 3 years ago

Trott commented 3 years ago

Sauce Labs Internet Explorer times out with Karma 6.x and this plugin, but works fine in Karma 5.x.

Pull request updating my project from Karma 5.x to Karma 6.x: https://github.com/Trott/slug/pull/166

Relevant Karma config file: https://github.com/Trott/slug/blob/3c12c19b981e4320513e7a3c64367401b57a862b/.karma.config-ci.js

module.exports = function (config) {
  if (!process.env.SAUCE_USERNAME || !process.env.SAUCE_ACCESS_KEY) {
    console.log('Make sure the SAUCE_USERNAME and SAUCE_ACCESS_KEY environment variables are set.')
    process.exit(1)
  }

  const customLaunchers = {
    sl_chrome: {
      base: 'SauceLabs',
      browserName: 'chrome',
      browserVersion: 'latest'
    },
    sl_firefox: {
      base: 'SauceLabs',
      browserName: 'firefox',
      browserVersion: 'latest'
    },
    sl_ie_11: {
      base: 'SauceLabs',
      browserName: 'internet explorer',
      browserVersion: 'latest'
    }
  }

  config.set({
    frameworks: ['mocha', 'chai'],
    files: [
      'slug.js',
      'node_modules/requirejs/require.js', // Used to test loading via AMD.
      'test/**/*.js'
    ],
    reporters: ['dots', 'saucelabs'],
    port: 9876,
    colors: true,
    sauceLabs: {
      testName: 'slug',
      recordScreenshots: false,
      public: 'public',
    },
    autoWatch: false,
    concurrency: Infinity,
    customLaunchers: customLaunchers,
    browsers: Object.keys(customLaunchers),
    singleRun: true
  })
}

CI failture: https://github.com/Trott/slug/runs/1745550920?check_suite_focus=true

Relevant output:

21 01 2021 23:42:33.861:WARN [launcher]: internet explorer latest  on SauceLabs have not captured in 60000 ms, killing.
21 01 2021 23:42:34.128:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:42:34.718:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:42:35.309:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:42:35.895:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:42:36.734:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'internet explorer latest ' and temporary assets are deleted.
21 01 2021 23:42:36.734:INFO [launcher]: Trying to start internet explorer latest  on SauceLabs again (1/2).
21 01 2021 23:42:50.456:INFO [SaucelabsLauncher]: internet explorer latest  session at https://saucelabs.com/tests/661f875cbeb641f2985c9e33d0608726
21 01 2021 23:43:36.748:WARN [launcher]: internet explorer latest  on SauceLabs have not captured in 60000 ms, killing.
21 01 2021 23:43:37.052:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:43:37.767:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:43:38.430:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:43:39.050:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:43:39.941:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'internet explorer latest ' and temporary assets are deleted.
21 01 2021 23:43:39.942:INFO [launcher]: Trying to start internet explorer latest  on SauceLabs again (2/2).
21 01 2021 23:43:52.467:INFO [SaucelabsLauncher]: internet explorer latest  session at https://saucelabs.com/tests/afc5640c3aba4c548d3217c61b3474c0
21 01 2021 23:44:39.944:WARN [launcher]: internet explorer latest  on SauceLabs have not captured in 60000 ms, killing.
21 01 2021 23:44:40.200:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:40.831:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:41.510:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:42.107:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:42.696:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:43.286:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:43.877:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:44.472:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:45.064:INFO [SaucelabsLauncher]: Check if 'log.json' for browser 'internet explorer latest ' has already been stored.
21 01 2021 23:44:45.900:INFO [SaucelabsLauncher]: Assets successfully uploaded for browser 'internet explorer latest ' and temporary assets are deleted.
21 01 2021 23:44:45.901:ERROR [launcher]: internet explorer latest  on SauceLabs failed 2 times (timeout). Giving up.
longlho commented 3 years ago

might be bc of this https://github.com/karma-runner/karma/pull/3629

Trott commented 3 years ago

might be bc of this karma-runner/karma#3629

Yes, I applied that patch and it fixed this issue. 👍

wswebcreation commented 3 years ago

Cool, going to close this issue because it's not related to this module