Closed
Description
What is your issue?
We've done a superb job of cutting the number of warnings in #3266.
On another project I've been spending time with recently, we raise an error on any warnings in the test suite. It's easy mode — the dependencies are locked (it's not python...), but I wonder whether we can do something some of the way with this:
Would it be worth failing on:
- Warnings from within xarray
- There's no chance of an external change causing
main
to fail. When we deprecate something, we'd update calling code with it. - This would also ensure doctests & docs don't use old versions. Currently doctests have some warnings.
- There's no chance of an external change causing
- Warnings from the min-versions test
- It prevents us from using outdated APIs
- min-versions are fixed dependencies, so also no chance of an external change causing
main
to fail - It would fail in a more deliberate way than the upstream tests do now
- OTOH, possibly it would discourage us from bumping those min versions — the burden falls on the bumper — already a generous PR!
- ...and it's not perfectly matched — really we want to update from an old API before it changes in the new version, not before it becomes deprecated in an old version