Live data from Hacker News

A ChatGPT mistake cost us $10k

asim.bearblog.dev

481–490 of 526 posts

Re: A ChatGPT mistake cost us $10k

#481

Earlier quoted context omitted.

Of course your tests shouldn't be sensitive to external state. Why would other tests running affect your test?

They shouldn't. But they do. We're not perfectly spherical developers and we all make mistakes. Sometimes it's also extremely tricky to figure out what state is leaking, especially is it's an access race issue and happens only for some tests and very rarely. If you haven't seen that happening, you just need to work on larger projects.

I've worked at several large companies. In our e2e tests we did not create isolated dbs per test. If the test failed because of other tests running that's a bug in the test and that person would get automatically @mentioned on slack and they would have to fix the build.

Re: A ChatGPT mistake cost us $10k

#483

Earlier quoted context omitted.

That is indeed a weakness of chatgpt - it's not so good with super current information That is because it is only trained on info up to a certain date It's good to know what tools are good and bad at

ummm chatGPT is very slowly becoming mainstream... for to become fully such no user and or prospective user cares about it's limitations .. it needs to work like previous similar technologies do like Siri and Alexa. User experience is utmost important without it Apple wouldnt be apple and chatGPT as it's current trajectory is going looks to become as big as the current biggies. Thus everyone including parents/grandpa…

Yes Siri and Alexa can tell you the date. But I feel like you are assessing chatgpt unfairly. Would you say that a mobile phone is bad because you cannot run powerful programs like on a laptop? No, the mobile phone has its own purpose, which is convenience

Chatgpt can do many things that siri and alexa cannot: draft emails, write code, write unit tests, help me brainstorm, give me cooking recipes, or even talk about relationship issues. Every tool has strengths and weaknesses

Re: A ChatGPT mistake cost us $10k

#484
post #8
post #2

Thanks for telling. Bookmarked for the next time we're told ChatGPT's code error rate is acceptable because we review its code just like an intern's.

Honestly I'm not sure why ChatGPT has anything to do with this problem. I remember making the exact same mistake (accidentally using a single function call in a schema) back in 2010. No LLMs required. The bigger culprit is probably a lack of testing / debugging. This error would immediately get caught if you simply registered twice on a test instance.

> Honestly I'm not sure why ChatGPT has anything to do with this problem. I remember making the exact same mistake (accidentally using a single function call in a schema) back in 2010. No LLMs required.

So /that's/ where ChatGPT learned it! :)

Re: A ChatGPT mistake cost us $10k

#485
post #8

Earlier quoted context omitted.

Honestly I'm not sure why ChatGPT has anything to do with this problem. I remember making the exact same mistake (accidentally using a single function call in a schema) back in 2010. No LLMs required. The bigger culprit is probably a lack of testing / debugging. This error would immediately get caught if you simply registered twice on a test instance.

In a world where this entire codebase wasn't generated by ChatGPT, you'd have engineers familiar with the various parts of the system to quickly identify and fix the problem. Testing and debugging isn't just a matter of stepping through code, it's an exercise of seeing where your mental model of the codebase is faulty versus the current reality of it. I've encountered similar problems and they'd be fixed in a matter…

> In a world where this entire codebase wasn't generated by ChatGPT, you'd have engineers familiar with the various parts of the system to quickly identify and fix the problem.

I wonder why this victim didn't ask ChatGPT to identify and fix the problem...

Re: A ChatGPT mistake cost us $10k

#486

Earlier quoted context omitted.

In a world where this entire codebase wasn't generated by ChatGPT, you'd have engineers familiar with the various parts of the system to quickly identify and fix the problem. Testing and debugging isn't just a matter of stepping through code, it's an exercise of seeing where your mental model of the codebase is faulty versus the current reality of it. I've encountered similar problems and they'd be fixed in a matter…

Yes I don't understand the perceived benefits of re-writing the code in Python/FastAPI if none of them know Python/FastAPI.

"Requirements"?

Re: A ChatGPT mistake cost us $10k

#487
post #20
post #2

Thanks for telling. Bookmarked for the next time we're told ChatGPT's code error rate is acceptable because we review its code just like an intern's.

Your take-away is that this is ChatGPT's fault rather than a failure of testing?

My takeaway is fault lies with s/he who trusted ChatGPT.

Re: A ChatGPT mistake cost us $10k

#488
I think changing the title to "Not monitoring our ChatGPT calls costed us $10k" would make it stronger.

Adding monitoring is the last thing you think about when pushing out a prototype, and it's easy to forget that a "prototype that no one will probably use" could cost thousands with accidental infinite loops and bugs like these.

Always set your spending limits!

Re: A ChatGPT mistake cost us $10k

#489

No, a lack of monitoring cost you $10K. Your app was throwing a database exception and nobody was alerted that this was not only happening, but happening continuously and in large volumes. Such an alert would have made this a 5-minute investigation rather than 5 days. If you haven't fixed that alerting deficiency, then you haven't really fixed anything.

Maybe ChatGPT didn't tell them that they needed monitoring?

Re: A ChatGPT mistake cost us $10k

#490
post #448

Earlier quoted context omitted.

Because they have half a million dollar to star with and 1.2 million dollars on top and then free AWS credits to burn.

They even said as much in TFA - "[...] overkill, yes we know, but to be fair we had AWS credits". Fully acknowledging the irony I am about to invoke - this is why I hate startup culture. Not startups, but this ridiculous culture of "well the VC gave us a million bucks and that bought us $100,000 in AWS credits, so let's just use it." As someone who has built my company fully on my own dime (and the dimes of two colle…

A ten dollar Hetzner with dokku would do fine at this stage.

But then the whole startup culture is generally speaking, a culture of waste, pride and vanity.

Post reply on HN