Figure out proper Karma and Mocha timeout settings for CI

CSP Request Details

None

CSP Rejection Details

None

CSP Approved

None

Description

There are random problems with the tests on CI.
This makes merging the PRs to take significant time and amount of attempts

Sometimes tests fail by Karma timeout, like in this pass

We can see the messages about it in the console

By the way, in this case the PR status in Jenkins shows tests as passed

Another times the fail cause is Mocha timeout like here

I somehow fixed the issue in this PR by arranging crazy big timeouts

module.exports = config => config.set({ client: { captureConsole: false, mocha: { timeout: 100000 }, }, browserDisconnectTimeout: 100000, browserDisconnectTolerance: 10, browserNoActivityTimeout: 100000, flags: [ '--disable-gpu', '--no-sandbox' ], });

This should be changed to some sane values.

Environment

None

Potential Workaround

None

Attachments

3
  • 26 Feb 2021, 02:10 PM
  • 26 Feb 2021, 02:05 PM
  • 26 Feb 2021, 01:59 PM

Checklist

hide

TestRail: Results

Activity

Show:

Mariia Aloshyna July 25, 2023 at 7:55 AM

Hi Have you got rid of Karma and Mocha in ui-inventory? Can it be closed?

Ann-Marie Breaux July 24, 2023 at 6:42 PM

  Do you think this is still relevant for Inventory UI, or can it perhaps be closed as "won't do"?

Won't Do

Details

Assignee

Reporter

Labels

Priority

Story Points

Development Team

Folijet

Release

Not Scheduled

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs
Created February 26, 2021 at 1:37 PM
Updated July 26, 2023 at 5:57 AM
Resolved July 25, 2023 at 11:44 AM
TestRail: Cases
TestRail: Runs

Flag notifications