You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@geode.apache.org by sm...@apache.org on 2019/01/11 08:54:43 UTC
[geode-benchmarks] branch autoanalyze created (now 309a7df)
This is an automated email from the ASF dual-hosted git repository.
smgoller pushed a change to branch autoanalyze
in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git.
at 309a7df Add first pass of analysis script.
This branch includes the following new commits:
new 309a7df Add first pass of analysis script.
The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
[geode-benchmarks] 01/01: Add first pass of analysis script.
Posted by sm...@apache.org.
This is an automated email from the ASF dual-hosted git repository.
smgoller pushed a commit to branch autoanalyze
in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git
commit 309a7dfdd329cbebc48265e7e87e8800280100f5
Author: Sean Goller <se...@goller.net>
AuthorDate: Fri Jan 11 00:52:00 2019 -0800
Add first pass of analysis script.
---
infrastructure/scripts/aws/analyze_tests.sh | 15 +++++++++++++++
infrastructure/scripts/aws/run_against_baseline.sh | 1 +
infrastructure/scripts/aws/run_tests.sh | 2 +-
3 files changed, 17 insertions(+), 1 deletion(-)
diff --git a/infrastructure/scripts/aws/analyze_tests.sh b/infrastructure/scripts/aws/analyze_tests.sh
new file mode 100755
index 0000000..15942ad
--- /dev/null
+++ b/infrastructure/scripts/aws/analyze_tests.sh
@@ -0,0 +1,15 @@
+#!/usr/bin/env bash
+
+OUTPUT_DIR=${1}
+
+TOP_DIR=$(git rev-parse --show-toplevel)
+
+echo ${TOP_DIR}
+
+BASELINE_DIR="${OUTPUT_DIR}/baseline"
+BRANCH_DIR="${OUTPUT_DIR}/branch"
+BASELINE_BENCHMARKS="$(ls -ltd ${BASELINE_DIR}/benchmarks_* | tail -1)"
+BRANCH_BENCHMARKS="$(ls -ltd ${BRANCH_DIR}/benchmarks_* | tail -1)"
+pushd ${TOP_DIR}
+./gradlew analyzeRun --args "${BASELINE_BENCHMARKS} ${BRANCH_BENCHMARKS}"
+popd
diff --git a/infrastructure/scripts/aws/run_against_baseline.sh b/infrastructure/scripts/aws/run_against_baseline.sh
index 1890b45..8e8b60a 100755
--- a/infrastructure/scripts/aws/run_against_baseline.sh
+++ b/infrastructure/scripts/aws/run_against_baseline.sh
@@ -26,3 +26,4 @@ DEFAULT_OUTPUT_DIR=output-${DATE}-${TAG}
OUTPUT=${5:-${DEFAULT_OUTPUT_DIR}}
./run_tests.sh ${TAG} ${BRANCH} ${BENCHMARK_BRANCH} ${OUTPUT}/branch
./run_tests.sh ${TAG} ${BASELINE} ${BENCHMARK_BRANCH} ${OUTPUT}/baseline
+./analyze_tests.sh ${OUTPUT}
diff --git a/infrastructure/scripts/aws/run_tests.sh b/infrastructure/scripts/aws/run_tests.sh
index 981fa56..0088d0f 100755
--- a/infrastructure/scripts/aws/run_tests.sh
+++ b/infrastructure/scripts/aws/run_tests.sh
@@ -47,7 +47,7 @@ ssh ${SSH_OPTIONS} geode@$FIRST_INSTANCE "\
mkdir -p ${OUTPUT}
-
+set +x
scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/reports ${OUTPUT}/reports
BENCHMARK_DIRECTORY="$(ssh ${SSH_OPTIONS} geode@${FIRST_INSTANCE} ls -l geode-benchmarks/geode-benchmarks/build/ | grep benchmark | awk 'NF>1{print $NF}')"
scp ${SSH_OPTIONS} -r geode@${FIRST_INSTANCE}:geode-benchmarks/geode-benchmarks/build/${BENCHMARK_DIRECTORY} ${OUTPUT}