-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
[BEAM-8840][BEAM-3713] Remove setup_requires, tests_require from setup.py #10227
Conversation
This was causing race conditions in setuptools when trying to install pytest_runner under sdks/python/.eggs.
I just shot you an email on the list. I'm not sure that this is going to fix it. I already removed this from my PR and I'm still getting errors with .egg directories: https://scans.gradle.com/s/oinh5xpaly3dk/failure?openFailures=WzFd&openStackTraces=WzZd#top=1 edited to correct PR link |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thank you.
This seems to be the right move anyway based on the deprecation notice here (https://pypi.org/project/pytest-runner/). And hopefully it will also fix the test issues here.
We should still get rid of setup_requires, but this just might not be the complete solution. |
Python precommit failed on
I'll remove the |
1. Added [interactive] as extras for py36 and py37 gcp tests so they will be executed at least once during the pre-commit. The [interactive] dependencies were removed after PR apache#10227 deprecating the old setup config, thus not triggering any pcoll_visualization tests since then. 2. Fixed the Setup routine of pcoll_visualization_tests so that global environment is always fresh no matter how the unit tests modify its states. The bug was caused by wrong execution paths instructed by undeterministic tests execution sequence. Somehow, the unittest's patch utility fails to patch _to_element_list some times in multi-threading. Using InteractiveRunner when building pipelines to lazily initialize a cache manager for those scenarios.
1. Added [interactive] as extras for py36 and py37 gcp tests so they will be executed at least once during the pre-commit. The [interactive] dependencies were removed after PR apache#10227 deprecating the old setup config, thus not triggering any pcoll_visualization tests since then. 2. Fixed the Setup routine of pcoll_visualization_tests so that global environment is always fresh no matter how the unit tests modify its states. The bug was caused by wrong execution paths instructed by undeterministic tests execution sequence. Somehow, the unittest's patch utility fails to patch _to_element_list some times in multi-threading. Using InteractiveRunner when building pipelines to lazily initialize a cache manager for those scenarios.
This was causing race conditions in setuptools when trying to install
pytest_runner under sdks/python/.eggs.
Thank you for your contribution! Follow this checklist to help us incorporate your contribution quickly and easily:
R: @username
).[BEAM-XXX] Fixes bug in ApproximateQuantiles
, where you replaceBEAM-XXX
with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.See the Contributor Guide for more tips on how to make review process smoother.
Post-Commit Tests Status (on master branch)
Pre-Commit Tests Status (on master branch)
See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.