Bug#1016749: pytango: autopkgtest failure on armel
Paul Gevers
elbrus at debian.org
Sat Aug 6 15:17:48 BST 2022
Source: pytango
Version: 9.3.4-2
Severity: serious
User: debian-ci at lists.debian.org
Usertags: fails-always
Dear maintainer(s),
You recently added an autopkgtest to your package pytango, great.
However, it fails on armel. Currently this failure is blocking the
migration to testing [1]. Can you please investigate the situation and
fix it?
I copied some of the output at the bottom of this report.
More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation
Paul
[1] https://qa.debian.org/excuses.php?package=pytango
https://ci.debian.net/data/autopkgtest/testing/armel/p/pytango/23495376/log.gz
=================================== FAILURES
===================================
___________________ test_subscribe_change_event[Synchronous]
___________________
event_device = EventDevice(test/nodb/eventdevice)
def test_subscribe_change_event(event_device):
results = []
def callback(evt):
results.append(evt.attr_value.value)
# Subscribe
eid = event_device.subscribe_event(
"attr", EventType.CHANGE_EVENT, callback, wait=True)
assert eid == 1
# Trigger an event
event_device.command_inout("send_event", wait=True)
# Wait for tango event
retries = 20
for _ in range(retries):
event_device.read_attribute("state", wait=True)
if len(results) > 1:
break
time.sleep(0.05)
# Test the event values
> assert results == [0., 1.]
E assert [0.0] == [0.0, 1.0]
E Right contains one more item: 1.0
E Full diff:
E - [0.0, 1.0]
E + [0.0]
tests/test_event.py:115: AssertionError
---------------------------- Captured stdout setup
-----------------------------
Ready to accept request
---------------------------- Captured stderr setup
-----------------------------
Can't create notifd event supplier. Notifd event not available
_________________ test_push_event_with_timestamp[Synchronous]
__________________
event_device = EventDevice(test/nodb/eventdevice)
def test_push_event_with_timestamp(event_device):
string = StringIO()
ec = EventCallback(fd=string)
# Subscribe
eid = event_device.subscribe_event(
"attr", EventType.CHANGE_EVENT, ec, wait=True)
assert eid == 1
# Trigger an event
event_device.command_inout("send_event_with_timestamp", wait=True)
# Wait for tango event
retries = 20
for _ in range(retries):
event_device.read_attribute("state", wait=True)
if len(ec.get_events()) > 1:
break
time.sleep(0.05)
# Test the event values and timestamp
results = [evt.attr_value.value for evt in ec.get_events()]
> assert results == [0., 2.]
E assert [0.0] == [0.0, 2.0]
E Right contains one more item: 2.0
E Full diff:
E - [0.0, 2.0]
E + [0.0]
tests/test_event.py:191: AssertionError
---------------------------- Captured stdout setup
-----------------------------
Ready to accept request
---------------------------- Captured stderr setup
-----------------------------
Can't create notifd event supplier. Notifd event not available
=============================== warnings summary
===============================
tests/test_client.py:19
/tmp/autopkgtest-lxc.q395dj8v/downtmp/autopkgtest_tmp/tests/test_client.py:19:
DeprecationWarning: The distutils package is deprecated and slated for
removal in Python 3.12. Use setuptools or check PEP 632 for potential
alternatives
from distutils.spawn import find_executable
-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info
============================
FAILED tests/test_event.py::test_subscribe_change_event[Synchronous]
FAILED tests/test_event.py::test_push_event_with_timestamp[Synchronous]
====== 2 failed, 1033 passed, 26 xfailed, 1 warning in 263.04s (0:04:23)
=======
autopkgtest [07:52:48]: test command1
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20220806/4acb19eb/attachment.sig>
More information about the debian-science-maintainers
mailing list