Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions .buildkite/pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Pull requests from forks are built from a `ci/pr-<N>` branch once a maintainer has approved
# their commit (see .github/workflows/BuildkiteRelay.yml); those builds count as pull
# requests below.
#
# Tests of the KernelAbstractions-related parts of the GPU back-ends, and the benchmarks. Draft
# pull requests skip them, unless selected by name in the last commit message: `[only cuda]`,
# `[only metal, oneapi]`, `[only tests]` for all tests, or `[only benchmarks]`. `[skip amdgpu]`
Expand Down Expand Up @@ -59,7 +63,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|cuda|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|cuda|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

# The Enzyme extension on the GPU back ends, whose own test suites don't run
# test/extensions/enzyme.jl. The back ends implement `EnzymeCore.compiler_job_from_backend`.
Expand Down Expand Up @@ -116,7 +120,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|cuda|enzyme|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|cuda|enzyme|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

- &amdgpu_enzyme
label: "AMDGPU Enzyme Julia {{matrix.version}}"
Expand Down Expand Up @@ -172,7 +176,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|amdgpu|enzyme|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|amdgpu|enzyme|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

- &metal
label: "Metal Julia {{matrix.version}}"
Expand Down Expand Up @@ -219,7 +223,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|metal|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|metal|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

- &oneapi
label: "oneAPI Julia {{matrix.version}}"
Expand Down Expand Up @@ -269,7 +273,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|oneapi|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|oneapi|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

- &amdgpu
label: "AMDGPU Julia {{matrix.version}}"
Expand Down Expand Up @@ -321,7 +325,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|amdgpu|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|amdgpu|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

- &opencl
label: "OpenCL Julia {{matrix.version}}"
Expand Down Expand Up @@ -372,7 +376,7 @@ steps:
if: |
build.message !~ /\[skip [^\]]*(tests|opencl|julia)/ &&
(build.message =~ /\[only [^\]]*(tests|opencl|julia)/ ||
build.message !~ /\[only / && build.pull_request.id == null)
build.message !~ /\[only / && build.pull_request.id == null && build.branch !~ /^ci\/pr-/)

# the label determines the commit status context .github/workflows/Benchmark.yml reacts to
- label: ":racehorse: Benchmarks"
Expand Down Expand Up @@ -404,4 +408,3 @@ steps:
env:
JULIA_PKG_PRECOMPILE_AUTO: false
JULIA_PKG_SERVER_REGISTRY_PREFERENCE: "eager" # see freshly-registered versions without cloning the registry
SECRET_CODECOV_TOKEN: "c5pjPUwULD2L8ss0gRtjCPiagRlTQ11TdbZP6gIhTPeA/gN5w5/7JvDCg36UpKER6FXnQDeBGGkQafHiLdBaH/FWQ2B2VKErtBarIBJa2zWvKu8mYs9PJzw/qLGT2sMXI9kcao63H6/HAwbslJcY0a5Mg+SwM3M05XqSHgnrHMnbBXysKP6VzFEIX7uoyEKOnoWDj8rGJKFYLW2DBRtd6Yc23ESfFXPAqbS7sgXxwQHKzz20FMQBJUmbiDIzPlk3k2n2TvgAWQ0VNK0e4/UooMbULL3UjY4oaMOF0XpJAnWlmvGgy8gEnZKSVp3ieXy/Ubu7BWwH/BT59wDy6LuDxA==;U2FsdGVkX18Wil69f7qJYu6yU5iNx+Zq8akUcOp+McU1CR4Jw4QBsrUKIF4W4uK+/752FQo40BwFsfnIC8CJ/Q=="
14 changes: 14 additions & 0 deletions .github/workflows/BuildkiteApproval.yml
Original file line number Diff line number Diff line change
@@ -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"
20 changes: 20 additions & 0 deletions .github/workflows/BuildkiteRelay.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Pushes the commit of an approved fork pull request to the branch ci/pr-<N>, 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-<N>
pull-requests: read
statuses: write
jobs:
relay:
uses: JuliaCI/buildkite-pr-relay/.github/workflows/relay.yml@v2
with:
pipeline: kernelabstractions-dot-jl
Loading