forked from mlflow/mlflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MLflowSkinny] Base changes for MLflow Skinny Client (mlflow#3687)
* Add skinny client Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Add split off cli server tests Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Add chmod to skinny test files Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Resolve setup.py differences Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Move the fixture up a level Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Resolve imports Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Move in sqlalchemy import Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Handle lint issue Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Resolve lint issues Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Apply formatting Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Resolve test failures Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Undo conftest changes Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Move test_csv_generation to test_runs.py, remove duplicate test_mlflow_run tests, uninstall sqlalchemy before skinny client installation in install common deps Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Resolve sqlalchemy uninstall ordering Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Undo odd copy bug to vscode in csv_generation tests Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Add skinny-requirements for skinny tests Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com> * Move docker import into docker util function Signed-off-by: Eduardo de Leon <eddeleon@microsoft.com>
- Loading branch information
1 parent
57050a6
commit 154712f
Showing
22 changed files
with
288 additions
and
161 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Executes a subset of mlflow tests that is supported with fewer dependencies than the core mlflow package. | ||
# Tests include most client interactions and compatibility points with the mlflow plugins around tracking, projects, models, deployments, and the cli. | ||
|
||
# The SQL alchemy store's dependencies are added for a base client/store that can be tested against. | ||
# A different example client/store with a minimal dependency footprint could also work for this purpose. | ||
|
||
set -x | ||
# Set err=1 if any commands exit with non-zero status as described in | ||
# https://stackoverflow.com/a/42219754 | ||
err=0 | ||
trap 'err=1' ERR | ||
export MLFLOW_SKINNY='true' | ||
|
||
pytest --verbose tests/test_skinny.py | ||
python -m pip install sqlalchemy alembic sqlparse | ||
pytest --verbose tests/test_runs.py | ||
pytest --verbose tests/tracking/test_client.py | ||
pytest --verbose tests/tracking/test_tracking.py | ||
pytest --verbose tests/projects/test_projects.py | ||
pytest --verbose tests/deployments/test_cli.py | ||
pytest --verbose tests/deployments/test_deployments.py | ||
pytest --verbose tests/projects/test_projects_cli.py | ||
|
||
test $err = 0 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
## Small test reqs | ||
scipy | ||
## Test-only dependencies | ||
pytest==3.2.1 | ||
pytest-cov==2.6.0 | ||
# Test plugin, used to verify correctness of MLflow plugin APIs | ||
tests/resources/mlflow-test-plugin/ |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.