Skip to content

Commit 27fda32

Browse files
authored
Implement AO2D file checks for full_system_test
Performed during ASYNC stage, where the AO2D is created
1 parent 538f355 commit 27fda32

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

prodtests/full_system_test.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -295,6 +295,25 @@ for STAGE in $STAGES; do
295295
# boolean flag indicating if workflow completed successfully at all
296296
RC=$?
297297
SUCCESS=0
298+
# Check AOD production for ASYNC stage
299+
if [[ "$STAGE" = "ASYNC" ]]; then
300+
if [[ -f "AO2D.root" ]]; then
301+
aod_size=`stat -c%s AO2D.root`
302+
if [[ $aod_size -gt 0 ]]; then
303+
echo "AO2D file produced: AO2D.root (size: ${aod_size} bytes)"
304+
echo "aod_size_${STAGE},${TAG} value=${aod_size}" >> ${METRICFILE}
305+
else
306+
echo "ERROR: AO2D file (AO2D.root) exists but is empty"
307+
echo "aod_size_${STAGE},${TAG} value=0" >> ${METRICFILE}
308+
exit 1
309+
fi
310+
else
311+
echo "ERROR: AO2D file (AO2D.root) was not produced in ASYNC stage"
312+
echo "aod_size_${STAGE},${TAG} value=0" >> ${METRICFILE}
313+
exit 1
314+
fi
315+
fi
316+
298317
[[ -f "${logfile}_done" ]] && [[ "$RC" = 0 ]] && SUCCESS=1
299318
echo "success_${STAGE},${TAG} value=${SUCCESS}" >> ${METRICFILE}
300319

0 commit comments

Comments
 (0)