I really believe with proper engineering practices alot of the problems go away. Frequently you see these "Agile" frameworks being followed religiously but there's no continuous integration.
"Continuous attention to technical excellence and good design enhances agility." is one of the Agile principles, one wonders how many have seen it