News for hackers. Stuff that matters.
Re:Google lays off its Python team by zem on Saturday April 27, 2024 @05:31PM (#40183752)
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.
Re:Google lays off its Python team by banish-m4 on Saturday April 27, 2024 @06:54PM (#40184339)
Code mods are fun. Were they gated by human PR reviews, perhaps in batches, or applied without review?
Re:Google lays off its Python team by zem on Saturday April 27, 2024 @07:30PM (#40184577)
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.
Re:Google lays off its Python team by banish-m4 on Saturday April 27, 2024 @08:13PM (#40184793)
Ah makes sense. At another MAANG, there was a code mod template job with a half dozen subvariants. I recall using a variant that supported ripgrep piping to sed -i for a simple replacement mod. There were jobs properties controlling how many mods per diff and whether it needed human approval or not. I think I did one batched by 1000 running once every 2 weeks to keep noise down.