News for hackers. Stuff that matters.
Re:On Monolithic Repositories by skybrian on Wednesday August 05, 2015 @12:05AM (#10007974)
That's the job of the build system. After syncing to a new version, it should only rebuild and re-run the tests where a dependency changed. (It helps to have fine-grained dependencies to avoid running compiles or tests unnecessarily.)

However, that's not enough when you touch a fundamental library and nearly everything is a downstream dependency. Then you really do need to run all the tests, so the build system should be able to run them in parallel on a build farm. Also, test results need to be cached by the build farm so every user doesn't need to run the same tests again for the same change.

See Bazel [1] for how Google does it. (Well, it doesn't provide the build farm, but you can see what the build files look like.)

[1] http://bazel.io/

There are no comments on this comment yet.