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

Increase UnixNoGilBuild timeout #476

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

vstinner
Copy link
Member

No description provided.

@vstinner
Copy link
Member Author

Example: on build 1985, test_math failed with a timeout (20 min)

test_sumprod_stress (test.test_math.MathTests.test_sumprod_stress) ... Timeout (0:20:00)!

The next build is a success, but test_math was the slowest test: test_math: 9 min 35 sec.

test_math bad performance is a known issue, unrelated to Free Threading: python/cpython#110327

@vstinner
Copy link
Member Author

cc @itamaro

Copy link
Contributor

@itamaro itamaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Victor!

@@ -169,6 +169,9 @@ class UnixNoGilBuild(UnixBuild):
buildersuffix = ".nogil"
configureFlags = ["--with-pydebug", "--disable-gil"]
factory_tags = ["nogil"]
# 2024-04-11: Free-threading can still be slower than regular build in some
# code paths, so tolerate longer timeout.
test_timeout = int(TEST_TIMEOUT * 1.5)


class UnixNoGilRefleakBuild(UnixBuild):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we increase the timeout for this one too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UnixNoGilRefleakBuild already uses TEST_TIMEOUT * 10 and I didn't see any test failing with this timeout. I prefer to not make it bigger (until a test fails with timeout), the timeout is already larger than 3 hours! (worker timeout: 3 hour 25 min)

@vstinner vstinner merged commit 701bbb3 into python:main Apr 11, 2024
1 check passed
@vstinner
Copy link
Member Author

Merged, thanks for the review.

@vstinner vstinner deleted the nogil_timeout branch April 11, 2024 14:38
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

Successfully merging this pull request may close these issues.

2 participants