Handle build and test failures