-
-touch index.html createOperation.html readOperation.html updateOperation.html deleteOperation.html
-
-buildHTMLReport \
- "Creating openroadm anchors with large data" \
- "createLargeData.png" \
- "Read datatrees using openroadm root" \
- "readDataTrees.png" \
- "Update 100 data nodes" \
- "updateDatanodes.png" \
- "Batch delete 100 whole lists" \
- "batchDelete.png" \
- "Performance Review"
-
-buildPageReport "createLargeData.png" "Creating openroadm anchors with large data" "createOperation.html"
-buildPageReport "readDataTrees.png" "Read datatrees using openroadm root" "readOperation.html"
-buildPageReport "updateDatanodes.png" "Update 100 data nodes" "updateOperation.html"
-buildPageReport "batchDelete.png" "Batch delete 100 whole lists" "deleteOperation.html"
-
-
-buildPlotForCreateOperation() {
- buildNumber="$1"
- createAndAddHeader "$create_data" "$create_data_title_1"
- getAndRecordDataResults "$consoleText" "$creating_bookstore_pattern" "$create_data" "$buildNumber"
-}
-
-buildPlotForReadOperation() {
- buildNumber="$1"
- createAndAddHeader "$read_data" "$read_data_title_1"
- getAndRecordDataResults "$consoleText" "$read_datatreees_pattern" "$read_data" "$buildNumber"
-}
-
-buildPlotForUpdateOperation() {
- buildNumber="$1"
- createAndAddHeader "$update_data" "$update_data_title_1"
- getAndRecordDataResults "$consoleText" "$update_datanodes_pattern" "$update_data" "$buildNumber"
-}
-
-buildPlotForBatchOperation() {
- buildNumber="$1"
- createAndAddHeader "$delete_data" "$delete_data_title_1"
- getAndRecordDataResults "$consoleText" "$batch_delete_pattern" "$delete_data" "$buildNumber"
-}
-
-#############################################################################################################################
-#############################################################################################################################
-#############################################################################################################################
-#############################################################################################################################
-
-cd $WORKSPACE
-
-getLatestBuild
-if [ -z "$(ls -A)" ]; then
- # Calculate the starting value for the loop
- startValue=$((latestBuild - 50))
-
- # Start the loop from startValue up to latestBuild
- for ((i=startValue; i<=latestBuild; i++)); do
- getConsoleText "$i"
- buildPlotForCreateOperation "$i"
- buildPlotForReadOperation "$i"
- buildPlotForUpdateOperation "$i"
- buildPlotForBatchOperation "$i"
- done
- buildStaticReport "$create_data" "createLargeData"
- buildStaticReport "$read_data" "readDataTrees"
- buildStaticReport "$update_data" "updateDatanodes"
- buildStaticReport "$delete_data" "batchDelete"
-else
- getConsoleText $latestBuild
- buildPlotForCreateOperation $latestBuild
- buildPlotForReadOperation $latestBuild
- buildPlotForUpdateOperation $latestBuild
- buildPlotForBatchOperation $latestBuild
-
- buildStaticReport "$create_data" "createLargeData"
- buildStaticReport "$read_data" "readDataTrees"
- buildStaticReport "$update_data" "updateDatanodes"
- buildStaticReport "$delete_data" "batchDelete"
-fi
-
-
-touch index.html createOperation.html readOperation.html updateOperation.html deleteOperation.html
-
-buildHTMLReport \
- "Creating openroadm anchors with large data" \
- "createLargeData.png" \
- "Read datatrees using openroadm root" \
- "readDataTrees.png" \
- "Update 100 data nodes" \
- "updateDatanodes.png" \
- "Batch delete 100 whole lists" \
- "batchDelete.png" \
- "Performance Review"
-
-buildPageReport "createLargeData.png" "Creating openroadm anchors with large data" "createOperation.html"
-buildPageReport "readDataTrees.png" "Read datatrees using openroadm root" "readOperation.html"
-buildPageReport "updateDatanodes.png" "Update 100 data nodes" "updateOperation.html"
-buildPageReport "batchDelete.png" "Batch delete 100 whole lists" "deleteOperation.html"
+# Limit the plots to last 100 builds for each test
+for cps_stable_test_name in "${cps_stable_test_names[@]}"; do
+ tail -n 100 "$cps_stable_test_name.txt" > file.tmp && mv file.tmp "$cps_stable_test_name.txt"
+done
+for ncmp_stable_test_name in "${ncmp_stable_test_names[@]}"; do
+ tail -n 100 "$ncmp_stable_test_name.txt" > file.tmp && mv file.tmp "$ncmp_stable_test_name.txt"
+done
+for cps_unstable_test_name in "${cps_unstable_test_names[@]}"; do
+ tail -n 100 "$cps_unstable_test_name.txt" > file.tmp && mv file.tmp "$cps_unstable_test_name.txt"
+done
+for ncmp_unstable_test_name in "${ncmp_unstable_test_names[@]}"; do
+ tail -n 100 "$ncmp_unstable_test_name.txt" > file.tmp && mv file.tmp "$ncmp_unstable_test_name.txt"
+done
+
+# Plot image (graphs) files in png format
+for cps_stable_test_name in "${cps_stable_test_names[@]}"; do
+ buildPlotImage "$cps_stable_test_name.txt" "$cps_stable_test_name.png"
+done
+for ncmp_stable_test_name in "${ncmp_stable_test_names[@]}"; do
+ buildPlotImage "$ncmp_stable_test_name.txt" "$ncmp_stable_test_name.png"
+done
+for cps_unstable_test_name in "${cps_unstable_test_names[@]}"; do
+ buildPlotImage "$cps_unstable_test_name.txt" "$cps_unstable_test_name.png"
+done
+for ncmp_unstable_test_name in "${ncmp_unstable_test_names[@]}"; do
+ buildPlotImage "$ncmp_unstable_test_name.txt" "$ncmp_unstable_test_name.png"
+done
+
+# Build the category pages
+buildCategoryHtmlReport cps_stable_test_names[@] "cps stable tests performance review" "cpsStableTestsPerformanceReview.html"
+buildCategoryHtmlReport ncmp_stable_test_names[@] "ncmp stable tests performance review" "ncmpStableTestsPerformanceReview.html"
+buildCategoryHtmlReport cps_unstable_test_names[@] "cps unstable tests performance review" "cpsUnstableTestsPerformanceReview.html"
+buildCategoryHtmlReport ncmp_unstable_test_names[@] "ncmp unstable tests performance review" "ncmpUnstableTestsPerformanceReview.html"