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

Reduce the flakiness of a windows integration test TestExecCommandAgent #3355

Merged
merged 2 commits into from
Aug 25, 2022

Conversation

amogh09
Copy link
Contributor

@amogh09 amogh09 commented Aug 24, 2022

Summary

TestExecCommandAgent currently issues a kill command for a process running inside a container and sleeps for 4 seconds hoping for the process to be killed. This test has been failing lately because the process to be killed is still running for some time after 4 seconds.

This change replaces the 4 second sleep with a loop that checks every second if the process was killed. The loop timeouts after 15 seconds.

Testing

Tested by running the test on a Windows EC2 instance. Also the test is run as a part of PR checks.

New tests cover the changes: NA

Description for the changelog

Reduce the flakiness of TestExecCommandAgent.

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@amogh09 amogh09 changed the base branch from master to dev August 24, 2022 18:07
@amogh09 amogh09 changed the title WIP: Fix win integ test exec command Fix a flaky windows integration test Aug 25, 2022
@amogh09 amogh09 changed the title Fix a flaky windows integration test Fix a flaky windows integration test TestExecCommandAgent Aug 25, 2022
@amogh09 amogh09 changed the title Fix a flaky windows integration test TestExecCommandAgent Reduce the flakiness of a windows integration test TestExecCommandAgent Aug 25, 2022
@fierlion fierlion merged commit 619cd21 into aws:dev Aug 25, 2022
@chienhanlin chienhanlin mentioned this pull request Sep 6, 2022
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.

6 participants