-
Notifications
You must be signed in to change notification settings - Fork 26
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
Role based maintainers for recipes in meta-qcom-hwe #23
Comments
@sbanerjee-quic do these users need ability to merge PRs as well or just review and triage PRs and Issues? I.e. for the dozen or so users identified, would it be sufficient to give them the triage role? This role can manage issues, discussions, and pull requests without write access. That is, they can be assigned PRs, assign them to others, review them, etc but not merge. Once they approve, then a smaller subset of maintainers such as yourself and Ricardo would be able to merge. This is the new model we have been advocating for, i.e. fewer users with the Maintainer/Write role, and more users with Triage role. Let me know if any concerns. cc: @ricardosalveti for thoughts |
I can look into the CODEOWNERS file so they get automatically assigned |
I would prefer the merge to be done by the main repo maintainers, and having the tech (via sub-folders) maintainers be just extra reviewers (which the main repo maintainers would need to be aligned with from the changes pov). The main idea was to make sure the tech teams were involved as part of the review process as we move the project forward. |
Yeah, that would be more aligned to what I was thinking as well. |
These users need to participate for reviewing PRs and triaging issues only.
|
@ricardosalveti , @quic-vkraleti , @mynameistechno This worked on the forked repo sbanerje-quic/meta-qcom-hwe. But in this repo I see an error when the workflow runs. Any hints? |
@ricardosalveti @mynameistechno I am thinking the last line, i.e., rule with *, will help one of maintainers to be added as reviewers apart from the match that happens in previous lines. Thus, if there is a change in recipes-kernel/linux/ then reviewers will be assigned from both groups. |
@sbanerjee-quic the codeowners file will expand to include other recipes/tech areas as they are "forward-ported" to main? I.e. do we still want to refrain from giving Write access to all the recipe/tech team members? If so we'll continue exploring my last idea here of leveraging codeowners with our own GH Action (vs native GH codeowners functionality) |
Yes, the CODEOWNERS file will expand to include more reviewers who can be assigned technology specific reviews.
I created the native codeowners PR #44 , to test if the last catchall line in the file can act as a mandatory second reviewer. I am thinking if "Require a pull request review before merging" setting is enabled for the 'main branch then the following 2 rules will work together to ensure there are sufficient reviews in place before anyone with write access can merge a PR. Or otherwise waiting for 2 reviews per PR will be better than just merging with 1 review. If no option works with native codeowners we can likely go to codeowners with our own GH Action |
We should probably also set branch protection rules to avoid any accidental direct push. We can look at what's appropriate and how it interacts with CODEOWNERS.
|
Note to self, don't reply via e-mail to notifications sent to quic-yocto-ci! |
We could have a separate action that added Maintainers as reviewers in addition to CODEOWNERS when needed. I think that would be a simple action to write. Still we can't enforce them as a required reviewer due to the way GH reviewers work. |
"signed commits" in this context is not the DCO, but rather signing the commit with a GPG key: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits |
In addition to a GH Action there is also a way to round robin auto-assign members of a team. (In the team settings). Unclear how it works in conjunction with codeowners. I will test this out elsewhere first. And you’re right I can’t see a way to force a specific reviewer. So if there are two reviewers assigned via codeowners or someone with sufficient permissions assigns a second reviewer they could get around it. In practice I assume folks won’t merge if they see a maintainer also assigned as a reviewer. You can always revert a PR that was prematurely merged, and damage will be minimal unless it goes unnoticed. We should definitely disable Force pushes to prevent real damage though. |
Identify Maintainers for specific recipe sub-directories.
The maintainers to be notified when PR is raised in specific recipe sub-directory.
The text was updated successfully, but these errors were encountered: