Skip to content

manager: support for multiple configuration files

Aleš Mrázek requested to merge manager-multiple-config-files into master

The manager's --config argument now support multiple configuration files paths.

  • Dictionary data from the first config file are the default.
  • Dictionary data from second, third, ... files are added to it in order.
  • To combine two dictionary data new data_combine() function is used.
    1. If the key of the second dict do not exist in the first dict, it is added to it.
    2. If the key exists in both dicts and the value type is a dict, take key values of both dicts and go to step 1.
    3. If the key exists in both dicts and the value type of at least one is not a dict -> validation error

Another improvements:

  • python: utils/modeling/parsing.py: data_combine() function to combine multiple configuration data
    • it also fixed the buggy configuration changes with API
  • ci: python:run: parallel testing with different configuration

Merge request reports

Loading