Skip to content

Commit

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

# 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"
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: 3 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ jobs:
LD_LIBRARY_PATH=${{github.workspace}}/dpcpp_compiler/lib
cmake --build ${{github.workspace}}/build -j $(nproc)
# 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"
- 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 2550f6b

Please sign in to comment.