[ARVADOS] created: 1.1.4-317-g258838b

Git user git at public.curoverse.com
Fri May 25 16:25:38 EDT 2018


        at  258838bad5ef43181975956bd16a5154852a7832 (commit)


commit 258838bad5ef43181975956bd16a5154852a7832
Author: Nico Cesar <ncesar at veritasgenetics.com>
Date:   Fri May 25 16:24:11 2018 -0400

    deprecating create-plot-data-from-log.sh
    
    refs #13539
    
    Arvados-DCO-1.1-Signed-off-by: Nico Cesar <ncesar at veritasgenetics.com>

diff --git a/build/create-plot-data-from-log.sh b/build/create-plot-data-from-log.sh
deleted file mode 100755
index 0741fd9..0000000
--- a/build/create-plot-data-from-log.sh
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/bin/bash
-# Copyright (C) The Arvados Authors. All rights reserved.
-#
-# SPDX-License-Identifier: AGPL-3.0
-
-build=$1
-file=$2
-outputdir=$3
-
-usage() {
-    echo "./$0 build_number file_to_parse output_dir"
-    echo "this script will use the build output to generate *csv and *txt"
-    echo "for jenkins plugin plot https://github.com/jenkinsci/plot-plugin/"
-}
-
-if [ $# -ne 3 ]
-then
-    usage
-    exit 1
-fi
-
-if [ ! -e $file ]
-then
-    usage
-    echo "$file doesn't exist! exiting"
-    exit 2
-fi
-if [ ! -w $outputdir ]
-then
-    usage
-    echo "$outputdir isn't writeable! exiting"
-    exit 3
-fi
-
-#------------------------------
-## MAXLINE is the amount of lines that will read after the pattern
-## is match (the logfile could be hundred thousands lines long).
-## 1000 should be safe enough to capture all the output of the individual test
-MAXLINES=1000
-
-## TODO: check $build and $file make sense
-
-for test in \
- test_Create_and_show_large_collection_with_manifest_text_of_20000000 \
- test_Create,_show,_and_update_description_for_large_collection_with_manifest_text_of_100000 \
- test_Create_one_large_collection_of_20000000_and_one_small_collection_of_10000_and_combine_them
-do
- cleaned_test=$(echo $test | tr -d ",.:;/")
- (zgrep -i -E -A$MAXLINES "^[A-Za-z0-9]+Test: $test" $file && echo "----") | tail -n +1 | tail --lines=+3|grep -B$MAXLINES -E "^-*$" -m1 > $outputdir/$cleaned_test-$build.txt
- result=$?
- if [ $result -eq 0 ]
- then
-   echo processing  $outputdir/$cleaned_test-$build.txt creating  $outputdir/$cleaned_test.csv
-   echo $(grep ^Completed $outputdir/$cleaned_test-$build.txt | perl -n -e '/^Completed (.*) in [0-9]+ms.*$/;print "".++$line."-$1,";' | perl -p -e 's/,$//g'|tr " " "_" ) >  $outputdir/$cleaned_test.csv
-   echo $(grep ^Completed $outputdir/$cleaned_test-$build.txt | perl -n -e '/^Completed.*in ([0-9]+)ms.*$/;print "$1,";' | perl -p -e 's/,$//g' ) >>  $outputdir/$cleaned_test.csv
-   #echo URL=https://ci.curoverse.com/view/job/arvados-api-server/ws/apps/workbench/log/$cleaned_test-$build.txt/*view*/ >>  $outputdir/$test.properties
- else
-   echo "$test was't found on $file"
-   cleaned_test=$(echo $test | tr -d ",.:;/")
-   >  $outputdir/$cleaned_test.csv
- fi
-done
diff --git a/build/run-tests.sh b/build/run-tests.sh
index 8a8f5b6..d13e80f 100755
--- a/build/run-tests.sh
+++ b/build/run-tests.sh
@@ -160,7 +160,6 @@ fatal() {
 
 exit_cleanly() {
     trap - INT
-    create-plot-data-from-log.sh $BUILD_NUMBER "$WORKSPACE/apps/workbench/log/test.log" "$WORKSPACE/apps/workbench/log/"
     rotate_logfile "$WORKSPACE/apps/workbench/log/" "test.log"
     stop_services
     rotate_logfile "$WORKSPACE/services/api/log/" "test.log"

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list