Changes to the deprecation window in 1.8+ #15049
Labels
breaking change
Includes a breaking change
deprecation
Includes a deprecation
pl
Generic label for PyTorch Lightning package
Milestone
Uh oh!
There was an error while loading. Please reload this page.
🚀 Augmented deprecation window
Motivation
We currently have the following deprecation pattern:
This is documented in our API Evolution section in the docs.
We have found that is very common that users don't update their projects very often, but when they do they jump more than two minor versions, for example from v1.4 to v1.8. In such cases, they miss deprecation messages entirely and end up with silent, undocumented behavior that is hard to debug.
Pitch
We propose to implement a new pattern:
This is meant to balance development speed with giving good feedback to users coming from an old version of Lightning.
Here is an example PR that will start this new pattern: #14835
Exceptions
There will likely be exceptions where this pattern can't be followed. As a rule of thumb, we say that this should apply to every API or behavioral deprecation, but on a case-by-case basis we will also evaluate feasibility and decide based on that whether an exception can be made.
TODOs
Alternatives
None.
Additional context
Work done in #14841 will partially have to be undone.
cc @lantiga @carmocca @Borda @justusschock
The text was updated successfully, but these errors were encountered: