You could go for "NASA sure", which is when you spent 100x the effort of the average tech company making sure only some of your spacecraft explode on launch, or you could go for "Github sure", which is when you spend a large chunk of your $200+ million ARR to ensure your core product only has a couple of major outages every year, or you could go for "startup sure", which is when your test coverage is 5% and you throw random stuff into production to see who complains, but you can't ever achieve "absolutely sure".
I would go out on a limb and say that the dev teams you have worked with have cultural issues about openness and saving face, and/or you have not worked on big enough (in terms of devs, LOC, distributed-ness) codebases. I might be wrong.