-
Notifications
You must be signed in to change notification settings - Fork 177
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
Remove the obsolete, prefix-based CODEOWNERS
matcher
#5431
Conversation
CODEOWNERS
matcherCODEOWNERS
matcher & related tests
The following pipelines have been queued for testing: |
CODEOWNERS
matcher & related testsCODEOWNERS
matcher
…le + remove obsolete tests (#5437) This is a follow-up PR to: - #5241 That PR was supposed to enable the regex-based matcher everywhere, but didn't. This PR fixes that. This PR also: - removes the obsolete `ProgramSimplePathTests` test class; it is superseded by `ProgramGlobPathTests`, which is renamed in: - #5431 - removes obsolete tests from `get-codeowners.ps1` This PR is a prerequisite for following PRs: - #5103 - #5431
…ers` executable + add some tests; make assorted refactorings (#5103) This PR is part of work required in preparation to merge: - #5088 Specifically, to enable review of ownership changes due to upcoming wildcards support, as explained in: - #5088 (comment) As such, this PR contributes to: - #2770 This PR is a prerequisite for following PRs: - #5431 ### Merging prerequisite This PR can be merged only after the following PRs are merged and relevant NuGet package published - #5437 - #5104 This is because this PR depends on that NuGet package.
42ade90
to
303395e
Compare
remove ProgramSimplePathTests; rename ProgramGlobPathTests to RetrieveCodeOwnersProgramTests remove the obsolete prefix-based `CODEOWNERS` matcher
303395e
to
daa828d
Compare
The following pipelines have been queued for testing: |
@@ -38,19 +36,17 @@ public static List<CodeownersEntry> GetCodeownersEntries(string codeownersConten | |||
|
|||
public static CodeownersEntry GetMatchingCodeownersEntry( | |||
string targetPath, | |||
string codeownersFilePathOrUrl, | |||
bool useRegexMatcher = UseRegexMatcherDefault) | |||
string codeownersFilePathOrUrl) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JimSuplizio FYI if you are passing this third parameter and not using the default this will break when you get this update.
Sync eng/common directory with azure-sdk-tools for PR Azure/azure-sdk-tools#5431 See [eng/common workflow](https://github.com/Azure/azure-sdk-tools/blob/main/eng/common/README.md#workflow) Co-authored-by: Konrad Jamrozik <kojamroz@microsoft.com>
/check-enforcer override |
Update the NuGet packages using CODEOWNERS parser to pick up these changes: - #5431 - #5518 Relevant NuGet feeds: - https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Sdk.Tools.RetrieveCodeOwners/overview - https://dev.azure.com/azure-sdk/public/_artifacts/feed/azure-sdk-for-net/NuGet/Azure.Sdk.Tools.NotificationConfiguration/overview And builds powering them: - https://dev.azure.com/azure-sdk/internal/_build?definitionId=3188 - https://dev.azure.com/azure-sdk/internal/_build?definitionId=1815 Related work: - #2770
A follow-up to:
With this PR, now only the new, regex-based, wildcard-supporting
CODEOWNERS
matcher is present in the codebase.This PR also:
ProgramSimplePathTests
class (restored and upgraded in Restore and overhaul simple target path tests intoRetrieveCodeOwnersProgramTests
#5518);ProgramGlobPathTests
toRetrieveCodeOwnersProgramTests
;get-codeowners.ps1
.Related PR:
get-codeowners.ps1
to work with the updatedRetrieveCodeOwners
executable + add some tests; make assorted refactorings #5103This PR contributes to:
Merging prerequisite
This PR can be merged only after the following PRs are merged and relevant NuGet package published
get-codeowners.ps1
to work with the updatedRetrieveCodeOwners
executable + add some tests; make assorted refactorings #5103CODEOWNERS
matcher #5431