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

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

                Author: ASF GitHub Bot
            Created on: 23/Apr/20 23:27
            Start Date: 23/Apr/20 23:27
    Worklog Time Spent: 10m 
      Work Description: Hannah-Jiang edited a comment on pull request #11502:
URL: https://github.com/apache/beam/pull/11502#issuecomment-618721532


   It works fine locally, however, fails with Jenkins. The reason is tox is not 
installed successfully. I tried to match tox version used by Py Precommit test, 
but still no luck. It seems like Python use virtualenv to install tox, while 
with this PR, tox is installed in Jenkins itself.
   Error log is here: 
https://scans.gradle.com/s/bcwhc4gwfqnes/console-log?task=:sdks:java:container:generateThirdPartyLicenses
   
   @udim, do you have any ideas how to fix it?
   


----------------------------------------------------------------
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:
[email protected]


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

    Worklog Id:     (was: 426782)
    Time Spent: 1h  (was: 50m)

> license_script.sh calls pip install/uninstall in local env
> ----------------------------------------------------------
>
>                 Key: BEAM-9797
>                 URL: https://issues.apache.org/jira/browse/BEAM-9797
>             Project: Beam
>          Issue Type: Bug
>          Components: build-system
>            Reporter: Udi Meiri
>            Assignee: Hannah Jiang
>            Priority: Major
>          Time Spent: 1h
>  Remaining Estimate: 0h
>
> File is: 
> https://github.com/apache/beam/blob/master/sdks/java/container/license_scripts/license_script.sh
> The problem is with the code that does pip install and uninstall.
> 1. It is not okay to modify the local environment.
> 2. Running this script in parallel with itself (on Jenkins) has a chance to 
> cause a race.
> The solution is to use a tox environment to run this script in. Tox will take 
> care of creating a virtualenv with the required dependencies.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to