-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated pdk version #147
Updated pdk version #147
Conversation
Are you aware of any changes in PDK 3 that might break existing users? You mention people wanting to test Puppet 8 code, but we don't want to accidentally drop support for older code versions either, that might impact tests people have currently. |
@Magisus Looking at https://github.com/puppetlabs/pdk/blob/main/CHANGELOG.md there doesn't look like anything that would drop support, if users are using deprecated commands such as --pe-version they may have to update their jobs to use --puppet-version instead -> puppetlabs/pdk#1250 The biggest change is going to be the addition of ruby 3.2 but ruby 2.7 is still included in the PDK. Do you think releasing it as puppet-dev-tools:5.x instead of puppet-dev-tools:4.x might be a safer option? I've tagged @davidsandilands into this for any additional comments on the PDK. |
Tagging team to help comment @puppetlabs/devx @pmcmaw |
I've updated the skipfiles list in the build test yaml files, it originally had |
What we'll probably do after the 5.4.0 release is over, is choose a new fixed tag (maybe it will be If that proves successful/useful, we can think about if we want to also make changes to CD4PE 4. However, we're trying to get 5.x to a place where it's got feature parity with 4, plus new stuff, and encourage people to move to it, so we may use this as another incentive to upgrade. |
Thanks for this! I'll publish this version of the image early next week, once I've had a chance to share this with the rest of the team and make sure there are no objections. Then customers on both CD4PE 4 and 5 can start using it right away in custom jobs, no upgrade required. |
I'm curious, if we're going to go the route of having them create custom jobs based on a new image for this release, could they just use the official PDK image instead? https://hub.docker.com/r/puppet/pdk If we're going to update the default for all jobs, it makes sense to make a new puppet-dev-tools, since we also bundle other tools that are used in other jobs. But if all they need is a newer PDK for specific modules, I think they could probably just as easily use the official PDK image as a different puppet-dev-tools image. If that doesn't work, let me know, and I can still go ahead an publish this. |
https://hub.docker.com/r/puppet/pdk doesn't include Onceover. |
Ah I see, yeah I think if we were going to release a However, since we can only include one, either 7 or 8, I'm not sure what to do about this in the case where we want to make a new default image... 🤔 Will need to think more about that. I don't think we have any default jobs that use |
updated Onceover and the puppet gem to puppet 8
@Magisus I think it would be safest to continue to ship the current Docker image with cd4pe, customers can carry on as normal and only have to do something when they want to move to Puppet 8, I can imaging they wouldn't be happy if they did an upgrade and found things didn't work exactly as they did before. It might be useful if in future if cd4pe could ship with more than one Docker container, we'd be ready for Puppet 9 then 😆. It might be a good idea anyway as we'd be able to split Onceover into a seperate container and then use the official https://hub.docker.com/r/puppet/pdk and avoid having to upgrade both at once. |
Thanks for doing this! I hadn't had time to circle back to this yet, with the big release. I'll get the jobs fixed up today and get an image published. If it needs more changes we can always publish again. |
Previously this job would publish "latest" and timestamped images, but when producing images with Puppet 8 tooling, we don't want these images, as they are easily confused with the versions produced from `main`. Instead, this job should be used to release a new `puppet8` image, by triggering it from the `puppet8` branch of the repo.
I've retargeted this at the newly-created |
* puppet8: Update Build-Test-Push job to publish `puppet8` images
@16c7x I've published the |
This addresses issues #146 and #145.
The REDME has been updated to remove the line "The latest version of the PDK is also pulled in at build time." which is now incorrect.
The version of the PDK has been updated to version 3.0.1.
The pdk_1_18_1_dependencies test module has been removed as it was out of date and contained a Gemfile that was trying to download non-existent Gems such as puppet-module-posix-default-r3.2 which are no longer needed as the PDK manages its own Gem dependencies. It has been replaced with module create using
pdk new module
using PDK 3.