Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Experiment_id from int64 to string in protos (mlflow#1067)
* Add changes to protos * Update experiment_id for RestStore to be string. Maintain int for local stores, update handlers to reflect the server change, casting local store results where necessary * Keep same convention throughout * Maintain type for RunInfo copy * Attempt to fix java client, handle string to long conversion in mapper. Need to explore builder if current changes are not enough * Resolve typo * Fix python tests, resolve compilation errors reported in java build * Resolve two java test failures * try catch int cast within handlers to avoid premature errors in handlers.py * Resolve java lint errors * Move comments to requeue since the last build had an internal failure * Return None by default, handle that case in get_experiment calls * Update experiment_id PR to reflect issue. Return None by default, add handling for None in file_store and sqlalchemt_store, revert changes to handler.py. Update tests for store to reflect the changes * Fix docker tests, use default experiment id instead of 0 * Use default experiment id instead of 0 * Pass id to store as string * Fix local store tests, only create default store once * Fix remaining broken tests * Try to fix cli test and lint issues * Linter ignored noqa, reverting part of the pytest changes for now. Trying to debug docker test failer. * Make cli assume int. Still dealing with old remote mlflow sdk against new cli" * Use read and write persisted paradigm to write int experiment_ids as int and read them back into string when deserializing experiment_id. This is a workaround. The test should run against the latest code in the submitted environemnt. However, this sort of backwards compatibility may be worth while since user's may pin version on local or remote and have unexpected errors * Resolve flake8 error. Update cli call to reflect new type and default for experimnent_id cli calls * Fix python 2 lint issue * Resolve comments, move default out of Experiment and into respective stores. Fix bug in cli not updating the experiment id version * Introduce minor change for a requeue of the unrelated R build failure * Remove str cast of mock * Remove all references to Long experimentId in java implementation * Remove override type in write * Add backcompat for 0.9.1 release, continue to return '0' for default experiment_id * Fix bug in file_store rename code path * Revert move to pytest * Temporary hack while evaluatin best option for remote docker tests * Resolve missing fixture * Resolve flake8 error * Resolve test change to zero default for 0.9.1 * Test int as string backcompat * Add test for reading old experiment and run yamls, where experiment_id is int * Mini commit to requeu builds * Remove subtest, broke python 2.7 build. Make 2 new tests for back compat instead * Handle and test experiment_id int to string before deserialization to avoid failure in create_experiment with existing servers * Revert "Handle and test experiment_id int to string before deserialization to avoid failure in create_experiment with existing servers" This reverts commit 0a8d944. * Add deserializer for old requests, add tests for permutations * Simplify backcompat helper, only cover top two layers of the returned json, update tests * Add TODO and remove prints * Fix silly bug in int type check for experiment id * Resolve bad merge for change in location of DEFAULT_EXPERIMENT_ID constant * Addressed some review comments. * Removed leftover debug changes. * Avoid python-level backcompat issue with MlflowClient * Add docs * Standardize reference to experiment_id in docs * Address feedback on moving util to tests * Skip backwards compatibility test on builds, keep test for local debugging * Remove duplicated back compat code path assert. Keep it in the back compat test * Fix extra lines * Resolve lint issues in test_backwards_compatability.py * Remove pytest, lint.sh locally did not pick up on this * Remove skipped tests, they were run locally
- Loading branch information