forked from cms-sw/cms-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun-ib-comparison-baseline
executable file
·46 lines (39 loc) · 1.26 KB
/
run-ib-comparison-baseline
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh -ex
export SCRAM_ARCH=$ARCHITECTURE
scram project $RELEASE_FORMAT
cd $RELEASE_FORMAT
eval `scram run -sh`
mkdir -p "$WORKSPACE/matrix-results"
pushd "$WORKSPACE/matrix-results"
case $RELEASE_FORMAT in
*THREADED*)
echo "Threaded!"
THREADED_PARAM='--command \"--customise FWCore/Concurrency/dropNonMTSafe.dropNonMTSafe\"'
;;
esac
runTheMatrix.py $THREADED_PARAM -s -j $(getconf _NPROCESSORS_ONLN) -l 1306.0,101.0,1003.0,50202.0,9.0,25202.0 2>&1 | tee -a $WORKSPACE/matrixTests.log
MAPPING_FILE=wf_mapping.txt
ROOT_FILES=`find . -name DQM*.root | sort`
PKGTOOLS_PATH=$WORKSPACE/pkgtools
for f in $ROOT_FILES
do
WF_PATH=`echo $f | sed 's/^\.\///'`
WF_NUMBER=`echo $WF_PATH | sed 's/_.*$//'`
echo $WF_PATH >> $MAPPING_FILE
done
popd
ERRORS_FILE=$WORKSPACE/wf_errors.txt
touch $ERRORS_FILE
grep "ERROR executing.*" $WORKSPACE/matrixTests.log | while read line
do
WF_STEP=`echo "$line" | sed 's/.* cd //g' | sed 's/_.*step/;/g' | sed 's/_.*$//g'`
# don't add duplicate lines
if ! grep $WF_STEP $ERRORS_FILE; then
echo $WF_STEP >> $ERRORS_FILE
fi
done
# Make it fail so it can be identified when there were errors
if grep -i -E "ERROR executing.*" $WORKSPACE/matrixTests.log; then
echo "Errors in the RelVals"
exit 1
fi