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

Add timeout to test_build_meta #3099

Merged
merged 5 commits into from
Feb 15, 2022
Merged

Conversation

abravalheri
Copy link
Contributor

As discussed in #3087, test_build_meta seems to be flaky specially for the combination of Windows + PyPy.

This is a proposed workaround for such scenarios.

Summary of changes

  • Added a timeout for the process pool executor
  • Added a env var to control the timeout (useful for contributors with slower machines or network)

Closes

Pull Request Checklist

As discussed in pypa#3087, `test_build_meta` seems to be flaky
specially for the combination of Windows + PyPy.

This is a proposed workaround for such scenarios.
@abravalheri abravalheri marked this pull request as ready for review February 12, 2022 18:53
This is an attempt to avoid tasks lingering for hours as observed in
the CI for the combination Windows+PyPy.
@abravalheri
Copy link
Contributor Author

There are still some hickups (in other tests maybe), but I think this commit might help.
Maybe next step would be adding a timeout to the workflow itself.

@abravalheri abravalheri force-pushed the flaky-test-build-meta branch from f904e59 to 210a141 Compare February 14, 2022 15:15
According to the Python docs, shutting down the process pool does not
terminate the tasks that are already running, so it is necessary to
manually kill the individual processes in the pool.
@abravalheri abravalheri force-pushed the flaky-test-build-meta branch from 210a141 to 3c17f76 Compare February 14, 2022 18:38
@jaraco jaraco merged commit 9c6a6e5 into pypa:main Feb 15, 2022
@jaraco
Copy link
Member

jaraco commented Feb 15, 2022

FYI, auto-merge doesn't work, but it's still nice to know it's ready for merge.

@abravalheri abravalheri deleted the flaky-test-build-meta branch February 15, 2022 08:16
@abravalheri abravalheri mentioned this pull request Feb 16, 2022
2 tasks
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.

2 participants