Fix some errors showing up in Travis builds (#7359)
Summary: Also enables a pull request to trigger all the Travis configurations by writing FULL_CI in the commit message. (See what I did there?) First issue make: *** No rule to make target 'jl/util/crc32c_ppc_asm.o', needed by 'rocksdbjava'. Stop. Second issue tools/db_bench_tool.cc:5514:38: error: ‘gen_exp.rocksdb::Benchmark::GenerateTwoTermExpKeys::keyrange_size_’ may be used uninitialized in this function Pull Request resolved: https://github.com/facebook/rocksdb/pull/7359 Test Plan: CI Reviewed By: zhichao-cao Differential Revision: D23582132 Pulled By: pdillinger fbshipit-source-id: 06d794673fd522ba11cf6398385387e6bd97ef89
This commit is contained in:
parent
0de335e076
commit
9de912de3f
68
.travis.yml
68
.travis.yml
@ -87,134 +87,134 @@ matrix:
|
|||||||
- os: linux
|
- os: linux
|
||||||
compiler: clang
|
compiler: clang
|
||||||
# Exclude all but most unique cmake variants for pull requests, but build all in branches
|
# Exclude all but most unique cmake variants for pull requests, but build all in branches
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
env: JOB_NAME=cmake
|
env: JOB_NAME=cmake
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
env: JOB_NAME=cmake-gcc8
|
env: JOB_NAME=cmake-gcc8
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: amd64
|
arch: amd64
|
||||||
env: JOB_NAME=cmake-gcc9
|
env: JOB_NAME=cmake-gcc9
|
||||||
# Exclude most osx, arm64 and ppc64le tests for pull requests, but build in branches
|
# Exclude most osx, arm64 and ppc64le tests for pull requests, but build in branches
|
||||||
# Temporarily disable ppc64le unit tests in PRs until Travis gets its act together (#6653)
|
# Temporarily disable ppc64le unit tests in PRs until Travis gets its act together (#6653)
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: TEST_GROUP=platform_dependent
|
env: TEST_GROUP=platform_dependent
|
||||||
# NB: the cmake build is a partial java test
|
# NB: the cmake build is a partial java test
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: osx
|
os: osx
|
||||||
env: TEST_GROUP=1
|
env: TEST_GROUP=1
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: TEST_GROUP=1
|
env: TEST_GROUP=1
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: TEST_GROUP=1
|
env: TEST_GROUP=1
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: osx
|
os: osx
|
||||||
env: TEST_GROUP=2
|
env: TEST_GROUP=2
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: TEST_GROUP=2
|
env: TEST_GROUP=2
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: TEST_GROUP=2
|
env: TEST_GROUP=2
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: osx
|
os: osx
|
||||||
env: TEST_GROUP=3
|
env: TEST_GROUP=3
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: TEST_GROUP=3
|
env: TEST_GROUP=3
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: TEST_GROUP=3
|
env: TEST_GROUP=3
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: osx
|
os: osx
|
||||||
env: TEST_GROUP=4
|
env: TEST_GROUP=4
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: TEST_GROUP=4
|
env: TEST_GROUP=4
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: TEST_GROUP=4
|
env: TEST_GROUP=4
|
||||||
- if: type = pull_request AND commit_message !~ /java/
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
||||||
os : osx
|
os : osx
|
||||||
env: JOB_NAME=java_test
|
env: JOB_NAME=java_test
|
||||||
- if: type = pull_request AND commit_message !~ /java/
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=java_test
|
env: JOB_NAME=java_test
|
||||||
- if: type = pull_request AND commit_message !~ /java/
|
- if: type = pull_request AND commit_message !~ /FULL_CI/ AND commit_message !~ /java/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=java_test
|
env: JOB_NAME=java_test
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : osx
|
os : osx
|
||||||
env: JOB_NAME=lite_build
|
env: JOB_NAME=lite_build
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=lite_build
|
env: JOB_NAME=lite_build
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=lite_build
|
env: JOB_NAME=lite_build
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : osx
|
os : osx
|
||||||
env: JOB_NAME=examples
|
env: JOB_NAME=examples
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=examples
|
env: JOB_NAME=examples
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=examples
|
env: JOB_NAME=examples
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=cmake-gcc8
|
env: JOB_NAME=cmake-gcc8
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=cmake-gcc8
|
env: JOB_NAME=cmake-gcc8
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=cmake-gcc9
|
env: JOB_NAME=cmake-gcc9
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=cmake-gcc9
|
env: JOB_NAME=cmake-gcc9
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=cmake-gcc9-c++20
|
env: JOB_NAME=cmake-gcc9-c++20
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=cmake-gcc9-c++20
|
env: JOB_NAME=cmake-gcc9-c++20
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : osx
|
os : osx
|
||||||
env: JOB_NAME=status_checked
|
env: JOB_NAME=status_checked
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os : linux
|
os : linux
|
||||||
arch: arm64
|
arch: arm64
|
||||||
env: JOB_NAME=status_checked
|
env: JOB_NAME=status_checked
|
||||||
- if: type = pull_request
|
- if: type = pull_request AND commit_message !~ /FULL_CI/
|
||||||
os: linux
|
os: linux
|
||||||
arch: ppc64le
|
arch: ppc64le
|
||||||
env: JOB_NAME=status_checked
|
env: JOB_NAME=status_checked
|
||||||
|
11
Makefile
11
Makefile
@ -2150,13 +2150,6 @@ rocksdbjavageneratepom:
|
|||||||
jl/%.o: %.cc
|
jl/%.o: %.cc
|
||||||
$(AM_V_CC)mkdir -p $(@D) && $(CXX) $(CXXFLAGS) -fPIC -c $< -o $@ $(COVERAGEFLAGS)
|
$(AM_V_CC)mkdir -p $(@D) && $(CXX) $(CXXFLAGS) -fPIC -c $< -o $@ $(COVERAGEFLAGS)
|
||||||
|
|
||||||
jl/crc32c_ppc.o: util/crc32c_ppc.c
|
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
jl/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
|
||||||
|
|
||||||
|
|
||||||
rocksdbjava: $(LIB_OBJECTS)
|
rocksdbjava: $(LIB_OBJECTS)
|
||||||
$(AM_V_GEN)cd java;$(MAKE) javalib;
|
$(AM_V_GEN)cd java;$(MAKE) javalib;
|
||||||
$(AM_V_at)rm -f ./java/target/$(ROCKSDBJNILIB)
|
$(AM_V_at)rm -f ./java/target/$(ROCKSDBJNILIB)
|
||||||
@ -2219,7 +2212,7 @@ ifeq ($(HAVE_POWER8),1)
|
|||||||
$(OBJ_DIR)/util/crc32c_ppc.o: util/crc32c_ppc.c
|
$(OBJ_DIR)/util/crc32c_ppc.o: util/crc32c_ppc.c
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
|
|
||||||
+$(OBJ_DIR)/util/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
$(OBJ_DIR)/util/crc32c_ppc_asm.o: util/crc32c_ppc_asm.S
|
||||||
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
$(AM_V_CC)$(CC) $(CFLAGS) -c $< -o $@
|
||||||
endif
|
endif
|
||||||
$(OBJ_DIR)/%.o: %.cc
|
$(OBJ_DIR)/%.o: %.cc
|
||||||
@ -2265,7 +2258,7 @@ $(OBJ_DIR)/%.c.d: %.c
|
|||||||
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
||||||
-MM -MT'$@' -MT'$(<:.c=.o)' "$<" -o '$@'
|
-MM -MT'$@' -MT'$(<:.c=.o)' "$<" -o '$@'
|
||||||
|
|
||||||
+$(OBJ_DIR)/%.S.d: %.S
|
$(OBJ_DIR)/%.S.d: %.S
|
||||||
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
@$(CXX) $(CXXFLAGS) $(PLATFORM_SHARED_CFLAGS) \
|
||||||
-MM -MT'$@' -MT'$(<:.S=.o)' "$<" -o '$@'
|
-MM -MT'$@' -MT'$(<:.S=.o)' "$<" -o '$@'
|
||||||
|
|
||||||
|
@ -5394,19 +5394,12 @@ class Benchmark {
|
|||||||
// based on the hotness of the prefix and also the key hotness distribution.
|
// based on the hotness of the prefix and also the key hotness distribution.
|
||||||
class GenerateTwoTermExpKeys {
|
class GenerateTwoTermExpKeys {
|
||||||
public:
|
public:
|
||||||
int64_t keyrange_rand_max_;
|
// Avoid uninitialized warning-as-error in some compilers
|
||||||
int64_t keyrange_size_;
|
int64_t keyrange_rand_max_ = 0;
|
||||||
int64_t keyrange_num_;
|
int64_t keyrange_size_ = 0;
|
||||||
bool initiated_;
|
int64_t keyrange_num_ = 0;
|
||||||
std::vector<KeyrangeUnit> keyrange_set_;
|
std::vector<KeyrangeUnit> keyrange_set_;
|
||||||
|
|
||||||
GenerateTwoTermExpKeys() {
|
|
||||||
keyrange_rand_max_ = FLAGS_num;
|
|
||||||
initiated_ = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
~GenerateTwoTermExpKeys() {}
|
|
||||||
|
|
||||||
// Initiate the KeyrangeUnit vector and calculate the size of each
|
// Initiate the KeyrangeUnit vector and calculate the size of each
|
||||||
// KeyrangeUnit.
|
// KeyrangeUnit.
|
||||||
Status InitiateExpDistribution(int64_t total_keys, double prefix_a,
|
Status InitiateExpDistribution(int64_t total_keys, double prefix_a,
|
||||||
@ -5414,7 +5407,6 @@ class Benchmark {
|
|||||||
double prefix_d) {
|
double prefix_d) {
|
||||||
int64_t amplify = 0;
|
int64_t amplify = 0;
|
||||||
int64_t keyrange_start = 0;
|
int64_t keyrange_start = 0;
|
||||||
initiated_ = true;
|
|
||||||
if (FLAGS_keyrange_num <= 0) {
|
if (FLAGS_keyrange_num <= 0) {
|
||||||
keyrange_num_ = 1;
|
keyrange_num_ = 1;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user