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: Keep trying exec if killed #22570

Merged
merged 1 commit into from
Dec 7, 2022
Merged

Conversation

jrajahalme
Copy link
Member

Keep trying if a kubectl exec on cilium pod is killed rather than fail the test.

Fixes: #22476
Signed-off-by: Jarno Rajahalme jarno@isovalent.com

Keep trying if a kubectl exec on cilium pod is killed rather than fail the test.

Fixes: cilium#22476
Signed-off-by: Jarno Rajahalme <jarno@isovalent.com>
@jrajahalme jrajahalme added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Dec 6, 2022
@jrajahalme jrajahalme requested a review from a team as a code owner December 6, 2022 12:03
@jrajahalme jrajahalme added release-note/misc This PR makes changes that have no direct user impact. and removed release-note/ci This PR makes changes to the CI. labels Dec 6, 2022
@jrajahalme
Copy link
Member Author

Note that the test for the exit code 137 is assumed to match "signal: killed" (128 + 9). Added logging to show the exit code in case this is not correct.

@github-actions github-actions bot added the kind/community-contribution This was a contribution made by a community member. label Dec 6, 2022
@jrajahalme jrajahalme removed the kind/community-contribution This was a contribution made by a community member. label Dec 6, 2022
@jrajahalme
Copy link
Member Author

/test

@jrajahalme
Copy link
Member Author

Travis CI flaked: #22470

@jrajahalme
Copy link
Member Author

jrajahalme commented Dec 6, 2022

ci-awscni and ci-eks can't create EKS cluster

@jrajahalme
Copy link
Member Author

/ci-eks

@jrajahalme
Copy link
Member Author

/ci-awscni

@jrajahalme jrajahalme added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Dec 7, 2022
@gandro gandro merged commit 11cb4d0 into cilium:master Dec 7, 2022
christarazi added a commit to christarazi/cilium that referenced this pull request Dec 13, 2022
Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: cilium#22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
pchaigno pushed a commit that referenced this pull request Dec 14, 2022
Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
joestringer pushed a commit to joestringer/cilium that referenced this pull request Dec 21, 2022
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: cilium#22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Joe Stringer <joe@cilium.io>
joestringer pushed a commit that referenced this pull request Dec 22, 2022
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Joe Stringer <joe@cilium.io>
@joestringer joestringer added release-note/ci This PR makes changes to the CI. and removed release-note/misc This PR makes changes that have no direct user impact. labels Dec 22, 2022
@joestringer joestringer added the backport/author The backport will be carried out by the author of the PR. label Dec 22, 2022
aditighag pushed a commit that referenced this pull request Jan 10, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Aditi Ghag <aditi@cilium.io>
aditighag pushed a commit that referenced this pull request Jan 10, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Aditi Ghag <aditi@cilium.io>
ldelossa pushed a commit to ldelossa/cilium that referenced this pull request Jan 24, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: cilium#22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
aanm pushed a commit that referenced this pull request Jan 25, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
aanm pushed a commit that referenced this pull request Jan 25, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Louis DeLosSantos <louis.delos@isovalent.com>
qmonnet pushed a commit that referenced this pull request Jan 27, 2023
[ upstream commit dab8723 ]

Previously, 11cb4d0 assumed that 137 was the exit code for when a
process exists due to a SIGKILL. However, upon reading the Go source
code as of 1.20 rc1, this is not the case, and that -1 is set for all
exit codes due to signals [1].

[ Backport note:
    Fixed minor conflict: We wouldn't previously attempt retries on exit
    code 137 on v1.10. This commit adds retries on -1 anyway. ]

Fixes: 11cb4d0 ("test: Keep trying exec if killed")
Fixes: #22570

[1]:
https://github.com/golang/go/blob/go1.20rc1/src/os/exec_posix.go#L128-L130

Signed-off-by: Chris Tarazi <chris@isovalent.com>
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
@julianwiedmann julianwiedmann added backport-done/1.13 The backport for Cilium 1.13.x for this PR is done. and removed needs-backport/1.13 labels Apr 10, 2023
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/author The backport will be carried out by the author of the PR. backport-done/1.13 The backport for Cilium 1.13.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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI: K8sAgentFQDNTest Validate that multiple specs are working correctly
4 participants