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

Modulesync 5.3.0 #834

Merged
merged 7 commits into from
Sep 9, 2022
Merged

Modulesync 5.3.0 #834

merged 7 commits into from
Sep 9, 2022

Conversation

ekohl
Copy link
Member

@ekohl ekohl commented Aug 9, 2022

No description provided.

@ekohl ekohl mentioned this pull request Aug 9, 2022
@ekohl
Copy link
Member Author

ekohl commented Aug 9, 2022

I'm still bothered by this bit:

['false', false].each do |systemd_fact_state|
let :facts do
os_facts.merge({ systemd: systemd_fact_state })
end

The loop there doesn't work as you'd expect. You should really create a context, otherwise you only end up testing the last value I think. However, I don't have time now to dive into this.

@ekohl
Copy link
Member Author

ekohl commented Aug 9, 2022

Archlinux fails because there's no Apache version set. I'm not sure how that ever worked.

And #833 will drop Ubuntu 16.04.

@ekohl
Copy link
Member Author

ekohl commented Aug 10, 2022

One problem is that this changes Gentoo to have openrc as the init system (which is the default), but the tests assume systemd. I'm not sure how to deal with that.

ekohl added 2 commits August 10, 2022 12:27
This is now set by the mocked custom facts
@Rathios
Copy link
Contributor

Rathios commented Aug 12, 2022

Threw in some additions here that fix the remainder of the tests for me: ekohl#1

@ekohl
Copy link
Member Author

ekohl commented Aug 24, 2022

Debian just fails on this when using Puppet 6:

         	Error: Could not update: Execution of '/opt/puppetlabs/puppet/bin/gem install -v 5.0.0-alpha1 --no-document zabbixapi' returned 1: ERROR:  Error installing zabbixapi:
         		The last version of public_suffix (< 6.0, >= 2.0.2) to support your Ruby & RubyGems was 4.0.7. Try installing it with `gem install public_suffix -v 4.0.7` and then running the current command again
         		public_suffix requires Ruby version >= 2.6. The current ruby version is 2.5.0.

I recall that old Rubygems versions had issues with downgrading. Not sure what the best course of action is here, but that's just broken.

@smortex
Copy link
Member

smortex commented Sep 8, 2022

So yeah, this fails with Puppet 6 because the module try to install zabbixapi which depends on httpaddressablepublic_suffix in Puppet's ruby gems and the latest version of public_suffix is not compatible with the version of Ruby (Puppet 6 AIO bundles Ruby 2.5).

While some ruby code can select which version of a dependency to use (gem 'foo', '< 5.0'; require 'foo'), it is not done (and for good reasons) by zabbixapi nor the module provider, so even if the installation was resolving older gems, this would be fragile because the latest versions of the dependencies would be selected at runtime.

Maybe it's time to drop support for Puppet 6 and have CI green again?

@bastelfreak
Copy link
Member

👍 for dropping Puppet 6. It's EoL in a few months anyways.

@smortex smortex mentioned this pull request Sep 8, 2022
@smortex smortex merged commit e3baa7f into voxpupuli:master Sep 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants