Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • B bootstrap
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 114
    • Merge requests 114
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Bootstrap
  • bootstrap
  • Merge requests
  • !37148

BrowserStack: fine tune Karma configuration

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Julien Déramond requested to merge main-jd-browserstack-fine-tune into main Sep 14, 2022
  • Overview 0
  • Commits 2
  • Pipelines 0
  • Changes 1

Warning Work In Progress

Response from BrowserStack support.


Please find the findings of our engineering team below: ​ Error_1: Disconnected reconnect failed before timeout of 2000ms : ​ sample GitHub build shared by you where this error can be seen https://github.com/twbs/bootstrap/runs/7120175035?check_suite_focus=true ​ We were able to reproduce this error and able to fix it as well. By increasing the timeout value from 2000 to something higher like 60000 for the karma config variable browserDisconnectTimeout . This variable can be seen in node_modules/karma/lib/config.js file.

Would also recommend to modify the following fields to improve the robustness of tests, these numbers can be experimented with by you, eg:

browserDisconnectTimeout: 60000
pingTimeout: 10000, // default is 5 secs, can change this to 10 secs
browserDisconnectTolerance : 3, // default is 0 attempts, can change this to 3 attempts
browserNoActivityTimeout : 210000
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: main-jd-browserstack-fine-tune