diff --git a/.github/workflows/pull_request.yaml b/.github/workflows/pull_request.yaml index 53dcf83522..be4fdbe48f 100644 --- a/.github/workflows/pull_request.yaml +++ b/.github/workflows/pull_request.yaml @@ -71,102 +71,3 @@ jobs: run: | export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server ./run.sh test --skip_thirdparty - - test with sanitizer address: - name: Test With Sanitizer Address - needs: lint - runs-on: self-hosted - container: - image: registry.cn-beijing.aliyuncs.com/apachepegasus/thirdparties-bin:ubuntu1804 - env: - CCACHE_DIR: /tmp/ccache/pegasus - CCACHE_MAXSIZE: 10G - volumes: - # Place ccache compilation intermediate results in host memory, that's shared among containers. - - /tmp/ccache/pegasus:/tmp/ccache/pegasus - # Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker. - options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE - steps: - - uses: actions/checkout@v2 - - name: Unpack prebuilt third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') == false - run: unzip /root/thirdparties-bin.zip -d ./thirdparty - - name: Rebuild third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') - working-directory: thirdparty - run: | - mkdir build - cmake -DCMAKE_BUILD_TYPE=Release -B build/ - cmake --build build/ -j $(($(nproc)/2+1)) - - name: Compilation - run: ./run.sh build -c --sanitizer address --skip_thirdparty --disable_gperf - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server - ./run.sh test --sanitizer address --skip_thirdparty --disable_gperf - - test with sanitizer leak: - name: Test With Sanitizer Leak - needs: lint - runs-on: self-hosted - container: - image: registry.cn-beijing.aliyuncs.com/apachepegasus/thirdparties-bin:ubuntu1804 - env: - CCACHE_DIR: /tmp/ccache/pegasus - CCACHE_MAXSIZE: 10G - volumes: - # Place ccache compilation intermediate results in host memory, that's shared among containers. - - /tmp/ccache/pegasus:/tmp/ccache/pegasus - # Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker. - options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE - steps: - - uses: actions/checkout@v2 - - name: Unpack prebuilt third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') == false - run: unzip /root/thirdparties-bin.zip -d ./thirdparty - - name: Rebuild third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') - working-directory: thirdparty - run: | - mkdir build - cmake -DCMAKE_BUILD_TYPE=Release -B build/ - cmake --build build/ -j $(($(nproc)/2+1)) - - name: Compilation - run: ./run.sh build -c --sanitizer leak --skip_thirdparty --disable_gperf - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server - ./run.sh test --sanitizer leak --skip_thirdparty --disable_gperf - - test with sanitizer undefined: - name: Test With Sanitizer Undefined - needs: lint - runs-on: self-hosted - container: - image: registry.cn-beijing.aliyuncs.com/apachepegasus/thirdparties-bin:ubuntu1804 - env: - CCACHE_DIR: /tmp/ccache/pegasus - CCACHE_MAXSIZE: 10G - volumes: - # Place ccache compilation intermediate results in host memory, that's shared among containers. - - /tmp/ccache/pegasus:/tmp/ccache/pegasus - # Read docs at https://docs.docker.com/storage/tmpfs/ for more details of using tmpfs in docker. - options: --mount type=tmpfs,destination=/tmp/pegasus --cap-add=SYS_PTRACE - steps: - - uses: actions/checkout@v2 - - name: Unpack prebuilt third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') == false - run: unzip /root/thirdparties-bin.zip -d ./thirdparty - - name: Rebuild third-parties - if: contains(github.event.pull_request.labels.*.name, 'thirdparty-modified') - working-directory: thirdparty - run: | - mkdir build - cmake -DCMAKE_BUILD_TYPE=Release -B build/ - cmake --build build/ -j $(($(nproc)/2+1)) - - name: Compilation - run: ./run.sh build -c --sanitizer undefined --skip_thirdparty --disable_gperf - - name: Unit Testing - run: | - export LD_LIBRARY_PATH=`pwd`/thirdparty/output/lib:/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server - ./run.sh test --sanitizer undefined --skip_thirdparty --disable_gperf