Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "Disable fuzz tests on ubuntu-22.04 runner" #1473

Merged
merged 1 commit into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading