Skip to main content

Manumation, the worst best practice.


There is a pattern I see with many clients, often enough that I sought out a word to describe it: Manumation, A sort of well-meaning automation that usually requires frequent, extensive and expensive intervention to keep it 'working'.

You have probably seen it, the build server that needs a prod and a restart 'when things get a bit busy'. Or a deployment tool that, 'gets confused' and a 'test suite' that just needs another run or three.

The cause can be any number of the usual suspects - a corporate standard tool warped 5 ways to make it fit what your team needs. A one-off script 'that manager' decided was an investment and needed to be re-used... A well-intended attempt to 'automate all the things' that achieved the opposite.

They result in a manually intensive - automated process, where your team is like a character in the movie Metropolis, fighting with levers all day, just to keep the lights on upstairs. Manual-automation, manumation.

Metropolis (1927)

The answer is to use... Sorry, I don't have a magic tool, with a funky name, light-hearted ReadMe and a 3 word install command.

When presented with this situation I advise people to take a step back. Think about what they want for their team, and themselves. We want to deliver faster and easier right?

Often removing a tool, can save time and work. Could that complicated deployment system be replaced with a 5 line bash script?

Could that test suite, focus on the sort of techniques computers are good at? (reading and writing to APIs at speed, randomisation, graphing, comparison/diffing of complicated documents etc.) Many teams fall into the trap of 'look no hands' as if they are trying to spin plates rather than build quality software, fast.

Sounds simple, but when people are wedded to a tool or an idea of how things 'should be' because it was in that book - by that guy "its a best practice!" then it can be difficult to get things simplified.

Step back before things become comical. Safety Last! (1923)

But simplification is often the easiest and quickest place to start. It rarely makes sense to mix in more, to something that is already a muddle. If your team is already manually keeping the 'automation' going, then letting someone do the process manually - for a few hours will probably help you figure out what can be reliably automated, and what are the sticky complicated bits - people are quicker at doing.

Software testing is often overtaken by the above sort of [broken] tools feeding frenzy. The look no hands evangelist, may have had great ideas, but did that suite of tests really make your life easier? Did it free up time for finding the important bugs? Or are you now finding the real bugs in the test automation, while the software your product owner is paying for is hobbling along slowly and expensively to production?

Comments

  1. I know what you mean. I've seen these everywhere. Automation that was supposed to save time, but ended up requiring more work to maintain by hand. Especially in software testing.

    But any automation is code at the end of the day. And poorly implemented automation is simply code with code-smells. And tests created with many of these software testing tools are rife with poor code hygiene, such as hard-coded IDs, magic waits, and un-readability that compromises the maintainability of the tests (and sanity of the testers/developers).

    We need better tools that work for us, not the other way around.

    Oh, and if you are looking for an robust way to automate testing for web apps, try UI-licious (https://uilicious.com). I'm the maker of it, and I gladly invite you to try it and tell me if this is still manumation needed. ;)

    Shi Ling
    @taishiling (twitter)

    ReplyDelete

Post a Comment

Popular posts from this blog

Can Gen-AI understand Payments?

When it comes to rolling out updates to large complex banking systems, things can get messy quickly. Of course, the holy grail is to have each subsystem work well independently and to do some form of Pact or contract testing – reducing the complex and painful integration work. But nonetheless – at some point you are going to need to see if the dog and the pony can do their show together – and its generally better to do that in a way that doesn’t make millions of pounds of transactions fail – in a highly public manner, in production.  (This post is based on my recent lightning talk at  PyData London ) For the last few years, I’ve worked in the world of high value, real time and cross border payments, And one of the sticking points in bank [software] integration is message generation. A lot of time is spent dreaming up and creating those messages, then maintaining what you have just built. The world of payments runs on messages, these days they are often XML messages – and they ...

Don't be a Vogon, make it easy to access your test data!

 The beginning of the hitch-hikers guide to the galaxy leads with an alien ship about to destroy the Earth, and the aliens saying we (mankind) should have been more prepared – as a notice had been on display quite clearly – on Alpha Centauri the nearby star system, for 50 years. Seriously, people - what are you moaning about – get with the program?  The book then continues with the theme of bureaucratic rigidity and shallow interpretations of limited data. E.g. The titular guide’s description of the entire Earth is one word: “Harmless”, but after extensive review the new edition will state: “Mostly harmless”. Arthur Dent argues with the Vogons about poor data access This rings true for many software testing work, especially those with externally developed software, be that external to the team or external to the company. The same approaches that teams use to develop their locally developed usually don’t work well. This leads to a large suite of shallow tests that are usually h...

Can 'reasoning' LLMs help with recs data creation?

  A nervous tourist, glances back and forth between their phone and the street sign. They then rotate their phone 180 degrees, pauses, blink and frown. The lost traveller, flags a nearby ‘local’ (the passer-by has a dog on a lead.   “Excuse me…” she squeaks, “How may I get to Tower Hill?” “Well, that’ s a good one” ponders the dog walker, “You know…” “Yes?” queries the tourist hopefully. “Yeah…” A long pause ensues then, “Well I wouldn’t start from here” He states confidently. The tourist almost visibly deflates and starts looking for an exit. That’s often how we start off in software testing. Despite the flood of methodologies, tips on pairing, power of three-ing, backlog grooming, automating, refining and all the other … ings ) We often find ourselves having to figure out and therefore ‘test’ a piece of software by us ing it. And that’s good. Its powerful, and effective if done right. But, like our dog walker, we can sometimes find ourselves somewhere unfamiliar...