[noble] FTBFS on failure in test vlog - Python3, change of behavior in Python 3.13, backported to 3.12 and 3.11

Bug #2060434 reported by Frode Nordahl
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
openvswitch (Ubuntu)
Fix Released
Undecided
Frode Nordahl

Bug Description

Full log: https://launchpadlibrarian.net/723457197/buildlog_ubuntu-noble-arm64.openvswitch_3.3.0-1build2_BUILDING.txt.gz

ERROR: 1 test was run,
1 failed unexpectedly.

## ------------------------ ##
## Summary of the failures. ##
## ------------------------ ##
Failed tests:
openvswitch 3.3.0 test suite test groups:

 NUM: FILE-NAME:LINE TEST-GROUP-NAME
      KEYWORDS

 2531: vlog.at:3 vlog - Python3

## ---------------------- ##
## Detailed failed tests. ##
## ---------------------- ##

# -*- compilation -*-
2531. vlog.at:3: testing vlog - Python3 ...
../../tests/vlog.at:6: $PYTHON3 $srcdir/test-vlog.py --log-file log_file \
-v dbg module_1:info module_2:warn syslog:off 2>stderr_log
../../tests/vlog.at:9: sed -e 's/.*-.*-.*T..:..:..Z |//' \
-e 's/File ".*", line [0-9][0-9]*,/File <name>, line <number>,/' \
stderr_log
--- - 2024-04-06 13:05:02.236874405 +0000
+++ /<<PKGBUILDDIR>>/_debian/tests/testsuite.dir/at-groups/2531/stdout 2024-04-06 13:05:02.210940554 +0000
@@ -7,31 +7,37 @@
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   6 | module_0 | ERR | error exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   7 | module_0 | WARN | warn exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   8 | module_0 | INFO | information exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   9 | module_0 | DBG | debug exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   10 | module_0 | ERR | exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   11 | module_1 | EMER | emergency
   12 | module_1 | ERR | error
@@ -41,26 +47,31 @@
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   17 | module_1 | ERR | error exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   18 | module_1 | WARN | warn exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   19 | module_1 | INFO | information exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   21 | module_1 | ERR | exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   22 | module_2 | EMER | emergency
   23 | module_2 | ERR | error
@@ -69,20 +80,24 @@
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   28 | module_2 | ERR | error exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   29 | module_2 | WARN | warn exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError
   32 | module_2 | ERR | exception
 Traceback (most recent call last):
   File <name>, line <number>, in main
     assert fail
+ ^^^^
 AssertionError

Frode Nordahl (fnordahl)
Changed in openvswitch (Ubuntu):
assignee: nobody → Frode Nordahl (fnordahl)
status: New → In Progress
Revision history for this message
Frode Nordahl (fnordahl) wrote : Re: [noble] FTBFS due to failure in test vlog - Python3

This boils down to a change in behavior for Python 3.12:

Consider the script a.py:
f = False
assert f

$ python3 --version
Python 3.11.6
$ python3 a.py
Traceback (most recent call last):
  File "/home/ubuntu/a.py", line 2, in <module>
    assert f
AssertionError

$ python3 --version
Python 3.12.2
$ python3 a.py
Traceback (most recent call last):
  File "/home/frode/tmp/a.py", line 2, in <module>
    assert f
           ^
AssertionError

summary: - [noble][arm64] FTBFS due to failure in test vlog - Python3
+ [noble] FTBFS due to failure in test vlog - Python3
summary: - [noble] FTBFS due to failure in test vlog - Python3
+ [noble] FTBFS on failure in test vlog - Python3, change of behavior
+ between Python 3.11 and 3.12
Frode Nordahl (fnordahl)
summary: - [noble] FTBFS on failure in test vlog - Python3, change of behavior
- between Python 3.11 and 3.12
+ [noble][arm64] FTBFS on failure in test vlog - Python3, change of
+ behavior between Python 3.11 and 3.12
summary: - [noble][arm64] FTBFS on failure in test vlog - Python3, change of
- behavior between Python 3.11 and 3.12
+ [noble] FTBFS on failure in test vlog - Python3, change of behavior
+ between Python 3.11 and 3.12
Revision history for this message
Frode Nordahl (fnordahl) wrote : Re: [noble] FTBFS on failure in test vlog - Python3, change of behavior between Python 3.11 and 3.12
Frode Nordahl (fnordahl)
summary: - [noble] FTBFS on failure in test vlog - Python3, change of behavior
- between Python 3.11 and 3.12
+ [noble] FTBFS on failure in test vlog - Python3, change of behavior in
+ Python 3.13, backported to 3.12 and 3.11
Revision history for this message
Frode Nordahl (fnordahl) wrote :
Frode Nordahl (fnordahl)
Changed in openvswitch (Ubuntu):
status: In Progress → Fix Committed
Revision history for this message
Frode Nordahl (fnordahl) wrote :

Upstream fix merged to all branches back to 2.17: https://mail.openvswitch.org/pipermail/ovs-dev/2024-April/413137.html

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package openvswitch - 3.3.0-1ubuntu1

---------------
openvswitch (3.3.0-1ubuntu1) noble; urgency=medium

  * d/p/lp-2060434-*.patch: Fix FTBFS caused by change of behavior in
    Python 3.12.x (LP: #2060434).
  * d/tests/run-tests.sh: Use 1G hugepages for dpdk test on arm64
    (LP: #2059400).
  * d/tests/userspace-skip-tests.txt: Skip 802.1ad - vlan_limit to
    unblock s390x autopkgtests pending investigation of (LP: #2060245).

 -- Frode Nordahl <email address hidden> Mon, 08 Apr 2024 14:03:46 +0000

Changed in openvswitch (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.