Fix regression test script (#8753)
Summary: Regression test is broken and not running: 1. failed test is not reporting, fix it by add `set -e` 2. internal regression test is not run inside github, removing that 3. fix a few minor issues to pass the test 4. delete unused binary size build, and regression test is reporting binary size now. Pull Request resolved: https://github.com/facebook/rocksdb/pull/8753 Test Plan: CI: https://www.internalfb.com/intern/sandcastle/job/13510799359573861 Reviewed By: ltamasi Differential Revision: D30754380 Pulled By: jay-zhuang fbshipit-source-id: 0cfa008327fff31bc61118a3fe642924090d28e1main
parent
361895ad79
commit
0c942a9c0d
@ -1,42 +0,0 @@ |
|||||||
#!/usr/bin/env bash |
|
||||||
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved. |
|
||||||
# Script to report lite build binary size for latest RocksDB commits. |
|
||||||
# Usage: |
|
||||||
# ./report_lite_binary_size [num_recent_commits] |
|
||||||
|
|
||||||
num_recent_commits=${1:-10} |
|
||||||
|
|
||||||
echo "Computing RocksDB lite build binary size for the most recent $num_recent_commits commits." |
|
||||||
|
|
||||||
for ((i=0; i < num_recent_commits; i++)) |
|
||||||
do |
|
||||||
git checkout master~$i |
|
||||||
commit_hash=$(git show -s --format=%H) |
|
||||||
commit_time=$(git show -s --format=%ct) |
|
||||||
|
|
||||||
# It would be nice to check if scuba already have a record for the commit, |
|
||||||
# but sandcastle don't seems to have scuba CLI installed. |
|
||||||
|
|
||||||
make clean |
|
||||||
make OPT=-DROCKSDB_LITE static_lib |
|
||||||
|
|
||||||
if make OPT=-DROCKSDB_LITE static_lib |
|
||||||
then |
|
||||||
build_succeeded='true' |
|
||||||
strip librocksdb.a |
|
||||||
binary_size=$(stat -c %s librocksdb.a) |
|
||||||
else |
|
||||||
build_succeeded='false' |
|
||||||
binary_size=0 |
|
||||||
fi |
|
||||||
|
|
||||||
current_time="\"time\": $(date +%s)" |
|
||||||
commit_hash="\"hash\": \"$commit_hash\"" |
|
||||||
commit_time="\"commit_time\": $commit_time" |
|
||||||
build_succeeded="\"build_succeeded\": \"$build_succeeded\"" |
|
||||||
binary_size="\"binary_size\": $binary_size" |
|
||||||
|
|
||||||
scribe_log="{\"int\":{$current_time, $commit_time, $binary_size}, \"normal\":{$commit_hash, $build_succeeded}}" |
|
||||||
echo "Logging to scribe: $scribe_log" |
|
||||||
scribe_cat perfpipe_rocksdb_lite_build "$scribe_log" |
|
||||||
done |
|
Loading…
Reference in new issue