← Back to Pull requests

[appnet-preview] Auto-detect --member-location from member cluster on member join #10152

Closed
unknown closed this pull request without merging on Aug 03, 2026 01:34 UTC
View on GitHub
unknown unknown commented on Jul 28, 2026 06:43 UTC
Author

<!-- act-bot:pr-validation:start -->

🤖 PR Validation — ️✔️ All clear

| Breaking Changes |
| :--: |
| ️✔️ None |

<!-- act-bot:section title="Azure CLI Extensions Breaking Change Test" category="breaking_change" label="Breaking Changes" status="Succeeded" summary="None" -->

<!-- act-bot:section-end -->

<!-- act-bot:pr-validation:end -->

Summary


Make --member-location optional on az appnet member join. When omitted, it now defaults to the location of the member cluster referenced by --member-resource-id, removing a redundant region input that had to be kept in sync with the cluster by hand. An explicit --member-location is still honored; a warning is logged if it differs from the cluster's region.

Changes


  • custom.py – MemberJoin overrides _build_arguments_schema to make --member-location optional and strip the resource-group location auto-fill (so an omitted value reaches the detection logic instead of silently defaulting to the RG location). pre_operations resolves the location from the cluster via a generic ARM GET on --member-resource-id.

  • Existing upgrade-mode validation in pre_operations is preserved.

  • New unit tests (tests/latest/test_member_location.py) covering default / explicit-mismatch-warning / missing-both-raises / invalid-resource-id paths. No live ARM calls.

  • Version bump 1.0.0b2 -> 1.0.0b3 and HISTORY.rst entry.
  • Notes


  • The AAZ-generated _join.py is intentionally not edited; the behavior change is applied through the MemberJoin command subclass in custom.py.

  • --member-resource-id remains optional at the CLI layer, but if both --member-location and a resolvable --member-resource-id are absent, the command now fails fast with RequiredArgumentMissingError rather than silently using the resource group's location.
  • Drafted with GitHub Copilot CLI.

    Diff: 233 lines (+174 / -59) across 2 files Reviewer: jack4it Review duration: 8331m
    All Vouch review confidence checks passed
    Residual risk 0.15 = Change Risk (0.37) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.37 · 233 lines diff across 2 files
    0.37
    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.326
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #10152"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% reviewed
    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: 37.1% (MEDIUM) · Higher = larger blast radius
    37.1%
    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: 14.6% · Safe to merge
    14.6%