continuous-integration icon indicating copy to clipboard operation
continuous-integration copied to clipboard

Block presubmit runs for PRs from 3rd-party forks.

Open fweikert opened this issue 2 years ago • 6 comments

Going forward these builds will be blocked before running any code, and must be unblocked by someone who has "Build & Read" permissions for the corresponding pipeline.

This commit also fixes is_pull_request() which returned incorrect results when the presubmit ran for a PR in a branch of the bazelbuild/bazel repo.

fweikert avatar Oct 06 '23 23:10 fweikert

I assume this affects all CI pipeline? Can we somehow give a notice to CI users?

meteorcloudy avatar Oct 09 '23 09:10 meteorcloudy

We don't have a good way of reaching all CI users, other than maybe the emergency banner (which also has its own problems in this case).

Right now a blocked build will be displayed in GitHub as "running" - we could change it to "failed" so that people don't wait too long.

fweikert avatar Oct 09 '23 12:10 fweikert

And the CI:run flag won't be removed when new changes are pushed to the PR?

meteorcloudy avatar Oct 09 '23 14:10 meteorcloudy

Right now a blocked build will be displayed in GitHub as "running" - we could change it to "failed" so that people don't wait too long.

Can we print out some instruction on how to resolve the failure?

meteorcloudy avatar Oct 09 '23 14:10 meteorcloudy

must be unblocked by someone who has "Build & Read" permissions for the corresponding pipeline.

Can Buildkite actually check who assigned the label?

meteorcloudy avatar Oct 09 '23 14:10 meteorcloudy

This is a different approach from the "CI:run" label - all Buildkite builds from 3rd party fork branches will have an additional "block" step, similar to the release pipeline. Someone with "Build & Read" permissions on the pipeline has to unblock the step. This is a Buildkite-based solution, not a GitHub-based one.

I think the UI is pretty self-explanatory, especially since I added some context to the prompt.

fweikert avatar Oct 09 '23 14:10 fweikert