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

Issue/PR auto-assign is making us miss contributions #1698

Closed
MikeGoldsmith opened this issue Nov 25, 2020 · 13 comments · Fixed by #16180
Closed

Issue/PR auto-assign is making us miss contributions #1698

MikeGoldsmith opened this issue Nov 25, 2020 · 13 comments · Fixed by #16180
Assignees
Labels
bug Something isn't working priority:p3 Lowest release:allowed-for-ga

Comments

@MikeGoldsmith
Copy link
Member

Describe the bug

We have seen on a number of occasions where the auto-assign feature combined with CODEOWNERS does not notify all parties of a new issue / PR, against a sub-directory we should be. Myself, @paulosman & @lizthegrey are all in the CODEOWNERS file alongside the @open-telemetry/collector-contrib-approvers, for the Honeycomb exporter but the auto-assign feature picks someone from the overall group.

This has lead to a number of PRs being submitted, approved & merged without our knowledge:

#291
#1162

And most recently:
#1689
(@bogdandrutu did catch this after the fact, but it shouldn't be on an individual to remember / fix retrospectively)

I did originally raise this as part this issue as there was some discussion around too many people getting notified.

@MikeGoldsmith MikeGoldsmith added the bug Something isn't working label Nov 25, 2020
@mx-psi
Copy link
Member

mx-psi commented Nov 25, 2020

We (@mx-psi, @ericmustin and @KSerrania) are having similar issues with PRs made against the Datadog exporter.

@bogdandrutu
Copy link
Member

Any solution?

@MikeGoldsmith
Copy link
Member Author

I think we need to review the auto-assign feature being used to select an individual from the pool of reviewers. Ideally it would pick one from the (first) collector-contrib-approvers team, and subsequent entries in the CODEOWNERS file ass approvers. However, I'm not sure that is possible.

An alternative would be manual process, where whenever any PR that directly affects a vendor managed exporter, there should be approvable from them first.

The fallback solution, would be to disable the auto-assign feature to ensure all participants in the CODEOWNERS file are notified.

@mx-psi
Copy link
Member

mx-psi commented Dec 7, 2020

The fallback solution, would be to disable the auto-assign feature to ensure all participants in the CODEOWNERS file are notified.

I don't think this would work for this repo, Github docs say

"The people you choose as code owners must have write permissions for the repository."

which would not be the case here.

@MikeGoldsmith
Copy link
Member Author

Interesting, so CODEOWNERS only works with users who have write permissions.

With that in mind, I think a general process of getting approval from a vendor contributor should be required before merging, alongside an approval from the OTel contrib approvers of course.

dyladan referenced this issue in dynatrace-oss-contrib/opentelemetry-collector-contrib Jan 29, 2021
Signed-off-by: Bogdan Drutu <bogdandrutu@gmail.com>
@pellared
Copy link
Member

pellared commented Oct 12, 2021

Have you tested if it works with Read permission set for a user (not a team)?

Github docs also says

Users must have read access to the repository

@mx-psi
Copy link
Member

mx-psi commented Oct 12, 2021

@open-telemetry/collector-contrib-maintainer should we try adding read access to test if notifications work?

@gbbr
Copy link
Member

gbbr commented May 31, 2022

Has there been any resolution on this issue? We have a similar problem on the datadogexporter, where I am responsible for APM code but I keep missing changes and PRs because of not getting notified, relying on @mx-psi to let me know, which is not a sustainable method. Any chance I could be added to the org and to CODEOWNERS to ensure I see these changes to be able to efficiently maintain this component?

@github-actions
Copy link
Contributor

github-actions bot commented Nov 8, 2022

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Nov 8, 2022
@mx-psi
Copy link
Member

mx-psi commented Nov 8, 2022

Thanks to the improvements by @open-telemetry/collector-contrib-triagers I think the only thing missing here is to allow adding the component labels to PRs as well as issues. This would allow approvers/maintainers to more easily ping code owners. I think this would amount to changing the triggering conditions here

@evan-bradley
Copy link
Contributor

This was also requested in #16036 and an implementation for automatically assigning code owners without write access was tested in #14582. I'll take a look into implementing something to help solve this.

@evan-bradley evan-bradley self-assigned this Nov 8, 2022
@TylerHelmuth
Copy link
Member

I think the reason my PR falls short is bc it causes us to have to maintain a second CODEOWNERS file essentially to take advantage of existing actions.

It would be good to try a solution that uses the existing CODEOWNERS file and is able to detect the directory changes in the PR on every push.

@TylerHelmuth
Copy link
Member

Also I haven't found an existing workflow yet that can automatically assign/request review for CODEOWNERS using the CODEOWNERS file. In general this problem is harder than what we've done for issues bc of the permissions needed to interact with a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working priority:p3 Lowest release:allowed-for-ga
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants