You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@avro.apache.org by mg...@apache.org on 2022/01/24 14:09:03 UTC

[avro] branch branch-1.11 updated: AVRO-3084: Fix JavaScript interop test to read files generated by other languages on CI (#1143)

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

mgrigorov pushed a commit to branch branch-1.11
in repository https://gitbox.apache.org/repos/asf/avro.git


The following commit(s) were added to refs/heads/branch-1.11 by this push:
     new c211f44  AVRO-3084: Fix JavaScript interop test to read files generated by other languages on CI (#1143)
c211f44 is described below

commit c211f4448ebbc52a89119e0cd7204683e534a244
Author: Kengo Seki <se...@apache.org>
AuthorDate: Mon Jan 24 23:08:17 2022 +0900

    AVRO-3084: Fix JavaScript interop test to read files generated by other languages on CI (#1143)
    
    (cherry picked from commit 415f6ab02eb83becea308dfc0e16f09309a58939)
---
 .github/workflows/test-lang-js.yml | 28 +++++++++++++++-------------
 1 file changed, 15 insertions(+), 13 deletions(-)

diff --git a/.github/workflows/test-lang-js.yml b/.github/workflows/test-lang-js.yml
index 3b28dd7..ed88332 100644
--- a/.github/workflows/test-lang-js.yml
+++ b/.github/workflows/test-lang-js.yml
@@ -81,25 +81,27 @@ jobs:
           restore-keys: |
             ${{ runner.os }}-node-
 
-      - name: Cache Local Maven Repository
-        uses: actions/cache@v2
-        with:
-          path: ~/.m2/repository
-          key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
-          restore-keys: |
-            ${{ runner.os }}-maven-
+      - name: Setup Python for Generating Input Data
+        uses: actions/setup-python@v2
 
-      - name: Install Java Avro for Interop Test
-        working-directory: .
-        run: mvn -B install -DskipTests
+      - name: Apt Install Compression Libs Required by Python
+        run: |
+          sudo apt-get install -qqy --no-install-recommends libbz2-dev \
+                                                            liblzma-dev \
+                                                            libsnappy-dev \
+                                                            libzstd-dev
+      - name: Install Python Dependencies
+        run: |
+          python3 -m pip install --upgrade pip setuptools tox-wheel
+          python3 -m pip install python-snappy zstandard
 
       - name: Create Interop Data Directory
         working-directory: .
         run: mkdir -p build/interop/data
 
-      - name: Generate Interop Resources
-        working-directory: lang/java/avro
-        run: mvn -B -P interop-data-generate generate-resources
+      - name: Generate Interop Data using Python
+        working-directory: lang/py
+        run: ./build.sh interop-data-generate
 
       - name: Generate Interop Data
         run: ./build.sh interop-data-generate