4545
4646 if : ${{ inputs.run_unit_tests }}
4747
48- env :
49- # TODO: remove completely when we have fixed all currently existing issues with sanitizers
50- SANITIZER_IGNORE_ERRORS : ${{ endsWith(inputs.conan_profile, '.tsan') }}
51-
5248 steps :
5349 - name : Cleanup workspace
5450 if : ${{ runner.os == 'macOS' }}
@@ -65,45 +61,27 @@ jobs:
6561 - name : Make clio_tests executable
6662 run : chmod +x ./clio_tests
6763
68- - name : Run clio_tests (regular)
69- if : ${{ env.SANITIZER_IGNORE_ERRORS == 'false' }}
64+ - name : Run clio_tests
65+ continue-on-error : true
66+ id : run_clio_tests
7067 run : ./clio_tests
7168
72- - name : Run clio_tests (sanitizer errors ignored)
73- if : ${{ env.SANITIZER_IGNORE_ERRORS == 'true' }}
74- run : ./.github/scripts/execute-tests-under-sanitizer.sh ./clio_tests
75-
76- - name : Check for sanitizer report
77- if : ${{ env.SANITIZER_IGNORE_ERRORS == 'true' }}
78- id : check_report
79- run : |
80- if ls .sanitizer-report/* 1> /dev/null 2>&1; then
81- echo "found_report=true" >> $GITHUB_OUTPUT
82- else
83- echo "found_report=false" >> $GITHUB_OUTPUT
84- fi
85-
86- - name : Upload sanitizer report
87- if : ${{ env.SANITIZER_IGNORE_ERRORS == 'true' && steps.check_report.outputs.found_report == 'true' }}
88- uses : actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
89- with :
90- name : sanitizer_report_${{ runner.os }}_${{ inputs.build_type }}_${{ inputs.conan_profile }}
91- path : .sanitizer-report/*
92- include-hidden-files : true
93-
9469 - name : Create an issue
95- if : ${{ false && env.SANITIZER_IGNORE_ERRORS == 'true ' && steps.check_report.outputs.found_report == 'true' }}
70+ if : ${{ steps.run_clio_tests.outcome == 'failure ' && endsWith(inputs.conan_profile, 'san') }}
9671 uses : ./.github/actions/create-issue
9772 env :
9873 GH_TOKEN : ${{ github.token }}
9974 with :
10075 labels : " bug"
10176 title : " [${{ inputs.conan_profile }}] reported issues"
10277 body : >
103- Clio tests failed one or more sanitizer checks when built with ${{ inputs.conan_profile }}`.
78+ Clio tests failed one or more sanitizer checks when built with ` ${{ inputs.conan_profile }}`.
10479
10580 Workflow: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/
106- Reports are available as artifacts.
81+
82+ - name : Fail the job if clio_tests failed
83+ if : ${{ steps.run_clio_tests.outcome == 'failure' }}
84+ run : exit 1
10785
10886 integration_tests :
10987 name : Integration testing
0 commit comments