Closed jgaskins closed 7 years ago
To test this, I ran neo4j stop
on my own machine, ran that while
loop (with open http://localhost:7474/
), and then ran neo4j start
. When the web page opened for the Neo4j browser, it was indeed accepting connections.
Ugh, except I forgot that stuff that works on zsh doesn't always work with bash. I'll try something else. :-)
It seems to have run fine (and faster!) on Travis (latest master for comparison). The jRuby builds aren't faster, but this should definitely help.
You said you were trying something else, but would you say that this is OK to go based on Travis?
Ah, yep, sorry, I forgot to update that I fixed it. It was just that while
one-liners are slightly different between bash
and zsh
. 👍
Oh, actually, it looks like most of the JRuby builds are indeed faster. One definitely wasn't, but the others did see a 60- to 90-second boost. Sweeet! :-D
Excellent, thanks so much for this!
This PR is intended to make CI builds faster without jumping the gun on the server by looping until the server responds. This will also guard against the possibility of the Neo4j server taking > 2 minutes to accept connections.
It is throttled to check only once per second so it doesn't waste CPU resources spinning up processes that it could be spending on spinning up the Neo4j server.
Pings: @cheerfulstoic @subvertallchris