Greetings, Ilia! I am currently using ovs version 3.3.1, but I want to upgrade to 3.3.5. Unfortunately, I am forced to use Python 3.6. Only one test fails, which reads the AUTHORS.rst file and it seems that it appeared in openvswitch version 3.3.5. I also cannot upgrade to 3.5, since it does not support my version of Python. Sorry for my multiple attempts to submit a patch, this is my first time. Best regards, Ivan Burnin
16.08.2025, 04:12 пользователь "Ilya Maximets" <i.maxim...@ovn.org <mailto:i.maxim...@ovn.org>> написал: On 8/15/25 8:56 PM, Burnin Ivan wrote: > Python versions below 3.7 do not correctly read the AUTHORS.rst file unless > the LC_CTYPE environment variable is set to UTF-8. This causes unit test > number 24:checkpatch - AUTHORS.rst existence to fail with > UnicodeDecodeError Hi, Ivan. Thanks for the patch! Python 3.7 is a minimal supported version since OVS 3.5, and this test only exists in 3.5+. You should have more tests failures if you're using 3.6 or older, in fact, you should not be able to build OVS with this version of Python. See the following commit: 3131588e1e1d ("python: Require Python 3.7 for ssl.TLSVersion.") Or does it fail with Python 3.7? Best regards, Ilya Maximets. > > Signed-off-by: Ivan Burnin <ibur...@k2.clou <mailto:ibur...@k2.clou>d> > --- > utilities/checkpatch.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > > diff --git a/utilities/checkpatch.py b/utilities/checkpatch.py > index 28d0977eb..52bb8196b 100755 > --- a/utilities/checkpatch.py > +++ b/utilities/checkpatch.py > @@ -841,7 +841,7 @@ def do_authors_exist(authors): > missing_authors = [] > > > try: > - with open(get_top_directory() + "/AUTHORS.rst", "r") as file: > + with open(get_top_directory() + "/AUTHORS.rst", "r", encoding="utf-8") as > file: > file_content = file.read() > for author in authors: > m = re.search(r'<(.*?)>', author) _______________________________________________ dev mailing list d...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-dev