-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
CI (Buildkite): on pull request builds, build the merge commit (e.g. refs/pull/1234/merge)
#42403
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Changes from 5 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
fb42d78
CI (Buildkite): on pull request builds, build the merge commit (e.g. …
DilumAluthge 252f0b5
Use the correct filename when downloading artifacts
DilumAluthge 7a21af8
Fix another bug
DilumAluthge cba7f03
Better logging
DilumAluthge 47cd655
Update merge_commit.sh
DilumAluthge 6a393ba
Apply suggestions from code review
DilumAluthge File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
.buildkite/pipelines/experimental/launch_unsigned_builders.yml
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,18 @@ | ||
| #!/bin/bash | ||
|
|
||
| if [[ "${BUILDKITE_PULL_REQUEST:?}" != "false" ]]; then | ||
| git log -n 1 | ||
| echo "" | ||
| 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 | ||
| echo "" | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.