Closed Bug 1069310 Opened 12 years ago Closed 12 years ago

Invalid config.pp for servo buildbot master in puppet

Categories

(Release Engineering :: General, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1067951

People

(Reporter: pmoore, Unassigned)

References

Details

Attachments

(1 file)

There seems to be a spurious } here: https://github.com/mozilla/build-puppet/commit/242677be#diff-95f5e5014fccc30fea765063f72dca17R55 It seems to be causing, e.g.: https://foreman.pub.build.mozilla.org/reports/10427674 "Could not retrieve catalog from remote server: Error 400 on SERVER: Could not parse for environment production: Syntax error at '}' at /etc/puppet/production/manifests/config.pp:88 on node buildbot-master-servo-01.srv.servo.releng.use1.mozilla.com"
I wonder if we could set up unit tests to validate puppet changes, and what would be involved to set that up.
Attachment #8491483 - Flags: review?(dustin)
(specifically, I mean things like syntax errors)
We could add validation, perhaps in Jenkins, or even Travis. Unit tests are harder -- lots of work to set up, and still not an especially realistic simulation of what happens on the target machine (for example, you can write a spec that says "when I include packages::wget on a system with $operatingsystem = "CentOS", it creates a Package['wget'] resource", but that can't replace actually trying it on a CentOS box, at which point the unit test is pretty useless). Validation will only catch a small fraction of errors, but certainly would have caught this one.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
Attachment #8491483 - Flags: review?(dustin)
Component: Tools → General
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: