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)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
DUPLICATE
of bug 1067951
People
(Reporter: pmoore, Unassigned)
References
Details
Attachments
(1 file)
|
494 bytes,
patch
|
Details | Diff | Splinter Review |
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"
| Reporter | ||
Comment 1•12 years ago
|
||
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)
| Reporter | ||
Comment 2•12 years ago
|
||
(specifically, I mean things like syntax errors)
Comment 4•12 years ago
|
||
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
| Reporter | ||
Updated•12 years ago
|
Attachment #8491483 -
Flags: review?(dustin)
| Assignee | ||
Updated•9 years ago
|
Component: Tools → General
You need to log in
before you can comment on or make changes to this bug.
Description
•