[Fix] Use SQLite for default MLflow tracking - #1698
Open
appleweiping wants to merge 1 commit into
Open
appleweiping wants to merge 1 commit into
appleweiping wants to merge 1 commit into
Conversation
|
|
Author
|
The CircleCI lint job fails during pre-commit initialization, before it checks the changed files. Its Python 3.7 environment resolves a pre-commit version that rejects the hook manifest stage named pre-commit. The changed files pass flake8, isort, and YAPF locally. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
MLflow 3.14 rejects filesystem tracking stores unless the compatibility escape hatch is enabled. This makes the default MLflowVisBackend initialization fail. Fixes #1687.
Modification
When
tracking_uriis not supplied, MLflowVisBackend now stores metadata in a SQLite database atsave_dir/mlflow.dband artifacts undersave_dir/artifacts. Explicittracking_uriandartifact_locationvalues keep their existing behavior.The regression test verifies that the default tracking URI is SQLite and that the database is created. It uses a non-persistent SQLAlchemy pool during tests so Windows can remove the temporary database.
BC-breaking
The default local metadata store changes from the legacy MLflow filesystem format to SQLite. Existing filesystem runs are not migrated automatically. They can be migrated with MLflow's
migrate-filestorecommand. Explicit tracking URIs are unchanged.Validation
dvcliveandpygit2packages were not installed