Bug#1091861: pytango: flaky autopkgtest: Timeout, waiting for event

Paul Gevers elbrus at debian.org
Wed Jan 1 17:38:04 GMT 2025


Source: pytango
Version: 10.0.0-2
Severity: serious
User: debian-ci at lists.debian.org
Usertags: flaky

Dear maintainer(s),

I looked at the results of the autopkgtest of your package because it 
was blocking gcc-14. I noticed that it regularly fails.

Because the unstable-to-testing migration software now blocks on
regressions in testing, flaky tests, i.e. tests that flip between
passing and failing without changes to the list of installed packages,
are causing people unrelated to your package to spend time on these
tests.

Don't hesitate to reach out if you need help and some more information
from our infrastructure.

Paul

https://ci.debian.net/packages/p/pytango/testing/amd64/55919644/

224s =================================== FAILURES 
===================================
224s _________________ test_push_event_with_event_callback[Asyncio] 
_________________
224s event_device = EventDevice(test/nodb/eventdevice)
224s
224s     def test_push_event_with_event_callback(event_device):
224s         string = StringIO()
224s         ec = EventCallback(fd=string)
224s
224s         if event_device.get_green_mode() == GreenMode.Asyncio:
224s             with pytest.warns(DeprecationWarning):
224s >               __test_push_event_with_timestamp(event_device, ec, 
string)
224s
224s tests/test_event.py:505:
224s _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
_ _ _ _ _ _
224s
224s event_device = EventDevice(test/nodb/eventdevice)
224s cb = <tango.utils.EventCallback object at 0x7f70876d7620>
224s string = <_io.StringIO object at 0x7f708799fb80>
224s
224s     def __test_push_event_with_timestamp(event_device, cb, string):
224s         # to reduce tests amount here we test only change event
224s         eid = event_device.subscribe_event("attr", 
EventType.CHANGE_EVENT, cb, wait=True)
224s         # trigger an event
224s         event_device.command_inout("send_events", 
EventType.CHANGE_EVENT, wait=True)
224s         # wait for tango event
224s         for retry_count in range(MAX_RETRIES):
224s             event_device.read_attribute("state", wait=True)
224s             if len(cb.get_events()) > 5:
224s                 break
224s             time.sleep(DELAY_PER_RETRY)
224s         if retry_count + 1 >= MAX_RETRIES:
224s             timeout_seconds = retry_count * DELAY_PER_RETRY
224s >           pytest.fail(
224s                 f"Timeout, waiting for event, after 
{timeout_seconds}sec over {MAX_RETRIES} retries. "
224s                 f"Occasionally happens, probably due to CI test 
runtime environment"
224s             )
224s E           Failed: Timeout, waiting for event, after 
39.800000000000004sec over 200 retries. Occasionally happens, probably 
due to CI test runtime environment
224s
224s tests/test_event.py:473: Failed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/debian-science-maintainers/attachments/20250101/24ebd138/attachment-0001.sig>


More information about the debian-science-maintainers mailing list