From 07a263ff899ea4dfcaf9529b961f2bade02e0d46 Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Tue, 1 Dec 2026 10:41:10 +0100 Subject: [PATCH] Update to JuliaGPU Buildkite changes Fork PRs are no longer built directly on the GPU agents, which also no longer decrypt secrets. Approved fork commits are pushed to ci/pr- by JuliaCI/buildkite-pr-relay and built from there. Coverage is uploaded tokenless, replacing SECRET_CODECOV_TOKEN. --- .buildkite/pipeline.yml | 11 +++++++---- .github/workflows/BuildkiteApproval.yml | 14 ++++++++++++++ .github/workflows/BuildkiteRelay.yml | 20 ++++++++++++++++++++ 3 files changed, 41 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/BuildkiteApproval.yml create mode 100644 .github/workflows/BuildkiteRelay.yml diff --git a/.buildkite/pipeline.yml b/.buildkite/pipeline.yml index 21e309e4..31d791d6 100644 --- a/.buildkite/pipeline.yml +++ b/.buildkite/pipeline.yml @@ -1,3 +1,7 @@ +# Pull requests from forks are built from a `ci/pr-` branch once a maintainer has approved +# their commit (see .github/workflows/BuildkiteRelay.yml); those builds count as pull +# requests below. +# # Commit message tags select what to run: `[only X]` runs only the listed steps, `[skip X]` # skips them, where X is a comma-separated list of: `tests` (all steps), `julia` (released # Julia versions), `nightly`, `special`. To limit the load on the shared GPU runner, pull @@ -52,7 +56,7 @@ steps: if: | build.message !~ /\[skip [^\]]*(tests|julia)/ && (build.message =~ /\[only [^\]]*(tests|julia)/ || - build.message !~ /\[only / && build.pull_request.id == null) + build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/) matrix: setup: julia: @@ -64,7 +68,7 @@ steps: if: | build.message !~ /\[skip [^\]]*(tests|nightly)/ && (build.message =~ /\[only [^\]]*(tests|nightly)/ || - build.message !~ /\[only / && build.pull_request.id == null) + build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/) soft_fail: true matrix: setup: @@ -122,9 +126,8 @@ steps: if: | build.message !~ /\[skip [^\]]*(tests|special)/ && (build.message =~ /\[only [^\]]*(tests|special)/ || - build.message !~ /\[only / && build.pull_request.id == null) + build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/) timeout_in_minutes: 60 env: JULIA_PKG_SERVER_REGISTRY_PREFERENCE: "eager" # OK to downloading JLLs from GitHub - SECRET_CODECOV_TOKEN: "OYpS8fj3vGhj7iZf9vLAeapyxQNSOEW6mApcSvGboL9AlS+0nfOSFjFrIBNnIU0prxQQy1gR9AwR/JO1m2OFWeRhjYtkQPPhk4xVtSKmv0LLTL0snA8IohUopqfu722i7zLrPcz/A0LFIFsb0ey+oReJs2xnGOshNIJu4FDowUV3wmZvfKWNsSK4cGN+HFQ3387Ow4SsmiUr7oqh0iMBQNqaY8oZ2BY1dFOgPaOegIp70YEFRdJ8DKaLd7WGxFLY9oQEhZZdmx/zx0xo56/NGtDwVYkDPa4qPhJczDBoIn5XvcRiIW0VJ/MaRARxnpenBX5H6gwdcZYUGtjXWIRXBw==;U2FsdGVkX1/bZy1Bp4/dBH5scPpWqLKusXGvSkRGUa+1F7hi4P4Cu5a6GcfNIEvQr+bBj2VlZvqhNW0FAqN3QQ==" diff --git a/.github/workflows/BuildkiteApproval.yml b/.github/workflows/BuildkiteApproval.yml new file mode 100644 index 00000000..3969dbf7 --- /dev/null +++ b/.github/workflows/BuildkiteApproval.yml @@ -0,0 +1,14 @@ +# Held by GitHub on pull requests from outside contributors until a maintainer approves the +# run; BuildkiteRelay.yml then has the approved commit built on Buildkite. Must stay +# trivial: it runs the pull request's copy of this file. See +# https://github.com/JuliaCI/buildkite-pr-relay. +name: Buildkite approval +on: + pull_request: + types: [opened, synchronize, reopened] +permissions: {} +jobs: + approval: + runs-on: ubuntu-latest + steps: + - run: "true" diff --git a/.github/workflows/BuildkiteRelay.yml b/.github/workflows/BuildkiteRelay.yml new file mode 100644 index 00000000..0afcbb58 --- /dev/null +++ b/.github/workflows/BuildkiteRelay.yml @@ -0,0 +1,20 @@ +# Pushes the commit of an approved fork pull request to the branch ci/pr-, which +# Buildkite builds, and deletes the branches of closed pull requests. +# See https://github.com/JuliaCI/buildkite-pr-relay. +name: Buildkite relay +on: + workflow_run: + workflows: ["Buildkite approval"] + types: [completed] + schedule: + - cron: "37 * * * *" + workflow_dispatch: +permissions: + contents: write # push and delete ci/pr- + pull-requests: read + statuses: write +jobs: + relay: + uses: JuliaCI/buildkite-pr-relay/.github/workflows/relay.yml@v2 + with: + pipeline: oneapi-dot-jl