Skip to content

(MODULES-10963) remove win32-process on Puppet 7 #287

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

Merged
merged 1 commit into from
Mar 18, 2021

Conversation

gimmyxd
Copy link

@gimmyxd gimmyxd commented Mar 18, 2021

Puppet 7 dropped the dependency on win32-process gem
in favour of monkey patching the Process Module.

As a repercussion, require win32/process will no
longer work on Puppet >= 7.0.0.

This commit updates the reboot task to only require
that specific gem if Puppet < 7.0.0

Enabled and run the tests that were filtered out:

# without the fix:
Finished in 12 minutes 49 seconds (files took 2.06 seconds to load)
14 examples, 2 failures

Failed examples:

rspec ./spec/acceptance/tasks/init_spec.rb:17 # reboot task reboots a target
rspec ./spec/acceptance/tasks/init_spec.rb:24 # reboot task accepts a message


# with the fix
Finished in 11 minutes 33 seconds (files took 2.01 seconds to load)
14 examples, 0 failures

Tested manually on PE 2021.0.0 and the reboot task and plan can be run successfully

Puppet 7 dropped the dependecy on win32-process gem
in favour of monkey patching the Process Module.

As a reppercusion, require `win32/process` will no
longer work on Puppet >= 7.0.0.

This commit updates the reboot task to only require
that specific gem if Puppet < 7.0.0
@gimmyxd gimmyxd requested a review from a team as a code owner March 18, 2021 10:40
@daianamezdrea daianamezdrea merged commit 35b332c into puppetlabs:main Mar 18, 2021
@gimmyxd gimmyxd deleted the MODULES-10963 branch March 18, 2021 11:48
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