-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Compare with major release version #2110
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
Conversation
apache::default_mods is a classthat may have no external impact to Forge modules. apache::mod::fastcgi is a classthat may have no external impact to Forge modules. apache::params is a classBreaking changes to this file WILL impact these 11 modules (exact match):Breaking changes to this file MAY impact these 16 modules (near match):This module is declared in 175 of 576 indexed public
|
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 tweak @ekohl - it appears as though we have test failures on Travis due to the versioncmp
being passed an undefined variable: https://travis-ci.com/github/puppetlabs/puppetlabs-apache/jobs/464049567
That's probably because the module doesn't use rspec-puppet-facts but rather specifies them manually. I had a look at the module, but its test infra is in serious need of an update. |
Agreed - it would make things a lot nicer to use I'm not saying that it isn't the right thing to do, but, it would be quite an undertaking and a bit more surgical than a bulk edit. I'll discuss with some of the team on how we want to proceed. If you have any suggestions, we'd be keen to hear, of course 👍 |
28a2a70
to
0fc5e38
Compare
I added another commit I wrote while looking into this. I think the main pain point comes from remaining compatible with Facter 1.6 for too long. puppetlabs/puppetlabs-stdlib#1154 is another thing that should have died long ago with Facter 1.6. About the conversion to rspec-puppet-facts. I think you're right that this won't be a trivial conversion. Another thing to note is that the test runtime will go up a lot since it'll test a lot more combinations. Perhaps a decent compromise is to define a default test OS in some shared file and use that instead of defining the same facts over and over again. |
In #2120 I took a stab at a the preparation. Not a full conversion to rspec-puppet-facts, but by using shared examples a big step forward is taken to make it easier. |
0fc5e38
to
49572f4
Compare
This now includes #2120 since hopefully that's sufficient to make the tests pass. Once that's merged, I'll rebase for easier review. |
Codecov Report
@@ Coverage Diff @@
## main #2110 +/- ##
=======================================
Coverage 56.36% 56.36%
=======================================
Files 12 12
Lines 220 220
=======================================
Hits 124 124
Misses 96 96 Continue to review full report at Codecov.
|
49572f4
to
d6f65bb
Compare
This fact was introduced in Facter 1.7 which by now can be assumed. By now it's already deprecated in favor of $facts['os']['release']['major'] but the rest of the module isn't converted so this keeps it consistent. CentOS 8 stream doesn't have a minor version and the previous comparison code failed. There are a lot more odd cases with facts, but I don't want to touch too much code.
d6f65bb
to
5b2a524
Compare
Rebased and squashed into a single commit. Also updated some fact sets to provide a major version. |
|
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.
LGTM
@ekohl Thanks for the excellent work as always |
CentOS 8 stream doesn't have a minor version so this check likely fails. However, it's irrelevant here and we can use the major release version fact instead.
There are a lot more odd cases with facts, but I don't want to touch too much code.