Skip to content

lava_dispatcher: Import boot or deployment module based on parameter instead of importing everything

Instead of having a strategy module that imports everything in to one module and then gets imported by parser keep a dictionary of names to a module name. During the boot or deployment selection import the required module.

This makes certain dependencies no longer be required even if the jobs are not using them. (for example AVH) Also memory use should get reduced as well as faster startup.

Only change the deployment and boot for now as those have the largest strategy modules and are also easily mapped to a single parameter key. ("method" for boot and "to" for deployment) The two remaining are LavaTest and Protocols.

Closes #639

Merge request reports