[Python-modules-team] Bug#947712: autopkgtest regressions in python-dbusmock with newer network-manager 1.22.2-1

Michael Biebl biebl at debian.org
Thu Jan 9 11:15:47 GMT 2020


Hi Martin, hi Thomas

Am 09.01.20 um 10:00 schrieb Thomas Haller:
> On Wed, 2020-01-08 at 23:40 +0100, Martin Pitt wrote:
>> Hello Michael and Thomas,
>>
>> Michael Biebl [2020-01-08 19:42 +0100]:
>>>> The latest update of network-manager causes an autopkgtest
>>>> regression in
>>>> python-dbusmock.
>>>>
>>>> https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-dbusmock/3793816/log.gz
>>>>
>>>> =================================================================
>>>> =====
>>>> FAIL: test_eth_and_wifi (__main__.TestNetworkManager)
>>>> ---------------------------------------------------------------
>>>> -------
>>>> Traceback (most recent call last):
>>>>   File "test_networkmanager.py", line 138, in test_eth_and_wifi
>>>>     self.assertRegex(out, r'eth0.*\sdisconnected')
>>>> AssertionError: Regex didn't match: 'eth0.*\\sdisconnected' not
>>>> found in 'DEVICE  TYPE      STATE    CONNECTION
>>>> \neth0    ethernet  unknown  
>>>> --         \nwlan0   wifi      unknown  --         \n'
>>
>> Note that this may look similar to the recent StateReason issue fixed
>> in
>> https://github.com/martinpitt/python-dbusmock/commit/bd51d9108e08
>> but it's different.
> 
> Hi,
> 
> To me it seems not different and I think this commit is missing.
> 
> See https://salsa.debian.org/python-team/modules/python-dbusmock/blob/master/dbusmock/templates/networkmanager.py#L281
> which lacks commit bd51d9108e087e5b3327f8c67bc58b503d7f9915
> 
> (although, I am not clear which python-dbusmock version Michael was
> using exactly. However, bd51d9108e087e5b3327f8c67bc58b503d7f9915 is not
> yet part of any python-dbusmock release, so that sounds plausible to be
> the issue).

I was using python-dbusmock 0.18.3-2 as available in the Debian sid.

For testing purposes I now tried to rebuild rebuild python-dbusmock with
bd51d9108e087e5b3327f8c67bc58b503d7f9915 applied.
Unfortunately, this makes the python-dbusmock test-suite (still) fail,
although the error message is slightly different for some of the tests.
NetworkManager is version 1.22.2
Quoting the full error message here.
The "dbus.exceptions.DBusException:
org.freedesktop.NetworkManager.Device.Wireless.UnknownProperty: no such
property StateReason" errors are new


> ======================================================================
> ERROR: test_add_connection (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 292, in test_add_connection
>     con2 = self.settings.AddConnection(settings)
>   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
>     return self._connection.call_blocking(self._named_service,
>   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
>     reply_message = self.send_message_with_reply_and_block(
> dbus.exceptions.DBusException: org.freedesktop.NetworkManager.Device.Wireless.UnknownProperty: no such property StateReason
> 
> ======================================================================
> ERROR: test_remove_connection (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 339, in test_remove_connection
>     self.dbusmock.AddActiveConnection(
>   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
>     return self._connection.call_blocking(self._named_service,
>   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
>     reply_message = self.send_message_with_reply_and_block(
> dbus.exceptions.DBusException: org.freedesktop.NetworkManager.Device.Wireless.UnknownProperty: no such property StateReason
> 
> ======================================================================
> ERROR: test_wifi_with_active_connection (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 242, in test_wifi_with_active_connection
>     active_con1 = self.dbusmock.AddActiveConnection(
>   File "/usr/lib/python3/dist-packages/dbus/proxies.py", line 141, in __call__
>     return self._connection.call_blocking(self._named_service,
>   File "/usr/lib/python3/dist-packages/dbus/connection.py", line 652, in call_blocking
>     reply_message = self.send_message_with_reply_and_block(
> dbus.exceptions.DBusException: org.freedesktop.NetworkManager.Device.Wireless.UnknownProperty: no such property StateReason
> 
> ======================================================================
> FAIL: test_eth_and_wifi (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 138, in test_eth_and_wifi
>     self.assertRegex(out, r'eth0.*\sdisconnected')
> AssertionError: Regex didn't match: 'eth0.*\\sdisconnected' not found in 'DEVICE  TYPE      STATE    CONNECTION \neth0    ethernet  unknown  --         \nwlan0   wifi      unknown  --         \n'
> 
> ======================================================================
> FAIL: test_one_eth_connected (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 115, in test_one_eth_connected
>     self.assertRegex(out, r'eth0.*\sconnected')
> AssertionError: Regex didn't match: 'eth0.*\\sconnected' not found in 'DEVICE  TYPE      STATE    CONNECTION \neth0    ethernet  unknown  --         \n'
> 
> ======================================================================
> FAIL: test_one_eth_disconnected (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 109, in test_one_eth_disconnected
>     self.assertRegex(out, r'eth0.*\sdisconnected')
> AssertionError: Regex didn't match: 'eth0.*\\sdisconnected' not found in 'DEVICE  TYPE      STATE    CONNECTION \neth0    ethernet  unknown  --         \n'
> 
> ======================================================================
> FAIL: test_one_wifi_with_accesspoints (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 155, in test_one_wifi_with_accesspoints
>     self.assertRegex(out, r'wlan0.*\sconnected')
> AssertionError: Regex didn't match: 'wlan0.*\\sconnected' not found in 'DEVICE  TYPE  STATE    CONNECTION \nwlan0   wifi  unknown  --         \n'
> 
> ======================================================================
> FAIL: test_two_eth (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 123, in test_two_eth
>     self.assertRegex(out, r'eth0.*\sdisconnected')
> AssertionError: Regex didn't match: 'eth0.*\\sdisconnected' not found in 'DEVICE  TYPE      STATE    CONNECTION \neth0    ethernet  unknown  --         \neth1    ethernet  unknown  --         \n'
> 
> ======================================================================
> FAIL: test_two_wifi_with_accesspoints (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 179, in test_two_wifi_with_accesspoints
>     self.assertRegex(out, r'wlan0.*\sconnected')
> AssertionError: Regex didn't match: 'wlan0.*\\sconnected' not found in 'DEVICE  TYPE  STATE    CONNECTION \nwlan0   wifi  unknown  --         \nwlan1   wifi  unknown  --         \n'
> 
> ======================================================================
> FAIL: test_wifi_without_access_points (test_networkmanager.TestNetworkManager)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build/tests/test_networkmanager.py", line 130, in test_wifi_without_access_points
>     self.assertRegex(out, r'wlan0.*\sconnected')
> AssertionError: Regex didn't match: 'wlan0.*\\sconnected' not found in 'DEVICE  TYPE  STATE    CONNECTION \nwlan0   wifi  unknown  --         \n'
> 
> ----------------------------------------------------------------------
> Ran 114 tests in 29.199s
> 
> FAILED (SKIP=20, errors=3, failures=7)
> E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /home/michael/debian/build-area/python-dbusmock-0.18.3/.pybuild/cpython3_3.8/build; python3.8 -m nose -v tests
> dh_auto_test: pybuild --test --test-nose -i python{version} -p "3.8 3.7" returned exit code 13
> make: *** [debian/rules:4: build] Fehler 255
> dpkg-buildpackage: Fehler: Unterprozess debian/rules build lieferte Exitstatus 2



-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200109/fc4cc2b1/attachment-0001.sig>


More information about the Python-modules-team mailing list