Run this on the pull request, before the role is merged into the branch that
production runs from. It is a code review aid: most of it is a static read of
roles/, and the reviewer runs it from a checkout of the branch under review.
The commands are written against a role directory named webapp and a
repository whose roles live in roles/. Substitute your own names. Several
checks loop over roles/*/ and will therefore report on every role in the
repository, not only the one under review - filter the output to the role you
are reviewing, or the pre-existing findings will drown the new ones.
What a failure means
The critical items are the ones that make a role behave differently for its next caller than for its author. A role with an unnamespaced handler, an undeclared variable or an assumed sibling works perfectly in the repository it was written in and breaks the first time somebody reuses it - which is the whole reason the role exists.
Access this needs
Everything except the two Molecule items is a static read and needs only a checkout. Read them before you run anything.
Where the evidence goes
The Molecule run output - converge, idempotence and verify - is the evidence that belongs on the pull request. So does the platform list, because “tested on every supported platform” is a claim about a set, and a reviewer cannot check a set they cannot see.
Sign-off
- Author: _________________ Date: ___________
- Reviewer: ________________ Date: ___________