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

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

Open
yvonnebarthp opened this issue Jun 27, 2022 · 3 comments
Assignees

Comments

@yvonnebarthp
Copy link

yvonnebarthp commented Jun 27, 2022

[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 yvonnebarthp changed the title Error when running pipeline infrastructure/terraform/pipelines/tf-ado-deply-infra.yml in DevOps Pipelines due to changed folder structure [Quickstart.md] Error when running deploy-infra pipeline due to changed folder structure Jun 28, 2022
@yvonnebarthp yvonnebarthp changed the title [Quickstart.md] Error when running deploy-infra pipeline due to changed folder structure [QuickStart.md] Error when running deploy-infra pipeline due to changed folder structure Jun 28, 2022
@setuc
Copy link
Contributor

setuc commented Aug 1, 2022

Reviewing the error and trying to reproduce

@cindyweng
Copy link
Contributor

@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.

@nswitanek
Copy link

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

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

5 participants