Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
104 stars 53 forks source link

Travis CI tests randomly fail loading statics assets #79

Closed ottok closed 4 years ago

ottok commented 6 years ago

In some Travis CI runs the log has lines like:

An error occurred in an `after(:context)` hook.
  Capybara::Poltergeist::StatusFailError: Request to 'http://localhost:12000/' failed to reach server, check DNS and/or server status - Timed out with the following resources still waiting http://localhost:12000/wp-content/themes/twentyseventeen/assets/js/jquery.scrollTo.js?ver=2.1.2
  occurred at /home/travis/.rvm/gems/ruby-2.2.5/gems/poltergeist-1.10.0/lib/capybara/poltergeist/browser.rb:365:in `command'
[Mon Feb  5 20:23:45 2018] 127.0.0.1:35192 Invalid request (Unexpected EOF)

This is related to bugs:

This is mostly a PHP bug, because the same PhantomJS version works reliably when running PHP 5.6 server but not when running PHP 7.0 or newer server. It might also be bug in our router.php that maybe isn't optimized for PHP 7?

l3ku commented 5 years ago

If this problem is still present, it will be eliminated when we deprecate router.php and use our CI Docker image for testing instead.

ottok commented 4 years ago

We are no longer using PhantomJS since 27fbef19af9ba8abb016bf68cb45fd46e8a55f03, so this issue can be closed now.