Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
ancieg opened this issue Oct 15, 2023 · 2 comments
Open

Comments

@ancieg
Copy link

ancieg commented Oct 15, 2023

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

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 ancieg changed the title [ALTLinux] [ppc64le] [0.18.0] Regression: AssertionError: Didn't reach a full buffer [ALTLinux] [ppc64le] [0.18.0] AssertionError: Didn't reach a full buffer Oct 16, 2023
@fantix
Copy link
Member

fantix commented Oct 22, 2023

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
Copy link

nmeum commented Nov 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants