Many years ago I worked a short stint at Lithgow Small Arms Factory. We had machines for assessing barrels for straightness, and straightening them where necessary. They weren't a new thing then, either.

IMHO there really should be no excuse for putting out bent barrels.