diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a0344a5acee9..f8e460d89c65 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -129,10 +129,10 @@ jobs: - name: Build run: | cd ${GITHUB_WORKSPACE}/build - ninja search_family_test + #ninja search_family_test df -h echo "-----------------------------" - ninja src/all + ninja multi_test - name: PostFail if: failure() @@ -145,42 +145,44 @@ jobs: cd ${GITHUB_WORKSPACE}/build echo Run ctest -V -L DFLY - GLOG_alsologtostderr=1 GLOG_vmodule=rdb_load=1,rdb_save=1,snapshot=1,op_manager=1,op_manager_test=1 \ - FLAGS_fiber_safety_margin=4096 FLAGS_list_experimental_v2=true timeout 20m ctest -V -L DFLY -E allocation_tracker_test - - # Run allocation tracker test separately without alsologtostderr because it generates a TON of logs. - FLAGS_fiber_safety_margin=4096 timeout 5m ./allocation_tracker_test - - timeout 5m ./dragonfly_test - timeout 5m ./json_family_test --jsonpathv2=false - timeout 5m ./tiered_storage_test --vmodule=db_slice=2 --logtostderr - - - - name: C++ Unit Tests - Epoll - run: | - cd ${GITHUB_WORKSPACE}/build - - # Create a rule that automatically prints stacktrace upon segfault - cat > ./init.gdb < ./init.gdb <, lua_force_atomicity_shas); +ABSL_DECLARE_FLAG(bool, experimental_cluster_shard_by_slot); namespace dfly { @@ -890,6 +891,8 @@ TEST_F(MultiTest, MultiLeavesTxQueue) { // tx (mget) after it that runs and tests for atomicity. absl::FlagSaver fs; absl::SetFlag(&FLAGS_multi_exec_squash, false); + absl::SetFlag(&FLAGS_experimental_cluster_shard_by_slot, true); + InitializeCluster(); for (unsigned i = 0; i < 20; ++i) { string key = StrCat("x", i); @@ -897,7 +900,7 @@ TEST_F(MultiTest, MultiLeavesTxQueue) { } Run({"mget", "x5", "x8", "x9", "x13", "x16", "x17"}); - ASSERT_EQ(1, GetDebugInfo().shards_count); + ASSERT_EQ(3, GetDebugInfo().shards_count); auto fb1 = pp_->at(1)->LaunchFiber(Launch::post, [&] { // Runs multi on shard0 1000 times.