Skip to content

CI: make the apt step robust to mirror stalls (unblocks the master deploy) - #58

Merged
andreachiocca merged 1 commit into
masterfrom
claude/ci-apt-robust
Nov 6, 2026
Merged

andreachiocca merged 1 commit into
masterfrom
claude/ci-apt-robust

Conversation

@andreachiocca

Copy link
Copy Markdown
Owner

Why

The master deploy is blocked. The build of the #57 merge failed twice in "Install image and document tools" with exit 124. Before that:

So neither change is live yet. Every time, apt stalled while downloading fonts-urw-base35 (11 MB) from the Azure mirror.

Changes

  • --no-install-recommends for imagemagick webp pandoc, in build.yml and preview.yml. The recommended packages are not needed for the responsive JPEG/PNG → WebP images:

    • Ghostscript;
    • URW fonts;
    • netpbm;
    • libmagickcore-6.q16-7-extra.

    This removes about 45 MB of downloads, including the package that stalls. The WebP coder ships in libmagickcore-6.q16-7t64, and local checks confirm both points:

    • dpkg -S …/coders/webp.so reports that core package;
    • convert x.jpg -resize 480 x.webp works on an Ubuntu 24.04 image without the recommended packages;
    • the full production build passes in that environment.
  • Working fallback mirror. Ubuntu 24.04 runners resolve sources through /etc/apt/apt-mirrors.txt (the log shows Get:1 file:/etc/apt/apt-mirrors.txt Mirrorlist). The fallback sed did not touch that file, so the "retry against archive.ubuntu.com" still downloaded from azure.archive.ubuntu.com. The file is now rewritten too.

After merging

The push to master rebuilds and deploys #56 and #57 together:

  • FIG. R02.1 SeAn-CP;
  • FIG. R02.2 multifat comparison.

Generated by Claude Code

Install ImageMagick, cwebp and Pandoc with --no-install-recommends. The
recommended Ghostscript, URW fonts and netpbm (~45 MB) are not needed for
the JPEG/PNG -> WebP conversions, and the 11 MB font package is where the
downloads stalled (exit 124 on #56 and twice on the #57 merge).

The fallback to archive.ubuntu.com now also rewrites
/etc/apt/apt-mirrors.txt: Ubuntu 24.04 runners resolve their sources
through that mirror list, so the previous fallback still used the Azure
mirror.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01KzHgFgeEYmpqcsxvvbphUy
@andreachiocca
andreachiocca merged commit a90c530 into master Nov 6, 2026
4 checks passed

This branch was previously deployed

1 inactive deployment
website-preview-AC — 602a9db1 Deployed Nov 6, 2026 by andreachiocca via preview #121
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants