Information Technology Reference
In-Depth Information
that have caused outages in their production environment, such as ETSY001 , as shown in Fig-
ure 16-17 .
Figure 16-17. ETSY001 - Package or yum_package resource used with :upgrade action
Foodcritic can be used to perform vital checks similar to ETSY001 , to catch bugs in your code
even before it gets deployed to a testing sandbox environment. A way to start might be to
look through recent help desk incidents where you have identified the root cause being re-
lated to server configuration issues, and encode them as Foodcritic rules. This is the process
Etsy used to develop its custom Foodcritic rule set.
We hope this section on Foodcritic shows you how you can catch bugs earlier in your Chef
development process, closer to the time of coding. Catching issues early saves time and
money.
Although limited in the feedback it can provide, Foodcritic is a great tool for catching many
bugs early. You still need to do some form of end-to-end testing using a tool like Serverspec,
but you shouldn't have to rely on end-to-end testing exclusively to find issues.
Search WWH ::




Custom Search