Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I want to update the ci environment but it is referring to the old env only how can I update ?? #382

Open
sukhejai opened this issue Nov 11, 2021 · 1 comment

Comments

@sukhejai
Copy link

Hi,

Want to understand how and when /usr/local/envs/mlopspython_ci CI environment is created. I am trying to put some new dependencies in ci_dependencies.yml to install some new dependencies.

But the CI pipeline is referring to the old env only. Its not updating the conda dependencies.

image

@lokijota
Copy link
Contributor

lokijota commented Nov 11, 2021

Hi,

not sure if this helps, but here's a suggestion. In the YOURMODEL_regression_build_train_pipeline.py file, there's this section:

  # Create a reusable Azure ML environment
    environment = get_environment(
        aml_workspace,
        e.aml_env_name,
        conda_dependencies_file=e.aml_env_train_conda_dep_file,
        create_new=e.rebuild_env,
    )  #
    run_config = RunConfiguration()
    run_config.environment = environment

Can you comment the get_environment call and also the assignment at the end, and replace this latest call with something like:

run_config.environment = Environment.from_conda_specification(name="scoringenv", file_path="YOURMODEL/conda_dependencies.yml")

Not sure if that's the problem you're having, but the default code reuses the environment, and it seems you need to create a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants