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

Ensure that nginx test waits properly to reduce flakiness #818

Merged
merged 1 commit into from
Aug 13, 2018

Conversation

rnorth
Copy link
Member

@rnorth rnorth commented Aug 5, 2018

Nginx container tests have been surprisingly flaky for a while, so I had a look into it.

It turns out that the WaitStrategy in the test has actually been skipping for some time with the warning No exposed ports or mapped ports - cannot wait for status.

I found that the getLivenessCheckPorts method in NginxContainer is implemented incorrectly - rather than producing a HashSet with the liveness check port number as a single member, it produces a HashSet of capacity equal to the port number. This is obviously silly 😂

This change fixes that behaviour, and also switches SimpleNginxTest to use the non-deprecated HttpWaitStrategy class.

@rnorth rnorth force-pushed the reduce-nginx-test-flakiness branch from 78cf9de to 8541d62 Compare August 5, 2018 20:19
@bsideup bsideup added this to the next milestone Aug 6, 2018
@bsideup bsideup merged commit 609a973 into master Aug 13, 2018
@bsideup bsideup deleted the reduce-nginx-test-flakiness branch August 13, 2018 11:42
@rnorth
Copy link
Member Author

rnorth commented Sep 10, 2018

We have this out in a Release Candidate build (1.9.0-rc1) for anyone who is keen to try it!

Release notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants