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

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

                Author: ASF GitHub Bot
            Created on: 06/Aug/19 01:00
            Start Date: 06/Aug/19 01:00
    Worklog Time Spent: 10m 
      Work Description: markflyhigh commented on pull request #9269: 
[BEAM-7899] Fix Python Dataflow VR tests by specify sdk_location
URL: https://github.com/apache/beam/pull/9269#discussion_r310846089
 
 

 ##########
 File path: sdks/python/test-suites/dataflow/py2/build.gradle
 ##########
 @@ -70,6 +70,7 @@ task postCommitIT(dependsOn: ['installGcpTest', 'sdist']) {
     def testOpts = basicTestOpts + ["--attr=IT"]
     def cmdArgs = project.mapToArgString(["test_opts": testOpts,
                                           "worker_jar": dataflowWorkerJar,
+                                          "sdk_location": 
"${project.buildDir}/apache-beam.tar.gz",
 
 Review comment:
   The default path `build/apache-beam.tar.gz` is used which is output of 
`:sdks:python:sdist` and happens to be a dependency task of PostCommit_Py2. If 
you look at timeline of [this 
job](https://scans.gradle.com/s/hzmfdtgwg5sqq/timeline?task=zo6kwmw6onmmq), 
`sdks:python:sdist` is executed before `postCommitIT` so when `postCommitIT` 
runs, the tarball is ready.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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: 289295)
    Time Spent: 50m  (was: 40m)

> beam_PostCommit_Py_VR_Dataflow failure: build/apache-beam.tar.gz cannot be 
> found
> --------------------------------------------------------------------------------
>
>                 Key: BEAM-7899
>                 URL: https://issues.apache.org/jira/browse/BEAM-7899
>             Project: Beam
>          Issue Type: Bug
>          Components: test-failures
>            Reporter: Udi Meiri
>            Assignee: Mark Liu
>            Priority: Major
>          Time Spent: 50m
>  Remaining Estimate: 0h
>
> Lots of tests consistently failing with errors like:
> {code}
> 09:56:15 
> ======================================================================
> 09:56:15 ERROR: test_as_list_twice 
> (apache_beam.transforms.sideinputs_test.SideInputsTest)
> 09:56:15 
> ----------------------------------------------------------------------
> 09:56:15 Traceback (most recent call last):
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/transforms/sideinputs_test.py",
>  line 274, in test_as_list_twice
> 09:56:15     pipeline.run()
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/testing/test_pipeline.py",
>  line 107, in run
> 09:56:15     else test_runner_api))
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/pipeline.py",
>  line 406, in run
> 09:56:15     self._options).run(False)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/pipeline.py",
>  line 419, in run
> 09:56:15     return self.runner.run_pipeline(self, self._options)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/dataflow/test_dataflow_runner.py",
>  line 53, in run_pipeline
> 09:56:15     pipeline, options)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/dataflow/dataflow_runner.py",
>  line 484, in run_pipeline
> 09:56:15     self.dataflow_client.create_job(self.job), self)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/utils/retry.py",
>  line 206, in wrapper
> 09:56:15     return fun(*args, **kwargs)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py",
>  line 530, in create_job
> 09:56:15     self.create_job_description(job)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py",
>  line 560, in create_job_description
> 09:56:15     resources = self._stage_resources(job.options)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/dataflow/internal/apiclient.py",
>  line 490, in _stage_resources
> 09:56:15     staging_location=google_cloud_options.staging_location)
> 09:56:15   File 
> "/home/jenkins/jenkins-slave/workspace/beam_PostCommit_Py_VR_Dataflow/src/sdks/python/apache_beam/runners/portability/stager.py",
>  line 273, in stage_job_resources
> 09:56:15     'the --sdk_location command-line option.' % sdk_path)
> 09:56:15 RuntimeError: The file "build/apache-beam.tar.gz" cannot be found. 
> Its location was specified by the --sdk_location command-line option.
> {code}
> https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/4207/console
> [~markflyhigh]



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to