Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add manual tools for reporting information required to enable regex-based wildcard-supporting CODEOWNERS matcher on all remaining repositories in scope. #5266

Merged
merged 8 commits into from
Feb 1, 2023

Conversation

konrad-jamrozik
Copy link
Contributor

@konrad-jamrozik konrad-jamrozik commented Jan 29, 2023

PR context

This PR is done in preparation to enable the new regex-based wildcard-supporting CODEOWNERS matcher for Azure SDK repositories that have configured routing of build failure notifications via ADO groups, as explained in:

This PR is a continuation of work done by this PR:

This PR provides information required to make a PR analogous to this one, but for the remaining repositories in scope:

This PR is a prerequisite to enabling the new matcher on all the remaining repositories in scope, in similar way as this PR does:

Thus, overall, this PR contributes to:

Changes made

  • Added support for reporting CODEOWNERS paths that are missing prefix /;
  • Added support for reporting issues with owners for all repositories in scope;
  • Added support for diffing owners changed between CODEOWNERS and manually provided local CODEOWNERS2 (used for diffing changes in PRs pending merging);
  • Added documentation in form of comments;
  • Did significant refactoring.

@konrad-jamrozik konrad-jamrozik added the Central-EngSys This issue is owned by the Engineering System team. label Jan 29, 2023
@konrad-jamrozik konrad-jamrozik requested a review from a team as a code owner January 29, 2023 07:35
@konrad-jamrozik konrad-jamrozik self-assigned this Jan 29, 2023
@konrad-jamrozik konrad-jamrozik changed the title Add support for reporting information required to enable regex-based wildcard-supporting CODEOWNERS matcher on all remaining repositories in scope. Add manual tools for reporting information required to enable regex-based wildcard-supporting CODEOWNERS matcher on all remaining repositories in scope. Jan 30, 2023
… overwriting output files for diffs for wildcard paths removal
@benbp
Copy link
Member

benbp commented Jan 30, 2023

So this is just a temporary update to enable tracking the state of various codeowners files? If so, I'm ok with this.

@konrad-jamrozik
Copy link
Contributor Author

konrad-jamrozik commented Jan 30, 2023

So this is just a temporary update to enable tracking the state of various codeowners files? If so, I'm ok with this.

@benbp I plan to keep this for future use, too. These tools allow us to have full insight into how any CODEOWNERS changes will affect the owners.

The logic that compares old vs new matcher will go away, and the validation logic will be moved into:

But nevertheless I want to keep what remains, in case we need to make some significant and/or batch changes to CODEOWNERS in the future.

@konrad-jamrozik konrad-jamrozik merged commit 6da835e into main Feb 1, 2023
@konrad-jamrozik konrad-jamrozik deleted the users/kojamroz/diff_all_cos branch February 1, 2023 20:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Central-EngSys This issue is owned by the Engineering System team.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants