karma-browserstack-launcher icon indicating copy to clipboard operation
karma-browserstack-launcher copied to clipboard

As of v1.5.0 karma-browserstack-launcher often times out

Open brandonocasey opened this issue 6 years ago • 18 comments

Mostly on our end we run karma-browserstack-launcher via travis ci. When two builds, one for a pull request and one for a branch run at the same time, One of the builds will often timeout. I think the one that starts first times out as soon as the other build starts to run.

On previous versions of karma-browserstack-launcher this did not happen.

I haven't had time to look into this too much, but it is probably a result of the switch to browserstack-local

brandonocasey avatar Jun 26 '19 19:06 brandonocasey

We're noticing this too. Downgrading back to 1.4.0 seems to fix the issue. We're running on CircleCI.

steel avatar Jun 28 '19 21:06 steel

We are hitting this on Bootstrap too. I haven't been able to pinpoint the cause yet myself.

XhmikosR avatar Jul 22 '19 08:07 XhmikosR

1.4 does not help us. I reached out to browserstack help but they referred me to this plugin.

johnjbarton avatar Sep 09 '19 17:09 johnjbarton

The commit you referenced above does not restrain the package. It will still use 1.5.x.

In our case the issue still happens but it's less frequent with 1.4.0 compared to 1.5.x. It does still happen unfortunately.

On Mon, Sep 9, 2019, 20:05 johnjbarton [email protected] wrote:

1.4 does not help us. I reached out to browserstack help but they referred me to this plugin.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/karma-runner/karma-browserstack-launcher/issues/152?email_source=notifications&email_token=AACVLNJM77E7S5V2C4PSSY3QIZ65XA5CNFSM4H3VGJI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6IKYVQ#issuecomment-529574998, or mute the thread https://github.com/notifications/unsubscribe-auth/AACVLNO6C3AOSWTNGH7FPTTQIZ65XANCNFSM4H3VGJIQ .

XhmikosR avatar Sep 09 '19 17:09 XhmikosR

Also seeing this issue... only when on local not running in CI

1.5.1 does not work

1.4.0 works

andrewmclagan avatar Nov 19 '19 11:11 andrewmclagan

We are also having timeout issue, and we are using 1.4.0.

lina128 avatar Jan 24 '20 02:01 lina128

In our case, we have a very large test suite. This PR that prevent browser inactive looks promising: https://github.com/karma-runner/karma-browserstack-launcher/pull/168

When is it going to be released?

lina128 avatar Jan 24 '20 03:01 lina128

I never managed to get the unit test running stable via karma-browserstack. After being idle a while (not sure how long, maybe an hour) there is reasonable probability it works. It looks like after a few runs, it is more likely to fail.

Borewit avatar Jan 28 '20 20:01 Borewit

1.4 does not help us. I reached out to browserstack help but they referred me to this plugin.

This PR fixes the issue, are you or @dignifiedquire able to merge and release it? https://github.com/karma-runner/karma-browserstack-launcher/pull/158

JakeChampion avatar Jan 28 '20 23:01 JakeChampion

We also experienced the same recently. Upgraded to 1.5.1, and seeing a lot of timeout. Hope this PR can fix the problem.

lina128 avatar Apr 04 '20 22:04 lina128

@johnjbarton does https://github.com/karma-runner/karma/pull/3388 mean that this issue is fixed now with karma v5.0.0?

XhmikosR avatar Apr 09 '20 18:04 XhmikosR

no, I am not happy with the number of times that CI fails on browserstack. But the version of karma-browserstack-launcher did not seem to have a huge effect.

I have worked quite a bit on our CI now and hope to have a clearer picture.

johnjbarton avatar Apr 09 '20 18:04 johnjbarton

Ah, wait, actually https://github.com/karma-runner/karma/pull/3388 is about a CI fix in karma itself, not this issue here.

XhmikosR avatar Apr 09 '20 18:04 XhmikosR

@johnjbarton I finally managed to get to use the BrowserStack recommended karma settings and also updated to the latest karma-browserstak-launcher version on Bootstrap: https://github.com/twbs/bootstrap/pull/30720.

It does work well, but there are still some cases the build might timeout. Probably fewer, but still.

XhmikosR avatar May 05 '20 06:05 XhmikosR

Yes also my experience.

johnjbarton avatar May 05 '20 14:05 johnjbarton

I reverted the patch and I sent BrowserStack support an email. Something is still wrong somewhere when many CI runs fire up simultaneously or too fast.

XhmikosR avatar May 05 '20 14:05 XhmikosR

someone tried it with v1.6.0?

jeremad avatar Jun 26 '20 08:06 jeremad

someone tried it with v1.6.0?

Yes, and still often receive timeouts. I'm not sure if the issue is on the launcher side, or the Browserstack?

sculpt0r avatar Mar 03 '22 08:03 sculpt0r