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

test/K8sBookInfo: Readiness probes for test pods #16869

Merged
merged 1 commit into from
Jul 13, 2021

Conversation

pchaigno
Copy link
Member

The test pods used in the k8sBookInfo test did not have readiness probe. Therefore, from time to time, the pods would be marked as Ready before their application was listening on the server's port. The subsequent connectivity check would thus fail with a TCP RST.

This commit fixes that issue by defining a proper readiness probe for all pods used in K8sBookInfo, such that the test will only proceed once the application is ready to serve requests.

Fixes: #16632.

The test pods used in the k8sBookInfo test did not have readiness probe.
Therefore, from time to time, the pods would be marked as Ready before
their application was listening on the server's port. The subsequent
connectivity check would thus fail with a TCP RST.

This commit fixes that issue by defining a proper readiness probe for
all pods used in K8sBookInfo, such that the test will only proceed once
the application is ready to serve requests.

Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno added kind/bug/CI This is a bug in the testing code. area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Jul 13, 2021
@pchaigno pchaigno requested a review from a team as a code owner July 13, 2021 15:17
@pchaigno
Copy link
Member Author

test-me-please

Copy link
Member

@christarazi christarazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good find!

Copy link
Member

@tklauser tklauser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@pchaigno
Copy link
Member Author

k8s-1.19-kernel-5.4 failed with known flake #16852. Reviews are in. Given this is fixing another flake, we can merge despite the failure. Marking as ready to merge.

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jul 13, 2021
@aditighag aditighag merged commit 47b2471 into cilium:master Jul 13, 2021
@pchaigno pchaigno deleted the readinessprobe-test-pods branch July 13, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake kind/bug/CI This is a bug in the testing code. ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: K8sBookInfoDemoTest Bookinfo Demo Tests bookinfo demo: exit status 4
4 participants