[ 
https://issues.apache.org/jira/browse/BEAM-5334?focusedWorklogId=146234&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-146234
 ]

ASF GitHub Bot logged work on BEAM-5334:
----------------------------------------

                Author: ASF GitHub Bot
            Created on: 21/Sep/18 05:15
            Start Date: 21/Sep/18 05:15
    Worklog Time Spent: 10m 
      Work Description: lgajowy closed pull request #6456: [BEAM-5334] Fix 
Python benmchmark with Gradle build
URL: https://github.com/apache/beam/pull/6456
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/.test-infra/jenkins/CommonJobProperties.groovy 
b/.test-infra/jenkins/CommonJobProperties.groovy
index 3fdbdba7e33..428ac0de449 100644
--- a/.test-infra/jenkins/CommonJobProperties.groovy
+++ b/.test-infra/jenkins/CommonJobProperties.groovy
@@ -318,9 +318,7 @@ class CommonJobProperties {
     def pkbArgs = genPerformanceArgs(argMap)
 
     // Absolute path of project root and virtualenv path of Beam and Perfkit.
-    def beam_root = makePathAbsolute(checkoutDir)
     def perfkit_root = makePathAbsolute("PerfKitBenchmarker")
-    def beam_env = makePathAbsolute("env/.beam_env")
     def perfkit_env = makePathAbsolute("env/.perfkit_env")
 
     context.steps {
@@ -340,16 +338,6 @@ class CommonJobProperties {
         // Install Perfkit benchmark requirements.
         shell("${perfkit_env}/bin/pip install -r 
${perfkit_root}/requirements.txt")
 
-        // Install Beam Python SDK requirements.
-        if (language == "PYTHON") {
-          shell("rm -rf ${beam_env}")
-          shell("virtualenv ${beam_env}")
-          shell("${beam_env}/bin/pip install --upgrade setuptools pip 
grpcio-tools==1.3.5")
-          shell("${beam_env}/bin/pip install -e 
${beam_root}/sdks/python/[gcp,test]")
-          // Build PythonSDK tar ball.
-          shell("(cd ${beam_root}/sdks/python && ${beam_env}/bin/python 
setup.py sdist --dist-dir=target)")
-        }
-
         // Launch performance test.
         shell("${perfkit_env}/bin/python ${perfkit_root}/pkb.py ${pkbArgs}")
     }
diff --git a/.test-infra/jenkins/job_PerformanceTests_Python.groovy 
b/.test-infra/jenkins/job_PerformanceTests_Python.groovy
index 0b25f7098e6..7a856004190 100644
--- a/.test-infra/jenkins/job_PerformanceTests_Python.groovy
+++ b/.test-infra/jenkins/job_PerformanceTests_Python.groovy
@@ -47,12 +47,13 @@ job('beam_PerformanceTests_Python'){
   def pipelineArgsJoined = pipelineArgList.join(',')
 
   def argMap = [
-      beam_sdk       : 'python',
-      benchmarks     : 'beam_integration_benchmark',
-      bigquery_table : 'beam_performance.wordcount_py_pkb_results',
-      beam_it_class  : 
'apache_beam.examples.wordcount_it_test:WordCountIT.test_wordcount_it',
-      beam_prebuilt  : 'true',  // skip beam prebuild
-      beam_it_args   : pipelineArgsJoined,
+      beam_sdk                 : 'python',
+      benchmarks               : 'beam_integration_benchmark',
+      bigquery_table           : 'beam_performance.wordcount_py_pkb_results',
+      beam_it_class            : 
'apache_beam.examples.wordcount_it_test:WordCountIT.test_wordcount_it',
+      beam_prebuilt            : 'true',  // skip beam prebuild
+      beam_python_sdk_location : 'build/apache-beam.tar.gz',
+      beam_it_args             : pipelineArgsJoined,
   ]
 
   commonJobProperties.buildPerformanceTest(delegate, argMap, 'PYTHON')


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Issue Time Tracking
-------------------

    Worklog Id:     (was: 146234)
    Time Spent: 2h 40m  (was: 2.5h)

> [beam_PerformanceTests_Python] Incompatible packages in dependencies
> --------------------------------------------------------------------
>
>                 Key: BEAM-5334
>                 URL: https://issues.apache.org/jira/browse/BEAM-5334
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Mikhail Gryzykhin
>            Assignee: Mark Liu
>            Priority: Major
>          Time Spent: 2h 40m
>  Remaining Estimate: 0h
>
> Failing job url: 
> https://builds.apache.org/job/beam_PerformanceTests_Python/1390/console
> Relevant log:
> 05:18:36 Obtaining 
> file:///home/jenkins/jenkins-slave/workspace/beam_PerformanceTests_Python/src/sdks/python
> 05:18:37 Complete output from command python setup.py egg_info:
> 05:18:37 
> /home/jenkins/jenkins-slave/workspace/beam_PerformanceTests_Python/env/.beam_env/local/lib/python2.7/site-packages/setuptools/dist.py:398:
>  UserWarning: Normalizing '2.8.0.dev' to '2.8.0.dev0'
> 05:18:37 normalized_version,
> 05:18:37 running egg_info
> 05:18:37 Requirement already satisfied: future==0.16.0 in 
> /home/jenkins/.local/lib/python2.7/site-packages (0.16.0)
> 05:18:37 gapic-google-cloud-pubsub-v1 0.15.4 has requirement 
> oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is 
> incompatible.
> 05:18:37 proto-google-cloud-datastore-v1 0.90.4 has requirement 
> oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is 
> incompatible.
> 05:18:37 proto-google-cloud-pubsub-v1 0.15.4 has requirement 
> oauth2client<4.0dev,>=2.0.0, but you'll have oauth2client 4.1.2 which is 
> incompatible.
> 05:18:37 googledatastore 7.0.1 has requirement httplib2<0.10,>=0.9.1, but 
> you'll have httplib2 0.11.3 which is incompatible.
> 05:18:37 googledatastore 7.0.1 has requirement oauth2client<4.0.0,>=2.0.1, 
> but you'll have oauth2client 4.1.2 which is incompatible.
> 05:18:37 You are using pip version 10.0.1, however version 18.0 is available.
> 05:18:37 You should consider upgrading via the 'pip install --upgrade pip' 
> command.
> 05:18:37 error: [Errno 2] No such file or directory



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to