Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So Zarar needs to keep the localdev as close to prod as possible, or have a separate pre-prod environment that can run integration tests to catch vital function disruptions.


Your advice is useful for detecting bugs in the code that you release, before your push it to production, but it would not have helped here, because the bug was in Posthog code that was pushed to production asynchronously.

In fact, it would have made debugging this particular issue harder, because the difference in Posthog configuration between dev and prod is what clued the author in on Posthog causing the problem.

To avoid this kind of problem, the solution is to avoid “live” dependencies which can change in production without your testing. Instead, pin all dependencies to fixed versions and host them yourself.


Ah, thanks, I didn't know it was a live dependency.

>> Instead, pin all dependencies to fixed versions and host them yourself.

Indeed.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: