MagicStack / uvloop

Ultra fast asyncio event loop.
Apache License 2.0
10.46k stars 550 forks source link

[ALTLinux] [ppc64le] [0.18.0] `AssertionError: Didn't reach a full buffer` #576

Open ancieg opened 1 year ago

ancieg commented 1 year ago

The bug is in tests. Fails only on ppc64le platform. More detailed log is here: https://git.altlinux.org/tasks/331829/build/100/ppc64le/log.

Another platforms (the bug doesn't reproduce on them):

Note: the bug doesn't reproduce in uvloop version 0.17.0 (from tag v0.17.0) on all of the platforms listed above.

fantix commented 1 year ago

This is probably because the platform offers a large default size of pipe I/O buffer. The test test_write_buffer_full is assuming the total buffer size is less than 1MB (32 x 32768) to avoid platform-specific pipe buffer manipulation.

If possible, please try increasing the number 32 on ppc64le. Please let me know if that works, PR is also welcome!

nmeum commented 1 year ago

Hi, we are also running into this for our Alpine Linux ppc64le package of uvloop. Increasing the number from 32 to 128 did not fix this build failure for me in a ppc64le qemu-user environment. Therefore, I decided to disable the test for now.