uvloop icon indicating copy to clipboard operation
uvloop copied to clipboard

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

Open ancieg opened this issue 2 years ago • 3 comments

  • uvloop version: 0.18.0 (from tag v0.18.0)
  • Python version: 3.11.6
  • Platform: ppc64le
  • Can you reproduce the bug with PYTHONASYNCIODEBUG in env?: Will report later after try in a virtual machine.
  • Does uvloop behave differently from vanilla asyncio? How?: [no info]

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):

  • https://git.altlinux.org/tasks/331829/build/100/aarch64/log
  • https://git.altlinux.org/tasks/331829/build/100/armh/log
  • https://git.altlinux.org/tasks/331829/build/100/i586/log
  • https://git.altlinux.org/tasks/331829/build/100/x86_64/log

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

ancieg avatar Oct 15 '23 16:10 ancieg

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!

fantix avatar Oct 22 '23 19:10 fantix

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.

nmeum avatar Nov 07 '23 10:11 nmeum