Skip to content

(MODULES-12012) pdk update to pdk-templates main (8ca954f) - #484

Merged
imaqsood merged 3 commits into
mainfrom
MODULES-12012-sa
Nov 19, 2026
Merged

imaqsood merged 3 commits into
mainfrom
MODULES-12012-sa

Conversation

@imaqsood

Copy link
Copy Markdown
Contributor

Summary

pdk update of puppetlabs/puppetlabs-java_ks to pdk-templates main (8ca954f), with PDK 4.0.1.

Jira: https://perforce.atlassian.net/browse/MODULES-12012 (epic MODULES-11997)

Commits

  • 49c59bf (MODULES-12012) Update .sync.yml for pdk-templates main
  • 10c19c2 (MODULES-12012) Fix rubocop offenses under the template rubocop profile
  • 135b79d (MODULES-12012) pdk update to pdk-templates main (8ca954f)

Hand edits kept in .sync.yml

  • puppet-lint check anchor_resource stays disabled (was in .puppet-lint.rc)

Hand edits dropped

  • Gemfile gemsource_puppetcore = if ENV['PUPPET_FORGE_TOKEN'] (template main's puppetcore gem-source logic)
  • Gemfile ENV['GEM_SOURCE_PUPPETCORE'] || gemsource_default (template main's puppetcore gem-source logic)
  • Gemfile def location_for(place_or_version, fake_version = nil, opts = {}) (template main's puppetcore gem-source logic)
  • Gemfile [place_or_version, { require: false }.merge(opts)] (template main's puppetcore gem-source logic)
  • Gemfile gem "voxpupuli-puppet-lint-plugins", '~> 7.0', require: false (template main's pin/condition for voxpupuli-puppet-lint-plugins)
  • Gemfile gem "puppet_litmus", '~> 2.8', require: false, platforms: [:ruby, :x64_mingw] (template main's pin/condition for puppet_litmus)
  • Rakefile: require 'puppetlabs-syntax/tasks/puppetlabs-syntax' (template main requires puppetlabs-syntax when puppetlabs_spec_helper 9 loads it)
  • .sync.yml Gemfile override puppetlabs_spec_helper ~> 9.0 (template main pins it per gem source; the override dropped that condition and listed the gem twice)
  • Gemfile gem "puppetlabs_spec_helper", '~> 9.0', require: false (template main's pin/condition for puppetlabs_spec_helper)

Tests

cat-module (static, unit; full suite): pass, 134 passed, 0 failed

🤖 Generated with Claude Code

imaqsood and others added 3 commits November 13, 2026 10:47
Prepare .sync.yml for pdk update to pdk-templates main (8ca954f):
set the hand edits to pdk-managed files that are still needed, so the
template renders them, and drop settings main makes obsolete (the PR
body lists each one kept or dropped).

Co-Authored-By: Claude <noreply@anthropic.com>
Safe autocorrect (rubocop --autocorrect) of the offenses the pdk-templates
main (8ca954f) rubocop profile adds, so the pdk update commit does
not park them in .rubocop_todo.yml. Safe cops only: no behaviour change.

Also drop the two `rubocop:disable/enable RSpec/MultipleExpectations` pairs
in keytool_spec.rb. The template profile already excludes provider specs
from that cop, and a `rubocop:enable` comment opts the file back in, which
made the whole file fail under the template's Max: 1. Comments only.

Co-Authored-By: Claude <noreply@anthropic.com>
Run pdk update (PDK 4.0.1) against pdk-templates main at 8ca954f.
Pure pdk output, plus .rubocop_todo.yml regenerated with
`rubocop --auto-gen-config --no-exclude-limit` (kept as is when only its
header would change).

Co-Authored-By: Claude <noreply@anthropic.com>
@imaqsood
imaqsood requested a review from a team as a code owner November 13, 2026 05:42

@span786 span786 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @imaqsood. I reviewed the diff: the Gemfile, Rakefile, .rubocop.yml and .pdkignore changes match the pdk-templates main (8ca954f) output, metadata.json only bumps pdk-version/template-ref, and the Ruby changes are rubocop 1.73 autocorrections (trailing commas, redundant parens, super without args, YAML.safe_load_file) that don't change behaviour. CI is green.

Non-blocking nit: .sync.yml drops the puppetlabs_spec_helper ~> 9.0 override (fine, since the template now pins ~> 9.0 on puppetcore and ~> 8.0 for the public source), but the comment above Gemfile: overrides: still says it pins puppetlabs_spec_helper and puppet_litmus. Worth trimming it to puppet_litmus only in a follow-up.

anchor_resource moving from .puppet-lint.rc into .sync.yml extra_disabled_lint_checks keeps the existing behaviour, good.

@imaqsood
imaqsood merged commit 64f357e into main Nov 19, 2026
127 of 133 checks passed
@imaqsood
imaqsood deleted the MODULES-12012-sa branch November 19, 2026 13:25
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