microsoft / microsoft/vscode-azurecontainerapps

Deploy from workspace creates a registry each time it fails

Open
#595 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs discussion
Dominant language
TypeScript
Stars
42
Forks
21
Avg merge
3d 7h
Merged PRs (30d)
2

Description

Repro steps:

  1. Open a project with a Dockerfile.
  2. Change the Dockerfile so that it won't build.
  3. Run Deploy project from workspace command.
  4. Azure resources are created, including an ACR.
  5. ACR build fails, the settings don't get saved.
  6. Run Deploy project from workspace again.
  7. Another ACR is created.
image

We should try to prevent this, perhaps saving the settings before a build is attempted, or detecting an existing ACR and using it (not sure if that's a good thing).

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Deploy project from workspace command and trace the Azure resource and ACR build flow using the listed reproduction steps with an invalid Dockerfile. The fix is complete when a failed build does not cause a new ACR on retry, while the deployment settings remain available or an existing registry is reused.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, typescript, vscode
Domain
cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.