Re:Southwest cancels 5,400 flights in less than 48 hours
by ninkendo on Tuesday December 27, 2022 @02:20PM
(#34152585)
It’s funny that you use unit tests as an example of it being possible to run drills for this kind of thing. Unit tests are by their definition not the kind of thing that simulates this kind of failure. Perhaps you have a false sense of security about what you’ve really been testing?
[ Parent
| on HN ]
Re:Southwest cancels 5,400 flights in less than 48 hours
by inetknght on Tuesday December 27, 2022 @07:22PM
(#34155838)
> Unit tests are by their definition not the kind of thing that simulates this kind of failure.
Thorough unit and integration tests include failure modes. Mine include things like "what happens if the OS reports that the storage was unmounted during read/write" (because that was a failure often seen in production with some flaky SAN devices) and "what happens if the server stops responding" (because networks are generally unreliable) and "what happens if invalid (random) data is given" because data corruption is a frequent occurrence for similar reasons.
> Perhaps you have a false sense of security about what you’ve really been testing?
Perhaps. On the other hand I've seen a _lot_ of other developers test only the happy path and call it a day then spend days/weeks/months debugging failures.