-
Notifications
You must be signed in to change notification settings - Fork 137
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
Block presubmit runs for PRs from 3rd-party forks. #1756
base: master
Are you sure you want to change the base?
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.