Block presubmit runs for PRs from 3rd-party forks.#1756
Block presubmit runs for PRs from 3rd-party forks.#1756fweikert wants to merge 1 commit intobazelbuild:masterfrom
Conversation
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.
|
I assume this affects all CI pipeline? Can we somehow give a notice to CI users? |
|
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. |
|
And the |
Can we print out some instruction on how to resolve the failure? |
Can Buildkite actually check who assigned the label? |
|
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. |
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.