Skip to content

Commit 4873761

Browse files
authored
Merge branch 'main' into docs-sync/needs-review/189c45fb4-1776791837
2 parents 1d1ed63 + 4d2f5ed commit 4873761

513 files changed

Lines changed: 57120 additions & 9868 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/showcase_capture-previews.yml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,28 @@ jobs:
138138
cd showcase/shell/src/data
139139
if git diff --quiet registry.json; then
140140
echo "No registry changes"
141-
else
142-
git add registry.json
143-
git commit -m "Update preview URLs in registry"
144-
git push
141+
exit 0
145142
fi
143+
git add registry.json
144+
git commit -m "Update preview URLs in registry"
145+
# Rebase-and-retry loop: the capture job can take ~30 minutes,
146+
# during which other commits routinely land on main. Without
147+
# this loop, `git push` loses the race and fails with "fetch
148+
# first" (observed in runs 24799601181 and 24809331709 on
149+
# 2026-04-22). Rebase our single registry commit onto the
150+
# latest main and retry; bounded attempts so a persistent
151+
# failure still surfaces rather than looping forever.
152+
attempts=0
153+
max_attempts=5
154+
until git push; do
155+
attempts=$((attempts + 1))
156+
if [ "$attempts" -ge "$max_attempts" ]; then
157+
echo "::error::push failed after $max_attempts rebase attempts"
158+
exit 1
159+
fi
160+
echo "push rejected — rebasing onto latest main (attempt $attempts/$max_attempts)"
161+
git pull --rebase origin "$(git rev-parse --abbrev-ref HEAD)"
162+
done
146163
147164
# Slack failure alert. This workflow only runs on main-branch pushes,
148165
# workflow_run completions, and manual dispatch — all of which

.github/workflows/showcase_deploy.yml

Lines changed: 478 additions & 457 deletions
Large diffs are not rendered by default.

.github/workflows/showcase_drift-detection.yml

Lines changed: 0 additions & 214 deletions
This file was deleted.

0 commit comments

Comments
 (0)