From 37598d33bf0d16fbb9bc88b1d5bec529c3c6883c Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Tue, 19 Dec 2023 17:02:37 +0800 Subject: [PATCH] run tests --- .github/actions/run_server_tests/action.yaml | 27 ++++++++++++++++++++ .github/workflows/lint_and_test_cpp.yaml | 24 +++-------------- 2 files changed, 31 insertions(+), 20 deletions(-) create mode 100644 .github/actions/run_server_tests/action.yaml diff --git a/.github/actions/run_server_tests/action.yaml b/.github/actions/run_server_tests/action.yaml new file mode 100644 index 0000000000..816315d2bf --- /dev/null +++ b/.github/actions/run_server_tests/action.yaml @@ -0,0 +1,27 @@ +# Licensed to the Apache Software Foundation (ASF) under one +# or more contributor license agreements. See the NOTICE file +# distributed with this work for additional information +# regarding copyright ownership. The ASF licenses this file +# to you under the Apache License, Version 2.0 (the +# "License"); you may not use this file except in compliance +# with the License. You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, +# software distributed under the License is distributed on an +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +# KIND, either express or implied. See the License for the +# specific language governing permissions and limitations +# under the License. + +name: Run server tests +runs: + using: composite + steps: + - name: Unit Testing + run: | + export LD_LIBRARY_PATH=$(pwd)/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server + ulimit -s unlimited + ./run.sh test --onebox_opts "$ONEBOX_OPTS" --test_opts "$TEST_OPTS" -m ${{ matrix.test_module }} + shell: bash diff --git a/.github/workflows/lint_and_test_cpp.yaml b/.github/workflows/lint_and_test_cpp.yaml index 12da41b921..8627f96216 100644 --- a/.github/workflows/lint_and_test_cpp.yaml +++ b/.github/workflows/lint_and_test_cpp.yaml @@ -155,11 +155,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: "./.github/actions/download_artifact" - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server - ulimit -s unlimited - ./run.sh test --onebox_opts "$ONEBOX_OPTS" --test_opts "$TEST_OPTS" -m ${{ matrix.test_module }} + - uses: "./.github/actions/run_server_tests" build_ASAN: name: Build ASAN @@ -235,11 +231,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: "./.github/actions/download_artifact" - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server - ulimit -s unlimited - ./run.sh test --onebox_opts "$ONEBOX_OPTS" --test_opts "$TEST_OPTS" -m ${{ matrix.test_module }} + - uses: "./.github/actions/run_server_tests" # TODO(yingchun): Build and test UBSAN version would cost a very long time, we will run these tests # when we are going to release a stable version. So we disable them in regular CI @@ -314,11 +306,7 @@ jobs: # steps: # - uses: actions/checkout@v3 # - uses: "./.github/actions/download_artifact" -# - name: Unit Testing -# run: | -# export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server -# ulimit -s unlimited -# ./run.sh test --onebox_opts "$ONEBOX_OPTS" --test_opts "$TEST_OPTS" -m ${{ matrix.test_module }} +# - uses: "./.github/actions/run_server_tests" build_with_jemalloc: name: Build with jemalloc @@ -353,11 +341,7 @@ jobs: steps: - uses: actions/checkout@v3 - uses: "./.github/actions/download_artifact" - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:${JAVA_HOME}/jre/lib/amd64/server - ulimit -s unlimited - ./run.sh test --onebox_opts "$ONEBOX_OPTS" --test_opts "$TEST_OPTS" -m ${{ matrix.test_module }} + - uses: "./.github/actions/run_server_tests" build_pegasus_on_macos: name: macOS