Guide

Change impact analysis, for code.

Every change has a blast radius: the code that calls what you changed, the features built on it, the data it writes and the tests that should catch a mistake. Change impact analysis is finding that radius before the change ships. This guide shows how to do it by hand and how to generate it.

Free to start. macOS (Apple silicon and Intel), Windows and Linux.

Why it matters

Most bugs that reach production are not in the lines that changed. They are in the code that depended on what changed and nobody looked at. A one-line change to a shared helper can alter a checkout flow, a nightly job and a report, and the diff shows none of them.

Knowing the impact tells you three things: how carefully to review, what to test, and who should know about the change.

Two kinds of impact analysis

Dependency-based

Follow the code itself: what calls the changed functions, what imports the changed modules, which queries read or write the changed tables. This is what most developers mean, and it can be largely automated.

Traceability-based

Follow links between artefacts: from a requirement or ticket to the code and the tests that implement it. It answers "which features does this touch?" and usually depends on the team keeping those links up to date.

How to do it by hand

  • List the functions, classes and tables the change touches. The diff tells you which lines; you need the symbols those lines belong to.
  • For each one, find its callers with your editor's find references or call hierarchy. Then find their callers, two or three levels out.
  • Note where those paths surface: routes, screens, background jobs, scheduled tasks. Those are the features to test.
  • Note any data written or read differently, and anything that runs a migration.
  • Check which of those paths have tests. A path no test reaches is where a reviewer should look hardest.

Where it breaks down

Each find-references is one hop for one function. A change to ten functions with a few callers each, followed three levels out, is hundreds of lookups, so in practice people stop after the first level.

Generating it from a map of the code

If the codebase is already mapped as a call graph, the same walk takes seconds. Nodeway is a desktop app, free to start, that maps a repository on your computer, and its Pro plan does exactly this walk. The Impact page follows one change through it.

  • It turns the changed lines of your branch, uncommitted work or a GitHub pull request into the functions and other symbols they belong to.
  • Show impact (Shift+D) lights those up on the map, then everything that calls them, one to eight hops out, three by default.
  • The walk ends at the routes, components, database tables and tests the change reaches, so you see the features at risk and whether any test covers them.
  • You can copy the result into the pull request as Markdown or as a Mermaid diagram, so reviewers see it too.
A call graph in Nodeway traced three hops forward from the viewedDocument function in Documenso, through webhook and job functions to the database tables it reaches
Three hops out from one function in Documenso, ending at the tables it reads and writes.

Impact is the first step of a good review. The guide on how to review a pull request covers what to do with it, and the pull request template has a Risks section to put it in.

Questions

What is change impact analysis in software?

Working out what else a change can affect before you make or merge it: the code that calls what you changed, the features and data that depend on it, and the tests that cover it. It tells you how risky a change is and what to test.

What is the difference between dependency and traceability impact analysis?

Dependency analysis follows the code itself: calls, imports and data access. Traceability analysis follows links between artefacts, such as from a requirement to the code and tests that implement it. Most teams rely on the first and do the second by hand.

How do I find everything that calls a function?

Your editor's find references or call hierarchy lists direct callers. For callers of callers, repeat it, or use a call graph tool that follows several hops at once.

Does Nodeway work without AI for impact analysis?

Yes. Show impact is built from the map of the code, so it works offline and needs no AI provider. AI is only used for optional extras, such as the summaries in the pull request brief.

See your whole codebase in minutes.

Open a folder and Nodeway maps it on your own computer. No account, and nothing is uploaded.

More guides