Skip to content

Commit 77de8a4

Browse files
ci: the pinned mcpp is installed with an index refresh per failed attempt, by git at the last
A job's cached xlings index predates a newly published pin, and xlings keeps it when its anonymous refresh fails (GitHub's 2026-11-09 incident). Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent 6e73227 commit 77de8a4

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

‎.github/tools/install_pinned_mcpp.sh‎

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,21 @@ XL="$XL_HOME/.xlings/subos/default/bin/xlings${EXE}"
6464
echo "FAIL: no xlings at $XL_HOME/.xlings/subos/default/bin nor on PATH" >&2
6565
exit 1; }
6666

67-
"$XL" install -y -u -g >&2
67+
# THE INDEX MAY BE OLDER THAN THE PIN. A job's xlings comes from the cache with
68+
# the index of when the cache was saved, and xlings keeps that index when its
69+
# refresh fails: an anonymous download of the index from GitHub answered 504
70+
# during GitHub's incident of 2026-11-09 ("timeouts due to surge in anonymous
71+
# users"), and the pin, published after the cache, was "not found". Each failed
72+
# attempt refreshes the index and waits; the last two take it by git, which
73+
# xlings otherwise declines for an index its release artifact manages.
74+
for attempt in 1 2 3 4 5; do
75+
if "$XL" install -y -u -g >&2; then break; fi
76+
[ "$attempt" = 5 ] && { echo "FAIL: the pinned mcpp could not be installed" >&2; exit 1; }
77+
sleep $(( attempt * 15 ))
78+
if [ "$attempt" -ge 3 ]; then XLINGS_INDEX_SOURCE=git "$XL" update >&2 || true
79+
else "$XL" update >&2 || true
80+
fi
81+
done
6882

6983
MCPP="$XL_HOME/.xlings/subos/default/bin/mcpp${EXE}"
7084
[ -x "$MCPP" ] || { echo "FAIL: no mcpp at $MCPP after install" >&2; exit 1; }

0 commit comments

Comments
 (0)