Skip to content

ci: migrate tests to Policyfile - #208

Merged
ramereth merged 1 commit into
mainfrom
codex/migrate-policyfile
Aug 17, 2026
Merged

ci: migrate tests to Policyfile#208
ramereth merged 1 commit into
mainfrom
codex/migrate-policyfile

Conversation

@damacus

@damacus damacus commented Aug 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace Berkshelf test resolution with Policyfile.
  • Map existing Kitchen suites to named run lists.
  • Generate, but do not track, the Policyfile lock.

Verification

  • chef install Policyfile.rb
  • Cookstyle: 0 offences
  • ChefSpec: 183 examples, 0 failures
  • markdownlint: 0 issues
  • KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test default-ubuntu-2404 --destroy=always: 7 tests passed

@damacus
damacus requested a review from a team as a code owner August 16, 2026 20:01
@github-actions

Copy link
Copy Markdown

Slowest examples

Top 10 slowest examples (1.29 seconds, 12.23% of total time)
Example Description Time in seconds
spec/resources/service_spec.rb:211 chroot recipe on centos 8 does not run mknod_random actions and notifications 0.21655
spec/resources/primary_zone_template_spec.rb:108 zones with managed serial numbers a zone with no changes does not change the persisted serial number 0.19261
spec/resources/config_spec.rb:38 creating a basic configuration the main named config file has the root hints zone specified 0.17174
spec/chroot_spec.rb:234 test::chroot on Ubuntu 18.04 executes mknod /var/bind9/chroot/dev/urandom 0.14686
spec/chroot_spec.rb:166 test::chroot on Ubuntu 18.04 creates /var/bind9/chroot with mode 750 and owner bind 0.12227
spec/chroot_spec.rb:50 test::chroot on CentOS 7 it creates cookbook file /var/named/named.loopback 0.10689
spec/chroot_spec.rb:17 test::chroot on CentOS 7 is expected to install package "["bind-chroot", "bind-utils", "bind-libs"]" 0.09247
spec/chroot_spec.rb:111 test::chroot on CentOS 8 will render secondary with no options 0.08339
spec/chroot_spec.rb:212 test::chroot on Ubuntu 18.04 renders file /var/bind9/chroot/etc/bind/named.conf with included files 0.08058
spec/chroot_spec.rb:175 test::chroot on Ubuntu 18.04 creates /var/bind9/chroot/etc with mode 750 and owner bind 0.07681

@ramereth
ramereth merged commit 857e57a into main Aug 17, 2026
98 checks passed
@ramereth
ramereth deleted the codex/migrate-policyfile branch August 17, 2026 00:30
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.

2 participants