Skip to content

Commit 0ea9824

Browse files
committed
Run moduleEventAllocMonitor-circles-diff.py for PR testing.
1 parent 26ea5cf commit 0ea9824

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

comparisons/moduleEventAllocMonitor-circles-diff.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import os
55
import sys
66

7-
87
METRIC_SPECS = [
98
("TotalMemoryGrowth", "bytes"),
109
("AvgRetained", "bytes"),

pr_testing/run-pr-profiling.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,23 @@ EOF
130130
echo "<a target=\"_blank\" href=\"${PROFILING_WORKFLOW}/diff-$BASENAME.html\">diff-$BASENAME</a></td>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
131131
done
132132
echo "</tr>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
133+
echo "<tr><td>Module Event Alloc Monitor Comparison</td>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
134+
for f in $(find $PROFILING_WORKFLOW -type f -name 'step*_moduleEventAllocMonitor.circles.json'| sort -V ) ; do
135+
BASENAME=$(basename $f)
136+
get_jenkins_artifacts profiling/${CMSSW_VERSION}/${SCRAM_ARCH}/$f $PWD/$CMSSW_VERSION-$BASENAME || true
137+
if ! [ -f $PWD/$CMSSW_VERSION-$BASENAME ] ; then
138+
echo "<td>IB file not found, skipping diff</td>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
139+
continue
140+
fi
141+
$CMS_BOT_DIR/comparisons/moduleEventAllocMonitor-circles-diff.py $CMSSW_VERSION-$BASENAME $f >$f.log || true
142+
echo "<td>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
143+
if grep "Error: input files describe different metrics" $f.log ; then
144+
echo "IB and PR files describe different metrics, comparing to self for diff<BR>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
145+
$CMS_BOT_DIR/comparisons/moduleEventAllocMonitor-circles-diff.py $f $f >$f.log || true
146+
fi
147+
echo "<a target=\"_blank\" href=\"${PROFILING_WORKFLOW}/diff-$BASENAME.html\">diff-$BASENAME</a></td>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html || true
148+
done
149+
echo "</tr>" >> $WORKSPACE/upload/profiling/index-$PROFILING_WORKFLOW.html
133150
for f in $(find $PROFILING_WORKFLOW -type f -name '*.json.gz' -o -name '*.log' -o -name '*.txt' -o -name '*.tmp' -o -name '*.heap*' -o -name '*.json' -o -name '*.html' | grep -v 'r-step') ; do
134151
d=$(dirname $f)
135152
mkdir -p $WORKSPACE/upload/profiling/$d || true

0 commit comments

Comments
 (0)