Verify that deprecate_arg
has not introduced message regressions
#9992
Milestone
deprecate_arg
has not introduced message regressions
#9992
With #9865 open (possible fix in #9884), there is currently a possible regression. If an argument to be deprecated can reasonably be passed positionally and was previously handled by a hard-coded
if x is not None
(or similar) check inside the function body, the warning will no longer be raised. We need to ensure by some mechanism that all these warnings are being correctly raised in the Terra 0.24.Our unit tests should have caught any regressions, but we don't necessarily have great coverage of those, and there are some examples (e.g. in #9864 and #9869) where tests of the deprecations were changed to allow a CI pass.
This issue can be solved either by #9884 or an alternative merging, or by us manually going through the current uses of
deprecate_args
, and reverting any places where the argument would / could reasonably be passed positionally (e.g. if it's 4 arguments deep into keyworded defaults, it's highly unlikely anyone's passing it positionally). This can be checked by searching fordeprecate_arg
in the code base, or alternatively the PRs that introduced most uses are:These should be ticked when it is validated that they contain no regressions.
(the most important ones to revisit are the merged ones)
The text was updated successfully, but these errors were encountered: