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

(CAT-1869) - Add dsc_timeout param to all dsc resources #290

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

jordanbreen28
Copy link

Summary

This PR adds the dsc_timeout param to all dsc resources generated by Puppet.Dsc. This allows the user to set a configurable amount of time, in seconds, in which puppet will wait for the dsc invocation to finish.

If the timeout passes, and DSC has not returned, the powershell process defined in puppetlabs-pwshlib's dsc_base_provider, will quit the operation and move on.

Additional Context

Related Issues (if any)

Mention any related issues or pull requests.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 19.70%. Comparing base (057dfee) to head (e37068d).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #290   +/-   ##
=======================================
  Coverage   19.70%   19.70%           
=======================================
  Files          47       47           
  Lines         868      868           
=======================================
  Hits          171      171           
  Misses        697      697           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

This commit adds the dsc_timeout param to all dsc resources generated by
Puppet.Dsc. This allows the user to set a configurable amount of time,
in seconds, in which puppet will wait for the dsc invocation to finish.

If the timeout passes, and DSC has not returned, the powershell process
defined in puppetlabs-pwshlib's dsc_base_provider, will quit the
operation and move on.
@jordanbreen28 jordanbreen28 force-pushed the cat-1869-add_dsc_timeout_param branch from 53bec23 to e37068d Compare June 12, 2024 10:33
@jordanbreen28 jordanbreen28 marked this pull request as ready for review June 26, 2024 08:19
@jordanbreen28 jordanbreen28 requested a review from a team as a code owner June 26, 2024 08:19
@david22swan david22swan merged commit 2700045 into main Jun 26, 2024
12 checks passed
@david22swan david22swan deleted the cat-1869-add_dsc_timeout_param branch June 26, 2024 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants