Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-intel committed Jan 26, 2025
1 parent 802baf5 commit 10567fe
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/linux_sanitizers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ on:
- cron: '0 0 * * *'
workflow_dispatch:
inputs:
# to be defined for specified test scopes (e.g. CPU func. tests)
sanitizerMode:
description: 'Sanitizer mode for CPU func. tests (All || AddressAndLeak || UndefinedBehavior || Thread)'
description: 'Sanitizer mode for CPU func. tests (All || AddressAndLeak || UndefinedBehavior || Thread).'
required: false
default: 'AddressAndLeak'
default: 'All'
gtestFilter:
description: 'Filter for CPU func. tests.'
required: false
default: '*smoke*'
pull_request:
paths:
- '.github/workflows/linux_sanitizers.yml'
Expand Down Expand Up @@ -502,8 +507,8 @@ jobs:
if-no-files-found: 'error'

CXX_Func_Tests:
# todo: move another plugin's func tests here
name: C++ func tests
# change to in
if: ${{ github.repository_owner == 'openvinotoolkit' }}
needs: [Docker, Build]
timeout-minutes: 200
Expand Down Expand Up @@ -563,12 +568,17 @@ jobs:
#

- name: CPU plugin func tests
# by default we run only AddressAndLeak
# by default in scheduled launch we run only AddressAndLeak with *smoke*Conv_* pattern
# to prevent false-positive alerts and time exceeded error,
# in workflow_dispatch case all smoke tests will be launched with all types of sanitizers
# if gtestFilter and sanMode inputs are not specified
if: ${{ !cancelled() && (github.event_name == 'workflow_dispatch' && (inputs.sanitizerMode == 'All' || inputs.sanitizerMode == matrix.SANITIZER) || matrix.SANITIZER == 'AddressAndLeak')}}
env:
GTEST_FILTER: ${{ github.event_name == 'workflow_dispatch' && inputs.gtestFilter || '*smoke*Conv_*' }}
run: |
source ${INSTALL_DIR}/setupvars.sh
${INSTALL_TEST_DIR}/ov_cpu_func_tests --gtest_print_time=1 \
--gtest_filter=*smoke_AdaPoolAvg4DLayoutTest* \
--gtest_filter=${{ env.GTEST_FILTER }} \
--gtest_output=xml:${INSTALL_TEST_DIR}/TEST-CPUFuncTests.xml
- name: Upload Test Results
Expand Down

0 comments on commit 10567fe

Please sign in to comment.