Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: Add full chain test #1247

Merged
merged 19 commits into from
May 11, 2022
4 changes: 3 additions & 1 deletion .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,7 @@ jobs:
-DACTS_BUILD_ODD=ON
-DACTS_BUILD_EXAMPLES_PYTHON_BINDINGS=ON
-DACTS_FORCE_ASSERTIONS=ON
-DACTS_BUILD_ANALYSIS_APPS=ON

- name: Build
run: cmake --build build --
Expand Down Expand Up @@ -231,14 +232,15 @@ jobs:
run: >
echo "::group::Dependencies"
&& git config --global safe.directory "$GITHUB_WORKSPACE"
&& pip3 install histcmp==0.4.0
&& pip3 install histcmp==0.4.1
&& /usr/local/bin/download_geant4_data.sh
&& source /usr/local/bin/thisroot.sh
&& source /usr/local/bin/thisdd4hep_only.sh
&& source /usr/local/bin/geant4.sh
&& source build/python/setup.sh
&& export LD_LIBRARY_PATH=$PWD/build/thirdparty/OpenDataDetector/factory:$LD_LIBRARY_PATH
&& echo "::endgroup::"
&& export PYTHONPATH="${PYTHONPATH}":"${GITHUB_WORKSPACE}/Examples/Scripts/Python"
&& CI/physmon/phys_perf_mon.sh physmon

- uses: actions/upload-artifact@v3
Expand Down
16 changes: 16 additions & 0 deletions CI/physmon/phys_perf_mon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,17 @@ echo "::group::Generate validation dataset"
CI/physmon/physmon.py $outdir 2>&1 > $outdir/run.log
echo "::endgroup::"

echo "::group::full_chain_odd"
thirdparty/OpenDataDetector/ci/full_chain_odd.py -o $outdir

# this will currently produce an error code because of the small amount of particles
build/bin/ActsAnalysisResidualsAndPulls \
--predicted --filtered --smoothed --silent \
-i $outdir/trackstates_ckf.root \
-o $outdir/acts_analysis_residuals_and_pulls.root \
|| true
echo "::endgroup::"

set +e

ec=0
Expand Down Expand Up @@ -66,5 +77,10 @@ run \
-p $outdir/truth_tracking_plots \


run \
$outdir/acts_analysis_residuals_and_pulls.root \
$refdir/acts_analysis_residuals_and_pulls.root \
--title "full_chain_odd" \


exit $ec
Binary file not shown.