Skip to content

[CI] Fix test issue with recent MLfow #3277

@vfdev-5

Description

@vfdev-5

🐛 Bug description

These tests are failing for mlflow 2.16.0, let's fix our code to make these tests pass:

=========================== short test summary info ============================
FAILED tests/ignite/contrib/engines/test_common.py::test_setup_mlflow_logging - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_output_transform - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_metric_names - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_both - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_with_global_step_transform - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_with_global_step_from_engine - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_output_handler_state_attrs - ImportError: cannot import name '_VALID_PARAM_AND_METRIC_NAMES' from 'mlflow.utils.validation' (/opt/hostedtoolcache/Python/3.8.18/x64/lib/python3.8/site-packages/mlflow/utils/validation.py)
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_integration - mlflow.exceptions.MlflowException: Run '3ed0ca602f354d88a59b43a228752c55' not found
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_integration_as_context_manager - mlflow.exceptions.MlflowException: Run '3ed0ca602f354d88a59b43a228752c55' not found
FAILED tests/ignite/handlers/test_mlflow_logger.py::test_mlflow_bad_metric_name_handling - Failed: DID NOT WARN. No warnings of type (<class 'UserWarning'>,) were emitted.
 Emitted warnings: [].
======================== 10 failed, 1 warning in 4.77s =========================

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions