You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by do...@apache.org on 2021/07/16 15:00:12 UTC
[spark] branch master updated: [SPARK-36152][INFRA][TESTS] Add
Scala 2.13 daily build and test GitHub Action job
This is an automated email from the ASF dual-hosted git repository.
dongjoon pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git
The following commit(s) were added to refs/heads/master by this push:
new 3218e4e [SPARK-36152][INFRA][TESTS] Add Scala 2.13 daily build and test GitHub Action job
3218e4e is described below
commit 3218e4e14b6822e53073dbeff85c02df957957ed
Author: Dongjoon Hyun <do...@apache.org>
AuthorDate: Fri Jul 16 07:59:39 2021 -0700
[SPARK-36152][INFRA][TESTS] Add Scala 2.13 daily build and test GitHub Action job
### What changes were proposed in this pull request?
This PR aims to add a new GitHub Action daily workflow for Scala 2.13 build and test.
### Why are the changes needed?
Apache Spark 3.2.0 aims to support Scala 2.13 officially. We need a test coverage for master/3.2.
The following is the test result on my repository. The daily schedule triggered correctly for both master/3.2 branches.
- https://github.com/dongjoon-hyun/spark/actions/runs/1036083268

### Does this PR introduce _any_ user-facing change?
No.
### How was this patch tested?
This is a daily job. Since there is no way to see this, I tested this in my repository first as described in the above.
Closes #33358 from dongjoon-hyun/SPARK-36152.
Authored-by: Dongjoon Hyun <do...@apache.org>
Signed-off-by: Dongjoon Hyun <do...@apache.org>
---
.../workflows/build_and_test_scala213_daily.yml | 115 +++++++++++++++++++++
1 file changed, 115 insertions(+)
diff --git a/.github/workflows/build_and_test_scala213_daily.yml b/.github/workflows/build_and_test_scala213_daily.yml
new file mode 100644
index 0000000..d1bb05f
--- /dev/null
+++ b/.github/workflows/build_and_test_scala213_daily.yml
@@ -0,0 +1,115 @@
+name: Build and test Scala 2.13 daily
+
+on:
+ schedule:
+ - cron: '0 4 * * *'
+
+jobs:
+ # Build: build Spark and run the tests for specified modules.
+ build:
+ name: "${{ matrix.branch }}: ${{ matrix.modules }} ${{ matrix.comment }} (JDK ${{ matrix.java }}, ${{ matrix.hadoop }}, ${{ matrix.hive }})"
+ # Ubuntu 20.04 is the latest LTS. The next LTS is 22.04.
+ runs-on: ubuntu-20.04
+ strategy:
+ fail-fast: false
+ matrix:
+ branch:
+ - master
+ - branch-3.2
+ java:
+ - 8
+ hadoop:
+ - hadoop3.2
+ hive:
+ - hive2.3
+ # TODO(SPARK-32246): We don't test 'streaming-kinesis-asl' for now.
+ # Kinesis tests depends on external Amazon kinesis service.
+ # Note that the modules below are from sparktestsupport/modules.py.
+ modules:
+ - >-
+ core, unsafe, kvstore, avro,
+ network-common, network-shuffle, repl, launcher,
+ examples, sketch, graphx
+ - >-
+ catalyst, hive-thriftserver
+ - >-
+ hive
+ - >-
+ sql
+ - >-
+ streaming, sql-kafka-0-10, streaming-kafka-0-10,
+ mllib-local, mllib,
+ yarn, mesos, kubernetes, hadoop-cloud, spark-ganglia-lgpl
+ env:
+ APACHE_SPARK_REF: "HEAD~1"
+ MODULES_TO_TEST: ${{ matrix.modules }}
+ EXCLUDED_TAGS: ${{ matrix.excluded-tags }}
+ INCLUDED_TAGS: ${{ matrix.included-tags }}
+ SCALA_PROFILE: scala2.13
+ HADOOP_PROFILE: ${{ matrix.hadoop }}
+ HIVE_PROFILE: ${{ matrix.hive }}
+ GITHUB_PREV_SHA: ${{ github.event.before }}
+ SPARK_LOCAL_IP: localhost
+ steps:
+ - name: Checkout Spark repository
+ uses: actions/checkout@v2
+ with:
+ fetch-depth: 0
+ ref: ${{ matrix.branch }}
+ # Cache local repositories. Note that GitHub Actions cache has a 2G limit.
+ - name: Cache Scala, SBT and Maven
+ uses: actions/cache@v2
+ with:
+ path: |
+ build/apache-maven-*
+ build/scala-*
+ build/*.jar
+ ~/.sbt
+ key: daily-build-${{ hashFiles('**/pom.xml', 'project/build.properties', 'build/mvn', 'build/sbt', 'build/sbt-launch-lib.bash', 'build/spark-build-info') }}
+ restore-keys: |
+ daily-build-
+ - name: Cache Coursier local repository
+ uses: actions/cache@v2
+ with:
+ path: ~/.cache/coursier
+ key: daily-${{ matrix.java }}-${{ matrix.hadoop }}-coursier-${{ hashFiles('**/pom.xml', '**/plugins.sbt') }}
+ restore-keys: |
+ daily-${{ matrix.java }}-${{ matrix.hadoop }}-coursier-
+ - name: Install Java ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ - name: Install Python 3.8
+ uses: actions/setup-python@v2
+ # We should install one Python that is higher then 3+ for SQL and Yarn because:
+ # - SQL component also has Python related tests, for example, IntegratedUDFTestUtils.
+ # - Yarn has a Python specific test too, for example, YarnClusterSuite.
+ if: contains(matrix.modules, 'yarn') || (contains(matrix.modules, 'sql') && !contains(matrix.modules, 'sql-'))
+ with:
+ python-version: 3.8
+ architecture: x64
+ - name: Install Python packages (Python 3.8)
+ if: (contains(matrix.modules, 'sql') && !contains(matrix.modules, 'sql-'))
+ run: |
+ python3.8 -m pip install numpy 'pyarrow<5.0.0' pandas scipy xmlrunner
+ python3.8 -m pip list
+ # Run the tests.
+ - name: Run tests
+ run: |
+ ./dev/change-scala-version.sh 2.13
+ # Hive and SQL tests become flaky when running in parallel as it's too intensive.
+ if [[ "$MODULES_TO_TEST" == "hive" ]] || [[ "$MODULES_TO_TEST" == "sql" ]]; then export SERIAL_SBT_TESTS=1; fi
+ ./dev/run-tests --parallelism 2 --modules "$MODULES_TO_TEST" --included-tags "$INCLUDED_TAGS" --excluded-tags "$EXCLUDED_TAGS"
+ - name: Upload test results to report
+ if: always()
+ uses: actions/upload-artifact@v2
+ with:
+ name: test-results-${{ matrix.modules }}-${{ matrix.comment }}-${{ matrix.java }}-${{ matrix.hadoop }}-${{ matrix.hive }}
+ path: "**/target/test-reports/*.xml"
+ - name: Upload unit tests log files
+ if: failure()
+ uses: actions/upload-artifact@v2
+ with:
+ name: unit-tests-log-${{ matrix.modules }}-${{ matrix.comment }}-${{ matrix.java }}-${{ matrix.hadoop }}-${{ matrix.hive }}
+ path: "**/target/unit-tests.log"
+
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org