-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CI (Buildkite): on pull request builds, build the merge commit (e.g. …
…`refs/pull/1234/merge`)
- Loading branch information
1 parent
4dea1c4
commit fb42d78
Showing
11 changed files
with
55 additions
and
2 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.buildkite/pipelines/experimental/launch_unsigned_builders.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
steps: | ||
- label: ":buildkite: Launch unsigned pipelines" | ||
commands: | | ||
echo "--- Checkout the merge commit (if this is a pull request build)" | ||
MCSH=.buildkite/utilities/merge_commit/merge_commit.sh && test -f $${MCSH:?} && bash $${MCSH:?} | ||
echo "--- Launch unsigned pipelines" | ||
buildkite-agent pipeline upload .buildkite/pipelines/experimental/misc/sanitizers.yml | ||
agents: | ||
queue: julia |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
if [[ "${BUILDKITE_PULL_REQUEST:?}" != "false" ]]; then | ||
git log -n 1 | ||
echo "This is a pull request build." | ||
echo "Pull request: ${BUILDKITE_PULL_REQUEST:?}" | ||
echo "Fetching the pull request merge commit..." | ||
sleep 0.01 # Make sure GitHub has enough time to create the merge commit. | ||
git fetch origin +refs/pull/${BUILDKITE_PULL_REQUEST:?}/merge | ||
echo "Checking out the pull request merge commit..." | ||
git checkout --force FETCH_HEAD | ||
else | ||
echo "This is not a pull request build." | ||
fi | ||
|
||
git log -n 1 |