-
Notifications
You must be signed in to change notification settings - Fork 14.8k
[mlir] Fix nested codeowners for vector dialect #115473
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
base: main
Are you sure you want to change the base?
Conversation
Due to how CODEOWNERS works, if a file matches two rules, the later rule will take precedence. Because of this, /mlir/include/mlir/Dialect/Vector rules were not matching against /mlir/include/mlir/Dialect/Vector/IR . This patch adds users in the directory rules, to the finer grained rules, which I'm guessing was the intended effect that they expected when they were added.
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.
Gah, this sounds like quite a footgun...
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.
Thanks for the fix!
- Do you have a link documenting how CODEOWNERS works? It would be good to add that in the summary.
- Shall we keep the list of reviewers in alphabetical order?
Yeah, I also went through this issue a few times. My opinion is that we should limit the rules to dialects or well-defined coarser-grained components. Having rules per .h/.cpp file or small subfolders is too fine grained and introduces too much noise in the CODEOWNERS file. |
I think that's a good idea. There is a bit of free for all going in the file, I don't think there is anything governing how rules are added there. |
Yes, it's in github docs: #118208 I can raise a new pr to add that into the CODEOWNERS summary
Sure. |
Wrong link :)
+1 I propose having one rule for |
Due to how CODEOWNERS works, if a file matches two rules, the later rule will take precedence.
Because of this, /mlir/include/mlir/Dialect/Vector rules were not matching against /mlir/include/mlir/Dialect/Vector/IR .
This patch adds users in the directory rules, to the finer grained rules, which I'm guessing was the intended effect that they expected when they were added.