Skip to content

[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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Groverkss
Copy link
Member

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.

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.
@Groverkss Groverkss requested review from kuhar, banach-space and dcaballe and removed request for kuhar November 8, 2024 12:51
@kuhar kuhar requested a review from joker-eph November 8, 2024 12:57
Copy link
Member

@kuhar kuhar left a 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...

Copy link
Contributor

@banach-space banach-space left a 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!

  1. Do you have a link documenting how CODEOWNERS works? It would be good to add that in the summary.
  2. Shall we keep the list of reviewers in alphabetical order?

@dcaballe
Copy link
Contributor

dcaballe commented Nov 8, 2024

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.

@Groverkss
Copy link
Member Author

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.

@Groverkss
Copy link
Member Author

  1. Do you have a link documenting how CODEOWNERS works? It would be good to add that in the summary.

Yes, it's in github docs: #118208 I can raise a new pr to add that into the CODEOWNERS summary

  1. Shall we keep the list of reviewers in alphabetical order?

Sure.

@banach-space
Copy link
Contributor

Yes, it's in github docs: #118208 I can raise a new pr to add that into the CODEOWNERS summary

Wrong link :)

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.

+1 I propose having one rule for Vector. For finer-grain control, we could use GitHub sub-scriptions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants