Skip to content

Commit

Permalink
ci: Split up physmon script into multiple ones (#2124)
Browse files Browse the repository at this point in the history
This PR splits up the physmon jobs into separate ones which can be run on their own.
The main `phys_perf_mon.sh` script is still used to execute them and collect the results together.

Long term we'll probably want to make physmon more extensible and modular once we potentially start adding experiment pipelines to our checks.
  • Loading branch information
paulgessinger committed May 24, 2023
1 parent 5f46a6e commit f7ccfee
Show file tree
Hide file tree
Showing 8 changed files with 479 additions and 407 deletions.
11 changes: 8 additions & 3 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,27 @@
set -e


mode=$1
mode=${1:all}
if ! [[ $mode = @(all|kalman|gsf|fullchains|vertexing) ]]; then
echo "Usage: $0 <all|kalman|gsf|fullchains|vertexing> (outdir)"
exit 1
fi

outdir=$2
outdir=${2:physmon}
[ -z "$outdir" ] && outdir=physmon
mkdir -p $outdir

refdir=CI/physmon/reference
refcommit=$(cat $refdir/commit)
commit=$(git rev-parse --short HEAD)
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )

source $SCRIPT_DIR/setup.sh
echo "::group::Generate validation dataset"
CI/physmon/physmon.py $mode $outdir 2>&1 > $outdir/run.log
CI/physmon/workflows/physmon_truth_tracking_kalman.py $outdir 2>&1 > $outdir/run_truth_tracking_kalman.log
CI/physmon/workflows/physmon_truth_tracking_gsf.py $outdir 2>&1 > $outdir/run_truth_tracking_gsf.log
CI/physmon/workflows/physmon_ckf_tracking.py $outdir 2>&1 > $outdir/run_ckf_tracking.log
CI/physmon/workflows/physmon_vertexing.py $outdir 2>&1 > $outdir/run_vertexing.log
echo "::endgroup::"

set +e
Expand Down

0 comments on commit f7ccfee

Please sign in to comment.