Skip to content

fix: migrate to Policyfile#238

Open
damacus wants to merge 2 commits into
mainfrom
chore/policyfile-migration
Open

fix: migrate to Policyfile#238
damacus wants to merge 2 commits into
mainfrom
chore/policyfile-migration

Conversation

@damacus

@damacus damacus commented Jul 2, 2026

Copy link
Copy Markdown
Member

Summary

  • migrate cookbook dependency resolution from Berksfile to Policyfile.rb
  • switch ChefSpec to chefspec/policyfile and preserve Kitchen suite run lists with named_run_list
  • replace LIMITATIONS.md with AGENTS.md and update Copilot setup to run chef install Policyfile.rb
  • set the Dokken Cinc chef_binary so the Policyfile integration lane converges with the Cinc container

Validation

  • chef install Policyfile.rb
  • git diff --check
  • cookstyle
  • env GEM_HOME=/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0 GEM_PATH=/opt/chef-workstation/embedded/lib/ruby/gems/3.1.0 /opt/chef-workstation/embedded/bin/rspec --format documentation
  • env KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen list
  • env KITCHEN_LOCAL_YAML=kitchen.dokken.yml kitchen test default-ubuntu-2404 --destroy=always
  • actionlint
  • yamllint .
  • markdownlint-cli2 "**/*.md"

@damacus damacus requested a review from a team as a code owner July 2, 2026 06:00
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

Slowest examples

Top 10 slowest examples (0.54 seconds, 99.46% of total time)
Example Description Time in seconds
spec/default_spec.rb:17 postfix resource on AlmaLinux 9 renders file main.cf with /etc/pki/tls/cert.pem 0.09395
spec/default_spec.rb:31 postfix resource on Ubuntu 24.04 renders file main.cf with /etc/ssl/certs/ca-certificates.crt 0.06457
spec/wrapper_spec.rb:14 test::default legacy wrapper attributes keeps wrapper cookbook defaults when rendering main.cf 0.06387
spec/resource_spec.rb:71 postfix resources postfix_server renders server mode 0.06342
spec/resource_spec.rb:37 postfix resources postfix_config with aliases renders aliases through postfix_map 0.05401
spec/resource_spec.rb:57 postfix resources postfix_config with access maps renders the access map file 0.05266
spec/resource_spec.rb:47 postfix resources postfix_map renders a map file 0.04855
spec/resource_spec.rb:25 postfix resources postfix_install with exim4 present stops and purges exim4 so postfix can bind port 25 0.03726
spec/sasl_auth_spec.rb:11 postfix_sasl_auth resource password file template does not display sensitive information 0.03255
spec/resource_spec.rb:13 postfix resources postfix_install installs postfix 0.0295

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.

1 participant