From 6d02555358ed6943b1c13cf1dccd758ad357681e Mon Sep 17 00:00:00 2001 From: Tom Care Date: Fri, 3 Jul 2020 16:26:50 -0700 Subject: [PATCH] Fix CD deployment break (#305) Recently the step to get the model version had a name associated with the step. We need to also update the references in future step to use the step name as a prefix. This resulted in the MODEL_VERSION variable causing failures in each CD deployment step. This did not show up in CI because the MODEL_VERSION var is hard coded in the variable group. We should also remove that. --- .pipelines/diabetes_regression-cd.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pipelines/diabetes_regression-cd.yml b/.pipelines/diabetes_regression-cd.yml index 16bc4724..8dd35e47 100644 --- a/.pipelines/diabetes_regression-cd.yml +++ b/.pipelines/diabetes_regression-cd.yml @@ -59,7 +59,7 @@ stages: inlineScript: | set -e # fail on error - az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \ + az ml model deploy --name $(ACI_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(get_model.MODEL_VERSION)' \ --ic inference_config.yml \ --dc deployment_config_aci.yml \ -g $(RESOURCE_GROUP) --workspace-name $(WORKSPACE_NAME) \ @@ -105,7 +105,7 @@ stages: inlineScript: | set -e # fail on error - az ml model deploy --name $(AKS_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(MODEL_VERSION)' \ + az ml model deploy --name $(AKS_DEPLOYMENT_NAME) --model '$(MODEL_NAME):$(get_model.MODEL_VERSION)' \ --compute-target $(AKS_COMPUTE_NAME) \ --ic inference_config.yml \ --dc deployment_config_aks.yml \ @@ -137,7 +137,7 @@ stages: artifactBuildId: ${{ parameters.artifactBuildId }} - template: diabetes_regression-package-model-template.yml parameters: - modelId: $(MODEL_NAME):$(MODEL_VERSION) + modelId: $(MODEL_NAME):$(get_model.MODEL_VERSION) scoringScriptPath: '$(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/scoring/score.py' condaFilePath: '$(Build.SourcesDirectory)/$(SOURCES_DIR_TRAIN)/conda_dependencies.yml' - script: echo $(IMAGE_LOCATION) >image_location.txt