|
| 1 | +# This file launches all the build jobs that _don't_ require secrets access. |
| 2 | +# These jobs can pass their output off to jobs that do require secrets access, |
| 3 | +# but those privileged steps require signing before they can be run. |
| 4 | +# |
| 5 | +# Yes, this is creating another layer of indirection; the flow now looks like: |
| 6 | +# |
| 7 | +# [webui] -> launch_unsigned_builders.yml -> misc/llvmpasses.yml |
| 8 | +# |
| 9 | +# when we could theoretically just have the `webui` launch `misc/llvmpasses.yml`, |
| 10 | +# however this raises the bar for contributors to add new (unsigned) steps to |
| 11 | +# our CI configuration, so I'd rather live with an extra layer of indirection |
| 12 | +# and only need to touch the webui configuration when we need to alter |
| 13 | +# something about the privileged steps. |
| 14 | + |
| 15 | +common: |
| 16 | + - diff-filter-build_plugin: &diff-filter-build |
| 17 | + https://github.com/fatteneder/diff-filter-buildkite-plugin#main: |
| 18 | + name: "build" |
| 19 | + ignore: |
| 20 | + - "*.md" |
| 21 | + - "*.json" |
| 22 | + - "CITATION.*" |
| 23 | + - ".gitignore" |
| 24 | + - ".clangd" |
| 25 | + - ".mailmap" |
| 26 | + # TODO: Need this option because BUILDKITE_PULL_REQUEST_BRANCH=main |
| 27 | + # when running tests in Julia-CI/julia-buildkite, |
| 28 | + # but for PRs against Julia/JuliaLang BUILDKITE_PULL_REQUEST_BRANCH=master |
| 29 | + target_branch: "master" |
| 30 | + - pr-labels_plugin: &pr-labels |
| 31 | + sv-oss/github-pr-labels#v0.0.2: |
| 32 | + publish-env-var: PULL_REQUEST_LABELS |
| 33 | + |
| 34 | +steps: |
| 35 | + - group: "Build" |
| 36 | + notify: |
| 37 | + - github_commit_status: |
| 38 | + context: "Build" |
| 39 | + steps: |
| 40 | + - label: "Launch build jobs" |
| 41 | + plugins: |
| 42 | + - JuliaCI/external-buildkite#v1: |
| 43 | + version: "./.buildkite-external-version" |
| 44 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 45 | + - *diff-filter-build |
| 46 | + - *pr-labels |
| 47 | + commands: | |
| 48 | + # Launch Linux build jobs |
| 49 | + FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0) |
| 50 | + BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE})) |
| 51 | + GROUP="Build" \ |
| 52 | + ALLOW_FAIL="false" \ |
| 53 | + BUILD="${BUILD}" \ |
| 54 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 55 | + .buildkite/pipelines/main/platforms/build_linux.arches \ |
| 56 | + .buildkite/pipelines/main/platforms/build_linux.yml |
| 57 | + # Launch macOS packaging jobs |
| 58 | + GROUP="Build" \ |
| 59 | + ALLOW_FAIL="false" \ |
| 60 | + BUILD="${BUILD}" \ |
| 61 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 62 | + .buildkite/pipelines/main/platforms/build_macos.arches \ |
| 63 | + .buildkite/pipelines/main/platforms/build_macos.yml |
| 64 | + GROUP="Build" \ |
| 65 | + ALLOW_FAIL="false" \ |
| 66 | + BUILD="${BUILD}" \ |
| 67 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 68 | + .buildkite/pipelines/main/platforms/build_freebsd.arches \ |
| 69 | + .buildkite/pipelines/main/platforms/build_freebsd.yml |
| 70 | + GROUP="Build" \ |
| 71 | + ALLOW_FAIL="false" \ |
| 72 | + BUILD="${BUILD}" \ |
| 73 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 74 | + .buildkite/pipelines/main/platforms/build_windows.arches \ |
| 75 | + .buildkite/pipelines/main/platforms/build_windows.yml |
| 76 | + agents: |
| 77 | + queue: "julia" |
| 78 | + os: "linux" |
| 79 | + - group: "Check" |
| 80 | + notify: |
| 81 | + - github_commit_status: |
| 82 | + context: "Check" |
| 83 | + steps: |
| 84 | + - label: "Launch check jobs" |
| 85 | + plugins: |
| 86 | + - JuliaCI/external-buildkite#v1: |
| 87 | + version: "./.buildkite-external-version" |
| 88 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 89 | + - *diff-filter-build |
| 90 | + - *pr-labels |
| 91 | + commands: | |
| 92 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/doctest.yml |
| 93 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/pdf_docs/build_pdf_docs.yml |
| 94 | + FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0) |
| 95 | + BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE})) |
| 96 | + if [[ ${BUILD} == 1 ]]; then |
| 97 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/analyzegc.yml |
| 98 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/embedding.yml |
| 99 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/llvmpasses.yml |
| 100 | + # buildkite-agent pipeline upload .buildkite/pipelines/main/misc/whitespace.yml # Currently runs in GitHub Actions instead of Buildkite |
| 101 | +
|
| 102 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/sanitizers/asan.yml |
| 103 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/sanitizers/tsan.yml |
| 104 | + fi |
| 105 | + agents: |
| 106 | + queue: "julia" |
| 107 | + os: "linux" |
| 108 | + - group: "Test" |
| 109 | + notify: |
| 110 | + - github_commit_status: |
| 111 | + context: "Test" |
| 112 | + steps: |
| 113 | + - label: "Launch test jobs" |
| 114 | + plugins: |
| 115 | + - JuliaCI/external-buildkite#v1: |
| 116 | + version: "./.buildkite-external-version" |
| 117 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 118 | + - *diff-filter-build |
| 119 | + - *pr-labels |
| 120 | + commands: | |
| 121 | + export ALLOW_FAIL="false" |
| 122 | + FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0) |
| 123 | + BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE})) |
| 124 | + if [[ ${BUILD} == 1 ]]; then |
| 125 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/gcext.yml |
| 126 | + buildkite-agent pipeline upload .buildkite/pipelines/main/misc/test_revise.yml |
| 127 | +
|
| 128 | + # Launch Linux test jobs |
| 129 | + GROUP="Test" \ |
| 130 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 131 | + .buildkite/pipelines/main/platforms/test_linux.arches \ |
| 132 | + .buildkite/pipelines/main/platforms/test_linux.yml |
| 133 | + # Launch i686-linux-gnu test jobs |
| 134 | + GROUP="Test" \ |
| 135 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 136 | + .buildkite/pipelines/main/platforms/test_linux.i686.arches \ |
| 137 | + .buildkite/pipelines/main/platforms/test_linux.i686.yml |
| 138 | + # Launch macOS test jobs |
| 139 | + GROUP="Test" \ |
| 140 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 141 | + .buildkite/pipelines/main/platforms/test_macos.arches \ |
| 142 | + .buildkite/pipelines/main/platforms/test_macos.yml |
| 143 | + # Launch FreeBSD test jobs |
| 144 | + GROUP="Test" \ |
| 145 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 146 | + .buildkite/pipelines/main/platforms/test_freebsd.arches \ |
| 147 | + .buildkite/pipelines/main/platforms/test_freebsd.yml |
| 148 | + # Launch windows test jobs |
| 149 | + GROUP="Test" \ |
| 150 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 151 | + .buildkite/pipelines/main/platforms/test_windows.arches \ |
| 152 | + .buildkite/pipelines/main/platforms/test_windows.yml |
| 153 | + fi |
| 154 | + agents: |
| 155 | + queue: "julia" |
| 156 | + os: "linux" |
| 157 | + - group: "Allow Fail" |
| 158 | + steps: |
| 159 | + - label: "Launch allowed-to-fail build jobs" |
| 160 | + plugins: |
| 161 | + - JuliaCI/external-buildkite#v1: |
| 162 | + version: "./.buildkite-external-version" |
| 163 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 164 | + - *diff-filter-build |
| 165 | + - *pr-labels |
| 166 | + commands: | |
| 167 | + export ALLOW_FAIL="true" |
| 168 | + FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0) |
| 169 | + BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE})) |
| 170 | + if [[ ${BUILD} == 1 ]]; then |
| 171 | + # Launch Linux allowed-to-fail build jobs |
| 172 | + GROUP="Allow Fail" \ |
| 173 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 174 | + .buildkite/pipelines/main/platforms/build_linux.soft_fail.arches \ |
| 175 | + .buildkite/pipelines/main/platforms/build_linux.yml |
| 176 | + # Launch macOS allowed-to-fail build jobs |
| 177 | + GROUP="Allow Fail" \ |
| 178 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 179 | + .buildkite/pipelines/main/platforms/build_macos.soft_fail.arches \ |
| 180 | + .buildkite/pipelines/main/platforms/build_macos.yml |
| 181 | + fi |
| 182 | + agents: |
| 183 | + queue: "julia" |
| 184 | + os: "linux" |
| 185 | + - label: "Launch allowed-to-fail test jobs" |
| 186 | + plugins: |
| 187 | + - JuliaCI/external-buildkite#v1: |
| 188 | + version: "./.buildkite-external-version" |
| 189 | + repo_url: "https://github.com/JuliaCI/julia-buildkite" |
| 190 | + - *diff-filter-build |
| 191 | + - *pr-labels |
| 192 | + commands: | |
| 193 | + export ALLOW_FAIL="true" |
| 194 | + FORCE=$(test -n "$(echo $${PULL_REQUEST_LABELS} | grep "\\<ci-force-build\\>")" && echo 1 || echo 0) |
| 195 | + BUILD=$(($${BUILDKITE_PLUGIN_DIFF_FILTER_TRIGGERED_BUILD} || ${FORCE})) |
| 196 | + if [[ ${BUILD} == 1 ]]; then |
| 197 | + # Launch Linux allowed-to-fail test jobs |
| 198 | + GROUP="Allow Fail" \ |
| 199 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 200 | + .buildkite/pipelines/main/platforms/test_linux.soft_fail.arches \ |
| 201 | + .buildkite/pipelines/main/platforms/test_linux.yml |
| 202 | + # Launch macOS allowed-to-fail test jobs |
| 203 | + GROUP="Allow Fail" \ |
| 204 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 205 | + .buildkite/pipelines/main/platforms/test_macos.soft_fail.arches \ |
| 206 | + .buildkite/pipelines/main/platforms/test_macos.yml |
| 207 | + # Launch FreeBSD allowed-to-fail jobs |
| 208 | + GROUP="Allow Fail" \ |
| 209 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 210 | + .buildkite/pipelines/main/platforms/test_freebsd.soft_fail.arches \ |
| 211 | + .buildkite/pipelines/main/platforms/test_freebsd.yml |
| 212 | + # Launch windows allowed-to-fail test jobs |
| 213 | + GROUP="Allow Fail" \ |
| 214 | + bash .buildkite/utilities/arches_pipeline_upload.sh \ |
| 215 | + .buildkite/pipelines/main/platforms/test_windows.soft_fail.arches \ |
| 216 | + .buildkite/pipelines/main/platforms/test_windows.yml |
| 217 | + fi |
| 218 | + agents: |
| 219 | + queue: "julia" |
| 220 | + os: "linux" |
0 commit comments