From 1ac8357ce47e26dc0c9bbc8b9d0f5ae904217f81 Mon Sep 17 00:00:00 2001 From: Ruffalo Lavoisier Date: Wed, 21 Sep 2022 10:44:23 +0900 Subject: [PATCH] Change file extension --- r2-perf-test/src/sh/{parse_gclog.sh => parse_gclog.py} | 0 r2-perf-test/src/sh/process_r2_perf_results.sh | 6 +++--- r2-perf-test/src/sh/{stats_diff.sh => stats_diff.py} | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename r2-perf-test/src/sh/{parse_gclog.sh => parse_gclog.py} (100%) rename r2-perf-test/src/sh/{stats_diff.sh => stats_diff.py} (94%) diff --git a/r2-perf-test/src/sh/parse_gclog.sh b/r2-perf-test/src/sh/parse_gclog.py similarity index 100% rename from r2-perf-test/src/sh/parse_gclog.sh rename to r2-perf-test/src/sh/parse_gclog.py diff --git a/r2-perf-test/src/sh/process_r2_perf_results.sh b/r2-perf-test/src/sh/process_r2_perf_results.sh index 56a47513e1..7645cdc887 100755 --- a/r2-perf-test/src/sh/process_r2_perf_results.sh +++ b/r2-perf-test/src/sh/process_r2_perf_results.sh @@ -61,7 +61,7 @@ then fi # Parse gc log -command="$srcDir/sh/parse_gclog.sh $currentNodeWorkspaceDir/build/r2-perf-test/logs/$targetServerHost/gc/gc.log $buildDir/logs/$targetServerHost/parsed_gc.csv" +command="$srcDir/sh/parse_gclog.py $currentNodeWorkspaceDir/build/r2-perf-test/logs/$targetServerHost/gc/gc.log $buildDir/logs/$targetServerHost/parsed_gc.csv" echo "Executing $command" $command @@ -79,11 +79,11 @@ $command # Generate Perf Test Results and GC diffs (current vs previous run) -command="$srcDir/sh/stats_diff.sh $perfLoadGeneratorHudsonJobURL/perftest.json $publishDir/perftest.json $publishDir/perftest.diff Perf_Test_Results_DIFF_(current_vs_previos_run) Previous_R2 Current_R2" +command="$srcDir/sh/stats_diff.py $perfLoadGeneratorHudsonJobURL/perftest.json $publishDir/perftest.json $publishDir/perftest.diff Perf_Test_Results_DIFF_(current_vs_previos_run) Previous_R2 Current_R2" echo "Executing $command" $command -command="$srcDir/sh/stats_diff.sh $perfLoadGeneratorHudsonJobURL/gcstats.json $publishDir/gcstats.json $publishDir/gcstats.diff GC_Stats_DIFF_(current_vs_previos_run) Previous_GC Current_GC" +command="$srcDir/sh/stats_diff.py $perfLoadGeneratorHudsonJobURL/gcstats.json $publishDir/gcstats.json $publishDir/gcstats.diff GC_Stats_DIFF_(current_vs_previos_run) Previous_GC Current_GC" echo "Executing $command" $command diff --git a/r2-perf-test/src/sh/stats_diff.sh b/r2-perf-test/src/sh/stats_diff.py similarity index 94% rename from r2-perf-test/src/sh/stats_diff.sh rename to r2-perf-test/src/sh/stats_diff.py index 8556bb1b56..590ee79674 100755 --- a/r2-perf-test/src/sh/stats_diff.sh +++ b/r2-perf-test/src/sh/stats_diff.py @@ -9,8 +9,8 @@ def usage(): """ Prints the script's usage guide. """ - print "Usage: stats_diff.sh [file1: url or file path] [file2: url or file path] [output file] [report name] [column1 prefix] [column2 prefix]" - print "Example:./stats_diff.sh http://jenkins.n.com/job/R2_PERF_TEST/lastSuccessfulBuild/artifact/pegasus/publish/reports/perftest.json /home/usr/R2_PERF_TEST/pegasus/publish/reports/perftest.json /home/usr/R2_PERF_TEST/pegasus/publish/reports/perftest.diff \"Perf_Test_Results_DIFF_(previos_vs_current_run)\"" + print "Usage: stats_diff.py [file1: url or file path] [file2: url or file path] [output file] [report name] [column1 prefix] [column2 prefix]" + print "Example:./stats_diff.py http://jenkins.n.com/job/R2_PERF_TEST/lastSuccessfulBuild/artifact/pegasus/publish/reports/perftest.json /home/usr/R2_PERF_TEST/pegasus/publish/reports/perftest.json /home/usr/R2_PERF_TEST/pegasus/publish/reports/perftest.diff \"Perf_Test_Results_DIFF_(previos_vs_current_run)\"" def getData(source): data='' @@ -68,7 +68,7 @@ def main(): """ This is how we are called. Example call: - ./stats_diff.sh https://hudson.corp.linkedin.com/job/SI_R2_PERF_PEGASUS_RELEASE/lastSuccessfulBuild/artifact/pegasus/publish/reports/perftest.json /export/home/tester/hudson/data/workspace/SI_R2_PERF_PEGASUS_RELEASE/pegasus/publish/reports/perftest.json /export/home/tester/hudson/data/workspace/SI_R2_PERF_PEGASUS_RELEASE/pegasus/publish/reports/perftest.diff 'Perf Test Results DIFF (previos vs current run)' 'Previous' 'Current' + ./stats_diff.py https://hudson.corp.linkedin.com/job/SI_R2_PERF_PEGASUS_RELEASE/lastSuccessfulBuild/artifact/pegasus/publish/reports/perftest.json /export/home/tester/hudson/data/workspace/SI_R2_PERF_PEGASUS_RELEASE/pegasus/publish/reports/perftest.json /export/home/tester/hudson/data/workspace/SI_R2_PERF_PEGASUS_RELEASE/pegasus/publish/reports/perftest.diff 'Perf Test Results DIFF (previos vs current run)' 'Previous' 'Current' """ print(len(sys.argv))