From 73dec0a973212f950a6e8c6b275ea510f440fe0e Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Thu, 31 Oct 2024 00:57:02 -0500 Subject: [PATCH 1/2] Increasing timeout for pam tests --- build.assets/charts/smoke_tests/01_pam/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.assets/charts/smoke_tests/01_pam/test.sh b/build.assets/charts/smoke_tests/01_pam/test.sh index 442f2cea38d8f..0ffe74f058450 100755 --- a/build.assets/charts/smoke_tests/01_pam/test.sh +++ b/build.assets/charts/smoke_tests/01_pam/test.sh @@ -6,4 +6,4 @@ # # If teleport is still up when the timeout expires, then we're # probably OK -timeout --preserve-status 10s docker run --platform $1 --rm --entrypoint /usr/local/bin/teleport -v "$(pwd):/etc/teleport" $2 start -c /etc/teleport/config.yaml \ No newline at end of file +timeout --preserve-status 20s docker run --platform $1 --rm --entrypoint /usr/local/bin/teleport -v "$(pwd):/etc/teleport" $2 start -c /etc/teleport/config.yaml From 2efa7e03a4906d18ee44d668fb52b7f01a11e744 Mon Sep 17 00:00:00 2001 From: Gus Rivera Date: Thu, 31 Oct 2024 10:20:03 -0500 Subject: [PATCH 2/2] Adding commentary --- build.assets/charts/smoke_tests/01_pam/test.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.assets/charts/smoke_tests/01_pam/test.sh b/build.assets/charts/smoke_tests/01_pam/test.sh index 0ffe74f058450..8ae6c34f8f529 100755 --- a/build.assets/charts/smoke_tests/01_pam/test.sh +++ b/build.assets/charts/smoke_tests/01_pam/test.sh @@ -6,4 +6,8 @@ # # If teleport is still up when the timeout expires, then we're # probably OK +# +# A timeout of 20s is set to account for potentially slow startup times. +# QEMU eumlation may slow startup time for some platforms and during that +# time the process won't shutdown gracefully resulting in a nonzero code. timeout --preserve-status 20s docker run --platform $1 --rm --entrypoint /usr/local/bin/teleport -v "$(pwd):/etc/teleport" $2 start -c /etc/teleport/config.yaml