Skip to content

Commit 3008c5d

Browse files
authored
Merge pull request #60 from rlcee/210717
updates for Muse
2 parents 203dd7e + 2eb212e commit 3008c5d

File tree

4 files changed

+193
-119
lines changed

4 files changed

+193
-119
lines changed

bin/valJobBuild.sh

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ echo_date() {
99
echo "[$(date)] $*"
1010
}
1111

12-
echo_date "cd"
13-
WORKDIR="$1"
12+
echo_date "start build WORKDIR=$1 TBALL=$2"
13+
echo_date "cd $1"
14+
WORKDIR=$1
1415
shift
1516
if [ -z "$WORKDIR" ]; then
1617
echo "ERROR - no work dir provided - exit"
@@ -33,39 +34,40 @@ fi
3334
echo_date "general setups"
3435
source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setups
3536
source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
37+
setup muse
3638

3739
T0=$(date +%s)
3840
echo_date "clone offline"
39-
#git clone -q http://cdcvs.fnal.gov/projects/mu2eofflinesoftwaremu2eoffline/Offline.git
4041
git clone -q https://github.com/mu2e/Offline
4142
RC=$?
4243
T1=$(date +%s)
4344
DT_CLONE=$(($T1-$T0))
4445
echo_date "clone return code $RC time $DT_CLONE s"
4546
echo "REPORT TIME clone $DT_CLONE"
47+
git clone -q https://github.com/mu2e/Production
48+
RCP=$?
49+
RC=$(($RC+$RCP))
4650

4751
if [ $RC -ne 0 ]; then
4852
echo "REPORT STATUS FAIL build"
4953
exit $RC
5054
fi
5155

52-
echo_date "cd Offline"
53-
cd Offline
54-
5556
echo_date "print commit"
56-
git show -q
57-
git rev-parse HEAD
57+
git -C Offline show -q
58+
git -C Offline rev-parse HEAD
5859

59-
echo_date "source setup"
60-
source setup.sh
60+
echo_date "muse setup"
61+
muse setup -1
62+
muse status
6163

62-
echo_date "start scons"
64+
echo_date "start build"
6365
T0=$(date +%s)
64-
scons -j 20
66+
muse build -j 20 --mu2eCompactPrint
6567
RC=$?
6668
T1=$(date +%s)
6769
DT_BUILD=$(($T1-$T0))
68-
echo_date "scons return code $RC time $DT_BUILD s"
70+
echo_date "build return code $RC time $DT_BUILD s"
6971
echo "REPORT TIME build $DT_BUILD"
7072

7173
if [ $RC -ne 0 ]; then
@@ -77,15 +79,18 @@ echo_date "starting tarball"
7779
T0=$(date +%s)
7880
cp /mu2e/app/home/mu2epro/cron/val/seeds.txt .
7981
cp /mu2e/app/home/mu2epro/cron/val/recoInputFiles.txt .
80-
cd ..
8182

82-
tar --exclude="*.cc" --exclude="*.os" --exclude="Offline/tmp/*" \
83-
-czf code.tgz Offline
83+
#tar --exclude="*.cc" --exclude="*.os" --exclude="$MUSE_BUILD_BASE/Offline/tmp/*" \
84+
# -czf code.tgz Offline build *.txt
85+
TEMPBALL=$( muse tarball recoInputFiles.txt seeds.txt | grep "Tarball:" | awk '{print $2}' )
8486

8587
RC=$?
8688
T1=$(date +%s)
8789
DT_TAR=$(($T1-$T0))
88-
ls -l code.tgz
90+
91+
echo_date "ls -l $TEMPBALL"
92+
echo_date ls -l $TEMPBALL
93+
ls -l $TEMPBALL
8994
echo_date "tar return code $RC time $DT_TAR s"
9095
echo "REPORT TIME tar $DT_TAR"
9196

@@ -95,7 +100,9 @@ if [ $RC -ne 0 ]; then
95100
fi
96101

97102
[ -f $TBALL ] && mv $TBALL ${TBALL}_$(date +%s)
98-
cp code.tgz $TBALL
103+
echo_date "cp $TEMPBALL $TBALL"
104+
echo_date cp $TEMPBALL $TBALL
105+
cp $TEMPBALL $TBALL
99106
RC=$?
100107
ls -l $TBALL
101108
echo_date "copy tarball $RC"
@@ -105,12 +112,15 @@ if [ $RC -ne 0 ]; then
105112
exit $RC
106113
fi
107114

115+
# keep from building up tarballs in muse temp area
116+
rm -rf $(dirname $TEMPBALL)
117+
108118
#
109119
# remove older tarballs
110120
#
111121
DD=$(dirname $TBALL)
112122
N=$(ls -1 $DD/* | wc -l)
113-
if [ $N -gt 5 ]; then
123+
if [ $N -gt 10 ]; then
114124
NRM=$(($N-5))
115125
FILES=$( ls -1 $DD/* | head -$NRM )
116126
for FF in $FILES

bin/valJobCheck.sh

Lines changed: 27 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -26,21 +26,16 @@ RC=0
2626
echo_date "general setups"
2727
source /cvmfs/fermilab.opensciencegrid.org/products/common/etc/setups
2828
source /cvmfs/mu2e.opensciencegrid.org/setupmu2e-art.sh
29+
setup muse
2930
setup codetools
30-
31-
echo_date "cd Offline"
32-
cd Offline
33-
34-
echo_date "source setup"
35-
source setup.sh
36-
31+
muse setup -1
3732

3833
echo_date "start root overlaps"
3934
rootOverlaps.sh
4035
RCT=${PIPESTATUS[0]}
4136
echo_date "root overlaps return code $RCT"
42-
LEGAL=$( grep CloseGeometry ../check | awk '{print $4 " " $5 " " $6 " " $7 " " $8}' )
43-
ILLEGAL=$( grep illegal ../check | awk '{print $NF}' )
37+
LEGAL=$( grep CloseGeometry check | awk '{print $4 " " $5 " " $6 " " $7 " " $8}' )
38+
ILLEGAL=$( grep illegal check | awk '{print $NF}' )
4439
if [[ $RCT -eq 0 && $ILLEGAL -eq 0 ]]; then
4540
STATUS=OK
4641
else
@@ -52,7 +47,7 @@ RC=$(($RC+$RCT))
5247

5348

5449
echo_date "start transportOnly"
55-
mu2e -n 5 -c Mu2eG4/fcl/transportOnly.fcl
50+
mu2e -n 5 -c Offline/Mu2eG4/fcl/transportOnly.fcl
5651
RCT=$?
5752
echo_date "transportOnly return code $RCT"
5853
if [ $RCT -eq 0 ]; then
@@ -65,7 +60,7 @@ RC=$(($RC+$RCT))
6560

6661

6762
echo_date "start g4study2"
68-
mu2e -n 5 -c Mu2eG4/g4study/g4study.fcl
63+
mu2e -n 5 -c Offline/Mu2eG4/g4study/g4study.fcl
6964
RCT=$?
7065
echo_date "g4study2 return code $RCT"
7166
if [ $RCT -eq 0 ]; then
@@ -78,7 +73,7 @@ RC=$(($RC+$RCT))
7873

7974

8075
echo_date "start g4test_03MT"
81-
mu2e -n 20 -c Mu2eG4/fcl/g4test_03MT.fcl
76+
mu2e -n 20 -c Offline/Mu2eG4/fcl/g4test_03MT.fcl
8277
RCT=$?
8378
echo_date "g4test_03MT return code $RCT"
8479
if [ $RCT -eq 0 ]; then
@@ -93,7 +88,7 @@ RC=$(($RC+$RCT))
9388
# 4/2021 MDC2020 production sequence
9489

9590
echo_date "start ceSteps"
96-
mu2e -n 50 -c Validation/test/ceSteps.fcl
91+
mu2e -n 50 -c Production/Validation/ceSteps.fcl
9792
RCT=$?
9893
echo_date "ceSteps return code $RCT"
9994
if [ $RCT -eq 0 ]; then
@@ -107,7 +102,7 @@ RC=$(($RC+$RCT))
107102

108103
echo_date "start ceDigi"
109104
# takes ceSteps as input
110-
mu2e -c Validation/test/ceDigi.fcl
105+
mu2e -c Production/Validation/ceDigi.fcl
111106
RCT=$?
112107
echo_date "ceDigi return code $RCT"
113108
if [ $RCT -eq 0 ]; then
@@ -119,7 +114,7 @@ echo "REPORT STATUS $STATUS ceDigi"
119114
RC=$(($RC+$RCT))
120115

121116
echo_date "start muDauSteps"
122-
mu2e -n 6000 -c Validation/test/muDauSteps.fcl
117+
mu2e -n 6000 -c Production/Validation/muDauSteps.fcl
123118
RCT=$?
124119
echo_date "muDauSteps return code $RCT"
125120
if [ $RCT -eq 0 ]; then
@@ -130,10 +125,9 @@ fi
130125
echo "REPORT STATUS $STATUS muDauSteps"
131126
RC=$(($RC+$RCT))
132127

133-
# disabled until it runs..
134128
echo_date "start ceMix"
135129
# takes ceSteps and muDauSteps as input
136-
mu2e -c Validation/test/ceMix.fcl
130+
mu2e -c Production/Validation/ceMix.fcl
137131
RCT=$?
138132
echo_date "ceMix return code $RCT"
139133
if [ $RCT -eq 0 ]; then
@@ -144,35 +138,28 @@ fi
144138
echo "REPORT STATUS $STATUS ceMix"
145139
RC=$(($RC+$RCT))
146140

147-
148-
149-
# 11/2/20 paused cemixdigi due to no mising file with new code
150-
# echo_date "start ceMixDigi"
151-
# mu2e -n 10 -c Validation/fcl/ceMixDigi.fcl >& ceMixDigi.log
152-
# RCT=$?
153-
# cat ceMixDigi.log
154-
# echo_date "ceMixDigi return code $RCT"
155-
# if [ $RCT -eq 0 ]; then
156-
# STATUS=OK
157-
# else
158-
# STATUS=FAILED
159-
# fi
160-
# echo "REPORT STATUS $STATUS ceMixDigi"
161-
# MIXCPU=$( grep "TimeReport CPU" ceMixDigi.log | awk '{print int($4)}')
162-
# MIXMEM=$( grep "VmPeak" ceMixDigi.log | awk '{print int($4)}')
163-
# MIXSIZ=$( ls -l dig.owner.val-ceMixDigi.dsconf.seq.art | awk '{print $5}')
164-
# echo "REPORT EXE ceMixDigi $MIXCPU $MIXMEM $MIXSIZ"
165-
# RC=$(($RC+$RCT))
141+
echo_date "start cosmicOffSpill"
142+
# takes an explicit input file, in fcl
143+
mu2e -n 20 -c Production/Validation/cosmicOffSpill.fcl
144+
RCT=$?
145+
echo_date "cosmicOffSpill return code $RCT"
146+
if [ $RCT -eq 0 ]; then
147+
STATUS=OK
148+
else
149+
STATUS=FAILED
150+
fi
151+
echo "REPORT STATUS $STATUS cosmicOffSpill"
152+
RC=$(($RC+$RCT))
166153

167154

168155
echo_date "start geant surfaceCheck"
169-
mu2e -c Mu2eG4/fcl/surfaceCheck.fcl
156+
mu2e -c Offline/Mu2eG4/fcl/surfaceCheck.fcl
170157
RCT=$?
171158
echo_date "geant surfaceCheck return code $RCT"
172-
LEGAL=$( grep 'Checking overlaps for volume' ../check | grep -c OK )
173-
ILLEGAL=$( grep 'Checking overlaps for volume' ../check | grep -v OK | wc -l )
159+
LEGAL=$( grep 'Checking overlaps for volume' check | grep -c OK )
160+
ILLEGAL=$( grep 'Checking overlaps for volume' check | grep -v OK | wc -l )
174161
# print overlaps into the log
175-
grep 'Checking overlaps for volume' ../check | grep -v OK
162+
grep 'Checking overlaps for volume' check | grep -v OK
176163
if [[ $RCT -eq 0 && $LEGAL -gt 0 && $ILLEGAL -eq 0 ]]; then
177164
STATUS=OK
178165
else

0 commit comments

Comments
 (0)