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

fix: exit with error on retry give up #1151

Closed
wants to merge 1 commit into from
Closed

fix: exit with error on retry give up #1151

wants to merge 1 commit into from

Conversation

j0tunn
Copy link
Contributor

@j0tunn j0tunn commented Aug 5, 2014

When browser not responding karma just logs ERROR [launcher]: <browser> failed 2 times (timeout). Giving up. and hangs.

We should exit with error in such case.

@j0tunn
Copy link
Contributor Author

j0tunn commented Aug 5, 2014

/cc @arikon @SevInf @scf2k @unlok

@j0tunn
Copy link
Contributor Author

j0tunn commented Aug 6, 2014

@vojtajina take a look at this PR please

@arikon
Copy link

arikon commented Aug 6, 2014

@j0tunn 🆗 👍

@j0tunn j0tunn changed the title Exit with error if browser hang fix: exit with error on retry give up Aug 7, 2014
When browser not responding karma just logs "ERROR [launcher]: <browser> failed 2 times (timeout). Giving up." and hangs.
We should exit with error in such case.
@arikon
Copy link

arikon commented Aug 12, 2014

@vojtajina Could you please review and merge this pr?

@@ -106,7 +110,7 @@ var BaseLauncher = function(id, emitter) {
this.emit('done');

if (this.error && this.state !== BEING_FORCE_KILLED && this.state !== RESTARTING) {
emitter.emit('browser_process_failure', this);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why don't we get into this place when self.retryLimit equal 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good question... Seems like because nobody calls self._done. In our case karma-webdriver-launcher just calls self.emit('done') and skips this code. Looks like we need to fix karma-webdriver-launcher.

@j0tunn
Copy link
Contributor Author

j0tunn commented Aug 12, 2014

Yep, not a karma issue but karma-webdriver-launcher, so I'm closing PR.
@maksimr thanks for your comment

@j0tunn j0tunn closed this Aug 12, 2014
@maksimr
Copy link
Contributor

maksimr commented Aug 12, 2014

@j0tunn no problems!
If not difficult linking karma-webdriver-launcher issue with this.

Thanks!

@j0tunn
Copy link
Contributor Author

j0tunn commented Aug 12, 2014

karma-webdriver-launcher related PR: karma-runner/karma-webdriver-launcher#15

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

Successfully merging this pull request may close these issues.

3 participants