TurnKey Linux Virtual Appliance Library

Good automation vs bad automation

I recently eliminated a bit of code that was supposed to handle upgrading our build infrastructure from using one distribution (e.g., Ubuntu 8.04 LTS) to another (e.g., Ubuntu 10.04 LTS). That got me thinking about how to decide (and then explain) when it's a good idea to automate and when it isn't.

Since writing and maintaining any piece of software comes with a cost, you always have to weigh the costs against the benefits.

I boiled it down to the following:

  • Good automation: the best kind of automation can reliably handle tasks that it is slow, error prone and labor intensive to perform manually. That kind of automation is usually a good idea because once it works well enough you can basically forget about it and enjoy the benefits from an accelerated development cycle (AKA tightened developer feedback loop), reduced amount of friction from debugging human mistakes. It basically frees up your mind and precious labor for other tasks.
  • Bad automation: the worst kind of automation handles in an unreliable, error-prone way tasks that are infrequently performed and simple to handle manually. Not only do you have to pay for the cost of developing and maintaining this kind of bad automation, you also get an overall decrease in productivity for your efforts because the automation mechanism will require more maintenance and attention then the tasks it supposedly handles.

A litmus test for good vs bad automation is the ability to test. For example, if you try to automate something that happens infrequently there is a good chance that the assumptions embedded in your automation will not hold over time.

So case in point, since there is no way to test that a bit of automation will work for a future release transition, it's safe to assume it probably won't.

You can get future posts delivered by email or good old-fashioned RSS.
TurnKey also has a presence on Google+, Twitter and Facebook.

Comments

Degree of Automation

Hi,

Your article is definitely thought-provoking.  Let me add my 2 cents to it.  From my experience, it is also necessary to decide on the level / degree of automation before venturing to automate processes through Software.  What I mean is, often a (Business) Process could not be "fully" automated.  Many times, human intervention is required at crucial decision points in the Process Workflow.  Hence, from my experience, Software Tools / Utilities that automate 75 - 80% of the Process Workflow is really practical and maintainable.  Such Tools / Utilities are also far superior than those that claim "complete" or "full" automation.

rgds,
Watson

Liraz Siri's picture

Automate to eliminate friction

Usually what I try to do is strive to automate the low-level implementation details that come after you make a high-level decision. Identifying and eliminating commonly occurring sources of friction (even minor ones) via this type of automation can make you much more productive over time.

I totally agree

I completely agree with your assessment.  I work with automation for a living writing business requirements and things like that for enhancements, fixes, and upgrades to automation and some are so unstable and unreliable it's pretty dizzying.

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)