Skip to content

Commit 20a5568

Browse files
committed
CI: harden the cache.yml graphviz step too; two attempts with wider per-attempt timeouts (4m/14m)
Addresses Copilot review on QuantEcon/lecture-python.zh-cn#263: the cache.yml graphviz step was missed by a name match, and three 3m/9m attempts could never let a slow-but-progressing install finish. Now two attempts at 4m (graphviz) / 14m (texlive) inside the unchanged 10/30-minute step budgets.
1 parent 619da6c commit 20a5568

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ jobs:
4141
# Retried with a per-attempt timeout: a stalled Ubuntu mirror otherwise
4242
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
4343
pkgs="texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng cm-super"
44-
for attempt in 1 2 3; do
45-
timeout 9m sudo bash -c "apt-get -qq update && apt-get install -y $pkgs" && break
46-
if [ "$attempt" = 3 ]; then echo "apt-get failed after 3 attempts"; exit 1; fi
44+
for attempt in 1 2; do
45+
timeout 14m sudo bash -c "apt-get -qq update && apt-get install -y $pkgs" && break
46+
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
4747
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
4848
done
4949
- name: Display Conda Environment Versions

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ jobs:
5757
# Retried with a per-attempt timeout: a stalled Ubuntu mirror otherwise
5858
# hangs this step for hours (two 358-minute hangs on 2026-08-18).
5959
pkgs="texlive-latex-recommended texlive-latex-extra texlive-fonts-recommended texlive-fonts-extra texlive-xetex latexmk xindy dvipng cm-super"
60-
for attempt in 1 2 3; do
61-
timeout 9m sudo bash -c "apt-get -qq update && apt-get install -y $pkgs" && break
62-
if [ "$attempt" = 3 ]; then echo "apt-get failed after 3 attempts"; exit 1; fi
60+
for attempt in 1 2; do
61+
timeout 14m sudo bash -c "apt-get -qq update && apt-get install -y $pkgs" && break
62+
if [ "$attempt" = 2 ]; then echo "apt-get failed after 2 attempts"; exit 1; fi
6363
echo "apt-get attempt $attempt failed; retrying in 30s"; sleep 30
6464
done
6565
- name: Display Conda Environment Versions

0 commit comments

Comments
 (0)