Skip to content

Commit

Permalink
run tests
Browse files Browse the repository at this point in the history
  • Loading branch information
acelyc111 committed Dec 19, 2023
1 parent c6aeb63 commit 37598d3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 20 deletions.
27 changes: 27 additions & 0 deletions .github/actions/run_server_tests/action.yaml
Original file line number Diff line number Diff line change
@@ -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
24 changes: 4 additions & 20 deletions .github/workflows/lint_and_test_cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 37598d3

Please sign in to comment.