Skip to content

Commit f3dc256

Browse files
authored
Merge pull request ceph#64810 from chanyoung/faster-seastore-ut
test/crimson/seastore/CMakeLists: tune ASan's UAR fake stack size Reviewed-by: Matan Breizman <[email protected]>
2 parents 58ae168 + 40d60f2 commit f3dc256

File tree

1 file changed

+30
-22
lines changed

1 file changed

+30
-22
lines changed

src/test/crimson/seastore/CMakeLists.txt

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
1-
if(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64|arm|ARM")
2-
# See https://tracker.ceph.com/issues/70254
3-
add_executable(unittest-transaction-manager
4-
test_block.cc
5-
test_transaction_manager.cc
6-
../gtest_seastar.cc)
7-
add_ceph_unittest(unittest-transaction-manager
8-
--memory 256M --smp 1)
9-
target_link_libraries(
10-
unittest-transaction-manager
11-
${CMAKE_DL_LIBS}
12-
crimson-seastore)
1+
# Fixes: https://tracker.ceph.com/issues/71704
2+
function(avoid_asan_uar_slowdown name)
3+
set_tests_properties(${name} PROPERTIES
4+
ENVIRONMENT_MODIFICATION
5+
ASAN_OPTIONS=string_append::max_uar_stack_size_log=16)
6+
endfunction()
137

14-
add_executable(unittest-omap-manager
15-
test_omap_manager.cc
16-
../gtest_seastar.cc)
17-
add_ceph_unittest(unittest-omap-manager
18-
--memory 256M --smp 1)
19-
target_link_libraries(
20-
unittest-omap-manager
21-
${CMAKE_DL_LIBS}
22-
crimson-seastore)
23-
endif(NOT CMAKE_SYSTEM_PROCESSOR MATCHES "aarch64|AARCH64|arm|ARM")
8+
add_executable(unittest-transaction-manager
9+
test_block.cc
10+
test_transaction_manager.cc
11+
../gtest_seastar.cc)
12+
add_ceph_unittest(unittest-transaction-manager
13+
--memory 256M --smp 1)
14+
target_link_libraries(
15+
unittest-transaction-manager
16+
${CMAKE_DL_LIBS}
17+
crimson-seastore)
18+
avoid_asan_uar_slowdown(unittest-transaction-manager)
19+
20+
add_executable(unittest-omap-manager
21+
test_omap_manager.cc
22+
../gtest_seastar.cc)
23+
add_ceph_unittest(unittest-omap-manager
24+
--memory 256M --smp 1)
25+
target_link_libraries(
26+
unittest-omap-manager
27+
${CMAKE_DL_LIBS}
28+
crimson-seastore)
29+
avoid_asan_uar_slowdown(unittest-omap-manager)
2430

2531
add_executable(unittest-btree-lba-manager
2632
test_btree_lba_manager.cc
@@ -63,6 +69,7 @@ target_link_libraries(
6369
crimson-seastore
6470
crimson-os
6571
crimson-common)
72+
avoid_asan_uar_slowdown(unittest-object-data-handler)
6673

6774
add_executable(unittest-collection-manager
6875
test_collection_manager.cc
@@ -87,6 +94,7 @@ target_link_libraries(
8794
${CMAKE_DL_LIBS}
8895
crimson-seastore
8996
crimson-common)
97+
avoid_asan_uar_slowdown(unittest-seastore)
9098

9199
add_executable(unittest-seastore-randomblock-manager
92100
test_randomblock_manager.cc)

0 commit comments

Comments
 (0)