Limit the plots to last 100 builds for each test 95/21095/1
authorhalil.cakal <halil.cakal@est.tech>
Thu, 9 May 2024 15:22:31 +0000 (16:22 +0100)
committerhalil.cakal <halil.cakal@est.tech>
Thu, 9 May 2024 15:23:35 +0000 (16:23 +0100)
Issue-ID: CPS-2192

Change-Id: I25c0e88c8bb1894d2ae2927dded7d91588025003
Signed-off-by: halil.cakal <halil.cakal@est.tech>
jjb/onap/cps/prepare-performance-tests-data.sh

index 3ccb5ed98866f8319dd4d57d6dd7be083887ffd7..276ea4735f929581686309f75cf5c191748f3fd3 100755 (executable)
@@ -230,6 +230,20 @@ else
   fi
 fi
 
+# 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"