-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Allow ok-to-test
label to approve GitHub workflow runs for new contributors
#25210
Comments
/sig contributor-experience |
@stevekuznetsov this is more of a follow-up on #21581 to add more features to Prow to integrate with GitHub Actions. Since you helped review that PR, your thoughts/suggestions would be valuable here. Thanks! |
/area prow |
It also looks like the approval needs to occur any time there's a new change (ie. pushed a commit) on the PR. |
@cjwagner @alvaroaleman , wdyt? |
I'm not sure if I agree with the decision here, but it seems like we've already made the decision and this PR is a continuation so it is probably fine. I am primarily concerned about the UX consistency and about surprising behavior for users (both already mentioned). |
Hehe I would not call #21581 (comment) a "decision" - at that time I was just offering the opinion. The code change landed in #24726. At this moment (and with some experience with how actions and Prow integrate) I'm not too fond of continuing the integration, too. Our experience is that actions and Prow sometimes do have surprising and confusing behavior. |
What have you seen? |
Conceptionally I am fine with this but not sure how easy it is to implement. The approval seems straight forward but before we can approve anything, we have to find out the run_id. This also entail additional api calls, so we might want to featuregate it. The name shown in the UI for checkruns is a combination of the suite and the check or something like that, not sure if we will be able to implement a |
#24921 was one thing. Confusion about how exactly the GH action (and their sub-entities) "identifiers" work when they are shown by GH UI and how do they relate to identifiers you can use in the GH API was another. I remember there was some case where GH presents you an indetifier than can be present in multiple workflows/actions (I'm not good in action terminology, sorry). |
@petr-muller I'm not sure if the issue you are referring to is the lack of filtering GitHub runs by PR which was the main issue to solve for #24726 fortunately the headsha field in the runs list data can be used to filter the runs list as in this initial approach done purely in GitHub actions https://github.com/shinigambit/serving/blob/main/.github/workflows/knative-checklabel.yaml it's pretty much the same approach I used in Go for the |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs. This bot triages issues and PRs according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
/lifecycle frozen |
I'm interested in this functionality. For repos with Helm charts in them there are often first time contributor PRs which require the manual intervention of a repo owner to enable the GH actions to run. As a MVP solution could both the |
Just want to add, we also have this issue frequently in ClusterAPI and it would be nice to see it implemented. But of course - as usual - someone has to have the time to actual implement it .. :) |
Bumping this with another +1. We face this in Metal3 as well. Contributors outside Metal3 org members are not getting actions run on their PRs, and the re-approve needed on futher changes in PR require constant babysitting by the approvers. |
@tuminoid we now use this action as a workaround: https://github.com/kubernetes-sigs/cluster-api/blob/main/.github/workflows/pr-gh-workflow-approve.yaml |
I added this functionality to ExternalDNS & Metrics Server and it's been up and running for over a year now. There were initially a couple of issues but the current pattern (which seems to be the one used by cluster-api) has been very stable. |
Thanks @sbueringer and @stevehipwell ... we added the same for one repo first here metal3-io/ip-address-manager#485 and if that works as expected, we'll put the same for all our repos. Thanks for the workaround! |
Migrated issue: kubernetes-sigs/prow#194 |
What would you like to be added:
The ability for Prow to approve GitHub workflow runs after the
ok-to-test
label has been added to a PR via GitHub's API https://docs.github.com/en/rest/reference/actions#approve-a-workflow-run-for-a-fork-pull-requestWhy is this needed:
New contributors are blocked from running GitHub workflows even after a maintainer adds the
ok-to-test
label to a PR and contributors shouldn't need to rely on GUI access to approve workflow runs knative/test-infra/issues/3057The text was updated successfully, but these errors were encountered: