Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running karma on jenkins end up on DISCONNECTED state #94

Closed
IoanaIvanova opened this issue Jul 29, 2019 · 3 comments
Closed

Running karma on jenkins end up on DISCONNECTED state #94

IoanaIvanova opened this issue Jul 29, 2019 · 3 comments
Labels

Comments

@IoanaIvanova
Copy link

IoanaIvanova commented Jul 29, 2019

Hello,

I have a problem running karma inside a jenkins docker container with chrome headless configuration.
It just disconnect before the tests executed successfully. But this is not happening when I run the same karma command locally on my Mac.
This is the error that is printed:

15:42:19 29 07 2019 12:42:19.384:DEBUG [HeadlessChrome 75.0.3770 (Linux 0.0.0)]: Disconnected during run, waiting 2000ms for reconnecting.
15:42:19 29 07 2019 12:42:19.384:DEBUG [HeadlessChrome 75.0.3770 (Linux 0.0.0)]: EXECUTING -> EXECUTING_DISCONNECTED
15:42:21 29 07 2019 12:42:21.386:WARN [HeadlessChrome 75.0.3770 (Linux 0.0.0)]: Disconnected (1 times)reconnect failed before timeout of 2000ms (ping timeout)
15:42:21 29 07 2019 12:42:21.386:DEBUG [HeadlessChrome 75.0.3770 (Linux 0.0.0)]: EXECUTING_DISCONNECTED -> DISCONNECTED

Can you tell me is there a fix or workaround for this ?

Because I saw that many issues are created for this problem in different karma-runner projects for example this one

Best Regards,
Yoana

@IoanaIvanova IoanaIvanova changed the title Running karma on jenkins end up on DISCONNECTED Running karma on jenkins end up on DISCONNECTED state Jul 29, 2019
@matz3
Copy link
Member

matz3 commented Jul 29, 2019

As the mentioned issue is not using the karma-ui5 plugin but describing the same symptom, I don't think that the problem is related to this project and I don't see how it can be addressed in here, sorry.

@matz3 matz3 closed this as completed Jul 29, 2019
@matz3 matz3 added the invalid label Jul 29, 2019
@IoanaIvanova
Copy link
Author

But we actually use karma-ui5 plugin for executing the tests. But I'm not sure if this is an issue related to the karma itself or to the karma-ui5 plugin.

@matz3 do you think that it is related to the karma itself or to something else?

These are the version of karma, karma-ui5 and karma-chrome-launcher that we are using:

    "karma-ui5": "^1.0.1",
    "karma": "^4.1.0",
    "karma-chrome-launcher": "^2.2.0",

@matz3
Copy link
Member

matz3 commented Jul 30, 2019

Yes, I think it is not related to karma-ui5. I rather think this is related to the Docker environment and Chrome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants