Skip to content

Relax timings of subshell tests #1374

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ianthomas23
Copy link
Collaborator

Looking into improving the flakiness of some of the subshell tests, hoping to fix #1359.

The failures in CI all appear on Windows, either CPython 3.11 or PyPy. On a local Windows machine the tests pass for my using CPython 3.11 but I can reproduce the failures with PyPy 3.9. Increasing the timings of the tests so that the timing variability is proportionately smaller works for me locally, so trying it here in CI.

@davidbrochart
Copy link
Collaborator

Would it be possible to use events instead of relying on timings?

@ianthomas23 ianthomas23 force-pushed the subshell-test-timings branch from 62ed03a to ef4a8e5 Compare March 7, 2025 13:30
@ianthomas23
Copy link
Collaborator Author

Would it be possible to use events instead of relying on timings?

Well yes, the tests could be rewritten in some other way. But that is not my intention here.

@ianthomas23
Copy link
Collaborator Author

Tests were passing fine when I submitted this. Now that it is rebased on top of the zmq-anyio changes there are lots of failures.

@davidbrochart
Copy link
Collaborator

Yes, although mostly around subshells. It could be unrelated to subshells, but since you know best how they work, maybe you could help understand the issue?

@ianthomas23 ianthomas23 force-pushed the subshell-test-timings branch from ef4a8e5 to ab36bf0 Compare March 11, 2025 13:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Subshell test flakiness
2 participants