This is an automated email from the ASF dual-hosted git repository. heybales pushed a commit to branch GEODE-7554 in repository https://gitbox.apache.org/repos/asf/geode-benchmarks.git
commit fbe3102f1bc4600a5f3d6c3ef07d47537f0560bd Author: Helena A. Bales <[email protected]> AuthorDate: Thu Dec 5 09:51:43 2019 -0800 write failed tests to file and update --ci readme --- .../src/main/java/org/apache/geode/perftest/analysis/Analyzer.java | 6 ++++++ infrastructure/scripts/aws/run_against_baseline.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harness/src/main/java/org/apache/geode/perftest/analysis/Analyzer.java b/harness/src/main/java/org/apache/geode/perftest/analysis/Analyzer.java index 13a90cc..3f92507 100644 --- a/harness/src/main/java/org/apache/geode/perftest/analysis/Analyzer.java +++ b/harness/src/main/java/org/apache/geode/perftest/analysis/Analyzer.java @@ -16,7 +16,9 @@ package org.apache.geode.perftest.analysis; import static java.lang.Double.isNaN; +import java.io.BufferedWriter; import java.io.File; +import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; @@ -70,6 +72,9 @@ public class Analyzer { benchmarkRunResult.writeResult(new PrintWriter(System.out)); /* throw exc if failed? */ + String errorFilePath = testResultArg + "/../failedTests"; + BufferedWriter writer = new BufferedWriter(new FileWriter(errorFilePath, true)); + boolean isSignificantlyBetter = false; boolean isHighWaterCandidate = true; StringBuilder errorMessage = new StringBuilder(); @@ -90,6 +95,7 @@ public class Analyzer { isSignificantlyBetter = true; } } + writer.append(benchmarkResult.name); } } diff --git a/infrastructure/scripts/aws/run_against_baseline.sh b/infrastructure/scripts/aws/run_against_baseline.sh index f4e54fa..9681f58 100755 --- a/infrastructure/scripts/aws/run_against_baseline.sh +++ b/infrastructure/scripts/aws/run_against_baseline.sh @@ -129,7 +129,7 @@ while (( "$#" )); do echo "-R|--baseline-geode-repo : Geode baseline repo (default: ${DEFAULT_BASELINE_REPO})" echo "-B|--baseline-geode-branch : Geode baseline branch" echo "-m|--metadata : Test metadata to output to file, comma-delimited" - echo "--ci : Set if starting instances for Continuous Integration" + echo "--ci : Set if starting instances for Continuous Integration - used to retry failed tests and to name/target AWS instances" echo "-- : All subsequent arguments are passed to the benchmark task as arguments." echo "-h|--help|-? : This help message" exit 1
