You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [ "${http_status}" -ge 200 ] && [ "${http_status}" -lt 400 ]; then
149
+
echo "${label} is reachable (${http_status})."
150
+
return 0
151
+
fi
152
+
153
+
curl_error="$(cat /tmp/curl-error.log)"
154
+
155
+
if [ -n "${curl_error}" ]; then
156
+
echo "Attempt ${attempt} failed for ${label}: ${url} (curl error: ${curl_error})"
157
+
else
158
+
echo "Attempt ${attempt} failed for ${label}: ${url} (HTTP ${http_status})"
159
+
fi
160
+
161
+
if [ "${attempt}" -lt "${attempts}" ]; then
162
+
sleep "${delay}"
163
+
fi
164
+
done
165
+
166
+
echo "::error title=Reports health check failed::${label} is not reachable at ${url}. Last HTTP status: ${http_status}${curl_error:+; curl error: ${curl_error}}"
if [ "${http_status}" -ge 200 ] && [ "${http_status}" -lt 400 ]; then
196
+
echo "${label} is reachable (${http_status})."
197
+
return 0
198
+
fi
199
+
200
+
curl_error="$(cat /tmp/curl-error.log)"
201
+
202
+
if [ -n "${curl_error}" ]; then
203
+
echo "Attempt ${attempt} failed for ${label}: ${url} (curl error: ${curl_error})"
204
+
else
205
+
echo "Attempt ${attempt} failed for ${label}: ${url} (HTTP ${http_status})"
206
+
fi
207
+
208
+
if [ "${attempt}" -lt "${attempts}" ]; then
209
+
sleep "${delay}"
210
+
fi
211
+
done
212
+
213
+
echo "::error title=Preview health check failed::${label} is not reachable at ${url}. Last HTTP status: ${http_status}${curl_error:+; curl error: ${curl_error}}"
Copy file name to clipboardExpand all lines: docs/usage/github-actions.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,9 +33,11 @@ The ``reports.yml`` workflow is responsible for generating technical documentati
33
33
34
34
**Behavior:**
35
35
* **Main Branch**: Runs all checks and deploys the final reports to the root of the ``gh-pages`` branch.
36
+
* Runs a post-deploy health check against the published reports index and coverage URLs with retry/backoff to account for Pages propagation.
36
37
* **Pull Requests**:
37
38
* Generates a **Preview** of the documentation, coverage, and metrics.
38
39
* Deploys the preview to ``gh-pages`` under ``previews/pr-{number}/``.
40
+
* Verifies the preview index and coverage URLs after deployment before posting preview links.
39
41
* Posts a **Sticky Comment** on the PR with links to the live preview, coverage report, and metrics site.
40
42
* **Cleanup**: When a PR is closed, the workflow automatically removes the preview directory from the ``gh-pages`` branch to keep the repository clean.
41
43
* **Concurrency**: New pushes to the same PR cancel older in-progress preview runs without affecting other PRs.
0 commit comments