TestPostgresListenerService test fails erroneously in CI

Bug #1825255 reported by Kit Randel
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
Medium
Adam Collard

Bug Description

maasserver.tests.test_listener.TestPostgresListenerService.test__calls_handler_on_notification_with_delayed_registration is potentially a bit flakey and fails erroneously in CI sometimes.

Tags: flaky-test
Alberto Donato (ack)
Changed in maas:
status: New → Triaged
importance: Undecided → Medium
Revision history for this message
Alberto Donato (ack) wrote :

[2020-06-25T12:44:42.094Z] ERROR: maasserver.tests.test_listener.TestPostgresListenerService.test_calls_handler_on_notification
[2020-06-25T12:44:42.094Z] ----------------------------------------------------------------------
[2020-06-25T12:44:42.094Z] Traceback (most recent call last):
[2020-06-25T12:44:42.094Z] testtools.testresult.real._StringException: Twisted logs: {{{Listening for database notifications.Connection closed.}}}
[2020-06-25T12:44:42.094Z]
[2020-06-25T12:44:42.094Z] Traceback (most recent call last):
[2020-06-25T12:44:42.094Z] File "/run/build/maas/src/maastesting/runtest.py", line 126, in _run_user
[2020-06-25T12:44:42.094Z] result = function(*args, **kwargs)
[2020-06-25T12:44:42.094Z] File "/run/build/maas/.ve/lib/python3.6/site-packages/testtools/testcase.py", line 719, in _run_test_method
[2020-06-25T12:44:42.094Z] return self._get_test_method()()
[2020-06-25T12:44:42.094Z] File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 461, in wrapper
[2020-06-25T12:44:42.094Z] return eventual_result.wait(timeout)
[2020-06-25T12:44:42.094Z] File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 231, in wait
[2020-06-25T12:44:42.094Z] result.raiseException()
[2020-06-25T12:44:42.094Z] File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 385, in raiseException
[2020-06-25T12:44:42.094Z] raise self.value.with_traceback(self.tb)
[2020-06-25T12:44:42.094Z] File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1386, in _inlineCallbacks
[2020-06-25T12:44:42.094Z] result = g.send(result)
[2020-06-25T12:44:42.094Z] File "/run/build/maas/src/maasserver/tests/test_listener.py", line 200, in test_calls_handler_on_notification
[2020-06-25T12:44:42.094Z] yield dv.get(timeout=2)
[2020-06-25T12:44:42.094Z] twisted.internet.defer.CancelledError

tags: added: flaky-test
Changed in maas:
status: Triaged → Fix Committed
milestone: none → 3.3.0
assignee: nobody → Adam Collard (adam-collard)
Changed in maas:
milestone: 3.3.0 → 3.3.0-beta1
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.