Engineering automation
Automating repetitive engineering tasks.
Automation covers code generation, dependency updates, release notes, environment setup and more. A task done by hand every week is a good candidate. Scripts and bots free attention for product work.
Why it matters for a product engineer
A task done by hand every week costs hours over a year, and it is done a little differently each time. Automation makes it cheap, repeatable and checked. With coding agents, large changes that were never worth the time, such as migrating thousands of files, now are.
How to do it
- List the repeated tasks: dependency updates, release notes, environment setup, migrations, and code that follows a known pattern.
- Automate the ones that are frequent, boring and easy to check. Start with a script, then move it into CI or a bot.
- Let a bot such as Renovate open dependency updates, and let the tests decide whether to merge.
- For a large code change, build a pipeline of steps that each end in a check: tests, lint, types. Retry a failed step with its error, and stop after a limit.
- Run on a sample first, fix the common failures, then run on everything.
- Keep a person reviewing what the checks cannot verify.
Common mistakes
- Automating a process nobody understands yet.
- Bots that open more pull requests than people can review.
- Automation without checks, so mistakes spread faster.
- Chasing the last few percent with automation, when hand work is cheaper.
Example
Airbnb had nearly 3,500 React test files on Enzyme, a library it had stopped using for new tests in 2020. By hand, the migration was estimated at 1.5 years of engineering time. A pipeline moved each file through steps: convert from Enzyme, fix Jest, fix lint and types. When a check failed, an LLM got the errors and tried again. Some hard files were retried 50 to 100 times. Then the team stopped tuning and fixed the last 3% by hand, in about a week.
Airbnb's automated test migration
- 75%
- Files migrated in the first 4 hours
- 97%
- After 4 days of tuning prompts and scripts
- 6 wk
- The whole migration
- Estimated at 1.5 years by hand
A check at every step made it safe to run on thousands of files. The last 3% was cheaper by hand.
ReportedCharles Covey-Brandt, Airbnb, 13 Mar 2025
Sources: Accelerating large-scale test migration with LLMs (Airbnb) ↗
Resources
3- docsStart here
Diátaxis ↗
Daniele Procida · free guideFour kinds of documentation (tutorials, how-to guides, reference, explanation) and why mixing them fails.
- articleStart here
Ship / show / ask ↗
Rouan Wilsenach (martinfowler.com) · 2021 · 9 minNot every change needs a review before merging; a simple way to decide which do.
- articleGo deeper
Continuous integration ↗
Martin Fowler · 60 minThe definitive explanation of continuous integration, recently revised, including what it is not.
Tools
2- ToolOpen source
Renovate
Open-source bot that opens pull requests to keep dependencies up to date.
- ToolFreemium
GitHub Actions
CI/CD built into GitHub, for running tests, checks and deployments on every change.