Skip to content

Commit fb42d78

Browse files
committed
CI (Buildkite): on pull request builds, build the merge commit (e.g. refs/pull/1234/merge)
1 parent 4dea1c4 commit fb42d78

File tree

11 files changed

+55
-2
lines changed

11 files changed

+55
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
steps:
22
- label: ":buildkite: Launch unsigned pipelines"
33
commands: |
4+
echo "--- Checkout the merge commit (if this is a pull request build)"
5+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
6+
7+
echo "--- Launch unsigned pipelines"
48
buildkite-agent pipeline upload .buildkite/pipelines/experimental/misc/sanitizers.yml
59
agents:
610
queue: julia

.buildkite/pipelines/experimental/misc/sanitizers.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,8 @@ steps:
2121
version: 1.6
2222
timeout_in_minutes: 120
2323
commands: |
24+
echo "--- Checkout the merge commit (if this is a pull request build)"
25+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
26+
2427
echo "--- Build julia-debug with ASAN"
2528
contrib/asan/build.sh ./tmp/test-asan -j$${JULIA_CPU_THREADS:?} debug

.buildkite/pipelines/main/launch_unsigned_builders.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
steps:
1616
- label: ":buildkite: Launch unsigned builders"
1717
commands: |
18+
echo "--- Checkout the merge commit (if this is a pull request build)"
19+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
20+
21+
echo "--- Launch unsigned builders"
22+
1823
# Launch the `whitespace` builder first, because we want that builder to finish as quickly as possible.
1924
buildkite-agent pipeline upload .buildkite/pipelines/main/misc/whitespace.yml
2025

.buildkite/pipelines/main/misc/doctest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ steps:
1818
# Include `/cache/repos` so that our `git` version introspection works.
1919
- "/cache/repos:/cache/repos"
2020
commands: |
21+
echo "--- Checkout the merge commit (if this is a pull request build)"
22+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
23+
2124
echo "--- Build Julia from source"
2225
make -j 6
2326

.buildkite/pipelines/main/misc/embedding.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,15 @@ steps:
1818
# Include `/cache/repos` so that our `git` version introspection works.
1919
- "/cache/repos:/cache/repos"
2020
commands: |
21+
echo "--- Checkout the merge commit (if this is a pull request build)"
22+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
23+
2124
prefix="/tmp/prefix"
22-
echo "+++ Build julia, deploy to $${prefix:?}"
25+
echo "--- Build julia, deploy to $${prefix:?}"
2326
make -j$${JULIA_CPU_THREADS:?} JULIA_PRECOMPILE=0 prefix=$${prefix:?} install
2427
2528
embedding_output="/tmp/embedding-test"
26-
echo "+++ Run embedding tests, deploy to $${embedding_output:?}"
29+
echo "--- Run embedding tests, deploy to $${embedding_output:?}"
2730
mkdir -p "$${embedding_output:?}"
2831
make -j$${JULIA_CPU_THREADS:?} -C test/embedding JULIA="$${prefix:?}/bin/julia" BIN="$${embedding_output:?}"
2932
timeout_in_minutes: 60

.buildkite/pipelines/main/misc/llvmpasses.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ steps:
1616
# Include `/cache/repos` so that our `git` version introspection works.
1717
- "/cache/repos:/cache/repos"
1818
commands: |
19+
echo "--- Checkout the merge commit (if this is a pull request build)"
20+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
21+
1922
echo "--- Install in-tree LLVM dependencies"
2023
make -j$${JULIA_CPU_THREADS:?} -C deps install-llvm install-clang install-llvm-tools install-libuv install-utf8proc install-unwind
2124
echo "+++ run clangsa/analyzegc"
@@ -35,6 +38,9 @@ steps:
3538
workspaces:
3639
- "/cache/repos:/cache/repos"
3740
commands: |
41+
echo "--- Checkout the merge commit (if this is a pull request build)"
42+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
43+
3844
echo "--- make release"
3945
make -j$${JULIA_CPU_THREADS:?} release JULIA_PRECOMPILE=0
4046
echo "--- make src/install-analysis-deps"

.buildkite/pipelines/main/misc/whitespace.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,8 @@ steps:
1919
- github_commit_status:
2020
context: "whitespace"
2121
commands: |
22+
echo "--- Checkout the merge commit (if this is a pull request build)"
23+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
24+
25+
echo "--- Run the whitespace check"
2226
make -j$${JULIA_CPU_THREADS:?} check-whitespace

.buildkite/pipelines/main/platforms/package_linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ steps:
2121
- "/cache/repos:/cache/repos"
2222
timeout_in_minutes: ${TIMEOUT?}
2323
commands: |
24+
echo "--- Checkout the merge commit (if this is a pull request build)"
25+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
26+
2427
echo "--- Print the full and short commit hashes"
2528
SHORT_COMMIT_LENGTH=10
2629
SHORT_COMMIT=`echo $${BUILDKITE_COMMIT:?} | cut -c1-$${SHORT_COMMIT_LENGTH:?}`

.buildkite/pipelines/main/platforms/tester_linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ steps:
2424
JULIA_SHELL: "/bin/bash"
2525
timeout_in_minutes: ${TIMEOUT?}
2626
commands: |
27+
echo "--- Checkout the merge commit (if this is a pull request build)"
28+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
29+
2730
echo "--- Print the full and short commit hashes"
2831
SHORT_COMMIT_LENGTH=10
2932
SHORT_COMMIT=`echo $${BUILDKITE_COMMIT:?} | cut -c1-$${SHORT_COMMIT_LENGTH:?}`

.buildkite/pipelines/scheduled/coverage/coverage_linux64.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ steps:
1818
uid: 1000
1919
gid: 1000
2020
commands: |
21+
echo "--- Checkout the merge commit (if this is a pull request build)"
22+
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?}
23+
2124
echo "--- Build Julia from source"
2225
make -j 6
2326

0 commit comments

Comments
 (0)