-
Notifications
You must be signed in to change notification settings - Fork 145
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
(MODULES-7856) Allow optional repositories based on puppet version #258
Conversation
b055df9
to
29dda22
Compare
Looks like it's failing on puppet 3.0 because that version doesn't depend on or vendor semantic_puppet. I'll take a look in a bit. |
can we please finally drop puppet 3? it is EOL since almost 2 years. is it even on the test mattix on purpose? |
0e9828f
to
cc50f7b
Compare
I worked around the puppet 3 issue for now (so the |
Codecov Report
@@ Coverage Diff @@
## master #258 +/- ##
==========================================
+ Coverage 39.8% 40.46% +0.65%
==========================================
Files 10 10
Lines 726 734 +8
==========================================
+ Hits 289 297 +8
Misses 437 437
Continue to review full report at Codecov.
|
👍 to dropping puppet 3.x from the travis matrix. @DavidS does this need a PDK ticket? Should I target an earlier branch? |
CLA signed by all contributors. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy enough to keep the puppet3 guard in there for now. It should be noted in the README though.
a couple of tests in https://github.com/puppetlabs/puppetlabs_spec_helper/blob/master/spec/unit/puppetlabs_spec_helper/tasks/fixtures_spec.rb are also needed.
Hey @joshcooper, would you be able to get a look at this one today around David Schmitts review comments? This change is currently causing issues for Modules teams and Vox for Puppet 6 so would be cool if we can get unblocked asap |
eecfce5
to
27ef706
Compare
7179f29
to
86a231b
Compare
Some types/providers maybe missing when testing against puppet6 as a gem. Allow an optional repository to be specified which will only be installed if the current puppet version matches the semantic version constraint. For example, stdlib will always be installed, but selinux_core is only installed when testing on puppet6 or above: repositories: stdlib: https://github.com/puppetlabs/puppetlabs-stdlib.git selinux_core: repo: https://github.com/puppetlabs/puppetlabs-selinux_core.git puppet_version: ">= 6.0.0"
86a231b
to
aa74b9c
Compare
@DavidS this should be good now
|
[skip ci]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the tests and cleanup. Looks great!
Some types/providers maybe missing when testing against puppet6 as a
gem. Allow an optional repository to be specified which will only be
installed if the current puppet version matches the semantic version
constraint. For example, stdlib will always be installed, but
selinux_core is only installed when testing on puppet6 or above: