Summary:
- Fix cmake build failure with gflags.
- Add CI tests for both gflags 2.1 and 2.2.
- Fix ctest config with gtest.
- Add CI to run test with ctest.
One benefit of ctest is it support timeout, it's set to 5min in our CI, so we will know which test is hang.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/8324
Test Plan: CI pass
Reviewed By: ajkr
Differential Revision: D28762517
Pulled By: jay-zhuang
fbshipit-source-id: 09063c5af5f9f33abfcdeb48593acbd9826cd199
main
Jay Zhuang4 years agocommitted byFacebook GitHub Bot
- checkout# check out the code in the project directory
@ -212,7 +223,7 @@ jobs:
build-linux-lite:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- pre-steps
@ -222,7 +233,7 @@ jobs:
build-linux-lite-release:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:large
steps:
- checkout# check out the code in the project directory
@ -235,7 +246,7 @@ jobs:
build-linux-clang-no_test_run:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:xlarge
steps:
- checkout# check out the code in the project directory
@ -245,7 +256,7 @@ jobs:
build-linux-clang10-asan:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- pre-steps
@ -256,7 +267,7 @@ jobs:
build-linux-clang10-mini-tsan:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- pre-steps
@ -267,7 +278,7 @@ jobs:
build-linux-clang10-ubsan:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- pre-steps
@ -278,7 +289,7 @@ jobs:
build-linux-clang10-clang-analyze:
machine:
image:ubuntu-1604:202007-01
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- pre-steps
@ -288,13 +299,25 @@ jobs:
- run:CC=clang-10 CXX=clang++-10 ROCKSDB_DISABLE_ALIGNED_NEW=1 CLANG_ANALYZER="/usr/bin/clang++-10" CLANG_SCAN_BUILD=scan-build-10 USE_CLANG=1 make V=1 -j32 analyze | .circleci/cat_ignore_eagain# aligned new doesn't work for reason we haven't figured out. For unknown, reason passing "clang++-10" as CLANG_ANALYZER doesn't work, and we need a full path.
- post-steps
build-linux-cmake-no_test_run:
build-linux-cmake:
machine:
image:ubuntu-1604:202007-01
resource_class:large
image:ubuntu-1604:202104-01
resource_class:2xlarge
steps:
- checkout# check out the code in the project directory
- install-gflags
- upgrade-cmake
- run:(mkdir build && cd build && cmake -DWITH_GFLAGS=1 .. && make V=1 -j20 && ctest -j20) | .circleci/cat_ignore_eagain
- post-steps
build-linux-cmake-ubuntu-20:
machine:
image:ubuntu-2004:202104-01
resource_class:2xlarge
steps:
- checkout# check out the code in the project directory
- run:(mkdir build && cd build && cmake -DWITH_GFLAGS=0 .. && make V=1 -j8) | .circleci/cat_ignore_eagain
- install-gflags
- run:(mkdir build && cd build && cmake -DWITH_GFLAGS=1 .. && make V=1 -j20 && ctest -j20) | .circleci/cat_ignore_eagain