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

Add page load timeouts to web tests #290

Merged
merged 2 commits into from
Jul 27, 2015
Merged

Conversation

pv
Copy link
Collaborator

@pv pv commented Jul 18, 2015

Some googling shows other people are having similar problems:
https://www.google.fi/search?q=selenium+hang+travis

This one contains a potential solution --- set up timeouts, and just retry on failure: https://stackoverflow.com/questions/29108260/geb-selenium-tests-hang-loading-new-page

Related to gh-287

EDIT: also avoid shutting down the preview web server in a way that can block. I managed to reproduce a hang at this point, so best to do this defensively. I'm not sure, but perhaps phantomjs kept connections alive sometimes and prevented the server from shutting down; at the same time, the main process cannot send new instructions to phantomjs because it's waiting for the http server to exit -> deadlock (until socket timeout)?

@pv
Copy link
Collaborator Author

pv commented Jul 27, 2015

Going to merge, this one should be OK.

mdboom added a commit that referenced this pull request Jul 27, 2015
Add page load timeouts to web tests
@mdboom mdboom merged commit 55f78f1 into airspeed-velocity:master Jul 27, 2015
nicolaslecrique added a commit to gator-life/gator.life that referenced this pull request Jun 29, 2016
We get random timeouts in Travis on actions on selenium/phantomJS
This seems to be a problem specific to Docker/phantomJS mix. More details in the issue below.

Retry is the approch of the Pull below. We apply it to get pages and click links (where I
spotted the issues)

I don't know why we did not get those issues before Flask migration...

problem timeout in tavis
travis-ci/travis-ci#3251
airspeed-velocity/asv#290
nicolaslecrique added a commit to gator-life/gator.life that referenced this pull request Jul 30, 2016
We get random timeouts in Travis on actions on selenium/phantomJS
This seems to be a problem specific to Docker/phantomJS mix. More details in the issue below.

Retry is the approch of the Pull below. We apply it to get pages and click links (where I
spotted the issues)

I don't know why we did not get those issues before Flask migration...

problem timeout in tavis
travis-ci/travis-ci#3251
airspeed-velocity/asv#290
nicolaslecrique added a commit to gator-life/gator.life that referenced this pull request Aug 3, 2016
We get random timeouts in Travis on actions on selenium/phantomJS
This seems to be a problem specific to Docker/phantomJS mix. More details in the issue below.

Retry is the approch of the Pull below. We apply it to get pages and click links (where I
spotted the issues)

I don't know why we did not get those issues before Flask migration...

problem timeout in tavis
travis-ci/travis-ci#3251
airspeed-velocity/asv#290
@pv pv deleted the web-timeouts branch August 19, 2018 20:07
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.

2 participants