Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Introducing IMPACT: Why Does This PR Actually Affect?

Описание и применение

IMPACT использует граф баз данных FalkorDB для отображения связей между изменённым кодом, вызывающими функциями и тестами, позволяя ревьюерам видеть, почему выбранные тесты важны и как изменение влияет на систему.

Задача

A diff shows what changed but not which functions call that code or which tests might be affected, making it hard to assess a PR’s impact.

Результат

IMPACT identified seven callers and three tests for a broken coupon calculation, revealing a negative total bug that diffs alone would miss. In a real PR, it ran three tests on both base and PR commits, showing two failures resolved and no new failures, providing actionable insight into the change’s effect.

Рабочий процесс

  • 1. Store files and functions in FalkorDB with CALLS relationships.
  • 2. When a function changes, walk CALLS connections backwards up to 4 hops to find reachable callers and tests.
  • 3. Run the identified tests on the changed commit and base commit.
  • 4. Generate an HTML report showing call paths and test results.
  • 5. Optionally use an AI agent to prioritize tests, but graph analysis works without it.
  • 6. Integrate into GitHub Actions to run automatically on PRs and post a comment with the report.

Доказательства

A diff shows what changed. It doesn't always show the functions that call that code, or which tests might be affected.

Источник

IMPACT maps these relations in FalkorDB, then follows them to produce a graph you can inspect.

Источник

When apply_coupon changes, IMPACT walks those connections backwards. It finds seven reachable callers, including three tests.

Источник

IMPACT picked three tests from the graph and ran them on both commits. Two failed on the base and passed on the PR; the normal-coupon test passed on both.

Источник

  • Дата записи: 2026-10-18T15:41:31.950Z