Skip to content

Add Ruby 4.0 / Puppet 9 support - #418

Merged
david22swan merged 2 commits into
mainfrom
add-puppet9-ruby4-support
Aug 13, 2026
Merged

Add Ruby 4.0 / Puppet 9 support#418
david22swan merged 2 commits into
mainfrom
add-puppet9-ruby4-support

Conversation

@LukasAud

@LukasAud LukasAud commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

With the arrival of Puppetcore 9, we need to ensure our tools are compatible with Ruby 4.

  • Adds a ruby_version: 4.0 / puppet_gem_version: ~> 9.0 lane to both ci.yml and nightly.yml's spec and acceptance jobs.
  • The Gemfile had no puppetcore-sourcing logic at all previously — it just used the default rubygems.org source unconditionally. Sources puppet from rubygems-puppetcore.puppet.com when a forge token is present (checking for a non-empty value specifically, since gem_ci.yml sets the env var even when no secret is configured), same pattern as rspec-puppet/puppetlabs_spec_helper.

Verified locally: full spec suite passes (260 examples, 0 failures, 3 pre-existing pending unrelated to this change), rubocop clean.

Checklist

  • 🟢 Spec tests.
  • 🟢 Acceptance tests.
  • Manually verified.

With the arrival of Puppetcore 9, we need to ensure our tools are
compatible with Ruby 4. Adds a ruby_version: 4.0 / puppet_gem_version:
~> 9.0 lane to ci.yml and nightly.yml's spec and acceptance jobs.

The Gemfile had no puppetcore-sourcing logic at all - it just used the
default rubygems.org source unconditionally. Sources puppet from
rubygems-puppetcore.puppet.com when a forge token is present, same
pattern as rspec-puppet/puppetlabs_spec_helper.
@LukasAud
LukasAud requested review from a team and bastelfreak as code owners August 13, 2026 11:41
puppet_litmus pulls in bolt as a transitive dependency, which otherwise
resolves from rubygems.org (a stale 4.0.0 dragging in an old
faraday/patron native-extension chain that fails to build - libcurl
headers aren't present on the CI runner). Same fix as puppetlabs/provision.
@david22swan
david22swan merged commit fa3362c into main Aug 13, 2026
10 checks passed
@david22swan
david22swan deleted the add-puppet9-ruby4-support branch August 13, 2026 14:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants