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

[BEAM-8840][BEAM-3713] Remove setup_requires, tests_require from setup.py #10227

Merged
merged 2 commits into from
Nov 27, 2019

Conversation

udim
Copy link
Member

@udim udim commented Nov 27, 2019

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:

  • Choose reviewer(s) and mention them in a comment (R: @username).
  • Format the pull request title like [BEAM-XXX] Fixes bug in ApproximateQuantiles, where you replace BEAM-XXX with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.
  • If this contribution is large, please file an Apache Individual Contributor License Agreement.

See the Contributor Guide for more tips on how to make review process smoother.

Post-Commit Tests Status (on master branch)

Lang SDK Apex Dataflow Flink Gearpump Samza Spark
Go Build Status --- --- Build Status --- --- Build Status
Java Build Status Build Status Build Status Build Status
Build Status
Build Status
Build Status Build Status Build Status
Build Status
Build Status
Python Build Status
Build Status
Build Status
Build Status
--- Build Status
Build Status
Build Status
Build Status
--- --- Build Status
XLang --- --- --- Build Status --- --- ---

Pre-Commit Tests Status (on master branch)

--- Java Python Go Website
Non-portable Build Status Build Status
Build Status
Build Status Build Status
Portable --- Build Status --- ---

See .test-infra/jenkins/README for trigger phrase, status and link of all Jenkins jobs.

This was causing race conditions in setuptools when trying to install
pytest_runner under sdks/python/.eggs.
@udim
Copy link
Member Author

udim commented Nov 27, 2019

R: @aaltay , @chadrik

@chadrik
Copy link
Contributor

chadrik commented Nov 27, 2019

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:

#9915

https://scans.gradle.com/s/oinh5xpaly3dk/failure?openFailures=WzFd&openStackTraces=WzZd#top=1

edited to correct PR link

Copy link
Member

@aaltay aaltay left a 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.

@chadrik
Copy link
Contributor

chadrik commented Nov 27, 2019

We should still get rid of setup_requires, but this just might not be the complete solution.

@udim
Copy link
Member Author

udim commented Nov 27, 2019

Python precommit failed on

Could not copy file '/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/.eggs/timeloop-1.0.2-py3.7.egg' to '/home/jenkins/jenkins-slave/workspace/beam_PreCommit_Python_Commit/src/sdks/python/test-suites/tox/py37/build/srcs/sdks/python/.eggs/timeloop-1.0.2-py3.7.egg'.

I'll remove the tests_require part as well.

@udim udim changed the title [BEAM-3713] Remove setup_requires from setup.py [BEAM-8840][BEAM-3713] Remove setup_requires from setup.py Nov 27, 2019
@udim udim changed the title [BEAM-8840][BEAM-3713] Remove setup_requires from setup.py [BEAM-8840][BEAM-3713] Remove setup_requires, tests_require from setup.py Nov 27, 2019
@udim udim merged commit f86d1ff into apache:master Nov 27, 2019
nika-qubit pushed a commit to nika-qubit/beam that referenced this pull request Dec 9, 2019
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.
tysonjh pushed a commit to tysonjh/beam that referenced this pull request Dec 18, 2019
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.
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.

3 participants