Last modified: 2013-05-21 07:52:43 UTC
Puppet makes extensive uses of ruby templates knowns as ERB. We are not currently checking their syntax in the puppet validation Jenkins job. According to puppet documentation at http://docs.puppetlabs.com/guides/templating.html one could use: erb -P -x -T '-' mytemplate.erb | ruby -c
Related URL: https://gerrit.wikimedia.org/r/60856 (Gerrit Change I47e8c3b2fedbacdf26ade9a406bafe6f758d42f1)
Related URL: https://gerrit.wikimedia.org/r/60863 (Gerrit Change Icd6b32a48a3ce01f87aa3c19d6bf477affd56444)
I have deployed the ERB linter. It is only triggered when an ERB file is modified. The test change is: https://gerrit.wikimedia.org/r/60866 Patchset 1 has a faulty ERB. Patchset 2 fix it Patchset 3 does not have any ERB: no job is triggered. The job is not going to block for now, will enable that after a few days.
The job failed when renaming an erb template https://gerrit.wikimedia.org/r/#/c/60945/
I cant reproduce the issue.