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(ssh): Add explicit timeout on child process to avoid hanging. #5951

Merged
merged 4 commits into from
Nov 8, 2024

Conversation

Hweinstock
Copy link
Contributor

@Hweinstock Hweinstock commented Nov 7, 2024

Problem

Starting in #5936 some tests started expiring, since fixed in #5954. However, rather than expire, the SshKeyPair tests hang because they are stuck in a child process. This leads to these tests failing to timeout, even when exceeding the test timeout threshold.

Solution

Add explicit timeout on the child process we use to spawn ssh keys.


License: I confirm that my contribution is made under the terms of the Apache 2.0 license.

Copy link

github-actions bot commented Nov 7, 2024

  • This pull request modifies code in src/* but no tests were added/updated.
    • Confirm whether tests should be added or ensure the PR description explains why tests are not required.

@Hweinstock Hweinstock changed the title test(shell): Fix hanging test test(ssh): Add explicit timeout on child process to avoid hanging. Nov 7, 2024
@Hweinstock Hweinstock marked this pull request as ready for review November 7, 2024 21:50
@Hweinstock Hweinstock requested a review from a team as a code owner November 7, 2024 21:50
@Hweinstock
Copy link
Contributor Author

/runIntegrationTests

@justinmk3 justinmk3 merged commit 8113288 into aws:master Nov 8, 2024
34 of 41 checks passed
@Hweinstock Hweinstock deleted the fixHangingTest branch November 8, 2024 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants