#1144441 receptor: test flaky FTBFS: tests/test_workunit.py FF: AssertionError: assert 'Job Submitted' == 'Job Started'

Package:
receptor
Source:
receptor
Description:
Daemon for controlling a mesh of nodes and workers
Submitter:
Simon Josefsson
Date:
2026-08-15 08:17:02 UTC
Severity:
normal
#1144441#5
Date:
2026-08-15 08:17:37 UTC
From:
To:
Hi!  This package has what appears to be a flaky test FTBFS, causing
testing migration blocking.  Could be a race condition, maybe the 5
second sleep isn't enough for a slow platform like armhf.

This seems entirely different than https://bugs.debian.org/1142928 so
reporting it separately.

https://ci.debian.net/packages/r/receptor/testing/armhf/74326511/#L192966

951s dh_auto_test: warning: warning: pybuild does not support building out of source tree. In source building enforced.
952s I: pybuild pybuild:390: mkdir -p /tmp/autopkgtest.CHKxtH/autopkgtest_tmp/.pybuild/cpython3_3.13_receptorctl/build/tests; cp -r /tmp/autopkgtest.CHKxtH/autopkgtest_tmp/receptorctl/tests/* /tmp/autopkgtest.CHKxtH/autopkgtest_tmp/.pybuild/cpython3_3.13_receptorctl/build/tests/;
952s I: pybuild base:385: cd /tmp/autopkgtest.CHKxtH/autopkgtest_tmp/.pybuild/cpython3_3.13_receptorctl/build; python3.13 -m pytest tests
952s ============================= test session starts ==============================
952s platform linux -- Python 3.13.14, pytest-9.1.1, pluggy-1.6.0
952s rootdir: /tmp/autopkgtest.CHKxtH/autopkgtest_tmp/.pybuild/cpython3_3.13_receptorctl/build
952s configfile: pyproject.toml
952s plugins: typeguard-4.4.4
952s collected 29 items
952s
963s tests/test_cli.py ....sssss......                                        [ 51%]
971s tests/test_connection.py ...........                                     [ 89%]
988s tests/test_mesh.py .                                                     [ 93%]
995s tests/test_workunit.py FF                                                [100%]
995s
995s =================================== FAILURES ===================================
995s ______________________ TestWorkUnit.test_workunit_simple _______________________
995s
995s self = <tests.test_workunit.TestWorkUnit object at 0xf6366c90>
995s invoke_as_json = <function invoke_as_json.<locals>.f_invoke_as_json at 0xf63401b8>
995s default_receptor_controller_socket_file = <receptorctl.socket_interface.ReceptorControl object at 0xf6340620>
995s wait_for_work_finished = <function wait_for_work_finished.<locals>._wait_for_work_finished at 0xf63408e8>
995s
995s     def test_workunit_simple(
995s         self,
995s         invoke_as_json,
995s         default_receptor_controller_socket_file,
995s         wait_for_work_finished,
995s     ):
995s         # Spawn a long running command
995s         node1_controller = default_receptor_controller_socket_file
995s
995s         wait_for = 5  # in seconds
995s
995s         payload = "That's a long string example! And there's emoji too! 👾"
995s         work = node1_controller.submit_work("echo-uppercase", payload, node="node3")
995s         state_result = work.pop("result")
995s         state_unitid = work.pop("unitid")
995s
995s >       assert state_result == "Job Started"
995s E       AssertionError: assert 'Job Submitted' == 'Job Started'
995s E
995s E         - Job Started
995s E         ?       --
995s E         + Job Submitted
995s E         ?      ++++
995s
995s tests/test_workunit.py:106: AssertionError

/Simon