Comment by fidotron

2 days ago

> There was testing, just not for the bad input (the blank fields in the policy).

But if you change a schema, be it DB, protobuf, whatever, this is the major thing your tests should be covering.

This is why people are so amazed by it.

Sorry, I meant that was unit testing.

The document also doesn't say there wasn't testing in staging or prod.

  • > Sorry, I meant that was unit testing.

    So do we. If you change the schema it doesn't matter if it's unit testing, you either have a validation stage for all data coming in beforehand to check these assumptions (the way many python people use pydantic on incoming data, for example), and that must be updated for every change, or every unit must be defensive against this sort of thing.