Skip to content

Unit tests fail on latest puppet/systemd: Systemd::ServiceLimits type removed upstream #196

Description

@jst-cyr

Summary

memcached::instance declares its $limits parameter as Optional[Systemd::ServiceLimits]. The Systemd::ServiceLimits data type has been removed from puppet/systemd (the deprecated systemd::service_limits and its type alias were dropped). Because .fixtures.yml clones puppet/systemd with no version ref, rake spec pulls systemd's default branch, which no longer defines the type. This means every example that instantiates memcached::instance fails to compile.

I found this while trying to do a compatibility check of this module against Puppet Core 8.20. It seems that the change upstream was very recent, so previous runs would not have caught it. I will try to submit a PR with a fix when I get a moment.

Affected version

  • saz-memcached master / v11.0.0
  • Reproduces with any puppet/systemd checkout after 2026-06-03

Reproduction

$ git clone https://github.com/saz/puppet-memcached && cd puppet-memcached
$ bundle install
$ bundle exec rake spec

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions