by kccqzy · 2y ago · 0 comments
This is something that surprised me while I was at Google too. Of course a source code version control system shouldn't be a dependency of production, but it turns out it is just so convenient to go from (1) use your source code system to store configuration so that they are versioned and tracked; (2) have tools to read configuration and apply them automatically, Terraform style; (3) have tools to modify said configuration automatically instead of manually. Voila your source version control system suddenly becomes a NoSQL database.
We did abuse piper for all sorts of things though, most notably “golden” screenshots for diffing ui code changes across multiple search results pages.
Because it's probably buggy and not tested with commits past a certain file size.
Better question, why no use a more appropriate, instead of convenient, tool for the job?
Because ML engineers also want version control and easy history and rollbacks and pull requests with code reviews for model changes.
There is no tool that does that except for the version control systems that programmers use. Other disciplines doesn't seem to care as much about these things.
Edit: And in general the extra storage/compute cost of storing it there is less than the saved work in programmer hours from having version control. It is much less worth adding support for larger files than trying to build an entire separate version control solution. Google already has support for images in the version control system, with image diffs etc, there is no reason not to also add support for these large ML models similarly.
https://www.microsoft.com/en-us/research/uploads/prodnew/202...
That's not an answer so much as an excuse.
> There is no tool that does that except for the version control systems that programmers use.
It wouldn't be much effort at all, especially for Google, to write a simple wrapper that relied on a database or zfs snapshots or anything actually more suitable.
There are tools that do similar with JSON but none are as simple and unobtrusive as protobuf tool chain.