[ 
https://issues.apache.org/jira/browse/TRAFODION-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15132778#comment-15132778
 ] 

ASF GitHub Bot commented on TRAFODION-1614:
-------------------------------------------

Github user robertamarton commented on a diff in the pull request:

    https://github.com/apache/incubator-trafodion/pull/306#discussion_r51919029
  
    --- Diff: install/traf_tools_setup.sh ---
    @@ -93,13 +93,38 @@ function downloadSource
       fi
     }
     
    +LOGDIR=$(pwd)
    +LOGFILE=$LOGDIR/traf_tools_setup.log
    +BLDLOG=$LOGDIR/traf_tools_bld
    +
    +# 
-----------------------------------------------------------------------------
    +# execute build functions in background
    +# $1 - short name of component (single word, also used in logfile name)
    +# $2 - first make target (usually empty string for the default target)
    +# $3 - second make target
    +# $4 - dir/file to check for success
    +# 
-----------------------------------------------------------------------------
    +function bkgBuild
    +{
    +  LOG=${BLDLOG}-${1}.log
    +  echo "INFO:   Starting background make and install for $1" | tee -a 
$LOGFILE
    +
    + (make $2 > $LOG 2>&1
    +  echo "INFO:   make completed" > $LOG
    +  make $3 > $LOG 2>&1
    +  if [[ ! -e $4 ]]; then
    +    echo "ERROR:  failed to install $1" | tee -a $LOGFILE
    +    echo "  see details in $LOG" | tee -a $LOGFILE
    +    exit 2;
    +  fi
    +  echo "INFO:   $1 install complete at $(date), files placed in $TOOLSDIR" 
| tee -a $LOGFILE
    + ) &
    +}
     
     # main code
     
     TOOLSDIR=
     BASEDIR=
    -LOGDIR=`pwd`
    -LOGFILE=$LOGDIR/traf_tools_setup.log
     rm $LOGFILE 2>/dev/null
    --- End diff --
    
    where does the LOGFILE variable get set?


> Improve performance of traf_tools_setup.sh script
> -------------------------------------------------
>
>                 Key: TRAFODION-1614
>                 URL: https://issues.apache.org/jira/browse/TRAFODION-1614
>             Project: Apache Trafodion
>          Issue Type: Improvement
>          Components: Build Infrastructure
>            Reporter: Roberta Marton
>            Assignee: Steve Varnau
>
> Trafodion requires several tools to be created in order to successfully 
> build.  
> Today, it takes 45 minutes to an hour on a VM to perform this task. 
> This JIRA was written to improve the time it takes to build these tools.  
> There could be several solutions to do this:
> - build tools in parallel
> - use predefined binaries, if they exists (e.g. LLVM), to avoid building them
> - release convenience binaries that contain the pre-built tools



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to