Skip to content

PUP-8949 use install_options with 'latest' methods#7633

Merged
ciprianbadescu merged 3 commits intopuppetlabs:5.5.xfrom
tkishel:PUP-8949_use_install_options_with_latest
Oct 31, 2019
Merged

PUP-8949 use install_options with 'latest' methods#7633
ciprianbadescu merged 3 commits intopuppetlabs:5.5.xfrom
tkishel:PUP-8949_use_install_options_with_latest

Conversation

@tkishel
Copy link
Contributor

@tkishel tkishel commented Jul 24, 2019

Prior to this commit ...

The 'latest_with_new_pip' and 'latest_with_old_pip methods' (called by the
'latest' method) failed to execute pip install with the resource's
install_options attribute, potentially resulting in a lack of idempotency.

With this commit ...

Any 'install_options' are applied whenever 'install' is executed.

@tkishel tkishel requested a review from a team July 24, 2019 20:16
@puppetcla
Copy link

CLA signed by all contributors.

Prior to this commit ...

The 'latest_with_new_pip' and 'latest_with_old_pip methods' (called by the
'latest' method) failed to execute `pip install` with the resource's
`install_options` attribute, potentially resulting in a lack of idempotency.

With this commit ...

Any 'install_options' are applied whenever 'install' is executed.
@tkishel tkishel force-pushed the PUP-8949_use_install_options_with_latest branch from c4de29b to 78a68c6 Compare July 24, 2019 22:00
@mihaibuzgau
Copy link
Contributor

jenkins please test this on debian8-64a,debian8-32a,debian9-64a,debian9-32a,fedora28-64a,fedora29-64a,osx1012-64a,osx1013-64a,osx1014-64a,redhat5-64a,centos6-64a,centos6-32a,redhat7-64a,redhat8-64a,redhatfips7-64a,sles11-64a,sles11-32a,sles12-64a,sles12-POWERa,sles15-64a,solaris10-64a,solaris114-64a,ubuntu1404-64a,ubuntu1404-32a,ubuntu1604-64a,ubuntu1604-32a,ubuntu1804-64a,windows2016-64a,windows2019-64a

@ciprianbadescu
Copy link
Contributor

looks good, please add rspec/acceptance tests

add spec tests for latest with install_options
@tkishel tkishel requested a review from a team August 6, 2019 16:51
@tkishel
Copy link
Contributor Author

tkishel commented Aug 6, 2019

I've added unit tests, but would need help with acceptance tests as none exist now.

@ciprianbadescu
Copy link
Contributor

We are generally missing acceptance tests for package managers ...
I had similar issue for yum/rpm and I created some basic tests: https://github.com/puppetlabs/puppet/blob/90fa5152fa5c92e7d499fe0d38c10636c7d7e737/acceptance/tests/provider/package/rpm_ensure_install_multiversion_package.rb
Pls check and let me know if more help is needed.

@tkishel
Copy link
Contributor Author

tkishel commented Aug 12, 2019

I added a commit with potential acceptance tests.
I did not run them yet, I need to learn/setup them locally.

@tkishel tkishel force-pushed the PUP-8949_use_install_options_with_latest branch 5 times, most recently from e3d13d5 to 5dec16c Compare August 14, 2019 03:02
@tkishel
Copy link
Contributor Author

tkishel commented Aug 14, 2019 via email

@tkishel tkishel force-pushed the PUP-8949_use_install_options_with_latest branch 12 times, most recently from 9838b7f to b84af98 Compare August 14, 2019 16:09
@tkishel
Copy link
Contributor Author

tkishel commented Aug 14, 2019

There is a potential issue or two with PATH in our acceptance test environment ... documented in comments in acceptance/tests/provider/package/gem.rb

@tkishel tkishel force-pushed the PUP-8949_use_install_options_with_latest branch 4 times, most recently from e41a3ee to 3ddbc72 Compare August 15, 2019 14:16
@tkishel tkishel force-pushed the PUP-8949_use_install_options_with_latest branch from 3ddbc72 to 5079efd Compare August 15, 2019 14:20
@tkishel
Copy link
Contributor Author

tkishel commented Aug 15, 2019

I think this is done. I’ll submit a separate PR for gem acceptance tests, and post my findings regarding path issues in beaker.

@ciprianbadescu
Copy link
Contributor

jenkins please test this on debian8-64a,debian8-32a,debian9-64a,debian9-32a,fedora28-64a,fedora29-64a,osx1012-64a,osx1013-64a,osx1014-64a,redhat5-64a,centos6-64a,centos6-32a,redhat7-64a,redhat8-64a,redhatfips7-64a,sles11-64a,sles11-32a,sles12-64a,sles12-POWERa,sles15-64a,solaris10-64a,solaris114-64a,ubuntu1404-64a,ubuntu1404-32a,ubuntu1604-64a,ubuntu1604-32a,ubuntu1804-64a,windows2016-64a,windows2019-64a

@ciprianbadescu ciprianbadescu requested a review from a team August 21, 2019 07:28
@ciprianbadescu ciprianbadescu merged commit 6aed502 into puppetlabs:5.5.x Oct 31, 2019
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