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

Fail to run the command azd pipeline config #9

Closed
jianingwang123 opened this issue Jun 28, 2024 · 13 comments
Closed

Fail to run the command azd pipeline config #9

jianingwang123 opened this issue Jun 28, 2024 · 13 comments

Comments

@jianingwang123
Copy link

Describe the issue:

When running the command azd pipeline config , the following error appears:
image

image

Repro Steps:

1.Run azd init --template llama-index-javascript
2. Run azd auth login
3. Run npm install
4. Run azd up
5. Run azd pipeline config

Environment:

  • azd version: 1.9.3 (commit e1624330dcc7dde440ecc1eda06aac40e68aa0a3)
  • OS: Windows11

Expected behavior:

Run azd pipeline config succesfully.

@hemarina and @manekinekko for notification.

@jianingwang123
Copy link
Author

@manekinekko A new error was encountered, as follows:

image

@manekinekko
Copy link
Contributor

Thank you @jianingwang123 Will fix it and report back.

@manekinekko
Copy link
Contributor

@jianingwang123
Copy link
Author

@manekinekko
When executing azd pipeline config, we will encounter error: repo *** not found. See the picture for detailed error.
Besides, when we try to set the repository to public, it passes after re-running. This is strange.
Is this template missing any configuration or permissions?

image

@manekinekko
Copy link
Contributor

Can you describe the flow for azd pipeline config? When I run this command this is the output I get. Is there something missing?
image

@jianingwang123
Copy link
Author

Please create a new private repository instead of an existing public repository . This is the output I get :

image

@manekinekko
Copy link
Contributor

Hi @jianingwang123 my understanding is that the azd pipeline config should run succefully for the main official repo, not private forks. Is that correct? cc @anfibiacreativa

@manekinekko
Copy link
Contributor

Hi @jianingwang123 I just double checked, the issue is happening because the project is private, when you switch to public, the pipeline is validated. https://github.com/manekinekko/azd-tmpl/actions/runs/9974814966/job/27563498249

@v-xuto
Copy link

v-xuto commented Jul 18, 2024

@manekinekko For azd template testing, when running azd pipeline config, it is expected that both public and private repositories will succeed. For example, https://github.com/Azure-Samples/todo-nodejs-mongo, this template will work even for private repos. Also, not everyone has access to main official repos.

@manekinekko
Copy link
Contributor

@v-xuto thank you for the clarifications. Could you please guide me on how I can set this correctly?

@v-xuto
Copy link

v-xuto commented Jul 19, 2024

@v-xuto thank you for the clarifications. Could you please guide me on how I can set this correctly?

@manekinekko This template triggered three GitHub Actions pipelines: Deploy to Azure, Build and test, and Validate AZD template. Both Deploy to Azure and Build and test, passed successfully, while Validate AZD template encountered a permission issue. After investigation and analysis, by removing two lines of code from file validate-infra.yaml and then executing azd pipeline config, the result was PASS. You can have a try.

image

  • Github pipeline result:

image

@manekinekko
Copy link
Contributor

Thank you @v-xuto I applied the fix. Would you like to try again please?

@v-xuto
Copy link

v-xuto commented Jul 24, 2024

Thank you @v-xuto I applied the fix. Would you like to try again please?

We have verified, this issue has been fixed.

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

3 participants