Last modified: 2014-01-31 09:55:32 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T61980, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 59980 - 'puppet parser validate' does not catch common typos
'puppet parser validate' does not catch common typos
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Continuous integration (Other open bugs)
wmf-deployment
All All
: Unprioritized normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-12 20:06 UTC by Guido Iaquinti
Modified: 2014-01-31 09:55 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Guido Iaquinti 2014-01-12 20:06:57 UTC
Gerrit change #107037

the first patch contain a not valid puppet manifest:

modules/generic/manifests/upstart_job.pp
line 13:
wner    => 'root',
instead of
owner    => 'root',

it could be useful if we try to understand why the build passed
Comment 1 Antoine "hashar" Musso (WMF) 2014-01-13 10:32:57 UTC
The Jenkins job operations-puppet-validate is running the command 'puppet parser validate' on each .pp file.  That command does not detect such issue:


 $ echo "file { '/tmp/foo': wner => 'root' }"|puppet parser validate; echo $?
 0
 $

So that is valid as far as puppet parser is concerned.



Such issue might be caught by compiling the catalog, I am not sure how we can achieve that though.

Rephrased summary.
Comment 2 Guido Iaquinti 2014-01-13 15:38:41 UTC
That wouldn't get picked up because it's valid syntax. The only solution is compile it on all nodes, get the output and diff it with the previous one (and check if all the diff are expected). Not so easy to implement
Comment 3 Antoine "hashar" Musso (WMF) 2014-01-31 09:55:32 UTC
Closing bug, we can not really catch such issues :/

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links