Skip to content

Make CI configuration easy to understand (and memorize) #85

@bittner

Description

@bittner

(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.

  • perform linting: pdk validate
  • run (unit) tests: 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:

- install:
  - apt-get install pdk

- script:
  - pdk validate
  - pdk test unit

... or, in a more elaborate setup, using stages (e.g. in Travis):

- stage: validate
  script: pdk validate

- stage: test
  script: pdk test unit

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions