This is an automated email from the ASF dual-hosted git repository.

kou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git


The following commit(s) were added to refs/heads/master by this push:
     new 7b4668a  ARROW-11621: [CI][Gandiva][Linux] Fix Crossbow setup failure
7b4668a is described below

commit 7b4668a16e22220bf3657469356f081956d66ba0
Author: Sutou Kouhei <[email protected]>
AuthorDate: Mon Feb 15 05:45:04 2021 +0900

    ARROW-11621: [CI][Gandiva][Linux] Fix Crossbow setup failure
    
    This changes to use actions/setup-python from system Python for
    Crossbow. actions/setup-python will work with ubuntu-18.04 and
    ubuntu-20.04.
    
    Closes #9491 from kou/ci-gandiva-jar-ubuntu
    
    Authored-by: Sutou Kouhei <[email protected]>
    Signed-off-by: Sutou Kouhei <[email protected]>
---
 dev/tasks/gandiva-jars/github.linux.yml | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/dev/tasks/gandiva-jars/github.linux.yml 
b/dev/tasks/gandiva-jars/github.linux.yml
index b0ccaf7..1a6dce9 100644
--- a/dev/tasks/gandiva-jars/github.linux.yml
+++ b/dev/tasks/gandiva-jars/github.linux.yml
@@ -48,21 +48,16 @@ jobs:
         env:
           OS_NAME: "linux"
           CHECK_SHARED_DEPENDENCIES: true
+      - name: Set up Python
+        uses: actions/setup-python@v2
+        with:
+          python-version: 3.8
       - name: Set up Crossbow
         run: |
-          sudo apt-get install -y libgit2-dev
-          pip3 install \
-            click \
-            github3.py \
-            jinja2 \
-            jira \
-            pygit2==1.0.3 \
-            ruamel.yaml \
-            setuptools_scm \
-            toolz
+          pip install --requirement arrow/dev/tasks/requirements-crossbow.txt
       - name: Upload artifacts
         run: |
-          python3 arrow/dev/tasks/crossbow.py \
+          python arrow/dev/tasks/crossbow.py \
             --queue-path arrow \
             --queue-remote {{ queue_remote_url }} \
             upload-artifacts \
@@ -70,4 +65,4 @@ jobs:
             --tag {{ task.tag }} \
             --pattern "arrow/dist/*.jar"
         env:
-          CROSSBOW_GITHUB_TOKEN: {{ '${{ secrets.CROSSBOW_GITHUB_TOKEN }}' }}
\ No newline at end of file
+          CROSSBOW_GITHUB_TOKEN: {{ '${{ secrets.CROSSBOW_GITHUB_TOKEN }}' }}

Reply via email to