You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FAILED testing/test_channel.py::TestChannelBasicBehaviour::test_channel_passing_over_channel[main_thread_only-popen] - execnet.gateway_base.RemoteError: Traceback (most recent call last):
File "/gnu/store/n9wcfy3gx8gk3dd2s4xgc5119ylykcha-python-execnet-2.1.1/lib/python3.11/site-packages/execnet/gateway_base.py", line 1291, in executetask
exec(co, loc)
File "<remote exec>", line 2, in <module>
AssertionError
= 1 failed, 465 passed, 614 skipped, 4 xfailed, 11 xpassed, 1 warning in 59.96s =
This was under high load, and it seems difficult to retrigger that same failure (I've just built the package/ran the test suite for 5 times without the problem being triggered).
Hello. On AWS instances of type r7a.medium and m7a.medium, which incidentally have a single CPU, I'm getting the failure reported here 100% of the time when trying to build the Debian package (which includes the tests). So, in this case, the failure is completely deterministic, and it may not be fixed by repeating the check.
If this is a bug in the test and not a bug in the code, I'd like to suggest that the test is disabled for everybody.
To reproduce the failure, try configuring GRUB with GRUB_CMDLINE_LINUX="nr_cpus=1".
On one CPU with a local popen worker, the unchanged test failed 16 times in 80 runs on main (12be141), and 14 times in 80 runs on each of 2.1.1 and 2.1.2. The failure is in the cleanup check. In a separate 400-run control for each execution model, the transferred channel delivered 42 and reached EOF every time. On one thread run the caller had already observed closure while the worker still held the previous channel ID. It disappeared when checked again. This supports waiting for cleanup while retaining the assertion that the old ID is removed.
There is also a reason this shows up under the main_thread_only-popen test name. Running the two parameters together and inspecting the model on the worker showed that both used a thread worker. The fixture reuses the gateway by transport. With the actual main_thread_only worker, this case passed 100/100 on each revision.
Correcting that shared fixture also exposes a different failure in the full suite. After an ordinary task error has been received and awaited, a subsequent sequential task on the same main_thread_only worker is rejected as concurrent. This reproduces on both releases and main. Debian currently marks the original channel test as an expected failure.
Would you prefer #374 to cover the bounded cleanup check, or would you like the worker-model fixture and its error-completion path addressed in the same change?
Activity
RonnyPfannschmidt commentedon Nov 5, 2025
It seems like a potential cleanup timing issue
Its not critical and can be fixed by repeating thr check
apteryks commentedon Nov 8, 2025
I've disable the test in Guix for now, thanks for the assessment.
sanvila commentedon Apr 21, 2026
Hello. On AWS instances of type
r7a.mediumandm7a.medium, which incidentally have a single CPU, I'm getting the failure reported here 100% of the time when trying to build the Debian package (which includes the tests). So, in this case, the failure is completely deterministic, and it may not be fixed by repeating the check.If this is a bug in the test and not a bug in the code, I'd like to suggest that the test is disabled for everybody.
To reproduce the failure, try configuring GRUB with
GRUB_CMDLINE_LINUX="nr_cpus=1".Thanks.
businessdeveloper69 commentedon Nov 21, 2026
On one CPU with a local
popenworker, the unchanged test failed 16 times in 80 runs on main (12be141), and 14 times in 80 runs on each of 2.1.1 and 2.1.2. The failure is in the cleanup check. In a separate 400-run control for each execution model, the transferred channel delivered 42 and reached EOF every time. On onethreadrun the caller had already observed closure while the worker still held the previous channel ID. It disappeared when checked again. This supports waiting for cleanup while retaining the assertion that the old ID is removed.There is also a reason this shows up under the
main_thread_only-popentest name. Running the two parameters together and inspecting the model on the worker showed that both used athreadworker. The fixture reuses the gateway by transport. With the actualmain_thread_onlyworker, this case passed 100/100 on each revision.Correcting that shared fixture also exposes a different failure in the full suite. After an ordinary task error has been received and awaited, a subsequent sequential task on the same
main_thread_onlyworker is rejected as concurrent. This reproduces on both releases and main. Debian currently marks the original channel test as an expected failure.Would you prefer #374 to cover the bounded cleanup check, or would you like the worker-model fixture and its error-completion path addressed in the same change?
AI assisted.