Page MenuHomePhabricator

Fix deprecation warnings
Closed, ResolvedPublic

Description

The tests expose multiple deprecation warnings that would get in the way in the future. Cleaning them up seems like a good first step for Python 3 improvements and a good first task for onboarding.

Related Objects

Event Timeline

Hi @kamila, thanks for taking the time to report this and welcome to Wikimedia Phabricator!
Could you please share these multiple deprecation warnings in this task?

Hi @Aklapper , so far I have only found (and addressed) the DeprecationWarning: dist() and linux_distribution() functions are deprecated in Python 3.5 warning. Currently working on getting familiar with Thumbor so I can find more of them in the logs, if any. I hope to have the patch ready sometime tomorrow.

Just to provide some context: I am a new SRE in the Platform team (started last week) and me and @hnowlan agreed to do this as an onboarding task for me :-)

Edit: @Aklapper Ahoj ze Slovenska ("čtyři piva přosim!") :-)

Raine triaged this task as Low priority.Mar 22 2023, 4:00 PM

Change 902321 had a related patch set uploaded (by Kamila Součková; author: Kamila Součková):

[operations/software/thumbor-plugins@master] tests: fix usage of deprecated `platform.linux_distribution()`

https://gerrit.wikimedia.org/r/902321

Change 902321 merged by jenkins-bot:

[operations/software/thumbor-plugins@master] Remove code for supporting old Debian (<= 9.0)

https://gerrit.wikimedia.org/r/902321

I don't see any other obvious deprecation warnings in our code (there are some in the dependencies, but I'm not brave enough to update those right now :D). @hnowlan can we close this?

In T332548#8750395, @kamila wrote:

I don't see any other obvious deprecation warnings in our code (there are some in the dependencies, but I'm not brave enough to update those right now :D). @hnowlan can we close this?

I think we can, thanks!