Skip to content

{CI} Preserve squad mentions during service contact sync - #34087

Open
ZelinWang (wangzelin007) wants to merge 1 commit into
Azure:devfrom
wangzelin007:fix/preserve-squad-contact-sync
Open

ZelinWang (wangzelin007) wants to merge 1 commit into
Azure:devfrom
wangzelin007:fix/preserve-squad-contact-sync

Conversation

@wangzelin007

@wangzelin007 ZelinWang (wangzelin007) commented Sep 16, 2026

Copy link
Copy Markdown
Member

🤖 PR Validation — ️✔️ All clear

Breaking Changes Tests
️✔️ None ️✔️ 130/130

Related command
N/A - internal service-contact synchronization pipeline only.

Description
The service contact wiki does not contain the squad teams maintained by squad mapping. Rebuilding the triage rules from that wiki currently removes those teams and produces recurring removal PRs.

  • Preserve existing mentionees matching ^Azure/act-[a-z0-9-]+-squad$ on the corresponding service label.
  • Continue synchronizing ordinary contacts and service additions/removals from the wiki; other Azure/... teams are not exempted.
  • Avoid duplicate squad mentions and keep repeated synchronization idempotent.
  • Add offline regression coverage for matching boundaries, per-service preservation, normal contact updates, and repeated runs.

Testing guide
Requires Python with pytest and PowerShell 7 (pwsh) on PATH.

python -m pytest tools\Github\tests\test_service_contacts.py -q -p no:cacheprovider

The 20 targeted tests pass. An offline comparison of the checked-in policy confirms that omitting squads from the wiki leaves all 260 service rules unchanged and retains all 162 squad mentions.

No live wiki access, pipeline execution, or generated policy edits are needed for this fix.

History Notes
Internal CI automation only; no customer-facing command behavior changes or history entry.

Related PRs

Keep existing Azure/act-...-squad mentionees when rebuilding service routing from the contact wiki. Add offline regression coverage for regular contact updates, exact team matching, and idempotent synchronization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot-Session: ae380b25-034e-4550-9636-fa1443bc8205

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.

🟢 Approval recommended

No unresolved issues were identified.

Pull request overview

Updates the internal service-contact synchronization pipeline to preserve squad mentions while continuing wiki-driven contact and service updates.

Changes:

  • Preserve matching squad mentions without duplicates.
  • Add offline regression coverage for synchronization behavior and idempotency.
File summaries
File Description
tools/Github/tests/test_service_contacts.py Adds synchronization regression tests.
tools/Github/ParseServiceContactsList.ps1 Preserves matching squad mentions during synchronization.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@yonzhan

Copy link
Copy Markdown
Collaborator

CI

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants