diff --git a/pr_testing/run-pr-profiling.sh b/pr_testing/run-pr-profiling.sh
index 0cdb5db144f..b6e39840ff0 100755
--- a/pr_testing/run-pr-profiling.sh
+++ b/pr_testing/run-pr-profiling.sh
@@ -29,9 +29,26 @@ for PROFILING_WORKFLOW in $WORKFLOWS;do
echo "
Profiling wf $PROFILING_WORKFLOW' results" > $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
LOCALREL=${WORKSPACE}/${CMSSW_VERSION}
export LOCALRT=${WORKSPACE}/${CMSSW_VERSION}
+ export WORKING_DIR=${WORKSPACE}/${CMSSW_VERSION}
PROF_RES="OK"
export PROFILING_WORKFLOW
+ mkdir -p $WORKSPACE/IB
+ cd $WORKSPACE/IB
+ scram project ${CMSSW_VERSION}
+ cd $CMSSW_VERSION
+ eval `scram run -sh`
$WORKSPACE/profiling/Gen_tool/Gen.sh $CMSSW_VERSION || true
+ export RUNALLSTEPS=1
+ $WORKSPACE/profiling/Gen_tool/runall.sh $CMSSW_VERSION || true
+ unset RUNALLSTEPS
+ eval `scram unsetenv -sh`
+ cd $WORKING_DIR
+ eval `scram run -sh`
+ cd $WORKSPACE
+ for f in $(find $WORKSPACE/$CMSSW_VERSION/$PROFILING_WORKFLOW -name step*.json);do
+ b=$(basename $f)
+ cp -v $f $WORKSPACE/$CMSSW_VERSION/$PROFILING_WORKFLOW/$CMSSW_VERSION-$b || true
+ done
$WORKSPACE/profiling/Gen_tool/runall.sh $CMSSW_VERSION || true
$WORKSPACE/profiling/Gen_tool/runall_cpu.sh $CMSSW_VERSION || true
$WORKSPACE/profiling/Gen_tool/runall_mem_GC.sh $CMSSW_VERSION || true
@@ -95,8 +112,7 @@ for PROFILING_WORKFLOW in $WORKFLOWS;do
ls -l $LOCALREL/profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/${PROFILING_WORKFLOW}/${UPLOAD_UNIQ_ID}/$BASENAME || true
AMP="&"
echo "- $BASENAME
" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
- get_jenkins_artifacts profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/$f $CMSSW_VERSION-$BASENAME
- $CMS_BOT_DIR/comparisons/resources-diff.py $f $CMSSW_VERSION-$BASENAME >$f.log || true
+ $CMS_BOT_DIR/comparisons/resources-diff.py $f $PROFILING_WORKFLOW/$CMSSW_VERSION-$BASENAME >$f.log || true
echo "- diff-$BASENAME
" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
done
for f in $(find $PROFILING_WORKFLOW -type f -name '*.log' -o -name '*.txt' -o -name '*.tmp' -o -name '*.heap*' -o -name '*.json' -o -name '*.html') ; do