Manually triggered automated tests for testing all CALLAB reference runs before releases and for individual MRs.
Using the CI the test can be triggered manually after pushing a commit and by setting 4 variables and their values.
CALIBRATION
: dark, correct, or all (all is used by default).
DETECTORS
: A detector name or all (all is used by default).
REFERENCE
: The reference folder name (reference_folder is used by default).
OUTPUT
: The output folder for the tested data (branch name is used by default).
If any or all of these variables are not given the default values are used.
The automated tests here use a yaml file similar to calibration_configurations
to define the reference data and test calibration parameters.
--use-slurm
pycalibration
| ...
└───tests
| | pytest.ini # Enable logging for the tests
| | ...
│ └───test_reference_runs
| | __init__.py
│ │ test_pre_deployment # Main test module
│ │ callab_tests # Main dict for all tests to run and its `xfel-calibrate` config
│ │ conftest.py
| | ...
--picked-test
--calibration
--detectors
--no-numerical-validation
--validation-only
--find-difference