Skip to content

Commit 2e0d774

Browse files
authored
SapMachine SAP#1985: increase timeout and add job url to github checks (SAP#2301)
increase timeout and add job url to github checks fixes SAP#1985
1 parent b246adf commit 2e0d774

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/pr-check.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,10 @@ jobs:
105105
declare -A JOB_CHECK_RUN_IDS
106106
# job name → '1' once the check run has been finalized
107107
declare -A JOB_DONE
108+
# job name → fork job HTML URL
109+
declare -A JOB_URLS
108110
109-
MAX_POLL=50
111+
MAX_POLL=90
110112
POLL=0
111113
OVERALL_CONCLUSION=""
112114
@@ -132,6 +134,7 @@ jobs:
132134
JOB_URL=$(echo "$JOBS_JSON" | jq -r ".jobs[$i].html_url")
133135
134136
# Create a Check Run for this job the first time we see it.
137+
JOB_URLS[$JOB_NAME]="$JOB_URL"
135138
if [[ -z "${JOB_CHECK_RUN_IDS[$JOB_NAME]}" ]]; then
136139
echo " Creating check run: ${JOB_NAME}"
137140
CR_ID=$(gh api \
@@ -249,7 +252,7 @@ jobs:
249252
-f status="completed" \
250253
-f conclusion="timed_out" \
251254
-f output[title]="Timed out: ${JOB_NAME}" \
252-
-f output[summary]="The polling window expired before job '${JOB_NAME}' completed."
255+
-f output[summary]="The polling window expired before job '${JOB_NAME}' completed. [View job](${JOB_URLS[$JOB_NAME]})"
253256
fi
254257
done
255258
fi

0 commit comments

Comments
 (0)