Update templated CI configurations to be consistent and use pdk
subcommands
#1015
Replies: 4 comments
-
From @npwalker on May 15, 2018 15:10 @bittner I agree with you and speaking with the devs I think that's their ultimate plan but I think they are still clearing some barriers. In the meantime, I made some changes to the various CI configs to make them look more alike. Also, I put up this PR, puppetlabs/pdk-templates#88, to make validating one step instead of multiple steps. |
Beta Was this translation helpful? Give feedback.
-
From @maxadamo on May 19, 2018 19:35 @bittner agree... this is the so-called |
Beta Was this translation helpful? Give feedback.
-
From @DavidS on June 4, 2018 11:27 We do plan to do this. You can track the progress in https://tickets.puppetlabs.com/browse/PDK-709 |
Beta Was this translation helpful? Give feedback.
-
From @bittner on October 16, 2018 19:48 A recent blog post by @rnelson0 explains that the two PDK commands now seem to reliably do what is expected, and all the validation and test setup can be generated to work locally. Hence, we should be able to throw away all the complicated Are there any plans to implement this before the end of this year? This should be easy and fast to do. |
Beta Was this translation helpful? Give feedback.
-
From @bittner on May 11, 2018 17:32
(I'm not sure whether I interpret the content of this repo correctly and reporting here is fine. I apologize if this is plain wrong.)
Migrating a project over to PDK we've noticed that the CI configuration generated by PDK (aka "proposed by Puppet Labs") is somewhat verbose. And not based on commands provided by PDK. Examples:
I believe one of the strong points of PDK is that it finally provides developers with easy-to-memorize one-shot commands that "do it all", e.g.
pdk validate
pdk test unit
Hence, it should be obvious that this simplicity can reflect positively on all any CI configuration related to Puppet. It could look like this:
... or, in a more elaborate setup, using stages (e.g. in Travis):
This is a setup you don't need to look up in documentation to get it explained. It's something you can explain to a colleague even as a complete newbie to CI, Travis & friends.
Can someone explain why the current templates still look, I apologize, confusing and use plain
bundle
,gem
,rake
commands?Copied from original issue: puppetlabs/pdk-templates#85
Beta Was this translation helpful? Give feedback.
All reactions