Skip to content

Commit

Permalink
[VL] move Spark3.3 Unit tests to seperate job
Browse files Browse the repository at this point in the history
This patch moved Spark 3.3 unit tests to a seperate job to speed
up GHA

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
  • Loading branch information
zhouyuan committed Jun 5, 2023
1 parent d84ca65 commit c8b8430
Showing 1 changed file with 38 additions and 6 deletions.
44 changes: 38 additions & 6 deletions .github/workflows/velox_be.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,18 +157,51 @@ jobs:
--preset=velox --benchmark-type=h --error-on-memleak --disable-aqe --off-heap-size=20g -s=1.0 --cpus=16 --iterations=1 \
&& GLUTEN_IT_JVM_ARGS=-Xmx5G sbin/gluten-it.sh \
--preset=velox --benchmark-type=ds --error-on-memleak --off-heap-size=20g -s=1.0 --cpus=16 --iterations=1'
- name: Exit docker container
if: ${{ always() }}
run: |
docker stop velox-backend-ubuntu2004-test-slow-$GITHUB_RUN_ID || true
velox-backend-ubuntu2004-test-spark33:
runs-on: velox-self-hosted
steps:
- uses: actions/checkout@v2
- name: Setup docker container
run: |
EXTRA_DOCKER_OPTIONS="--name velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID -e NUM_THREADS=30 --detach" \
NON_INTERACTIVE=ON \
MOUNT_MAVEN_CACHE=OFF \
OS_IMAGE=ubuntu:20.04 \
tools/gluten-te/ubuntu/cbash.sh sleep 14400
- name: Setup maven cache
run: |
docker cp ~/.m2/repository velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID:/root/.m2/
- name: Build Gluten Velox-backend third party
run: |
docker exec velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID bash -c '
cd /opt/gluten/ep/build-arrow/src && \
./get_arrow.sh && \
./build_arrow.sh --build_tests=ON --build_benchmarks=ON && \
cd /opt/gluten/ep/build-velox/src && \
./get_velox.sh && \
./build_velox.sh'
- name: Build Gluten CPP library
run: |
docker exec velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID bash -c '
cd /opt/gluten/cpp && \
mkdir build && cd build && cmake .. && make -j'
- name: Build for Spark 3.3.0
run: |
docker exec velox-backend-ubuntu2004-test-slow-$GITHUB_RUN_ID bash -c '
docker exec velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID bash -c '
cd /opt/gluten && \
mvn clean install -Pspark-3.3 -Pbackends-velox -Prss -DskipTests -Dspark33.version=3.3.0'
- name: Build and Run unit test for Spark 3.3.1
run: |
docker exec velox-backend-ubuntu2004-test-slow-$GITHUB_RUN_ID bash -c 'cd /opt/gluten && \
docker exec velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID bash -c 'cd /opt/gluten && \
mvn clean install -Pspark-3.3 -Pbackends-velox -Prss -Pspark-ut'
- name: TPC-H SF1.0 && TPC-DS SF1.0 Parquet local spark3.3
run: |
docker exec velox-backend-ubuntu2004-test-slow-$GITHUB_RUN_ID bash -c 'cd /opt/gluten/tools/gluten-it && \
docker exec velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID bash -c 'cd /opt/gluten/tools/gluten-it && \
mvn clean package -Pspark-3.3 \
&& GLUTEN_IT_JVM_ARGS=-Xmx5G sbin/gluten-it.sh \
--preset=velox --benchmark-type=h --error-on-memleak --disable-aqe --off-heap-size=20g -s=1.0 --cpus=16 --iterations=1 --skip-data-gen \
Expand All @@ -177,9 +210,8 @@ jobs:
- name: Exit docker container
if: ${{ always() }}
run: |
docker stop velox-backend-ubuntu2004-test-slow-$GITHUB_RUN_ID || true
docker stop velox-backend-ubuntu2004-test-spark33-$GITHUB_RUN_ID || true
velox-backend-ubuntu2204-test:
runs-on: velox-self-hosted
steps:
Expand Down

0 comments on commit c8b8430

Please sign in to comment.