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

Fix acceptance tests on Arch and Ubuntu w/ Puppet 6 #1501

Merged
merged 2 commits into from
Mar 15, 2022

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Mar 14, 2022

This doesn't take care of EL7, which I haven't looked into yet. But it's progress.

@puppet-community-rangefinder
Copy link

nginx::params is a class

Breaking changes to this file MAY impact these 1 modules (near match):

This module is declared in 9 of 579 indexed public Puppetfiles.


These results were generated with Rangefinder, a tool that helps predict the downstream impact of breaking changes to elements used in Puppet modules. You can run this on the command line to get a full report.

Exact matches are those that we can positively identify via namespace and the declaring modules' metadata. Non-namespaced items, such as Puppet 3.x functions, will always be reported as near matches only.

manifests/params.pp Outdated Show resolved Hide resolved
@root-expert
Copy link
Member

Ubuntu specs will be fixed after puppetlabs/puppetlabs-apt#1017 gets merged an released. Although we need to explicitly provide release parameter to apt or install lsb-release in our CI after we make some modulesnot using os.distro.codename fact.

@ekohl
Copy link
Member Author

ekohl commented Mar 15, 2022

I literally just wrote puppetlabs/puppetlabs-apt#1018, but I see yours is more complete. I'll update this one.

@ekohl
Copy link
Member Author

ekohl commented Mar 15, 2022

It looks like #1473 now breaks EL7 :(

Passenger is only supported on these, which means Archlinux tests fail.
While this repository no longer relies on it, puppetlabs-apt does. This
ensures it's installed.
Comment on lines +1 to +8
if $facts['os']['name'] == 'Ubuntu' {
# Facter < 4 needs lsb-release for os.distro.codename
if versioncmp($facts['facterversion'], '4.0.0') <= 0 {
package { 'lsb-release':
ensure => installed,
}
}
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of adding this to every single module that needs it.
At least if we do we should probably add it to a file that can be easily removed with modulesync?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it's common, perhaps it's something that should live in voxpupuli-acceptance? Right now I don't have time to work on that, but can review things if needed.

@ekohl ekohl merged commit 5fc8139 into voxpupuli:master Mar 15, 2022
@ekohl ekohl deleted the fix-tests branch March 15, 2022 14:03
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.

3 participants