From e9daedec84c5fa542a10c9a7de54c4975d55a549 Mon Sep 17 00:00:00 2001 From: Yanqin Jin Date: Tue, 11 Aug 2020 18:29:15 -0700 Subject: [PATCH] Add CircleCI for tests on non-shm (#7229) Summary: As title. Pull Request resolved: https://github.com/facebook/rocksdb/pull/7229 Test Plan: Watch for CircleCI results. Reviewed By: siying Differential Revision: D23023943 Pulled By: riversand963 fbshipit-source-id: 41a989a3ffdfd2decd309185e3b963e810419577 --- .circleci/config.yml | 40 ++++++++++++++++++++++++++++++++++++++++ Makefile | 2 +- 2 files changed, 41 insertions(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e0d57b4ca76..da4bb554126 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -257,6 +257,26 @@ jobs: command: | OPT=-DTRAVIS V=1 make -j4 static_lib && cd examples && make -j4 | ../.circleci/cat_ignore_eagain + build-linux-non-shm: + machine: + image: ubuntu-1604:201903-01 + resource_class: 2xlarge + parameters: + start_test: + default: "" + type: string + end_test: + default: "" + type: string + steps: + - checkout # checkout the code in the project directory + - run: pyenv global 3.5.2 + - run: sudo apt-get update -y && sudo apt-get install -y libgflags-dev + - run: + name: "Build and unit tests on non-shm" + command: | + TMPD=/tmp/rocksdb_test_tmp ROCKSDBTESTS_START=<> ROCKSDBTESTS_END=<> make V=1 J=32 -j32 check_some | .circleci/cat_ignore_eagain + workflows: build-linux: jobs: @@ -320,3 +340,23 @@ workflows: build-examples: jobs: - build-examples + build-linux-non-shm-1: + jobs: + - build-linux-non-shm: + start_test: "" + end_test: "db_tailing_iter_test" # make sure unique in src.mk + build-linux-non-shm-2: + jobs: + - build-linux-non-shm: + start_test: "db_tailing_iter_test" # make sure unique in src.mk + end_test: "db_test2" # make sure unique in src.mk + build-linux-non-shm-3: + jobs: + - build-linux-non-shm: + start_test: "db_test2" # make sure unique in src.mk + end_test: "arena_test" # make sure unique in src.mk + build-linux-non-shm-4: + jobs: + - build-linux-non-shm: + start_test: "compact_on_deletion_collector_test" # make sure unique in src.mk + end_test: "" diff --git a/Makefile b/Makefile index 05f73a54d20..ea55088e53c 100644 --- a/Makefile +++ b/Makefile @@ -618,7 +618,7 @@ TESTS_PASSING_ASC += folly_synchronization_distributed_mutex_test endif # Enable building all unit tests, but use check_some to run only tests - # known to pass ASC + # known to pass ASC (ASSERT_STATUS_CHECKED) SUBSET := $(TESTS_PASSING_ASC) # Alternate: only build unit tests known to pass ASC, and run them # with make check