question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Replace `["--no-conda"]` with `["--env-manager", "local"]` in tests

See original GitHub issue

In https://github.com/mlflow/mlflow/pull/5567, we added --env-manager to specify an environment manager (e.g. conda) to restore a model’s environment for MLflow Models and Projects, and marked --no-conda as deprecated. We still use --no-conda in tests, which should be replaced with --env-manager local.

Example

https://github.com/mlflow/mlflow/blob/881919bc96f6858381e79f80c367f270395fb748/tests/catboost/test_catboost_model_export.py#L34

- EXTRA_PYFUNC_SERVING_TEST_ARGS = [] if _is_available_on_pypi("catboost") else ["--no-conda"] 
+ EXTRA_PYFUNC_SERVING_TEST_ARGS = [] if _is_available_on_pypi("catboost") else ["--env-manager", "local"] 

Notes:

--no-conda in the following directories should not be replaced:

  • tests/projects
  • tests/models

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
harupycommented, Apr 4, 2022

@nishipy Assigned this task to you 😃

0reactions
nishipycommented, Apr 5, 2022

I created PR #5604 so please review it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

MLflow Projects — MLflow 2.0.1 documentation
You can run any project from a Git URI or from a local directory using the mlflow run ... If no conda.yaml file...
Read more >
EnvManager—ArcGIS Pro | Documentation
Summary. EnvManager is a class for managing geoprocessing environments. The environment settings set by the EnvManager class are temporary and are only set ......
Read more >
Local Testing - Reflect.run
How to record and run Reflect tests against your local environment. ... Updating the starting URL of the test via the 'Change' button...
Read more >
Local Environments Have Become Impractical - Bunnyshell
Running QA tests on a local testing environment seems convenient, ... In today's agile work environment, requirements change all the time, ...
Read more >
Local Unit Testing for Java 8 - App Engine - Google Cloud
Changing the example to access memcache instead of datastore. To create a test that accesses the local memcache service, you can use the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found