Home / Companies / Sourcegraph / Blog / Post Details
Content Deep Dive

Large-scale code changes: how to do them safely

Blog post from Sourcegraph

Post Details
Company
Date Published
Author
Matt Tanner
Word Count
3,022
Company Posts That Month
6
Language
English
Hacker News Points
-
Post removed?
No
Summary

Large-scale code changes, distinct from typical code modifications, involve making logically related edits across numerous repositories that cannot be submitted as a single atomic unit due to practical constraints like tooling limitations and potential merge conflicts. The complexity lies not in the coding itself but in coordinating the process across multiple teams and repositories, requiring comprehensive enumeration, consistent application, and meticulous tracking of changes. Companies like Google have developed processes that shard a master change into smaller, independently manageable pieces, ensuring each can be reviewed, tested, and merged separately. Tools like Sourcegraph's Batch Changes streamline this process by allowing engineers to apply a single declarative change specification across multiple repositories, track the progress of each changeset, and manage the rollout systematically. This approach has proven effective for organizations like Workiva and Quantcast, significantly reducing the time needed to implement large-scale changes and increasing confidence in the completeness and consistency of these modifications.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.