← Back to Pull requests

refactor(infrastructure): migrate Maestro ARM steps to ARMStack #8260

Closed
unknown closed this pull request without merging on Nov 26, 2026 12:33 UTC
View on GitHub
unknown unknown commented on Nov 25, 2026 06:58 UTC
Author

Related: AROSLSRE-2696 - Migrate Maestro-backed ARM steps to ARMStack

Why

Reliable Maestro infrastructure pruning requires explicit resource ownership. Adopting the existing deployments as stacks establishes that ownership without splitting the shared templates or tearing down shared infrastructure.

What

Convert these seven resource-creating deployment-pipeline steps from ARM to ARMStack, one-for-one:

| Pipeline | Step | Template |
| --- | --- | --- |
| region-pipeline.yaml | regional.infra | region.bicep |
| svc-pipeline.yaml | service.cluster | svc-cluster.bicep |
| mgmt-pipeline.yaml | management.cluster | mgmt-cluster.bicep |
| region-pipeline.yaml | auditLogs.auditLogsEventHub | audit-logs-eventhub.bicep |
| region-pipeline.yaml | regional.maestroMqttDiagnostics | maestro-mqtt-diagnostics.bicep |
| region-pipeline.yaml | kusto.maestroMqttDataConnection | maestro-mqtt-data-connection.bicep |
| geography-pipeline.yaml | kusto-infra.deploy | kusto.bicep |

All seven use actionOnUnmanage: detach for adoption. The existing deny-none behavior and default-disabled out-of-sync bypass are retained; the redundant explicit bypass setting is omitted.

Preserve the existing Bicep templates, parameters, resource-group root scopes, nested cross-scope modules, dependencies, conditions and outputs. Helm/Shell steps, output-only ARM lookups and existing monitoring stacks remain unchanged. No documentation changes are included.

Only declared/enabled resources enter stack ownership; existing-only references do not. The ticket's inventory predates subsequent AKS changes: both SVC and MGMT AKS roots and node pools now remain Shell-managed and are referenced as existing resources. Already-retired Maestro registrations and certificate-access resources are not recreated.

Testing

  • make validate-config-pipelines against the main topology and configured validation region (westus3).

  • Pinned yamlfmt lint for all four changed pipeline files.

  • Structural comparison against the upstream base verifies exactly seven action/detach conversions and preservation of every other pipeline field, including existing monitoring-stack settings.

  • git diff --check.
  • No new tests are added because the change modifies pipeline actions/policies, not service code or Bicep resource definitions; the existing configuration, schema and dependency validation covers those definitions. No Azure deployment was performed.

    Special notes for your reviewer

    These are deployment-pipeline configuration changes only; no scripts, executable commands, external downloads or resource definitions are added.

    This PR implements the ticket's pipeline-adoption portion, not production Maestro teardown. Whole-template ownership includes shared regional, service, Event Hub and Kusto infrastructure. Keep detach until stack-specific removal previews and disposable-scope canaries pass; never delete a whole shared stack just to remove Maestro.

    Live rollout gates remain: engine-correct stack-name/resource-group discovery and one owner per resource ID; cross-resource-group/subscription adoption; PostgreSQL configuration-child cleanup; aligned AKS Shell upgrade followed by stack reapply; Maestro connectivity and diagnostics ingestion; and Maestro-only pruning that preserves shared infrastructure.

    Suggested infrastructure reviewers after required checks pass: geoberle and stevekuznetsov (dev-infrastructure/OWNERS).

    PR Checklist

  • Understand Code Review Process managed by OpenShift CI bot

  • PR is scoped to a single task (no mixed concerns)

  • Title follows Conventional Commits format

  • Summary explains the "Why" behind the change

  • Linked to relevant ticket/issue

  • Screenshots included (if dashboards or other UI changes; not applicable to this pipeline-only change)

  • Self-reviewed the diff

  • CI/CD checks are passing (ignore Tide)

  • Draft PR used for WIP (if applicable)

  • Commit history is clean (rebased/squashed)

  • Tricky code blocks are commented (not applicable; no code blocks changed)

  • Specific reviewers tagged via /assign command

  • All comment threads resolved before merge
  • If E2E tests are included:

  • E2E tests follow Principles of Good E2E Test Case Design

  • If new E2E use case is covered (via a new test or new check/verifier), demonstrate that the test is able to detect a defect/error and fail with proper error message and logs which communicates nature of the problem.
  • Diff: 613 lines (+459 / -154) across 7 files Reviewer: raelga Review duration: 1775m
    All Vouch review confidence checks passed
    Residual risk 0.29 = Change Risk (0.73) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.73 · 613 lines diff across 7 files
    0.73
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.384
    Shallow Review Depth shallow_review_depth
    0.289
    Sensitive Paths sensitive_paths
    0.073
    Real PR Conversation Timeline
    1 comments
    "Review active on #8260"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed sensitive_module
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 73.4% (HIGH) · Higher = larger blast radius
    73.4%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 60.5% · Lower = rushed or shallow review
    60.5%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 29.0% · Safe to merge
    29.0%
    Repository