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/runtime: fix flake on non-ready endpoints #18627

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

tklauser
Copy link
Member

See commit messages for details.

Fixes #18625

The init container name doesn't change during tests, so define it const.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
Ensure that all endpoints exist and are ready before attempting to
extract a specific endpoint from GetAllEndpointsIds results.

Follows commit 3738680 ("test/runtime: Fix flake on reserved:init
endpoints") which introduced a similar check before calls to
GetEndpointIds.

Signed-off-by: Tobias Klauser <tobias@cilium.io>
@tklauser tklauser added area/CI Continuous Integration testing issue or flake sig/policy Impacts whether traffic is allowed or denied based on user-defined policies. release-note/ci This PR makes changes to the CI. needs-backport/1.10 labels Jan 26, 2022
@tklauser tklauser requested a review from a team as a code owner January 26, 2022 10:05
@tklauser tklauser requested review from a team and christarazi January 26, 2022 10:05
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.11.2 Jan 26, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot added this to Needs backport from master in 1.10.8 Jan 26, 2022
@tklauser
Copy link
Member Author

/test-runtime

@tklauser
Copy link
Member Author

The PR is only affecting runtime tests and these passed. Review is in, so marking as ready to merge.

@tklauser tklauser added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jan 27, 2022
@glibsm glibsm merged commit f49dda7 into cilium:master Jan 27, 2022
@tklauser tklauser deleted the pr/test-runtime-wait-endpoints-ready branch January 27, 2022 16:40
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.10.8 Jan 31, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.11.2 Jan 31, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Needs backport from master to Backport pending to v1.10 in 1.11.2 Jan 31, 2022
@joamaki joamaki added backport-done/1.10 backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. and removed backport-pending/1.11 labels Feb 8, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.11 in 1.11.2 Feb 8, 2022
@maintainer-s-little-helper maintainer-s-little-helper bot moved this from Backport pending to v1.10 to Backport done to v1.10 in 1.10.8 Feb 8, 2022
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 backport-done/1.11 The backport for Cilium 1.11.x for this PR is done. 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. sig/policy Impacts whether traffic is allowed or denied based on user-defined policies.
Projects
No open projects
1.10.8
Backport done to v1.10
1.11.2
Backport done to v1.11
Development

Successfully merging this pull request may close these issues.

CI: RuntimePolicies Init Policy Default Drop Test tests egress
4 participants