File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -350,7 +350,7 @@ jobs:
350350 run : |
351351 source /opt/ros/jazzy/setup.bash
352352 colcon build --symlink-install \
353- --cmake-args -DCMAKE_BUILD_TYPE=Debug -DSANITIZER=tsan \
353+ --cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo -DSANITIZER=tsan \
354354 --event-handlers console_direct+
355355 ccache -s
356356
@@ -362,14 +362,14 @@ jobs:
362362 - name : Run unit tests with TSan
363363 timeout-minutes : 15
364364 run : |
365- export TSAN_OPTIONS="halt_on_error=1 :suppressions=$(pwd)/tsan_suppressions.txt"
365+ export TSAN_OPTIONS="halt_on_error=0:history_size=4 :suppressions=$(pwd)/tsan_suppressions.txt"
366366 source /opt/ros/jazzy/setup.bash
367367 source install/setup.bash
368368 failed=0
369369 for pkg_dir in build/ros2_medkit_*/; do
370370 pkg=$(basename "$pkg_dir")
371371 echo "::group::Testing $pkg"
372- (cd "$pkg_dir" && ctest -LE "linter|integration" --output-on-failure) || failed=1
372+ (cd "$pkg_dir" && ctest -j1 - LE "linter|integration|sanitizer_exclude " --output-on-failure) || failed=1
373373 echo "::endgroup::"
374374 done
375375 exit $failed
Original file line number Diff line number Diff line change @@ -655,8 +655,11 @@ if(BUILD_TESTING)
655655 target_link_libraries (test_condition_evaluator gateway_lib )
656656
657657 # Resource change notifier tests (async notification hub for triggers)
658+ # Excluded from TSan: the drain_cv/worker_thread shutdown pattern deadlocks
659+ # under TSan instrumentation (hangs at 300s on CI).
658660 ament_add_gtest (test_resource_change_notifier test /test_resource_change_notifier.cpp TIMEOUT 300 )
659661 target_link_libraries (test_resource_change_notifier gateway_lib )
662+ set_tests_properties (test_resource_change_notifier PROPERTIES LABELS "sanitizer_exclude" )
660663
661664 # Trigger store tests (SQLite persistence for triggers)
662665 ament_add_gtest (test_trigger_store test /test_trigger_store.cpp )
You can’t perform that action at this time.
0 commit comments