Skip to content

Commit

Permalink
[WF CI] Test also QC and AnalysisQC
Browse files Browse the repository at this point in the history
  • Loading branch information
Benedikt Volkel authored and sawenzel committed Dec 15, 2023
1 parent f0aab02 commit eab1756
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 4 additions & 3 deletions MC/bin/tests/wf_test_pp.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@

# ----------- START ACTUAL JOB -----------------------------

NSIGEVENTS=${NSIGEVENTS:-1}
NSIGEVENTS=${NSIGEVENTS:-5}
SIGPROC=${SIGPROC:-cdiff}
NTIMEFRAMES=${NTIMEFRAMES:-1}
NTIMEFRAMES=${NTIMEFRAMES:-2}
SIMENGINE=${SIMENGINE:-TGeant3}
NWORKERS=${NWORKERS:-1}
SEED=${SEED:-624}
Expand All @@ -26,4 +26,5 @@ INTERACTIONRATE=${INTERACTIONRATE:-50000}
# create workflow
${O2DPG_ROOT}/MC/bin/o2dpg_sim_workflow.py -eCM 5020 -col pp -gen pythia8 -proc ${SIGPROC} -ns ${NSIGEVENTS} \
-tf ${NTIMEFRAMES} -e ${SIMENGINE} -j ${NWORKERS} -seed ${SEED} \
--include-analysis -run 310000 -interactionRate ${INTERACTIONRATE}
--include-analysis -run 310000 -interactionRate ${INTERACTIONRATE} \
--include-local-qc
5 changes: 5 additions & 0 deletions test/run_workflow_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,11 +67,16 @@ test_single_wf()
echo "Test ${wf_line} from ${wfs}" > ${LOG_FILE_WF}
bash ${wf_script_local} >> ${LOG_FILE_WF} 2>&1
local ret_this=${?}
local ret_this_qc=0
local ret_this_analysis=0
if [[ "${ret_this}" != "0" ]] ; then
echo "[FATAL]: O2DPG_TEST Workflow creation failed" >> ${LOG_FILE_WF}
elif [[ "${execute}" != "" ]] ; then
${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 -tt aod >> ${LOG_FILE_WF} 2>&1
ret_this=${?}
[[ "${ret_this}" == "0" ]] && { ${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels QC >> ${LOG_FILE_WF} 2>&1 ; ret_this_qc=${?} ; }
[[ "${ret_this}" == "0" ]] && { ${O2DPG_ROOT}/MC/bin/o2_dpg_workflow_runner.py -f workflow.json --cpu-limit 8 --target-labels Analysis >> ${LOG_FILE_WF} 2>&1 ; ret_this_analysis=${?} ; }
ret_this=$((ret_thi + ret_this_qc + ret_this_analysis))
[[ "${ret_this}" != "0" ]] && echo "[FATAL]: O2DPG_TEST Workflow execution failed" >> ${LOG_FILE_WF}
fi
return ${ret_this}
Expand Down

0 comments on commit eab1756

Please sign in to comment.