mlops-v2 icon indicating copy to clipboard operation
mlops-v2 copied to clipboard

[QuickStart.md] Error when running deploy-infra pipeline due to changed folder structure

Open yvonnebarthp opened this issue 3 years ago • 3 comments

[QUICKSTART.md] When running the "tf-ado-deply-infra.yml" pipeline I receive this error: image

The reason might be due to changed folder structure in row 7 and 9 (tf-ado-deploy-infra.yml) :

- template: ../../config-infra-prod.yml
- template: ../../config-infra-dev.yml

Here we might need go one hierarchy level higher.

yvonnebarthp avatar Jun 27 '22 16:06 yvonnebarthp

Reviewing the error and trying to reproduce

setuc avatar Aug 01 '22 01:08 setuc

@setuc This is going to be because of the sparse checkout, or lack thereof. It should be working fine if the sparse checkout is run first.

cindyweng avatar Aug 01 '22 10:08 cindyweng

The effects of the following lines from sparse_checkout.sh seem to be making it hard to keep the relative paths correct in Azure/mlops-project-template:

mv infrastructure/$infrastructure_version $infrastructure_version
rm -rf infrastructure
mv $infrastructure_version infrastructure

For instance, there's been back and forth here: https://github.com/Azure/mlops-project-template/commits/main/infrastructure/terraform/pipelines/tf-ado-deploy-infra.yml

And the current relative path in mlops-project-template doesn't work in an ADO pipeline after running sparse_checkout.sh

nswitanek avatar Aug 13 '22 20:08 nswitanek