-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improve docker container reliability #87
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
Conversation
- by calling testMock inside setTimeout
- rm polar_scatter.json for now (it is showing some run-to-run randomness)
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:latest; sleep 20 | ||
|
||
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:candidate | ||
- wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wait until image server returns a pong
before starting the tests.
💃 for docker related part ;D |
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:latest; sleep 20 | ||
|
||
- docker run -d --name myimageserver -v $PWD:/var/www/streambed/image_server/plotly.js -p 9010:9010 plotly/imageserver:latest | ||
- wget --server-response --spider --tries=8 --retry-connrefused http://localhost:9010/ping |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
An even better script would restart nw1
if the image server doesn't return a pong
after 8 tries.
Looks like the latest container is reliable enough that we don't need this now. But, maybe later.
Let's issue up those missed mocks and link to them in the script. Once that is in place it looks 💃 to me! |
Blind as a bat! Great 💃 |
Improve docker container reliability
@perigee @mdtusz @alexcjohnson @bpostlethwaite @cldougl
This PR does not fix #62 and some local issues (ask @mdtusz 😺 ), but removes a significant amount of test-to-test randomness in the image test suite --- especially on CircleCI.