From 23dcf2759d98bb65dbce5b7b142974d821ac2740 Mon Sep 17 00:00:00 2001 From: Peter Dillinger Date: Wed, 29 Jan 2020 15:57:13 -0800 Subject: [PATCH] Upload DB dir for all crash tests (#6344) Summary: Difficult to root cause crash test failures without archiving db dir. Now all crash test configurations should save the db dir. Also exit with error code on bad command. Pull Request resolved: https://github.com/facebook/rocksdb/pull/6344 Test Plan: Hmm, how about this: for TARGET in stress_crash asan_crash ubsan_crash tsan_crash; do EMAIL=email ONCALL=oncall TRIGGER=all SUBSCRIBER=sub build_tools/rocksdb-lego-determinator $TARGET > tmp && node -c tmp && grep -q Upload tmp || echo Bad; done Differential Revision: D19625605 Pulled By: pdillinger fbshipit-source-id: cb84aa93ee80b4534f4c61b90f0e0f99a41155d5 --- build_tools/rocksdb-lego-determinator | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build_tools/rocksdb-lego-determinator b/build_tools/rocksdb-lego-determinator index 21ca5ea5d..8c4c91bfc 100755 --- a/build_tools/rocksdb-lego-determinator +++ b/build_tools/rocksdb-lego-determinator @@ -414,7 +414,8 @@ STRESS_CRASH_TEST_COMMANDS="[ 'shell':'$SHM $DEBUG $NON_TSAN_CRASH make J=1 crash_test || $CONTRUN_NAME=crash_test $TASK_CREATION_TOOL', 'user':'root', $PARSER - } + }, + $UPLOAD_DB_DIR, ], $REPORT } @@ -542,6 +543,7 @@ ASAN_CRASH_TEST_COMMANDS="[ 'user':'root', $PARSER }, + $UPLOAD_DB_DIR, ], $REPORT } @@ -634,6 +636,7 @@ UBSAN_CRASH_TEST_COMMANDS="[ 'user':'root', $PARSER }, + $UPLOAD_DB_DIR, ], $REPORT } @@ -751,6 +754,7 @@ TSAN_CRASH_TEST_COMMANDS="[ 'user':'root', $PARSER }, + $UPLOAD_DB_DIR, ], $REPORT } @@ -1059,5 +1063,6 @@ case $1 in ;; *) echo "Invalid determinator command" + exit 1 ;; esac -- GitLab