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: ensure that simulator processes are terminated/killed #386

Merged
merged 1 commit into from
Oct 31, 2022

Conversation

whooo
Copy link
Contributor

@whooo whooo commented Oct 31, 2022

Seems that we leak simulator processes if the simulator is not ready within about one second, so kill the subprocess if it's not ready.

Also ensure the simulator is killed in test teardown to avoid building up a set of processes which might slow down the build.

This should solve the issue where the parts of the CI flow which run after the tests runs very slow which is due to swtpm processes running in the background using the CPU and only leaving ~10% of the CPU to the CI processes.

Related to #381

Seems that we leak simulator processes if the simulator is not ready
within about one second, so kill the subprocess if it's not ready.

Also ensure the simulator is killed in test teardown to avoid building
up a set of processes which might slow down the build.

This should solve the issue where the parts of the CI flow which run
after the tests runs very slow which is due to swtpm processes running
in the background using the CPU and only leaving ~10% of the CPU to the
CI processes.

Signed-off-by: Erik Larsson <[email protected]>
@williamcroberts williamcroberts merged commit cd50a92 into tpm2-software:master Oct 31, 2022
@whooo whooo mentioned this pull request Oct 31, 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.

2 participants