Flaky test: test_update_allows_new_connections_while_updating_connections_in_db

Bug #1989567 reported by Anton Troyanov
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
MAAS
Fix Released
High
Alexsander de Souza

Bug Description

It seems that this test is flaky?
Failed on [master 750c81465] Merge into destination for testing the build.

FAIL: maasserver.tests.test_ipc.TestIPCCommunication.test_update_allows_new_connections_while_updating_connections_in_db
[2022-09-14T09:05:34.259Z] maasserver.tests.test_ipc.TestIPCCommunication.test_update_allows_new_connections_while_updating_connections_in_db
[2022-09-14T09:05:34.259Z] ----------------------------------------------------------------------
[2022-09-14T09:05:34.259Z] testtools.testresult.real._StringException: testtools.testresult.real._StringException: Seeds: {{{MAAS_RAND_SEED=6befe08c3988273a PYTHONHASHSEED=3758890546}}}
[2022-09-14T09:05:34.259Z] Twisted logs: {{{Worker pid:96 IPC connected.Worker pid:96 opened RPC listener on port:470.Worker pid:96 registered RPC connection to ('chp6sr', 'fdb9:6ae7:5c64:e1f4:8839:1975:a597:68a5', 321).Worker pid:96 registered RPC connection to ('chp6sr', 'fdb9:6ae7:5c64:e1f4:8839:1975:a597:68a5', 101).Worker pid:96 registered RPC connection to ('chp6sr', 'fdb9:6ae7:5c64:e1f4:8839:1975:a597:68a5', 321).}}}
[2022-09-14T09:05:34.259Z]
[2022-09-14T09:05:34.259Z] Traceback (most recent call last):
[2022-09-14T09:05:34.259Z] File "/run/build/checkout/src/maastesting/crochet.py", line 149, in wrapper
[2022-09-14T09:05:34.259Z] return eventual_result.wait(timeout)
[2022-09-14T09:05:34.259Z] File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 198, in wait
[2022-09-14T09:05:34.259Z] result.raiseException()
[2022-09-14T09:05:34.259Z] File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
[2022-09-14T09:05:34.259Z] raise self.value.with_traceback(self.tb)
[2022-09-14T09:05:34.259Z] File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
[2022-09-14T09:05:34.259Z] result = current_context.run(gen.send, result)
[2022-09-14T09:05:34.259Z] File "/run/build/checkout/src/maasserver/tests/test_ipc.py", line 560, in test_update_allows_new_connections_while_updating_connections_in_db
[2022-09-14T09:05:34.259Z] self.assertEqual(
[2022-09-14T09:05:34.259Z] File "/usr/lib/python3.10/unittest/case.py", line 845, in assertEqual
[2022-09-14T09:05:34.259Z] assertion_func(first, second, msg=msg)
[2022-09-14T09:05:34.259Z] File "/usr/lib/python3.10/unittest/case.py", line 838, in _baseAssertEqual
[2022-09-14T09:05:34.259Z] raise self.failureException(msg)
[2022-09-14T09:05:34.259Z] AssertionError: 2 != 3

Related branches

description: updated
summary: + Flaky test:
test_update_allows_new_connections_while_updating_connections_in_db
Changed in maas:
status: New → Triaged
Changed in maas:
milestone: none → 3.4.0
importance: Undecided → High
Revision history for this message
Jerzy Husakowski (jhusakowski) wrote :

Is this still reproducible?

Changed in maas:
milestone: 3.4.0 → 3.5.0
status: Triaged → Incomplete
Revision history for this message
Alexsander de Souza (alexsander-souza) wrote :

yes

FAIL: maasserver.tests.test_ipc.TestIPCCommunication.test_update_allows_new_connections_while_updating_connections_in_db
----------------------------------------------------------------------
Exception: Seeds: {{{MAAS_RAND_SEED=4072d0af614e3d4a PYTHONHASHSEED=2165315492}}}

Traceback (most recent call last):
  File "/work/maas-dev/src/maastesting/crochet.py", line 144, in wrapper
    return eventual_result.wait(timeout)
  File "/usr/lib/python3/dist-packages/crochet/_eventloop.py", line 198, in wait
    result.raiseException()
  File "/usr/lib/python3/dist-packages/twisted/python/failure.py", line 475, in raiseException
    raise self.value.with_traceback(self.tb)
  File "/usr/lib/python3/dist-packages/twisted/internet/defer.py", line 1660, in _inlineCallbacks
    result = current_context.run(gen.send, result)
  File "/work/maas-dev/src/maasserver/tests/test_ipc.py", line 631, in test_update_allows_new_connections_while_updating_connections_in_db
    self.assertEqual(
AssertionError: 3 != 2

Changed in maas:
status: Incomplete → Triaged
Changed in maas:
assignee: nobody → Alexsander de Souza (alexsander-souza)
Changed in maas:
status: Triaged → Fix Committed
Changed in maas:
milestone: 3.5.0 → 3.5.0-beta1
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.