Your message dated Sat, 03 May 2025 08:35:35 +0000
with message-id <e1ub8lp-009rbu...@fasolo.debian.org>
and subject line Bug#1104527: fixed in home-assistant-bluetooth 1.13.1-2
has caused the Debian Bug report #1104527,
regarding home-assistant-bluetooth: FTBFS: E AssertionError: assert {'address': 
'... wohand), ...} == {'address': '... wohand), ...}
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ow...@bugs.debian.org
immediately.)


-- 
1104527: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1104527
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: src:home-assistant-bluetooth
Version: 1.13.1-1
Severity: serious
Tags: ftbfs trixie sid

Dear maintainer:

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

--------------------------------------------------------------------------------
[...]
 debian/rules clean
dh clean --buildsystem=pybuild
   dh_auto_clean -O--buildsystem=pybuild
   dh_autoreconf_clean -O--buildsystem=pybuild
   dh_clean -O--buildsystem=pybuild
 debian/rules binary
dh binary --buildsystem=pybuild
   dh_update_autotools_config -O--buildsystem=pybuild
   dh_autoreconf -O--buildsystem=pybuild
   dh_auto_configure -O--buildsystem=pybuild
   dh_auto_build -O--buildsystem=pybuild
I: pybuild plugin_pyproject:129: Building wheel for python3.13 with "build" 
module
I: pybuild base:311: python3.13 -m build --skip-dependency-check --no-isolation 
--wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13  
* Building wheel...
Successfully built home_assistant_bluetooth-1.13.1-py3-none-any.whl
I: pybuild plugin_pyproject:144: Unpacking wheel built for python3.13 with 
"installer" module
   dh_auto_test -O--buildsystem=pybuild
I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; 
python3.13 -m pytest --no-cov
============================= test session starts ==============================
platform linux -- Python 3.13.3, pytest-8.3.5, pluggy-1.5.0 -- 
/usr/bin/python3.13
cachedir: .pytest_cache
rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build
configfile: pyproject.toml
plugins: typeguard-4.4.2, cov-5.0.0
collecting ... collected 6 items

tests/test_models.py::test_model PASSED                                  [ 16%]
tests/test_models.py::test_model_from_bleak PASSED                       [ 33%]
tests/test_models.py::test_model_from_scanner FAILED                     [ 50%]
tests/test_models.py::test_construct_service_info_bleak FAILED           [ 66%]
tests/test_models.py::test_from_device_and_advertisement_data FAILED     [ 83%]
tests/test_models.py::test_pyobjc_compat FAILED                          [100%]

=================================== FAILURES ===================================
___________________________ test_model_from_scanner ____________________________

    def test_model_from_scanner():
        switchbot_device = BLEDevice("44:44:33:11:23:45", "wohand", {}, -127)
        switchbot_adv = generate_advertisement_data(
            local_name="wohand", 
service_uuids=["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        )
        now = time.monotonic()
        service_info = BluetoothServiceInfoBleak.from_scan(
            SOURCE_LOCAL, switchbot_device, switchbot_adv, now, True
        )
    
        assert service_info.service_uuids == 
["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        assert service_info.name == "wohand"
        assert service_info.source == SOURCE_LOCAL
        assert service_info.manufacturer is None
        assert service_info.manufacturer_id is None
        assert service_info.time == now
        assert service_info.connectable is True
    
        safe_as_dict = service_info.as_dict()
>       assert safe_as_dict == {
            "address": "44:44:33:11:23:45",
            "advertisement": switchbot_adv,
            "device": switchbot_device,
            "connectable": True,
            "manufacturer_data": {},
            "name": "wohand",
            "rssi": -127,
            "service_data": {},
            "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
            "source": "local",
            "time": now,
            "tx_power": -127,
        }
E       AssertionError: assert {'address': '... wohand), ...} == {'address': 
'... wohand), ...}
E         
E         Omitting 12 identical items, use -vv to show
E         Left contains 1 more item:
E         {'raw': None}
E         
E         Full diff:
E           {...
E         
E         ...Full output truncated (16 lines hidden), use '-vv' to show

tests/test_models.py:79: AssertionError
______________________ test_construct_service_info_bleak _______________________

    def test_construct_service_info_bleak():
        switchbot_device = BLEDevice("44:44:33:11:23:45", "wohand", {}, -127)
        switchbot_adv = generate_advertisement_data(
            local_name="wohand", 
service_uuids=["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        )
        now = time.monotonic()
        service_info = BluetoothServiceInfoBleak(
            name="wohand",
            address="44:44:33:11:23:45",
            rssi=-127,
            manufacturer_data=switchbot_adv.manufacturer_data,
            service_data=switchbot_adv.service_data,
            service_uuids=switchbot_adv.service_uuids,
            source=SOURCE_LOCAL,
            device=switchbot_device,
            advertisement=switchbot_adv,
            connectable=False,
            time=now,
            tx_power=None,
        )
    
        assert service_info.service_uuids == 
["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        assert service_info.name == "wohand"
        assert service_info.source == SOURCE_LOCAL
        assert service_info.manufacturer is None
        assert service_info.manufacturer_id is None
        assert service_info.time == now
        assert service_info.connectable is False
    
        safe_as_dict = service_info.as_dict()
>       assert safe_as_dict == {
            "address": "44:44:33:11:23:45",
            "advertisement": switchbot_adv,
            "device": switchbot_device,
            "connectable": False,
            "manufacturer_data": {},
            "name": "wohand",
            "rssi": -127,
            "service_data": {},
            "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
            "source": "local",
            "time": now,
            "tx_power": None,
        }
E       AssertionError: assert {'address': '... wohand), ...} == {'address': 
'... wohand), ...}
E         
E         Omitting 12 identical items, use -vv to show
E         Left contains 1 more item:
E         {'raw': None}
E         
E         Full diff:
E           {...
E         
E         ...Full output truncated (16 lines hidden), use '-vv' to show

tests/test_models.py:125: AssertionError
___________________ test_from_device_and_advertisement_data ____________________

    def test_from_device_and_advertisement_data():
        """Test creating a BluetoothServiceInfoBleak from a BLEDevice and 
AdvertisementData."""
        switchbot_device = BLEDevice("44:44:33:11:23:45", "wohand", {}, -127)
        switchbot_adv = generate_advertisement_data(
            local_name="wohand", 
service_uuids=["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        )
        now_monotonic = time.monotonic()
        service_info = 
BluetoothServiceInfoBleak.from_device_and_advertisement_data(
            switchbot_device, switchbot_adv, SOURCE_LOCAL, now_monotonic, True
        )
    
        assert service_info.service_uuids == 
["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        assert service_info.name == "wohand"
        assert service_info.source == SOURCE_LOCAL
        assert service_info.manufacturer is None
        assert service_info.manufacturer_id is None
    
        safe_as_dict = service_info.as_dict()
>       assert safe_as_dict == {
            "address": "44:44:33:11:23:45",
            "advertisement": switchbot_adv,
            "device": switchbot_device,
            "connectable": True,
            "manufacturer_data": {},
            "name": "wohand",
            "rssi": -127,
            "service_data": {},
            "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
            "source": "local",
            "time": now_monotonic,
            "tx_power": -127,
        }
E       AssertionError: assert {'address': '... wohand), ...} == {'address': 
'... wohand), ...}
E         
E         Omitting 12 identical items, use -vv to show
E         Left contains 1 more item:
E         {'raw': None}
E         
E         Full diff:
E           {...
E         
E         ...Full output truncated (16 lines hidden), use '-vv' to show

tests/test_models.py:159: AssertionError
______________________________ test_pyobjc_compat ______________________________

    def test_pyobjc_compat():
        class pyobjc_str(str):
            pass
    
        class pyobjc_int(int):
            pass
    
        name = pyobjc_str("wohand")
        address = pyobjc_str("44:44:33:11:23:45")
        rssi = pyobjc_int(-127)
    
        assert name == "wohand"
        assert address == "44:44:33:11:23:45"
        assert rssi == -127
    
        switchbot_device = BLEDevice(address, name, {}, rssi)
        switchbot_adv = generate_advertisement_data(
            local_name=name, 
service_uuids=["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        )
        now = time.monotonic()
        service_info = BluetoothServiceInfoBleak(
            name=str(name),
            address=str(address),
            rssi=rssi,
            manufacturer_data=switchbot_adv.manufacturer_data,
            service_data=switchbot_adv.service_data,
            service_uuids=switchbot_adv.service_uuids,
            source=SOURCE_LOCAL,
            device=switchbot_device,
            advertisement=switchbot_adv,
            connectable=False,
            time=now,
            tx_power=None,
        )
    
        assert service_info.service_uuids == 
["cba20d00-224d-11e6-9fb8-0002a5d5c51b"]
        assert service_info.name == "wohand"
        assert service_info.source == SOURCE_LOCAL
        assert service_info.manufacturer is None
        assert service_info.manufacturer_id is None
        assert service_info.time == now
        assert service_info.connectable is False
    
        safe_as_dict = service_info.as_dict()
>       assert safe_as_dict == {
            "address": "44:44:33:11:23:45",
            "advertisement": switchbot_adv,
            "device": switchbot_device,
            "connectable": False,
            "manufacturer_data": {},
            "name": "wohand",
            "rssi": -127,
            "service_data": {},
            "service_uuids": ["cba20d00-224d-11e6-9fb8-0002a5d5c51b"],
            "source": "local",
            "time": now,
            "tx_power": None,
        }
E       AssertionError: assert {'address': '... wohand), ...} == {'address': 
'... wohand), ...}
E         
E         Omitting 12 identical items, use -vv to show
E         Left contains 1 more item:
E         {'raw': None}
E         
E         Full diff:
E           {...
E         
E         ...Full output truncated (16 lines hidden), use '-vv' to show

tests/test_models.py:219: AssertionError
=========================== short test summary info ============================
FAILED tests/test_models.py::test_model_from_scanner - AssertionError: assert...
FAILED tests/test_models.py::test_construct_service_info_bleak - AssertionErr...
FAILED tests/test_models.py::test_from_device_and_advertisement_data - Assert...
FAILED tests/test_models.py::test_pyobjc_compat - AssertionError: assert {'ad...
========================= 4 failed, 2 passed in 0.07s ==========================
E: pybuild pybuild:389: test: plugin pyproject failed with: exit code=1: cd 
/<<PKGBUILDDIR>>/.pybuild/cpython3_3.13/build; python3.13 -m pytest --no-cov
dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.13 
returned exit code 13
make: *** [debian/rules:6: binary] Error 25
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202505/

About the archive rebuild: The build was made on virtual machines from AWS,
using sbuild and a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and add an affects on src:home-assistant-bluetooth, so that this is 
still
visible in the BTS web page for this package.

Thanks.

--- End Message ---
--- Begin Message ---
Source: home-assistant-bluetooth
Source-Version: 1.13.1-2
Done: Ananthu C V <weepingcl...@debian.org>

We believe that the bug you reported is fixed in the latest version of
home-assistant-bluetooth, which is due to be installed in the Debian FTP 
archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1104...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Ananthu C V <weepingcl...@debian.org> (supplier of updated 
home-assistant-bluetooth package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Sat, 03 May 2025 13:33:11 +0530
Source: home-assistant-bluetooth
Architecture: source
Version: 1.13.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Ananthu C V <weepingcl...@debian.org>
Closes: 1104527
Changes:
 home-assistant-bluetooth (1.13.1-2) unstable; urgency=medium
 .
   * Team upload.
   * Add patch for habluetooth 3.42.0 compatibility in tests (Closes: #1104527)
   * Bump Standards-Version to 4.7.2 (no changes needed)
Checksums-Sha1:
 4dea3686cc0c544e09d06e338ab5ac1a17fb642e 2464 
home-assistant-bluetooth_1.13.1-2.dsc
 f492e9e32d0ad82820c9b7aa4e5c2f3456d2b783 3188 
home-assistant-bluetooth_1.13.1-2.debian.tar.xz
 db4c4a1c9a542195cfb60ab48b28f7f2f7d70aad 11275 
home-assistant-bluetooth_1.13.1-2_source.buildinfo
Checksums-Sha256:
 25f2c995557d34047a60112943590c4349aa64ef1283c942f694c0de85715155 2464 
home-assistant-bluetooth_1.13.1-2.dsc
 df8820a82af487ab56f922ac7767e57b08037a740db191dc46ba362b6a9a1c0c 3188 
home-assistant-bluetooth_1.13.1-2.debian.tar.xz
 048ea76c5d2b67d7372afb0a83018e3dd9092f3e6b284048ba1d87198e4460f8 11275 
home-assistant-bluetooth_1.13.1-2_source.buildinfo
Files:
 72902c9e9d21ef4af10b750e67348ffb 2464 python optional 
home-assistant-bluetooth_1.13.1-2.dsc
 e3c1d6846f06a9858e8c297842f986e8 3188 python optional 
home-assistant-bluetooth_1.13.1-2.debian.tar.xz
 d92ff2b969ef5674847923dfea3cecf7 11275 python optional 
home-assistant-bluetooth_1.13.1-2_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEUtW9Dn1NsITjS1hl1KQc+t2yDbUFAmgVz6sACgkQ1KQc+t2y
DbXj8w/9G/LDygQcZlkYD9iRWVsFbNF96gUnlePoa52wPEeXbHEqdN5Vtwc5RY7e
YTuFBuWCC1gEwzlSXjTzbV/W+uEkVY5i46YFLYEHgCiJA8efn/f9+Mp5jI/ZTwZi
W/byVKvQBOCDQE+QJMmJoU25nskx5fq5ZmPqS6lc4Gfg+sxyTCI2Pr37s1/3a9Uu
zQhov1RiSqhtgPHomwPj2cDKYn0OeXQ6nAmxvwSmZB7LaJ7lH3OnupleGjwjwFCZ
z8wfa3nb69e9nzhbklj+R5pAa7UwlqIcJwVmoLSiUwPubEjbtLWaquArEFuvJQ6y
ogDS2uTGlTJfLAKfEvGKYhEc2UyNn0+XFZikePU+n80GHCRSe7JpP4nlNHjvUURg
xm0ryma9ghiQNpSUf97PPgFRO5k6FwRhBWHI0sqx6DiJtFFEa8KKupts+1R8/l4J
kJlCRYwEows8nTdPQMCfZ9LG5ZDiPwZ4buQNhEkMXMhJQKhkqLAsVX3+EhariHJt
rEXUQ3b2RDJDIUoJjIRSEhpiBn9PMYE0AWSq7TDBSFn6JnIXHeiGESftUjDrpu6i
R0Z6ynXXtMywe+bbbofYutlYd+EFxsjdAJhs0P3s7DVvQvHGwkqPs8cQxMdZsDbs
dF4ouRYfh2yvfOutBTgiBtNyHwfzRTONaMqXg5uwxmYJTuAFVdE=
=H57l
-----END PGP SIGNATURE-----

Attachment: pgpY97RLOrX0A.pgp
Description: PGP signature


--- End Message ---

Reply via email to