Tests JuliaCI/buildkite-pr-relay: an approved fork PR
should get a build in the Buildkite pipeline tb-scratch-ci-gate. Not a package; safe to delete.
| File | Purpose |
|---|---|
.github/workflows/BuildkiteApproval.yml |
Runs true. GitHub holds this run on outside contributors' PRs until a maintainer approves it. |
.github/workflows/BuildkiteRelay.yml |
When a Buildkite approval run completes, calls the relay, which creates a Buildkite PR build if the run was an approved fork-PR run. |
.buildkite/pipeline.yml |
One echo ok step on tb-scratch-nonexistent, a queue without agents, so the step never runs. |
Settings:
- GitHub: fork PR workflows require approval for all external contributors.
- Secret:
BUILDKITE_TOKEN, a repository secret withread_buildsandwrite_builds. It overrides the JuliaGPU organization secret of the same name, which can't create builds. - Buildkite: the pipeline builds no PRs and no forks by itself.
To try it:
- Contributor (an account outside JuliaGPU): open a fork PR against
mainthat only changesREADME.md. Its Buildkite approval run waits for approval. - Maintainer: approve the run. The
Buildkite PR relaystatus links to the new build intb-scratch-ci-gate. - Contributor: push a change to
.buildkite/. Maintainer: approve again. The relay posts a failing status for that commit and creates no build.