Skip to content

Conversation

stefanor
Copy link
Contributor

@stefanor stefanor commented Oct 22, 2025

While looking at #140028 I found some test failures that are caused by new tests (from #138122) running too slowly.

This adds an arbitrary heuristic to 10x the sampling run time (to the default value of 10 seconds). Doubling the 1-second duration was sufficient for my HP PA tests, but Fedora reported one of the 2-second durations being too slow for a freethreaded build.

@stefanor
Copy link
Contributor Author

This adds an arbitrary heuristic to double the sampling run time. We could do 10x instead? And/or move the heuristic into test_support. Thoughts?

After seeing that Fedora hit this one of of the tests that ran with -d 2, I think 10x is the way to go. Implementing.

While looking at python#140028 I found some test failures that are caused by
new tests (from python#138122) running too slowly.

This adds an arbitrary heuristic to 10x the sampling run time (to the
default value of 10 seconds). Doubling the 1-second duration was
sufficient for my HP PA tests, but Fedora reported one of the 2-second
durations being too slow for a freethreaded build.

This heuristic could move into test_support. Thoughts?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review skip news tests Tests in the Lib/test dir

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants