Skip to content

Loading YAML configs works only for files found in top-level config_path #2859

Closed
@pawiecz

Description

@pawiecz

Docstring for function iterate_yaml_files() states that it should traverse over given directory and "find multiple YAML files recursively".

Pull request kernelci/kernelci-pipeline#1132 shows that this statement is false - PR introduces additional level of directories (trees/) which are ignored by said function:

In [1]: glob.glob(os.path.join('config', '*.yaml'))
Out[1]: 
['config/trees.yaml',
 'config/scheduler.yaml',
 'config/pipeline.yaml',
 'config/platforms.yaml',
 'config/scheduler-chromeos.yaml',
 'config/jobs-chromeos.yaml',
 'config/result-summary.yaml',
 'config/jobs.yaml',
 'config/traces_config.yaml',
 'config/platforms-chromeos.yaml']
# 'config/trees/linux-pci.yaml' is missing

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions