Skip to content

Commit c962e24

Browse files
committed
fix: increase crates.io verify retries and make docs.rs check non-fatal
- Verify SDK Is Available: increase from 5×10s (50s) to 18×20s (6min) to handle slow crates.io index propagation after multi-crate publish - Verify docs.rs Build: change exit 1 to exit 0 so slow docs.rs builds do not fail the workflow; print a manual-verification message instead
1 parent f72cb48 commit c962e24

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

.github/workflows/publish-crate.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,14 +196,14 @@ jobs:
196196
- name: Verify SDK Is Available on crates.io
197197
run: |
198198
release_version="${{ steps.release.outputs.version }}"
199-
for attempt in 1 2 3 4 5; do
199+
for attempt in $(seq 1 18); do
200200
status=$(curl -s -o /tmp/crate-publish-check.json -w "%{http_code}" "https://crates.io/api/v1/crates/${{ env.SDK_CRATE }}/$release_version")
201201
if [[ "$status" == "200" ]]; then
202202
echo "SDK crate is available on crates.io"
203203
exit 0
204204
fi
205-
echo "Waiting for crates.io index update (attempt $attempt/5)..."
206-
sleep 10
205+
echo "Waiting for crates.io index update (attempt $attempt/18)..."
206+
sleep 20
207207
done
208208
209209
echo "SDK crate was published but not visible yet. Check crates.io manually." >&2
@@ -212,7 +212,7 @@ jobs:
212212
- name: Verify docs.rs Build for SDK
213213
run: |
214214
docs_url="https://docs.rs/${{ env.SDK_CRATE }}/${{ steps.release.outputs.version }}"
215-
for attempt in 1 2 3 4 5 6; do
215+
for attempt in $(seq 1 6); do
216216
status=$(curl -s -o /tmp/docs-rs-check.html -w "%{http_code}" "$docs_url")
217217
if [[ "$status" == "200" ]]; then
218218
echo "docs.rs page is available: $docs_url"
@@ -224,4 +224,5 @@ jobs:
224224
225225
echo "docs.rs page is not available yet: $docs_url" >&2
226226
echo "The crate may still be building on docs.rs; verify manually later." >&2
227-
exit 1
227+
echo "This is expected shortly after a first publish. Verify manually: $docs_url"
228+
exit 0

0 commit comments

Comments
 (0)