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

Add timeout support to Mixlib::ShellOut based local runners #671

Merged
merged 2 commits into from
Mar 24, 2021

Conversation

clintoncwolfe
Copy link
Contributor

@clintoncwolfe clintoncwolfe commented Mar 17, 2021

Description

Adds support for Mixlib::ShellOut's timeout feature to two of the local command runners, GenericRunner and WindowsShellRunner. This will allow InSpec to use command timeouts in local connections on more platforms.

Unfortunately I did not see any clear way of adding timeouts to WindowsPipeRunner, which might involve wrapping the script in a watchdog script. I've left that as a TODO for now.

Related Issue

https://github.com/inspec/inspec/3772

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New content (non-breaking change)
  • Breaking change (a content change which would break existing functionality or processes)

Checklist:

  • I have read the CONTRIBUTING document.

Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
@clintoncwolfe clintoncwolfe requested a review from a team as a code owner March 17, 2021 19:00
@clintoncwolfe clintoncwolfe requested review from alexpop and Nik08 March 17, 2021 19:00
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
@clintoncwolfe clintoncwolfe merged commit badc6bd into master Mar 24, 2021
@clintoncwolfe clintoncwolfe deleted the cw/add-timeout-to-mixlib-based-local-runners branch March 24, 2021 13:19
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.

1 participant