← Back to context

Comment by stevage

1 year ago

Can you say more about the automated refactoring? How did it work? How was it triggered? How much human involvement was there? Are any parts of it public?

can't say too much about it because it mostly used a lot of internal tools, but it was a combination of writing per-file utilities to do specific code transforms (think something like libcst), and then a framework to scan the google codebase, find affected files, and apply the transforms to them.

  • Code mods are fun. Were they gated by human PR reviews, perhaps in batches, or applied without review?

    • yes, gated by human reviews based on who owned the code, unless they were completely trivial and then were gated by a single global approver. there were always humans in the loop though.

      1 reply →