Bug#1057564: gnome-bluetooth3: FTBFS: failing tests

2023-12-30 Thread Simon McVittie
Control: unmerge 1057564 1058116
Control: reassign 1057564 python3-dbusmock 0.30.1-1
Control: retitle 1057564 python3-dbusmock: inconsistent signature for 
PairDevice causes gnome-bluetooth3 FTBFS
Control: forwarded 1057564 
https://github.com/martinpitt/python-dbusmock/issues/193
Control: affects 1057564 + src:gnome-bluetooth3
Control: reassign 1058116 gnome-bluetooth3 42.7-1
Control: retitle 1058116 gnome-bluetooth3: FTBFS: multiple tests time out with 
dbusmock >= 0.30.0
Control: forwarded 1058116 
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/issues/142

On Sat, 30 Dec 2023 at 01:53:56 +, Simon McVittie wrote:
> On Tue, 05 Dec 2023 at 23:05:55 +0100, Santiago Vila wrote:
> > During a rebuild of all packages in unstable, your package failed to build:
> 
> This seems to be another casualty of recent updates to python-dbusmock.
> With python-dbusmock downgraded to 0.29.1-2, all tests pass and
> gnome-bluetooth3/42.7-1 builds successfully. With 0.30.0-2 (trixie)
> or 0.30.1-1 (sid), several tests time out.

I found a solution for the failure with dbusmock 0.30.0-2 and sent it
upstream to
https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/merge_requests/175, and
it works with dbusmock 0.30.0-2, but unfortunately one test still
fails with dbusmock 0.30.1-1. As far as I can see, that's genuinely a
dbusmock bug.

Because you can't clone a merged bug, I'm unmerging the two equivalent
FTBFS bug reports, and arbitrarily choosing to use:

- #1058116 to represent the gnome-bluetooth3 test failure with dbusmock
  0.30.0-2, which is genuinely a gnome-bluetooth3 bug, for which I've
  proposed a fix in
  https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/merge_requests/175.
  The symptom is that multiple tests time out.

- #1057564 to represent the gnome-bluetooth3 test failure with dbusmock
  0.30.1-1, even after applying GNOME/gnome-bluetooth!175, which as far
  as I can see is a dbusmock regression, reported as
  https://github.com/martinpitt/python-dbusmock/issues/193
  (I haven't tested a patch for this, I hope it's as simple as removing
  the obsolete 3rd argument in one call to PairDevice()).
  The symptom is that one test fails with
  "org.freedesktop.DBus.Error.InvalidArgs: Invalid arguments: Fewer
  items found in D-Bus signature than in Python arguments".

smcv



Bug#1057564: gnome-bluetooth3: FTBFS: failing tests

2023-12-29 Thread Simon McVittie
Control: reassign -1 src:gnome-bluetooth3,src:python-dbusmock
Control: found -1 python-dbusmock/0.30.0-2
Control: found -1 python-dbusmock/0.30.1-1
Control: found -1 gnome-bluetooth3/42.7-1

On Tue, 05 Dec 2023 at 23:05:55 +0100, Santiago Vila wrote:
> During a rebuild of all packages in unstable, your package failed to build:

This seems to be another casualty of recent updates to python-dbusmock.
With python-dbusmock downgraded to 0.29.1-2, all tests pass and
gnome-bluetooth3/42.7-1 builds successfully. With 0.30.0-2 (trixie)
or 0.30.1-1 (sid), several tests time out.

smcv



Bug#1057564: gnome-bluetooth3: FTBFS: failing tests

2023-12-05 Thread Santiago Vila

Package: src:gnome-bluetooth3
Version: 42.7-1
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:


[...]
 debian/rules binary
dh binary
   dh_update_autotools_config
   dh_autoreconf
   debian/rules override_dh_auto_configure
make[1]: Entering directory '/<>'
dh_auto_configure -- \
-Dgtk_doc=true \
-Dintrospection=true
cd obj-x86_64-linux-gnu && DEB_PYTHON_INSTALL_LAYOUT=deb LC_ALL=C.UTF-8 
meson setup .. --wrap-mode=nodownload --buildtype=plain --prefix=/usr --sysconfdir=/etc 
--localstatedir=/var --libdir=lib/x86_64-linux-gnu -Dpython.bytecompile=-1 
-Dgtk_doc=true -Dintrospection=true
The Meson build system
Version: 1.3.0
Source dir: /<>
Build dir: /<>/obj-x86_64-linux-gnu

[... snipped ...]


OK
==

 4/17 
test: Tests.test_connect
start time:   16:32:54
duration: 30.04s
result:   exit status 0
command:  top_builddir=/<>/obj-x86_64-linux-gnu 
ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 
UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 MALLOC_PERTURB_=248 
top_srcdir=/<> LD_LIBRARY_PATH=/<>/obj-x86_64-linux-gnu/lib /usr/bin/python3 
/<>/obj-x86_64-linux-gnu/../tests/integration-test.py Tests.test_connect
--- stdout ---
1701793974.786 AddAdapter "hci0" "my-computer"
1701793974.787 emit / org.freedesktop.DBus.ObjectManager.InterfacesAdded "/org/bluez/hci0" {"org.bluez.Adapter1": {"UUIDs": ["1200--1000-8000-00805f9b34fb", "1800--1000-8000-00805f9b34fb", "1801--1000-8000-00805f9b34fb", 
"110e--1000-8000-00805f9b34fb", "110c--1000-8000-00805f9b34fb"], "Discoverable": False, "Discovering": False, "Pairable": True, "Powered": True, "Address": "00:01:02:03:04:05", "AddressType": "public", 
"Alias": "my-computer", "Modalias": "usb:v1D6Bp0245d050A", "Name": "my-computer", "Class": 268, "DiscoverableTimeout": 180, "PairableTimeout": 0}}
1701793974.787 AddDevice "hci0" "11:22:33:44:55:66" "My Phone"
1701793974.788 emit / org.freedesktop.DBus.ObjectManager.InterfacesAdded "/org/bluez/hci0/dev_11_22_33_44_55_66" {"org.bluez.Device1": {"Address": "11:22:33:44:55:66", "AddressType": "public", "Name": "My Phone", "Icon": "", "Class": 0, "Appearance": 0, "UUIDs": [], 
"Paired": False, "Connected": False, "Trusted": False, "Blocked": False, "WakeAllowed": False, "Alias": "My Phone", "Adapter": "/org/bluez/hci0", "LegacyPairing": False, "Modalias": "", "RSSI": -79, "TxPower": 0, "ManufacturerData": [], 
"ServiceData": [], "ServicesResolved": False, "AdvertisingFlags": [], "AdvertisingData": []}}
1701793974.863 GetAll /org/freedesktop/UPower org.freedesktop.UPower
1701793974.863 GetManagedObjects
1701793974.864 EnumerateDevices
1701793974.864 Connect
1701793974.864 emit /org/bluez/hci0/dev_11_22_33_44_55_66 
org.freedesktop.DBus.Properties.PropertiesChanged "org.bluez.Device1" 
{"Connected": True} []
1701793974.865 Disconnect
1701793974.865 emit /org/bluez/hci0/dev_11_22_33_44_55_66 
org.freedesktop.DBus.Properties.PropertiesChanged "org.bluez.Device1" 
{"Connected": False} []
Running out-of-process test test_connect
--- stderr ---
.
--
Ran 1 test in 0.417s

OK
==

 5/17 
test: Tests.test_connectable_devices
start time:   16:33:24
duration: 30.05s
result:   exit status 0
command:  top_builddir=/<>/obj-x86_64-linux-gnu 
ASAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1 
UBSAN_OPTIONS=halt_on_error=1:abort_on_error=1:print_summary=1:print_stacktrace=1 top_srcdir=/<> 
LD_LIBRARY_PATH=/<>/obj-x86_64-linux-gnu/lib MALLOC_PERTURB_=175 /usr/bin/python3 
/<>/obj-x86_64-linux-gnu/../tests/integration-test.py Tests.test_connectable_devices
--- stdout ---
1701794004.828 AddAdapter "hci0" "my-computer"
1701794004.829 emit / org.freedesktop.DBus.ObjectManager.InterfacesAdded "/org/bluez/hci0" {"org.bluez.Adapter1": {"UUIDs": ["1200--1000-8000-00805f9b34fb", "1800--1000-8000-00805f9b34fb", "1801--1000-8000-00805f9b34fb", 
"110e--1000-8000-00805f9b34fb", "110c--1000-8000-00805f9b34fb"], "Discoverable": False, "Discovering": False, "Pairable": True, "Powered": True, "Address": "00:01:02:03:04:05", "AddressType": "public", 
"Alias": "my-computer", "Modalias": "usb:v1D6Bp0245d050A", "Name": "my-computer", "Class": 268, "DiscoverableTimeout":