Skip to content

ci: run PR checks across configured deployments#18039

Draft
PawelWMS wants to merge 1 commit into
4.0from
pseudotrurl/pr-check-ct-multi-deployment
Draft

ci: run PR checks across configured deployments#18039
PawelWMS wants to merge 1 commit into
4.0from
pseudotrurl/pr-check-ct-multi-deployment

Conversation

@PawelWMS

@PawelWMS PawelWMS commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

What

  • Generate one parallel PR-check job for each configured deployment.
  • Configure deployment-specific audiences, endpoints, and service connections.
  • Run prcheck for DEV, STAGING, and PROD; run and await the scratch package build only for DEV.
  • Treat STAGING task failures as non-blocking while DEV and PROD remain gating.
  • Reuse the DEV-specific audience and endpoint in the post-merge package-build wrapper.
  • Use the Official governed template because the pipeline accesses a production-scoped identity.

Why

Allow one reviewer-gated pipeline run to exercise Control Tower calls across multiple deployments and surface deployment-specific results.

Risk

Each deployment repeats change detection and dependency setup, increasing agent usage. The production-scoped execution risk is explicitly accepted and documented in Azure Linux internal policies; reviewer gating remains a procedural control rather than an authorization boundary.

Verification

  • Parsed all three modified YAML files.
  • Checked deployment-map wiring, per-deployment audiences, conditional package-build expansion, STAGING non-blocking behavior, and unique artifacts.
  • Focused reviews found no implementation issues.
  • Squashed the PR to one signed, self-contained commit per CONTRIBUTING.md.

@PawelWMS
PawelWMS requested a review from a team as a code owner July 16, 2026 20:52
Copilot AI review requested due to automatic review settings July 16, 2026 20:52

Copilot AI 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.

Pull request overview

Expands Control Tower PR validation across DEV, STAGING, and PROD deployments.

Changes:

  • Generates parallel, deployment-specific validation jobs.
  • Adds unique output paths and artifact names.
  • Switches to OneBranch Official governance.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/ado/pr-check-ct.yml Configures deployment endpoints and service connections.
.github/workflows/ado/templates/pr-check-ct-stages.yml Generates and runs parallel deployment jobs.

Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
@PawelWMS
PawelWMS marked this pull request as draft July 16, 2026 21:07
Comment thread .github/workflows/ado/pr-check-ct.yml
Copilot AI review requested due to automatic review settings July 16, 2026 21:24
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml
Copilot AI review requested due to automatic review settings July 16, 2026 21:27

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread .github/workflows/ado/pr-check-ct.yml
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml
Comment thread .github/workflows/ado/pr-check-ct.yml Outdated
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 21:36

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread .github/workflows/ado/pr-check-ct.yml
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Comment thread .github/workflows/ado/pr-check-ct.yml
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 21:41

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

Comment thread .github/workflows/ado/pr-check-ct.yml
Comment thread .github/workflows/ado/pr-check-ct.yml Outdated
Comment thread .github/workflows/ado/pr-check-ct.yml
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 21:50

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 16, 2026 21:55
@PawelWMS
PawelWMS force-pushed the pseudotrurl/pr-check-ct-multi-deployment branch from d1ab1f7 to ef25021 Compare July 16, 2026 21:55

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Copilot AI review requested due to automatic review settings July 16, 2026 22:20
@PawelWMS
PawelWMS force-pushed the pseudotrurl/pr-check-ct-multi-deployment branch from ef25021 to c37f055 Compare July 16, 2026 22:20

Copilot AI 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.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

Comment thread .github/workflows/ado/templates/pr-check-ct-stages.yml Outdated
Comment thread .github/workflows/ado/pr-check-ct.yml
Copilot AI review requested due to automatic review settings July 16, 2026 23:20
@PawelWMS
PawelWMS force-pushed the pseudotrurl/pr-check-ct-multi-deployment branch from c37f055 to a2dfab5 Compare July 16, 2026 23:20

Copilot AI 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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@PawelWMS
PawelWMS marked this pull request as ready for review July 17, 2026 00:08
@PawelWMS
PawelWMS marked this pull request as draft July 17, 2026 00:14
Generate one parallel Control Tower job for each configured deployment
so one reviewer-gated run exercises DEV, STAGING, and PROD.

Keep each deployment's audience, endpoint, service connection, and error
policy together. Run prcheck for every deployment, make STAGING
non-blocking, and limit scratch package builds to DEV.

Use renewable Azure Pipelines WIF credentials during long-running API
polls, with Azure CLI fallback for local execution. Reuse the DEV-specific
audience and endpoint in the post-merge package wrapper.

Use OneBranch Official because the PR pipeline accesses a
production-scoped identity.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 17, 2026 23:38
@PawelWMS
PawelWMS force-pushed the pseudotrurl/pr-check-ct-multi-deployment branch from a2dfab5 to 95a4a94 Compare July 17, 2026 23:38

Copilot AI 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.

Pull request overview

Copilot reviewed 10 out of 10 changed files in this pull request and generated 1 comment.

Comment on lines +52 to +59
def test_uses_pipeline_service_connection(
self,
lifecycle_mocks: tuple[Mock, Mock, Mock, Mock],
) -> None:
"""Use the identity authenticated by the enclosing AzureCLI task."""
_submit()

package_build.ct.make_credential.assert_called_once_with()
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.

3 participants