Some parts of our code has parts present, only to handle backwards compatibility, due to changes introduced in our setup which has to be compatible with a new and an old client setup, and meta-mender branch.
The idea here is to create some functionality for automatically deprecating old test-functions, once there is no longer a need to support them!
This can be solved any way you like, and clever ideas are most welcome.
From the meeting: https://docs.google.com/document/d/1neXnS16brsb7Jdn-Sg-f1Wyoyo_O5MJIAW7_FzTKpfY/edit?disco=AAAAHT2MWng
the ideas were:
- Set a timeout marker. This is possible due to our time-based release schedule, which guarantees that a certain version of Mender goes out of support x months/years from the given date it is introduced.
- Automatically version the versions it has to support, and then deprecate when these go out of support.
- Or any other clever thing you can come up with
- Add pytest functionality for automatically deprecating tests which have backwards compatible code which no longer needs to be supported.