-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Karma becomes unresponsive instead of failing #3290
Karma becomes unresponsive instead of failing #3290
Comments
The launcher is supposed to see Line 111 in c311ac0
For some reason this does not happen in your case. To solve this we need to add encapsulated management of the |
I'm not entirely sure what you're saying here. Anyway, do you need anything from me for this? |
If you want to try to debug your issue you can add logging to the copy of karma-runner |
I spent some time debugging this issue. You can easily reproduce it by setting an extremely low Upon further investigation, I noticed that the Line 77 in 13ed695
The event is emitted in Line 121 in 13ed695
this (similar to the done event a few lines above it), fixes the issue:
if (this.error && this.state !== BEING_FORCE_KILLED && this.state !== RESTARTING) {
emitter.emit('browser_process_failure', this) // trigger the server's event listener
this.emit('browser_process_failure') // trigger the launcher's event listener
} Not sure if this is the proper way to fix this, but at least now we know why it is hanging. |
I'm starting my Karma like this (in Java) :
This starts the following script :
Due to some issue with Firefox on one of our Jenkins slaves, Karma behaves like this :
This causes Karma to become unresponsive and will result in the process reaching a timeout after 20 minutes.
Is there any was I can get this process to end immediately, so I don't block my Jenkins slave for nothing?
The text was updated successfully, but these errors were encountered: