Skip to content

ESMValTool user configuration files are not ignored by the REF #315

@schlunma

Description

@schlunma

The problem

Currently, ESMValTool diagnostics are invoked with the --config-dir option. This will NOT prevent ESMValTool from parsing user configuration files at ~/.config/esmvaltool/ (see here).

This might lead to errors during REF runs or unit tests if the user specified invalid or non-suitable (e.g., additional rootpaths) options in their own configuration file.

Definition of "done"

ESMValTool should be "encapsulated" within the REF, i.e., tests and runs should be independent from potential ESMValTool user configuration files and not fail because of bad ESMValTool user configuration files.

Additional context

This can be solved fairly easily by using the environment variable ESMVALTOOL_CONFIG_DIR instead of the command line option --config_dir. In addition, it would be nice to ensure that potential old configuration files are ignored (requires ESMValGroup/ESMValCore#2736).

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