Skip to content
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

Sleep longer waiting for buildkite to start #598

Merged
merged 1 commit into from
Feb 27, 2024
Merged
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
8 changes: 4 additions & 4 deletions .github/workflows/rebase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ name: "Rebase jito-solana from upstream solana-labs/solana"

on:
schedule:
- cron: "00 19 * * 1-5"
- cron: "15 19 * * 1-5"

jobs:
rebase:
Expand Down Expand Up @@ -94,17 +94,17 @@ jobs:
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ env.REBASE_BRANCH }}
- name: Wait for buildkite to start build
run: sleep 300
- name: Wait for buildkite to finish
id: wait_for_buildkite
timeout-minutes: 300
run: |
while true; do
response=$(curl -s -f -H "Authorization: Bearer ${{ secrets.BUILDKITE_TOKEN }}" "https://api.buildkite.com/v2/organizations/jito/pipelines/jito-solana/builds?commit=${{ env.REBASE_SHA }}")
if [ $? -ne 0 ]; then
# Buildkite occasionally takes awhile to start the job. Assume it starts and let the job time out if not
echo "Curl request failed."
sleep 30
continue
exit 1
fi

state=$(echo $response | jq --exit-status -r '.[0].state')
Expand Down
Loading