From 30d261e382ed5d3db9a29767bcac97d70df3bc3f Mon Sep 17 00:00:00 2001 From: "halil.cakal" Date: Thu, 9 May 2024 16:22:31 +0100 Subject: [PATCH] Limit the plots to last 100 builds for each test Issue-ID: CPS-2192 Change-Id: I25c0e88c8bb1894d2ae2927dded7d91588025003 Signed-off-by: halil.cakal --- jjb/onap/cps/prepare-performance-tests-data.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/jjb/onap/cps/prepare-performance-tests-data.sh b/jjb/onap/cps/prepare-performance-tests-data.sh index 3ccb5ed98..276ea4735 100755 --- a/jjb/onap/cps/prepare-performance-tests-data.sh +++ b/jjb/onap/cps/prepare-performance-tests-data.sh @@ -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" -- 2.25.1