From f3801528c19e5123daf235241ad1ae3d477ce00b Mon Sep 17 00:00:00 2001 From: Sagar Vemuri Date: Wed, 18 Jul 2018 18:41:26 -0700 Subject: [PATCH] Disable DBFlushTest.SyncFail and DBTest.GroupCommitTest on Travis (#4154) Summary: I am temporarily disabling DBFlushTest.SyncFail and DBTest.GroupCommitTest tests on Travis until we figure out the root-cause. These tests will still continue to run locally though. I haven't been able to reproduce these failures locally so far (even on a [local Travis environment](https://docs.travis-ci.com/user/common-build-problems/#Troubleshooting-Locally-in-a-Docker-Image) ). These tests are failing way too frequently causing everyone to wonder why their PR failed on travis, and waste time in debugging. Pull Request resolved: https://github.com/facebook/rocksdb/pull/4154 Differential Revision: D8907258 Pulled By: sagar0 fbshipit-source-id: f40068b16e9245fb3791b6a4796435d1ce1ed205 --- db/db_flush_test.cc | 4 ++++ db/db_test.cc | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/db/db_flush_test.cc b/db/db_flush_test.cc index e6758c2ec..a9c5a19a3 100644 --- a/db/db_flush_test.cc +++ b/db/db_flush_test.cc @@ -55,6 +55,9 @@ TEST_F(DBFlushTest, FlushWhileWritingManifest) { #endif // ROCKSDB_LITE } +#ifndef TRAVIS +// Disable this test temporarily on Travis as it fails intermittently. +// Github issue: #4151 TEST_F(DBFlushTest, SyncFail) { std::unique_ptr fault_injection_env( new FaultInjectionTestEnv(env_)); @@ -92,6 +95,7 @@ TEST_F(DBFlushTest, SyncFail) { ASSERT_EQ(refs_before, cfd->current()->TEST_refs()); Destroy(options); } +#endif // TRAVIS TEST_F(DBFlushTest, FlushInLowPriThreadPool) { // Verify setting an empty high-pri (flush) thread pool causes flushes to be diff --git a/db/db_test.cc b/db/db_test.cc index f565fa437..f65007052 100644 --- a/db/db_test.cc +++ b/db/db_test.cc @@ -2149,6 +2149,9 @@ static void GCThreadBody(void* arg) { } // namespace +#ifndef TRAVIS +// Disable this test temporarily on Travis as it fails intermittently. +// Github issue: #4151 TEST_F(DBTest, GroupCommitTest) { do { Options options = CurrentOptions(); @@ -2195,6 +2198,7 @@ TEST_F(DBTest, GroupCommitTest) { ASSERT_GT(hist_data.average, 0.0); } while (ChangeOptions(kSkipNoSeekToLast)); } +#endif // TRAVIS namespace { typedef std::map KVMap;