by dignati · 4y ago · 0 comments
Sounds like dependabot is very useful for uncovering insufficient test coverage or missing integration tests :)
On the other hand, very recently, we had to abort a release, because of an outdated dependency that Dependabot DID actually raise.
Which is why I don't want to throw the baby out with the bathwater, as one or two people have suggested.
But I can say that I think that the reality of working with Dependabot, is not very well reflected in popular online articles.
This... is not obvious. It broke a part of your software which you care about. You care, it caused a problem, so it should be tested.
With regards to writing tests of the Django admin, you need to do it if your site is customizing and/or depending upon it.
These kinds of failures are super annoying, but it’s the sort of thing that e2e and canary releases should help you get some coverage on.
Despite the marketing, unit tests are pretty fragile, especially in code with lots of deps (another good reason to limit deps)
That's unfortunate! For the project I'm working on, we've "solved" that by showing the number of test and the difference to the number of tests that ran on main.
FWIW, at previous jobs, upgrading Java dependencies was a major pain because they were all outdated and the latest versions introduced too many breaking changes for us. At my current job, we pretty much instantly merge all PRs from dependabot because we trust our CI. Upgrades rarely introduce problems and if they do, they are easy to fix.
There's your problem.