Processing path utilities
These utilities move the Dirac Step "processing pass" builder from the submission routines https://gitlab.cern.ch/lhcb-dpa/analysis-productions/LbAnalysisProductions/-/blob/master/src/LbAnalysisProductions/submission.py#L31-47
to functions in LbAPCommon
. An attempt is made to shorten processing pass strings by removing common redundant information such as the year, eventtype, and polarity using re.sub
.
create_proc_pass_map
is used to create the processing pass strings at Dirac Step creation.
More importantly, in LbAnalysisProductions!75 (merged), it is used to check the processing path lengths are under 100 characters during the creation of Production
objects when starting a CI test.
This avoids failures during the creation of the steps in Dirac.
relates to LbAnalysisProductions#63 (closed), https://gitlab.cern.ch/lhcb-dpa/project/-/issues/93