Skip to content

Commit

Permalink
Merge pull request #1438 from PatKamin/disable-fuzztests
Browse files Browse the repository at this point in the history
Disable fuzz tests on ubuntu-22.04 runner
  • Loading branch information
pbalcer authored Mar 14, 2024
2 parents 418ad53 + 8714b85 commit ec634ff
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 47 deletions.
89 changes: 45 additions & 44 deletions .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,50 +115,51 @@ jobs:
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "umf|loader|validation|tracing|unit|urtrace"

fuzztest-build:
name: Build and run quick fuzztest scenarios
strategy:
matrix:
build_type: [Debug, Release]
compiler: [{c: clang, cxx: clang++}]

runs-on: 'ubuntu-22.04'

steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: Install pip packages
run: pip install -r third_party/requirements.txt

- name: Download DPC++
run: |
sudo apt install libncurses5
wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/sycl-nightly%2F20230626/dpcpp-compiler.tar.gz
tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz
- name: Setup DPC++
run: |
source ${{github.workspace}}/dpcpp_compiler/startup.sh
- name: Configure CMake
run: >
cmake
-B${{github.workspace}}/build
-DCMAKE_C_COMPILER=${{matrix.compiler.c}}
-DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
-DUR_ENABLE_TRACING=ON
-DCMAKE_BUILD_TYPE=${{matrix.build_type}}
-DUR_BUILD_TESTS=ON
-DUR_USE_ASAN=ON
-DUR_USE_UBSAN=ON
-DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++
- name: Build
run: cmake --build ${{github.workspace}}/build -j $(nproc)

- name: Fuzz test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-short"
# Disable short fuzz tests until the ubuntu-22.04 runner is fixed
# fuzztest-build:
# name: Build and run quick fuzztest scenarios
# strategy:
# matrix:
# build_type: [Debug, Release]
# compiler: [{c: clang, cxx: clang++}]

# runs-on: 'ubuntu-22.04'

# steps:
# - uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

# - name: Install pip packages
# run: pip install -r third_party/requirements.txt

# - name: Download DPC++
# run: |
# sudo apt install libncurses5
# wget -O ${{github.workspace}}/dpcpp_compiler.tar.gz https://github.com/intel/llvm/releases/download/sycl-nightly%2F20230626/dpcpp-compiler.tar.gz
# tar -xvf ${{github.workspace}}/dpcpp_compiler.tar.gz

# - name: Setup DPC++
# run: |
# source ${{github.workspace}}/dpcpp_compiler/startup.sh

# - name: Configure CMake
# run: >
# cmake
# -B${{github.workspace}}/build
# -DCMAKE_C_COMPILER=${{matrix.compiler.c}}
# -DCMAKE_CXX_COMPILER=${{matrix.compiler.cxx}}
# -DUR_ENABLE_TRACING=ON
# -DCMAKE_BUILD_TYPE=${{matrix.build_type}}
# -DUR_BUILD_TESTS=ON
# -DUR_USE_ASAN=ON
# -DUR_USE_UBSAN=ON
# -DUR_DPCXX=${{github.workspace}}/dpcpp_compiler/bin/clang++

# - name: Build
# run: cmake --build ${{github.workspace}}/build -j $(nproc)

# - name: Fuzz test
# working-directory: ${{github.workspace}}/build
# run: ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-short"

adapter-build-hw:
name: Build - Adapters on HW
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
cmake --build ${{github.workspace}}/build -j $(nproc)
- name: Fuzz long test
working-directory: ${{github.workspace}}/build
run: ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-long"
# Disable long fuzz tests until the ubuntu-22.04 runner is fixed
# - name: Fuzz long test
# working-directory: ${{github.workspace}}/build
# run: ctest -C ${{matrix.build_type}} --output-on-failure -L "fuzz-long"

0 comments on commit ec634ff

Please sign in to comment.