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

Initial Wait Time #327

Merged
merged 3 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from 2 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/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
- name: Check image Tag
run: ./scripts/check_tag_info.sh ${{ github.event.inputs.name }}

- name: Verify prow post jobs
run: ./scripts/verify-status.sh ${{ github.ref_name }}
- name: Verify job status
run: ./scripts/verify-status.sh ${{ github.ref_name }} 600 10 45
the1bit marked this conversation as resolved.
Show resolved Hide resolved
# run-unit-tests:
# name: Unit tests
# needs: verify-head-status
Expand Down Expand Up @@ -68,8 +68,8 @@ jobs:
git tag ${{ github.event.inputs.name }}
git push origin ${{ github.event.inputs.name }}

- name: Verify prow post jobs
run: ./scripts/verify-status.sh ${{ github.ref_name }}
- name: Verify job status
run: ./scripts/verify-status.sh ${{ github.ref_name }} 600 10 30

outputs:
release_id: ${{ steps.create-draft.outputs.release_id }}
Expand Down
3 changes: 2 additions & 1 deletion scripts/verify-status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ echo "Checking status of POST Jobs for Eventing-Manager"
REF_NAME="${1:-"main"}"
TIMEOUT_TIME="${2:-600}"
INTERVAL_TIME="${3:-3}"
INITIAL_WAIT_TIME="${4:-30}"

# Generate job Status URL
STATUS_URL="https://api.github.com/repos/kyma-project/eventing-manager/commits/${REF_NAME}/status"
Expand Down Expand Up @@ -66,7 +67,7 @@ function retry {
}

# Initial wait
sleep 0
sleep $INITIAL_WAIT_TIME
# Call retry function
retry
while [ "$fullstatus" == "pending" ]; do
Expand Down