|
|
|
@ -450,6 +450,36 @@ STRESS_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS="[ |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB stress/crash test with txn |
|
|
|
|
# |
|
|
|
|
STRESS_CRASH_TEST_WITH_TXN_COMMANDS="[ |
|
|
|
|
{ |
|
|
|
|
'name':'Rocksdb Stress and Crash Test with txn', |
|
|
|
|
'oncall':'$ONCALL', |
|
|
|
|
'executeLocal': 'true', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'steps': [ |
|
|
|
|
$CLEANUP_ENV, |
|
|
|
|
{ |
|
|
|
|
'name':'Build and run RocksDB debug stress tests', |
|
|
|
|
'shell':'$SHM $DEBUG $NON_TSAN_CRASH make J=1 db_stress || $CONTRUN_NAME=db_stress $TASK_CREATION_TOOL', |
|
|
|
|
'user':'root', |
|
|
|
|
$PARSER |
|
|
|
|
}, |
|
|
|
|
{ |
|
|
|
|
'name':'Build and run RocksDB debug crash tests with txn', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'shell':'$SHM $DEBUG $NON_TSAN_CRASH make J=1 crash_test_with_txn || $CONTRUN_NAME=crash_test_with_txn $TASK_CREATION_TOOL', |
|
|
|
|
'user':'root', |
|
|
|
|
$PARSER |
|
|
|
|
}, |
|
|
|
|
$UPLOAD_DB_DIR, |
|
|
|
|
], |
|
|
|
|
$REPORT |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# RocksDB write stress test. |
|
|
|
|
# We run on disk device on purpose (i.e. no $SHM) |
|
|
|
|
# because we want to add some randomness to fsync commands |
|
|
|
@ -541,6 +571,30 @@ ASAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS="[ |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB crash testing with txn under address sanitizer |
|
|
|
|
# |
|
|
|
|
ASAN_CRASH_TEST_WITH_TXN_COMMANDS="[ |
|
|
|
|
{ |
|
|
|
|
'name':'Rocksdb crash test with txn under ASAN', |
|
|
|
|
'oncall':'$ONCALL', |
|
|
|
|
'executeLocal': 'true', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'steps': [ |
|
|
|
|
$CLEANUP_ENV, |
|
|
|
|
{ |
|
|
|
|
'name':'Build and run RocksDB debug asan_crash_test_with_txn', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'shell':'$SHM $DEBUG $NON_TSAN_CRASH make J=1 asan_crash_test_with_txn || $CONTRUN_NAME=asan_crash_test_with_txn $TASK_CREATION_TOOL', |
|
|
|
|
'user':'root', |
|
|
|
|
$PARSER |
|
|
|
|
}, |
|
|
|
|
$UPLOAD_DB_DIR, |
|
|
|
|
], |
|
|
|
|
$REPORT |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB test under undefined behavior sanitizer |
|
|
|
|
# |
|
|
|
@ -609,6 +663,30 @@ UBSAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS="[ |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB crash testing with txn under undefined behavior sanitizer |
|
|
|
|
# |
|
|
|
|
UBSAN_CRASH_TEST_WITH_TXN_COMMANDS="[ |
|
|
|
|
{ |
|
|
|
|
'name':'Rocksdb crash test with txn under UBSAN', |
|
|
|
|
'oncall':'$ONCALL', |
|
|
|
|
'executeLocal': 'true', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'steps': [ |
|
|
|
|
$CLEANUP_ENV, |
|
|
|
|
{ |
|
|
|
|
'name':'Build and run RocksDB debug ubsan_crash_test_with_txn', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'shell':'$SHM $DEBUG $NON_TSAN_CRASH $CLANG make J=1 ubsan_crash_test_with_txn || $CONTRUN_NAME=ubsan_crash_test_with_txn $TASK_CREATION_TOOL', |
|
|
|
|
'user':'root', |
|
|
|
|
$PARSER |
|
|
|
|
}, |
|
|
|
|
$UPLOAD_DB_DIR, |
|
|
|
|
], |
|
|
|
|
$REPORT |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB unit test under valgrind |
|
|
|
|
# |
|
|
|
@ -702,6 +780,30 @@ TSAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS="[ |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB crash test with txn under TSAN |
|
|
|
|
# |
|
|
|
|
TSAN_CRASH_TEST_WITH_TXN_COMMANDS="[ |
|
|
|
|
{ |
|
|
|
|
'name':'Rocksdb Crash Test with txn under TSAN', |
|
|
|
|
'oncall':'$ONCALL', |
|
|
|
|
'executeLocal': 'true', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'steps': [ |
|
|
|
|
$CLEANUP_ENV, |
|
|
|
|
{ |
|
|
|
|
'name':'Compile and run', |
|
|
|
|
'timeout': 86400, |
|
|
|
|
'shell':'set -o pipefail && $SHM $DEBUG $TSAN $TSAN_CRASH CRASH_TEST_KILL_ODD=1887 make J=1 crash_test_with_txn || $CONTRUN_NAME=tsan_crash_test_with_txn $TASK_CREATION_TOOL', |
|
|
|
|
'user':'root', |
|
|
|
|
$PARSER |
|
|
|
|
}, |
|
|
|
|
$UPLOAD_DB_DIR, |
|
|
|
|
], |
|
|
|
|
$REPORT |
|
|
|
|
} |
|
|
|
|
]" |
|
|
|
|
|
|
|
|
|
# |
|
|
|
|
# RocksDB format compatible |
|
|
|
|
# |
|
|
|
@ -889,6 +991,9 @@ case $1 in |
|
|
|
|
stress_crash_with_atomic_flush) |
|
|
|
|
echo $STRESS_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS |
|
|
|
|
;; |
|
|
|
|
stress_crash_with_txn) |
|
|
|
|
echo $STRESS_CRASH_TEST_WITH_TXN_COMMANDS |
|
|
|
|
;; |
|
|
|
|
write_stress) |
|
|
|
|
echo $WRITE_STRESS_COMMANDS |
|
|
|
|
;; |
|
|
|
@ -901,6 +1006,9 @@ case $1 in |
|
|
|
|
asan_crash_with_atomic_flush) |
|
|
|
|
echo $ASAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS |
|
|
|
|
;; |
|
|
|
|
asan_crash_with_txn) |
|
|
|
|
echo $ASAN_CRASH_TEST_WITH_TXN_COMMANDS |
|
|
|
|
;; |
|
|
|
|
ubsan) |
|
|
|
|
echo $UBSAN_TEST_COMMANDS |
|
|
|
|
;; |
|
|
|
@ -910,6 +1018,9 @@ case $1 in |
|
|
|
|
ubsan_crash_with_atomic_flush) |
|
|
|
|
echo $UBSAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS |
|
|
|
|
;; |
|
|
|
|
ubsan_crash_with_txn) |
|
|
|
|
echo $UBSAN_CRASH_TEST_WITH_TXN_COMMANDS |
|
|
|
|
;; |
|
|
|
|
valgrind) |
|
|
|
|
echo $VALGRIND_TEST_COMMANDS |
|
|
|
|
;; |
|
|
|
@ -922,6 +1033,9 @@ case $1 in |
|
|
|
|
tsan_crash_with_atomic_flush) |
|
|
|
|
echo $TSAN_CRASH_TEST_WITH_ATOMIC_FLUSH_COMMANDS |
|
|
|
|
;; |
|
|
|
|
tsan_crash_with_txn) |
|
|
|
|
echo $TSAN_CRASH_TEST_WITH_TXN_COMMANDS |
|
|
|
|
;; |
|
|
|
|
format_compatible) |
|
|
|
|
echo $FORMAT_COMPATIBLE_COMMANDS |
|
|
|
|
;; |
|
|
|
|