Skip to content

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

Merged
merged 10 commits into from
Dec 8, 2015
Merged

Improve docker container reliability #87

merged 10 commits into from
Dec 8, 2015

Conversation

etpinard
Copy link
Contributor

@etpinard etpinard commented Dec 8, 2015

@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.

- 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
Copy link
Contributor Author

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.

@etpinard
Copy link
Contributor Author

etpinard commented Dec 8, 2015

Robust CircleCI testing:

image

@perigee
Copy link
Contributor

perigee commented Dec 8, 2015

💃 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
Copy link
Contributor Author

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.

@bpostlethwaite
Copy link
Member

Let's issue up those missed mocks and link to them in the script. Once that is in place it looks 💃 to me!

@bpostlethwaite
Copy link
Member

Blind as a bat! Great 💃

etpinard added a commit that referenced this pull request Dec 8, 2015
Improve docker container reliability
@etpinard etpinard merged commit 4f0f1f7 into master Dec 8, 2015
@etpinard etpinard deleted the jun_supervisor branch December 8, 2015 19:42
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.

Randomness in image test outputs
4 participants