Ryan on Nostr: Discovered a nasty data bug in prod just now in an untested code path. Only hit a few ...
Discovered a nasty data bug in prod just now in an untested code path. Only hit a few users, but still, ugh.
Lesson learned: ~90% test coverage is great, but bugs still happen in the other 10%. It may be harder to test, but do it anyway. If you shipped it then you should have put a test on it. 💍
Published at
2024-09-22 18:42:38 UTCEvent JSON
{
"id": "fac2fcffc600b80ca9ffecf7b736579ff2cabc87f305e215ca23ac31bc53659f",
"pubkey": "8fa125b4f2bdd1db4181c5ce7f76a1194ff60307659ae414455fcb1d65f01b4e",
"created_at": 1727030558,
"kind": 1,
"tags": [
[
"proxy",
"https://fed.brid.gy/r/https://bsky.app/profile/did:plc:fdme4gb7mu7zrie7peay7tst/post/3l4raljo3nt24",
"web"
],
[
"proxy",
"https://bsky.brid.gy/convert/ap/at://did:plc:fdme4gb7mu7zrie7peay7tst/app.bsky.feed.post/3l4raljo3nt24",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://bsky.brid.gy/convert/ap/at://did:plc:fdme4gb7mu7zrie7peay7tst/app.bsky.feed.post/3l4raljo3nt24",
"pink.momostr"
],
[
"-"
]
],
"content": "Discovered a nasty data bug in prod just now in an untested code path. Only hit a few users, but still, ugh.\n\nLesson learned: ~90% test coverage is great, but bugs still happen in the other 10%. It may be harder to test, but do it anyway. If you shipped it then you should have put a test on it. 💍",
"sig": "460dfafd63cfc162618301ed371a6ddea09463a9d10bf6036cfac7684b8ace32904f800f73adbf25d8cf9f4c688b4089d96c33ef6056508f81f285a5d249d9ca"
}