A few days ago I visited the FAB factory in Czech Republic, where lot of locks are made. FAB, ZEIS ICON, ASSA, RUCO, Mul-T-locks and others. Almost everything is automatized.
Look at video where locks for scandinavia are filled by pins and springs. Robotic hand pass a lock to machine, where is measured key combination, filled with pins and springs and secured in a body. Second hand only collecting completed locks.
Second video shows some drilling.