-
Notifications
You must be signed in to change notification settings - Fork 28.9k
[SPARK-31231][BUILD] Explicitly setuptools version as 46.0.0 in pip package test #27995
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
Conversation
|
Test build #120230 has finished for PR 27995 at commit
|
|
Test build #120231 has finished for PR 27995 at commit
|
|
Test build #120232 has finished for PR 27995 at commit
|
|
Test build #120234 has finished for PR 27995 at commit
|
|
Test build #120237 has finished for PR 27995 at commit
|
|
Test build #120238 has finished for PR 27995 at commit
|
|
Test build #120245 has finished for PR 27995 at commit
|
cee6d51 to
a1fdad8
Compare
|
Test build #120248 has finished for PR 27995 at commit
|
a1fdad8 to
f5a60c6
Compare
|
Test build #120252 has finished for PR 27995 at commit
|
|
Test build #120255 has finished for PR 27995 at commit
|
|
Test build #120256 has finished for PR 27995 at commit
|
|
Okay .. it passed. I'll clean up and merge to unblock other PRs. |
|
Merged to master, branch-3.0, and branch-2.4. I am not going to resolve the JIRA yet - this PR is a temp workaround only for CI at this momoent. |
…ackage test ### What changes were proposed in this pull request? For a bit of background, PIP packaging test started to fail (see [this logs](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/120218/testReport/)) as of setuptools 46.1.0 release. In pypa/setuptools#1424, they decided to don't keep the modes in `package_data`. In PySpark pip installation, we keep the executable scripts in `package_data` https://github.com/apache/spark/blob/fc4e56a54c15e20baf085e6061d3d83f5ce1185d/python/setup.py#L199-L200, and expose their symbolic links as executable scripts. So, the symbolic links (or copied scripts) executes the scripts copied from `package_data`, which doesn't have the executable permission in its mode: ``` /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: Permission denied /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: exec: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: cannot execute: Permission denied ``` The current issue is being tracked at pypa/setuptools#2041 </br> For what this PR proposes: It sets the upper bound in PR builder for now to unblock other PRs. _This PR does not solve the issue yet. I will make a fix after monitoring https://github.com/pypa/setuptools/issues/2041_ ### Why are the changes needed? It currently affects users who uses the latest setuptools. So, _users seem unable to use PySpark with the latest setuptools._ See also pypa/setuptools#2041 (comment) ### Does this PR introduce any user-facing change? It makes CI pass for now. No user-facing change yet. ### How was this patch tested? Jenkins will test. Closes #27995 from HyukjinKwon/investigate-pip-packaging. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit c181c45) Signed-off-by: HyukjinKwon <[email protected]>
…ackage test ### What changes were proposed in this pull request? For a bit of background, PIP packaging test started to fail (see [this logs](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/120218/testReport/)) as of setuptools 46.1.0 release. In pypa/setuptools#1424, they decided to don't keep the modes in `package_data`. In PySpark pip installation, we keep the executable scripts in `package_data` https://github.com/apache/spark/blob/fc4e56a54c15e20baf085e6061d3d83f5ce1185d/python/setup.py#L199-L200, and expose their symbolic links as executable scripts. So, the symbolic links (or copied scripts) executes the scripts copied from `package_data`, which doesn't have the executable permission in its mode: ``` /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: Permission denied /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: exec: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: cannot execute: Permission denied ``` The current issue is being tracked at pypa/setuptools#2041 </br> For what this PR proposes: It sets the upper bound in PR builder for now to unblock other PRs. _This PR does not solve the issue yet. I will make a fix after monitoring https://github.com/pypa/setuptools/issues/2041_ ### Why are the changes needed? It currently affects users who uses the latest setuptools. So, _users seem unable to use PySpark with the latest setuptools._ See also pypa/setuptools#2041 (comment) ### Does this PR introduce any user-facing change? It makes CI pass for now. No user-facing change yet. ### How was this patch tested? Jenkins will test. Closes #27995 from HyukjinKwon/investigate-pip-packaging. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit c181c45) Signed-off-by: HyukjinKwon <[email protected]>
|
@nchammas, @srowen, @dongjoon-hyun, @BryanCutler, FWIW, I think this is one example of the trade-off we discussed at #27928.
|
|
Test build #120259 has finished for PR 27995 at commit
|
|
Was there an issue in 46.1.0? wouldn't pinning to 46.0.0 have been a good thing then? or else I misunderstand what broke. |
|
Hi, @HyukjinKwon . |
|
Since Apache Spark 2.4 still supports |
|
Perhaps the requirement should instead be of the form |
|
Yeah, maybe I should better set upperbound instead. Thanks @dongjoon-hyun and @nchammas |
|
@srowen, seems this can be the problem in client side with the latest |
|
I'm still confused. This is an argument for pinning versions, right? Because a new version of |
|
But we found that issue from the broken PR builder, which seems to be pretty critical. |
|
I simply meant this is an example of the trade-off. It caused a problem and broke the PR builder vs it found a problem early. |
…or setuptools in pip package test ## What changes were proposed in this pull request? This PR is a followup of #27995. Rather then pining setuptools version, it sets upper bound so Python 3.5 with branch-2.4 tests can pass too. ## Why are the changes needed? To make the CI build stable ## Does this PR introduce any user-facing change? No, dev-only change. ## How was this patch tested? Jenkins will test. Closes #28005 from HyukjinKwon/investigate-pip-packaging-followup. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
…or setuptools in pip package test ## What changes were proposed in this pull request? This PR is a followup of #27995. Rather then pining setuptools version, it sets upper bound so Python 3.5 with branch-2.4 tests can pass too. ## Why are the changes needed? To make the CI build stable ## Does this PR introduce any user-facing change? No, dev-only change. ## How was this patch tested? Jenkins will test. Closes #28005 from HyukjinKwon/investigate-pip-packaging-followup. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit 178d472) Signed-off-by: HyukjinKwon <[email protected]>
…or setuptools in pip package test This PR is a followup of #27995. Rather then pining setuptools version, it sets upper bound so Python 3.5 with branch-2.4 tests can pass too. To make the CI build stable No, dev-only change. Jenkins will test. Closes #28005 from HyukjinKwon/investigate-pip-packaging-followup. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]> (cherry picked from commit 178d472) Signed-off-by: HyukjinKwon <[email protected]>
…ackage test ### What changes were proposed in this pull request? For a bit of background, PIP packaging test started to fail (see [this logs](https://amplab.cs.berkeley.edu/jenkins/job/SparkPullRequestBuilder/120218/testReport/)) as of setuptools 46.1.0 release. In pypa/setuptools#1424, they decided to don't keep the modes in `package_data`. In PySpark pip installation, we keep the executable scripts in `package_data` https://github.com/apache/spark/blob/fc4e56a54c15e20baf085e6061d3d83f5ce1185d/python/setup.py#L199-L200, and expose their symbolic links as executable scripts. So, the symbolic links (or copied scripts) executes the scripts copied from `package_data`, which doesn't have the executable permission in its mode: ``` /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: Permission denied /tmp/tmp.UmkEGNFdKF/3.6/bin/spark-submit: line 27: exec: /tmp/tmp.UmkEGNFdKF/3.6/lib/python3.6/site-packages/pyspark/bin/spark-class: cannot execute: Permission denied ``` The current issue is being tracked at pypa/setuptools#2041 </br> For what this PR proposes: It sets the upper bound in PR builder for now to unblock other PRs. _This PR does not solve the issue yet. I will make a fix after monitoring https://github.com/pypa/setuptools/issues/2041_ ### Why are the changes needed? It currently affects users who uses the latest setuptools. So, _users seem unable to use PySpark with the latest setuptools._ See also pypa/setuptools#2041 (comment) ### Does this PR introduce any user-facing change? It makes CI pass for now. No user-facing change yet. ### How was this patch tested? Jenkins will test. Closes apache#27995 from HyukjinKwon/investigate-pip-packaging. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
…or setuptools in pip package test ## What changes were proposed in this pull request? This PR is a followup of apache#27995. Rather then pining setuptools version, it sets upper bound so Python 3.5 with branch-2.4 tests can pass too. ## Why are the changes needed? To make the CI build stable ## Does this PR introduce any user-facing change? No, dev-only change. ## How was this patch tested? Jenkins will test. Closes apache#28005 from HyukjinKwon/investigate-pip-packaging-followup. Authored-by: HyukjinKwon <[email protected]> Signed-off-by: HyukjinKwon <[email protected]>
What changes were proposed in this pull request?
For a bit of background,
PIP packaging test started to fail (see this logs) as of setuptools 46.1.0 release. In pypa/setuptools#1424, they decided to don't keep the modes in
package_data.In PySpark pip installation, we keep the executable scripts in
package_dataspark/python/setup.py
Lines 199 to 200 in fc4e56a
So, the symbolic links (or copied scripts) executes the scripts copied from
package_data, which doesn't have the executable permission in its mode:The current issue is being tracked at pypa/setuptools#2041
For what this PR proposes:
It sets the setuptools version in PR builder for now to unblock other PRs. This PR does not solve the issue yet. I will make a fix after monitoring pypa/setuptools#2041
Why are the changes needed?
It currently affects users who uses the latest setuptools. So, users seem unable to use PySpark with the latest setuptools. See also pypa/setuptools#2041 (comment)
Does this PR introduce any user-facing change?
It makes CI pass for now. No user-facing change yet.
How was this patch tested?
Jenkins will test.