Skip to content

Drop EOL platforms, bump Chef/cookstyle, expand test coverage#97

Merged
tas50 merged 8 commits intomainfrom
modernize-platforms-and-deps
Mar 30, 2026
Merged

Drop EOL platforms, bump Chef/cookstyle, expand test coverage#97
tas50 merged 8 commits intomainfrom
modernize-platforms-and-deps

Conversation

@tas50
Copy link
Copy Markdown
Member

@tas50 tas50 commented Mar 30, 2026

Summary

  • Remove EOL platforms from metadata.rb and Test Kitchen configs: CentOS 6/7, CentOS Stream 8, Debian 9/10, Ubuntu 18.04, RHEL 6, Scientific Linux
  • Bump chef_version to >= 17 in metadata.rb and Test Kitchen Chef version from 14.13.11 to 17
  • Bump cookstyle floor from >= 8.0 to >= 8.6
  • Add Ubuntu 24.04 and CentOS Stream 9 to test matrices
  • Fix ubuntu-22.04 dokken image (was incorrectly using dokken/ubuntu-20.04)
  • Expand ChefSpec coverage with tests for CentOS (yum), SUSE (zypper), and Amazon Linux platforms
  • Update README: fix license badge/text (Apache 2.0 → BUSL-1.1), platform list with version minimums, Chef version, remove deprecated chef-run reference, fix testing prereqs
  • Replace Vagrant kitchen.yml with Dokken as default Test Kitchen driver
  • Update copyright years across all files
  • Fix CI: replace broken actionshub/chef-install (checksum mismatch) with ruby/setup-ruby in both lint and unit workflows

Test plan

  • ChefSpec tests pass locally (25 examples, 0 failures)
  • CI lint and unit checks pass
  • Verify dokken integration tests on updated platform matrix

🤖 Generated with Claude Code

tas50 and others added 8 commits March 30, 2026 00:06
- Remove EOL platforms: CentOS 6/7, CentOS Stream 8, Debian 9/10,
  Ubuntu 18.04, RHEL 6, Scientific Linux
- Bump chef_version to >= 17 in metadata.rb
- Bump Test Kitchen Chef version from 14.13.11 to 17
- Bump cookstyle floor from 8.0 to 8.6
- Add Ubuntu 24.04 to test matrices
- Add CentOS Stream 9 to test matrices
- Fix ubuntu-22.04 dokken image (was incorrectly using ubuntu-20.04)
- Expand ChefSpec coverage to CentOS, SUSE, and Amazon Linux

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Fix license badge and text from Apache 2.0 to BUSL-1.1
- Update platform list with version minimums, remove EOL distros
- Bump Chef version requirement to >= 17

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Testing only requires Docker, not Vagrant, for Dokken workflow
- Remove outdated chef-run reference from examples section

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Remove kitchen.dokken.yml and make it the default kitchen.yml
- Remove KITCHEN_LOCAL_YAML reference from README

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
actionshub/chef-install defaults to Chef Workstation 21.6.497 which
has a checksum mismatch on the download server. Replace with
ruby/setup-ruby + gem install cookstyle directly.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Same actionshub/chef-install checksum issue as lint workflow.
Use ruby/setup-ruby with bundler-cache instead.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

Slowest examples

Top 10 slowest examples (0.75 seconds, 50.23% of total time)
Example Description Time in seconds
spec/recipes/default_spec.rb:31 mondoo::default on CentOS is expected to run execute "cnspec_login" 0.19185
spec/recipes/default_spec.rb:10 mondoo::default on Ubuntu is expected to install package "mondoo" 0.07511
spec/recipes/default_spec.rb:54 mondoo::default on Amazon Linux is expected to enable service "cnspec.service" 0.07229
spec/recipes/default_spec.rb:29 mondoo::default on CentOS is expected to enable service "cnspec.service" 0.06612
spec/recipes/default_spec.rb:16 mondoo::default on Ubuntu is expected not to create yum_repository "mondoo" 0.06383
spec/recipes/default_spec.rb:12 mondoo::default on Ubuntu is expected to start service "cnspec.service" 0.06155
spec/recipes/default_spec.rb:53 mondoo::default on Amazon Linux is expected to install package "mondoo" 0.05775
spec/recipes/default_spec.rb:13 mondoo::default on Ubuntu is expected to run execute "cnspec_login" 0.05562
spec/recipes/default_spec.rb:21 mondoo::default on Ubuntu with proxy attribute set is expected to run execute "cnspec_login" 0.05517
spec/recipes/default_spec.rb:58 mondoo::default on Amazon Linux is expected not to add apt_repository "mondoo" 0.0549

@tas50 tas50 merged commit 14523b4 into main Mar 30, 2026
6 of 7 checks passed
@tas50 tas50 deleted the modernize-platforms-and-deps branch March 30, 2026 07:49
@github-actions github-actions bot locked and limited conversation to collaborators Mar 30, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant