Skip to content

Draft: Migrate configuration to GaudiConfig2

Alex Pearce requested to merge apearce-gaudiconfig2 into master

Follows LHCb!3116 (closed) by migrating the Moore configuration GaudiConfig2.

The changes here are fairly small, mostly the more explicit treatment of services, and following a few name changes introduced in the PyConf MR (LHCb!3116 (closed)).

I've copied the hlt2_example test to a new Hlt2Conf.tests.options module and have verified that one gets the same options dump as with the old options, as well as the same algorithm and control flow counters.

# GaudiConfig2 options dump
$ gaudirun.py Hlt2Conf.hlt2_example:main -n -o opts.gaudiconfig2.py --all-opts
# Configurables options dump
$ lb-run -c x86_64_v2-centos7-gcc10-opt --nightly lhcb-head/Today Moore/HEAD gaudirun.py '$HLT2CONFROOT'/options/hlt2_example.py -n -o opts.original.py --all-opts
# Look at the diff
$ diffopts.py opts.{original,gaudiconfig2}.py --exclude 'ErrorCount'

(I don't understand why the ErrorCount property is missing in the new dump but I figured it's harmless.)

There are some differences, but I think we can ignore them:

  • A couple of property lists have different orders.
  • Some property values corresponding to service names are different.
  • A GaudiConfig2 dump does not contain the configuration of default-configured tools held by algorithms (gaudi/Gaudi#197).

Things left to do:

  • Fallout from addressing the to-dos in LHCb!3116 (closed).
  • Migrating the remaining tests and options files.

Merge request reports

Loading