Skip to content

MAINT: Decouple CoPyRIT code and infrastructure deployments - #2660

Open
Adrian Gavrila (adrian-gavrila) wants to merge 6 commits into
microsoft:mainfrom
adrian-gavrila:adrian-gavrila-copyrit-deployment-investigation
Open

Adrian Gavrila (adrian-gavrila) wants to merge 6 commits into
microsoft:mainfrom
adrian-gavrila:adrian-gavrila-copyrit-deployment-investigation

Conversation

@adrian-gavrila

@adrian-gavrila Adrian Gavrila (adrian-gavrila) commented Sep 14, 2026

Copy link
Copy Markdown
Contributor

Default to code-only test deployment. Add optional infrastructure stages while preserving production opt-in and manual approval. Includes documentation and 27 passing targeted tests. Live code-only deployment validation is pending.

This adds a new checkbox to deploy infra alongside the prod deployment toggle; this defaults to off.

Here is a screenshot of a sample run for a test pipeline using this config. The pipeline passes when deploying to test:
image

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@adrian-gavrila
Adrian Gavrila (adrian-gavrila) marked this pull request as ready for review September 15, 2026 13:14
@adrian-gavrila Adrian Gavrila (adrian-gavrila) changed the title [DRAFT] MAINT: Decouple CoPyRIT code and infrastructure deployments MAINT: Decouple CoPyRIT code and infrastructure deployments Sep 15, 2026
@behnam-o Behnam (behnam-o) self-assigned this Sep 15, 2026

@behnam-o Behnam (behnam-o) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments on keeping the application deployment path uniform.

Comment thread infra/pipelines/deploy-infra.yml Outdated
Comment thread gui-deploy.yml Outdated
Comment thread infra/pipelines/deploy_code.py Outdated
Comment thread infra/pipelines/deploy_code.py Outdated
Comment thread infra/pipelines/deploy_public_nat.sh Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>

@behnam-o Behnam (behnam-o) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like how we have separate stages to deploy the infra and the app, and have control on which one to run. These comments are more superficial and readability optimizations and if they're not clear or cause too much churn, I am happy if you decide that we should address them in a Code Quality PR later if they were bugging us.

Comment thread infra/pipelines/deploy-infra.yml Outdated
Comment thread infra/main.bicep Outdated
Comment thread infra/pipelines/deploy_gui.sh Outdated
Comment thread gui-deploy.yml Outdated
dependsOn:
- Build
- DeployTestInfra
condition: >-

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also I wonder if we should have a parameter that lets us deploy the app anyways even if deployInfra is true, yet it fails ... I expect this to be useful in our automated ADO pipeline runs, where we probably wanna deploy infra regularly, and even if it fails (for example due to some AFD timeout problem) still deploy the app ... that way we can track infra failures without having to wait on them to be fixed before we can deploy and verify the test app

Comment thread tests/unit/infra/test_code_deployment.py Outdated
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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

Successfully merging this pull request may close these issues.

2 participants